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 LiquidityPoolParameterscreate(LiquidityPoolType type, Asset a, Asset b, int feeBP) LiquidityPoolParameters represents the parameters specifying a liquidity pool.abstract booleanstatic LiquidityPoolParametersGenerates LiquidityPoolParameters object from a given XDR objectabstract LiquidityPoolIDgetId()abstract LiquidityPoolParameterstoXdr()Generates XDR object from a given LiquidityPoolParameters object
-
Field Details
-
Fee
-
-
Method Details
-
create
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
Generates XDR object from a given LiquidityPoolParameters object -
getId
- Returns:
- the liquidity pool ID.
-