PoolRewardsStorage
This contract keeps track of addresses used by the PoolRewards contract to compute and distribute vVSP "rewards".
address pool
Vesper pool address
address[] rewardTokens
Array of reward token addresses
mapping(address => bool) isRewardToken
Reward token to valid/invalid flag mapping
mapping(address => uint256) periodFinish
Reward token to period ending of current reward
mapping(address => uint256) rewardRates
Reward token to current reward rate mapping
mapping(address => uint256) rewardDuration
Reward token to Duration of current reward distribution
mapping(address => uint256) lastUpdateTime
Reward token to Last reward drip update time stamp mapping
mapping(address => uint256) rewardPerTokenStored
Reward token to Reward per token mapping. Calculated and stored at last drip update
mapping(address => mapping(address => uint256)) userRewardPerTokenPaid
Reward token => User => Reward per token stored at last reward update
mapping(address => mapping(address => uint256)) rewards
RewardToken => User => Rewards earned till last reward update
Name | Type | Description |
---|---|---|
_rewardTokens | address[] | Array of tokens being rewarded |
_rewardPerTokenRate | uint256[] | Array of Rewards rate for token on same index in rewardTokens |
Last modified 7mo ago