Skip to content

Commit

Permalink
Merge pull request #188 from bancorprotocol/fix/exp-val
Browse files Browse the repository at this point in the history
increased decimal range to avoid exp notation
  • Loading branch information
zavelevsky authored Dec 9, 2024
2 parents e1396ec + c64a5a8 commit 4bf9eda
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/utils/numerics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down

0 comments on commit 4bf9eda

Please sign in to comment.