From 63c5f08d37aabf7237a8984f02566aa7db60bc84 Mon Sep 17 00:00:00 2001 From: 0xIvan <0xivanivan@gmail.com> Date: Mon, 27 Apr 2026 23:51:28 +0800 Subject: [PATCH] fix: re-enable jones-dao adapter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit jones-dao was excluded in #2348 with reason "disabled deposits". That's no longer accurate — vaults are open and accruing TVL: - jAURA: ~$18k TVL, ~66% APY (lsdVault) - jUSDC: ~$749k TVL, ~1.6% APY - smart-lp: 164 active strategies across 7 chains - jGLP: 0 TVL (winding down) but APY still reported by API Two changes: 1. Drop 'jones-dao' from src/utils/exclude.js so the project's pools surface again. 2. In src/adaptors/jones-dao/index.js, remove the `vault.tvl > 0` guard on jGLP so the pool keeps emitting at 0 TVL. This preserves the historical chart on DefiLlama while jGLP winds down; the API still returns a valid APY for legacy positions. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/adaptors/jones-dao/index.js | 22 ++++++++++------------ src/utils/exclude.js | 1 - 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/src/adaptors/jones-dao/index.js b/src/adaptors/jones-dao/index.js index 71b8181a8b..f75edc12ad 100644 --- a/src/adaptors/jones-dao/index.js +++ b/src/adaptors/jones-dao/index.js @@ -100,21 +100,19 @@ async function pools() { } } - // jGLP vault (Arbitrum) - only include if TVL > 0 + // jGLP vault (Arbitrum) if (jglpRes?.result?.data?.json?.leveragedVaults) { const vaults = jglpRes.result.data.json.leveragedVaults; for (const vault of vaults) { - if (vault.tvl > 0) { - pools.push({ - pool: `${jglpVault}-arbitrum`.toLowerCase(), - chain: 'Arbitrum', - project: 'jones-dao', - symbol: 'jGLP', - underlyingTokens: [glp], - tvlUsd: vault.tvl, - apyBase: vault.apy?.apy || 0, - }); - } + pools.push({ + pool: `${jglpVault}-arbitrum`.toLowerCase(), + chain: 'Arbitrum', + project: 'jones-dao', + symbol: 'jGLP', + underlyingTokens: [glp], + tvlUsd: vault.tvl, + apyBase: vault.apy?.apy || 0, + }); } } diff --git a/src/utils/exclude.js b/src/utils/exclude.js index 90883bfa18..16942e1c94 100644 --- a/src/utils/exclude.js +++ b/src/utils/exclude.js @@ -187,7 +187,6 @@ const excludeAdaptors = [ 'mm-finance-polygon', 'maia-cl', 'molecular', - 'jones-dao', //disabled deposits 'zkp2p', 'dyson', 'opyn-squeeth',