Skip to content

fix: prevents bigNumber overflow#9862

Merged
gdixon merged 1 commit into
stablefrom
fix-bn-overflow
Dec 9, 2021
Merged

fix: prevents bigNumber overflow#9862
gdixon merged 1 commit into
stablefrom
fix-bn-overflow

Conversation

@gdixon

@gdixon gdixon commented Dec 9, 2021

Copy link
Copy Markdown
Contributor
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

@nutrina nutrina left a comment

Copy link
Copy Markdown
Contributor

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