investSingle

function investSingle(
    address _token,
    uint256 _amountDesired,
    uint256 _period,
    uint _deadline
)external ensure(_deadline)

토큰 Staking ν•  λ•Œ μ‚¬μš©

Parameters

Example

// 토큰 ν—ˆμš©
await mockToken0Contract.approve(stakingRouterContract.address, MaxUint256)

await stakingRouterContract.investSingle(
     mockToken0Contract.address,
     ethers.utils.parseEther("1.0"),
     10,
     MaxUint256
)

2022.12.23

Last updated