Skip to content

Build referral tracking and reward distribution endpoints #910

Description

@Chucks1093

Summary

Implement endpoints for registering referral relationships, tracking referred wallet activity, and querying referral reward earnings.

Scope

  • POST /referrals/register links referee wallet to referrer with referral code
  • GET /referrals/earnings returns total earned and per-referral breakdown
  • GET /referrals/referred returns list of referred wallets and their status
  • Referral fee recorded when referred wallet completes first trade
  • Referral code generated and stored per wallet

Acceptance Criteria

  • Referral registration stores relationship correctly
  • Earnings endpoint returns accurate totals and breakdown
  • Referred wallets list shows join date and first trade status
  • Fee recorded only on first trade from referred wallet
  • Duplicate referral registration for same wallet returns 409

ETA

12 hours

Activity

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

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions