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
/
getTokenInfo.js
11 lines
(9 loc)
•
284 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
const
bfxTodvf =
require
(
'@rhino.fi/dvf-utils'
).
BfxToDvfToken
//
TODO:
Deprecated
module
.
exports
=
(
dvf, token
) =>
{
const
tokenInfo = dvf.
config
.
tokenRegistry
[
bfxTodvf
(token)]
// Returning the symbol along with the info
if
(tokenInfo) {
return
{token, ...tokenInfo} } }