feat: implement multi-currency, hand cancellation, ban list, and anti-cheat features - #478
Merged
Marvy247 merged 1 commit intoAug 29, 2026
Conversation
…-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
|
@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! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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