Skip to content

feat: implement multi-currency, hand cancellation, ban list, and anti-cheat features - #478

Merged
Marvy247 merged 1 commit into
HitEmPoka:mainfrom
Georgechisom:feat/multi-currency-bans-anticheating
Aug 29, 2026
Merged

feat: implement multi-currency, hand cancellation, ban list, and anti-cheat features#478
Marvy247 merged 1 commit into
HitEmPoka:mainfrom
Georgechisom:feat/multi-currency-bans-anticheating

Conversation

@Georgechisom

Copy link
Copy Markdown
Contributor

Add multi-currency buy-in support via Stellar anchors:
Accept buy-ins in USDC, EURC, or other anchor-issued assets
Convert to base token using price oracle integration
Whitelist/remove currency functions for admin control
New buy_in_with_currency() function for players

Implement hand cancellation mechanism for invalid states:
Allow contract to cancel hand and return all bets
Support cancellation for invalid proofs, MPC failures, or player disconnects
Automatic refund of all committed and stacked chips
Cancellation restricted to committee or admin

Add player ban/unban list for table owners:
Table owners can maintain ban list of player addresses
Banned players cannot join tables or queues
Ban check integrated into join_table flow
Emit PlayerBanned/PlayerUnbanned events
Store bans in contract storage with reasons

Implement anti-cheat chip dumping detection:
Detect repeated small losses from one player to another
Track abnormal fold rates against specific opponents
Identify short-stack targeting patterns
Flag suspicious behavior for admin review
Confidence scoring system (0-100%)

All features implemented with minimal overhead and integrated into existing contract structure without disrupting core poker gameplay.

Closes #193
Closes #194
Closes #195
Closes #196

…-cheat features

Add multi-currency buy-in support via Stellar anchors:
- Accept buy-ins in USDC, EURC, or other anchor-issued assets
- Convert to base token using price oracle integration
- Whitelist/remove currency functions for admin control
- New buy_in_with_currency() function for players

Implement hand cancellation mechanism for invalid states:
- Allow contract to cancel hand and return all bets
- Support cancellation for invalid proofs, MPC failures, or player disconnects
- Automatic refund of all committed and stacked chips
- Cancellation restricted to committee or admin

Add player ban/unban list for table owners:
- Table owners can maintain ban list of player addresses
- Banned players cannot join tables or queues
- Ban check integrated into join_table flow
- Emit PlayerBanned/PlayerUnbanned events
- Store bans in contract storage with reasons

Implement anti-cheat chip dumping detection:
- Detect repeated small losses from one player to another
- Track abnormal fold rates against specific opponents
- Identify short-stack targeting patterns
- Flag suspicious behavior for admin review
- Confidence scoring system (0-100%)

All features implemented with minimal overhead and integrated into existing
contract structure without disrupting core poker gameplay.

Closes HitEmPoka#193
Closes HitEmPoka#194
Closes HitEmPoka#195
Closes HitEmPoka#196
@drips-wave

drips-wave Bot commented Aug 29, 2026

Copy link
Copy Markdown

@Georgechisom 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

@Marvy247
Marvy247 merged commit 35ec2cf into HitEmPoka:main Aug 29, 2026
5 of 17 checks 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

2 participants