trustwallet-assets/script/generic/asset.ts
Viktor Radchenko 9b41a52182
Add token list support for pairs on binance chain (#4428)
* Add token list support for pairs on binance chain

* Update tokenlists.ts

* Update tokenlists.ts

* Update tokenlists.ts

* Fix asset for bnb pair

* Update package-lock.json

* Add models for token list

* Add BinanceMarket
2020-10-13 18:20:42 -07:00

6 lines
163 B
TypeScript

export function assetID(coin: number, token_id = ``): string {
if (token_id.length > 0) {
return `c${coin}_t${token_id}`
}
return `c${coin}`
}