@@ -162,7 +162,7 @@ export class TokenProvider {
162
162
async fetchTokenCodex ( ) : Promise < TokenCodex > {
163
163
try {
164
164
const cacheKey = `token_${ this . tokenAddress } ` ;
165
- const cachedData = this . getCachedData < TokenCodex > ( cacheKey ) ;
165
+ const cachedData = await this . getCachedData < TokenCodex > ( cacheKey ) ;
166
166
if ( cachedData ) {
167
167
console . log (
168
168
`Returning cached token data for ${ this . tokenAddress } .`
@@ -243,7 +243,7 @@ export class TokenProvider {
243
243
async fetchPrices ( ) : Promise < Prices > {
244
244
try {
245
245
const cacheKey = "prices" ;
246
- const cachedData = this . getCachedData < Prices > ( cacheKey ) ;
246
+ const cachedData = await this . getCachedData < Prices > ( cacheKey ) ;
247
247
if ( cachedData ) {
248
248
console . log ( "Returning cached prices." ) ;
249
249
return cachedData ;
@@ -340,7 +340,7 @@ export class TokenProvider {
340
340
341
341
async fetchTokenSecurity ( ) : Promise < TokenSecurityData > {
342
342
const cacheKey = `tokenSecurity_${ this . tokenAddress } ` ;
343
- const cachedData = this . getCachedData < TokenSecurityData > ( cacheKey ) ;
343
+ const cachedData = await this . getCachedData < TokenSecurityData > ( cacheKey ) ;
344
344
if ( cachedData ) {
345
345
console . log (
346
346
`Returning cached token security data for ${ this . tokenAddress } .`
@@ -370,7 +370,7 @@ export class TokenProvider {
370
370
371
371
async fetchTokenTradeData ( ) : Promise < TokenTradeData > {
372
372
const cacheKey = `tokenTradeData_${ this . tokenAddress } ` ;
373
- const cachedData = this . getCachedData < TokenTradeData > ( cacheKey ) ;
373
+ const cachedData = await this . getCachedData < TokenTradeData > ( cacheKey ) ;
374
374
if ( cachedData ) {
375
375
console . log (
376
376
`Returning cached token trade data for ${ this . tokenAddress } .`
@@ -605,7 +605,7 @@ export class TokenProvider {
605
605
606
606
async fetchDexScreenerData ( ) : Promise < DexScreenerData > {
607
607
const cacheKey = `dexScreenerData_${ this . tokenAddress } ` ;
608
- const cachedData = this . getCachedData < DexScreenerData > ( cacheKey ) ;
608
+ const cachedData = await this . getCachedData < DexScreenerData > ( cacheKey ) ;
609
609
if ( cachedData ) {
610
610
console . log ( "Returning cached DexScreener data." ) ;
611
611
return cachedData ;
@@ -746,7 +746,7 @@ export class TokenProvider {
746
746
747
747
async fetchHolderList ( ) : Promise < HolderData [ ] > {
748
748
const cacheKey = `holderList_${ this . tokenAddress } ` ;
749
- const cachedData = this . getCachedData < HolderData [ ] > ( cacheKey ) ;
749
+ const cachedData = await this . getCachedData < HolderData [ ] > ( cacheKey ) ;
750
750
if ( cachedData ) {
751
751
console . log ( "Returning cached holder list." ) ;
752
752
return cachedData ;
0 commit comments