Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: pass token decimals to fromWei #135

Merged
merged 1 commit into from
Jul 12, 2024
Merged

Conversation

baroooo
Copy link
Contributor

@baroooo baroooo commented Jul 12, 2024

Description

When Use Max is clicked, it was adding a wrong value to the amount field for tokens with decimals != 18
This PR fixes the issue by passing the correct decimal amount fetched from token config to onClickUseMax

Tested

Tested on local and preview

Related issues

Copy link

vercel bot commented Jul 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
mento-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 12, 2024 0:00am

@nvtaveras nvtaveras merged commit 199a32a into main Jul 12, 2024
7 checks passed
@nvtaveras nvtaveras deleted the fix/decimals-on-use-max branch July 12, 2024 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants