FTM Price: $1.00 (-3.20%)
Gas: 43 GWei

Contract

0x2dC0D6a4c2CC5fFb0f26dDa9c2d4469D53125536
 

Overview

FTM Balance

Fantom LogoFantom LogoFantom Logo0 FTM

FTM Value

$0.00

Sponsored

Transaction Hash
Method
Block
From
To
Value
0x60806040578865382023-03-19 1:46:38376 days ago1679190398IN
 Create: MultiCall
0 FTM0.0162101553.17402882

Latest 1 internal transaction

Parent Txn Hash Block From To Value
578865382023-03-19 1:46:38376 days ago1679190398  Contract Creation0 FTM
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MultiCall

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at ftmscan.com on 2023-03-19
*/

pragma solidity ^0.6.12;
pragma experimental ABIEncoderV2;


contract MultiCall {
    
    struct Call {
        address to;
        bytes data;
    }
    
   function multicall(Call[] memory calls) public returns (bytes[] memory results, bool[] memory success) {
        results = new bytes[](calls.length);
        success = new bool[](calls.length);
        for (uint i = 0; i < calls.length; i++) {
            (success[i], results[i]) = calls[i].to.call(calls[i].data);
        }
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"components":[{"internalType":"address","name":"to","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct MultiCall.Call[]","name":"calls","type":"tuple[]"}],"name":"multicall","outputs":[{"internalType":"bytes[]","name":"results","type":"bytes[]"},{"internalType":"bool[]","name":"success","type":"bool[]"}],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5061048d806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c8063caa5c23f14610030575b600080fd5b61004361003e366004610281565b61005a565b604051610051929190610374565b60405180910390f35b606080825167ffffffffffffffff8111801561007557600080fd5b506040519080825280602002602001820160405280156100a957816020015b60608152602001906001900390816100945790505b509150825167ffffffffffffffff811180156100c457600080fd5b506040519080825280602002602001820160405280156100ee578160200160208202803683370190505b50905060005b83518110156101c05783818151811061010957fe5b6020026020010151600001516001600160a01b031684828151811061012a57fe5b6020026020010151602001516040516101439190610358565b6000604051808303816000865af19150503d8060008114610180576040519150601f19603f3d011682016040523d82523d6000602084013e610185565b606091505b5083838151811061019257fe5b602002602001018584815181106101a557fe5b602090810291909101019190915290151590526001016100f4565b50915091565b6000604082840312156101d7578081fd5b6101e16040610400565b905081356001600160a01b03811681146101fa57600080fd5b815260208281013567ffffffffffffffff8082111561021857600080fd5b818501915085601f83011261022c57600080fd5b81358181111561023b57600080fd5b61024d601f8201601f19168501610400565b9150808252868482850101111561026357600080fd5b80848401858401376000908201840152918301919091525092915050565b60006020808385031215610293578182fd5b823567ffffffffffffffff808211156102aa578384fd5b818501915085601f8301126102bd578384fd5b8135818111156102cb578485fd5b6102d88485830201610400565b8181528481019250838501865b8381101561030e576102fc8a8884358901016101c6565b855293860193908601906001016102e5565b509098975050505050505050565b6000815180845260208085019450808401835b8381101561034d57815115158752958201959082019060010161032f565b509495945050505050565b6000825161036a818460208701610427565b9190910192915050565b60006040820160408352808551808352606085019150602092506060838202860101838801855b838110156103e157878303605f19018552815180518085526103c2818987018a8501610427565b95870195601f01601f191693909301860192509085019060010161039b565b5050858103848701526103f4818861031c565b98975050505050505050565b60405181810167ffffffffffffffff8111828210171561041f57600080fd5b604052919050565b60005b8381101561044257818101518382015260200161042a565b83811115610451576000848401525b5050505056fea2646970667358221220f0197ebfb8c5ffc4f6fb77597bfc1f1ebbdc45f1afa2bdd41de8ca74d015ec9364736f6c634300060c0033

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061002b5760003560e01c8063caa5c23f14610030575b600080fd5b61004361003e366004610281565b61005a565b604051610051929190610374565b60405180910390f35b606080825167ffffffffffffffff8111801561007557600080fd5b506040519080825280602002602001820160405280156100a957816020015b60608152602001906001900390816100945790505b509150825167ffffffffffffffff811180156100c457600080fd5b506040519080825280602002602001820160405280156100ee578160200160208202803683370190505b50905060005b83518110156101c05783818151811061010957fe5b6020026020010151600001516001600160a01b031684828151811061012a57fe5b6020026020010151602001516040516101439190610358565b6000604051808303816000865af19150503d8060008114610180576040519150601f19603f3d011682016040523d82523d6000602084013e610185565b606091505b5083838151811061019257fe5b602002602001018584815181106101a557fe5b602090810291909101019190915290151590526001016100f4565b50915091565b6000604082840312156101d7578081fd5b6101e16040610400565b905081356001600160a01b03811681146101fa57600080fd5b815260208281013567ffffffffffffffff8082111561021857600080fd5b818501915085601f83011261022c57600080fd5b81358181111561023b57600080fd5b61024d601f8201601f19168501610400565b9150808252868482850101111561026357600080fd5b80848401858401376000908201840152918301919091525092915050565b60006020808385031215610293578182fd5b823567ffffffffffffffff808211156102aa578384fd5b818501915085601f8301126102bd578384fd5b8135818111156102cb578485fd5b6102d88485830201610400565b8181528481019250838501865b8381101561030e576102fc8a8884358901016101c6565b855293860193908601906001016102e5565b509098975050505050505050565b6000815180845260208085019450808401835b8381101561034d57815115158752958201959082019060010161032f565b509495945050505050565b6000825161036a818460208701610427565b9190910192915050565b60006040820160408352808551808352606085019150602092506060838202860101838801855b838110156103e157878303605f19018552815180518085526103c2818987018a8501610427565b95870195601f01601f191693909301860192509085019060010161039b565b5050858103848701526103f4818861031c565b98975050505050505050565b60405181810167ffffffffffffffff8111828210171561041f57600080fd5b604052919050565b60005b8381101561044257818101518382015260200161042a565b83811115610451576000848401525b5050505056fea2646970667358221220f0197ebfb8c5ffc4f6fb77597bfc1f1ebbdc45f1afa2bdd41de8ca74d015ec9364736f6c634300060c0033

Deployed Bytecode Sourcemap

65:445:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;170:337;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;:::i;:::-;;;;;;;;;226:22;250:21;306:5;:12;294:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;284:35;;351:5;:12;340:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;340:24:0;;330:34;;380:6;375:125;396:5;:12;392:1;:16;375:125;;;457:5;463:1;457:8;;;;;;;;;;;;;;:11;;;-1:-1:-1;;;;;457:16:0;474:5;480:1;474:8;;;;;;;;;;;;;;:13;;;457:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;431:7;439:1;431:10;;;;;;;;;;;;;443:7;451:1;443:10;;;;;;;;;;;;;;;;;430:58;;;;;;;;;410:3;;375:125;;;;170:337;;;:::o;1394:554:-1:-;;1502:4;1490:9;1485:3;1481:19;1477:30;1474:2;;;-1:-1;;1510:12;1474:2;1538:20;1502:4;1538:20;:::i;:::-;1529:29;-1:-1;72:20;;-1:-1;;;;;8978:54;;9639:35;;9629:2;;-1:-1;;9678:12;9629:2;1613:75;;1777:2;1762:18;;;1749:32;1801:18;1790:30;;;1787:2;;;-1:-1;;1823:12;1787:2;1913:6;1902:9;1898:22;;;1019:3;1012:4;1004:6;1000:17;996:27;986:2;;-1:-1;;1027:12;986:2;1074:6;1061:20;1801:18;6859:6;6856:30;6853:2;;;-1:-1;;6889:12;6853:2;1096:64;6962:9;6943:17;;-1:-1;;6939:33;7020:15;;1096:64;:::i;:::-;1087:73;;1180:6;1173:5;1166:21;1284:3;1777:2;1275:6;1208;1266:16;;1263:25;1260:2;;;-1:-1;;1291:12;1260:2;9126:6;1777:2;1208:6;1204:17;1777:2;1242:5;1238:16;9103:30;-1:-1;9164:16;;;;;9157:27;1850:16;;;1843:84;;;;-1:-1;1854:5;1468:480;-1:-1;;1468:480::o;1955:415::-;;2103:2;;2091:9;2082:7;2078:23;2074:32;2071:2;;;-1:-1;;2109:12;2071:2;2167:17;2154:31;2205:18;;2197:6;2194:30;2191:2;;;-1:-1;;2227:12;2191:2;2337:6;2326:9;2322:22;;;310:3;303:4;295:6;291:17;287:27;277:2;;-1:-1;;318:12;277:2;365:6;352:20;2205:18;6564:6;6561:30;6558:2;;;-1:-1;;6594:12;6558:2;387:99;2103:2;;6631:6;6627:17;6692:15;387:99;:::i;:::-;514:21;;;571:14;;;;-1:-1;546:17;;;-1:-1;651:252;676:6;673:1;670:13;651:252;;;783:56;835:3;2103:2;759:3;746:17;550:6;734:30;;783:56;:::i;:::-;771:69;;854:14;;;;882;;;;698:1;691:9;651:252;;;-1:-1;2247:107;;2065:305;-1:-1;;;;;;;;2065:305::o;2770:666::-;;2954:5;7474:12;8160:6;8155:3;8148:19;8197:4;;8192:3;8188:14;2966:90;;8197:4;3124:5;7164:14;-1:-1;3163:251;3188:6;3185:1;3182:13;3163:251;;;3249:13;;8890;8883:21;4454:34;;2519:14;;;;7882;;;;3210:1;3203:9;3163:251;;;-1:-1;3420:10;;2888:548;-1:-1;;;;;2888:548::o;5193:271::-;;4990:5;7474:12;5101:52;5146:6;5141:3;5134:4;5127:5;5123:16;5101:52;:::i;:::-;5165:16;;;;;5327:137;-1:-1;;5327:137::o;5471:653::-;;5738:2;5727:9;5723:18;5738:2;5759:17;5752:47;5813:126;3691:5;7474:12;8160:6;8155:3;8148:19;8188:14;5727:9;8188:14;3703:102;;8197:4;;;8188:14;8197:4;3862:6;3858:17;5727:9;3849:27;;8197:4;3956:5;7164:14;-1:-1;3995:357;4020:6;4017:1;4014:13;3995:357;;;4072:20;;;-1:-1;;4072:20;4060:33;;4121:13;;7474:12;;8148:19;;;4715:52;7474:12;8188:14;;;4737:16;;;4715:52;:::i;:::-;4331:14;;;;6962:9;9543:14;-1:-1;;9539:28;4779:39;;;;;;;-1:-1;7882:14;;;;4042:1;4035:9;3995:357;;;3999:14;;5987:9;5981:4;5977:20;8197:4;5961:9;5957:18;5950:48;6012:102;6109:4;6100:6;6012:102;:::i;:::-;6004:110;5709:415;-1:-1;;;;;;;;5709:415::o;6131:256::-;6193:2;6187:9;6219:17;;;6294:18;6279:34;;6315:22;;;6276:62;6273:2;;;6351:1;;6341:12;6273:2;6193;6360:22;6171:216;;-1:-1;6171:216::o;9199:268::-;9264:1;9271:101;9285:6;9282:1;9279:13;9271:101;;;9352:11;;;9346:18;9333:11;;;9326:39;9307:2;9300:10;9271:101;;;9387:6;9384:1;9381:13;9378:2;;;9264:1;9443:6;9438:3;9434:16;9427:27;9378:2;;9248:219;;;:::o

Swarm Source

ipfs://f0197ebfb8c5ffc4f6fb77597bfc1f1ebbdc45f1afa2bdd41de8ca74d015ec93

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Txn Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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.