From c64a5a89dde9148885a52b243004793280cf4dcd Mon Sep 17 00:00:00 2001 From: Doron Zavelevsky Date: Mon, 9 Dec 2024 17:19:44 +0000 Subject: [PATCH] increased decimal range to avoid exp notation that's not supported by bignumber --- package.json | 2 +- src/utils/numerics.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index d28e87a..452039a 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@bancor/carbon-sdk", "type": "module", "source": "src/index.ts", - "version": "0.0.101-DEV", + "version": "0.0.102-DEV", "description": "The SDK is a READ-ONLY tool, intended to facilitate working with Carbon contracts. It's a convenient wrapper around our matching algorithm, allowing programs and users get a ready to use transaction data that will allow them to manage strategies and fulfill trades", "main": "dist/index.cjs", "module": "dist/index.js", diff --git a/src/utils/numerics.ts b/src/utils/numerics.ts index 82c9446..e3c63a5 100644 --- a/src/utils/numerics.ts +++ b/src/utils/numerics.ts @@ -8,8 +8,8 @@ import Decimal from 'decimal.js'; Decimal.set({ precision: 100, rounding: Decimal.ROUND_HALF_DOWN, - toExpNeg: -30, - toExpPos: 30, + toExpNeg: -300, + toExpPos: 300, }); export { Decimal, BigNumber, BigNumberish };