Open bigboydiamonds opened 4 days ago
A series of updates have been made across multiple files to improve consistency and functionality in the Synapse Interface project. Key enhancements include the unified importation of HoverTooltip
and the introduction of formatAmount
function for formatting balances. Additionally, portfolioChainId
has been integrated into relevant components to better manage token balances for different chains.
Files/Components | Change Summary |
---|---|
GasTokenAsset.tsx |
Updated HoverTooltip import and integrated formatAmount for balance display. |
PortfolioTokenVisualizer.tsx |
Modified imports and added portfolioChainId prop to compute token balances. |
SingleNetworkPortfolio.tsx |
Passed portfolioChainId prop to PortfolioTokenVisualizer . |
StateManagedBridge/AvailableBalance.tsx |
Imported formatAmount and applied it to format maxBridgeableBalance . |
In the realm of tokens, balances found, New imports and props tightly wound. With
HoverTooltip
andformatAmount
in play, Correct amounts now on display. Chains identified with care,portfolioChainId
is there, Synapse flows in harmony, everywhere.
[!TIP]
AI model upgrade
## `gpt-4o` model for reviews and chat is now live OpenAI claims that this model is better at understanding and generating code than the previous models. Please join our [Discord Community](https://discord.com/invite/GsXnASn26c) to provide any feedback or to report any issues.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Latest commit: |
a2efae9
|
Status: | ✅ Deploy successful! |
Preview URL: | https://f3e05e94.sanguine-fe.pages.dev |
Branch Preview URL: | https://fix-format-balance.sanguine-fe.pages.dev |
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 25.72293%. Comparing base (
d0f1508
) to head (a2efae9
). Report is 5 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Summary by CodeRabbit
formatAmount
.GasTokenAsset
.PortfolioTokenVisualizer
to support chain-specific token balances viaportfolioChainId
prop.SingleNetworkPortfolio
to passportfolioChainId
toPortfolioTokenVisualizer
.maxBridgeableBalance
inAvailableBalance
by formatting withformatAmount
.de80720f9eb4ef64a232bdd1f16dd0a8848bffd4: synapse-interface preview link 71bd1a6a75b8a14b48e31d42891606bd7c1aa2e3: synapse-interface preview link