public class LiquidityPoolDepositOperation extends Operation
Modifier and Type | Class and Description |
---|---|
static class |
LiquidityPoolDepositOperation.LiquidityPoolDepositOperationBuilder<C extends LiquidityPoolDepositOperation,B extends LiquidityPoolDepositOperation.LiquidityPoolDepositOperationBuilder<C,B>> |
Operation.OperationBuilder<C extends Operation,B extends Operation.OperationBuilder<C,B>>
Constructor and Description |
---|
LiquidityPoolDepositOperation(@NonNull Asset assetA,
@NonNull java.math.BigDecimal maxAmountA,
@NonNull Asset assetB,
@NonNull java.math.BigDecimal maxAmountB,
@NonNull Price minPrice,
@NonNull Price maxPrice) |
Modifier and Type | Method and Description |
---|---|
static LiquidityPoolDepositOperation.LiquidityPoolDepositOperationBuilder<?,?> |
builder() |
boolean |
equals(java.lang.Object o) |
static LiquidityPoolDepositOperation |
fromXdr(LiquidityPoolDepositOp op)
Construct a new
LiquidityPoolDepositOperation object from the LiquidityPoolDepositOp XDR object. |
@NonNull java.lang.String |
getLiquidityPoolId()
The liquidity pool ID.
|
@NonNull java.math.BigDecimal |
getMaxAmountA()
Maximum amount of first asset to deposit (max of 7 decimal places).
|
@NonNull java.math.BigDecimal |
getMaxAmountB()
Maximum amount of second asset to deposit (max of 7 decimal places).
|
@NonNull Price |
getMaxPrice()
Maximum deposit_a/deposit_b price.
|
@NonNull Price |
getMinPrice()
Minimum deposit_a/deposit_b price.
|
int |
hashCode() |
LiquidityPoolDepositOperation.LiquidityPoolDepositOperationBuilder<?,?> |
toBuilder() |
java.lang.String |
toString() |
formatAmountScale, fromXdr, fromXdrAmount, getSourceAccount, setSourceAccount, toXdr, toXdrAmount, toXdrBase64
public LiquidityPoolDepositOperation(@NonNull @NonNull Asset assetA, @NonNull @NonNull java.math.BigDecimal maxAmountA, @NonNull @NonNull Asset assetB, @NonNull @NonNull java.math.BigDecimal maxAmountB, @NonNull @NonNull Price minPrice, @NonNull @NonNull Price maxPrice)
public static LiquidityPoolDepositOperation fromXdr(LiquidityPoolDepositOp op)
LiquidityPoolDepositOperation
object from the LiquidityPoolDepositOp
XDR object.op
- LiquidityPoolDepositOp
XDR objectLiquidityPoolDepositOperation
objectpublic static LiquidityPoolDepositOperation.LiquidityPoolDepositOperationBuilder<?,?> builder()
public LiquidityPoolDepositOperation.LiquidityPoolDepositOperationBuilder<?,?> toBuilder()
@NonNull public @NonNull java.lang.String getLiquidityPoolId()
@NonNull public @NonNull java.math.BigDecimal getMaxAmountA()
@NonNull public @NonNull java.math.BigDecimal getMaxAmountB()
@NonNull public @NonNull Price getMinPrice()
@NonNull public @NonNull Price getMaxPrice()
public java.lang.String toString()
toString
in class java.lang.Object