PoolRewards
PoolRewards
Distributes VSP rewards based on the user's Vesper pool balance and the supply of rewards available to that pool.
VERSION
initialize
Called by proxy to initialize this contract.
_pool
address
Vesper pool address
_rewardTokens
address[]
Array of reward token addresses
notifyRewardAmount
Notify that reward is added. Only authorized caller can call this function.
Also updates reward rate and reward earning period.
_rewardTokens
address[]
Tokens being rewarded
_rewardAmounts
uint256[]
Rewards amount for token on same index in rewardTokens array
_rewardDurations
uint256[]
Duration for which reward will be distributed
notifyRewardAmount
addRewardToken
Add new reward token in existing rewardsToken array
claimReward
Claim earned rewards.
This function claims rewards for all tokens being rewarded
updateReward
Updated reward for given account.
claimable
Returns claimable reward amount.
_rewardTokens
address[]
Array of tokens being rewarded
_claimableAmounts
uint256[]
Array of claimable for token on same index in rewardTokens
getRewardTokens
Provides easy access to all rewardTokens
lastTimeRewardApplicable
Returns timestamp of last reward update
rewardForDuration
rewardPerToken
Rewards rate per pool token
_rewardTokens
address[]
Array of tokens being rewarded
_rewardPerTokenRate
uint256[]
Array of Rewards rate for token on same index in rewardTokens
Last updated