Skip to content

Commit 4b3cb2b

Browse files
committed
update zetaearn DefiLlama#12026
1 parent 650ba1e commit 4b3cb2b

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

projects/zetaEarn/index.js

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
1-
async function tvl(api) {
1+
async function zetaTvl(api) {
22
api.addGasToken(await api.call({target: '0x45334a5b0a01ce6c260f2b570ec941c680ea62c0', abi: 'uint256:getTotalPooledZETA'}))
3-
43
}
54

6-
module.exports = { zeta: { tvl } }
5+
const btrZTokens = [
6+
'0xd53E6f1d37f430d84eFad8060F9Fec558B36F6fa', // zbtc
7+
'0xdc842A54dB9E6136c7972eA863Efd6CE0d45602c', // zordi
8+
'0xb86e3Cc68d9C56E1b87DEddF49c4A6fdaaF04A82' // zsats
9+
];
10+
11+
async function btrTvl(api) {
12+
for (const token of btrZTokens) {
13+
const supply = await api.call({ abi: 'uint256:totalSupply', target: token });
14+
api.add(token, supply);
15+
}
16+
}
17+
18+
module.exports = { zeta: { tvl: zetaTvl }, btr: { tvl: btrTvl } }

0 commit comments

Comments
 (0)