Vesper Documentation
  • Introduction
  • Vesper Features
  • Vesper Participants
  • Vesper Pools and Strategies
    • Vesper's Modular Pool Architecture
    • Multi-Chain and Cross-Chain Deployments
    • Overview of Vesper Pools
      • Vesper Grow Pools
    • Overview of Vesper Strategies
      • Maker-to-Platform Strategy
      • Direct-to-Lending-Platform
    • Discussion of Risk
  • VSP Economics
    • VSP Token: Supply, Issuance, & Rewards
    • Governance
      • Introduction
      • Locking
      • Unlocking
    • Revenue Model
  • Community Participation
    • Decentralization Plan
    • The Voting Process
    • Governance Principles
  • Vesper Developers
    • Vesper Developer's Guide
      • Introduction
      • Vesper Framework Levels
      • Overview of Flow Control
    • Vesper Pool Metadata
    • Pool and Strategy Creation and Deployment
    • Vesper Contracts API Reference
      • Pool Contracts
        • PoolAccountant
        • PoolAccountantStorage
        • PoolRewards
        • PoolRewardsStorage
        • PoolStorage
        • VETH
        • VPOOL
        • VesperEarnDrip
      • Strategy Contracts
        • Earn
        • Strategy
        • VesperStrategy
        • EarnVesperStrategy
        • EarnVesperStrategyVSPDrip
    • JavaScript Library
    • Contracts Data
    • Vesper Improvement Proposal Template
  • Marketing
    • Brand Guidelines & Assets
  • Reports
    • Quarterly Reports
    • Smart Contract Audits
  • FAQ
  • Glossary of Terms
Powered by GitBook
On this page
  • PoolRewardsStorage
  • pool
  • rewardTokens
  • isRewardToken
  • periodFinish
  • rewardRates
  • rewardDuration
  • lastUpdateTime
  • rewardPerTokenStored
  • userRewardPerTokenPaid
  • rewards

Was this helpful?

Export as PDF
  1. Vesper Developers
  2. Vesper Contracts API Reference
  3. Pool Contracts

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

Name
Type
Description

_rewardTokens

address[]

Array of tokens being rewarded

_rewardPerTokenRate

uint256[]

Array of Rewards rate for token on same index in rewardTokens

PreviousPoolRewardsNextPoolStorage

Last updated 2 years ago

Was this helpful?