-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add if to skip if either borrow/repay is having 0 amount (#106)
When just withdraw collateral, we should skip the borrow calls instead of calling borrow with 0 amount. It looks like it was made in two scripts originally, but simple if in these two scripts do the tricks, so keep it in same script is more gas saving imo.
- Loading branch information
Showing
1 changed file
with
18 additions
and
6 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