Skip to content

feat(gf-16): protocol management pages (/allocations, /harvest, /governance)#71

Merged
wumibals merged 2 commits into
LadderMine:mainfrom
Nimatstar:feat/gf-16-protocol-management-pages
Jun 26, 2026
Merged

feat(gf-16): protocol management pages (/allocations, /harvest, /governance)#71
wumibals merged 2 commits into
LadderMine:mainfrom
Nimatstar:feat/gf-16-protocol-management-pages

Conversation

@Nimatstar

Copy link
Copy Markdown
Contributor

Summary

  • /allocations — Full pool allocation table sourced from useAllocations(). Each row shows pair, allocated USDC, strategy %, headroom vs 35% cap, a colour-coded exposure bar (green < 25%, amber 25–30%, red ≥ 30% with dashed cap line at 35%), 30d fee APY, and IL % (amber warning when IL > 2%)
  • /harvest — Status card with last harvest timestamp, ledger number, live cooldown countdown (ticks every second via setInterval), estimated harvestable yield, and estimated 10 bps bounty. Harvest Now button is disabled until cooldown reaches zero; shows pending/confirmed/failed tx states. Full harvest history table (last 20 events) below
  • /governance — Active proposals with live timelock countdowns (72h), Veto button (visible to all, disabled until Guardian Multisig wallet is connected), Execute button appearing after timelock elapses, and a history table with Executed/Vetoed status badges
  • All data hooks (useAllocations, useLastHarvest, useGovernance) use stub data marked TODO(GF-12) for replacement once the data service layer ([GF-12] [FRONTEND] Data Service Layer (Soroban RPC hooks, price feeds, TVL/APY) #44) is merged

Test plan

  • /allocations renders pool table with 5 rows; XLM/USDC bar is the widest
  • Exposure bars turn amber for pools ≥ 25% and red for pools ≥ 30%
  • IL column shows amber warning icon for AQUA/USDC (2.7% > 2% threshold)
  • /harvest cooldown counter ticks down in real time
  • Harvest Now button is disabled while cooldown > 0 and enabled when it reaches 0
  • On click, button shows "Confirming..." then a success banner with the bounty amount
  • /governance shows 2 active proposals with live countdown timers
  • Execute button is absent while timelock has not elapsed
  • History table shows Executed and Vetoed badges in correct colours
  • pnpm typecheck passes with no errors

closes #48

…rnance)

- Add /allocations page with per-pool exposure table, colour-coded bar
  chart (green/amber/red vs 35% cap), and IL % highlighting for pools
  above the 2% threshold
- Add /harvest page with live countdown timer (ledger-based cooldown),
  Harvest Now button enabled only when cooldown elapses, tx state
  feedback (pending/confirmed/failed), estimated bounty display, and
  last-20-harvests history table
- Add /governance page with active proposal cards including timelock
  countdowns, a Veto button visible to all (enabled only for Guardian
  Multisig once wallet connect is wired), Execute button appearing after
  timelock elapses, and a full proposal history table with Executed/Vetoed
  status badges
- Add useAllocations, useLastHarvest, useGovernance hooks (stub data,
  wired for GF-12 replacement)

closes LadderMine#48
@vercel

vercel Bot commented Jun 23, 2026

Copy link
Copy Markdown

@Nimatstar is attempting to deploy a commit to the wumibals' projects Team on Vercel.

A member of the Team first needs to authorize it.

@wumibals wumibals merged commit 9040c1e into LadderMine:main Jun 26, 2026
0 of 4 checks passed
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.

[GF-16] [FRONTEND] Protocol Management Pages (/allocations, /harvest, /governance)

2 participants