-
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
Let markets open their pools when they start #711
Conversation
Co-authored-by: Chralt <chralt98@gmail.com>
Co-authored-by: Chralt <chralt98@gmail.com>
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.
This PR allows to activate markets automatically in the future. Impactful 👍 !
Co-authored-by: Chralt <chralt98@gmail.com>
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.
Looks good 👍
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.
.
This is a pull request very similar to #651, but we're dealing with opening markets instead of closing them. It is based on #695, which implements opening of pools. It fixes #691.
A couple of quick points:
MarketOpen
event, etc.Initialized
state. I don't think so, as it is currently no different fromActive
.on_initialize
of block 1, the timestamp is still not set. So I'm now checking for for block number less or equal to<=1
. This led to a lot of reorganizing in the tests.now()
lagging one block behind duringon_initialize
. This led to more reorganizing in the tests.