1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-28 23:06:37 +01:00
metamask-extension/ui/app/components/send_/send-content/send-from-row/send-from-row.utils.js

13 lines
284 B
JavaScript
Raw Normal View History

2018-04-07 00:29:51 +02:00
const {
calcTokenAmount,
2018-04-26 18:38:38 +02:00
} = require('../../../../token-util')
2018-04-07 00:29:51 +02:00
function calcTokenUpdateAmount (usersToken, selectedToken) {
const { decimals } = selectedToken || {}
return calcTokenAmount(usersToken.balance.toString(), decimals)
}
module.exports = {
calcTokenUpdateAmount
}