@@ -60,7 +60,7 @@ contract InstallmentsRouter {
60
60
61
61
assetsOwed = new uint256 [](amounts.length );
62
62
uint256 totalOwed;
63
- for (uint256 i = 0 ; i < amounts.length ; i ++ ) {
63
+ for (uint256 i = 0 ; i < amounts.length ; ++ i ) {
64
64
uint256 owed = market.borrowAtMaturity (
65
65
firstMaturity + i * FixedLib.INTERVAL,
66
66
amounts[i],
@@ -97,7 +97,7 @@ contract InstallmentsRouter {
97
97
) external returns (uint256 [] memory assetsOwed ) {
98
98
assetsOwed = borrow (marketWETH, maturity, amounts, maxRepay, address (this ));
99
99
uint256 totalAmount = 0 ;
100
- for (uint256 i = 0 ; i < amounts.length ; i ++ ) totalAmount += amounts[i];
100
+ for (uint256 i = 0 ; i < amounts.length ; ++ i ) totalAmount += amounts[i];
101
101
weth.withdraw (totalAmount);
102
102
msg .sender .safeTransferETH (totalAmount);
103
103
}
@@ -117,7 +117,7 @@ contract InstallmentsRouter {
117
117
) external permit (marketWETH, marketPermit) returns (uint256 [] memory assetsOwed ) {
118
118
assetsOwed = borrow (marketWETH, maturity, amounts, maxRepay, address (this ));
119
119
uint256 totalAmount = 0 ;
120
- for (uint256 i = 0 ; i < amounts.length ; i ++ ) totalAmount += amounts[i];
120
+ for (uint256 i = 0 ; i < amounts.length ; ++ i ) totalAmount += amounts[i];
121
121
weth.withdraw (totalAmount);
122
122
msg .sender .safeTransferETH (totalAmount);
123
123
}
0 commit comments