← Protocols
Spark
01Description

Sky (formerly MakerDAO) ecosystem money market. Aave V3 fork with DAI/USDS as the flagship borrow asset, plus sDAI / sUSDS savings tokens that wrap the DAI/Sky Savings Rate.

02Best for
  • 01DAI / USDS borrowing at Maker-aligned rates
  • 02sDAI / sUSDS savings yield (ERC-4626)
  • 03ETH / LST collateral lending
  • 04stable, deeply-liquidity-backstopped credit
03Install
  • pnpm add @aave/contract-helpers @aave/math-utils ethers
04Environment variables
VariableScopeDescription
NEXT_PUBLIC_SPARK_POOLClientSpark `Pool` proxy address (Ethereum mainnet: 0xC13e21B648A5Ee794902342038FF3aDAB66BE987).
NEXT_PUBLIC_SDAI_ADDRESSClientsDAI ERC-4626 token (Ethereum mainnet: 0x83F20F44975D03b1b09e64809B757c47f942BEeA).
05Prompt snippet
Integrate Spark. Spark Lend is an Aave V3 fork — reuse `@aave/contract-helpers` `Pool` service against the Spark `Pool` proxy: `supply`, `borrow` (rate mode 2 = variable, the only mode), `repay`, `withdraw`. Read positions via `UiPoolDataProvider.getReservesHumanized` + `formatUserSummary`. For savings, sDAI/sUSDS are ERC-4626 vaults backed by the DAI/Sky Savings Rate (DSR/SSR): `sDAI.deposit(assets, receiver)` mints shares, `sDAI.redeem(shares, receiver, owner)` burns shares for DAI + accrued yield. Quote APR with `Pot.dsr()` (per-second rate, scale 1e27). Spark also exposes a PSM for DAI↔USDC/USDP swaps near 1:1.
06Gotchas
  • Spark Lend = Aave V3 fork, but it is a SEPARATE deployment with its own risk parameters, e-mode categories, and address book — do not point Aave SDK calls at Aave's Pool address.
  • DAI/USDS borrow rate on Spark is set by Sky governance and is often subsidized (or made expensive) for monetary-policy reasons; it can change abruptly via a `spell`.
  • sDAI is ERC-4626 with a monotonically increasing share price — never assume 1 sDAI = 1 DAI; always convert with `convertToAssets(shares)`.
  • Sky migrated DAI→USDS and MKR→SKY; both old and new tokens are listed in places — confirm which token your market expects.
  • Liquidations follow Aave V3 mechanics: HF < 1 ⇒ up to 50% of debt repaid by liquidators with a 5%+ bonus in collateral.
  • Oracle is Chainlink for most assets; LST collaterals (wstETH, weETH, rETH) use exchange-rate adapters — adapter staleness can pause borrows.
  • Cross-chain Spark deployments (Base, Gnosis, Arbitrum) have different listed assets and caps; do not assume Ethereum reserves are available elsewhere.
07Alternatives