File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -6,14 +6,14 @@ import {Quotes} from "../libraries/Quotes.sol";
66
77// solhint-disable comprehensive-interface
88contract MultiPegOutPayer {
9- IPegOut public immutable LBC;
10- address public immutable OWNER;
11-
129 struct PegOutPayment {
1310 Quotes.PegOutQuote quote;
1411 bytes signature;
1512 }
1613
14+ IPegOut public immutable LBC;
15+ address public immutable OWNER;
16+
1717 event Deposit (address indexed sender , uint256 indexed amount );
1818 event Withdraw (address indexed owner , uint256 indexed amount );
1919
@@ -32,7 +32,8 @@ contract MultiPegOutPayer {
3232
3333 /// @notice Pays for all N quotes in a single transaction, emitting N PegOutDeposit events.
3434 function executeMultiplePegOuts (PegOutPayment[] calldata payments ) external {
35- for (uint256 i = 0 ; i < payments.length ; i++ ) {
35+ uint256 paymentsLength = payments.length ;
36+ for (uint256 i = 0 ; i < paymentsLength; ++ i) {
3637 Quotes.PegOutQuote calldata q = payments[i].quote;
3738 uint256 total = q.value + q.gasFee + q.callFee;
3839 if (address (this ).balance < total) {
You can’t perform that action at this time.
0 commit comments