-
Notifications
You must be signed in to change notification settings - Fork 591
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
osmomath: QuoTruncate with no reallocation #6428
Conversation
Important Notice This PR modifies an in-repo Go module. It is one of:
The dependent Go modules, especially the root one, will have to be Please follow the instructions below:
Please let us know if you need any help. |
@hieuvubk please resolve one remaining conflict and we can merge this. Sorry for the break again - I'm merging a lot today I reviewed calls to |
* reduce reallocations of QuoTruncate * separate funcs * chopPrecisionAndTruncateMut * changlog & go.mod * mutative * test * go.mod * go mod tidy * update go.mod * lack * revert * update go.mod (cherry picked from commit 114f055) # Conflicts: # CHANGELOG.md # go.mod # go.sum # x/concentrated-liquidity/math/math.go
I marked this PR as state-breaking despite backporting it so that we revisit this for a major upgrade. The reason is that we cannot effectively test the backport since the only applications of the new |
Was able to still apply this change on the backport. See commit: b1fe95c Therefore, test coverage should be sufficient |
Closes: #6370
What is the purpose of the change
QuoTruncate with no reallocation
Benchmark
Testing and Verifying
(Please pick one of the following options)
This change is a trivial rework / code cleanup without any test coverage.
(or)
This change is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)
Documentation and Release Note
Unreleased
section ofCHANGELOG.md
?Where is the change documented?
x/{module}/README.md
)