What it offers
- submitAndDeposit: Stake ETH and deposit directly into sfrxETH vault (one-step)
- deposit: Deposit frxETH into sfrxETH vault
- redeem: Redeem sfrxETH shares for frxETH
Notes
- sfrxETH is ERC-4626 compliant (same interface as Yearn V3, pufETH)
- submitAndDeposit() is payable - send ETH as msg.value. One-step ETH -> sfrxETH
- frxETH does not earn yield on its own - must be deposited into sfrxETH vault
- Approve frxETH to sfrxETH contract before calling deposit()
Its names in a program
On Ethereum,FraxEther is a namespace: its contracts need no import.
Deployments
ABI
FrxETHMinterABI
import FrxETHMinterABI from "./protocols/frax-ether/FrxETHMinterABI.json"; Speaks for: frxETHMinter.
submitAndDeposit(address recipient) payable returns (uint256 shares)
SfrxETHABI
import SfrxETHABI from "./protocols/frax-ether/SfrxETHABI.json"; Speaks for: sfrxETH.
deposit(uint256 assets, address receiver) returns (uint256 shares)redeem(uint256 shares, address receiver, address owner) returns (uint256 assets)convertToShares(uint256 assets) view returns (uint256)convertToAssets(uint256 shares) view returns (uint256)balanceOf(address account) view returns (uint256)
Next steps
- Protocols: the other protocols, by what they do.
- Protocols and tokens: calling a contract by its namespace, or through its ABI.
- Glossary: the words these pages use, in plain terms.
