-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'DefiLlama:main' into main
- Loading branch information
Showing
18 changed files
with
216 additions
and
103 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 |
---|---|---|
@@ -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
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
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,30 @@ | ||
const { getConfig } = require('../helper/cache') | ||
const { sumERC4626Vaults } = require('../helper/erc4626'); | ||
const { sumTokens2 } = require('../helper/unwrapLPs'); | ||
|
||
const POOL_API_URL = "https://firoza.finance/api/pools"; | ||
|
||
async function tvl(api) { | ||
const poolAddresses = await getConfig('firoza', POOL_API_URL); | ||
const assets = await api.multiCall({ abi: 'address:asset', calls: poolAddresses}) | ||
return sumTokens2({ api, tokensAndOwners2: [assets, poolAddresses] }) | ||
} | ||
|
||
async function borrowed(api) { | ||
const poolAddresses = await getConfig('firoza', POOL_API_URL); | ||
const assets = await api.multiCall({ abi: 'address:asset', calls: poolAddresses}) | ||
await sumERC4626Vaults({ api, calls: poolAddresses, isOG4626: true, }); | ||
const calls = assets.map((target, i) => ({ target, params: poolAddresses[i] })); | ||
const tokenBals = await api.multiCall({ abi: 'erc20:balanceOf', calls }) | ||
tokenBals.forEach((bal, i) => api.add(assets[i], bal * -1)) | ||
return sumTokens2({ api }) | ||
} | ||
|
||
|
||
module.exports = { | ||
methodology: "TVL counts the tokens deposited in the Firoza Finance pools.", | ||
islm: { tvl, borrowed, }, | ||
hallmarks: [ | ||
[1688169600, "Launch on ISLM"] | ||
], | ||
}; |
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,5 @@ | ||
const { aaveExports } = require('../helper/aave') | ||
|
||
module.exports = { | ||
scroll: aaveExports("scroll", "0xBc6DE4458b7D6fbf82240ce8cC0CA6a2f4986eb5"), | ||
} |
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,11 @@ | ||
const { sumTokensExport } = require("../helper/sumTokens"); | ||
const sdk = require("@defillama/sdk"); | ||
|
||
const owner = "bc1qajcp935tuvqakut95f0sc9qm09hxjj6egexl9d"; | ||
|
||
module.exports = { | ||
methodology: `Total amount of BTC in ${owner}.`, | ||
bitcoin: { | ||
tvl: sdk.util.sumChainTvls([sumTokensExport({ owner })]), | ||
}, | ||
}; |
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
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,23 @@ | ||
const { get_account_tvl } = require("../helper/chain/eos"); | ||
|
||
// Taco Studios | ||
// https://swap.tacocrypto.io | ||
async function wax() { | ||
const accounts = ["swap.taco"]; | ||
const tokens = [ | ||
["eosio.token", "WAX", "wax"], | ||
["token.nefty", "NEFTY", "nefty"], | ||
["alien.worlds", "TLM", "alien-worlds"], | ||
["usdt.alcor", "USDT", "alcor-ibc-bridged-usdt-wax"], | ||
["wombattokens", "WOMBAT", "wombat"], | ||
["wuffi", "WUF", "wuffi"] | ||
]; | ||
return await get_account_tvl(accounts, tokens, "wax"); | ||
} | ||
|
||
module.exports = { | ||
methodology: `Taco Studios TVL is achieved by querying token balances from a (v2 uniswap fork) swap contract`, | ||
wax: { | ||
tvl: wax | ||
}, | ||
} |
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.