Skip to content

Commit

Permalink
Merge pull request #491 from opexdev/fix-precision-problem
Browse files Browse the repository at this point in the history
fix: use precision with scale to fix pair precision bug
  • Loading branch information
Marchosiax authored Dec 30, 2024
2 parents e583f9f + 5721a15 commit f557f7c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ class MarketController(
symbolsMap[it.pair] ?: it.pair,
"TRADING",
it.leftSideWalletSymbol.uppercase(),
it.leftSideFraction.scale(),
it.leftSideFraction.scale() - it.leftSideFraction.precision() + 1,
it.rightSideWalletSymbol.uppercase(),
it.rightSideFraction.scale()
it.rightSideFraction.scale()- it.rightSideFraction.precision() + 1
)
}
}
Expand Down

0 comments on commit f557f7c

Please sign in to comment.