harvest

function harvest( 
    address _token,
    uint _deadline
) external ensure(_deadline)

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

Parameters

TypeValueDescription

address

token

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

uint

deadline

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

Example

// μŠ€ν…Œμ΄ν‚Ή 토큰인 경우
await stakingRouterContract.harvest(
    mockToken0Contract.address, 
    MaxUint256
)

// μŠ€ν…Œμ΄ν‚Ή 코인인 경우
await stakingRouterContract.harvest(
    WMATICContract.address, 
    MaxUint256
)        

2022.12.23

Last updated