Skip to content

Commit bccc0b8

Browse files
mdcryptonftsMike D
andauthored
added neftyblocks project and fixed atomichub TVL adapter (DefiLlama#11385)
Co-authored-by: Mike D <[email protected]>
1 parent 780376d commit bccc0b8

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-2
lines changed

projects/atomichub/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,15 @@ async function eos() {
1212
// AtomicHub
1313
// https://wax.atomichub.io/
1414
async function wax() {
15+
const accounts = ["atomicmarket", "atomicassets"];
1516
const tokens = [
1617
["eosio.token", "WAX", "wax"],
1718
];
18-
return await get_account_tvl("atomicmarket", tokens, "wax");
19+
return await get_account_tvl(accounts, tokens, "wax");
1920
}
2021

2122
module.exports = {
22-
methodology: `AtomicHub TVL is achieved by querying token balances from AtomicHub's smart contract.`,
23+
methodology: `AtomicHub TVL is achieved by querying token balances from AtomicHub's smart contracts.`,
2324
eos: {
2425
tvl: eos
2526
},

projects/neftyblocks/index.js

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
const { get_account_tvl } = require("../helper/chain/eos");
2+
3+
const tokens = [
4+
["eosio.token", "WAX", "wax"],
5+
["alien.worlds", "TLM", "alien-worlds"],
6+
["token.nefty", "NEFTY", "nefty"],
7+
];
8+
9+
// NeftyBlocks
10+
// https://neftyblocks.com
11+
async function wax() {
12+
const accounts = ["blend.nefty", "up.nefty", "neftyblocksd", "neftyblocksp", "market.nefty", "swap.nefty", "swap.we"];
13+
return await get_account_tvl(accounts, tokens, "wax");
14+
}
15+
16+
async function staking() {
17+
const accounts = ["stake.nefty", "reward.nefty"];
18+
return await get_account_tvl(accounts, tokens, "wax");
19+
}
20+
21+
module.exports = {
22+
methodology: `NeftyBlocks TVL is achieved by querying token balances from NFT market and swap contracts.`,
23+
wax: {
24+
tvl: wax,
25+
staking
26+
},
27+
}

0 commit comments

Comments
 (0)