Skip to content

Commit

Permalink
Added waxdao project (DefiLlama#11286)
Browse files Browse the repository at this point in the history
* added waxdao project

* separate staking for waxdao

* removed dao.waxdao contract

---------

Co-authored-by: Mike D <[email protected]>
  • Loading branch information
2 people authored and 0xIvan committed Sep 11, 2024
1 parent 45b7e51 commit e0071e8
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions projects/waxdao/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
const { get_account_tvl } = require("../helper/chain/eos");

const staking_accounts = ["waxdaofarmer", "farms.waxdao", "tf.waxdao"];

const tokens = [
["eosio.token", "WAX", "wax"],
["wuffi", "WUF", "wuffi"],
["alien.worlds", "TLM", "alien-worlds"],
];


// WaxDAO
// https://waxdao.io
async function wax() {
const accounts = ["waxdaolocker", "waxdaomarket", "waxdaobacker", "waxdaoescrow", "waxdaosynths"];

return await get_account_tvl(accounts, tokens, "wax");
}

async function staking() {
return await get_account_tvl(staking_accounts, tokens, "wax");
}

module.exports = {
methodology: `WaxDAO TVL is achieved by querying token balances from vesting, farming, and market contract(s)`,
wax: {
tvl: wax,
staking
},
}

0 comments on commit e0071e8

Please sign in to comment.