Skip to content

Commit

Permalink
fix: use correct coingecko name
Browse files Browse the repository at this point in the history
  • Loading branch information
icfor committed Jan 5, 2024
1 parent 4737129 commit 0f367f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/graphql/routes/oasis-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class OasisAPI extends RESTDataSource {
async getOasisTVL() {
// @hardcoded
const base = 57_164_450.3;
const price = await this.gecko.getCoinPrice("rose");
const price = await this.gecko.getCoinPrice("oasis-network");

return [
{
Expand Down
1 change: 1 addition & 0 deletions src/graphql/utils/coingecko-data.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { RESTDataSource } from "@apollo/datasource-rest";

// https://www.coingecko.com/
export class CoinGeckoDataSource extends RESTDataSource {
baseURL = "https://api.coingecko.com";

Expand Down

0 comments on commit 0f367f8

Please sign in to comment.