LiquidityPoolDepositResultCodeXdr

XDR Source: enum LiquidityPoolDepositResultCode { // codes considered as "success" for the operation LIQUIDITY_POOL_DEPOSIT_SUCCESS = 0,

// codes considered as "failure" for the operation
LIQUIDITY_POOL_DEPOSIT_MALFORMED = -1,      // bad input
LIQUIDITY_POOL_DEPOSIT_NO_TRUST = -2,       // no trust line for one of the
                                            // assets
LIQUIDITY_POOL_DEPOSIT_NOT_AUTHORIZED = -3, // not authorized for one of the
                                            // assets
LIQUIDITY_POOL_DEPOSIT_UNDERFUNDED = -4,    // not enough balance for one of
                                            // the assets
LIQUIDITY_POOL_DEPOSIT_LINE_FULL = -5,      // pool share trust line doesn't
                                            // have sufficient limit
LIQUIDITY_POOL_DEPOSIT_BAD_PRICE = -6,      // deposit price outside bounds
LIQUIDITY_POOL_DEPOSIT_POOL_FULL = -7       // pool reserves are full

};

Entries

Link copied to clipboard

codes considered as "success" for the operation

Link copied to clipboard

codes considered as "failure" for the operation bad input

Link copied to clipboard

no trust line for one of the

Link copied to clipboard

assets not authorized for one of the

Link copied to clipboard

assets not enough balance for one of

Link copied to clipboard

the assets pool share trust line doesn't

Link copied to clipboard

have sufficient limit deposit price outside bounds

Link copied to clipboard

pool reserves are full

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int
Link copied to clipboard
val value: Int

Functions

Link copied to clipboard
fun encode(writer: XdrWriter)
Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.