BTB
/

Sky (formerly MakerDAO)

CDPwebsite
Issuer of the USDS and DAI stablecoins. Agents can convert DAI<->USDS 1:1, swap USDC<->USDS/DAI 1:1 through the LitePSM, earn the Sky Savings Rate with sUSDS (ERC-4626) or the DSR with sDAI, upgrade MKR to SKY, stake USDS for token rewards, and use bridged USDS/sUSDS plus the Spark PSM3 on Base and Arbitrum.

What you can do

DAI -> USDSUpgrade DAI to USDS 1:1, no fee.DAI.approve(0x3225737a9Bbb6473CB4a45b7244ACa2BeFdB276A, wad); DaiUsds.daiToUsds(recipient, wad). Reverse: USDS.approve(converter) then usdsToDai(recipient, wad).
USDC -> USDSMint USDS with USDC at 1:1 minus tin (0 at research time).Check wrapper.tin() != uint256 max. USDC.approve(0xA188EEC8F81263234dA3622A406892F3D630f98c, amt6); wrapper.sellGem(recipient, amt6) where amt6 has 6 decimals. Receives amt6*1e12 USDS minus fee.
USDS -> USDCRedeem USDS for USDC 1:1 plus tout.Check USDC.balanceOf(LitePSM.pocket()) >= amt6 and tout. USDS.approve(wrapper, amt6*1e12 + fee); wrapper.buyGem(recipient, amt6).
USDC <-> DAISame as above with DAI.LitePSM 0xf6e72Db5454dd049d0788e411b06CfAF16853042: approve USDC to the LitePSM itself (not a GemJoin) then sellGem(usr, amt6); or approve DAI to the LitePSM then buyGem(usr, amt6). If sellGem fails for lack of DAI, call rush()/fill() first (permissionless).
earn the Sky Savings RateDeposit USDS into sUSDS on Ethereum.USDS.approve(sUSDS 0xa3931d71877C0E7a3148CB7Eb4463524FEc27fbD, amt); sUSDS.deposit(amt, receiver). Exit: sUSDS.redeem(shares, receiver, owner). Value: convertToAssets(shares). Rate: ssr().
get sUSDS on Base/ArbitrumSwap USDC or USDS into sUSDS with the Spark PSM3.approve assetIn to PSM3 (Base 0x1601843c5E9bC251A3272907010AFa41Fa18347E, Arbitrum 0x2B05F8e1cACC6974fD79A673a341Fe1f58d27266); quote previewSwapExactIn(assetIn, sUSDS, amountIn); swapExactIn(assetIn, sUSDS, amountIn, minOut, receiver, 0). L2 sUSDS has no deposit/redeem; exit via PSM3.
MKR -> SKYUpgrade MKR to SKY at 1:24000 minus the Delayed Upgrade Penalty.Read MkrSky.fee(); call MkrSky 0xA1Ea1bA18E88C381C724a75F23a130420C403f9a .mkrToSky(recipient, mkrAmt). No approval needed. One-way.
stake USDS for rewardsStake USDS in a Sky token-rewards farm.Check farm.periodFinish() > now and rewardRate() > 0 (USDS->SPK 0x173e314C7635B45322cd8Cb14f44b312e079F3af was active at research time; USDS->SKY 0x0650CAF159C5A49f711e8169D4336ECB9b950275 had ended). USDS.approve(farm, amt); farm.stake(amt). Claim with getReward(); leave with exit().
Governance control: Sky governance (SKY holders via executive spells) sets the SSR, DSR, PSM fees (tin/tout), farm rewards and the MKR->SKY penalty, and can halt LitePSM swaps by setting tin/tout to uint256 max. USDS, sUSDS and the bridged L2 tokens are UUPS-upgradeable proxies controlled by governance, so their logic can be changed.
LitePSM has no slippage protection: fees could change in the same block if a governance action executes first. Swaps are capped by the LitePSM DAI buffer (sellGem) and the USDC in its pocket (buyGem), and by the Spark PSM3's balances on L2.
MKR->SKY conversion is one-way and, at research time, charged a 5% Delayed Upgrade Penalty (fee() = 5e16) that governance said may increase over time; the older Sky docs token page describing a fee-free two-way converter is out of date.
USDS and DAI are backed by crypto collateral, real-world-asset vaults, USDC in the PSM and allocations to Sky 'Stars' such as Spark and Grove; a failure in collateral, USDC, or those allocations can affect the peg. Emergency shutdown is possible.

Contracts

Read any function, or build a write and sign it. Amounts are in base units (1 USDC = 1000000).
USDS (Sky Dollar)token on ethereum0xdC035D45d973E3EC169d2276DDab16f1e407384F
read balanceOf(address)
USDS balance (18 decimals).
write approve(address,uint256)
Approve a spender for USDS. Spenders: sUSDS 0xa3931d71877C0E7a3148CB7Eb4463524FEc27fbD for deposit, DaiUsds converter 0x3225737a9Bbb6473CB4a45b7244ACa2BeFdB276A for usdsToDai, LitePSM wrapper 0xA188EEC8F81263234dA3622A406892F3D630f98c for buyGem, USDS->SKY/SPK farms for stake.
write transfer(address,uint256)
Transfer USDS (base units, 18 decimals).
read allowance(address,address)
Current allowance (owner, spender).
read totalSupply()
Total USDS supply on this chain.
write permit(address,address,uint256,uint256,uint8,bytes32,bytes32)
EIP-2612 gasless approval (owner, spender, value, deadline, v, r, s). Also supports EIP-1271 contract signatures.
sUSDS (Savings USDS, ERC-4626)vault on ethereum0xa3931d71877C0E7a3148CB7Eb4463524FEc27fbD
write deposit(uint256,address)
Deposit USDS (assets, 18 decimals) and mint sUSDS shares to receiver. Approve USDS to sUSDS first. No fees.
write deposit(uint256,address,uint16)
Same as deposit with a uint16 referral code (emits a Referral event).
write mint(uint256,address)
Mint an exact number of sUSDS shares, pulling the needed USDS.
write redeem(uint256,address,address)
Burn sUSDS shares (shares, receiver, owner) and receive USDS. No lockup, no fee.
write withdraw(uint256,address,address)
Withdraw an exact USDS amount (assets, receiver, owner), burning the needed shares.
read convertToAssets(uint256)
USDS value of a share amount, computed in real time even if drip() has not been called recently.
read convertToShares(uint256)
Shares for a USDS amount.
read previewRedeem(uint256)
Exact USDS out for redeeming shares.
read ssr()
Sky Savings Rate as a per-second factor in RAY (1e27). APY = (ssr/1e27)^31536000 - 1. At research time 1000000001182641576793209935 (about 3.8% APY).
read chi()
Rate accumulator (RAY, uint192); chi/1e27 = USDS per sUSDS as of last drip (about 1.1175 at research time).
read totalAssets()
Total USDS backing all sUSDS.
read balanceOf(address)
sUSDS share balance (18 decimals).
read asset()
Underlying asset: USDS 0xdC035D45d973E3EC169d2276DDab16f1e407384F.
DAI (MCD_DAI)token on ethereum0x6B175474E89094C44Da98b954EedeAC495271d0F
read balanceOf(address)
DAI balance (18 decimals).
write approve(address,uint256)
Approve a spender for DAI. Spenders: DaiUsds converter 0x3225737a9Bbb6473CB4a45b7244ACa2BeFdB276A for daiToUsds, LitePSM 0xf6e72Db5454dd049d0788e411b06CfAF16853042 for buyGem, sDAI 0x83F20F44975D03b1b09e64809B757c47f942BEeA for deposit.
write transfer(address,uint256)
Transfer DAI (base units, 18 decimals).
read allowance(address,address)
Current allowance (owner, spender).
read totalSupply()
Total DAI supply on this chain.
DaiUsds converter (DAI_USDS)exchange on ethereum0x3225737a9Bbb6473CB4a45b7244ACa2BeFdB276A
write daiToUsds(address,uint256)
Convert DAI to USDS 1:1 (usr = USDS recipient, wad = DAI amount, 18 decimals). Approve DAI to this contract first. No fee, no limit; fees cannot be enabled on this route.
write usdsToDai(address,uint256)
Convert USDS to DAI 1:1 (usr = DAI recipient, wad, 18 decimals). Approve USDS to this contract first.
read dai()
DAI address.
read usds()
USDS address.
SKY (governance token, MCD_GOV)token on ethereum0x56072C95FAA701256059aa122697B133aDEd9279
read balanceOf(address)
SKY balance (18 decimals).
write approve(address,uint256)
Approve a spender for SKY.
write transfer(address,uint256)
Transfer SKY (base units, 18 decimals).
read allowance(address,address)
Current allowance (owner, spender).
read totalSupply()
Total SKY supply on this chain.
write permit(address,address,uint256,uint256,uint8,bytes32,bytes32)
EIP-2612 gasless approval.
MKR (legacy governance token)token on ethereum0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2
read balanceOf(address)
MKR balance (18 decimals).
write approve(address,uint256)
Approve MKR. Not needed for MkrSky.mkrToSky: the converter burns MKR directly from msg.sender (MKR burn permission).
write transfer(address,uint256)
Transfer MKR.
MkrSky converter V2 (MKR_SKY, one-way)exchange on ethereum0xA1Ea1bA18E88C381C724a75F23a130420C403f9a
write mkrToSky(address,uint256)
Convert MKR to SKY one-way (usr = SKY recipient, mkrAmt, 18 decimals). Gross SKY = mkrAmt * 24000; a fee (Delayed Upgrade Penalty) is deducted: net = gross - gross*fee/1e18. fee() was 5e16 (5%) at research time. Burns MKR from msg.sender and transfers SKY from the converter's pre-funded balance. There is no SKY->MKR route.
read rate()
Fixed conversion rate: 24000 SKY per MKR.
read fee()
Current penalty in WAD (1e18 = 100%); governance can change it via file('fee').
read take()
Accumulated SKY fees held for governance.
read mkr()
MKR address.
read sky()
SKY address.
LitePSM USDC-A (LitePSM-DAI-USDC, MCD_LITE_PSM_USDC_A)exchange on ethereum0xf6e72Db5454dd049d0788e411b06CfAF16853042
write sellGem(address,uint256)
USDC -> DAI. Args (usr = DAI recipient, gemAmt in USDC units, 6 decimals). Returns DAI out (18 decimals) = gemAmt*1e12 minus tin fee. Approve USDC to THIS LitePSM contract (it pulls USDC with transferFrom into its pocket); unlike the legacy PSM there is no separate GemJoin, and gemJoin() returns the LitePSM itself for backward compatibility. Limited by the DAI balance held by the LitePSM (see rush/fill).
write buyGem(address,uint256)
DAI -> USDC. Args (usr = USDC recipient, gemAmt in USDC units, 6 decimals). Pulls gemAmt*1e12 DAI plus tout fee from msg.sender: approve DAI to this contract. Limited by the USDC held in pocket().
read tin()
Fee on sellGem in WAD (1e18 = 100%). 0 at research time. type(uint256).max (HALTED) means sellGem is halted.
read tout()
Fee on buyGem in WAD. 0 at research time. HALTED (uint256 max) means buyGem is halted.
read pocket()
Address holding the USDC (0x37305B1cD40574E4C5Ce33f8e8306Be057fD7341 at research time). USDC.balanceOf(pocket) = max buyGem size.
read buf()
Target DAI buffer kept pre-minted in the LitePSM (8e26 = 800M DAI at research time).
read rush()
DAI that fill() could add now; if > 0, call fill() to raise the DAI balance before a large sellGem.
write fill()
Permissionless: mint DAI into the LitePSM up to buf. Can be batched between sellGem calls for large swaps.
read gem()
USDC address.
read dai()
DAI address.
read to18ConversionFactor()
1e12 (USDC 6 decimals -> 18).
LitePSMWrapper-USDS-USDC (UsdsPsmWrapper)exchange on ethereum0xA188EEC8F81263234dA3622A406892F3D630f98c
write sellGem(address,uint256)
USDC -> USDS 1:1 minus tin. Args (usr = USDS recipient, gemAmt in USDC units, 6 decimals). Approve USDC to this wrapper. Routes through the LitePSM by converting DAI to USDS internally; same liquidity limits as the LitePSM.
write buyGem(address,uint256)
USDS -> USDC. Args (usr = USDC recipient, gemAmt in USDC units, 6 decimals). Pulls gemAmt*1e12 + tout fee in USDS from msg.sender: approve USDS to this wrapper.
read tin()
Fee on sellGem (WAD), read from the LitePSM. 0 at research time.
read tout()
Fee on buyGem (WAD), read from the LitePSM. 0 at research time.
read psm()
Underlying LitePSM 0xf6e72Db5454dd049d0788e411b06CfAF16853042.
read pocket()
Where USDC liquidity sits (from the LitePSM).
read gemJoin()
Returns the wrapper itself (backward compatibility: approve the wrapper).
USDS -> SKY Staking Rewards (REWARDS_USDS_SKY)staking on ethereum0x0650CAF159C5A49f711e8169D4336ECB9b950275
write stake(uint256)
Stake USDS (18 decimals). Approve USDS to this farm first. Rewards accrue in SKY.
write stake(uint256,uint16)
Stake with a uint16 referral code.
write withdraw(uint256)
Unstake USDS (no lockup).
write getReward()
Claim accrued SKY.
write exit()
Withdraw all USDS and claim rewards.
read earned(address)
Claimable SKY (18 decimals).
read balanceOf(address)
Staked USDS of an account.
read rewardRate()
SKY per second distributed across all stakers (18 decimals).
read periodFinish()
Unix time when the current reward period ends; rewards stop if it is not refilled. At research time periodFinish was 1769436035 (26 Jan 2026), i.e. the USDS->SKY reward stream had ended and earned() no longer grows; check periodFinish/rewardRate before staking.
read paused()
If true, new stakes are blocked (withdraw still works).
read rewardsToken()
SKY address.
read stakingToken()
USDS.
USDS -> SPK Staking Rewards (REWARDS_USDS_SPK)staking on ethereum0x173e314C7635B45322cd8Cb14f44b312e079F3af
write stake(uint256)
Stake USDS (18 decimals). Approve USDS to this farm first. Rewards accrue in SPK (Spark token 0xc20059e0317DE91738d13af027DfC4a50781b066).
write stake(uint256,uint16)
Stake with a uint16 referral code.
write withdraw(uint256)
Unstake USDS (no lockup).
write getReward()
Claim accrued SPK (Spark token 0xc20059e0317DE91738d13af027DfC4a50781b066).
write exit()
Withdraw all USDS and claim rewards.
read earned(address)
Claimable SPK (Spark token 0xc20059e0317DE91738d13af027DfC4a50781b066) (18 decimals).
read balanceOf(address)
Staked USDS of an account.
read rewardRate()
SPK (Spark token 0xc20059e0317DE91738d13af027DfC4a50781b066) per second distributed across all stakers (18 decimals).
read periodFinish()
Unix time when the current reward period ends; rewards stop if it is not refilled. Weekly periods (rewardsDuration 604800); active at research time.
read paused()
If true, new stakes are blocked (withdraw still works).
read rewardsToken()
SPK (Spark token 0xc20059e0317DE91738d13af027DfC4a50781b066) address.
read stakingToken()
USDS.
Pot (MCD_POT, DAI Savings Rate)other on ethereum0x197E90f9FAD81970bA7976f33CbD77088E5D7cf7
read dsr()
DAI Savings Rate per second in RAY (1e27). At research time 1000000000393915525145987602 (about 1.25% APY), much lower than the SSR.
read chi()
DSR accumulator (RAY).
write drip()
Permissionless: update chi to now.
sDAI (Savings Dai, ERC-4626, issued by Spark)vault on ethereum0x83F20F44975D03b1b09e64809B757c47f942BEeA
write deposit(uint256,address)
Deposit DAI (18 decimals) for sDAI shares; approve DAI to sDAI first. Earns the DSR via the Pot.
write redeem(uint256,address,address)
Burn sDAI shares (shares, receiver, owner) for DAI.
write withdraw(uint256,address,address)
Withdraw an exact DAI amount.
read convertToAssets(uint256)
DAI per share amount (about 1.1834 DAI per sDAI at research time).
read balanceOf(address)
sDAI balance.
Chainlog (CHANGELOG)other on ethereum0xdA0Ab1e0017DEbCd72Be8599041a2aa3bA7e740F
read getAddress(bytes32)
Official on-chain address registry: key as bytes32 (e.g. 'USDS', 'SUSDS', 'MCD_LITE_PSM_USDC_A'). Reverts if the key does not exist.
read version()
Current chainlog version string.
read count()
Number of registered keys (506 at research time); iterate with get(uint256) -> (bytes32 key, address).
read get(uint256)
Key and address at an index.
USDS (bridged, SkyLink)token on base0x820C137fa70C8691f0e44Dc420a5e53c168921Dc
read balanceOf(address)
Balance (18 decimals).
write approve(address,uint256)
Approve a spender, e.g. the Spark PSM3 0x1601843c5E9bC251A3272907010AFa41Fa18347E before swapExactIn.
write transfer(address,uint256)
Transfer (18 decimals).
read totalSupply()
Bridged supply on this chain.
sUSDS (bridged, plain ERC-20, no ERC-4626)token on base0x5875eEE11Cf8398102FdAd704C9E96607675467a
read balanceOf(address)
Balance (18 decimals).
write approve(address,uint256)
Approve a spender, e.g. the Spark PSM3 0x1601843c5E9bC251A3272907010AFa41Fa18347E before swapExactIn.
write transfer(address,uint256)
Transfer (18 decimals).
read totalSupply()
Bridged supply on this chain.
Spark PSM3 (USDC/USDS/sUSDS swaps)exchange on base0x1601843c5E9bC251A3272907010AFa41Fa18347E
write swapExactIn(address,address,uint256,uint256,address,uint256)
Swap (assetIn, assetOut, amountIn, minAmountOut, receiver, referralCode) between USDC 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 (6 decimals), USDS 0x820C137fa70C8691f0e44Dc420a5e53c168921Dc and sUSDS 0x5875eEE11Cf8398102FdAd704C9E96607675467a (18 decimals). Approve assetIn to the PSM3 first. No fee beyond gas; sUSDS priced by the cross-chain SSR rate provider.
write swapExactOut(address,address,uint256,uint256,address,uint256)
Swap for an exact amountOut (assetIn, assetOut, amountOut, maxAmountIn, receiver, referralCode).
read previewSwapExactIn(address,address,uint256)
Quote amountOut for (assetIn, assetOut, amountIn).
read previewSwapExactOut(address,address,uint256)
Quote amountIn for an exact amountOut.
write deposit(address,address,uint256)
LP: deposit (asset, receiver, amount) for PSM shares.
write withdraw(address,address,uint256)
LP: withdraw (asset, receiver, maxAssetsToWithdraw) by burning shares.
read pocket()
Holder of USDC liquidity (the PSM3 itself at research time); USDC.balanceOf(pocket) limits USDC out.
read totalAssets()
Total value in the PSM (USD, 18 decimals).
read usdc()
USDC address.
read usds()
USDS address.
read susds()
sUSDS address.
read rateProvider()
sUSDS/USD rate oracle (RAY).
USDS (bridged, SkyLink)token on arbitrum0x6491c05A82219b8D1479057361ff1654749b876b
read balanceOf(address)
Balance (18 decimals).
write approve(address,uint256)
Approve a spender, e.g. the Spark PSM3 0x2B05F8e1cACC6974fD79A673a341Fe1f58d27266 before swapExactIn.
write transfer(address,uint256)
Transfer (18 decimals).
read totalSupply()
Bridged supply on this chain.
sUSDS (bridged, plain ERC-20, no ERC-4626)token on arbitrum0xdDb46999F8891663a8F2828d25298f70416d7610
read balanceOf(address)
Balance (18 decimals).
write approve(address,uint256)
Approve a spender, e.g. the Spark PSM3 0x2B05F8e1cACC6974fD79A673a341Fe1f58d27266 before swapExactIn.
write transfer(address,uint256)
Transfer (18 decimals).
read totalSupply()
Bridged supply on this chain.
Spark PSM3 (USDC/USDS/sUSDS swaps)exchange on arbitrum0x2B05F8e1cACC6974fD79A673a341Fe1f58d27266
write swapExactIn(address,address,uint256,uint256,address,uint256)
Swap (assetIn, assetOut, amountIn, minAmountOut, receiver, referralCode) between USDC 0xaf88d065e77c8cC2239327C5EDb3A432268e5831 (6 decimals), USDS 0x6491c05A82219b8D1479057361ff1654749b876b and sUSDS 0xdDb46999F8891663a8F2828d25298f70416d7610 (18 decimals). Approve assetIn to the PSM3 first. No fee beyond gas; sUSDS priced by the cross-chain SSR rate provider.
write swapExactOut(address,address,uint256,uint256,address,uint256)
Swap for an exact amountOut (assetIn, assetOut, amountOut, maxAmountIn, receiver, referralCode).
read previewSwapExactIn(address,address,uint256)
Quote amountOut for (assetIn, assetOut, amountIn).
read previewSwapExactOut(address,address,uint256)
Quote amountIn for an exact amountOut.
write deposit(address,address,uint256)
LP: deposit (asset, receiver, amount) for PSM shares.
write withdraw(address,address,uint256)
LP: withdraw (asset, receiver, maxAssetsToWithdraw) by burning shares.
read pocket()
Holder of USDC liquidity (the PSM3 itself at research time); USDC.balanceOf(pocket) limits USDC out.
read totalAssets()
Total value in the PSM (USD, 18 decimals).
read usdc()
USDC address.
read usds()
USDS address.
read susds()
sUSDS address.
read rateProvider()
sUSDS/USD rate oracle (RAY).