-
Notifications
You must be signed in to change notification settings - Fork 766
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add condition to support same asset repay with collateral
- Loading branch information
1 parent
a7f0b8f
commit d725ec8
Showing
1 changed file
with
16 additions
and
20 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
Hey @defispartan ! There is a shadow declaration of the variable amountSold, which makes tests with different debt and collateral to fail due is passing the borrow amount as the collateral amount at L197.
You just need to delete the "uint256" part at line 178 to pass the paraswap repay tests.
Did you add a new test case for this new feature?