Skip to content

[FE-46] Build dividend distribution UI — distribute revenue to token holders and view history #983

Description

@yusuftomilola

Overview

Asset owners can distribute revenue (rental income, sale proceeds) to token holders proportionally to their holdings. This UI handles initiating a dividend distribution and viewing the history of past distributions. Depends on BE-63.

Context

  • Add a "Dividends" tab to tokenized asset detail pages
  • API endpoints (from BE-63): POST /stellar/assets/:id/dividends/distribute, GET /stellar/assets/:id/dividends/history, GET /stellar/assets/:id/dividends/my

Acceptance Criteria

  • "Dividends" tab on tokenized asset detail page
  • "My Dividends" card at the top showing the current user's unclaimed dividends (if they are a token holder)
  • "Distribute Dividend" button (admin only): modal with total amount input, currency selector (XLM or asset token), a preview of distribution per holder based on current token balances, confirm button
  • After distribution: show transaction hash, update distribution history
  • Distribution History table: date, total amount distributed, number of recipients, amount per token, transaction hash (linked to Stellar explorer)
  • Bar chart (Recharts BarChart) showing dividend amounts over time

Metadata

Metadata

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