sdUSD
The vault
sdUSD is a standard ERC-4626 vault over dUSD with a decimals offset of 6 (shares carry 24 decimals). Deposit and redeem are immediate; there is no lock.
How it earns
After each index print, anyone can call DeltaMinter.accrue(). For every new hour it mints dUSD in the vault x max(delta, 0) / 8760 into sdUSD, which raises the share price. The total minted is capped by the backing's surplus (backing value minus dUSD supply), and needs a fresh proof, so yield is only paid out of value that exists.
A negative hour pays nothing; the loss is absorbed by the surplus and the reserve first. sdUSD's share price never goes down from accrual.
Where the rest goes
The backing earns on all of dUSD, sdUSD is paid on the staked part. harvest() mints surplus above the reserve target (500 bps of supply) first into DeltaReserve up to the target, then to DeltaBackstop as revenue. harvest reverts until accrue has caught up, so stakers are always paid first.