Skip to content

Commit 3d84809

Browse files
committed
Added tests for IOU + Gigastrat
1 parent 7d201f3 commit 3d84809

3 files changed

Lines changed: 2635 additions & 0 deletions

File tree

contracts/Gigastrat.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -743,6 +743,7 @@ address feeAddress = 0x9D31e30003f253563Ff108BC60B16Fdf2c93abb5;
743743
IERC20(usdcToken).transferFrom(msg.sender, address(this), amount);
744744

745745
// Repay loan
746+
IERC20(usdcToken).approve(loans[loanIndex].loanAddress, amount);
746747
ISpotIOULoan(loans[loanIndex].loanAddress).repayLoan(amount);
747748

748749
// Send ETH to caller

0 commit comments

Comments
 (0)