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
  • IVesperPoolV2
  • getPricePerShare
  • VesperEarnDrip
  • DripRewardPaid
  • GrowTokenUpdated
  • growToken
  • receive
  • claimable
  • notifyRewardAmount
  • updateGrowToken
  • _calculateRewardInDripToken

Was this helpful?

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

VesperEarnDrip

IVesperPoolV2

An interface.

getPricePerShare

function getPricePerShare() external view returns (uint256)

VesperEarnDrip

This contract handles the "drip" of the yield asset in Vesper Earn pools. It inherits from PoolRewards.

DripRewardPaid

event DripRewardPaid(address user, address rewardToken, uint256 reward)

GrowTokenUpdated

event GrowTokenUpdated(address oldGrowToken, address newGrowToken)

growToken

address growToken

receive

receive() external payable

claimable

function claimable(address _account) external view returns (address[] _rewardTokens, uint256[] _claimableAmounts)

Returns claimable reward amount.

In case of growToken it will return the actual underlying value

Name
Type
Description

_rewardTokens

address[]

Array of tokens being rewarded

_claimableAmounts

uint256[]

Array of claimable for token on same index in rewardTokens

notifyRewardAmount

function notifyRewardAmount(address _rewardToken, uint256 _rewardAmount, uint256 _rewardDuration) external

Notify that reward is added. Also updates reward rate and reward earning period.

updateGrowToken

function updateGrowToken(address _newGrowToken) external

Defines which rewardToken is a growToken

growToken is used to check whether to call withdraw from Grow Pool or not

_calculateRewardInDripToken

function _calculateRewardInDripToken(address _rewardToken, uint256 _reward) private view returns (uint256)

The rewardToken AKA growToken is a Vesper Grow Pool which can be V2 or V3 pool. V2 and V3 pools have different signatures to read price per share.

PreviousVPOOLNextStrategy Contracts

Last updated 2 years ago

Was this helpful?