feat: return raw on-chain totalSupply#116
Merged
bowd merged 12 commits intofeat/sdk-v2from Jan 29, 2026
Merged
Conversation
Remove supply adjustment logic from StableTokenService so that totalSupply returns the actual on-chain ERC20 totalSupply values. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Update test expectations from old symbols (cUSD, cEUR, etc.) to new symbols (USDm, EURm, etc.). Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Use Promise.all to fetch metadata and totalSupply for all tokens concurrently instead of sequentially. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- CollateralAssetService: fetch isCollateral checks and metadata in parallel - SupplyAdjustmentService: run all calculators in parallel Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Remove unused supply adjustment functionality: - SupplyAdjustmentService and its tests - Supply calculators (UniV3, AAVE, Multisig) - Related constants (stableTokenMetadata, aaveConfig, protocolAddresses, mentoAddresses) - UniswapV3 ABI - SupplyAdjustment types Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This reverts commit 5b0165e.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
5 tasks
simeon-clawd
added a commit
to simeon-clawd/mento-sdk
that referenced
this pull request
Jan 28, 2026
- Remove supply adjustment logic from TokenService so that totalSupply returns the actual on-chain ERC20 totalSupply values - Use Promise.all to fetch metadata and totalSupply for all tokens concurrently instead of sequentially - Parallelize isCollateral checks and metadata fetching in getCollateralAssets() Port of PR mento-protocol#116 changes to V3 architecture.
bayological
approved these changes
Jan 28, 2026
Andrew718PLTS
approved these changes
Jan 29, 2026
Supply adjustments have been migrated to the analytics API. Removed: - SupplyAdjustmentService and tests - Supply calculators (UniV3, AAVE, Multisig) - Related constants and ABIs - SupplyAdjustment types Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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
StableTokenServicetotalSupplynow returns the actual on-chain ERC20totalSupply()values without any adjustmentsSupplyAdjustmentServiceand calculators (migrated to analytics API)2.0.0-beta.16Related
Test plan
getStableTokens()returns raw on-chain total supply values🤖 Generated with Claude Code