-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
}, | ||
} |