mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-25 03:20:23 +01:00
13 lines
285 B
JavaScript
13 lines
285 B
JavaScript
const {
|
|
calcTokenAmount,
|
|
} = require('../../../../token-util')
|
|
|
|
function calcTokenUpdateAmount (usersToken, selectedToken) {
|
|
const { decimals } = selectedToken || {}
|
|
return calcTokenAmount(usersToken.balance.toString(), decimals)
|
|
}
|
|
|
|
module.exports = {
|
|
calcTokenUpdateAmount,
|
|
}
|