Contract 0x0c069B8eFA54d1cdfcfF6a29b1B11c494dFAB02F

 
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x7c87f45ee722a5b3733cfd28cf6d6510545ea208c25c77b302a43333a8579cf90x6080604080348472021-06-05 15:01:27133 days 12 hrs ago0x4eb62f9ee5affa424181f3cbb8f96dfb13310ad7 IN  Contract Creation0 BNB0.001955125
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Multicall

Compiler Version
v0.6.10+commit.00c0fcaf

Optimization Enabled:
Yes with 999999 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at BscScan.com on 2021-06-05
*/

/**
 *Submitted for verification at BscScan.com on 2021-06-02
*/

// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity >=0.5.0;
pragma experimental ABIEncoderV2;

/// @title Multicall - Aggregate results from multiple read-only function calls
/// @author Michael Elliot <[email protected]>
/// @author Joshua Levine <[email protected]>
/// @author Nick Johnson <[email protected]>

contract Multicall {
    struct Call {
        address target;
        bytes callData;
    }

    function aggregate(Call[] memory calls) public returns (uint256 blockNumber, bytes[] memory returnData) {
        blockNumber = block.number;
        returnData = new bytes[](calls.length);
        for (uint256 i = 0; i < calls.length; i++) {
            (bool success, bytes memory ret) = calls[i].target.call(calls[i].callData);
            require(success);
            returnData[i] = ret;
        }
    }

    // Helper functions
    function getEthBalance(address addr) public view returns (uint256 balance) {
        balance = addr.balance;
    }

    function getBlockHash(uint256 blockNumber) public view returns (bytes32 blockHash) {
        blockHash = blockhash(blockNumber);
    }

    function getLastBlockHash() public view returns (bytes32 blockHash) {
        blockHash = blockhash(block.number - 1);
    }

    function getCurrentBlockTimestamp() public view returns (uint256 timestamp) {
        timestamp = block.timestamp;
    }

    function getCurrentBlockDifficulty() public view returns (uint256 difficulty) {
        difficulty = block.difficulty;
    }

    function getCurrentBlockGasLimit() public view returns (uint256 gaslimit) {
        gaslimit = block.gaslimit;
    }

    function getCurrentBlockCoinbase() public view returns (address coinbase) {
        coinbase = block.coinbase;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"callData","type":"bytes"}],"internalType":"struct Multicall.Call[]","name":"calls","type":"tuple[]"}],"name":"aggregate","outputs":[{"internalType":"uint256","name":"blockNumber","type":"uint256"},{"internalType":"bytes[]","name":"returnData","type":"bytes[]"}],"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"}]

608060405234801561001057600080fd5b5061061c806100206000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c806372425d9d1161005b57806372425d9d146100e757806386d516e8146100ef578063a8b0574e146100f7578063ee82ac5e1461010c57610088565b80630f28c97d1461008d578063252dba42146100ab57806327e86d6e146100cc5780634d2301cc146100d4575b600080fd5b61009561011f565b6040516100a291906104ca565b60405180910390f35b6100be6100b9366004610377565b610123565b6040516100a29291906104d3565b610095610253565b6100956100e2366004610355565b61027a565b610095610294565b610095610298565b6100ff61029c565b6040516100a291906104a9565b61009561011a366004610475565b6102a0565b4290565b8051439060609067ffffffffffffffff8111801561014057600080fd5b5060405190808252806020026020018201604052801561017457816020015b606081526020019060019003908161015f5790505b50905060005b835181101561024d576000606085838151811061019357fe5b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff168684815181106101c157fe5b6020026020010151602001516040516101da919061048d565b6000604051808303816000865af19150503d8060008114610217576040519150601f19603f3d011682016040523d82523d6000602084013e61021c565b606091505b50915091508161022b57600080fd5b8084848151811061023857fe5b6020908102919091010152505060010161017a565b50915091565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff43014090565b73ffffffffffffffffffffffffffffffffffffffff163190565b4490565b4590565b4190565b4090565b803573ffffffffffffffffffffffffffffffffffffffff811681146102c857600080fd5b92915050565b600082601f8301126102de578081fd5b813567ffffffffffffffff8111156102f4578182fd5b61032560207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8401160161058f565b915080825283602082850101111561033c57600080fd5b8060208401602084013760009082016020015292915050565b600060208284031215610366578081fd5b61037083836102a4565b9392505050565b60006020808385031215610389578182fd5b823567ffffffffffffffff808211156103a0578384fd5b81850186601f8201126103b1578485fd5b80359250818311156103c1578485fd5b6103ce848585020161058f565b83815284810190828601875b8681101561046657813585016040807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0838f03011215610418578a8bfd5b6104218161058f565b61042d8e8c85016102a4565b8152818301358981111561043f578c8dfd5b61044d8f8d838701016102ce565b828d0152508652505092870192908701906001016103da565b50909998505050505050505050565b600060208284031215610486578081fd5b5035919050565b6000825161049f8184602087016105b6565b9190910192915050565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b90815260200190565b600060408201848352602060408185015281855180845260608601915060608382028701019350828701855b82811015610581577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa08887030184528151805180885261054481888a018985016105b6565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016969096018501955092840192908401906001016104ff565b509398975050505050505050565b60405181810167ffffffffffffffff811182821017156105ae57600080fd5b604052919050565b60005b838110156105d15781810151838201526020016105b9565b838111156105e0576000848401525b5050505056fea264697066735822122031ea24cec8c7a2d28726eefd6224d3e91bbef942c38c5748c88f0841edfe889164736f6c634300060a0033

Deployed ByteCode Sourcemap

407:1467:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1363:122;;;:::i;:::-;;;;;;;;;;;;;;;;511:417;;;;;;;;;:::i;:::-;;;;;;;;;1229:126;;;:::i;961:116::-;;;;;;;;;:::i;1493:126::-;;;:::i;1627:118::-;;;:::i;1753:::-;;;:::i;:::-;;;;;;;;1085:136;;;;;;;;;:::i;1363:122::-;1462:15;;1363:122::o;511:417::-;688:12;;640;;588:25;;676;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;663:38:0;-1:-1:-1;717:9:0;712:209;736:5;:12;732:1;:16;712:209;;;771:12;785:16;805:5;811:1;805:8;;;;;;;;;;;;;;:15;;;:20;;826:5;832:1;826:8;;;;;;;;;;;;;;:17;;;805:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;770:74;;;;867:7;859:16;;;;;;906:3;890:10;901:1;890:13;;;;;;;;;;;;;;;;;:19;-1:-1:-1;;750:3:0;;712:209;;;;511:417;;;:::o;1229:126::-;1330:16;:12;:16;1320:27;;1229:126::o;961:116::-;1057:12;;;;961:116::o;1493:126::-;1595:16;;1493:126::o;1627:118::-;1723:14;;1627:118::o;1753:::-;1849:14;;1753:118::o;1085:136::-;1191:22;;1085:136::o;5:130:-1:-;72:20;;8966:42;8955:54;;9695:35;;9685:2;;9744:1;;9734:12;9685:2;57:78;;;;;918:440;;1019:3;1012:4;1004:6;1000:17;996:27;986:2;;-1:-1;;1027:12;986:2;1074:6;1061:20;7449:18;7441:6;7438:30;7435:2;;;-1:-1;;7471:12;7435:2;1096:64;7612:4;7544:9;1012:4;7529:6;7525:17;7521:33;7602:15;1096:64;;;1087:73;;1180:6;1173:5;1166:21;1284:3;7612:4;1275:6;1208;1266:16;;1263:25;1260:2;;;1301:1;;1291:12;1260:2;9182:6;7612:4;1208:6;1204:17;7612:4;1242:5;1238:16;9159:30;9238:1;9220:16;;;7612:4;9220:16;9213:27;1242:5;979:379;-1:-1;;979:379;2100:241;;2204:2;2192:9;2183:7;2179:23;2175:32;2172:2;;;-1:-1;;2210:12;2172:2;2272:53;2317:7;2293:22;2272:53;;;2262:63;2166:175;-1:-1;;;2166:175;2348:415;;2496:2;;2484:9;2475:7;2471:23;2467:32;2464:2;;;-1:-1;;2502:12;2464:2;2560:17;2547:31;2598:18;;2590:6;2587:30;2584:2;;;-1:-1;;2620:12;2584:2;2730:6;2719:9;2715:22;310:3;303:4;295:6;291:17;287:27;277:2;;-1:-1;;318:12;277:2;365:6;352:20;338:34;;2598:18;7146:6;7143:30;7140:2;;;-1:-1;;7176:12;7140:2;387:99;2496:2;;7213:6;7209:17;7274:15;387:99;;;514:21;;;571:14;;;;546:17;;;-1:-1;651:252;676:6;673:1;670:13;651:252;;;759:3;746:17;550:6;734:30;1502:4;;1481:19;734:30;1485:3;1481:19;;1477:30;1474:2;;;-1:-1;;1510:12;1474:2;1538:20;1502:4;1538:20;;;1642:49;1687:3;2496:2;734:30;;1642:49;;;1624:16;1617:75;1502:4;734:30;1770:18;1757:32;2598:18;1801:6;1798:30;1795:2;;;-1:-1;;1831:12;1795:2;1876:58;1930:3;2496:2;1921:6;734:30;1906:22;;1876:58;;;1858:16;;;1851:84;-1:-1;771:69;;-1:-1;;854:14;;;;882;;;;698:1;691:9;651:252;;;-1:-1;2640:107;;2458:305;-1:-1;;;;;;;;;2458:305;2770:241;;2874:2;2862:9;2853:7;2849:23;2845:32;2842:2;;;-1:-1;;2880:12;2842:2;-1:-1;2030:20;;2836:175;-1:-1;2836:175;5224:271;;4901:5;7913:12;5012:52;5057:6;5052:3;5045:4;5038:5;5034:16;5012:52;;;5076:16;;;;;5358:137;-1:-1;;5358:137;5502:222;8966:42;8955:54;;;;3287:37;;5629:2;5614:18;;5600:124;5731:222;4362:37;;;5858:2;5843:18;;5829:124;6189:517;;6412:2;6401:9;6397:18;4392:5;4369:3;4362:37;6530:2;6412;6530;6519:9;6515:18;6508:48;6570:126;3583:5;7913:12;8346:6;8341:3;8334:19;8374:14;6401:9;8374:14;3595:102;;8374:14;6530:2;3754:6;3750:17;6401:9;3741:27;;3729:39;;6530:2;3848:5;7758:14;-1:-1;3887:357;3912:6;3909:1;3906:13;3887:357;;;3964:20;6401:9;3968:4;3964:20;;3959:3;3952:33;4019:6;4013:13;4543:5;7913:12;8346:6;8341:3;8334:19;4626:52;4671:6;6530:2;8378:3;8374:14;6530:2;4652:5;4648:16;4626:52;;;9619:2;9599:14;9615:7;9595:28;4690:39;;;;;;;-1:-1;4223:14;;;;8180;;;;3934:1;3927:9;3887:357;;;-1:-1;6562:134;;6383:323;-1:-1;;;;;;;;6383:323;6713:256;6775:2;6769:9;6801:17;;;6876:18;6861:34;;6897:22;;;6858:62;6855:2;;;6933:1;;6923:12;6855:2;6775;6942:22;6753:216;;-1:-1;6753:216;9255:268;9320:1;9327:101;9341:6;9338:1;9335:13;9327:101;;;9408:11;;;9402:18;9389:11;;;9382:39;9363:2;9356:10;9327:101;;;9443:6;9440:1;9437:13;9434:2;;;9320:1;9499:6;9494:3;9490:16;9483:27;9434:2;;9304:219;;;

Swarm Source

ipfs://31ea24cec8c7a2d28726eefd6224d3e91bbef942c38c5748c88f0841edfe8891
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.