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: remove amounts nearly equal check #184

Merged
merged 1 commit into from
Jan 14, 2025
Merged

Conversation

philbow61
Copy link
Contributor

Description

the issue discovered by @Andrew718PLTS https://app.zenhub.com/workspaces/sprint-6458911097b7ec002c15f0d6/issues/gh/mento-protocol/mento-web/183
was caused by a bad nearly equal check on the balance that assumed tokens have 18 decimals. That is also why this issue only happened for USDC etc. and not for cUSD.

Since the balance should be strictly gt than the amount I removed the additional condition.

Copy link

vercel bot commented Jan 14, 2025

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 Jan 14, 2025 4:43pm

@Andrew718PLTS Andrew718PLTS self-requested a review January 14, 2025 16:51
@philbow61 philbow61 merged commit f6a8f21 into dev Jan 14, 2025
7 checks passed
@philbow61 philbow61 deleted the fix/form-balance-check branch January 14, 2025 16:56
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