protocol/packages/contracts/util/bignumber_config.ts
2017-11-30 07:10:18 -08:00

12 lines
384 B
TypeScript

import {BigNumber} from 'bignumber.js';
export const bigNumberConfigs = {
configure() {
// By default BigNumber's `toString` method converts to exponential notation if the value has
// more then 20 digits. We want to avoid this behavior, so we set EXPONENTIAL_AT to a high number
BigNumber.config({
EXPONENTIAL_AT: 1000,
});
},
};