Skip to content

Commit 36562c0

Browse files
committed
feat: add TVL calculation for 1DEX on EOS
1 parent cd14a01 commit 36562c0

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

projects/1dex/index.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
const { get_account_tvl } = require("../helper/chain/eos");
2+
3+
// 1DEX
4+
// https://1dex.com
5+
async function eos() {
6+
const accounts = ["app.1dex", "portal.1dex"];
7+
const tokens = [
8+
["eosio.token", "EOS", "eos"],
9+
["tethertether", "USDT", "tether"]
10+
];
11+
return await get_account_tvl(accounts, tokens, "eos");
12+
}
13+
14+
module.exports = {
15+
methodology: `1DEX TVL is achieved by querying token balances from swap smart contract.`,
16+
eos: {
17+
tvl: eos
18+
},
19+
}

0 commit comments

Comments
 (0)