aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/send
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2017-10-19 03:23:35 +0800
committerDan <danjm.com@gmail.com>2017-10-20 02:56:46 +0800
commit59015cccef72210f828b344aaedde9b8dd31be3b (patch)
tree2443b2b73639e8555cc1aca4cd757030080883e1 /ui/app/components/send
parentbd11e60b8c128dd69ba1bcf58d25fa9323d91a33 (diff)
downloadtangerine-wallet-browser-59015cccef72210f828b344aaedde9b8dd31be3b.tar
tangerine-wallet-browser-59015cccef72210f828b344aaedde9b8dd31be3b.tar.gz
tangerine-wallet-browser-59015cccef72210f828b344aaedde9b8dd31be3b.tar.bz2
tangerine-wallet-browser-59015cccef72210f828b344aaedde9b8dd31be3b.tar.lz
tangerine-wallet-browser-59015cccef72210f828b344aaedde9b8dd31be3b.tar.xz
tangerine-wallet-browser-59015cccef72210f828b344aaedde9b8dd31be3b.tar.zst
tangerine-wallet-browser-59015cccef72210f828b344aaedde9b8dd31be3b.zip
Min and default gas price, limit, total; comments out code for gas slider.
Diffstat (limited to 'ui/app/components/send')
-rw-r--r--ui/app/components/send/send-constants.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/ui/app/components/send/send-constants.js b/ui/app/components/send/send-constants.js
new file mode 100644
index 000000000..a819a8c28
--- /dev/null
+++ b/ui/app/components/send/send-constants.js
@@ -0,0 +1,23 @@
+const Identicon = require('../identicon')
+const { multiplyCurrencies } = require('../../conversion-util')
+
+const MIN_GAS_PRICE_GWEI = '1'
+const GWEI_FACTOR = '1e9'
+const MIN_GAS_PRICE = multiplyCurrencies(GWEI_FACTOR, MIN_GAS_PRICE_GWEI, {
+ multiplicandBase: 16,
+ multiplierBase: 16,
+})
+const MIN_GAS_LIMIT = (21000).toString(16)
+const MIN_GAS_TOTAL = multiplyCurrencies(MIN_GAS_LIMIT, MIN_GAS_PRICE, {
+ toNumericBase: 'hex',
+ multiplicandBase: 16,
+ multiplierBase: 16,
+})
+
+module.exports = {
+ MIN_GAS_PRICE_GWEI,
+ GWEI_FACTOR,
+ MIN_GAS_PRICE,
+ MIN_GAS_LIMIT,
+ MIN_GAS_TOTAL,
+}