Skip to content

Commit

Permalink
quoteLotsToUiConverter pass correct quote decimals
Browse files Browse the repository at this point in the history
  • Loading branch information
0xbridges committed Jan 6, 2024
1 parent fe243e2 commit 05c4898
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 05c4898

Please sign in to comment.