Skip to content

tmisirpash/scapegroatv2

Repository files navigation

ScapeGroat: A Decentralized Reverse Lottery for Ethereum

Tests Lint

0

ScapeGroat is a protocol implemented on Ethereum that models a game of chance where out of n players, there is only one loser. At the beginning of every game, n players agree to deposit a certain stake s into a contract. Once all players have added their funds, a period of time goes by during which Ethereum's built-in RANDAO (introduced with the Proof-of-Stake upgrade) accumulates randomness. The RANDAO value is used to choose the loser (the "scapegroat"), who loses the entirety of their stake. All other players receive their stake back in addition to an equal portion of the amount the scapegroat lost.

The name "ScapeGroat" is a combination of "scapegoat" and "groat", a type of medieval coin.

To get the app running on your machine, run

npm install

npm run dev

and navigate to localhost:8080.