bitshares / bitshares/bitshares-ui
Prediction Market Bug
- Dominant language
- JavaScript
- Stars
- 520
- Forks
- 575
- Avg merge
- 12h 7m
- Merged PRs (30d)
- 5
Description
**Describe the bug**
It's impossible to make settle of the prediction market's asset after the owner made "Global Settlement with price 1"
**To Reproduce**
1. Go to 'OPTIONS.TEST2 / BTS market, buy 0.01 OPTIONS.TEST2 (it will be cost 0.01 BTS) '
2. Click on 'Settle Instantly'
3. See error "Settling a prediction market asset is only possible after its resolution."
**Expected behavior**
When the user make settle of prediction market's asset (in this case OPTIONS.TEST2), he must get BTS instead prediction market asset, cause the owner of this asset made Global Settlement with price 1
**Screenshots**
`
[https://i.imgur.com/mUbAdqM.png](url)
**Desktop (please complete the following information):**
GUI
**Additional context**
I made Global Settlement of asset OPTIONS.TEST2 with price 1
I used Cli Wallet
and i used this command - global_settle_asset OPTIONS.TEST2 {"base":{"amount":1,"asset_id":"1.3.5885"},"quote":{"amount":1,"asset_id":"1.3.0"}} true
Contributor guide
Research direction
Start with the GUI's “Settle Instantly” action and trace how it handles an asset after the reported global_settle_asset command. Reproduce the OPTIONS.TEST2 scenario and verify that settling after global settlement at price 1 returns BTS instead of reporting that the asset is unresolved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- blockchain, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100