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 bug] already did rounding. #74

Merged
merged 1 commit into from
Jun 10, 2022
Merged

[fix bug] already did rounding. #74

merged 1 commit into from
Jun 10, 2022

Conversation

Foristkirito
Copy link
Contributor

rounding already did in previous step. this will cause bug like below:

image

which should get larger tick like

image

@kafeikui
Copy link
Contributor

Thanks for fixing! In Solidity, division rounds towards zero while in Javascript Math.floor rounds towards negative infinity. I made a mistake from translating v3-core contract.

We will incorporate this into 0.1.5.

@kafeikui kafeikui merged commit e1962f9 into Bella-DeFinTech:main Jun 10, 2022
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