harvest

function harvest( 
    address _tokenA,
    address _tokenB,
    uint _deadline
) external ensure(_deadline)

νŽ˜μ–΄ μŠ€ν…Œμ΄ν‚Ή λ¦¬μ›Œλ“œ 수령 ν•  λ•Œ μ‚¬μš©

Parameters

TypeValueDescription

address

_tokenA

μŠ€ν…Œμ΄ν‚Ή 된 토큰A μ£Όμ†Œ

address

_tokenB

μŠ€ν…Œμ΄ν‚Ή 된 토큰B μ£Όμ†Œ (μ½”μΈμ˜ 경우 WETHμ£Όμ†Œ)

uint

_deadline

νŠΈλžœμž­μ…˜ μ΅œλŒ€ μ‹œκ°„ (ν˜„μž¬μ‹œκ°„+μ’…λ£Œμ‹œκ°„, sec단)

Example

// λ¦¬μ›Œλ“œ 수령
await routerContract.harvest(
    mockToken0Contract.address,
    mockToken1Contract.address,
    MaxUint256
) 

2022.12.22

Last updated