Skip to content

fix: match Ethereum stablecoin entry by name (auto)#18205

Merged
pettinarip merged 1 commit into
devfrom
recovery/fix/trigger-fetch-ethereum-stablecoins-mcap-match-name
May 15, 2026
Merged

fix: match Ethereum stablecoin entry by name (auto)#18205
pettinarip merged 1 commit into
devfrom
recovery/fix/trigger-fetch-ethereum-stablecoins-mcap-match-name

Conversation

@pettinarip
Copy link
Copy Markdown
Member

@pettinarip pettinarip commented May 15, 2026

Summary

  • The fetch-ethereum-stablecoins-mcap Trigger.dev task has been failing repeatedly (6 failed runs in 24h) with Error: Ethereum stablecoin data not found.
  • Llama.fi's /stablecoinchains endpoint no longer returns the gecko_id field, so the lookup data.find(({ gecko_id }) => gecko_id === "ethereum") never matches.
  • Switch the lookup to match on name === "Ethereum", which is still present in the response (verified against the live API — exactly one matching entry).

Error Context

Changes

  • src/data-layer/fetchers/fetchEthereumStablecoinsMcap.ts
    • Changed data.find(({ gecko_id }) => gecko_id === "ethereum")data.find(({ name }) => name === "Ethereum").
    • Marked gecko_id and tokenSymbol as optional in LlamaStablecoinchainsResponseItem since the upstream API no longer returns them.

Analysis

A live request to https://stablecoins.llama.fi/stablecoinchains returns 198 items, each with only totalCirculatingUSD and name keys — gecko_id and tokenSymbol have been removed by Llama.fi. The Ethereum entry is present as { name: "Ethereum", totalCirculatingUSD: { peggedUSD: 163051852612.97598, ... } }, so matching on name restores correct behaviour.

Test Plan

  • Re-run the fetch-ethereum-stablecoins-mcap Trigger.dev task and confirm it succeeds with a non-zero value.
  • Confirm the metric still surfaces correctly downstream wherever KEYS.ETHEREUM_STABLECOINS_MCAP is consumed.

Opened automatically by the Recovery Agent.

Resolves trigger-dev item trigger-fetch-ethereum-stablecoins-mcap-ethereum-stablecoin-data-not-found.
The Llama.fi /stablecoinchains endpoint no longer returns gecko_id; switch the find to match on name === "Ethereum".
@pettinarip pettinarip added the recovery-agent Created by the Recovery Agent label May 15, 2026
@netlify
Copy link
Copy Markdown

netlify Bot commented May 15, 2026

Deploy Preview for ethereumorg ready!

Name Link
🔨 Latest commit ce3b6e4
🔍 Latest deploy log https://app.netlify.com/projects/ethereumorg/deploys/6a074d2405220c0008f3aca5
😎 Deploy Preview https://deploy-preview-18205.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: 70 (🟢 up 5 from production)
Accessibility: 96 (no change from production)
Best Practices: 100 (🟢 up 1 from production)
SEO: 98 (🔴 down 1 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.

@pettinarip pettinarip marked this pull request as ready for review May 15, 2026 16:47
@pettinarip pettinarip requested a review from wackerow as a code owner May 15, 2026 16:47
@pettinarip pettinarip merged commit 6e24e53 into dev May 15, 2026
21 of 22 checks passed
@pettinarip pettinarip deleted the recovery/fix/trigger-fetch-ethereum-stablecoins-mcap-match-name branch May 15, 2026 16:50
@claude claude Bot mentioned this pull request May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

recovery-agent Created by the Recovery Agent

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant