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

Redistributing tournament prize #45

Open
ofux opened this issue May 17, 2022 · 0 comments
Open

Redistributing tournament prize #45

ofux opened this issue May 17, 2022 · 0 comments
Labels
Context: isolated no previous knowledge of the codebase required Difficulty: easy anybody can understand it Duration: under a day wil take up to one day State: preliminary on the drawing board Techno: cairo cairo Type: feature a new feature to implement

Comments

@ofux
Copy link
Contributor

ofux commented May 17, 2022

User story

Depends on #44

Details

As a player, I want to be able to get the tournament prize when I win it.

A tournament's prize is funded through an ERC20 contract.
The tournament should let the winner withdraw his gains by providing a winner_withdraw function that will transfer funds (via ERC20 contract) to the winner.

Acceptance Criteria

  • the tournament provides a winner_withdraw function that transfers funds to the winner.
  • only the winner can call this function
  • this function can only be called when tournament stage is FINISHED
  • must be thoroughly tested
@ofux ofux added Type: feature a new feature to implement Context: isolated no previous knowledge of the codebase required Difficulty: easy anybody can understand it Duration: under a day wil take up to one day Techno: cairo cairo State: preliminary on the drawing board labels May 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Context: isolated no previous knowledge of the codebase required Difficulty: easy anybody can understand it Duration: under a day wil take up to one day State: preliminary on the drawing board Techno: cairo cairo Type: feature a new feature to implement
Projects
None yet
Development

No branches or pull requests

1 participant