Skip to content

sky-lending: OP + Unichain savings, staking engine borrow side, fixed-rate market#2791

Open
techsqrt wants to merge 7 commits into
DefiLlama:masterfrom
techsqrt:add-multichain-and-borrow
Open

sky-lending: OP + Unichain savings, staking engine borrow side, fixed-rate market#2791
techsqrt wants to merge 7 commits into
DefiLlama:masterfrom
techsqrt:add-multichain-and-borrow

Conversation

@techsqrt

@techsqrt techsqrt commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Three additions to the sky-lending adapter, one commit:

  1. sUSDS savings on Optimism ($5.1M) and Unichain ($160k) — same SSR/totalSupply logic as the existing Ethereum/Arbitrum/Base entries, per-chain deep links; both tokens priced on coins.llama.fi (confidence 0.99).
  2. Borrow side of the SKY Staking Engine — staked SKY mints USDS against the LSEV2-SKY-A ilk. Standard MCD reads (jug duty → 8.25% stability fee, vat → $156M borrowed / $181M ceiling, spot → 0.833 max LTV), reusing the jug/vat/spot ABIs already in this adapter. Fields added onto the existing staking engine row.
  3. Fixed-rate market row — the frontend embeds this Pendle sUSDS market as its fixed-yield module; dual-listed behind that frontend with implied fixed APY from the Pendle hosted API (the same source the pendle adapter uses). Id is <pt-address>-ethereum to avoid the pendle adapter's bare-address ids; row is skipped after expiry.

Stacked on #2789 (→ #2782#2781); only the last commit (7a8c58e-range head) is new here.

Suite run from repo root: 270/270 passed, 25 pools (verified all rows via direct apy() run).

techsqrt added 6 commits July 7, 2026 14:04
- New pool: SKY staking engine rewards farm
  0xB44c2Fb4181D7cb06BdFf34a46FdFE4A259b40Fc (StakingRewards; staked
  token lsSKY is the engine's 1:1 SKY wrapper, priced via SKY).
- farmsAPY generalized: per-farm stake token/symbol/poolMeta/url instead
  of hardcoded USDS.
- sUSDS pools get per-pool urls to the savings widget (ethereum /
  arbitrumone), replacing the project-level homepage fallback.
- USDS->SPK farm 0x173e314C7635B45322cd8Cb14f44b312e079F3af listed under
  sky-lending with the ${address}-${chain} pool id form, alongside the
  bare-address row the sparklend adapter owns - mirroring how
  spark-savings lists this adapter's sUSDS pools on Arbitrum/Base with
  suffixed ids.
- sUSDS on Base (0x5875eEE1...) added to the savings configs (bare
  pool id; spark-savings holds the suffixed one).
An active farm with zero staked balance would divide by zero and emit
apyReward Infinity; return 0 instead.
@coderabbitai

coderabbitai Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@techsqrt, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 11 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: f9c60721-005f-458f-884e-609eea4a8ed3

📥 Commits

Reviewing files that changed from the base of the PR and between 6719a9c and 362728d.

📒 Files selected for processing (1)
  • src/adaptors/sky-lending/index.js
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown

The sky-lending adapter exports pools:

Test Suites: 1 passed, 1 total
Tests: 277 passed, 277 total
Snapshots: 0 total
Time: 0.284 s
Ran all test suites.

Nb of pools: 25
 

Sample pools:
┌─────────┬───────────────────────────────────────────────────────┬──────────┬───────────────┬────────────┬──────────────────────────────────────────────┬────────────────────┬────────────────────┬──────────────────────────────────────────────────┬────────────────────────────────────────────────────────────────────────────────────────────────────────────┬───────────────────┬──────────────────────┬────────────────────┬──────────────────────────────────────────────────┬───────────────────┬────────────────────┬────────────────────┬───────────────────┬────────────────────┬────────────────────┬────────────┬──────────────────────────────────────────────┬────────────┬─────┐
│ (index) │ pool                                                  │ symbol   │ project       │ chain      │ token                                        │ tvlUsd             │ apyBase            │ underlyingTokens                                 │ url                                                                                                        │ isIntrinsicSource │ poolMeta             │ apyReward          │ rewardTokens                                     │ apyBaseBorrow     │ totalSupplyUsd     │ totalBorrowUsd     │ debtCeilingUsd    │ availableBorrowUsd │ ltv                │ mintedCoin │ borrowToken                                  │ borrowable │ apy │
├─────────┼───────────────────────────────────────────────────────┼──────────┼───────────────┼────────────┼──────────────────────────────────────────────┼────────────────────┼────────────────────┼──────────────────────────────────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────┼───────────────────┼──────────────────────┼────────────────────┼──────────────────────────────────────────────────┼───────────────────┼────────────────────┼────────────────────┼───────────────────┼────────────────────┼────────────────────┼────────────┼──────────────────────────────────────────────┼────────────┼─────┤
│ 0       │ '0xa3931d71877C0E7a3148CB7Eb4463524FEc27fbD'          │ 'SUSDS'  │ 'sky-lending' │ 'ethereum' │ '0xa3931d71877C0E7a3148CB7Eb4463524FEc27fbD' │ 5428176005.251275  │ 3.6000004252923823 │ [ '0xdC035D45d973E3EC169d2276DDab16f1e407384F' ] │ 'https://app.sky.money/?network=ethereum&widget=savings'                                                   │ true              │                      │                    │                                                  │                   │                    │                    │                   │                    │                    │            │                                              │            │     │
│ 1       │ '0xB44c2Fb4181D7cb06BdFf34a46FdFE4A259b40Fc'          │ 'SKY'    │ 'sky-lending' │ 'ethereum' │ '0xB44c2Fb4181D7cb06BdFf34a46FdFE4A259b40Fc' │ 910363623.680447   │                    │ [ '0x56072C95FAA701256059aa122697B133aDEd9279' ] │ 'https://app.sky.money/?network=ethereum&widget=stake'                                                     │                   │ 'SKY Staking Engine' │ 5.69124820031787   │ [ '0x56072C95FAA701256059aa122697B133aDEd9279' ] │ 8.250000098796528 │ 910363623.680447   │ 156036277.34821704 │ 180554010.92475   │ 24517733.57653296  │ 0.8333333333333334 │ 'USDS'     │ '0xdC035D45d973E3EC169d2276DDab16f1e407384F' │ true       │     │
│ 2       │ '0xF04a5cC80B1E94C69B48f5ee68a08CD2F09A7c3E'          │ 'WETH'   │ 'sky-lending' │ 'ethereum' │ null                                         │ 888273786.7768357  │                    │ [ '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2' ] │                                                                                                            │                   │ 'ETH-C'              │                    │                                                  │ 8.250000000014952 │ 888273786.7768357  │ 288889004.81379974 │ 388394703.5482366 │ 99505698.7344369   │ 0.5882352941176471 │ 'DAI'      │ '0x6B175474E89094C44Da98b954EedeAC495271d0F' │ true       │ 0   │
│ 3       │ '0x173e314c7635b45322cd8cb14f44b312e079f3af-ethereum' │ 'USDS'   │ 'sky-lending' │ 'ethereum' │ '0x173e314C7635B45322cd8Cb14f44b312e079F3af' │ 568156511.4902563  │                    │ [ '0xdC035D45d973E3EC169d2276DDab16f1e407384F' ] │ 'https://app.sky.money/?network=ethereum&widget=rewards&reward=0x173e314C7635B45322cd8Cb14f44b312e079F3af' │                   │ 'SPK Farming Pool'   │ 3.3919557414342445 │ [ '0xc20059e0317DE91738d13af027DfC4a50781b066' ] │                   │                    │                    │                   │                    │                    │            │                                              │            │     │
│ 4       │ '0x2F0b23f53734252Bda2277357e97e1517d6B042A'          │ 'WETH'   │ 'sky-lending' │ 'ethereum' │ null                                         │ 503313388.10059017 │                    │ [ '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2' ] │                                                                                                            │                   │ 'ETH-A'              │                    │                                                  │ 8.499999999986533 │ 503313388.10059017 │ 175875868.0611271  │ 314235558.5688142 │ 138359690.50768712 │ 0.6896551724137931 │ 'DAI'      │ '0x6B175474E89094C44Da98b954EedeAC495271d0F' │ true       │ 0   │
│ 5       │ '0xddb46999f8891663a8f2828d25298f70416d7610'          │ 'SUSDS'  │ 'sky-lending' │ 'arbitrum' │ '0xddb46999f8891663a8f2828d25298f70416d7610' │ 360216364.63908404 │ 3.6000004252923823 │ [ '0x6491c05a82219b8d1479057361ff1654749b876b' ] │ 'https://app.sky.money/?network=arbitrumone&widget=savings'                                                │                   │                      │                    │                                                  │                   │                    │                    │                   │                    │                    │            │                                              │            │     │
│ 6       │ '0x83F20F44975D03b1b09e64809B757c47f942BEeA'          │ 'sDAI'   │ 'sky-lending' │ 'ethereum' │ '0x83F20F44975D03b1b09e64809B757c47f942BEeA' │ 214292906.77196616 │ 1.2500001331042565 │ [ '0x6B175474E89094C44Da98b954EedeAC495271d0F' ] │                                                                                                            │ true              │                      │                    │                                                  │                   │                    │                    │                   │                    │                    │            │                                              │            │     │
│ 7       │ '0x99CD4Ec3f88A45940936F469E4bB72A2A701EEB9'          │ 'STUSDS' │ 'sky-lending' │ 'ethereum' │ '0x99CD4Ec3f88A45940936F469E4bB72A2A701EEB9' │ 180514628.9176202  │ 6.989999905394906  │ [ '0xdC035D45d973E3EC169d2276DDab16f1e407384F' ] │ 'https://app.sky.money/?network=ethereum&widget=expert&expert_module=stusds&flow=supply'                   │ true              │ 'Expert Mode'        │                    │                                                  │                   │                    │                    │                   │                    │                    │            │                                              │            │     │
│ 8       │ '0x4E41488C19cD35EB4de3083Fc3e204854c75c86a'          │ 'USDS'   │ 'sky-lending' │ 'ethereum' │ '0x4E41488C19cD35EB4de3083Fc3e204854c75c86a' │ 175732747.57052648 │                    │ [ '0xdC035D45d973E3EC169d2276DDab16f1e407384F' ] │ 'https://app.sky.money/?network=ethereum&widget=rewards&reward=0x4E41488C19cD35EB4de3083Fc3e204854c75c86a' │                   │ 'GROVE Farming Pool' │ 20.740756466383843 │ [ '0xb30FE1CF884b48A22A50D22A9282004f2c5E9406' ] │                   │                    │                    │                   │                    │                    │            │                                              │            │     │
│ 9       │ '0x10CD5fbe1b404B7E19Ef964B63939907bdaf42E2'          │ 'wstETH' │ 'sky-lending' │ 'ethereum' │ null                                         │ 39239483.569003195 │                    │ [ '0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0' ] │                                                                                                            │                   │ 'WSTETH-A'           │                    │                                                  │ 9.499999999990068 │ 39239483.569003195 │ 17385832.674049098 │ 59599461.42124941 │ 42213628.74720031  │ 0.6666666666666666 │ 'DAI'      │ '0x6B175474E89094C44Da98b954EedeAC495271d0F' │ true       │ 0   │
└─────────┴───────────────────────────────────────────────────────┴──────────┴───────────────┴────────────┴──────────────────────────────────────────────┴────────────────────┴────────────────────┴──────────────────────────────────────────────────┴────────────────────────────────────────────────────────────────────────────────────────────────────────────┴───────────────────┴──────────────────────┴────────────────────┴──────────────────────────────────────────────────┴───────────────────┴────────────────────┴────────────────────┴───────────────────┴────────────────────┴────────────────────┴────────────┴──────────────────────────────────────────────┴────────────┴─────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama

@techsqrt

techsqrt commented Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

Added one more pool in the latest commit: the USDS Chronicle Points farm ($15.4M staked, same StakingRewards pattern). Its rewards are off-chain points — the contract's rewardsToken() is the zero address — so the row deliberately carries no apyReward/rewardTokens per the non-tradable-rewards methodology. Suite: 284/284, 26 pools.

@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown

The sky-lending adapter exports pools:

Test Suites: 1 passed, 1 total
Tests: 284 passed, 284 total
Snapshots: 0 total
Time: 0.339 s
Ran all test suites.

Nb of pools: 26
 

Sample pools:
┌─────────┬───────────────────────────────────────────────────────┬──────────┬───────────────┬────────────┬──────────────────────────────────────────────┬────────────────────┬────────────────────┬──────────────────────────────────────────────────┬────────────────────────────────────────────────────────────────────────────────────────────────────────────┬───────────────────┬──────────────────────┬────────────────────┬──────────────────────────────────────────────────┬───────────────────┬────────────────────┬────────────────────┬───────────────────┬────────────────────┬────────────────────┬────────────┬──────────────────────────────────────────────┬────────────┬─────┐
│ (index) │ pool                                                  │ symbol   │ project       │ chain      │ token                                        │ tvlUsd             │ apyBase            │ underlyingTokens                                 │ url                                                                                                        │ isIntrinsicSource │ poolMeta             │ apyReward          │ rewardTokens                                     │ apyBaseBorrow     │ totalSupplyUsd     │ totalBorrowUsd     │ debtCeilingUsd    │ availableBorrowUsd │ ltv                │ mintedCoin │ borrowToken                                  │ borrowable │ apy │
├─────────┼───────────────────────────────────────────────────────┼──────────┼───────────────┼────────────┼──────────────────────────────────────────────┼────────────────────┼────────────────────┼──────────────────────────────────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────┼───────────────────┼──────────────────────┼────────────────────┼──────────────────────────────────────────────────┼───────────────────┼────────────────────┼────────────────────┼───────────────────┼────────────────────┼────────────────────┼────────────┼──────────────────────────────────────────────┼────────────┼─────┤
│ 0       │ '0xa3931d71877C0E7a3148CB7Eb4463524FEc27fbD'          │ 'SUSDS'  │ 'sky-lending' │ 'ethereum' │ '0xa3931d71877C0E7a3148CB7Eb4463524FEc27fbD' │ 5427683120.38421   │ 3.6000004252923823 │ [ '0xdC035D45d973E3EC169d2276DDab16f1e407384F' ] │ 'https://app.sky.money/?network=ethereum&widget=savings'                                                   │ true              │                      │                    │                                                  │                   │                    │                    │                   │                    │                    │            │                                              │            │     │
│ 1       │ '0xB44c2Fb4181D7cb06BdFf34a46FdFE4A259b40Fc'          │ 'SKY'    │ 'sky-lending' │ 'ethereum' │ '0xB44c2Fb4181D7cb06BdFf34a46FdFE4A259b40Fc' │ 911373339.707883   │                    │ [ '0x56072C95FAA701256059aa122697B133aDEd9279' ] │ 'https://app.sky.money/?network=ethereum&widget=stake'                                                     │                   │ 'SKY Staking Engine' │ 5.69124820031787   │ [ '0x56072C95FAA701256059aa122697B133aDEd9279' ] │ 8.250000098796528 │ 911373339.707883   │ 156036277.34821704 │ 180554010.92475   │ 24517733.57653296  │ 0.8333333333333334 │ 'USDS'     │ '0xdC035D45d973E3EC169d2276DDab16f1e407384F' │ true       │     │
│ 2       │ '0xF04a5cC80B1E94C69B48f5ee68a08CD2F09A7c3E'          │ 'WETH'   │ 'sky-lending' │ 'ethereum' │ null                                         │ 888119945.2887242  │                    │ [ '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2' ] │                                                                                                            │                   │ 'ETH-C'              │                    │                                                  │ 8.250000000014952 │ 888119945.2887242  │ 288889004.81379974 │ 388394703.5482366 │ 99505698.7344369   │ 0.5882352941176471 │ 'DAI'      │ '0x6B175474E89094C44Da98b954EedeAC495271d0F' │ true       │ 0   │
│ 3       │ '0x173e314c7635b45322cd8cb14f44b312e079f3af-ethereum' │ 'USDS'   │ 'sky-lending' │ 'ethereum' │ '0x173e314C7635B45322cd8Cb14f44b312e079F3af' │ 568156511.4902563  │                    │ [ '0xdC035D45d973E3EC169d2276DDab16f1e407384F' ] │ 'https://app.sky.money/?network=ethereum&widget=rewards&reward=0x173e314C7635B45322cd8Cb14f44b312e079F3af' │                   │ 'SPK Farming Pool'   │ 3.3919557414342445 │ [ '0xc20059e0317DE91738d13af027DfC4a50781b066' ] │                   │                    │                    │                   │                    │                    │            │                                              │            │     │
│ 4       │ '0x2F0b23f53734252Bda2277357e97e1517d6B042A'          │ 'WETH'   │ 'sky-lending' │ 'ethereum' │ null                                         │ 503226218.4894134  │                    │ [ '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2' ] │                                                                                                            │                   │ 'ETH-A'              │                    │                                                  │ 8.499999999986533 │ 503226218.4894134  │ 175875868.0611271  │ 314235558.5688142 │ 138359690.50768712 │ 0.6896551724137931 │ 'DAI'      │ '0x6B175474E89094C44Da98b954EedeAC495271d0F' │ true       │ 0   │
│ 5       │ '0xddb46999f8891663a8f2828d25298f70416d7610'          │ 'SUSDS'  │ 'sky-lending' │ 'arbitrum' │ '0xddb46999f8891663a8f2828d25298f70416d7610' │ 360216364.63908404 │ 3.6000004252923823 │ [ '0x6491c05a82219b8d1479057361ff1654749b876b' ] │ 'https://app.sky.money/?network=arbitrumone&widget=savings'                                                │                   │                      │                    │                                                  │                   │                    │                    │                   │                    │                    │            │                                              │            │     │
│ 6       │ '0x83F20F44975D03b1b09e64809B757c47f942BEeA'          │ 'sDAI'   │ 'sky-lending' │ 'ethereum' │ '0x83F20F44975D03b1b09e64809B757c47f942BEeA' │ 214292906.77196616 │ 1.2500001331042565 │ [ '0x6B175474E89094C44Da98b954EedeAC495271d0F' ] │                                                                                                            │ true              │                      │                    │                                                  │                   │                    │                    │                   │                    │                    │            │                                              │            │     │
│ 7       │ '0x99CD4Ec3f88A45940936F469E4bB72A2A701EEB9'          │ 'STUSDS' │ 'sky-lending' │ 'ethereum' │ '0x99CD4Ec3f88A45940936F469E4bB72A2A701EEB9' │ 180514628.9176202  │ 6.989999905394906  │ [ '0xdC035D45d973E3EC169d2276DDab16f1e407384F' ] │ 'https://app.sky.money/?network=ethereum&widget=expert&expert_module=stusds&flow=supply'                   │ true              │ 'Expert Mode'        │                    │                                                  │                   │                    │                    │                   │                    │                    │            │                                              │            │     │
│ 8       │ '0x4E41488C19cD35EB4de3083Fc3e204854c75c86a'          │ 'USDS'   │ 'sky-lending' │ 'ethereum' │ '0x4E41488C19cD35EB4de3083Fc3e204854c75c86a' │ 176232482.1350934  │                    │ [ '0xdC035D45d973E3EC169d2276DDab16f1e407384F' ] │ 'https://app.sky.money/?network=ethereum&widget=rewards&reward=0x4E41488C19cD35EB4de3083Fc3e204854c75c86a' │                   │ 'GROVE Farming Pool' │ 20.681942831258556 │ [ '0xb30FE1CF884b48A22A50D22A9282004f2c5E9406' ] │                   │                    │                    │                   │                    │                    │            │                                              │            │     │
│ 9       │ '0x10CD5fbe1b404B7E19Ef964B63939907bdaf42E2'          │ 'wstETH' │ 'sky-lending' │ 'ethereum' │ null                                         │ 39239483.569003195 │                    │ [ '0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0' ] │                                                                                                            │                   │ 'WSTETH-A'           │                    │                                                  │ 9.499999999990068 │ 39239483.569003195 │ 17385832.674049098 │ 59599461.42124941 │ 42213628.74720031  │ 0.6666666666666666 │ 'DAI'      │ '0x6B175474E89094C44Da98b954EedeAC495271d0F' │ true       │ 0   │
└─────────┴───────────────────────────────────────────────────────┴──────────┴───────────────┴────────────┴──────────────────────────────────────────────┴────────────────────┴────────────────────┴──────────────────────────────────────────────────┴────────────────────────────────────────────────────────────────────────────────────────────────────────────┴───────────────────┴──────────────────────┴────────────────────┴──────────────────────────────────────────────────┴───────────────────┴────────────────────┴────────────────────┴───────────────────┴────────────────────┴────────────────────┴────────────┴──────────────────────────────────────────────┴────────────┴─────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant