ComplexRewarders
This is the reward contract for simple stake token.
Owner Function
This is an owner function for creating new pool Info.
complexRewarder.
add(uint256 _pid, uint256 _startTimestamp)
Example Input
('0', 1674529815) // pId = 0, startTimestamp = 1674529815 2023-02-01: 09:30:00
Example Output
Owner Function
This is an owner function for adding new reward to the created pool.
complexRewarder.addRewardInfo(
uint256 _pid,
uint256 _endTimestamp,
uint256 _rewardPerSec
)
Example Input
('0', 1675529815, 10000000000000000) // pId = 0, endTimestamp = 1674529815 2023-03-01: 09:30:00 provide 0.02 reward token per sec until 2023-03-01
Example Output
Function
This is a function to get the endTimestamp of the pool.
complexRewarder.currentEndTimestamp(uint256 _pid)
Example Input
('0') // pId = 0
Example Output
1675529815
Function
This is a function to get pending reward tokens amount of the pool.
complexRewarder.pendingTokens(
uint256 _pid,
address _user
)
Example Input
('0', '0x93F2394ceA60fa9E2E9AC215cd8ba04c30ed103b') // pId = 0
Example Output
15634388888
Function
This is a function to get reward per sec of the pool.
complexRewarder.poolRewardsPerSec(
uint256 _pid
)
Example Input
('0') // pId = 0
Example Output
10000000000000000 // 0.02 per sec
Last modified 4mo ago