Package org.stellar.sdk
Class LiquidityPoolParameters
java.lang.Object
org.stellar.sdk.LiquidityPoolParameters
- Direct Known Subclasses:
LiquidityPoolConstantProductParameters
Base LiquidityPoolParameters class.
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic LiquidityPoolParametersLiquidityPoolParameters represents the parameters specifying a liquidity pool.abstract booleanstatic LiquidityPoolParametersfromXdr(org.stellar.sdk.xdr.LiquidityPoolParameters xdr) Generates LiquidityPoolParameters object from a given XDR objectabstract LiquidityPoolIDgetId()abstract org.stellar.sdk.xdr.LiquidityPoolParameterstoXdr()Generates XDR object from a given LiquidityPoolParameters object
-
Field Details
-
Fee
-
-
Method Details
-
create
public static LiquidityPoolParameters create(org.stellar.sdk.xdr.LiquidityPoolType type, Asset a, Asset b, int feeBP) LiquidityPoolParameters represents the parameters specifying a liquidity pool.- Parameters:
type- Type of the liquidity poola- First asset in the liquidity poolb- Second asset in the liquidity poolfeeBP- Fee amount in base-points
-
fromXdr
Generates LiquidityPoolParameters object from a given XDR object- Parameters:
xdr- XDR object
-
equals
-
toXdr
public abstract org.stellar.sdk.xdr.LiquidityPoolParameters toXdr()Generates XDR object from a given LiquidityPoolParameters object -
getId
- Returns:
- the liquidity pool ID.
-