withdrawSingle

function withdrawSingle( 
    address _token,
    uint256 _liquidity,
    uint _deadline
) external ensure(_deadline)

토큰 μ–ΈμŠ€ν…Œμ΄ν‚Ή ν•  λ•Œ μ‚¬μš© (λ¦¬μ›Œλ“œ μžλ™ νšλ“)

Parameters

TypeValueDescription

address

_token

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

uint256

_liquidity

μ–ΈμŠ€ν…Œμ΄ν‚Ή ν•  토큰 개수

uint256

_deadline

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

Example

await stakingRouterContract.withdrawSingle(
    mockToken0Contract.address,
    100000,
    MaxUint256
)

2022.12.23

토큰 μ–ΈμŠ€ν…Œμ΄ν‚Ή ν•  λ•Œ μ‚¬μš© (λ¦¬μ›Œλ“œ μžλ™ νšλ“)

​

Parameters

Type

Value

Description

address

_token

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

uint256

_liquidity

μ–ΈμŠ€ν…Œμ΄ν‚Ή ν•  토큰 개수

uint256

_deadline

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

​

Example

await stakingRouterContract.withdrawSingle(

mockToken0Contract.address,

100000,

MaxUint256

)

​

2022.12.23

Last updated