Skip to content

fix: use documented DefiLlama endpoint for DeFi TVL#17648

Merged
pettinarip merged 1 commit into
devfrom
fix/defillama-tvl-endpoint
Feb 25, 2026
Merged

fix: use documented DefiLlama endpoint for DeFi TVL#17648
pettinarip merged 1 commit into
devfrom
fix/defillama-tvl-endpoint

Conversation

@pettinarip
Copy link
Copy Markdown
Member

@pettinarip pettinarip commented Feb 24, 2026

Summary

  • Switch from undocumented /charts/Ethereum endpoint to documented /v2/historicalChainTvl/Ethereum
  • The old endpoint was returning 403 errors and showed ~$99B (unclear methodology)
  • The new documented endpoint returns verified DeFi-only TVL (~$51B), which correctly matches the "Value locked in DeFi" label in the home page

Context

The previous undocumented endpoint returned a mystery number (~$99B) that didn't add up:

  • DeFi TVL: ~$51B
  • Staked ETH: ~$68B
  • Neither sum explains $99B

Now using the documented endpoint that returns accurate, verifiable DeFi TVL.

Test plan

  • Verify the TVL stat loads correctly on the homepage
  • Confirm the displayed value (~$51B) matches DefiLlama's chain page

Switch from undocumented /charts/Ethereum to /v2/historicalChainTvl/Ethereum.

The old endpoint was returning 403 and included staking TVL (~$99B),
which was inaccurate for the "Value locked in DeFi" label. The new
documented endpoint returns actual DeFi-only TVL (~$51B).
@netlify
Copy link
Copy Markdown

netlify Bot commented Feb 24, 2026

Deploy Preview for ethereumorg ready!

Name Link
🔨 Latest commit 68a11ee
🔍 Latest deploy log https://app.netlify.com/projects/ethereumorg/deploys/699dab4c44782c00085a4150
😎 Deploy Preview https://deploy-preview-17648.ethereum.it
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
7 paths audited
Performance: 60 (no change from production)
Accessibility: 94 (🟢 up 1 from production)
Best Practices: 100 (no change from production)
SEO: 99 (no change from production)
PWA: 59 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions Bot added the tooling 🔧 Changes related to tooling of the project label Feb 24, 2026
@pettinarip pettinarip merged commit 3512b09 into dev Feb 25, 2026
7 checks passed
@pettinarip pettinarip deleted the fix/defillama-tvl-endpoint branch February 25, 2026 13:33
@pettinarip pettinarip mentioned this pull request Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tooling 🔧 Changes related to tooling of the project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants