We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 624dfe5 commit 8661721Copy full SHA for 8661721
packages/fasset-indexer-api/src/analytics/utils/prices.ts
@@ -15,6 +15,10 @@ export class FAssetPriceLoader {
15
return this.cache.get(fasset)
16
}
17
18
+ async clearCache() {
19
+ this.cache.clear()
20
+ }
21
+
22
// doesn't need caching yet
23
async fassetToUsd(em: EntityManager, fasset: FAssetType, amount: bigint): Promise<bigint> {
24
const [mul, div] = await this.fassetToUsdPrice(em, fasset)
0 commit comments