Package org.stellar.sdk.operations
Class LiquidityPoolWithdrawOperation
java.lang.Object
org.stellar.sdk.operations.Operation
org.stellar.sdk.operations.LiquidityPoolWithdrawOperation
Represents iquidityPoolWithdraw operation.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
LiquidityPoolWithdrawOperation.LiquidityPoolWithdrawOperationBuilder<C extends LiquidityPoolWithdrawOperation,
B extends LiquidityPoolWithdrawOperation.LiquidityPoolWithdrawOperationBuilder<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
ConstructorDescriptionLiquidityPoolWithdrawOperation
(@NonNull Asset assetA, @NonNull BigDecimal minAmountA, @NonNull Asset assetB, @NonNull BigDecimal minAmountB, @NonNull BigDecimal amount) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
boolean
Construct a newLiquidityPoolWithdrawOperation
object from theLiquidityPoolWithdrawOp
XDR object.@NonNull BigDecimal
Amount of pool shares to withdraw (max of 7 decimal places).@NonNull String
The liquidity pool ID.@NonNull BigDecimal
Minimum amount of first asset to withdraw (max of 7 decimal places).@NonNull BigDecimal
Minimum amount of second asset to withdraw (max of 7 decimal places).int
hashCode()
toString()
Methods inherited from class org.stellar.sdk.operations.Operation
fromXdr, getSourceAccount, setSourceAccount, toXdr, toXdrBase64
-
Constructor Details
-
LiquidityPoolWithdrawOperation
public LiquidityPoolWithdrawOperation(@NonNull @NonNull Asset assetA, @NonNull @NonNull BigDecimal minAmountA, @NonNull @NonNull Asset assetB, @NonNull @NonNull BigDecimal minAmountB, @NonNull @NonNull BigDecimal amount)
-
-
Method Details
-
fromXdr
Construct a newLiquidityPoolWithdrawOperation
object from theLiquidityPoolWithdrawOp
XDR object.- Parameters:
op
-LiquidityPoolWithdrawOp
XDR object- Returns:
LiquidityPoolWithdrawOperation
object
-
builder
-
toBuilder
-
getLiquidityPoolId
The liquidity pool ID. -
getAmount
Amount of pool shares to withdraw (max of 7 decimal places). -
getMinAmountA
Minimum amount of first asset to withdraw (max of 7 decimal places). -
getMinAmountB
Minimum amount of second asset to withdraw (max of 7 decimal places). -
toString
-
equals
-
hashCode
public int hashCode()
-