Skip to content

henrybyhee/secret_lottery

Repository files navigation

Secret Lottery

How it works:

  1. Admin creates pool. Pool is OPEN.
  2. Players delegate SCRT tokens to pool.
  3. Admin locks pool. Delegated coins are staked to a validator node. Pool is LOCKED.
  4. After 21 days, Admin releases the fund and closes the pool. A winner will be selected randomly.
  5. User can claim their fund/reward. Pool is CLOSED.

Pool Explained:

States:

  1. OPEN:

    • Pool is accepting delegation from players.
    • Validator node is selected by admin
    • Stays open for x days.
  2. LOCKED:

    • Admin locks the pool after x days.
    • Delegated funds are sent to validator node for staking.
    • No more delegation from players
  3. CLOSED:

    • Funds are released from validator node.
    • Winner is picked randomly.
    • Users can claim their reward.
    • New pool can be created.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published