generated from bgd-labs/bgd-forge-template
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: Allow Debt Swaps When LT > Current_LTV > LTV (#17)
* feat: (WIP) Over LTV DebtSwap draft * fix: (WIP) Fix debt swapper error, modify tests to provide sufficient margin, debug logs still present * misc: Cleanup * misc: Clarify comment * test: Add extra collateral debt swap tests to Gho tests * test: Added minor testing * test: Add misc GHO swap adapter tests * test: Added duplicated test with allowance renewal * feat: Update readme * feat: Allow collateral flashloans of the same new debt asset * fix: Fixed V2 debt swap and cleanup tests * feat: Add permit for collateral use * misc: Slight cleanup * fix: Use supply instead of deposit * refactor: Modified to make _flash call clearer * feat: Default to max debt if an amount greater than it is passed * feat: Add docs and clarify parameter name
- Loading branch information
Showing
30 changed files
with
1,228 additions
and
134 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
Oops, something went wrong.