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