Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kosecki123 committed Aug 8, 2018
1 parent 1550f35 commit e65b4ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/EconomicStrategy/EconomicStrategyHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,15 +133,15 @@ const shouldExecuteTx = async (txRequest: any, config: Config): Promise<boolean>

const gasCost = gasPrice.times(gasAmount);
const expectedReward = deposit.plus(reward).plus(reimbursement);
const shouldExecuteTx = gasCost.lessThanOrEqualTo(expectedReward);
const shouldExecute = gasCost.lessThanOrEqualTo(expectedReward);

config.logger.debug(
`[${
txRequest.address
}] shouldExecuteTx ret ${shouldExecuteTx} gasCost=${gasCost.toNumber()} expectedReward=${expectedReward.toNumber()}`
}] shouldExecuteTx ret ${shouldExecute} gasCost=${gasCost.toNumber()} expectedReward=${expectedReward.toNumber()}`
);

return shouldExecuteTx;
return shouldExecute;
};

export { shouldClaimTx, shouldExecuteTx, getExecutionGasPrice };

0 comments on commit e65b4ef

Please sign in to comment.