LiquidityPoolWithdrawResultCodeXdr

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

// codes considered as "failure" for the operation
LIQUIDITY_POOL_WITHDRAW_MALFORMED = -1,    // bad input
LIQUIDITY_POOL_WITHDRAW_NO_TRUST = -2,     // no trust line for one of the
                                           // assets
LIQUIDITY_POOL_WITHDRAW_UNDERFUNDED = -3,  // not enough balance of the
                                           // pool share
LIQUIDITY_POOL_WITHDRAW_LINE_FULL = -4,    // would go above limit for one
                                           // of the assets
LIQUIDITY_POOL_WITHDRAW_UNDER_MINIMUM = -5 // didn't withdraw enough

};

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 enough balance of the

Link copied to clipboard

pool share would go above limit for one

Link copied to clipboard

of the assets didn't withdraw enough

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.