Skip to content
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

Merged
merged 5 commits into from
May 9, 2024
Merged

Conversation

erwanor
Copy link
Member

@erwanor erwanor commented May 9, 2024

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:

    This is very consensus breaking, but not state breaking because this state didn't exist and the auction is not previously deployed so there are no inflows to track.

@erwanor erwanor added consensus-breaking breaking change to execution of on-chain data A-dex Area: Relates to the dex A-auction Area: Relates to the auction component labels May 9, 2024
@erwanor erwanor added this to the Sprint 6 milestone May 9, 2024
@erwanor erwanor self-assigned this May 9, 2024
@erwanor erwanor requested a review from TalDerei May 9, 2024 16:16
@erwanor erwanor marked this pull request as ready for review May 9, 2024 16:37
Copy link
Member

@hdevalence hdevalence left a 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.

Copy link
Collaborator

@TalDerei TalDerei left a 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.

@erwanor erwanor merged commit 9bdf787 into main May 9, 2024
12 of 13 checks passed
@erwanor erwanor deleted the erwan/4356_value_breaker branch May 9, 2024 18:25
@erwanor
Copy link
Member Author

erwanor commented May 15, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-auction Area: Relates to the auction component A-dex Area: Relates to the dex consensus-breaking breaking change to execution of on-chain data
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants