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

Referrals fixes #10773

Draft
wants to merge 10 commits into
base: master
Choose a base branch
from
Draft

Referrals fixes #10773

wants to merge 10 commits into from

Conversation

masvelio
Copy link
Contributor

@masvelio masvelio commented Jan 30, 2025

Link to Issue

Closes: #10789
Closes: #10790
Closes: #10756

Description of Changes

  1. Referral Fee Distribution Updates:

    • Modified handleReferralFeeDistributed.ts to add a user_id check when finding referrer address
    • Added error throwing when referral fee is received out of order
    • Added better filtering for referrer address lookup
  2. User Referral Fees Query:

    • Added new query functionality to filter referral fees by distributed token address
    • Added new API endpoint for getting user referral fees
    • Updated the rewards page to use the new referral fees query
  3. Contest Management Updates:

    • Added new components for contest topic description and selection
    • Added better handling of ERC20 and Stake voting topics
    • Added new UI components for contest management
  4. Rewards Page Improvements:

    • Updated rewards calculation to use referral fees instead of referrals
    • Added better trend calculation for earnings
    • Temporarily disabled some reward tabs/features

Test Plan

  • n/a

Deployment Plan

  1. n/a

Other Considerations

  • n/a

masvelio and others added 10 commits January 29, 2025 14:01
- Added error logging in NamespaceFactory transaction method
- Improved invite link input styling with ellipsis and overflow handling
- Updated contest details form to remove ZERO_ADDRESS filter
- Enhanced referral card total earnings display
- Added word-break styling for referral card total body
- Restrict mobile and desktop tabs to only Referrals tab
- Add `showOtherCards` flag to conditionally render wallet and quest cards
- Disable XP tab in referral card
- Remove unused navigation and tab parameter logic
- Updated GetUserReferralFees query to support optional distributed token address filtering
- Added new getUserReferralFees client-side query hook
- Modified RewardsPage to use referral fees instead of referrals
- Updated utility functions to work with referral fees data structure
- Added optional distributed token address parameter to schemas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant