|
|
@ -104,11 +104,13 @@ export class CoinGeckoTokenPriceGetter implements TokenPriceGetter { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const toQuery = chains.filter((c) => !this.cache.isFresh(c)); |
|
|
|
const toQuery = chains.filter((c) => !this.cache.isFresh(c)); |
|
|
|
|
|
|
|
if (toQuery.length > 0) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
await this.queryTokenPrices(toQuery); |
|
|
|
await this.queryTokenPrices(toQuery); |
|
|
|
} catch (e) { |
|
|
|
} catch (e) { |
|
|
|
warn('Failed to query token prices', e); |
|
|
|
warn('Failed to query token prices', e); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
return chains.map((chain) => this.cache.fetch(chain)); |
|
|
|
return chains.map((chain) => this.cache.fetch(chain)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|