Skip to content

test(contract): property tests for payout invariants#480

Merged
greatest0fallt1me merged 1 commit intoPredictify-org:masterfrom
Iwueseiter:feature/proptest-payouts
Mar 26, 2026
Merged

test(contract): property tests for payout invariants#480
greatest0fallt1me merged 1 commit intoPredictify-org:masterfrom
Iwueseiter:feature/proptest-payouts

Conversation

@Iwueseiter
Copy link
Copy Markdown

@Iwueseiter Iwueseiter commented Mar 26, 2026

Pull Request Description

📋 Basic Information

This PR introduces property-based fuzz testing using proptest to validate payout logic across a wide range of stake distributions in the Predictify Hybrid Soroban smart contracts. The implementation ensures correctness, security, and determinism by testing core financial invariants under randomized inputs and shrinking failures to minimal reproducible cases.

Type of Change

Please select the type of change this PR introduces:

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 📚 Documentation update
  • 🧪 Test addition/update
  • 🔧 Refactoring (no functional changes)
  • ⚡ Performance improvement
  • 🔒 Security fix
  • 🎨 UI/UX improvement
  • 🚀 Deployment/Infrastructure change

Related Issues

Closes #431

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 26, 2026

@Iwueseiter Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@greatest0fallt1me greatest0fallt1me merged commit 9006084 into Predictify-org:master Mar 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Property-based tests for payout invariants

2 participants