From dcc0a7f46dea1eeb70f26aef6854eb6ad9198ed0 Mon Sep 17 00:00:00 2001 From: Ignacio Date: Fri, 5 Jan 2024 16:19:41 +0800 Subject: [PATCH] fix: use correct coin denom --- src/graphql/routes/oasis-api.ts | 2 +- src/graphql/utils/coingecko-data.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/graphql/routes/oasis-api.ts b/src/graphql/routes/oasis-api.ts index 758fbc5..26dbde6 100644 --- a/src/graphql/routes/oasis-api.ts +++ b/src/graphql/routes/oasis-api.ts @@ -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 [ { diff --git a/src/graphql/utils/coingecko-data.ts b/src/graphql/utils/coingecko-data.ts index 097bbc2..6a11e2a 100644 --- a/src/graphql/utils/coingecko-data.ts +++ b/src/graphql/utils/coingecko-data.ts @@ -1,5 +1,6 @@ import { RESTDataSource } from "@apollo/datasource-rest"; +// https://www.coingecko.com/ export class CoinGeckoDataSource extends RESTDataSource { baseURL = "https://api.coingecko.com";