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
  • VETH
  • constructor
  • receive
  • withdrawETH
  • withdrawETHAndClaim
  • deposit
  • depositAndClaim

Was this helpful?

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

VETH

VETH

This contract handles ETH incoming to the contract address. It inherits from VPOOL.

constructor

constructor(string _name, string _symbol, address _token) public

receive

receive() external payable

Handle incoming ETH to the contract address.

withdrawETH

function withdrawETH(uint256 _shares) external

Burns tokens/shares and returns the ETH value, after fee, of those.

withdrawETHAndClaim

function withdrawETHAndClaim(uint256 _shares) external

Burns tokens/shares and returns the ETH value and claim rewards if any

deposit

function deposit() public payable

Receives ETH and grants new tokens/shares to the sender depending on the value of pool's share.

depositAndClaim

function depositAndClaim() external payable

Deposit ETH and claim rewards if any

PreviousPoolStorageNextVPOOL

Last updated 2 years ago

Was this helpful?