Skip to content

Add Cube DEX yield adapter#2671

Open
sepezho wants to merge 2 commits into
DefiLlama:masterfrom
sepezho:add-cube-yields
Open

Add Cube DEX yield adapter#2671
sepezho wants to merge 2 commits into
DefiLlama:masterfrom
sepezho:add-cube-yields

Conversation

@sepezho
Copy link
Copy Markdown

@sepezho sepezho commented May 12, 2026

Lists every enabled Cube pool on Solana with TVL, fee-derived APY (24h and 7d), volume, and underlying token mints. Data comes from the Cube backend's on-chain swap-event indexer (open REST endpoint at https://api.cubee.ee/api/defillama/yields).

Lists every enabled Cube pool on Solana with TVL, fee-derived APY
(24h and 7d), volume, and underlying token mints. Data comes from
the Cube backend's on-chain swap-event indexer (open REST endpoint
at https://api.cubee.ee/api/defillama/yields).
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 12, 2026

Warning

Rate limit exceeded

@sepezho has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 34 minutes and 43 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 04d1889e-fe2e-41b7-8181-5a2f44d554a8

📥 Commits

Reviewing files that changed from the base of the PR and between 4d12720 and 3be40ec.

📒 Files selected for processing (1)
  • src/adaptors/cube/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 and usage tips.

The /api/defillama/yields endpoint is now live on api.cubee.ee following
backend redeploy. Previous CI run failed because the endpoint hadn't
been deployed yet.
@github-actions
Copy link
Copy Markdown

The cube adapter exports pools:

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

Nb of pools: 2
 

Sample pools:
┌─────────┬────────────────────────────────────────────────┬──────────┬─────────┬─────────────────────────┬────────────────────┬───────────────────┬───────────────────┬────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┬─────────────┬───────────────────┬─────────────┬──────────────────────────────────────────────────────────────────────┬───────┐
│ (index) │ pool                                           │ chain    │ project │ symbol                  │ tvlUsd             │ apyBase           │ apyBase7d         │ underlyingTokens                                                                                                                                                   │ volumeUsd1d │ volumeUsd7d       │ poolMeta    │ url                                                                  │ token │
├─────────┼────────────────────────────────────────────────┼──────────┼─────────┼─────────────────────────┼────────────────────┼───────────────────┼───────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼─────────────┼───────────────────┼─────────────┼──────────────────────────────────────────────────────────────────────┼───────┤
│ 0       │ 'EFfVk5qcKBKEQXeWwWjVsnit3YqLNXNENUDW5Fxdfyjy' │ 'Solana' │ 'cube'  │ 'SOL-JITOSOL-USDC-USDT' │ 1086.9787466761736 │ 5.349654735919469 │ 3.039800925366545 │ [ 'So11111111111111111111111111111111111111112', 'J1toso1uCk3RLmjorhTtrVwY9HJ7X8V9yYac6Y7kGCPn', 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v', ... 1 more item ] │ 19.914122   │ 79.210198         │ 'CubeePool' │ 'https://cubee.ee/pool/EFfVk5qcKBKEQXeWwWjVsnit3YqLNXNENUDW5Fxdfyjy' │ null  │
│ 1       │ '27cJQ5gVFgTKt7YkeYVxPM14WQuhLMvUpqxSiaKwrzMM' │ 'Solana' │ 'cube'  │ 'JITOSOL-SOL-USDC-USDT' │ 0                  │ 0                 │ 0                 │ [ 'J1toso1uCk3RLmjorhTtrVwY9HJ7X8V9yYac6Y7kGCPn', 'So11111111111111111111111111111111111111112', 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v', ... 1 more item ] │ 0           │ 5.108308678312694 │ 'init'      │ 'https://cubee.ee/pool/27cJQ5gVFgTKt7YkeYVxPM14WQuhLMvUpqxSiaKwrzMM' │ null  │
└─────────┴────────────────────────────────────────────────┴──────────┴─────────┴─────────────────────────┴────────────────────┴───────────────────┴───────────────────┴────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┴─────────────┴───────────────────┴─────────────┴──────────────────────────────────────────────────────────────────────┴───────┘
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