diff options
author | Fabio Berger <me@fabioberger.com> | 2018-06-20 19:31:21 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-06-20 19:31:21 +0800 |
commit | 632da71a8d7ab6f4ac64ace407543a8ff9f4d548 (patch) | |
tree | ac2031d60812cd6eda9310c5b23d4f323c21de14 /packages/contracts/src | |
parent | 2ffab2218584fac5d3ea2b264a7c746d963083d9 (diff) | |
download | dexon-sol-tools-632da71a8d7ab6f4ac64ace407543a8ff9f4d548.tar dexon-sol-tools-632da71a8d7ab6f4ac64ace407543a8ff9f4d548.tar.gz dexon-sol-tools-632da71a8d7ab6f4ac64ace407543a8ff9f4d548.tar.bz2 dexon-sol-tools-632da71a8d7ab6f4ac64ace407543a8ff9f4d548.tar.lz dexon-sol-tools-632da71a8d7ab6f4ac64ace407543a8ff9f4d548.tar.xz dexon-sol-tools-632da71a8d7ab6f4ac64ace407543a8ff9f4d548.tar.zst dexon-sol-tools-632da71a8d7ab6f4ac64ace407543a8ff9f4d548.zip |
Add TS 2.7 numeric separators to improve readability
Diffstat (limited to 'packages/contracts/src')
-rw-r--r-- | packages/contracts/src/utils/order_factory_from_scenario.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/contracts/src/utils/order_factory_from_scenario.ts b/packages/contracts/src/utils/order_factory_from_scenario.ts index 74c2d4fa2..8a5ded203 100644 --- a/packages/contracts/src/utils/order_factory_from_scenario.ts +++ b/packages/contracts/src/utils/order_factory_from_scenario.ts @@ -15,12 +15,12 @@ import { TakerScenario, } from './types'; -const TEN_UNITS_EIGHTEEN_DECIMALS = new BigNumber(10000000000000000000); -const FIVE_UNITS_EIGHTEEN_DECIMALS = new BigNumber(5000000000000000000); -const POINT_ONE_UNITS_EIGHTEEN_DECIMALS = new BigNumber(100000000000000000); -const POINT_ZERO_FIVE_UNITS_EIGHTEEN_DECIMALS = new BigNumber(50000000000000000); -const TEN_UNITS_FIVE_DECIMALS = new BigNumber(1000000); -const FIVE_UNITS_FIVE_DECIMALS = new BigNumber(500000); +const TEN_UNITS_EIGHTEEN_DECIMALS = new BigNumber(10_000_000_000_000_000_000); +const FIVE_UNITS_EIGHTEEN_DECIMALS = new BigNumber(5_000_000_000_000_000_000); +const POINT_ONE_UNITS_EIGHTEEN_DECIMALS = new BigNumber(100_000_000_000_000_000); +const POINT_ZERO_FIVE_UNITS_EIGHTEEN_DECIMALS = new BigNumber(50_000_000_000_000_000); +const TEN_UNITS_FIVE_DECIMALS = new BigNumber(1_000_000); +const FIVE_UNITS_FIVE_DECIMALS = new BigNumber(500_000); const ONE_NFT_UNIT = new BigNumber(1); export class OrderFactoryFromScenario { |