Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit 769979c

Browse files
committed
adjusting the max number of decimal places in the bigNumber config
1 parent 47e8974 commit 769979c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

js/start.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import Profile from './models/profile/Profile';
4242
import Settings from './models/settings/Settings';
4343
import WalletBalances from './collections/wallet/Balances';
4444
import Followers from './collections/Followers';
45-
import { fetchExchangeRates } from './utils/currency';
45+
import { fetchExchangeRates, getExchangeRate } from './utils/currency';
4646
import './utils/exchangeRateSyncer';
4747
import { launchDebugLogModal, launchSettingsModal } from './utils/modalManager';
4848
import listingDeleteHandler from './startup/listingDelete';
@@ -59,7 +59,7 @@ handleServerShutdownRequests();
5959

6060
// Will allow us to handle numbers with greater than 20 decimals places. Probably
6161
// unlikely this will be needed, but just in case.
62-
bigNumber.config({ RANGE: [-1e+9, 1e+9], DECIMAL_PLACES: 1e+9 });
62+
bigNumber.config({ DECIMAL_PLACES: 50 });
6363

6464
app.localSettings = new LocalSettings({ id: 1 });
6565
app.localSettings.fetch().fail(() => app.localSettings.save());

test/_setup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ before(function () {
4040
};
4141

4242
// this should match what's in start.js
43-
bigNumber.config({ RANGE: [-1e+9, 1e+9], DECIMAL_PLACES: 1e+9 });
43+
bigNumber.config({ DECIMAL_PLACES: 50 });
4444

4545
app.walletCurDef = walletCurDef;
4646
initWalletCurs(walletCurs, walletCurDef);

0 commit comments

Comments
 (0)