aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/conversion-util.js
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2017-10-19 02:08:53 +0800
committerChi Kei Chan <chikeichan@gmail.com>2017-10-20 03:34:14 +0800
commit89af385a352daf66ad1a6fb3bba75676fd3b9e7f (patch)
tree6ea44ae9356a3215588c51e256a87fac357063c1 /ui/app/conversion-util.js
parentbd11e60b8c128dd69ba1bcf58d25fa9323d91a33 (diff)
downloadtangerine-wallet-browser-89af385a352daf66ad1a6fb3bba75676fd3b9e7f.tar
tangerine-wallet-browser-89af385a352daf66ad1a6fb3bba75676fd3b9e7f.tar.gz
tangerine-wallet-browser-89af385a352daf66ad1a6fb3bba75676fd3b9e7f.tar.bz2
tangerine-wallet-browser-89af385a352daf66ad1a6fb3bba75676fd3b9e7f.tar.lz
tangerine-wallet-browser-89af385a352daf66ad1a6fb3bba75676fd3b9e7f.tar.xz
tangerine-wallet-browser-89af385a352daf66ad1a6fb3bba75676fd3b9e7f.tar.zst
tangerine-wallet-browser-89af385a352daf66ad1a6fb3bba75676fd3b9e7f.zip
Fix handling of arithmetic on token gas in confirm-send-token.
Diffstat (limited to 'ui/app/conversion-util.js')
-rw-r--r--ui/app/conversion-util.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/app/conversion-util.js b/ui/app/conversion-util.js
index e008ee1cb..51c7bd355 100644
--- a/ui/app/conversion-util.js
+++ b/ui/app/conversion-util.js
@@ -147,16 +147,16 @@ const addCurrencies = (a, b, options = {}) => {
const multiplyCurrencies = (a, b, options = {}) => {
const {
- toNumericBase,
- numberOfDecimals,
multiplicandBase,
multiplierBase,
+ ...conversionOptions,
} = options
+
const value = (new BigNumber(a, multiplicandBase)).times(b, multiplierBase);
+
return converter({
value,
- toNumericBase,
- numberOfDecimals,
+ ...conversionOptions,
})
}