-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: partial liquidations and minor improvements (#217)
That's the very commit one would expect to see the night before the audit kicks in. Here we add the logic from `PartialLiquidationBotV3` to the credit facade. This approach has a few important benefits: * it doesn't trigger safe pricing in the collateral check * it allows partial liquidations during pause * it properly handles fee-on-transfer underlying The PR also contains some general code improvements: * `CreditConfiguratorV3`'s constructor is more consistent * `feeInterest` is made immutable in `CreditManagerV3`, which prevents debt manipulation by controller and improves storage packing * some dead code is removed from libraries
- Loading branch information
1 parent
72aad81
commit e3ff71e
Showing
23 changed files
with
313 additions
and
256 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
Oops, something went wrong.