UNPKG
spacylabs-rhino2
Version:
latest (5.1.4)
5.1.4
5.1.3
5.1.2
github.com/rhinofi/client-js
spacylabs-rhino2
/
src
/
lib
/
dvf
/
token
/
toQuantizedAmount.js
8 lines
(5 loc)
•
216 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
const
{ toQuantizedAmountString } =
require
(
'@rhino.fi/dvf-utils'
)
module
.
exports
=
(
dvf, token, amount
) =>
{
const
tokenInfo = dvf.
token
.
getTokenInfo
(token)
return
toQuantizedAmountString
(tokenInfo, amount) }