BTB Finance for agents

Protocols / CDP

Sky (formerly MakerDAO)

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.

On-chainEVM20 contractsWebsite · Docs

get_protocol({ "protocol": "sky" })

Risks an agent should know

What an agent 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().

Contracts

ethereum · chain id 1

ContractAddressKey functionsTry
USDS (Sky Dollar)
token · proxy
0xdC035D45d973E3EC169d2276DDab16f1e407384F
source
readbalanceOf(address)
writeapprove(address,uint256)
writetransfer(address,uint256)
readallowance(address,address)
readtotalSupply()
writepermit(address,address,uint256,uint256,uint8,bytes32,bytes32)
Full ABI
sUSDS (Savings USDS, ERC-4626)
vault · proxy
0xa3931d71877C0E7a3148CB7Eb4463524FEc27fbD
source
writedeposit(uint256,address)
writedeposit(uint256,address,uint16)
writemint(uint256,address)
writeredeem(uint256,address,address)
writewithdraw(uint256,address,address)
readconvertToAssets(uint256)
readconvertToShares(uint256)
readpreviewRedeem(uint256)
+5 more via get_protocol
Full ABI
DAI (MCD_DAI)
token
0x6B175474E89094C44Da98b954EedeAC495271d0F
source
readbalanceOf(address)
writeapprove(address,uint256)
writetransfer(address,uint256)
readallowance(address,address)
readtotalSupply()
Full ABI
DaiUsds converter (DAI_USDS)
exchange
0x3225737a9Bbb6473CB4a45b7244ACa2BeFdB276A
source
writedaiToUsds(address,uint256)
writeusdsToDai(address,uint256)
readdai()
readusds()
Full ABI
SKY (governance token, MCD_GOV)
token
0x56072C95FAA701256059aa122697B133aDEd9279
source
readbalanceOf(address)
writeapprove(address,uint256)
writetransfer(address,uint256)
readallowance(address,address)
readtotalSupply()
writepermit(address,address,uint256,uint256,uint8,bytes32,bytes32)
Full ABI
MKR (legacy governance token)
token
0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2
source
readbalanceOf(address)
writeapprove(address,uint256)
writetransfer(address,uint256)
Full ABI
MkrSky converter V2 (MKR_SKY, one-way)
exchange
0xA1Ea1bA18E88C381C724a75F23a130420C403f9a
source
writemkrToSky(address,uint256)
readrate()
readfee()
readtake()
readmkr()
readsky()
Full ABI
LitePSM USDC-A (LitePSM-DAI-USDC, MCD_LITE_PSM_USDC_A)
exchange
0xf6e72Db5454dd049d0788e411b06CfAF16853042
source
writesellGem(address,uint256)
writebuyGem(address,uint256)
readtin()
readtout()
readpocket()
readbuf()
readrush()
writefill()
+3 more via get_protocol
Full ABI
LitePSMWrapper-USDS-USDC (UsdsPsmWrapper)
exchange
0xA188EEC8F81263234dA3622A406892F3D630f98c
source
writesellGem(address,uint256)
writebuyGem(address,uint256)
readtin()
readtout()
readpsm()
readpocket()
readgemJoin()
Full ABI
USDS -> SKY Staking Rewards (REWARDS_USDS_SKY)
staking
0x0650CAF159C5A49f711e8169D4336ECB9b950275
source
writestake(uint256)
writestake(uint256,uint16)
writewithdraw(uint256)
writegetReward()
writeexit()
readearned(address)
readbalanceOf(address)
readrewardRate()
+4 more via get_protocol
Full ABI
USDS -> SPK Staking Rewards (REWARDS_USDS_SPK)
staking
0x173e314C7635B45322cd8Cb14f44b312e079F3af
source
writestake(uint256)
writestake(uint256,uint16)
writewithdraw(uint256)
writegetReward()
writeexit()
readearned(address)
readbalanceOf(address)
readrewardRate()
+4 more via get_protocol
Full ABI
Pot (MCD_POT, DAI Savings Rate)
other
0x197E90f9FAD81970bA7976f33CbD77088E5D7cf7
source
readdsr()
readchi()
writedrip()
Full ABI
sDAI (Savings Dai, ERC-4626, issued by Spark)
vault
0x83F20F44975D03b1b09e64809B757c47f942BEeA
source
writedeposit(uint256,address)
writeredeem(uint256,address,address)
writewithdraw(uint256,address,address)
readconvertToAssets(uint256)
readbalanceOf(address)
Full ABI
Chainlog (CHANGELOG)
other
0xdA0Ab1e0017DEbCd72Be8599041a2aa3bA7e740F
source
readgetAddress(bytes32)
readversion()
readcount()
readget(uint256)
Full ABI

base · chain id 8453

ContractAddressKey functionsTry
USDS (bridged, SkyLink)
token · proxy
0x820C137fa70C8691f0e44Dc420a5e53c168921Dc
source
readbalanceOf(address)
writeapprove(address,uint256)
writetransfer(address,uint256)
readtotalSupply()
Full ABI
sUSDS (bridged, plain ERC-20, no ERC-4626)
token · proxy
0x5875eEE11Cf8398102FdAd704C9E96607675467a
source
readbalanceOf(address)
writeapprove(address,uint256)
writetransfer(address,uint256)
readtotalSupply()
Full ABI
Spark PSM3 (USDC/USDS/sUSDS swaps)
exchange
0x1601843c5E9bC251A3272907010AFa41Fa18347E
source
writeswapExactIn(address,address,uint256,uint256,address,uint256)
writeswapExactOut(address,address,uint256,uint256,address,uint256)
readpreviewSwapExactIn(address,address,uint256)
readpreviewSwapExactOut(address,address,uint256)
writedeposit(address,address,uint256)
writewithdraw(address,address,uint256)
readpocket()
readtotalAssets()
+4 more via get_protocol
Full ABI

arbitrum · chain id 42161

ContractAddressKey functionsTry
USDS (bridged, SkyLink)
token · proxy
0x6491c05A82219b8D1479057361ff1654749b876b
source
readbalanceOf(address)
writeapprove(address,uint256)
writetransfer(address,uint256)
readtotalSupply()
Full ABI
sUSDS (bridged, plain ERC-20, no ERC-4626)
token · proxy
0xdDb46999F8891663a8F2828d25298f70416d7610
source
readbalanceOf(address)
writeapprove(address,uint256)
writetransfer(address,uint256)
readtotalSupply()
Full ABI
Spark PSM3 (USDC/USDS/sUSDS swaps)
exchange
0x2B05F8e1cACC6974fD79A673a341Fe1f58d27266
source
writeswapExactIn(address,address,uint256,uint256,address,uint256)
writeswapExactOut(address,address,uint256,uint256,address,uint256)
readpreviewSwapExactIn(address,address,uint256)
readpreviewSwapExactOut(address,address,uint256)
writedeposit(address,address,uint256)
writewithdraw(address,address,uint256)
readpocket()
readtotalAssets()
+4 more via get_protocol
Full ABI

APIs

Sky Chainlog API
auth: none
https://chainlog.sky.money/api/mainnet/active.json
JSON map of every current official Ethereum contract key -> address (same data as the on-chain Chainlog 0xdA0Ab1e0017DEbCd72Be8599041a2aa3bA7e740F). Use it to resolve addresses not listed here (Vat, Jug, joins, LockstakeEngine, stUSDS, bridges).
Sky Governance (vote data) API
auth: none
https://vote.sky.money/api
Read-only polls, executive spells, delegates and voter data (Swagger at https://vote.sky.money/api-docs); data before 19 May 2025 is at https://vote.makerdao.com/api.

Notes

Ethereum addresses come from the official Sky chainlog (chainlog.sky.money API, mirrored on-chain at 0xdA0Ab1e0017DEbCd72Be8599041a2aa3bA7e740F) and the Sky developer docs (LitePSM guide, token-governance-upgrade key info). Base USDS/sUSDS come from the Sky developer docs' SkyLink Base guide; Arbitrum USDS/sUSDS and both PSM3 contracts are only listed by Spark (a Sky 'Star' whose SubProxy is in the chainlog as SPARK_SUBPROXY), so Spark's docs are cited for them. sDAI is a Spark-issued wrapper of the Sky Pot (DSR) and is not in the Sky chainlog; Spark docs are cited. Every address was checked for code on its chain and wiring read on-chain (sUSDS.asset=USDS, DaiUsds dai/usds, MkrSky mkr/sky/rate=24000, LitePSM gem=USDC/dai=DAI/pocket, wrapper.psm=LitePSM, farms' staking/rewards tokens, PSM3 usdc/usds/susds on Base and Arbitrum). Signatures come from Sourcify-verified sources (DssLitePsm, UsdsPsmWrapper, DaiUsds, MkrSky, SUsds, StakingRewards, SavingsDai, PSM3). Mentioned but not listed: stUSDS (STUSDS 0x99CD4Ec3f88A45940936F469E4bB72A2A701EEB9, staked USDS with a variable rate funding SKY-backed borrowing; see developers.skyeco.com/protocol/tokens/stusds), LockstakeEngine (staking engine for SKY with borrowing and delegation; LOCKSTAKE_ENGINE in the chainlog), Vat/Jug/vault (CDP) contracts, SkyLink bridges (BASE_TOKEN_BRIDGE, ARBITRUM_TOKEN_BRIDGE, OPTIMISM_TOKEN_BRIDGE, UNICHAIN_TOKEN_BRIDGE in the chainlog), the legacy MKR->SKY converter V1, and USDS/sUSDS/PSM3 on Optimism and Unichain (listed on Spark's docs pages). Spark's own lending market (SparkLend) is a separate protocol, not part of this entry. The legacy PSM (MCD_PSM_USDC_A) with its separate GemJoin approval target is no longer in the chainlog; the LitePSM takes approvals on itself. MCD_GOV in the chainlog now points to SKY.

Sources

Researched 2026-11-25. Addresses are copied from the official sources above; check them before moving large amounts.