You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When showing token amounts Seafood currently rounds out tokens that are very small against usd. For example Seafood shows 0.00 assets for this USDR vault when the correct value us 0.00000806.
Update formatNumber to include compact forms for numbers less than zero using greek si units for milli, micro, nano, and pico. For numbers greater than zero change the logic to use an uppercase unit. For numbers less than zero use lowercase. Here's formatNumber:
Update the Tokens component to support hover and click features. Use a localstorage value to store the user's current preference (unclicked vs clicked, ie compact vs expanded):
When showing token amounts Seafood currently rounds out tokens that are very small against usd. For example Seafood shows 0.00 assets for this USDR vault when the correct value us 0.00000806.
https://seafood.yearn.watch/vault/0x531fDb1C8429F404116932226D487db94471C4b7

Update Seafood to work like this instead:

Tasks
Update
formatNumberto include compact forms for numbers less than zero using greek si units for milli, micro, nano, and pico. For numbers greater than zero change the logic to use an uppercase unit. For numbers less than zero use lowercase. Here'sformatNumber:seafood/src/utils/utils.js
Line 38 in 9d96454
Add tests here to demonstrate the new formats work:
https://github.com/yearn/seafood/blob/main/src/utils/utils.test.js
Update the
Tokenscomponent to support hover and click features. Use a localstorage value to store the user's current preference (unclicked vs clicked, ie compact vs expanded):seafood/src/components/controls/Fields.tsx
Line 80 in 9d96454