Skip to content

Commit 882d464

Browse files
authored
AImstrong: Added ZetaChain (#17025)
1 parent 55293e5 commit 882d464

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

projects/aimstrong/index.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,17 @@ const CONFIG = {
1111
};
1212

1313
async function tvl(api) {
14+
if (api.chain === "zeta") {
15+
const treasury = "0x18351419aE86F3DD3128943ec01b873b4f35801D";
16+
const tokens = [
17+
"0x1de70f3e971B62A0707dA18100392af14f7fB677",
18+
"0xA614Aebf7924A3Eb4D066aDCA5595E4980407f1d",
19+
"0x48f80608B672DC30DC7e3dbBd0343c5F02C738Eb",
20+
];
21+
const tokensAndOwners = tokens.map((t) => [t, treasury]);
22+
return api.sumTokens({ tokensAndOwners });
23+
}
24+
1425
const pool = CONFIG[api.chain];
1526
const reserves = await api.call({ target: pool, abi: abi.getReservesList });
1627
const datas = await api.multiCall({
@@ -48,4 +59,5 @@ module.exports = {
4859
arbitrum: { tvl, borrowed },
4960
base: { tvl, borrowed },
5061
bsc: { tvl, borrowed },
51-
};
62+
zeta: { tvl },
63+
};

0 commit comments

Comments
 (0)