From d5824ae9c39cbc93823317695782841611b3558a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 16 Feb 2026 11:19:23 +0000 Subject: [PATCH 1/2] Initial plan From d5152d7bee4ed6e938b0f496a59d838265c31b6a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 16 Feb 2026 11:21:00 +0000 Subject: [PATCH 2/2] fix: normalize address comparison to handle case-insensitive matching Co-authored-by: AGMASO <95312462+AGMASO@users.noreply.github.com> --- src/hooks/useMerklPointsIncentives.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/hooks/useMerklPointsIncentives.ts b/src/hooks/useMerklPointsIncentives.ts index 29133d7661..b52fe95cc0 100644 --- a/src/hooks/useMerklPointsIncentives.ts +++ b/src/hooks/useMerklPointsIncentives.ts @@ -28,7 +28,8 @@ type ReserveIncentiveAdditionalData = { }; // Hardcoded Merkl endpoint for INK/tydro incentives -const INK_POINT_TOKEN_ADDRESSES = ['0x40aBd730Cc9dA34a8EE9823fEaBDBa35E50c4ac7']; +// Addresses stored in lowercase for case-insensitive comparison with API responses +const INK_POINT_TOKEN_ADDRESSES = ['0x40abd730cc9da34a8ee9823feabdba35e50c4ac7']; const MERKL_TYDRO_ENDPOINT = 'https://api.merkl.xyz/v4/opportunities?mainProtocolId=tydro&chainName=ink&items=100&status=LIVE'; // Merkl API @@ -99,7 +100,7 @@ export const useMerklPointsIncentives = ({ const pointsOpportunities = opportunities.filter((opp) => opp.rewardsRecord.breakdowns.some((breakdown) => - INK_POINT_TOKEN_ADDRESSES.includes(breakdown.token.address) + INK_POINT_TOKEN_ADDRESSES.includes(breakdown.token.address.toLowerCase()) ) ); @@ -110,7 +111,7 @@ export const useMerklPointsIncentives = ({ } const rewardsBreakdown = opportunity.rewardsRecord.breakdowns.find((breakdown) => - INK_POINT_TOKEN_ADDRESSES.includes(breakdown.token.address) + INK_POINT_TOKEN_ADDRESSES.includes(breakdown.token.address.toLowerCase()) ); if (!rewardsBreakdown) { @@ -122,7 +123,7 @@ export const useMerklPointsIncentives = ({ const rewardToken = rewardsBreakdown.token; - if (!INK_POINT_TOKEN_ADDRESSES.includes(rewardToken.address)) { + if (!INK_POINT_TOKEN_ADDRESSES.includes(rewardToken.address.toLowerCase())) { return null; }