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: increase rounding sensitivity #328

Merged
merged 2 commits into from
Mar 21, 2024
Merged

Conversation

javiersuweijie
Copy link
Member

Previously, the module struggles with handling calculations when the token amounts are in the billions and trillions. This fix increases the rounding sensitivity such that we round up more often when there are small discrepencies due to fix point math. (ie.e 0.98 gets rounded to 1)

@emidev98
Copy link
Contributor

Should we push this to v4 and fix the linting?

@javiersuweijie javiersuweijie merged commit 6a837a8 into release/v0.3.x Mar 21, 2024
3 checks passed
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