From ddee76cf3a8ced1f4beb98de51c091d01ebb47ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Maranowski?= Date: Wed, 17 Sep 2025 17:54:24 +0200 Subject: [PATCH 1/2] Add Felix Vanilla adapter for direct lending markets TVL --- projects/felix-vanilla/index.js | 39 +++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 projects/felix-vanilla/index.js diff --git a/projects/felix-vanilla/index.js b/projects/felix-vanilla/index.js new file mode 100644 index 00000000000..6eee2fb3a11 --- /dev/null +++ b/projects/felix-vanilla/index.js @@ -0,0 +1,39 @@ +const morphoBlueAdapter = require("../morpho-blue/index.js"); + +const tvl = async (api) => { + await morphoBlueAdapter.hyperliquid.tvl(api); + + const felixVaultAddresses = [ + "0x835febf893c6dddee5cf762b0f8e31c5b06938ab", + "0xfc5126377f0efc0041c0969ef9ba903ce67d151e", + "0x9c59a9389d8f72de2cdaf1126f36ea4790e2275e", + "0x2900ABd73631b2f60747e687095537B673c06A76", + "0x9896a8605763106e57A51aa0a97Fe8099E806bb3", + "0x66c71204B70aE27BE6dC3eb41F9aF5868E68fDb6", + ]; + + const assets = await api.multiCall({ + abi: "function asset() view returns (address)", + calls: felixVaultAddresses, + }); + + const totalAssets = await api.multiCall({ + abi: "function totalAssets() view returns (uint256)", + calls: felixVaultAddresses, + }); + + assets.forEach((asset, i) => { + if (asset && totalAssets[i]) { + api.add(asset, totalAssets[i] * -1); + } + }); +}; + +module.exports = { + methodology: + "Felix Vanilla represents direct lending markets TVL calculated as Total Morpho Blue TVL minus Felix Vaults TVL. This captures the portion of Morpho Blue markets accessed through Felix's direct lending interface rather than through managed vaults.", + doublecounted: true, + hyperliquid: { + tvl, + }, +}; From 28252d85641bc6a858e02e270a2e7eea1425c0d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Maranowski?= Date: Fri, 17 Oct 2025 09:15:06 +0200 Subject: [PATCH 2/2] Remove felix-valuts --- projects/felix-vaults/index.js | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 projects/felix-vaults/index.js diff --git a/projects/felix-vaults/index.js b/projects/felix-vaults/index.js deleted file mode 100644 index 3275a81b8e2..00000000000 --- a/projects/felix-vaults/index.js +++ /dev/null @@ -1,19 +0,0 @@ -const { getMorphoVaultTvl } = require("../helper/morpoho"); - -const hyperliquidConfig = { - governor: "0x2157f54f7a745c772e686AA691Fa590B49171eC9", -} - -module.exports = { - doublecounted: true, - hyperliquid: { tvl: getMorphoVaultTvl(hyperliquidConfig.governor, { - vaults: [ - '0x835febf893c6dddee5cf762b0f8e31c5b06938ab', - '0xfc5126377f0efc0041c0969ef9ba903ce67d151e', - '0x9c59a9389d8f72de2cdaf1126f36ea4790e2275e', - '0x2900ABd73631b2f60747e687095537B673c06A76', - '0x9896a8605763106e57A51aa0a97Fe8099E806bb3', - '0x66c71204B70aE27BE6dC3eb41F9aF5868E68fDb6' - ] - }) }, -}