aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2017-05-09 04:34:01 +0800
committerDan Finlay <dan@danfinlay.com>2017-05-09 04:34:01 +0800
commitc7b2f2f2e986981496168dbf57cee787882ffd59 (patch)
tree502c16543a1f364b802caa95ff8ab4a7e04fc968 /ui/app
parente921f7f13a81bbf2e10fb996a001f16daf944940 (diff)
downloadtangerine-wallet-browser-c7b2f2f2e986981496168dbf57cee787882ffd59.tar
tangerine-wallet-browser-c7b2f2f2e986981496168dbf57cee787882ffd59.tar.gz
tangerine-wallet-browser-c7b2f2f2e986981496168dbf57cee787882ffd59.tar.bz2
tangerine-wallet-browser-c7b2f2f2e986981496168dbf57cee787882ffd59.tar.lz
tangerine-wallet-browser-c7b2f2f2e986981496168dbf57cee787882ffd59.tar.xz
tangerine-wallet-browser-c7b2f2f2e986981496168dbf57cee787882ffd59.tar.zst
tangerine-wallet-browser-c7b2f2f2e986981496168dbf57cee787882ffd59.zip
Cleanup
Diffstat (limited to 'ui/app')
-rw-r--r--ui/app/components/pending-tx.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/app/components/pending-tx.js b/ui/app/components/pending-tx.js
index c381066a9..71d4d767a 100644
--- a/ui/app/components/pending-tx.js
+++ b/ui/app/components/pending-tx.js
@@ -16,7 +16,7 @@ const nameForAddress = require('../../lib/contract-namer')
const HexInput = require('./hex-as-decimal-input')
const MIN_GAS_PRICE_GWEI_BN = new BN(2)
-const GWEI_FACTOR = new BN(Math.pow(10, 9))
+const GWEI_FACTOR = new BN(1e9)
const MIN_GAS_PRICE_BN = MIN_GAS_PRICE_GWEI_BN.mul(GWEI_FACTOR)
const MIN_GAS_LIMIT_BN = new BN(21000)
@@ -54,7 +54,7 @@ PendingTx.prototype.render = function () {
// Gas Price
const gasPrice = txParams.gasPrice || MIN_GAS_PRICE_BN.toString(16)
const gasPriceBn = hexToBn(gasPrice)
- const gasPriceGweiBn = gasPriceBn.div(new BN(Math.pow(10, 9)))
+ const gasPriceGweiBn = gasPriceBn.div(GWEI_FACTOR)
const txFeeBn = gasBn.mul(gasPriceBn)
const valueBn = hexToBn(txParams.value)