Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🟪 Referral Manager #9999

Open
Tracked by #9832
Rotorsoft opened this issue Nov 21, 2024 · 0 comments
Open
Tracked by #9832

🟪 Referral Manager #9999

Rotorsoft opened this issue Nov 21, 2024 · 0 comments
Labels
enhancement New feature or request needs estimate

Comments

@Rotorsoft
Copy link
Contributor

Rotorsoft commented Nov 21, 2024

Description

Implement a Referral Manager policy to collect XP points when platform referral events are emitted.

  • Can also be directly implemented in referrals projection!

https://docs.google.com/spreadsheets/d/1LL8jGRwCaqrG_bpYW5WW3CfjN-vVEYkIbvY91Bwg4-g/edit?gid=2005659128#gid=2005659128

Stakeholders

Product Engineering
@dillchen @Rotorsoft

Model

Referral Manager

Engineering Requirements

  1. Integration
    • RabbitMQ integration
  2. Routing
    • internal
  3. References
    • Event payloads (Initially CommunityCreated, SignInFlowCompleted)
  4. Business Rules
    • Implement protocol service "command" that collects on-chain referral fees
  5. Response
    • ack event or throw if protocol service fails

Unit Testing

  • Referral lifecycle should be able to collect fees and process the resulting event back to the UserReferrals projection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs estimate
Projects
None yet
Development

No branches or pull requests

1 participant