Skip to content

Commit

Permalink
Added Waxfusion adapter (#11216)
Browse files Browse the repository at this point in the history
* added waxfusion adapter

* added liquid.alcor to alcor TVL

---------

Co-authored-by: Mike D <[email protected]>
  • Loading branch information
mdcryptonfts and Mike D authored Aug 7, 2024
1 parent 480df4d commit 7c8a0e3
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion projects/alcor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ async function eos() {
// Alcor
// https://wax.alcor.exchange
async function wax() {
const accounts = ["swap.alcor", "alcordexmain"];
const accounts = ["swap.alcor", "alcordexmain", "liquid.alcor"];
const tokens = [
["eosio.token", "WAX", "wax"],
["alien.worlds", "TLM", "alien-worlds"],
Expand Down
18 changes: 18 additions & 0 deletions projects/waxfusion/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
const { get_account_tvl } = require("../helper/chain/eos");

// WaxFusion
// https://waxfusion.io
async function wax() {
const accounts = ["dapp.fusion", "pol.fusion", "cpu1.fusion", "cpu2.fusion", "cpu3.fusion"];
const tokens = [
["eosio.token", "WAX", "wax"]
];
return await get_account_tvl(accounts, tokens, "wax");
}

module.exports = {
methodology: `WaxFusion TVL is achieved by querying token balances from liquid staking contracts`,
wax: {
tvl: wax
},
}

0 comments on commit 7c8a0e3

Please sign in to comment.