-
Notifications
You must be signed in to change notification settings - Fork 305
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
auction(vcb): add a value circuit breaker #4363
Conversation
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 looks correct to me.
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.
As a point of process, Erwan conducted an impromptu pairing session where we discussed some high level goals of this PR: 1. from first principles, make sure we identify all the proper junction points in the flow tracking, and 2. make sure we properly track the inflows and outflows of value in these junction points. We then discussed and sanity checked the value transfer to / from the auction / dex components.
We missed a juncture point which is when a user submitted action cause an auction to end early, in that case the component's value balance needs to be credited. x-ref #4388 |
Describe your changes
This PR adds a value circuit breaker, modeled after the dex component's.
Issue ticket number and link
#4356
Checklist before requesting a review
If this code contains consensus-breaking changes, I have added the "consensus-breaking" label. Otherwise, I declare my belief that there are not consensus-breaking changes, for the following reason: