LiquidityPoolEntryConstantProductXdr

data class LiquidityPoolEntryConstantProductXdr(val params: LiquidityPoolConstantProductParametersXdr, val reserveA: Int64Xdr, val reserveB: Int64Xdr, val totalPoolShares: Int64Xdr, val poolSharesTrustLineCount: Int64Xdr)

XDR Source: 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
}

Constructors

Link copied to clipboard
constructor(params: LiquidityPoolConstantProductParametersXdr, reserveA: Int64Xdr, reserveB: Int64Xdr, totalPoolShares: Int64Xdr, poolSharesTrustLineCount: Int64Xdr)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

number of trust lines for the

Link copied to clipboard

amount of A in the pool

Link copied to clipboard

amount of B in the pool

Link copied to clipboard

total number of pool shares issued

Functions

Link copied to clipboard
fun encode(writer: XdrWriter)