Overview
S Balance
0 S
S Value
-More Info
Private Name Tags
ContractCreator
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
Multicall
Compiler Version
v0.8.23+commit.f704f362
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
1234567891011121314151617181920212223242526// SPDX-License-Identifier: MITpragma solidity >=0.7.0;pragma experimental ABIEncoderV2;/// @title Multicall - Aggregate results from multiple read-only function calls/// @author Michael Elliot <mike@makerdao.com>/// @author Joshua Levine <joshua@makerdao.com>/// @author Nick Johnson <arachnid@notdot.net>/// @author Bogdan Dumitru <bogdan@bowd.io>contract Multicall {struct Call {address target;bytes callData;}struct Return {bool success;bytes data;}function aggregate(Call[] memory calls, bool strict) public returns (uint256 blockNumber, Return[] memory returnData) {blockNumber = block.number;returnData = new Return[](calls.length);for(uint256 i = 0; i < calls.length; i++) {(bool success, bytes memory ret) = calls[i].target.call(calls[i].callData);if (strict) {
1234567891011121314151617181920{"optimizer": {"enabled": true,"runs": 200},"evmVersion": "paris","outputSelection": {"*": {"*": ["evm.bytecode","evm.deployedBytecode","devdoc","userdoc","metadata","abi"]}},"libraries": {}}
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"callData","type":"bytes"}],"internalType":"struct Multicall.Call[]","name":"calls","type":"tuple[]"},{"internalType":"bool","name":"strict","type":"bool"}],"name":"aggregate","outputs":[{"internalType":"uint256","name":"blockNumber","type":"uint256"},{"components":[{"internalType":"bool","name":"success","type":"bool"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct Multicall.Return[]","name":"returnData","type":"tuple[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getBlockHash","outputs":[{"internalType":"bytes32","name":"blockHash","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentBlockCoinbase","outputs":[{"internalType":"address","name":"coinbase","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentBlockDifficulty","outputs":[{"internalType":"uint256","name":"difficulty","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentBlockGasLimit","outputs":[{"internalType":"uint256","name":"gaslimit","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentBlockTimestamp","outputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"getEthBalance","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLastBlockHash","outputs":[{"internalType":"bytes32","name":"blockHash","type":"bytes32"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b5061061a806100206000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c806372425d9d1161005b57806372425d9d146100e657806386d516e8146100ec578063a8b0574e146100f2578063ee82ac5e1461010057600080fd5b80630f28c97d1461008d57806317352e13146100a257806327e86d6e146100c35780634d2301cc146100cb575b600080fd5b425b6040519081526020015b60405180910390f35b6100b56100b0366004610327565b610112565b6040516100999291906104b7565b61008f610278565b61008f6100d9366004610550565b6001600160a01b03163190565b4461008f565b4561008f565b604051418152602001610099565b61008f61010e366004610572565b4090565b8151439060609067ffffffffffffffff8111156101315761013161028b565b60405190808252806020026020018201604052801561017757816020015b60408051808201909152600081526060602082015281526020019060019003908161014f5790505b50905060005b84518110156102705760008086838151811061019b5761019b61058b565b6020026020010151600001516001600160a01b03168784815181106101c2576101c261058b565b6020026020010151602001516040516101db91906105a1565b6000604051808303816000865af19150503d8060008114610218576040519150601f19603f3d011682016040523d82523d6000602084013e61021d565b606091505b50915091508515610232578161023257600080fd5b604051806040016040528083151581526020018281525084848151811061025b5761025b61058b565b6020908102919091010152505060010161017d565b509250929050565b60006102856001436105bd565b40905090565b634e487b7160e01b600052604160045260246000fd5b6040805190810167ffffffffffffffff811182821017156102c4576102c461028b565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156102f3576102f361028b565b604052919050565b80356001600160a01b038116811461031257600080fd5b919050565b8035801515811461031257600080fd5b6000806040838503121561033a57600080fd5b823567ffffffffffffffff8082111561035257600080fd5b818501915085601f83011261036657600080fd5b813560208282111561037a5761037a61028b565b8160051b6103898282016102ca565b928352848101820192828101908a8511156103a357600080fd5b83870192505b84831015610476578235868111156103c057600080fd5b8701601f196040828e03820112156103d757600080fd5b6103df6102a1565b6103ea8784016102fb565b81526040830135898111156103fe57600080fd5b8084019350508d603f84011261041357600080fd5b86830135898111156104275761042761028b565b6104378884601f840116016102ca565b92508083528e604082860101111561044e57600080fd5b80604085018985013760009083018801528087019190915283525091830191908301906103a9565b9750610486915050878201610317565b9450505050509250929050565b60005b838110156104ae578181015183820152602001610496565b50506000910152565b6000604080830185845260206040818601528186518084526060935060608701915060608160051b88010183890160005b8381101561054057898303605f1901855281518051151584528601518684018990528051898501819052610521818a8701848b01610493565b95870195601f01601f19169390930187019250908501906001016104e8565b50909a9950505050505050505050565b60006020828403121561056257600080fd5b61056b826102fb565b9392505050565b60006020828403121561058457600080fd5b5035919050565b634e487b7160e01b600052603260045260246000fd5b600082516105b3818460208701610493565b9190910192915050565b818103818111156105de57634e487b7160e01b600052601160045260246000fd5b9291505056fea2646970667358221220e6816d54a07150e70b4ba99c30beaec136544f965a254950dd66073e2388c72764736f6c63430008170033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100885760003560e01c806372425d9d1161005b57806372425d9d146100e657806386d516e8146100ec578063a8b0574e146100f2578063ee82ac5e1461010057600080fd5b80630f28c97d1461008d57806317352e13146100a257806327e86d6e146100c35780634d2301cc146100cb575b600080fd5b425b6040519081526020015b60405180910390f35b6100b56100b0366004610327565b610112565b6040516100999291906104b7565b61008f610278565b61008f6100d9366004610550565b6001600160a01b03163190565b4461008f565b4561008f565b604051418152602001610099565b61008f61010e366004610572565b4090565b8151439060609067ffffffffffffffff8111156101315761013161028b565b60405190808252806020026020018201604052801561017757816020015b60408051808201909152600081526060602082015281526020019060019003908161014f5790505b50905060005b84518110156102705760008086838151811061019b5761019b61058b565b6020026020010151600001516001600160a01b03168784815181106101c2576101c261058b565b6020026020010151602001516040516101db91906105a1565b6000604051808303816000865af19150503d8060008114610218576040519150601f19603f3d011682016040523d82523d6000602084013e61021d565b606091505b50915091508515610232578161023257600080fd5b604051806040016040528083151581526020018281525084848151811061025b5761025b61058b565b6020908102919091010152505060010161017d565b509250929050565b60006102856001436105bd565b40905090565b634e487b7160e01b600052604160045260246000fd5b6040805190810167ffffffffffffffff811182821017156102c4576102c461028b565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156102f3576102f361028b565b604052919050565b80356001600160a01b038116811461031257600080fd5b919050565b8035801515811461031257600080fd5b6000806040838503121561033a57600080fd5b823567ffffffffffffffff8082111561035257600080fd5b818501915085601f83011261036657600080fd5b813560208282111561037a5761037a61028b565b8160051b6103898282016102ca565b928352848101820192828101908a8511156103a357600080fd5b83870192505b84831015610476578235868111156103c057600080fd5b8701601f196040828e03820112156103d757600080fd5b6103df6102a1565b6103ea8784016102fb565b81526040830135898111156103fe57600080fd5b8084019350508d603f84011261041357600080fd5b86830135898111156104275761042761028b565b6104378884601f840116016102ca565b92508083528e604082860101111561044e57600080fd5b80604085018985013760009083018801528087019190915283525091830191908301906103a9565b9750610486915050878201610317565b9450505050509250929050565b60005b838110156104ae578181015183820152602001610496565b50506000910152565b6000604080830185845260206040818601528186518084526060935060608701915060608160051b88010183890160005b8381101561054057898303605f1901855281518051151584528601518684018990528051898501819052610521818a8701848b01610493565b95870195601f01601f19169390930187019250908501906001016104e8565b50909a9950505050505050505050565b60006020828403121561056257600080fd5b61056b826102fb565b9392505050565b60006020828403121561058457600080fd5b5035919050565b634e487b7160e01b600052603260045260246000fd5b600082516105b3818460208701610493565b9190910192915050565b818103818111156105de57634e487b7160e01b600052601160045260246000fd5b9291505056fea2646970667358221220e6816d54a07150e70b4ba99c30beaec136544f965a254950dd66073e2388c72764736f6c63430008170033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.