Use this dApp at your own risk. While it has been thoroughly tested and I personally will be using it, I have not spent significant time ensuring its security. I am not responsible for any funds you may lose.

You can find the source code on GitHub. The front end code you see here can be found in the docs folder.

This is a Game of Thrones Season 8 Death Pool that runs decentralized, and open source, on Ethereum.

You can join a pool by entering your pool contract address below, or you can create one by clicking the link!



The concept is simple:

1. Someone creates a pool that references a truth state contract (which you can also deploy yourself)

a. The creator specifies an ERC20 token to use (defaults to DAI) for staking

b. The creator specifies a fixed amount that is required for staking into the pool

c. The creator can enable/disable the ability to arbitrarily disperse funds regardless of points when the round is complete (to handle special cases)

d. Since I finished this so close to the premier date, the creater can also tell the pool contract to not start counting points until Episode 2

2. The contract address is shared, users make predictions below.

3. The user will stake the required amount by pressing the Stake button. This sends 2 transactions: 1 to authorize the staking amount and 1 to perform the stake

3. Users can update their prediction or withdraw their stake before predictions are closed

4. The owner of the pool contract can close predictions

5. Users can come see the leaderboard as the owner of the truth contract records episodes

6. When the truth contract is set to be complete, the owner of the pool contract can mark the pool complete.

7. If there are any funds needing dispersal before claiming can begin, this happens now.

8. The owner of the pool contract can set the pool contract to be claimable. Funds can still be dispsered for whatever reasons (if enabled).

6. If users place in the top 5, they can claim their award (pool distributions are set to: 51%, 26%, 13%, 7%, 3%)



Points are given as follows:



+1 point for correctly guessing whether or not a character dies

If you correctly guess a character dies, you can get +1 bonus point for correctly guessing which episode the character dies in

-1 point for incorrectly guessing whether or not a character dies

+1 point for correctly guessing the first character to die

+1 point for correctly guessing the last character to die

+1 point for correctly guessing the last character to sit on the Iron Throne/rule Westeros

If the contract is set to skip the first episode, no points will be added/subtracted from deaths in that episode.Also the "first to die" is the first character to die