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 650ba1e commit 4b3cb2bCopy full SHA for 4b3cb2b
projects/zetaEarn/index.js
@@ -1,6 +1,18 @@
1
-async function tvl(api) {
+async function zetaTvl(api) {
2
api.addGasToken(await api.call({target: '0x45334a5b0a01ce6c260f2b570ec941c680ea62c0', abi: 'uint256:getTotalPooledZETA'}))
3
-
4
}
5
6
-module.exports = { zeta: { tvl } }
+const btrZTokens = [
+ '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