createCrossProvideLiquidityBody method
Cell
createCrossProvideLiquidityBody({})
Implementation
Cell createCrossProvideLiquidityBody({
required InternalAddress routerWalletAddress,
required BigInt minLpOut,
required InternalAddress receiverAddress,
required InternalAddress refundAddress,
bool bothPositive = false,
InternalAddress? excessesAddress,
Cell? customPayload,
BigInt? customPayloadForwardGasAmount,
}) {
return beginCell()
.storeUint(DexOpCodes.CROSS_PROVIDE_LP.op, 32)
.storeAddress(routerWalletAddress)
.storeAddress(refundAddress)
.storeAddress(excessesAddress ?? refundAddress)
.storeRef(beginCell()
.storeCoins(minLpOut)
.storeAddress(receiverAddress)
.storeUint(bothPositive ? BigInt.one : BigInt.zero, 1)
.storeCoins(customPayloadForwardGasAmount ?? BigInt.zero)
.storeMaybeRef(customPayload)
.endCell())
.endCell();
}