Address
0xfbb36a79b6ebe951c2eda3e81fb4e157fcce38eaCurrent Holdings
$0.00
TXs sent
not counted
First Active
2025-01-28
block 22,560,966
Last Active
446 days ago
block 23,824,042
Funded By
not identified
Net worth historyi
No net-worth snapshots recorded yet
partial matchIwinswapExecuteOperationssolc 0.8.20+commit.a1b79de6runtime partial · creation partial
// SPDX-License-Identifier: UNLICENSED
// This code is proprietary and may not be used, distributed, or modified without permission.
// The source code may be open-sourced in the future.
pragma solidity ^0.8.20;
// do not approve
contract IwinswapExecuteOperations {
// can be reentered, which makes this function really flexible
function executeOperations(
bytes[] calldata data,
address[] calldata to,
bool[] calldata requireSuccess
) public returns (bool[] memory) {
bool [] memory failures = new bool[](data.length);
for (uint i = 0; i < to.length; i++) {
(bool success, ) = to[i].call(data[i]);
if (!success) {
failures[i] = true;
if (requireSuccess[i]) {
revert("OF");
}
}
}
return failures;
}
}