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

As Smart Contract, I should provide the possibility to top up the prize pool #32

Open
melpadden opened this issue Mar 25, 2024 · 0 comments
Assignees
Labels

Comments

@melpadden
Copy link
Collaborator

To make the app look nice from the launch we want to have a possibility to top up the prize pool. The smart contract should provide the top_up_prize_pool entry point, that:

  1. Accepts the amount argument
  2. Transfers the corresponding amount of CSPR from the caller to the treasury_purse
  3. Increases the treasure_purse_balance state variable
  4. Increases the prize_pool state variable

This entry point should be called with a help of the WASM proxy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants