From e0071e8d6da9e7a8de50840bab741b68646bb632 Mon Sep 17 00:00:00 2001 From: mdcryptonfts <105838382+mdcryptonfts@users.noreply.github.com> Date: Sat, 17 Aug 2024 06:15:23 -0400 Subject: [PATCH] Added waxdao project (#11286) * added waxdao project * separate staking for waxdao * removed dao.waxdao contract --------- Co-authored-by: Mike D --- projects/waxdao/index.js | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 projects/waxdao/index.js diff --git a/projects/waxdao/index.js b/projects/waxdao/index.js new file mode 100644 index 000000000000..ed2f776ee96a --- /dev/null +++ b/projects/waxdao/index.js @@ -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 + }, +} \ No newline at end of file