We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70cf9de commit d29395aCopy full SHA for d29395a
projects/quicksilver/index.js
@@ -13,6 +13,10 @@ const coinGeckoIds = {
13
usaga: "saga-2",
14
ubld: "agoric",
15
utia: "celestia",
16
+ aarch: "archway",
17
+ ppica: "picasso",
18
+ uflix: "omniflix-network",
19
+ inj: "injective",
20
};
21
22
async function tvl() {
@@ -23,7 +27,7 @@ async function tvl() {
23
27
zones.forEach((zone) => {
24
28
const balance = supply.find((coin) => coin.denom === zone.local_denom);
25
29
if (!balance) return
26
- const amount = zone.base_denom === "adydx" ? balance.amount / 1e18 : balance.amount / Math.pow(10, 6)
30
+ const amount = balance.amount / Math.pow(10, zone.decimals)
31
const id = coinGeckoIds[zone.base_denom]
32
sdk.util.sumSingleBalance(balances, id, amount * zone.redemption_rate);
33
});
0 commit comments