Skip to content

Commit

Permalink
separate staking for waxdao
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike D authored and Mike D committed Aug 14, 2024
1 parent 3fc3c7f commit 45d4349
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions projects/waxdao/index.js
Original file line number Diff line number Diff line change
@@ -1,28 +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 = ["waxdaofarmer",
"farms.waxdao",
"waxdaolocker",
"waxdaomarket",
"waxdaobacker",
"dao.waxdao",
"tf.waxdao",
"waxdaoescrow",
"waxdaosynths"];
const tokens = [
["eosio.token", "WAX", "wax"],
["wuffi", "WUF", "wuffi"],
["alien.worlds", "TLM", "alien-worlds"],
];
const accounts = ["waxdaolocker", "waxdaomarket", "waxdaobacker", "dao.waxdao", "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, market and DAO contracts`,
wax: {
tvl: wax
tvl: wax,
staking
},
}

0 comments on commit 45d4349

Please sign in to comment.