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 8 months ago