๐ŸšจEmergency withdraw & claim

What to do to claim your prize manually or withdraw your bets if something goes wrong

Steps:

1 - Search round contract address on polygonscan.com:

You need to search for the contract in Polygonscan. You will see an screen like this:

2 - Connect your wallet to be able to perform transactions

Under Contract tab, you will see 3 buttons: Code, Read Contract, and Write Contract. Press Write Contract and, if you are not connected, you will see a red dot and a link with "Connect to Web3" button that, when clicked, prompts Metamask to allow to do transactions.

3 - When connected, write 'emergencyWithdraw':

When you are succesfull connected you can perform transactions with the contract. If you press Write button inside 'emergencyWithdraw' containers, you will start the emergency withdraw. You will only be able to do an emergency withdraw when something wrongs happen in the round and we need to stop it for whatever reason. If the round is carried out correctly, once the bet is made, the bet will not be able to be withdrawn

4 - Manual claim

You can also claim your prize once the round has ended, by writing `claimPrize` method clicking in the 'Write' button. If you have already claimed your prize, the transaction will fail.

Last updated