Changeset View
Changeset View
Standalone View
Standalone View
modules/ecash-price/src/providers/coingecko.ts
| Show All 37 Lines | switch (ticker.toString()) { | ||||
| case CryptoTicker.BTC.toString(): | case CryptoTicker.BTC.toString(): | ||||
| return 'bitcoin'; | return 'bitcoin'; | ||||
| case CryptoTicker.ETH.toString(): | case CryptoTicker.ETH.toString(): | ||||
| return 'ethereum'; | return 'ethereum'; | ||||
| case CryptoTicker.XMR.toString(): | case CryptoTicker.XMR.toString(): | ||||
| return 'monero'; | return 'monero'; | ||||
| case CryptoTicker.SOL.toString(): | case CryptoTicker.SOL.toString(): | ||||
| return 'solana'; | return 'solana'; | ||||
| case CryptoTicker.USDT.toString(): | |||||
| return 'tether'; | |||||
| } | } | ||||
| throw new Error(`Unsupported crypto ticker: ${ticker}`); | throw new Error(`Unsupported crypto ticker: ${ticker}`); | ||||
| } | } | ||||
| /** | /** | ||||
| * CoinGecko price provider implementation | * CoinGecko price provider implementation | ||||
| */ | */ | ||||
| ▲ Show 20 Lines • Show All 237 Lines • Show Last 20 Lines | |||||