Skip to content

Commit

Permalink
Merge branch 'DefiLlama:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
GooGrand authored Nov 27, 2024
2 parents daaf30c + 08239f8 commit c35e256
Show file tree
Hide file tree
Showing 372 changed files with 359 additions and 393 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"useTokenLabels": "node utils/scripts/useTokenLabels.js",
"biggest-files": "find ./projects -name '*.js' -not -path './projects/helper/*' -not -path './projects/curve/*' -not -path './projects/sigmao/*' -exec du -sh {} \\; | sort -rh | head -n 100",
"check-bitcoin-duplicates": "node utils/scripts/checkBTCDupsv2.js",
"string-timestamp": "node utils/scripts/stringTimestamp.js",
"postinstall": "echo 'run \"npm update @defillama/sdk\" if you want lastest sdk changes' "
},
"author": "",
Expand Down
2 changes: 1 addition & 1 deletion projects/0x0dex/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ const { sumTokensExport, nullAddress } = require('../helper/unwrapLPs');
const ETH_POOL_ADDRESS = "0x3d18AD735f949fEbD59BBfcB5864ee0157607616";

module.exports = {
start: 1685386800, // 19/05/2023 @ 07:00pm UTC
start: '2023-05-29', // 19/05/2023 @ 07:00pm UTC
ethereum: { tvl: sumTokensExport({ owner: ETH_POOL_ADDRESS, tokens: [nullAddress]}) },
};
2 changes: 1 addition & 1 deletion projects/0x_nodes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ module.exports = {
],
methodology: ` Counts the number of wrapped native tokens in all yield strategies across all the chains the protocol is deployed on
+ staking counts the number of BIOS tokens staked in the kernels across all the chains (PFA: Protocol Fee Accruals by staking assets)`,
start: 1633046400, // Friday 1. October 2021 00:00:00 GMT
start: '2021-10-01', // Friday 1. October 2021 00:00:00 GMT
...tvlExports,
deadFrom: 1659527340,
}
Expand Down
2 changes: 1 addition & 1 deletion projects/0xacid/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const ACID_STAKING = "0x00a842038a674616f6a97e62f80111a536778282";
const ACID_TOKEN = "0x29C1EA5ED7af53094b1a79eF60d20641987c867e";

module.exports = {
start: 1678417200,
start: '2023-03-10',
arbitrum: {
tvl: () => ({}),
staking: stakingUnknownPricedLP(ACID_STAKING, ACID_TOKEN, "arbitrum", "0x73474183a94956cd304c6c5a504923d8150bd9ce")
Expand Down
1 change: 0 additions & 1 deletion projects/1155Tech/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const MARKET_1155TECH_CONTRACT = '0x33b77fAf955Ed3eDAf939ae66C4D7a2D78bc30C6';

module.exports = {
methodology: 'Value of all Keys across all art markets is TVL in the protocol',
start: 7280880,
canto: {
tvl: sumTokensExport({ owner: MARKET_1155TECH_CONTRACT, tokens: [ADDRESSES.canto.NOTE] })
}
Expand Down
2 changes: 1 addition & 1 deletion projects/3xcalibur/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const { uniTvlExport } = require("../helper/calculateUniTvl.js");

module.exports = {
misrepresentedTokens: true,
start: 1667689200,
start: '2022-11-06',
arbitrum: {
tvl: uniTvlExport("0xD158bd9E8b6efd3ca76830B66715Aa2b7Bad2218", "arbitrum", undefined, undefined, { hasStablePools: true, useDefaultCoreAssets: true, }),
},
Expand Down
2 changes: 1 addition & 1 deletion projects/88mph/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,6 @@ tvlExports.ethereum.staking = staking("0x1702F18c1173b791900F81EbaE59B908Da8F689

module.exports = {
methodology: `Using the addresses for the fixed interest rate bonds we are able to find the underlying tokens held in each address. Once we have the underlying token we then get the balances of each of the tokens. For the CRV tokens used "CRV:STETH" for example, the address is replaced with the address of one of the tokens. In the example at hand the address is replaced with the "WETH" address so that the price can be calculated.`,
start: 1606109629, // Monday, November 23, 2020 5:33:49 AM GMT
start: '2020-11-23', // Monday, November 23, 2020 5:33:49 AM GMT
...tvlExports
}
9 changes: 0 additions & 9 deletions projects/BankOfCronos/index.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
const ADDRESSES = require('../helper/coreAssets.json')
const { sumTokensExport } = require("../helper/unwrapLPs");

const BOC_TREASURY_ADDRESS = "0xBacF28BF21B374459C738289559EF89978D08102";
const CUSD_ADDRESS = "0x26043Aaa4D982BeEd7750e2D424547F5D76951d4";
const USDC_ADDRESS = ADDRESSES.cronos.USDC;

module.exports = {
start: 6949784,
cronos: {
// tvl: sumTokensExport({ owner: BOC_TREASURY_ADDRESS, tokens: [CUSD_ADDRESS, USDC_ADDRESS]}),
tvl: () => 0
},
methodology:
Expand Down
1 change: 0 additions & 1 deletion projects/BankofCronos-Loans/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ async function tvl(api) {
}

module.exports = {
start: 6949784,
cronos: {
tvl,
},
Expand Down
2 changes: 1 addition & 1 deletion projects/DeNet/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const owners = [
]

module.exports = {
start: 1691761595, // Friday, 11-Aug-23 13:46:35 UTC
start: '2023-08-11', // Friday, 11-Aug-23 13:46:35 UTC
methodology: "Total amount of DE tokens used for DeNet storage payments",

polygon: {
Expand Down
2 changes: 1 addition & 1 deletion projects/FeeFree/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const config = {
}

module.exports = {
start: 1714060800, // Apr 26 2024
start: '2024-04-25', // Apr 26 2024
}

Object.keys(config).forEach(chain => {
Expand Down
2 changes: 1 addition & 1 deletion projects/LamaMiner/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const LP_LQDX_LAMA = "0x3a74922803415Dfc43c0030d47707b20f4c1b05d"
module.exports = {
misrepresentedTokens: true,
methodology: 'counts the number of LAMA tokens in the Lama Miner contract.',
start: 1711962980,
start: '2024-04-01',
avax: {
tvl: sumTokensExport({ owner: LAMA_MINER_CONTRACT, tokens: [LAMA_TOKEN_CONTRACT], lps: [LP_LAMA_WAVAX], useDefaultCoreAssets: true, }),
staking: sumTokensExport({ owner: LAMA_STAKING_CONTRACT, tokens: [LAMA_TOKEN_CONTRACT], lps: [LP_LAMA_WAVAX, LP_LQDX_LAMA], useDefaultCoreAssets: true, })
Expand Down
1 change: 0 additions & 1 deletion projects/MantaTimeLockContract/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ const TIME_LOCK_CONTRACT = '0x8Bb6CaE3f1CADA07Dd14bA951e02886ea6bBA183';

module.exports = {
methodology: 'counts the number of (MANTA OR STONE) in the time lock contract.',
start: 1497066,
manta: {
tvl: sumTokensExport({ owner: TIME_LOCK_CONTRACT, tokens: [MANTA, STONE] }),
}
Expand Down
2 changes: 1 addition & 1 deletion projects/MeowMiner/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const LP_MEOW_WAVAX = "0xbbf8e4b9AD041edE1F5270CAf5b7B41F0e55f719"

module.exports = {
methodology: 'counts the number of MEOW tokens in the Meow Miner contract.',
start: 1710293916,
start: '2024-03-13',
avax: {
tvl: sumTokensExport({ owner: MEOW_MINER_CONTRACT, tokens: [MEOW_TOKEN_CONTRACT], lps: [LP_MEOW_WAVAX], useDefaultCoreAssets: true, }),
}
Expand Down
2 changes: 1 addition & 1 deletion projects/MorpheusAI/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = {
timetravel: true,
misrepresentedTokens: false,
methodology: 'Calculates TVL based on stETH deposits in the project contract.',
start: 1707378815, // Feb-08-2024 07:33:35 AM UTC in Unix timestamp
start: '2024-02-08', // Feb-08-2024 07:33:35 AM UTC in Unix timestamp
ethereum: {
tvl
},
Expand Down
2 changes: 1 addition & 1 deletion projects/aboard-exchange/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const { sumTokensExport } = require('../helper/unwrapLPs');

module.exports = {
methodology: "TVL is equal to users' deposits minus withdrawals",
start: 1641625200, // Jan-08-2022 07:00:00 AM +UTC
start: '2022-01-08', // Jan-08-2022 07:00:00 AM +UTC
}

const config = {
Expand Down
2 changes: 1 addition & 1 deletion projects/acala-euphrates/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ async function tvl(api) {

module.exports = {
misrepresentedTokens: true,
start: 1695657600,
start: '2023-09-25',
methodology: 'total ldot and tdot locked in the euphrates contract',
acala: {
tvl,
Expand Down
2 changes: 1 addition & 1 deletion projects/acoconut/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ module.exports = {
bsc:{
tvl: bsc
},
start: 1600185600, // 09/16/2020 @ 12:00am (UTC+8)
start: '2020-09-15', // 09/16/2020 @ 12:00am (UTC+8)
};
1 change: 0 additions & 1 deletion projects/algem/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ async function tvl(timestamp, block, chainBlocks) {

module.exports = {
methodology: 'counts the number of ASTR tokens locked in Liquid Staking contract',
start: 1502025,
astar: {
tvl,
}
Expand Down
2 changes: 1 addition & 1 deletion projects/alien-finance/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
blast: {
tvl, borrowed,
},
start: 1709630412,
start: '2024-03-05',
};

async function tvl(api) {
Expand Down
2 changes: 1 addition & 1 deletion projects/alkemi/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,6 @@ async function tvl(timestamp, block) {

module.exports = {
methodology: "TVL consists of Assets (ETH, WBTC, Stablecoins) deposited in Alkemi Earn, Assets (ETH, WBTC, Stablecoins) deposited in Alkemi Earn Open, and does NOT currently consider assets borrowed",
start: 1609380306, // unix timestamp (utc 0) specifying when the project began, or where live data begins
start: '2020-12-31', // unix timestamp (utc 0) specifying when the project began, or where live data begins
ethereum: { tvl } // tvl adapter
};
1 change: 0 additions & 1 deletion projects/allspark/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ const {staking} = require("../helper/staking");

module.exports = {
methodology: 'allspark counts the staking values as tvl',
start: 1690371,
zklink:{
tvl: staking(
["0xD06B5A208b736656A8F9cD04ed43744C738BD8A9"],
Expand Down
2 changes: 1 addition & 1 deletion projects/alpaca-finance-lend/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const { tvl, borrowed } = require("./lend");

// node test.js projects/alpaca-finance-lend/index.js
module.exports = {
start: 1602054167,
start: '2020-10-07',
methodology: "Sum floating balance and vaultDebtValue in each vault",
bsc: { tvl, borrowed, },
fantom: { tvl, borrowed, },
Expand Down
2 changes: 1 addition & 1 deletion projects/alpaca-finance-v2/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const { lendingTvl, borrowTvl } = require("./moneyMarket");

module.exports = {
start: 1602054167,
start: '2020-10-07',
methodology: "Sum floating balance and borrow for each token",
bsc: {
tvl: lendingTvl,
Expand Down
2 changes: 1 addition & 1 deletion projects/alpaca-finance/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const { calxALPACAtvl } = require('./xalpaca');
const aExports = require('../alpaca-finance-lend');

module.exports = {
start: 1602054167,
start: '2020-10-07',
bsc: {
tvl: sdk.util.sumChainTvls([calLyfTvl, calAusdTvl, aExports.bsc.tvl]),
staking: calxALPACAtvl,
Expand Down
2 changes: 1 addition & 1 deletion projects/alpha-homora/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module.exports = {
optimism:{
tvl: tvlV2Onchain
},
start: 1602054167, // unix timestamp (utc 0) specifying when the project began, or where live data begins
start: '2020-10-07', // unix timestamp (utc 0) specifying when the project began, or where live data begins
hallmarks: [
[1613178000, "37M exploit"], // Feb 13, 2021
[1626220800, "Upgrade to V2 on ETH"], // July 14, 2021 00:00 UTC
Expand Down
2 changes: 1 addition & 1 deletion projects/alternity/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const STAKING_ADDRESS = "0x424891f1D6D4De5c07B6E3F74B3709D6BD9E77ea";
const ALTR_ADDRESS = "0xD1ffCacFc630CE68d3cd3369F5db829a3ed01fE2"

module.exports = {
start: 1692423851,
start: '2023-08-19',
ethereum: {
tvl: getLiquityTvl('0x51c014510A5AdA43408b40D49eF52094014ef3A7'),
staking: staking(STAKING_ADDRESS, ALTR_ADDRESS)
Expand Down
2 changes: 1 addition & 1 deletion projects/altr-lend/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ async function borrowed(api) {

module.exports = {
methodology: "Determined by querying from our public TheGraph the total USD value of all active loans",
start: 1707874007,
start: '2024-02-14',
polygon: {
tvl: () => ({}),
borrowed,
Expand Down
2 changes: 1 addition & 1 deletion projects/amped/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const phoenixStakingAddress = '0x3c9586567a429BA0467Bc63FD38ea71bB6B912E0';
const phoenixAmpAddress = '0xca7F14F14d975bEFfEe190Cd3cD232a3a988Ab9C';

module.exports = {
start: 1717674114,
start: '2024-06-06',
lightlink_phoenix: {
staking: staking(phoenixStakingAddress, phoenixAmpAddress),
tvl: gmxExports({ vault: phoenixVaultAddress, })
Expand Down
2 changes: 1 addition & 1 deletion projects/anyhedge/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ async function tvl({timestamp}) {

module.exports = {
methodology: "Scrape the blockchain and filter for spent transaction outputs that match the contract's input script template. Aggregate them to compute TVL. The TVL data lags by contract duration since contracts are secret until settled. So, TVL at the current time will always be 0 and can only be calculated in retrospect and stats back-filled when contracts are revealed. For this reason, the code cuts-off the data at 91 days ago. See here for more details: https://gitlab.com/0353F40E/anyhedge-stats/-/blob/master/readme.md",
start: 1654787405,
start: '2022-06-09',
bitcoincash: { tvl },
hallmarks: [
[1681725240, "BCH Bull public release (AnyHedge v0.11 contract)"],
Expand Down
1 change: 0 additions & 1 deletion projects/ape-fi/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ module.exports = {
tvl,
staking: staking(apeAPE, APE),
},
start: 15688276,
methodology:
"Counts liquidity as the Collateral APE and USDC & FRAX on all AMOs through their contracts",
};
2 changes: 1 addition & 1 deletion projects/apollox/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ async function bscTVL(timestamp, _block, { bsc: block }) {
}

module.exports = {
start: 1640100600, // 12/21/2021 @ 15:30pm (UTC)
start: '2021-12-21', // 12/21/2021 @ 15:30pm (UTC)
bsc: {
tvl: bscTVL,
staking: stakings([stakingContract_APX, daoContract], TOKEN_APX),
Expand Down
1 change: 0 additions & 1 deletion projects/applepie/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ const TOKENS = ["0x574f75bc522CB42ec2365dc54485D471f2eFb4B6"]
module.exports = {
methodology:
"First Crosschain Pool as a Service Miner. Twist to generate 10%/daily reward.",
start: 35011373,
bsc: {
tvl: sumTokensExport({
tokensAndOwners: [
Expand Down
2 changes: 1 addition & 1 deletion projects/aqua-network/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ async function tvl(api) {
}

module.exports = {
start: 1719792000,
start: '2024-07-01',
misrepresentedTokens: true,
methodology:
'counts the liquidity of the Pools on AMM, data is pulled from the Aquarius API.',
Expand Down
1 change: 0 additions & 1 deletion projects/aqua-patina/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ async function tvl(api) {
module.exports = {
doublecounted: true,
methodology: 'Returns the ETH equivalent value of the total supply of apETH tokens on Ethereum. This is calculated by the multiplier used in the contract to determine the ETH value of each token when minting apETH.',
start: 20937454,
ethereum: {
tvl,
}
Expand Down
2 changes: 1 addition & 1 deletion projects/aquaprotocol/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const AQUA_ADDRESS = 'EQAWDyxARSl3ol2G1RMLMwepr3v6Ter5ls3jiAlheKshgg0K'

module.exports = {
methodology: 'Total amount of collateral locked in the Aqua Protocol (EQAWDyxARSl3ol2G1RMLMwepr3v6Ter5ls3jiAlheKshgg0K)',
start: 1726506000,
start: '2024-09-16',
ton: {
tvl: sumTokensExport({ owner: AQUA_ADDRESS, tokens: [ADDRESSES.null]}),
}
Expand Down
1 change: 0 additions & 1 deletion projects/arbor-finance/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ async function tvl(api) {

module.exports = {
methodology: "Sum the collateral value of active Arbor Finance bonds.",
start: 14906553,
ethereum: {
tvl,
},
Expand Down
2 changes: 1 addition & 1 deletion projects/arcadia-finance-v2/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ module.exports = {
methodology:
"TVL is calculated as the sum of all Account values and the available balance in the liquidity pools. Assets are not double counted.",
base: { tvl },
start: 1711389600, // Mon Mar 25 2024 18:00:00 GMT+0000
start: '2024-03-25', // Mon Mar 25 2024 18:00:00 GMT+0000
hallmarks: [
[Math.floor(new Date("2024-04-03") / 1e3), "Points program announced."],
],
Expand Down
2 changes: 1 addition & 1 deletion projects/arcadia-finance/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = {
"TVL includes ERC-20 tokens that have been supplied as collateral as well as ERC-20 tokens that are supplied by liquidity providers.",
optimism: { tvl },
ethereum: { tvl },
start: 1686391200, // Jun 10 2023 10:00:00 GMT+0000
start: '2023-06-10', // Jun 10 2023 10:00:00 GMT+0000
hallmarks: [
[Math.floor(new Date('2023-07-10')/1e3), 'Protocol was exploited.'],
],
Expand Down
1 change: 0 additions & 1 deletion projects/arcanum/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ const SPI_ASSETS_CONTRACTS = [

module.exports = {
methodology: 'counts the quantities of all tokens in all multipool contracts.',
start: 1000235,
arbitrum: {
tvl: sumTokensExport({ ownerTokens: [[ARBI_ASSETS_CONTRACTS, ARBI_CONTRACT], [SPI_ASSETS_CONTRACTS, SPI_CONTRACT]] })
}
Expand Down
2 changes: 1 addition & 1 deletion projects/astherus/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const config = {
}

module.exports = {
start: 1706716800, // 02/01/2024 @ 00:00:00pm (UTC)
start: '2024-01-31', // 02/01/2024 @ 00:00:00pm (UTC)
}

Object.keys(config).forEach(chain => {
Expand Down
1 change: 0 additions & 1 deletion projects/astra-dao/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ async function tvl(api) {
}

module.exports = {
start: 17243078,
ethereum: {
tvl,
},
Expand Down
1 change: 0 additions & 1 deletion projects/astriddao/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@ async function tvl(ts, _block, chainBlocks ) {
}

module.exports = {
start: 915830,
methodology: "Total locked collateral assets (in ERC-20 form) in ActivePool and DefaultPool, plus total staked BAI in StabilityPool",
astar: {
tvl,
Expand Down
2 changes: 1 addition & 1 deletion projects/atlendis-v2/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ async function borrowed(api) {
}

module.exports = {
start: 1686642643,
start: '2023-06-13',
hallmarks: [
[1702367571, "Launch of Fluna V2 Pool on Polygon"],
[1713855195, "Launch of Arjan pool on Mode Network"],
Expand Down
2 changes: 1 addition & 1 deletion projects/auctus/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,6 @@ async function tvl(api) {
}

module.exports = {
start: 1590014400, // 05/20/2020 @ 08:10:40pm (UTC)
start: '2020-05-21', // 05/20/2020 @ 08:10:40pm (UTC)
ethereum: { tvl }
}
Loading

0 comments on commit c35e256

Please sign in to comment.