Skip to content

Commit

Permalink
bn update (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
kosecki123 authored Feb 26, 2019
1 parent 088884c commit 8f43945
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 12 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"dependencies": {
"@ethereum-alarm-clock/lib": "0.3.4",
"@ethereum-alarm-clock/timenode-core": "7.0.0",
"bignumber.js": "5.0.0",
"bignumber.js": "8.0.2",
"bluebird": "3.5.3",
"clear": "0.1.0",
"cli-table2": "0.2.0",
Expand Down
6 changes: 3 additions & 3 deletions src/TimeNode/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@ For more info on claiming, see: https://blog.chronologic.network/how-to-mitigate
// Economic Strategy
const economicStrategy = {
maxDeposit: options.maxDeposit
? new BigNumber(options.maxDeposit).mul(wei)
? new BigNumber(options.maxDeposit).times(wei)
: Config.DEFAULT_ECONOMIC_STRATEGY.maxDeposit,
minBalance: options.minBalance
? new BigNumber(options.minBalance).mul(wei)
? new BigNumber(options.minBalance).times(wei)
: Config.DEFAULT_ECONOMIC_STRATEGY.minBalance,
minProfitability: options.minProfitability
? new BigNumber(options.minProfitability).mul(wei)
? new BigNumber(options.minProfitability).times(wei)
: Config.DEFAULT_ECONOMIC_STRATEGY.minProfitability,
maxGasSubsidy: options.maxGasSubsidy
? options.maxGasSubsidy
Expand Down
1 change: 0 additions & 1 deletion tools/spamTx.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
*/

const { Config } = require('@ethereum-alarm-clock/timenode-core');
const BigNumber = require('bignumber.js');
const Bb = require('bluebird');
const fs = require('fs');

Expand Down
2 changes: 1 addition & 1 deletion tools/tester.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ const main = async (_) => {
if (program.randomizeBounty) {
bounty += getRandomBountyModifier();
}
const windowStartOffset = program.randomizeStart ? getRandomWindowStartOffset() : 0
const windowStartOffset = program.randomizeStart ? getRandomWindowStartOffset() : 0;

const endowment = Util.calcEndowment(
new BigNumber(callGas),
Expand Down

0 comments on commit 8f43945

Please sign in to comment.