Skip to content

Commit

Permalink
fix: api price watcher
Browse files Browse the repository at this point in the history
  • Loading branch information
serezhaolshan committed Jul 5, 2024
1 parent 50d1997 commit 1a145c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/price-watchers/api-price-watcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class ApiPriceWatcher {
}

private async watchApiPrice() {
const { data: price } = await axios.get(tokenPriceUrl);
await this.cacheStorage.set("apiPrice", price.data.PriceUSD);
const { data: { data: { price_usd: price } } } = await axios.get(tokenPriceUrl);
await this.cacheStorage.set("apiPrice", Number(price));
}
}

0 comments on commit 1a145c0

Please sign in to comment.