Skip to content

feat: batch payroll page using distributor contract #15

Description

@ijeoma270

The distributor contract lets you create N streams in one transaction. There's no UI for it. This is the whole point of the protocol for teams — pay 50 contributors in one tx instead of 50 separate ones.

Build a /payroll page with a multi-step flow:

  1. Pick mode — same rate for everyone, or custom amounts per person
  2. Add recipients — paste addresses manually, bulk paste CSV, or upload a CSV file
  3. Set token, rate (or per-person amounts), start/end dates
  4. Review screen showing total escrow cost and per-recipient breakdown, then confirm

Calls distributor.distribute() for uniform mode or distributor.distribute_custom() for custom amounts. Show a results screen after submission with success/failure per recipient.

Done when:

  • Both distribute modes work
  • CSV paste and file upload supported
  • Total escrow cost shown before user confirms
  • Results page shows what succeeded and what didn't
  • Responsive on mobile

Activity

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

Metadata

Metadata

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardThird CampaignCampaign: Third Campaign

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions