Fix morpho decimal place issue#134
Merged
taylanpince merged 3 commits intomasterfrom Mar 25, 2026
Merged
Conversation
sync-morpho-v1-tokens.ts fetches from Morpho v1 API (vaults endpoint), same filtering as v2: top 20 by TVL per chain, major assets only. V1 vaults have significantly higher TVLs (up to $445M). 16 new vaults added across 5 chains. Add protocol tagging and Morpho/trails token sync scripts - sync-aave-tokens.ts: Add protocol:"aave" to all new and existing aTokens (4 new, 273 tagged across 9 chains) - sync-morpho-tokens.ts: Fetch top 20 Morpho vaults per chain by TVL from Morpho GraphQL API, filtered to major assets (41 added) - sync-trails-earn-pool-tokens.ts: Read pools.json as trails source, deduping against aave/morpho tokens (106 added, 94 deduped) Rename pools.json to trails-earn-pools-data.json
taylanpince
approved these changes
Mar 25, 2026
taylanpince
pushed a commit
that referenced
this pull request
Apr 30, 2026
* Add tools to get morpho vaults, and sync static trails earn list sync-morpho-v1-tokens.ts fetches from Morpho v1 API (vaults endpoint), same filtering as v2: top 20 by TVL per chain, major assets only. V1 vaults have significantly higher TVLs (up to $445M). 16 new vaults added across 5 chains. Add protocol tagging and Morpho/trails token sync scripts - sync-aave-tokens.ts: Add protocol:"aave" to all new and existing aTokens (4 new, 273 tagged across 9 chains) - sync-morpho-tokens.ts: Fetch top 20 Morpho vaults per chain by TVL from Morpho GraphQL API, filtered to major assets (41 added) - sync-trails-earn-pool-tokens.ts: Read pools.json as trails source, deduping against aave/morpho tokens (106 added, 94 deduped) Rename pools.json to trails-earn-pools-data.json * Restore the removed tokens lost in rebase * Fix morpho vault decimals
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.
The sync tool was incorrectly using the underlying asset decimals as the vault decimals, so while while USDC has 6 decimals, the vaults had 18, incorrectly showing the total user asset value to be significantly inflated