Skip to content

Commit

Permalink
Use ibc-metadata.testnet.burnt.com
Browse files Browse the repository at this point in the history
  • Loading branch information
froch committed May 30, 2024
1 parent 2864ba5 commit 271d89f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/stores/useFormatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ export const useFormatter = defineStore('formatter', {
return trace;
},
async fetchDenomMetadata(denom: string) {
if(this.loading.includes(denom)) return
if(this.loading.includes(denom)) return
this.loading.push(denom)
const asset = await get(`https://metadata.ping.pub/metadata/${denom}`) as Asset
const asset = await get(`https://ibc-metadata.testnet.burnt.com/metadata/${denom}`) as Asset
this.ibcMetadata[denom] = asset
},
priceInfo(denom: string) {
Expand Down Expand Up @@ -127,7 +127,7 @@ export const useFormatter = defineStore('formatter', {
if(!token || !token.denom) return 0

// find the symbol
const symbol = this.dashboard.coingecko[token.denom]?.symbol || token.denom
const symbol = this.dashboard.coingecko[token.denom]?.symbol || token.denom
// convert denomination to symbol
const exponent = this.dashboard.coingecko[symbol?.toLowerCase()]?.exponent || this.specialDenom(token.denom);
// caculate amount of symbol
Expand All @@ -147,7 +147,7 @@ export const useFormatter = defineStore('formatter', {
formatToken2(token: { denom: string; amount: string }, withDenom = true) {
return this.formatToken(token, true, '0,0.[00]');
},

findGlobalAssetConfig(denom: string) {
const chains = Object.values(this.dashboard.chains)
for ( let i =0; i < chains.length; i++ ) {
Expand Down Expand Up @@ -197,7 +197,7 @@ export const useFormatter = defineStore('formatter', {
if (x.exponent >= unit.exponent) {
unit = x;
}
});
});
return unit.denom;
}
return denom;
Expand Down

0 comments on commit 271d89f

Please sign in to comment.