-
Notifications
You must be signed in to change notification settings - Fork 212
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
fix: reset lockedQuote even when nothing will be auctioned #8070
Conversation
@@ -1094,6 +1094,7 @@ export const prepareVaultManagerKit = ( | |||
state.lockedQuote = undefined; | |||
|
|||
if (vaultData.getSize() === 0) { | |||
void helper.writeMetrics(); |
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.
on line 1160 it awaits before returning. Which is correct?
also that one superfluously references facets
.
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.
on line 1160 it awaits before returning. Which is correct?
There were more calls that said void
than await
, so ... No, that's not a good justification.
I don't see any reason that the calling environment wants to respond to the result or wait for it to finish, so I changed them all to void
.
also that one superfluously references facets.
fixed
await aethVaultMetrics.assertChange({ | ||
lockedQuote: null, |
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.
👍
9e920c3
to
c5b4e33
Compare
fix: reset lockedQuote even when nothing will be auctioned
closes: #8041
Description
When there were no vaults to be liquidated, we exited early, and missed the step of reseting the locked quote. This fixes that oversight.
Security Considerations
None
Scaling Considerations
None
Documentation Considerations
None
Testing Considerations
Appropriate tests were sensitive to the change and had to be updated.