constructor
constructor(
address _factory,
address _router,
address _tokenA,
address _tokenB,
uint8 _swapFee,
uint8 _protocolFee,
address _rewardToken,
uint256 _rewardPerSecond,
uint256 _startTimestamp,
uint256 _bonusEndTimestamp
)
์ ๋์ฑํ(Liquidity Pool) Pair Contract Contructor
Parameters
Example
const swapFee = 30;
const protocolFee = 5;
const rewardPerSecond = ethers.utils.parseEther("0.01");
const startTimestamp = parseInt(new Date().getTime() / 1000)
const bonusEndTimestamp = startTimestamp + 86400*30;
pairContract = await (await ethers.getContractFactory("MantiswapPair")).deploy(
MantiswapFactoryContract.address,
routerContract.address,
mockToken0Contract.address,
mockToken1Contract.address,
swapFee,
protocolFee,
mockRewardTokenContract.address,
rewardPerSecond,
startTimestamp,
bonusEndTimestamp
);
parseInt(new Date().getTime() / 1000)+ 86400*30 = 30์ผ
2022.12.22
Last updated