Resolve a market
To resolve a market, the user calls the resolve
function inside the RealityProxy
contract:
Based on the provided market, the function will then call one of the 4 internal resolution functions corresponding to 4 market types.
Each of these resolution functions:
Retrieves the answer(s) from the Reality.eth contract. Note that it should pass the opening time before a question can be answered on Reality.
Calculates the payouts for each outcome based on the answer(s).
Handles invalid results or edge cases specific to the market type.
Reports the final payouts to the ConditionalTokens contract.
After a market is resolved, the user can redeem their winning position tokens for the underlying collateral. The process is done through the Router
contract.
Last updated