Skip to content

Commit

Permalink
fix: denomMinNotional resposne decimal formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasRalee committed Feb 10, 2025
1 parent 27613a9 commit 226cb19
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {
InjectiveExchangeV1Beta1Query,
InjectiveExchangeV1Beta1Exchange,
} from '@injectivelabs/core-proto-ts'
import { BigNumberInBase } from '@injectivelabs/utils'
import { AtomicMarketOrderAccessLevel } from '@injectivelabs/core-proto-ts/cjs/injective/exchange/v1beta1/exchange.js'
import {
ChainPosition,
Expand Down Expand Up @@ -299,7 +300,9 @@ export class ChainGrpcExchangeTransformer {
): ChainDenomMinNotional[] {
return response.denomMinNotionals.map((denomDecimals) => ({
denom: denomDecimals.denom,
minNotional: denomDecimals.minNotional,
minNotional: new BigNumberInBase(denomDecimals.minNotional)
.dividedBy(10 ** 18)
.toFixed(),
}))
}
}

0 comments on commit 226cb19

Please sign in to comment.