Skip to main content
Sky Savings allows apps to earn the Sky Savings Rate by depositing USDS into the sUSDS vault. The sUSDS vault follows the ERC-4626 standard — your app deposits USDS and receives sUSDS shares that automatically accrue yield.

Resources

Sky Developer Docs

Official documentation for the Sky protocol and smart contracts.

Privy Wallets

Privy Wallets are a powerful tool for helping users interact with DeFi.

Getting USDS

Swap on a DEX

Your app can swap any supported token for USDS on any major decentralized exchange using a DEX aggregator or router.

Convert DAI to USDS

On Ethereum, your app can convert DAI to USDS at a 1:1 rate through the DaiUsds converter contract. First, approve the converter to spend DAI, then call daiToUsds.

Using Sky Savings with Privy

Deposit USDS into Sky Savings

1

1. Configure addresses

Set up the sUSDS vault and USDS token addresses. The example below uses Ethereum Mainnet:
2

2. Approve the sUSDS vault to spend USDS

Use viem’s encodeFunctionData to encode the approval, and Privy’s useSendTransaction to send it:
3

3. Deposit USDS into the vault

Use viem to encode the deposit and Privy’s useSendTransaction to fund the vault:

Check balance

Call the vault’s balanceOf function to get the user’s sUSDS shares, then call convertToAssets to see the current USDS value including accrued yield.

Withdraw from the vault

Your app can withdraw a specific amount of USDS or redeem all shares for a full exit.

Key integration tips

  1. Always approve first: Your app must grant ERC-20 approval to the sUSDS vault before any deposit.
  2. USDS uses 18 decimals: Unlike USDC (6 decimals), USDS uses 18 decimals — use parseUnits('100', 18) for amounts.
  3. Use convertToAssets for real-time balances: This ERC-4626 method converts sUSDS shares to their current USDS value, including accrued yield.
  4. Supported chains: Sky Savings supports Ethereum, Base, Arbitrum, OP Mainnet, and Unichain.

Conclusion

Privy makes it straightforward to build secure, user-friendly access to Sky Savings. For advanced use cases, refer to the Sky Developer Docs, or reach out in Slack.
Your app is now ready to interact with Sky Savings using Privy embedded wallets!