From ad3ab51454cc0eb438322e30d9147a3b753b1f48 Mon Sep 17 00:00:00 2001 From: MartinGbz Date: Tue, 8 Apr 2025 18:54:47 +0200 Subject: [PATCH 1/2] fix: ebtc campaign --- src/components/incentives/IncentivesTooltipContent.tsx | 5 ++++- src/hooks/useMeritIncentives.ts | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/incentives/IncentivesTooltipContent.tsx b/src/components/incentives/IncentivesTooltipContent.tsx index f434e1ab7e..7eed9b3a1d 100644 --- a/src/components/incentives/IncentivesTooltipContent.tsx +++ b/src/components/incentives/IncentivesTooltipContent.tsx @@ -48,7 +48,7 @@ const IncentivesSymbolMap: { symbol: 'aPYUSD', aToken: true, }, - aETHeBTC: { + aEtheBTC: { tokenIconSymbol: 'eBTC', symbol: 'aeBTC', aToken: true, @@ -99,6 +99,9 @@ interface IncentivesTooltipContentProps { export const getSymbolMap = (incentive: ReserveIncentiveResponse) => { const rewardTokenSymbol = incentive.rewardTokenSymbol; + console.log('rewardTokenSymbol', rewardTokenSymbol); + console.log('icon', IncentivesSymbolMap[rewardTokenSymbol]); + return IncentivesSymbolMap[rewardTokenSymbol] ? { ...IncentivesSymbolMap[rewardTokenSymbol], diff --git a/src/hooks/useMeritIncentives.ts b/src/hooks/useMeritIncentives.ts index 6aa709a340..05eb5315cf 100644 --- a/src/hooks/useMeritIncentives.ts +++ b/src/hooks/useMeritIncentives.ts @@ -101,7 +101,7 @@ const MERIT_DATA_MAP: Record { action: MeritAction.SUPPLY_EBTC_BORROW_WBTC_OR_CBBTC, rewardTokenAddress: AaveV3Ethereum.ASSETS.eBTC.A_TOKEN, - rewardTokenSymbol: 'aEthCBBTC', + rewardTokenSymbol: 'aEtheBTC', protocolAction: ProtocolAction.borrow, customMessage: 'You must supply eBTC and borrow cbBTC in order to receive merit rewards.', }, From 39fc8d68f5d7f2b2d0eb0ff2dde2a457408969b1 Mon Sep 17 00:00:00 2001 From: MartinGbz Date: Tue, 8 Apr 2025 18:59:24 +0200 Subject: [PATCH 2/2] fix: remove logs --- src/components/incentives/IncentivesTooltipContent.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/components/incentives/IncentivesTooltipContent.tsx b/src/components/incentives/IncentivesTooltipContent.tsx index 7eed9b3a1d..6919d0ad08 100644 --- a/src/components/incentives/IncentivesTooltipContent.tsx +++ b/src/components/incentives/IncentivesTooltipContent.tsx @@ -99,9 +99,6 @@ interface IncentivesTooltipContentProps { export const getSymbolMap = (incentive: ReserveIncentiveResponse) => { const rewardTokenSymbol = incentive.rewardTokenSymbol; - console.log('rewardTokenSymbol', rewardTokenSymbol); - console.log('icon', IncentivesSymbolMap[rewardTokenSymbol]); - return IncentivesSymbolMap[rewardTokenSymbol] ? { ...IncentivesSymbolMap[rewardTokenSymbol],