Skip to content

Implement stream reward points system accumulating points per stroop streamed for loyalty incentives #516

Description

@Chuks-coderr

Description

Add a reward points ledger in contract instance storage that accrues points for each address proportionally to the total value they have streamed. A getRewardPoints entry point returns a sender's accumulated points. Points can be redeemed via a redeemPoints entry point that applies a fee discount on the next stream creation proportional to points spent.

Acceptance Criteria

  • Feature is fully implemented
  • Tests pass
  • Lint/type checks pass
  • PR references this issue number

Notes

⚠️ Do not begin coding until you have been assigned by the maintainer.
Branch as feat/516-contract-reward-points where N is this issue number.

Activity

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

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave programcomplexity: highComplex feature, refactor, or new integrationenhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions