-
Notifications
You must be signed in to change notification settings - Fork 359
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
[Dashboard] (test) Unit conversion for ERC20 claim condition #5235
base: main
Are you sure you want to change the base?
Conversation
|
Your org has enabled the Graphite merge queue for merging into mainAdd the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This stack of pull requests is managed by Graphite. Learn more about stacking. |
size-limit report 📦
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5235 +/- ##
==========================================
- Coverage 45.29% 45.29% -0.01%
==========================================
Files 1067 1068 +1
Lines 55341 55380 +39
Branches 3973 3975 +2
==========================================
+ Hits 25068 25082 +14
- Misses 29581 29606 +25
Partials 692 692
*This pull request uses carry forward flags. Click here to find out more. |
2a27e74
to
c1adba1
Compare
...in)/[chain_id]/[contractAddress]/_components/claim-conditions/claim-conditions-form/hooks.ts
Outdated
Show resolved
Hide resolved
c1adba1
to
22927c0
Compare
Problem solved
Short description of the bug fixed or feature added
PR-Codex overview
This PR enhances the
claim-conditions
functionality by adding thetoBigInt
andtoTokens
utility functions, improving how token quantities are handled, and ensuring correct conversions for ERC20 tokens in the claim conditions form.Detailed summary
toBigInt
function to convert values toBigInt
.toTokens
for converting token amounts based on decimals.maxClaimableSupply
andmaxClaimablePerWallet
to handle "unlimited" cases.