Skip to content

Conversation

@rickstaa
Copy link
Member

@rickstaa rickstaa commented Dec 23, 2025

This enhances the overview by showing total supply alongside the yearly supply change, giving clearer context for the inflation metric.

@ECWireless, @mehrdadmms please check with governance advisory board members @b3nnnp and @dob on whether and how we want to showcase this.

This enhances the overview by showing total supply alongside the yearly
supply change, giving clearer context for the inflation metric.
Copilot AI review requested due to automatic review settings December 23, 2025 13:19
@rickstaa rickstaa requested a review from ECWireless as a code owner December 23, 2025 13:19
@vercel
Copy link

vercel bot commented Dec 23, 2025

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

Project Deployment Review Updated (UTC)
explorer-arbitrum-one Ready Ready Preview, Comment Dec 24, 2025 4:09pm

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enhances the protocol overview by adding two new metrics: the current total supply of LPT tokens and the annual supply change rate (1-year inflation/deflation). The implementation replaces the unused totalTokenSupply API endpoint with a more comprehensive supply-change endpoint that calculates supply metrics over a 365-day period.

Key changes:

  • Introduces a new /supply-change API endpoint that queries historical supply data from the subgraph
  • Adds UI components to display total supply and annual supply change percentage in the RoundStatus component
  • Removes the old totalTokenSupply API endpoint that was not being used

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
pages/api/totalTokenSupply.tsx Removes unused API endpoint that only returned total supply
pages/api/supply-change.tsx Adds new API endpoint to calculate supply metrics over 365 days, returning start/end dates, supplies, and the supply change percentage
lib/api/types/get-supply-change.ts Defines TypeScript type for the supply change API response
hooks/useSwr.tsx Adds useSupplyChangeData hook following existing SWR patterns
components/RoundStatus/index.tsx Integrates new metrics into the UI with tooltips, removes padding adjustment, and adds display logic for both total supply and annual supply change
pages/treasury/create-proposal.tsx Minor indentation fix for Text component (unrelated formatting improvement)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@rickstaa rickstaa marked this pull request as draft December 23, 2025 13:29
@rickstaa rickstaa linked an issue Dec 23, 2025 that may be closed by this pull request
Ensure the new supply-change route correctly handles errors.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Ensure the supplyChange check properly handles both null and undefined
to avoid displaying misleading formatted values when data is unavailable.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.

Add total supply and supply growth to overview

2 participants