Package org.stellar.sdk.operations
Class LiquidityPoolDepositOperation
java.lang.Object
org.stellar.sdk.operations.Operation
org.stellar.sdk.operations.LiquidityPoolDepositOperation
Represents LiquidityPoolDeposit operation.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
LiquidityPoolDepositOperation.LiquidityPoolDepositOperationBuilder<C extends LiquidityPoolDepositOperation,
B extends LiquidityPoolDepositOperation.LiquidityPoolDepositOperationBuilder<C, B>> Nested classes/interfaces inherited from class org.stellar.sdk.operations.Operation
Operation.OperationBuilder<C extends Operation,
B extends Operation.OperationBuilder<C, B>> -
Constructor Summary
ConstructorDescriptionLiquidityPoolDepositOperation
(@NonNull Asset assetA, @NonNull BigDecimal maxAmountA, @NonNull Asset assetB, @NonNull BigDecimal maxAmountB, @NonNull Price minPrice, @NonNull Price maxPrice) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
boolean
Construct a newLiquidityPoolDepositOperation
object from theLiquidityPoolDepositOp
XDR object.@NonNull String
The liquidity pool ID.@NonNull BigDecimal
Maximum amount of first asset to deposit (max of 7 decimal places).@NonNull BigDecimal
Maximum amount of second asset to deposit (max of 7 decimal places).@NonNull Price
Maximum deposit_a/deposit_b price.@NonNull Price
Minimum deposit_a/deposit_b price.int
hashCode()
toString()
Methods inherited from class org.stellar.sdk.operations.Operation
fromXdr, getSourceAccount, setSourceAccount, toXdr, toXdrBase64
-
Constructor Details
-
LiquidityPoolDepositOperation
public LiquidityPoolDepositOperation(@NonNull @NonNull Asset assetA, @NonNull @NonNull BigDecimal maxAmountA, @NonNull @NonNull Asset assetB, @NonNull @NonNull BigDecimal maxAmountB, @NonNull @NonNull Price minPrice, @NonNull @NonNull Price maxPrice)
-
-
Method Details
-
fromXdr
Construct a newLiquidityPoolDepositOperation
object from theLiquidityPoolDepositOp
XDR object.- Parameters:
op
-LiquidityPoolDepositOp
XDR object- Returns:
LiquidityPoolDepositOperation
object
-
builder
-
toBuilder
-
getLiquidityPoolId
The liquidity pool ID. -
getMaxAmountA
Maximum amount of first asset to deposit (max of 7 decimal places). -
getMaxAmountB
Maximum amount of second asset to deposit (max of 7 decimal places). -
getMinPrice
Minimum deposit_a/deposit_b price. -
getMaxPrice
Maximum deposit_a/deposit_b price. -
toString
-
equals
-
hashCode
public int hashCode()
-