Skip to content

Implement referral tier upgrade contract for volume-based reward increases #1034

Closed

Description

@Chucks1093

Summary

Extend the referral contract with a tier system that increases referral reward rates as a referrer's cumulative referred volume crosses configured thresholds.

Scope

  • Referral tiers: bronze, silver, gold — each with higher reward rate bps
  • Tier computed from cumulative referred trade volume
  • get_referral_tier(referrer) — returns current tier, volume, and next threshold
  • Tier upgrade emits ReferralTierUpgraded event
  • Tier downgrade not applied — tiers are ratchet-only

Acceptance Criteria

  • Tier computed correctly from cumulative referred volume
  • Reward rate applied correctly per tier on accrual
  • Tier upgrade triggers correctly at each threshold
  • Tiers never downgrade regardless of volume drop
  • ReferralTierUpgraded event emitted with correct tier data

ETA

24 hours

Activity

  1. veloura-dev commented on Oct 16, 2026

    @veloura-dev

    @veloura-dev has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    Please maintainer assign this issue to me and have it resolved ASAP 🙏

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @veloura-dev to this issue.

  2. danvenger commented on Oct 16, 2026

    @danvenger

    @danvenger has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    Hi, I'll like to work on this issues, I'll provide the best technical skills from experience, please assign it to me

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @danvenger to this issue.

  3. Sensei-Victor commented on Oct 16, 2026

    @Sensei-Victor

    @Sensei-Victor has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    I can work on this
    Please assign

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Sensei-Victor to this issue.

  4. Menjay7 commented on Oct 16, 2026

    @Menjay7

    @Menjay7 has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    Hi! I’m a full‑stack developer with strong blockchain expertise. I can resolve this issue quickly and deliver a clean, reliable solution with immediate attention to detail. Please assign it to me—I’m ready to start right away.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Menjay7 to this issue.

  5. ifygreg01-best commented on Oct 16, 2026

    @ifygreg01-best

    @ifygreg01-best has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    please I would love to work on this issue, can you please assign me.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @ifygreg01-best to this issue.

  6. deborahogunjinmi592-byte commented on Oct 16, 2026

    @deborahogunjinmi592-byte

    @deborahogunjinmi592-byte has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    Hi maintainer
    I'm interested in working on the issue
    Could you please assign it to me?

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @deborahogunjinmi592-byte to this issue.

  7. Richard-tobi commented on Oct 16, 2026

    @Richard-tobi

    @Richard-tobi has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    Hello, I’m interested in contributing to this issue. Please consider assigning it to me. Thank you!

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Richard-tobi to this issue.

  8. Xoft31 commented on Oct 16, 2026

    @Xoft31

    @Xoft31 has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    Hi I’d love to work in this issue

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Xoft31 to this issue.

  9. drips-wave commented on Oct 16, 2026

    @drips-wave

    Congratulations, @Sensei-Victor! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on October 22, 2026.

    🧑‍💻 @Sensei-Victor: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.

    Warning

    When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.

    🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.

    🌊 Happy Wave 🌊

  10. added a commit that references this issue on Oct 18, 2026
  11. grantfox-oss commented on Oct 18, 2026

    @grantfox-oss

    🎉 This issue has been marked as completed on GrantFox!

    @Sensei-Victor's PR #1063 was approved and merged by @Chucks1093.

    🏆 @Sensei-Victor: You earned 35 FoxPoints for this contribution! Your current tier: Explorer (834 total points). Track your full progress on GrantFox.

    👏 Great work, @Sensei-Victor! Keep contributing to accesslayerorg.

  12. drips-wave commented on Oct 18, 2026

    @drips-wave

    This issue has been completed by @Sensei-Victor as part of the Stellar Wave Program's 10th Wave 🥳

    😎 @Sensei-Victor: You earned 150 Points for completing this issue! Once the Wave's rewards are finalized, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.

    🧑‍💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.

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