liquid-funding/app/utils/currencies.js

30 lines
787 B
JavaScript
Raw Normal View History

2018-12-01 22:16:58 +00:00
import StandardToken from 'Embark/contracts/StandardToken'
2018-11-30 18:36:09 +00:00
export const TOKEN_ICON_API = 'https://raw.githubusercontent.com/TrustWallet/tokens/master/images'
export const TOKEN_COIN_API = 'https://raw.githubusercontent.com/TrustWallet/tokens/master/coins'
export const currencies = [
{
value: 'ETH',
label: 'Ether',
img: `${TOKEN_COIN_API}/60.png`,
},
{
value: '0x744d70fdbe2ba4cf95131626614a1763df805b9e',
label: 'Status (SNT)',
},
{
value: '0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359',
label: 'DAI',
},
2018-11-30 21:19:46 +00:00
{
2018-12-01 22:16:58 +00:00
value: StandardToken._address,
2018-12-01 20:32:00 +00:00
label: 'Standard Token',
icon: '🤔',
2018-11-30 21:19:46 +00:00
}
2018-11-30 18:36:09 +00:00
]
2018-11-30 21:19:46 +00:00
export const getTokenLabel = value => {
const token = currencies.find(currency => currency.value === value)
return token ? token.label : null
}