Skip to content

feat: implement ELO-based filters for match creation#1024

Merged
famvilianity-eng merged 2 commits into
StellarCheckMate:mainfrom
Luchistack:feature/elo-based-filters
Jul 1, 2026
Merged

feat: implement ELO-based filters for match creation#1024
famvilianity-eng merged 2 commits into
StellarCheckMate:mainfrom
Luchistack:feature/elo-based-filters

Conversation

@Luchistack

Copy link
Copy Markdown
Contributor

#closes #946
Title: feat: implement conditional match creation with ELO-based filters

Description:
This PR updates the Match struct and adds validation logic to support ELO-based filtering for match creation. This ensures that players can only participate in matches that align with their skill level, improving the competitive integrity of the platform.

Key Changes:

Data Structure: Added min_elo and max_elo fields to the Match struct in contracts/escrow/src/lib.rs.

Logic: Implemented range validation in create_filtered_match to prevent invalid configurations.

Security: Added an ELO range check in the deposit flow to ensure participants meet the match requirements.

Testing:

[x] Verified min_elo vs max_elo constraint logic.

[x] Ensured deposit transaction rejects players outside the specified skill tier.

#closes

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.

Implement Conditional Match Creation with ELO-Based Filters

2 participants