-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Showing
111 changed files
with
826 additions
and
1,175 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
const { getUniTVL } = require('../helper/unknownTokens') | ||
|
||
const FACTORY = "0x2b6852CeDEF193ece9814Ee99BE4A4Df7F463557" // This factory is on AirDAO Mainnet (Chain Id: 16718) | ||
|
||
const dexTVL = getUniTVL({ factory: FACTORY, useDefaultCoreAssets: true, fetchBalances: true, }) | ||
|
||
module.exports = { | ||
misrepresentedTokens: true, | ||
methodology: `Uses factory(${FACTORY}) address to find and price Liquidity Pool pairs.`, | ||
airdao: { | ||
tvl: dexTVL | ||
} | ||
}; |
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
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
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,17 +1,11 @@ | ||
const { getUniTVL } = require('../helper/unknownTokens'); | ||
|
||
|
||
const tvl = getUniTVL({ factory: '0xAf39606bec181887951Ab6912Ac7EA216Bd6E4B4', useDefaultCoreAssets: true, fetchBalances: true, }) | ||
|
||
module.exports = { | ||
misrepresentedTokens: true, | ||
ethereum:{ | ||
tvl: getUniTVL({ factory: '0x6624Ac5F9abFA36174511607860e81C8dB9e84E9', useDefaultCoreAssets: true, fetchBalances: true, }), | ||
}, | ||
arbitrum:{ | ||
tvl: getUniTVL({ factory: '0x40Cbdf84475f8Dd7C9a9c665eDE551EeaaF21F8d', useDefaultCoreAssets: true, fetchBalances: true, }), | ||
}, | ||
base:{ | ||
tvl: getUniTVL({ factory: '0xD2156Bb9ed200FE88705443BfFcA788BA8b205f6', useDefaultCoreAssets: true, fetchBalances: true, }), | ||
}, | ||
bsc:{ | ||
tvl: getUniTVL({ factory: '0x40Cbdf84475f8Dd7C9a9c665eDE551EeaaF21F8d', useDefaultCoreAssets: true, fetchBalances: true, }), | ||
}, | ||
ethereum: { tvl, }, | ||
arbitrum: { tvl, }, | ||
base: { tvl, }, | ||
bsc: { tvl, }, | ||
} |
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 |
---|---|---|
@@ -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, | ||
}, | ||
} |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
const ADDRESSES = require('../helper/coreAssets.json'); | ||
const { sumTokensExport } = require('../helper/unwrapLPs'); | ||
|
||
const tokens = [ | ||
ADDRESSES.ethereum.USDT, | ||
]; | ||
|
||
const walletAddresses = { | ||
ethereum: ['0xA61a6E696B7C566DA42B80dA27d96e7104bcec99'], | ||
arbitrum: ['0x552E7A55802f3350C707a243E402aa50Eda9D286'] | ||
|
||
}; | ||
|
||
const tokenAddress = { | ||
ethereum: [ADDRESSES.ethereum.USDT], | ||
arbitrum: [ADDRESSES.arbitrum.USDT], | ||
|
||
|
||
} | ||
|
||
module.exports = { | ||
ethereum: { | ||
tvl: sumTokensExport({ owners: walletAddresses.ethereum, tokens: tokenAddress.ethereum }), | ||
}, | ||
arbitrum: { | ||
tvl: sumTokensExport({ owners: walletAddresses.arbitrum, tokens: tokenAddress.arbitrum }), | ||
}, | ||
|
||
}; |
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
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
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
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
const sdk = require('@defillama/sdk'); | ||
const { sumTokensExport } = require('../helper/sumTokens'); | ||
|
||
//https://support.avax.network/en/articles/6349640-how-does-the-avalanche-bridge-work | ||
const owners = [ | ||
'bc1q2f0tczgrukdxjrhhadpft2fehzpcrwrz549u90', // https://prnt.sc/unrBvLvw3z1t | ||
] | ||
|
||
module.exports = { | ||
methodology: 'BTC wallets on bc1q2f0tczgrukdxjrhhadpft2fehzpcrwrz549u90', | ||
bitcoin: { | ||
tvl: sdk.util.sumChainTvls([ | ||
sumTokensExport({ owners }), | ||
]), | ||
}, | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
const ADDRESSES = require("../helper/coreAssets.json") | ||
const { sumTokensExport } = require("../helper/chain/ton") | ||
const CONTRACT = "EQDswKn606G8kwS8RuUJg9baJbgAhixb6bYJC6VmIPU873uq" | ||
|
||
module.exports = { | ||
methodology: "Counts all TON balance in the smart contract as the TVL", | ||
timetravel: false, | ||
ton: { | ||
tvl: sumTokensExport({ | ||
owners: [CONTRACT], | ||
tokens: ADDRESSES.ton.TON, | ||
}) | ||
}, | ||
}; |
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
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
async function tvl(api) { | ||
const TwoPoolFactory = '0x634FB7F07BDb77281c64a57F69E1EB19583E727a' | ||
const pools = await api.fetchList({ lengthAbi: 'pool_count', itemAbi: 'pool_list', target: TwoPoolFactory }) | ||
const tokens = await api.multiCall({ target: TwoPoolFactory, calls: pools, abi: 'function get_coins(address _pool) view returns (address[2])' }) | ||
const ownerTokens = tokens.map((v, i) => [v, pools[i]]) | ||
return api.sumTokens({ ownerTokens }) | ||
} | ||
|
||
module.exports = { | ||
bevm: { | ||
tvl | ||
} | ||
} |
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,11 +1,12 @@ | ||
const ADDRESSES = require('../helper/coreAssets.json') | ||
const { staking } = require("../helper/staking.js"); | ||
|
||
const vaults = ['0xC52fb7E613e401a0195C2fdB369618580D58C91D', '0x013249266842e078999088807033D80531A84260']; | ||
const tokens = ['0xd43D8aDAC6A4C7d9Aeece7c3151FcA8f23752cf8', '0x5ffd9EbD27f2fcAB044c0f0a26A45Cb62fa29c06']; | ||
|
||
module.exports = { | ||
blast: { | ||
tvl: staking('0x0464a36beCf9967111D2dCAb57CAf4a2376f6E3F', '0xb1a5700fa2358173fe465e6ea4ff52e36e88e2ad'), | ||
tvl: staking('0x0464a36beCf9967111D2dCAb57CAf4a2376f6E3F', ADDRESSES.blast.BLAST), | ||
staking: staking(vaults, tokens) | ||
}, | ||
} |
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
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
Oops, something went wrong.