Skip to content

Commit d29395a

Browse files
authored
Add new denoms to Quicksilver (DefiLlama#12963)
1 parent 70cf9de commit d29395a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

projects/quicksilver/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ const coinGeckoIds = {
1313
usaga: "saga-2",
1414
ubld: "agoric",
1515
utia: "celestia",
16+
aarch: "archway",
17+
ppica: "picasso",
18+
uflix: "omniflix-network",
19+
inj: "injective",
1620
};
1721

1822
async function tvl() {
@@ -23,7 +27,7 @@ async function tvl() {
2327
zones.forEach((zone) => {
2428
const balance = supply.find((coin) => coin.denom === zone.local_denom);
2529
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)
2731
const id = coinGeckoIds[zone.base_denom]
2832
sdk.util.sumSingleBalance(balances, id, amount * zone.redemption_rate);
2933
});

0 commit comments

Comments
 (0)