Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In-game crypto offfer validation #2451

Merged
merged 2 commits into from
Apr 16, 2024
Merged

In-game crypto offfer validation #2451

merged 2 commits into from
Apr 16, 2024

Conversation

umairkhannn
Copy link
Member

  • you cannot enter negative numbers
  • you cannot enter letters emoji etc
  • that the numbers entered are sane (not more than 8 significant figures before or after the decimal.
  • Make the 'Confirm P2P gaming is legal in my jurisdiction option is checked by default.

Screenshot from 2024-04-15 03-18-23

Screenshot from 2024-04-15 03-24-09

@arpee
Copy link
Member

arpee commented Apr 15, 2024

Validation should match the send ui. The rules should be enforced on what can be entered into the input...

Right now it is possible to enter non-alpha chars including - these should simply be blocked. As should a second . which should be the only non-numeric character that can be entered.

We should not be validating this with a confirmation.

Similarly it should not be possible to enter more than 10 decimal places or numbers bigger than the max stake available to anyone in the game.

image

@arpee
Copy link
Member

arpee commented Apr 15, 2024

This is looking good though I can still enter - symbols.

Fix that and this is complete.

@umairkhannn
Copy link
Member Author

This is looking good though I can still enter - symbols.

Fix that and this is complete.

Okay got it.

@arpee arpee merged commit 523304d into staging Apr 16, 2024
@arpee arpee deleted the crypto/in-game-validation branch April 16, 2024 11:38
joelshu1 pushed a commit that referenced this pull request Apr 16, 2024
* Validate in-game stake amount

* checkbox checked by default
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.

Web3 Crypto - Poker fixes 1 Web3 Cypto staking input fixes
2 participants