InsufficientCollateralForReturn
scalus.cardano.txbuilder.TxBalancingError.InsufficientCollateralForReturn
final case class InsufficientCollateralForReturn(totalCollateralAda: Coin, requiredCollateral: Coin, minAdaForReturn: Coin)
Error when collateral contains tokens but there's insufficient ADA to create a valid collateral return output.
Per Babbage spec, tokens in collateral MUST be returned via collateralReturnOutput, which requires meeting the minAda requirement. This error occurs when: totalCollateralAda < requiredCollateral + minAdaForReturn
Value parameters
- minAdaForReturn
-
minimum ADA needed for the collateral return output
- requiredCollateral
-
ADA needed for collateral (percentage of fee)
- totalCollateralAda
-
total ADA in all collateral inputs
Attributes
Members list
In this article