Skip to content

Commit

Permalink
chore: perp markets token metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
shane-moore committed Jan 31, 2024
1 parent d58f561 commit 0035bef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/sdk-ui-ts/src/token/TokenService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,10 @@ export class TokenService {
.replaceAll(' ', '-')
.toLowerCase()
const [baseTokenSymbol] = slug.split('-')
const baseToken = await this.denomClient.getDenomToken(baseTokenSymbol)
const baseToken = {
...(await this.denomClient.getTokenMetaDataBySymbol(baseTokenSymbol)),
denom: baseTokenSymbol,
} as Token
const quoteToken = await this.denomClient.getDenomToken(market.quoteDenom)

return {
Expand Down
3 changes: 3 additions & 0 deletions packages/token-metadata/src/tokens/tokens/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export default {

wBTC: {
name: 'Wrapped Bitcoin',
symbol: 'wBTC',
logo: 'wbtc.png',
coinGeckoId: 'wrapped-bitcoin',

Expand All @@ -32,6 +33,7 @@ export default {

ETH: {
name: 'Ethereum',
symbol: 'ETH',
logo: 'ethereum.png',
coinGeckoId: 'ethereum',

Expand All @@ -45,6 +47,7 @@ export default {

wETH: {
name: 'Wrapped Ethereum',
symbol: 'wETH',
logo: 'ethereum.png',
coinGeckoId: 'ethereum',

Expand Down

0 comments on commit 0035bef

Please sign in to comment.