mirror of
https://github.com/Instadapp/trustwallet-assets.git
synced 2024-07-29 22:37:31 +00:00
9b41a52182
* 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
6 lines
163 B
TypeScript
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}`
|
|
} |