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: ensure token address is lowercased #3439

Merged
merged 1 commit into from
May 15, 2024
Merged

fix: ensure token address is lowercased #3439

merged 1 commit into from
May 15, 2024

Conversation

thelostone-mc
Copy link
Member

@thelostone-mc thelostone-mc commented May 15, 2024

Currently, in production when you edit a round -> we try to find the decimals of the token and default it to 18 if it is undefined. It was being set to undefined and we were comparing checksum token address with lower token address which would always return fail (eg: aa == AA)
When creating a round with USDC which has 6 decimals -> the compare would fail and it would default to 18 decimals

Fix Tested on round http://localhost:3000/#/round/0x6f008d6701daf4ab585202e95c273d4225a0bf15

This was a round created with 1 USDC as match amount and then updated to 10 USDC

image

fixes #3421

@thelostone-mc thelostone-mc requested review from a team as code owners May 15, 2024 10:05
Copy link

vercel bot commented May 15, 2024

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

Name Status Preview Comments Updated (UTC)
builder ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 15, 2024 10:08am
builder-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 15, 2024 10:08am
explorer ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 15, 2024 10:08am
explorer-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 15, 2024 10:08am
manager ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 15, 2024 10:08am
manager-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 15, 2024 10:08am

@thelostone-mc thelostone-mc merged commit 0af1139 into main May 15, 2024
14 checks passed
@thelostone-mc thelostone-mc deleted the fix-decimals branch May 15, 2024 13:15
debuggingfuture pushed a commit to 0xl10n/grants-stack that referenced this pull request May 19, 2024
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.

Error when Finilizig Results to make payout
3 participants