Skip to content

Commit

Permalink
use better type
Browse files Browse the repository at this point in the history
  • Loading branch information
pysel committed Sep 6, 2023
1 parent 81d0b94 commit 177d47e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions osmomath/decimal.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ var (
// precisionFactorSDK is used to adjust the scale of BigDec values to match the precision expected by sdk.Dec
precisionFactorSDK *big.Int
// precisionDiffFromSDKDec is a difference in precision between BigDec and sdk.Dec
precisionDiffFromSDKDec int
precisionDiffFromSDKDec int64

// log_2(e)
// From: https://www.wolframalpha.com/input?i=log_2%28e%29+with+37+digits
Expand Down Expand Up @@ -80,7 +80,7 @@ func init() {
panic("invalid decimal precision")
}

precisionFactorSDK = new(big.Int).Exp(big.NewInt(10), big.NewInt(int64(precisionDiffFromSDKDec)), nil)
precisionFactorSDK = new(big.Int).Exp(big.NewInt(10), big.NewInt(precisionDiffFromSDKDec), nil)
}

func precisionInt() *big.Int {
Expand Down

0 comments on commit 177d47e

Please sign in to comment.