Skip to content

Commit

Permalink
refactor/test(osmomath): change package of decimal_test.go to osmomat…
Browse files Browse the repository at this point in the history
…h_test (#3710)

* refactor/test(osmomath): change package of decimal_test.go to osmomath_test

* restore power test

(cherry picked from commit 7da459f)
  • Loading branch information
p0mvn authored and mergify[bot] committed Dec 14, 2022
1 parent 4fdbb9a commit 0cd44ed
Show file tree
Hide file tree
Showing 3 changed files with 463 additions and 467 deletions.
4 changes: 1 addition & 3 deletions osmomath/decimal.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ var (
tickLogOf2 = MustNewDecFromStr("0.000144262291094554178391070900057480")
// initialized in init() since requires
// precision to be defined.
twoBigDec BigDec
twoBigDec BigDec = MustNewDecFromStr("2")
)

// Decimal errors
Expand All @@ -68,8 +68,6 @@ func init() {
for i := 0; i <= Precision; i++ {
precisionMultipliers[i] = calcPrecisionMultiplier(int64(i))
}

twoBigDec = NewBigDec(2)
}

func precisionInt() *big.Int {
Expand Down
Loading

0 comments on commit 0cd44ed

Please sign in to comment.