Removing user liquidity across multiple chains.

Description of the arguments of redeemRemote()

function redeemRemote(
    uint16 _dstChainId,             // the chainId to remove liquidity
    uint256 _srcPoolId,             // the source poolId
    uint256 _dstPoolId,             // the destination poolId
    address payable _refundAddress, // refund extra native gas to this address
    uint256 _amountLP,              // quantity of LP tokens to redeem
    uint256 _minAmountLD,           // slippage amount in local decimals
    bytes calldata _to,             // the address to redeem the poolId asset to
    lzTxObj memory _lzTxParams      // adpater parameters 

Last updated