Vesper Documentation
Search…
Introduction
Vesper Features
Vesper Participants
Vesper Pools and Strategies
Vesper's Modular Pool Architecture
Multi-Chain and Cross-Chain Deployments
Overview of Vesper Pools
Overview of Vesper Strategies
Discussion of Risk
VSP Economics
VSP Token: Supply, Issuance, & Rewards
Revenue Model
Community Participation & Governance
Decentralization Plan
The Voting Process
Governance Principles
Vesper Developers
Developer Incentives
Vesper Improvement Proposal Template
Vesper Developer's Guide
Vesper API Reference
Pool Contracts
PoolAccountant
PoolAccountantStorage
PoolERC20
PoolERC20Permit
PoolRewardsStorage
PoolStorage
VETH
VPOOL
VesperEarnDrip
Strategy Contracts
JavaScript Library
Contracts Data
Marketing
Brand Guidelines & Assets
Reports
Quarterly Reports
Smart Contract Audits
FAQ
Glossary of Terms
Powered By
GitBook
VETH
VETH
This contract handles ETH incoming to the contract address. It inherits from VPOOL.
constructor
1
constructor
(
string
_name
,
string
_symbol
,
address
_token
)
public
Copied!
receive
1
receive
()
external
payable
Copied!
Handle incoming ETH to the contract address.
withdrawETH
1
function
withdrawETH
(
uint256
_shares
)
external
Copied!
Burns tokens/shares and returns the ETH value, after fee, of those.
withdrawETHAndClaim
1
function
withdrawETHAndClaim
(
uint256
_shares
)
external
Copied!
Burns tokens/shares and returns the ETH value and claim rewards if any
deposit
1
function
deposit
()
public
payable
Copied!
Receives ETH and grants new tokens/shares to the sender depending on the value of pool's share.
depositAndClaim
1
function
depositAndClaim
()
external
payable
Copied!
Deposit ETH and claim rewards if any
Previous
PoolStorage
Next
VPOOL
Last modified
18d ago
Export as PDF
Copy link
Contents
VETH
constructor
receive
withdrawETH
withdrawETHAndClaim
deposit
depositAndClaim