Resources
Ethena Staking Docs
Official documentation for staking USDe and the sUSDe contract.
Get started with Privy
Set up Privy and create embedded wallets for your app.
Getting USDe
Your app can swap any supported token for USDe on any major decentralized exchange using a DEX aggregator or router.Stake USDe into the sUSDe vault
1
1. Configure addresses
Set up the sUSDe vault and USDe token addresses. The example below uses Ethereum Mainnet:
2
2. Approve the sUSDe vault to spend USDe
Use viem’s
encodeFunctionData to encode the approval, and Privy’s useSendTransaction to send it:3
3. Deposit USDe into the vault
Use viem to encode the deposit and Privy’s
useSendTransaction to stake USDe:Check balance
Call the vault’sbalanceOf function to get the user’s sUSDe shares, then call convertToAssets to see the current USDe value including accrued yield.
Unstake from the vault
Ethena has a 7-day cooldown period for unstaking. Your app must first request an unstake, which places the USDe in the USDeSilo contract. After the cooldown completes, your app can withdraw the USDe.- Request unstake (start cooldown)
- Withdraw after cooldown
Call
cooldownShares on the sUSDe vault to initiate the unstaking process. The USDe is placed in the USDeSilo contract during the cooldown period.Key integration tips
- Always approve first: Your app must grant ERC-20 approval to the sUSDe vault before any deposit.
- USDe uses 18 decimals: Use
parseUnits('100', 18)for amounts. - Use
convertToAssetsfor real-time balances: This ERC-4626 method converts sUSDe shares to their current USDe value, including accrued yield. - Plan for the 7-day cooldown: Unlike other yield protocols, Ethena requires a cooldown period before withdrawing staked USDe. During this period, the USDe is held in the USDeSilo contract.
- No minimum staking period: Your app can stake and unstake in consecutive blocks, though the 7-day cooldown still applies for withdrawals.
- sUSDe value only increases: Rewards can only be positive or zero — stakers cannot lose USDe by staking.
- Supported chains: Ethena sUSDe staking is available on Ethereum Mainnet.
Conclusion
Privy makes it straightforward to build secure, user-friendly access to Ethena yield. For advanced use cases, refer to the Ethena Staking Docs, or reach out in Slack.Your app is now ready to interact with Ethena using Privy embedded wallets!

