getProvideLiquidityTonTxParams method

Future<SenderArguments> getProvideLiquidityTonTxParams({
  1. required InternalAddress userWalletAddress,
  2. required Pton proxyTon,
  3. required InternalAddress otherTokenAddress,
  4. required BigInt sendAmount,
  5. required BigInt minLpOut,
  6. InternalAddress? refundAddress,
  7. InternalAddress? excessesAddress,
  8. bool bothPositive = false,
  9. Cell? customPayload,
  10. BigInt? customPayloadForwardGasAmount,
  11. BigInt? forwardGasAmount,
  12. BigInt? queryId,
})

Implementation

Future<SenderArguments> getProvideLiquidityTonTxParams({
  required InternalAddress userWalletAddress,
  required Pton proxyTon,
  required InternalAddress otherTokenAddress,
  required BigInt sendAmount,
  required BigInt minLpOut,
  InternalAddress? refundAddress,
  InternalAddress? excessesAddress,
  bool bothPositive = false,
  Cell? customPayload,
  BigInt? customPayloadForwardGasAmount,
  BigInt? forwardGasAmount,
  BigInt? queryId,
}) async {
  return implGetProvideLiquidityTonTxParams(
    bothPositive: true,
    refundAddress: refundAddress,
    customPayloadForwardGasAmount: customPayloadForwardGasAmount,
    customPayload: customPayload,
    excessesAddress: excessesAddress,
    userWalletAddress: userWalletAddress,
    proxyTon: proxyTon,
    otherTokenAddress: otherTokenAddress,
    sendAmount: sendAmount,
    minLpOut: minLpOut,
    queryId: queryId,
    forwardGasAmount:
        forwardGasAmount ?? gasConstants.provideLpTon.forwardGasAmount,
  );
}