Skip to content

Commit

Permalink
added alienworlds project (#11263)
Browse files Browse the repository at this point in the history
* added alienworlds project

* minor fix

---------

Co-authored-by: Mike D <[email protected]>
Co-authored-by: g1nt0ki <[email protected]>
  • Loading branch information
3 people authored Aug 12, 2024
1 parent c5b1c3b commit 67b514d
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions projects/alienworlds/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
const { get_account_tvl } = require("../helper/chain/eos");

const accounts = ["nftmt.worlds", "stake.worlds", "lore.worlds", "arena.worlds", "boost.worlds"]

// AlienWorlds
// https://alienworlds.io/
async function wax() {
const tokens = [
["eosio.token", "WAX", "wax"],
];
return await get_account_tvl(accounts, tokens, "wax");
}
async function staking() {
const tokens = [
["alien.worlds", "TLM", "alien-worlds"],
];
return await get_account_tvl(accounts, tokens, "wax");
}

module.exports = {
methodology: `AlienWorlds TVL is achieved by querying token balances from Staking, Voting & Gaming smart contract(s).`,
wax: {
tvl: wax,
staking,
},
}

0 comments on commit 67b514d

Please sign in to comment.