Package org.stellar.sdk
Class LiquidityPoolConstantProductParameters
java.lang.Object
org.stellar.sdk.LiquidityPoolParameters
org.stellar.sdk.LiquidityPoolConstantProductParameters
Base LiquidityPoolConstantProductParameters class.
- See Also:
-
Field Summary
Fields inherited from class org.stellar.sdk.LiquidityPoolParameters
Fee -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGenerates LiquidityPoolConstantProductParameters object from a given XDR objectFirst asset in the liquidity poolSecond asset in the liquidity poolintgetFee()Fee amount in base-pointsgetId()inthashCode()toString()toXdr()Generates XDR object from a given LiquidityPoolParameters objectMethods inherited from class org.stellar.sdk.LiquidityPoolParameters
create, fromXdr
-
Constructor Details
-
LiquidityPoolConstantProductParameters
-
-
Method Details
-
toXdr
Generates XDR object from a given LiquidityPoolParameters object- Specified by:
toXdrin classLiquidityPoolParameters
-
fromXdr
public static LiquidityPoolConstantProductParameters fromXdr(LiquidityPoolConstantProductParameters xdr) Generates LiquidityPoolConstantProductParameters object from a given XDR object- Parameters:
xdr- XDR object
-
getId
- Specified by:
getIdin classLiquidityPoolParameters- Returns:
- the liquidity pool ID.
-
getAssetA
First asset in the liquidity pool -
getAssetB
Second asset in the liquidity pool -
getFee
public int getFee()Fee amount in base-points -
toString
-
equals
- Specified by:
equalsin classLiquidityPoolParameters
-
hashCode
public int hashCode()
-