-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix migration paused should not allow `migrateOnBehalf` * fix ensure collateral accounting is correct after liquidation * theoretical changes for clean expired locks refactor to handle liquidation edge case * prevent vault being brought into liquidatable state after migration * add check for vault cratio after delegation change * fix assigned debt being distributed to other vaults and other pools * ensure updating rewards for user before liquidation * prevent divide by 0 when all debt is migrated from v2x * verify vault c-ratio after minting new debt * add zero debt burned check just in case * lint fix * fix all but one test * fix the last test its just an issue finding event * fix c-ratio handling for vault, small refactor * change ordering per suggestion * fix small edge case in cleanAccountLocks also add tests that i put off * fix more small bugs found by the auditor * update warning comment * add call to distribute debt to pools in the unlikely case that a pool gets bumped in as a result of the distribution of debt to a single user, we call distribute debt to pools * Revert "add call to distribute debt to pools" This reverts commit 9b95bbc.
- Loading branch information
Showing
14 changed files
with
439 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.