Skip to content

Build referral tracking and reward distribution (#910) - #956

Open
Stanley-Owoh wants to merge 3 commits into
accesslayerorg:mainfrom
Stanley-Owoh:build-referral-tracking-and-reward-distribution-910
Open

Stanley-Owoh wants to merge 3 commits into
accesslayerorg:mainfrom
Stanley-Owoh:build-referral-tracking-and-reward-distribution-910

Conversation

@Stanley-Owoh

Copy link
Copy Markdown
Contributor

Summary

  • Add authenticated referral registration, earnings, and referred-wallet endpoints.
  • Generate and persist a unique referral code per wallet, and enforce one referrer per referee (duplicate registration returns 409).
  • Record a configured share of a referred wallet's first buy or sell as a referral reward, with an atomic first-trade claim and fee-ledger write.
  • Add Prisma schema/migration, configuration docs, and focused service, route, and indexer tests.

Verification

  • git diff --check passed; editor diagnostics reported no errors in the modified TypeScript files.
  • Jest/build and the pre-commit hook could not run because Node.js and pnpm are unavailable in the environment.

Closes #910

@drips-wave

drips-wave Bot commented Sep 26, 2026

Copy link
Copy Markdown

@Stanley-Owoh Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build referral tracking and reward distribution endpoints

1 participant