Skip to content

Commit

Permalink
Merge pull request #211 from 0xbridges/master
Browse files Browse the repository at this point in the history
quoteLotsToUiConverter pass correct quote decimals
  • Loading branch information
binyebarwe authored Jan 7, 2024
2 parents fe243e2 + 05c4898 commit 36eb9c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ts/client/src/market.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ function baseLotsToUiConverter(market: MarketAccount): number {
}
function quoteLotsToUiConverter(market: MarketAccount): number {
return new Big(market.quoteLotSize.toString())
.div(new Big(10).pow(QUOTE_DECIMALS))
.div(new Big(10).pow(market.quoteDecimals))
.toNumber();
}

Expand Down

0 comments on commit 36eb9c4

Please sign in to comment.