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: prevents bigNumber overflow #9862

Merged
merged 1 commit into from
Dec 9, 2021
Merged

fix: prevents bigNumber overflow #9862

merged 1 commit into from
Dec 9, 2021

Conversation

gdixon
Copy link
Contributor

@gdixon gdixon commented Dec 9, 2021

Description

This PR will ensure that wallets which contain a large number of tokens will not throw a bigNumber overflow error

Refers/Fixes

Fixes: #9854

Testing

Tested locally

Copy link
Contributor

@nutrina nutrina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@gdixon gdixon merged commit a088954 into stable Dec 9, 2021
thelostone-mc added a commit that referenced this pull request Dec 10, 2021
* fix: apply the cap after normalising the distribution (#9846)

* fix: apply the cap after normalising the distribution

* fix: adds flag to estimate_clr so that we can skip saving the results

* fix: expose id and title to make it easier to compare results

* fix: apply Adityas comments

* add logging

* add more logs

* add logging

* fix: adds id to totals

* fix: clean up logs

* fix: ensures we dont spread the remainder if we havent reached the saturation point

* fix: debug output

Co-authored-by: Aditya Anand M C <aditya.anandmc@gmail.com>

* fix: enable search in GrantCLRCalculation admin

* fix: ensures props are available for str of questAttempt

* fix: prevents bigNumber overflow (#9862)

* fix: linting issues

Co-authored-by: Graham Dixon <graham@gitcoin.co>
Co-authored-by: Graham Dixon <graham@gdixon.co.uk>
thelostone-mc added a commit that referenced this pull request Dec 14, 2021
* fix: apply the cap after normalising the distribution (#9846)

* fix: apply the cap after normalising the distribution

* fix: adds flag to estimate_clr so that we can skip saving the results

* fix: expose id and title to make it easier to compare results

* fix: apply Adityas comments

* add logging

* add more logs

* add logging

* fix: adds id to totals

* fix: clean up logs

* fix: ensures we dont spread the remainder if we havent reached the saturation point

* fix: debug output

Co-authored-by: Aditya Anand M C <aditya.anandmc@gmail.com>

* fix: enable search in GrantCLRCalculation admin

* fix: ensures props are available for str of questAttempt

* fix: prevents bigNumber overflow (#9862)

* allow disabling checkout via admin

Co-authored-by: Graham Dixon <graham@gitcoin.co>
Co-authored-by: Graham Dixon <graham@gdixon.co.uk>
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.

2 participants