Skip to content

Draft the M2 CHW incentive-layer contract design spec #48

Description

@ink-mami

Difficulty: Advanced  |  Estimated effort: Large (4-6 days, design + writeup)

Context

The README's roadmap lists M2 — 'USDC-on-Stellar payout to a CHW per verified registration' — as
the next milestone after this repo's current M1 scope. No design work exists yet for the payout
contract(s) that milestone implies.

Requirements

  • Write docs/architecture/m2-incentive-design.md proposing: how a payout contract observes or is called on AttestationRecorded (weighing tight coupling to attestation-registry vs. an independent event-driven design), the USDC-on-Stellar payment mechanism (Stellar classic asset via the Soroban token interface, trustline handling), anti-fraud considerations (rate-limiting payouts per attester to prevent farming via self-dealing attestations), and funding-pool mechanics (how donor/grant USDC enters the pool, per the README's 'Transparent funding' feature).
  • This is a design-only issue — scope actual contract implementation as explicit follow-up issues once the design is reviewed.

Acceptance Criteria

  • Design doc merged and reviewed by at least one maintainer.
  • Explicit list of follow-up implementation issues included in the doc.

Skills Required

Protocol/systems design, Stellar token interface (SEP-41), technical writing

How to Apply for This Issue

  1. Comment below to express interest. Wait for a maintainer to assign the issue to you before starting — this avoids duplicate work on overlapping issues (several in this batch touch the same files).
  2. Fork the repository and create a branch named issue-48-<short-slug>.
  3. Follow the local dev workflow in CONTRIBUTING.md: install the wasm32v1-none target, make your change, and add or update tests per the Requirements and Acceptance Criteria above.
  4. Run make check locally (fmt-check + clippy + test + wasm build) — this mirrors CI exactly and must pass before you open a PR.
  5. Open a pull request against main that references this issue (Closes #48), describing the change and any design tradeoffs you made.
  6. Address review feedback. The PR merges once CI is green and at least one maintainer has approved.

Questions before or during the work are welcome as comments on this issue.

Activity

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

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26advancedAdvanced-level issue requiring deep Soroban/Rust knowledgearchitectureDesign decisions and system architecturedocumentationImprovements or additions to documentationstale

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions