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

Remove from batch issues #369

Merged
merged 4 commits into from
Aug 27, 2024
Merged

Remove from batch issues #369

merged 4 commits into from
Aug 27, 2024

Conversation

bingen
Copy link
Collaborator

@bingen bingen commented Aug 26, 2024

Closes #366
Closes #367
Closes #368

@bingen bingen self-assigned this Aug 26, 2024
vars.sortedTroves.insert(_troveId, _newAnnualInterestRate, _upperHint, _lowerHint);
// Reinsert as single trove, only if it’s not zombie
if (!_checkTroveIsUnredeemable(vars.troveManager, _troveId)) {
vars.sortedTroves.insert(_troveId, _newAnnualInterestRate, _upperHint, _lowerHint);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code is unreachable, as vars.sortedTroves.removeFromBatch(_troveId) will have already failed if the Trove is unredeemable.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, right!

@bingen bingen merged commit a94fb98 into main Aug 27, 2024
6 of 7 checks passed
@danielattilasimon danielattilasimon deleted the removeFromBatch_issues branch January 19, 2025 04:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants