Skip to content
Verified contractPartialUnlicense

MultiCallHelper

Address0xbbb3d2ea97d2859ea391abeb691dfd23192b1ded
Balance

0 ETH

 

Transactions

184

 

Compiler

solc 0.7.6

 

Same code

Only this contract

 

Details

Compiler
solc 0.7.6+commit.7338295f
Language
solidity
Optimization
No
EVM version
berlin
License
Unlicense
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
12,731,799
Creation transaction
0x9c2b987864…24c2f62659

src/token/contracts/MultiCallHelper.sol

// SPDX-License-Identifier: Unlicense
pragma solidity >=0.7.6;

contract MultiCallHelper {
  fallback () external payable {
    assembly {
      for { let ptr := 0 } lt(ptr, calldatasize()) {} {
        let to := calldataload(ptr)
        ptr := add(ptr, 32)

        let value := calldataload(ptr)
        ptr := add(ptr, 32)

        let inSize := calldataload(ptr)
        ptr := add(ptr, 32)

        calldatacopy(0, ptr, inSize)
        ptr := add(ptr, inSize)

        let success := call(gas(), to, value, 0, inSize, 0, 0)
        if iszero(success) {
          returndatacopy(0, 0, returndatasize())
          revert(0, returndatasize())
        }
      }
      stop()
    }
  }
}
Compiler settingsShow
{
  "metadata": {
    "bytecodeHash": "none"
  },
  "libraries": {},
  "optimizer": {
    "runs": 256,
    "details": {
      "cse": true,
      "yul": false,
      "peephole": true,
      "deduplicate": true,
      "orderLiterals": false,
      "jumpdestRemover": true,
      "constantOptimizer": true
    }
  },
  "evmVersion": "berlin",
  "remappings": []
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.