-
Notifications
You must be signed in to change notification settings - Fork 6
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
added docs and small owner fix #32
Conversation
Contract comparison - from 38ce1b3 to 03c6823
|
contracts/mvx-game-sc/README.md
Outdated
|
||
The game is considered `invalid` until the `minimum number of players` have joined the game and if the `waiting time` has passed, no more players can join. | ||
|
||
The SC does not have any logic for calculating the winner, so it expects input from the owner with the winnes' addresses and the percentage (*100) of the total reward (sum of wagers) won by each. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it expects input from the owner with the winners' addresses
contracts/mvx-game-sc/README.md
Outdated
**The game**: | ||
- If the game is `invalid`, the `wager` amount will be returned to the players that have joined the game and the `game starting fee` will be returned to the creator | ||
- If the game is `valid`, but no winners are sent by the owner, such in the case of a tie/draw, the contract will send back the `wager` amount paid by every player who joined | ||
- If the game is `valid` and winners are sent by the owner, the SC will send the reward to the winners as explained by the owner |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe rephrase a little, as the owner does not explain anything.
Something like
If the game is valid
and the winners were provided, the SC will send the rewards to them, based on the input of the owner.
contracts/mvx-game-sc/README.md
Outdated
|
||
## Endpoints | ||
### createGame | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is better formated if you write the programming language, so add rust after the first ```, like so:
...
contracts/mvx-game-sc/README.md
Outdated
- If the game is `valid`, but no winners are sent by the owner, such in the case of a tie/draw, the contract will send back the `wager` amount paid by every player who joined | ||
- If the game is `valid` and winners are sent by the owner, the SC will send the reward to the winners as explained by the owner | ||
- If the game is `valid`, but no winners are provided, such in the case of a tie/draw, the contract will send back the `wager` amount paid by every player who joined | ||
- If the game is `valid` and winners are provided, the SC will send the reward to the them, based on the input of the owner. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
send the rewards to them
No description provided.