-
Notifications
You must be signed in to change notification settings - Fork 620
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
osmomath: mutative and efficient BigDec truncations with arbitrary de…
…cimals (#6261) * merge main * Auto: update go.mod after push to pysel/bigdec-sdkdec that modified dependencies locally * better doc * mutative/non-mutative custom precision truncators * selfrev: better variable name * use better type * selfrev: better docs * selfrev: better error in case of failed test * use new truncators in CalculatePriceToTick * use osmomath.PrecisionDec * supposedly fix e2e * sdk.Precision -> osmomath.PrecisionDec * pre-compute precision factors * add edge case * fix go mod after merge * panic if converting to Dec with precsiion bigger than PrecisionDec * bring back old case, expect panic * add example to DecWithPrecision * updates * godoc updates * changelog * uint * updates --------- Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: roman <roman@osmosis.team> (cherry picked from commit d5c8abc) # Conflicts: # CHANGELOG.md # go.mod # go.sum # x/epochs/go.mod # x/epochs/go.sum
- Loading branch information
1 parent
3c734c9
commit 2dbd3cb
Showing
9 changed files
with
195 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.