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

[request] Allow students to join the request by paying a minimum amount #5

Open
cosmin-harangus opened this issue Sep 4, 2018 · 0 comments

Comments

@cosmin-harangus
Copy link
Owner

Students should be able to support and join a request for knowledge by paying a specific amount to the Request contract.

Define a method named Join() that is payable and records the amount of coins sent by every student.
This method should be secure and add the new student address to the list with his balance if he is new or update him amount if he has already paid.

The student should also be able to retreat their participation by calling a Leave() method that sends back his coins from the contract and removes him from the list of enrolled students and votes if the a teacher has not been selected yet.

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

No branches or pull requests

1 participant