Skip to content

Commit 24dd550

Browse files
mdcryptonftsMike D
andauthored
Added waxdao project (DefiLlama#11286)
* added waxdao project * separate staking for waxdao * removed dao.waxdao contract --------- Co-authored-by: Mike D <[email protected]>
1 parent 14d5e7f commit 24dd550

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

projects/waxdao/index.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
const { get_account_tvl } = require("../helper/chain/eos");
2+
3+
const staking_accounts = ["waxdaofarmer", "farms.waxdao", "tf.waxdao"];
4+
5+
const tokens = [
6+
["eosio.token", "WAX", "wax"],
7+
["wuffi", "WUF", "wuffi"],
8+
["alien.worlds", "TLM", "alien-worlds"],
9+
];
10+
11+
12+
// WaxDAO
13+
// https://waxdao.io
14+
async function wax() {
15+
const accounts = ["waxdaolocker", "waxdaomarket", "waxdaobacker", "waxdaoescrow", "waxdaosynths"];
16+
17+
return await get_account_tvl(accounts, tokens, "wax");
18+
}
19+
20+
async function staking() {
21+
return await get_account_tvl(staking_accounts, tokens, "wax");
22+
}
23+
24+
module.exports = {
25+
methodology: `WaxDAO TVL is achieved by querying token balances from vesting, farming, and market contract(s)`,
26+
wax: {
27+
tvl: wax,
28+
staking
29+
},
30+
}

0 commit comments

Comments
 (0)