fix: match Ethereum stablecoin entry by name (auto)#18205
Merged
pettinarip merged 1 commit intoMay 15, 2026
Merged
Conversation
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".
✅ Deploy Preview for ethereumorg ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
fetch-ethereum-stablecoins-mcapTrigger.dev task has been failing repeatedly (6 failed runs in 24h) withError: Ethereum stablecoin data not found./stablecoinchainsendpoint no longer returns thegecko_idfield, so the lookupdata.find(({ gecko_id }) => gecko_id === "ethereum")never matches.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.tsdata.find(({ gecko_id }) => gecko_id === "ethereum")→data.find(({ name }) => name === "Ethereum").gecko_idandtokenSymbolas optional inLlamaStablecoinchainsResponseItemsince the upstream API no longer returns them.Analysis
A live request to
https://stablecoins.llama.fi/stablecoinchainsreturns 198 items, each with onlytotalCirculatingUSDandnamekeys —gecko_idandtokenSymbolhave been removed by Llama.fi. The Ethereum entry is present as{ name: "Ethereum", totalCirculatingUSD: { peggedUSD: 163051852612.97598, ... } }, so matching onnamerestores correct behaviour.Test Plan
fetch-ethereum-stablecoins-mcapTrigger.dev task and confirm it succeeds with a non-zerovalue.KEYS.ETHEREUM_STABLECOINS_MCAPis consumed.Opened automatically by the Recovery Agent.