-
Notifications
You must be signed in to change notification settings - Fork 78
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
chore(Communities): Refactor amounts handling for displaying, minting, airdropping and burning #11862
Conversation
Jenkins BuildsClick to see older builds (3)
|
2357f8f
to
8175bb4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
haven't tested - code looks good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are other places which imho need some fixes (like WalletAccountsModel
in storybook)?
The functionality I've refactored doesn't use wallte model's assets, where amounts are expressed as floats. That should be changed in the next iteration when functionality using that will be altered. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Hey @micieslak , not entirely sure if this is covered by these changes but there was a discrepancy noted when viewing remaining tokens and attempting to airdrop.
|
…, airdropping and burning Closes: #11491
8175bb4
to
c1b1749
Compare
Thanks @glitchminer for pointing those issues. The same problem exists in the current master and they are not directly related to this PR so I created separate tasks for them: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What does the PR do
This PR refactors functionality of minting, airdrop and burn regarding handling fees. Provided earlier utilities
AmountsArithmetic
are used to handle amounts as big integers instead of floats. It prevents from problems described in #11376. Permissions functionality will be covered in a separate task.Closes: #11491
Permissions part is going to be covered in a separate task: #11863
Affected areas
Multiple components for community settings,
AmountsArithmetic