The workflow of the market is like this:
- Market is created.
- The market is closed, and at the same time, the question on Reality is opened.
- The question is answered on Reality, and the finalization period is counting.
- If none challenged it, the market is finalized.
- Now, someone needs to call
resolve method on the Oracle contract to resolve the market, see our PMAT code for reference.
- After resolving it, people can claim their winnings.
The issue is that currently, active bets are filtered by the resolved property: https://github.com/kongzii/presagio/blob/9014ca05345ce6372767fbb7cdfe0d459a1364a8/app/profile/page.tsx#L91
Market creators should resolve their markets + we have a cronjob running every few hours to resolve finalized markets (because anyone can resolve any market), so this shouldn't happen too much, but yesterday we had a user asking why the market is closed, reality question is answered and finalized, yet he's unable to claim his sDai.
It would be nice to let users know on Presagio that market is in that "waiting for resolution" stage. Perhaps there could be also a "Resolve" button, in the case they don't want to wait until some agent resolves it?
The workflow of the market is like this:
resolvemethod on the Oracle contract to resolve the market, see our PMAT code for reference.The issue is that currently,
active betsare filtered by theresolvedproperty: https://github.com/kongzii/presagio/blob/9014ca05345ce6372767fbb7cdfe0d459a1364a8/app/profile/page.tsx#L91Market creators should resolve their markets + we have a cronjob running every few hours to resolve finalized markets (because anyone can resolve any market), so this shouldn't happen too much, but yesterday we had a user asking why the market is closed, reality question is answered and finalized, yet he's unable to claim his sDai.
It would be nice to let users know on Presagio that market is in that "waiting for resolution" stage. Perhaps there could be also a "Resolve" button, in the case they don't want to wait until some agent resolves it?