-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add extrinsics for editing markets #834
Conversation
Starting my review now... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, I like the thorough testing. Some things, though:
- The changelog for developers needs to be updated.
- I think you should also test that
request_edit
fails if the market is notProposed
(I may have missed that)
Missing Features
Advisors should be able to edit markets, as well. However, I think this warrants further discussion with the committee. I'll let you know about what was decided tomorrow.
Concerns
I'm also a bit worried about letting people change the market period. This creates an exploit for getting around slashing: Let's say I create a market which I don't know how to fix, I get asked by the committee to edit and so I set the market period to something like current_block..next_block
. And then the market expires and I get my deposit back. I admit this is a very contrived example. But still...
I guess one solution is to release the advisory bond when an edit request is made, but that opens up a whole new can of worms. The alternative is to slash the advisory bond of expired markets. Seems fair to me. I'll bring this up at the Advisory Committee meeting tomorrow and let you know what the others think.
I wait for the apply of the review suggestion from Malte. |
Starting my review now.. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, Vivek, with your help, the markets can now be edited in the Proposed
state. As long as the markets are in the proposed state I feel confident, that this enhancement is safe.
Apart from Malte's suggestion, I've some smaller fixes. PS: And I love the tests too!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a quick explanation of the events and the extrinsics added to the changelog_for_devs file is missing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK
Starting my review now... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm also having trouble finding a test for the scenario where someone other than the market creator attempts to edit a market. Nevermind, found it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Just one correction in the documentation, no need to do a re-review.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK
This PR should close #742