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
  • Earn
  • dripToken
  • dripPeriod
  • totalEarned
  • DripPeriodUpdated
  • updateDripPeriod
  • approveGrowToken

Was this helpful?

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

Earn

Earn

An abstract contract that inherits from Strategy. All Vesper Earn pools are implementations of the Earn contract.

dripToken

address dripToken

dripPeriod

uint256 dripPeriod

totalEarned

Accounting total stable coin earned after fee. This amount is not reported to the pool.

uint256 totalEarned

DripPeriodUpdated

event DripPeriodUpdated(uint256 oldDripPeriod, uint256 newDripPeriod)

updateDripPeriod

function updateDripPeriod(uint256 _dripPeriod) external

Update update period of distribution of earning done in one rebalance

_dripPeriod in seconds

approveGrowToken

function approveGrowToken() external

Approves EarnDrip' Grow token to spend dripToken

PreviousStrategy ContractsNextStrategy

Last updated 2 years ago

Was this helpful?