Skip to content

feat: delete merit except claiming functionality#3068

Open
AGMASO wants to merge 4 commits into
mainfrom
feat/sunset-merit
Open

feat: delete merit except claiming functionality#3068
AGMASO wants to merge 4 commits into
mainfrom
feat/sunset-merit

Conversation

@AGMASO

@AGMASO AGMASO commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

Summary

Removes the (now-defunct) Merit informational / APR display system from the interface. Merit no longer publishes new campaigns, so all the code that fetched and rendered Merit APRs/APYs and tooltips is dead. Claiming is intentionally kept — it's a separate flow (via the @aave/react SDK) so users can still claim previously-accrued Merit rewards.

General Changes

  • Deletes everything related to the Merit APR/APY display system. The only exception is Claiming: it's a separate process (useUserMeritRewards from @aave/react, on-chain) and is preserved so users can still claim their old Merit rewards.
  • All informational Merit UI is removed (APR badges, tooltips, breakdown rows, Net APY contribution).
  • stkGHO rewards (which came from Merit in the past) are now hardcoded to 0, since this asset will not receive rewards again.
  • Removes a dead, fully-commented-out component (reserve-overview/Gho/SavingsGho.tsx) surfaced during cleanup.
  • Removes graph for stkGHO
Screenshot 2026-07-07 at 16 08 45

What was removed

Deleted files

  • src/hooks/useMeritIncentives.ts (MERIT_DATA_MAP, MeritAction, aavechan API fetch)
  • src/hooks/useUserMeritIncentives.ts
  • src/hooks/useStakeTokenAPR.ts
  • src/components/incentives/MeritIncentivesTooltipContent.tsx
  • src/modules/reserve-overview/graphs/MeritApyGraphExample.tsx (unused)
  • src/modules/reserve-overview/Gho/SavingsGho.tsx (dead code — only referenced from a commented import)

Edited (Merit removed, component kept)

  • IncentivesButton.tsx — removed MeritIncentivesButton
  • IncentivesCard.tsx / IncentivesTooltipContent.tsx — Merit dropped from the Total/Net APY math (now protocol ± protocolIncentives ± merkl)
  • useUserYield.ts / useEnhancedUserYield.ts — Merit no longer added to Net APY
  • StkGhoDepositRow.tsx, StkGhoSavingsRate.tsx, SavingsGhoModalDepositContent.tsx, GhoStakingPanel.tsx, StakingPanelNoWallet.tsx — APR/APY hardcoded to 0
  • GhoReserveConfiguration.tsx — removed commented references to the deleted component

What was intentionally kept

  • ClaimingClaimRewards/*, DashboardTopPanel, useUserMeritRewards (SDK). Untouched.
  • sGHO rate graphMeritApyGraph* + useSGhoApyHistory + SGhoService read TokenLogic's aaveV3RatesSgho (the sGHO rate). The "Merit" naming is legacy only; this data source is alive and unrelated to the removed system.
  • "Merit Circle" token in TokenList.ts — unrelated asset (MC).

⚠️ Developer Notes / Open Question

Investigate whether the stkGHO APY history graph is displaying the correct data. Even though the current stkGHO APY has dropped to 0%, the average shown in the graph remains unchanged at 3.26%.

We need to verify whether the data coming from TokenLogic is correct and whether the average APY is being calculated and displayed properly.

Testing

  • tsc --noEmit0 errors
  • eslint on all touched files → 0 errors
  • No dangling references to removed Merit symbols; no test/story/cypress references broken
  • Net APY / Total APY arithmetic reviewed — Merit removed cleanly, signs (supply + / borrow ) preserved
  • Claiming flow untouched (useUserMeritRewards and ClaimRewards/* verified intact)

@vercel

vercel Bot commented Jul 7, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
interface Ready Ready Preview, Comment Jul 7, 2026 2:35pm

Request Review

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

📦 Next.js Bundle Analysis for aave-ui

This analysis was generated by the Next.js Bundle Analysis action. 🤖

🎉 Global Bundle Size Decreased

Page Size (compressed)
global 1.32 MB (🟢 -8.08 KB)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

Nine Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load
/ 93.63 KB (🟢 -2.11 KB) 1.41 MB
/dashboard 83.26 KB (🟢 -2.11 KB) 1.4 MB
/faucet 15.05 KB (-1 B) 1.33 MB
/markets 52.56 KB (🟢 -2.06 KB) 1.37 MB
/reserve-overview 39.85 KB (-1 B) 1.36 MB
/safety-module 32.28 KB (🟢 -23.95 KB) 1.35 MB
/sgho 71.19 KB (🟢 -24.33 KB) 1.39 MB
/staking 33.48 KB (-2 B) 1.35 MB
/v3-migration 50.33 KB (🟢 -2.1 KB) 1.37 MB
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this.

@AGMASO AGMASO changed the title feat: delete merit exception claiming feat: delete merit except claiming functionality Jul 7, 2026
@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

📦 Next.js Bundle Analysis for aave-ui

This analysis was generated by the Next.js Bundle Analysis action. 🤖

🎉 Global Bundle Size Decreased

Page Size (compressed)
global 1.32 MB (🟢 -8.12 KB)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

Eight Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load
/ 93.63 KB (🟢 -2.11 KB) 1.41 MB
/dashboard 83.26 KB (🟢 -2.11 KB) 1.4 MB
/faucet 15.05 KB (-1 B) 1.33 MB
/markets 52.56 KB (🟢 -2.06 KB) 1.37 MB
/safety-module 32.81 KB (🟢 -23.41 KB) 1.35 MB
/sgho 24.33 KB (🟢 -71.19 KB) 1.34 MB
/staking 33.48 KB (-2 B) 1.35 MB
/v3-migration 50.33 KB (🟢 -2.1 KB) 1.37 MB
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this.

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

📦 Next.js Bundle Analysis for aave-ui

This analysis was generated by the Next.js Bundle Analysis action. 🤖

🎉 Global Bundle Size Decreased

Page Size (compressed)
global 1.32 MB (🟢 -8.12 KB)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

Eight Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load
/ 93.63 KB (🟢 -2.11 KB) 1.41 MB
/dashboard 83.26 KB (🟢 -2.11 KB) 1.4 MB
/faucet 15.05 KB (-1 B) 1.33 MB
/markets 52.56 KB (🟢 -2.06 KB) 1.37 MB
/safety-module 32.81 KB (🟢 -23.41 KB) 1.35 MB
/sgho 24.19 KB (🟢 -71.33 KB) 1.34 MB
/staking 33.48 KB (-2 B) 1.35 MB
/v3-migration 50.33 KB (🟢 -2.1 KB) 1.37 MB
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants