What it offers
- stakeUSDe: Stake USDe to receive sUSDe (yield-bearing)
- cooldownAssets: Start cooldown period to unstake (by asset amount)
- cooldownShares: Start cooldown period to unstake (by share amount)
- unstake: Complete unstake after cooldown period
Notes
- Yield comes from ETH staking rewards + perpetual funding rates
- 7-day cooldown period required before unstaking
- Flow: deposit (stake) -> cooldownAssets/cooldownShares (start cooldown) -> unstake (after 7 days)
- Approve USDe to sUSDe contract before depositing
- sUSDe appreciates against USDe as yield accrues
Its names in a program
On Ethereum,Ethena is a namespace: its contracts need no import.
Deployments
ABI
StakedUSDeABI
import StakedUSDeABI from "./protocols/ethena/StakedUSDeABI.json"; Speaks for: susde.
deposit(uint256 assets, address receiver) returns (uint256 shares)withdraw(uint256 assets, address receiver, address owner) returns (uint256 shares)redeem(uint256 shares, address receiver, address owner) returns (uint256 assets)cooldownAssets(uint256 assets) returns (uint256 shares)cooldownShares(uint256 shares) returns (uint256 assets)unstake(address receiver)
USDeABI
import USDeABI from "./protocols/ethena/USDeABI.json"; Speaks for: usde.
approve(address spender, uint256 amount) returns (bool)
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.
