Skip to content

Conversation

piobab
Copy link
Collaborator

@piobab piobab commented Sep 8, 2023

The case where max_debt_repayable_denominator underflows need to be handled.

@thec00n I added mdr_negative with numbers to spreadsheet.

@piobab piobab requested review from dancreee and thec00n September 8, 2023 14:05
@piobab
Copy link
Collaborator Author

piobab commented Sep 11, 2023

Removed HF check after liquidation.

Aligned with the requirement:
in extreme cases it can happen that the HF worsens after a liquidation... But those liquidations are still necessary to close those bankrupt positions

@dancreee
Copy link

Lots of logic in this one good to get a second pair of eyes on it if we can

@piobab
Copy link
Collaborator Author

piobab commented Sep 13, 2023

Pushed move variable to if block

@piobab piobab merged commit 06308d5 into release/mars-v2 Sep 13, 2023
@piobab piobab deleted the fix/MP-3346-mdr-cannot-be-less-than-zero branch September 14, 2023 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants