Skip to content

Commit ac766f4

Browse files
chore: set G$ coingecko token code (#109)
# 🤖 Linear ## Description ## Checklist before requesting a review - [x] I have conducted a self-review of my code. - [ ] I have conducted a QA. - [ ] If it is a core feature, I have included comprehensive tests. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Now supporting price data retrieval for the GoodDollar token, so you can see updated market information for GoodDollar in your pricing displays. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
2 parents 0408b7a + f468d7e commit ac766f4

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

packages/pricing/src/providers/coingecko.provider.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ const TokenMapping: { [key: string]: CoingeckoTokenId | undefined } = {
6060
// MTK: undefined,
6161
WSEI: "wrapped-sei" as CoingeckoTokenId,
6262
HBAR: "hedera-hashgraph" as CoingeckoTokenId,
63+
G$: "gooddollar" as CoingeckoTokenId,
6364
};
6465

6566
// sometimes coingecko returns no prices for 1 hour range, 2 hours works better

packages/shared/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,5 @@ const TOKENS: {
7474
},
7575
};
7676
```
77+
78+
Make sure to update the mapping in coingecko.provider.ts if the priceSourceCode differs from the token code required by CoinGecko.

0 commit comments

Comments
 (0)