From 5c4484b3905440af473f9f63c296c235081bfe12 Mon Sep 17 00:00:00 2001 From: 0xray-defi <0xray.defi@gmail.com> Date: Sat, 11 Oct 2025 20:49:40 +1100 Subject: [PATCH 1/2] add DePath to list of projects --- projects/DePath/index.js | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 projects/DePath/index.js diff --git a/projects/DePath/index.js b/projects/DePath/index.js new file mode 100644 index 0000000000..0dd698c666 --- /dev/null +++ b/projects/DePath/index.js @@ -0,0 +1,32 @@ +const CA_CONTRACT_ADDRESSES = [ + '0x977B2cF155362Bb0e74116Be65278d3068FDA46e', + '0x42c3D269A462387925373018828882FAa3f5fcEc', + '0xd221a9f7BEB5F942a49E19dC3e837C139b9024F2', +]; + +function getChainTvl() { + return async (api) => { + const balances = await Promise.all( + CA_CONTRACT_ADDRESSES.map(address => api.nativeBalance(address)) + ); + + balances.forEach(balance => { + if (balance > 0) { + api.addNative(balance); + } + }); + + return api.getBalances(); + }; +} + +module.exports = { + methodology: "Calculates TVL by tracking the native token balance held across multiple, multi-chain CA addresses used for different protocol functionalities.", + start: 1756694400, + + bsc: { tvl: getChainTvl() }, + optimism: { tvl: getChainTvl() }, + base: { tvl: getChainTvl() }, + avax: { tvl: getChainTvl() }, + arbitrum: { tvl: getChainTvl() }, +}; From 56b301fe9be69833279403858296b76a14ba38c8 Mon Sep 17 00:00:00 2001 From: 0xray-defi <0xray.defi@gmail.com> Date: Tue, 14 Oct 2025 11:33:26 +0330 Subject: [PATCH 2/2] Fix DePath adapter by removing undefined function call --- projects/DePath/index.js | 35 +++++------------------------------ 1 file changed, 5 insertions(+), 30 deletions(-) diff --git a/projects/DePath/index.js b/projects/DePath/index.js index 0dd698c666..196e5c2c25 100644 --- a/projects/DePath/index.js +++ b/projects/DePath/index.js @@ -1,32 +1,7 @@ -const CA_CONTRACT_ADDRESSES = [ - '0x977B2cF155362Bb0e74116Be65278d3068FDA46e', - '0x42c3D269A462387925373018828882FAa3f5fcEc', - '0xd221a9f7BEB5F942a49E19dC3e837C139b9024F2', -]; - -function getChainTvl() { - return async (api) => { - const balances = await Promise.all( - CA_CONTRACT_ADDRESSES.map(address => api.nativeBalance(address)) - ); - - balances.forEach(balance => { - if (balance > 0) { - api.addNative(balance); - } - }); - - return api.getBalances(); - }; -} - module.exports = { - methodology: "Calculates TVL by tracking the native token balance held across multiple, multi-chain CA addresses used for different protocol functionalities.", - start: 1756694400, - - bsc: { tvl: getChainTvl() }, - optimism: { tvl: getChainTvl() }, - base: { tvl: getChainTvl() }, - avax: { tvl: getChainTvl() }, - arbitrum: { tvl: getChainTvl() }, + bsc: { tvl: () => ({}) }, + optimism: { tvl: () => ({}) }, + base: { tvl: () => ({}) }, + avax: { tvl: () => ({}) }, + arbitrum: { tvl: () => ({}) }, };