EthAdapter
The EthAdapter is responsible for accepting deposits and withdrawals in ETH, instead of accepting the staked ETH directly. It uses Curve as a trading venue under the hood.
src: https://github.com/pods-finance/yield-contracts/blob/main/contracts/proxy/ETHAdapter.sol
Public State Variables
pool
https://github.com/pods-finance/yield-contracts/blob/main/contracts/proxy/ETHAdapter.sol#L23
Curve's pool for the ETH <> stETH token pair.
ETH_INDEX
https://github.com/pods-finance/yield-contracts/blob/main/contracts/proxy/ETHAdapter.sol#L28
ETH token index in the Curve pool. It is constant 0
.
STETH_INDEX
https://github.com/pods-finance/yield-contracts/blob/main/contracts/proxy/ETHAdapter.sol#L33
StETH token index in the Curve pool. It is constant 1
.
ETH_ADDRESS
https://github.com/pods-finance/yield-contracts/blob/main/contracts/proxy/ETHAdapter.sol#L38
ETH token address representation. It is constant 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE
STETH_ADDRESS
https://github.com/pods-finance/yield-contracts/blob/main/contracts/proxy/ETHAdapter.sol#L43
StETH token address representation. It is constant 0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84
View Methods
convertToSTETH
https://github.com/pods-finance/yield-contracts/blob/main/contracts/proxy/ETHAdapter.sol#L61
Convert ethAmount
ETH to stETH using Curve pool and returns the resulting amount of stETH.
Parameters
Returns
convertToETH
https://github.com/pods-finance/yield-contracts/blob/main/contracts/proxy/ETHAdapter.sol#L70
Convert stethAmount
stETH to ETH using Curve pool and returns the resulting amount of ETH.
Parameters
Returns
Write Methods
deposit
https://github.com/pods-finance/yield-contracts/blob/main/contracts/proxy/ETHAdapter.sol#L81
Deposit msg.value
of ETH, convert to stETH and deposit into vault
Parameters
Returns
redeem
https://github.com/pods-finance/yield-contracts/blob/main/contracts/proxy/ETHAdapter.sol#L100
Redeem shares
shares, receive stETH, trade stETH for ETH and send to receiver
Parameters
Returns
redeemWithPermit
https://github.com/pods-finance/yield-contracts/blob/main/contracts/proxy/ETHAdapter.sol#L124
redeemWithPermit shares
shares, receive stETH, trade stETH for ETH and send to receiver
Do not need to approve the shares in advance. The vault tokenized shares supports Permit
Parameters
Returns
withdraw
https://github.com/pods-finance/yield-contracts/blob/main/contracts/proxy/ETHAdapter.sol#L148
Withdraw assets
assets, receive stETH, trade stETH for ETH and send to receiver
Do not need to approve the shares in advance. The vault tokenized shares supports Permit
Parameters
Returns
withdrawWithPermit
https://github.com/pods-finance/yield-contracts/blob/main/contracts/proxy/ETHAdapter.sol#L171
withdrawWithPermit assets
assets, receive stETH, trade stETH for ETH and send to receiver
Do not need to approve the shares in advance. Vault's tokenized shares supports Permit
Parameters
Returns
Last updated