diff --git a/centrifuge-js/src/modules/pools.ts b/centrifuge-js/src/modules/pools.ts index 661086e9a7..82434d6de6 100644 --- a/centrifuge-js/src/modules/pools.ts +++ b/centrifuge-js/src/modules/pools.ts @@ -26,7 +26,7 @@ import { CurrencyBalance, Perquintill, Price, Rate, TokenBalance } from '../util import { Dec } from '../utils/Decimal' const PerquintillBN = new BN(10).pow(new BN(18)) -const PriceBN = new BN(10).pow(new BN(27)) +const PriceBN = new BN(10).pow(new BN(18)) const MaxU128 = '340282366920938463463374607431768211455' const SEC_PER_DAY = 24 * 60 * 60 diff --git a/centrifuge-js/src/utils/BN.ts b/centrifuge-js/src/utils/BN.ts index ba6612a650..8f915234c4 100644 --- a/centrifuge-js/src/utils/BN.ts +++ b/centrifuge-js/src/utils/BN.ts @@ -55,7 +55,7 @@ export class TokenBalance extends CurrencyBalance { } export class Price extends BNSubType { - static decimals = 27 + static decimals = 18 static fromFloat(number: Numeric) { return Price._fromFloat(number) }