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