Skip to content

Commit 8661721

Browse files
committed
fix: deleted wrong price loader method
1 parent 624dfe5 commit 8661721

File tree

1 file changed

+4
-0
lines changed
  • packages/fasset-indexer-api/src/analytics/utils

1 file changed

+4
-0
lines changed

packages/fasset-indexer-api/src/analytics/utils/prices.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ export class FAssetPriceLoader {
1515
return this.cache.get(fasset)
1616
}
1717

18+
async clearCache() {
19+
this.cache.clear()
20+
}
21+
1822
// doesn't need caching yet
1923
async fassetToUsd(em: EntityManager, fasset: FAssetType, amount: bigint): Promise<bigint> {
2024
const [mul, div] = await this.fassetToUsdPrice(em, fasset)

0 commit comments

Comments
 (0)