Skip to content

Add Turbo (HyperEVM DEX) yield adapter#2722

Open
turbo-hl wants to merge 1 commit into
DefiLlama:masterfrom
turbo-hl:turbo-yield
Open

Add Turbo (HyperEVM DEX) yield adapter#2722
turbo-hl wants to merge 1 commit into
DefiLlama:masterfrom
turbo-hl:turbo-yield

Conversation

@turbo-hl

@turbo-hl turbo-hl commented Jun 2, 2026

Copy link
Copy Markdown

Adds a yield adapter for Turbo, a Uniswap V3 DEX on HyperEVM (chain 999).

Reports per-pool base APY (fees * 365 / TVL) from Turbo's on-chain factory-indexer subgraph, matching how other HyperEVM V3 DEXes (e.g. hyperswap-v3) are measured. No reward APY (Turbo LPs have no token incentives).

npm run test --adapter=turbo passes all 10 checks. Currently one pool clears the $10k TVL floor: WHYPE-USDC 0.05%, ~$22k TVL, ~19% 7d base APY (more pools appear as liquidity grows).

Related: TVL adapter merged (DefiLlama/DefiLlama-Adapters#19511); volume + fees in review (DefiLlama/dimension-adapters#7400).

Summary by CodeRabbit

  • New Features
    • Added support for fetching and displaying APY metrics for Turbo pools on HyperEVM, including base APY and 7-day average APY calculations.

@coderabbitai

coderabbitai Bot commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 0cc35daf-b82d-4bae-a1cc-d230c8198d22

📥 Commits

Reviewing files that changed from the base of the PR and between 6248c79 and 1dc678a.

📒 Files selected for processing (1)
  • src/adaptors/turbo/index.js

📝 Walkthrough

Walkthrough

This PR introduces src/adaptors/turbo/index.js, a new adapter for the yield-server that fetches and computes APY data for Turbo liquidity pools on HyperEVM. The adapter queries a GraphQL subgraph, derives per-pool TVL and annualized APY metrics (both daily and 7-day average), and exports them in standardized format.

Changes

Turbo Adapter Implementation

Layer / File(s) Summary
GraphQL Query and Pool Fetching
src/adaptors/turbo/index.js
Defines constants for the Turbo project, HyperEVM chain, minimum TVL threshold, and the GraphQL pools query. Implements fetchAllPools() with pagination logic (first/skip) to retrieve all pools above the minimum TVL from the factory-indexer subgraph.
APY and TVL Computation
src/adaptors/turbo/index.js
Implements apy() function that maps fetched pool data to standardized metrics: calculates tvlUsd from pool TVL, derives apyBase by annualizing the latest full day's fees, and computes apyBase7d by annualizing average daily fees across recent pool history. Applies utils.keepFinite to filter invalid entries.
Adapter Export Interface
src/adaptors/turbo/index.js
Exports module object with timetravel: false, the apy function, and the adapter URL pointing to turbotrade.app.

🎯 2 (Simple) | ⏱️ ~12 minutes

🐰 A Turbo pool comes to yield-server's home,
With APY metrics and HyperEVM foam,
GraphQL queries dance, pagination flows,
Fee annualization blooms as it grows,
Standardized data now ready to roam! 🚀

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Add Turbo (HyperEVM DEX) yield adapter' directly and clearly describes the main change: adding a yield adapter for Turbo on HyperEVM, which matches the primary objective of the PR.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ 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.

@turbo-hl

turbo-hl commented Jun 4, 2026

Copy link
Copy Markdown
Author

our website is still not on the listing, please fix

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