deployPool

function deployPool(
    address _router,
    address _stakedToken,
    address _rewardToken,
    uint256 _rewardPerSecond,
    uint256 _startTimestamp,
    uint256 _bonusEndTimestamp
) external onlyOwner returns(MantiswapStakingPool pool)

์‹ฑ๊ธ€์Šคํ…Œ์ดํ‚น ์ปจํŠธ๋ž™ํŠธ ์ƒ์„ฑ

Parameters

Example

// single staking pool ์ƒ์„ฑ
const rewardPerSecond = ethers.utils.parseEther("1.0").div(86400)
const startTimestamp = parseInt(new Date().getTime() / 1000)
const bonusEndTimestamp = startTimestamp + 86400*30

await MantiswapStakingFactoryContract.deployPool(
    stakingRouterContract.address,
    mockToken0Contract.address, 
    mockRewardTokenContract.address,
    rewardPerSecond,
    startTimestamp,
    bonusEndTimestamp
    )

2022.12.22

Last updated