Skip to content

Write Invariant Tests for Reward DistributionΒ #28

@dDevAhmed

Description

@dDevAhmed

πŸ“š Overview

Ensure reward distribution maintains invariant properties regardless of execution order.


🎯 Objectives

Examples of invariants:

  • Total rewards distributed ≀ reward pool
  • User rewards proportional to stake
  • No negative balances
  • No reward duplication

🧠 Scope

Use invariant testing framework (Foundry preferred).

Contracts:

  • Rewards
  • Staking
  • Claim resolution

βœ… Acceptance Criteria

  • Invariants clearly defined
  • Tests deterministic
  • CI passing

⏳ Complexity

High

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