Skip to content

[Frontend] — Finalize event & claim prize flow + PrizePoolSummary #950

@Olowodarey

Description

@Olowodarey

Background

There is currently no UI anywhere that shows the prize pool, reward
distribution
, a "Finalize Event" action, or a "Claim Prize"
action. [id]/page.tsx's action bar (lines 273-343) only has Join, Make
Predictions, Add Match, Cancel Event, and (soon-removed) Verify Winners.

Goal

Add a PrizePoolSummary component showing the prize pool + reward split,
and wire up "Finalize Event" (visible once endsAt has passed and not yet
finalized) and "Claim Prize" (visible to a user with an unclaimed payout on
a finalized event) actions using Issue 1's finalizeEvent/claimPayout/
getUserPayout.

Acceptance Criteria

  • PrizePoolSummary renders prize pool, reward breakdown (with XLM
  • "Finalize Event" button appears only when `!isFinalized &&
  • Clicking "Finalize Event" calls finalizeEvent, then the page reflects
  • On a finalized event where the connected wallet has an unclaimed
  • A user with no payout on a finalized event sees neither claim button

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions