-
Notifications
You must be signed in to change notification settings - Fork 62
Draft the M2 CHW incentive-layer contract design spec #48
Copy link
Copy link
Open
Labels
GrantFox OSSIssue tracked in GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26Campaign: Official Campaign | FWC26advancedAdvanced-level issue requiring deep Soroban/Rust knowledgeAdvanced-level issue requiring deep Soroban/Rust knowledgearchitectureDesign decisions and system architectureDesign decisions and system architecturedocumentationImprovements or additions to documentationImprovements or additions to documentationstale
Description
Activity
Metadata
Metadata
Assignees
Labels
GrantFox OSSIssue tracked in GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26Campaign: Official Campaign | FWC26advancedAdvanced-level issue requiring deep Soroban/Rust knowledgeAdvanced-level issue requiring deep Soroban/Rust knowledgearchitectureDesign decisions and system architectureDesign decisions and system architecturedocumentationImprovements or additions to documentationImprovements or additions to documentationstale
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
docs/architecture/m2-incentive-design.mdproposing: how a payout contract observes or is called onAttestationRecorded(weighing tight coupling toattestation-registryvs. 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).Acceptance Criteria
Skills Required
Protocol/systems design, Stellar token interface (SEP-41), technical writing
How to Apply for This Issue
issue-48-<short-slug>.wasm32v1-nonetarget, make your change, and add or update tests per the Requirements and Acceptance Criteria above.make checklocally (fmt-check + clippy + test + wasm build) — this mirrors CI exactly and must pass before you open a PR.mainthat references this issue (Closes #48), describing the change and any design tradeoffs you made.Questions before or during the work are welcome as comments on this issue.