Verified contractExactGPL-3.0-or-later
MultiRewardCall
Address0xfd2bf7f1cd68dca11625a839d2bc97ee3790f501
- Balance
0 ETH
- Transactions
18,465
- Compiler
solc 0.8.22
- Same code
Only this contract
Details
- Compiler
- solc 0.8.22+commit.4fc1097e
- Language
- solidity
- Optimization
- Yes, 200 runs
- EVM version
- paris
- License
- GPL-3.0-or-later
- Match
- Exactcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 20,031,233
- Creation transaction
- 0xf596703f18…2720fce06e
contracts/MultiRewardCall.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.20;
contract MultiRewardCall {
struct Call {
address target;
bytes callData;
}
/// @notice Claim multiple rewards
/// @param calls An array of Call structs
/// @return blockNumber The block number where the calls were executed
/// @return returnData An array of bytes containing the responses
function claim(Call[] calldata calls) public payable returns (uint256 blockNumber, bytes[] memory returnData) {
blockNumber = block.number;
uint256 length = calls.length;
returnData = new bytes[](length);
Call calldata call;
for (uint256 i = 0; i < length;) {
bool success;
call = calls[i];
(success, returnData[i]) = call.target.call(call.callData);
require(success, "MultiRewardCall: call failed");
unchecked {
++i;
}
}
}
}
Compiler settingsShow
{
"metadata": {
"bytecodeHash": "ipfs"
},
"libraries": {},
"optimizer": {
"runs": 200,
"enabled": true
},
"evmVersion": "paris",
"remappings": []
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.