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
Last modified 18d ago