Savings xDAI (sDAI) - Yield-Bearing ERC-4626 Vault on Gnosis Chain

Overview: Savings xDAI (sDAI) is an ERC-4626 compliant yield-bearing vault on the Gnosis Chain. It enables users to deposit native xDAI or wrapped WXDAI to automatically accrue the MakerDAO (Sky) Savings Rate yield, while maintaining full composability across the Gnosis decentralized finance (DeFi) ecosystem.

Technical Architecture & Yield Mechanism

The sDAI contract on Gnosis Chain is a bridged representation of the Ethereum mainnet sDAI vault. Yield is generated on Ethereum via MakerDAO's DSR (Dai Savings Rate) and bridged to Gnosis Chain via the Omnibridge. The Bridge Receiver contract manages the dripping of this yield into the Gnosis sDAI vault, continuously increasing the exchange rate between sDAI and WXDAI.

Key Smart Contracts (Chain ID: 100)

Integration & Transaction Workflows

Minting / Depositing

To deposit native xDAI, invoke depositXDAI(address receiver) on the Vault Adapter with the corresponding msg.value. To deposit WXDAI, first execute approve(address spender, uint256 amount) on the WXDAI contract, authorizing the Vault Adapter. Then, invoke deposit(uint256 amount, address receiver) on the Vault Adapter.

Redeeming / Withdrawing

To withdraw into native xDAI, invoke redeemXDAI(uint256 shares, address receiver) or withdrawXDAI(uint256 amount, address receiver) on the Vault Adapter. To withdraw into WXDAI, invoke redeem(uint256 shares, address receiver) or withdraw(uint256 amount, address receiver) on the Vault Adapter. Standard ERC-4626 functions are also fully supported directly on the sDAI vault contract.

Analytics & APY Calculation

Current yield metrics are derived by querying the vaultAPY() view function on the Bridge Receiver contract. The DApp client fetches this value to compute the compounded Annual Percentage Yield (APY) dynamically.