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