LiquidityPoolEntryXdr

data class LiquidityPoolEntryXdr(val liquidityPoolId: PoolIDXdr, val body: LiquidityPoolEntryBodyXdr)

XDR Source: struct LiquidityPoolEntry { PoolID liquidityPoolID;

union switch (LiquidityPoolType type)
{
case LIQUIDITY_POOL_CONSTANT_PRODUCT:
    struct
    {
        LiquidityPoolConstantProductParameters params;

        int64 reserveA;        // amount of A in the pool
        int64 reserveB;        // amount of B in the pool
        int64 totalPoolShares; // total number of pool shares issued
        int64 poolSharesTrustLineCount; // number of trust lines for the
                                        // associated pool shares
    } constantProduct;
}
body;

};

Constructors

Link copied to clipboard
constructor(liquidityPoolId: PoolIDXdr, body: LiquidityPoolEntryBodyXdr)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun encode(writer: XdrWriter)