collect

function collect(
    address _tokenA,
    address _tokenB,
    uint _deadline
) public ensure(_deadline) returns(uint256 collect0, uint256 collect1)

μŠ€ν…Œμ΄ν‚Ή 이후 LP Swap 수수료만 받을 λ•Œ μ‚¬μš©

Parameters

Return Values

Example

await routerContract.collect(
    mockToken0Contract.address,
    mockToken1Contract.address,
    MaxUint256
) 

// κ²°κ³Ό
[ BigNumber { value: "2999999999999999" }, BigNumber { value: "0" } ]

2022.12.22

Last updated