Skip to content

Yearn Vault wrapper for Lido St. Ether

License

Notifications You must be signed in to change notification settings

Thaddeus19/lido-vault

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yearn Lido St. Ether Vault

A wrapper for Lido stETH which uses underlying shares instead of balances which can change outside transfers.

The contract follows Yearn Vault conventions.

Interface

The contract implements ERC20, as well as permit. It's all standard and not documented here.

Only the non-standard functionality is outlined below.

__default__()

A shortcut to submit ether to Lido and deposit the received stETH into the Vault.

deposit(), deposit(uint256), deposit(uint256,address)

Deposit stETH tokens into the Vault

Parameters:

  • tokens The amount of stETH tokens to deposit (default: balanceOf(msg.sender))
  • recipient The account to credit with the minted shares (default: msg.sender)

Returns: The amount of withdrawn stETH

withdraw(), withdraw(uint256), withdraw(uint256,address)

Withdraw stETH tokens from the Vault.

Parameters:

  • shares The amount of shares to burn for stETH (default: balanceOf(msg.sender))
  • recipient The account to credit with stETH (default: msg.sender)

Returns: The amount of withdrawn stETH

pricePerShare()

Get the vault share to stETH ratio.

Returns: The value of a single share

About

Yearn Vault wrapper for Lido St. Ether

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%