FRAX Price: $0.87 (+7.90%)

Contract

0x2840463Ea288c26B66E24f92E8C704e1aB6b095c

Overview

FRAX Balance | FXTL Balance

0 FRAX | 411 FXTL

FRAX Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To

There are no matching entries

1 Token Transfer found.

Advanced mode:
Parent Transaction Hash Block From To
View All Internal Transactions

Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Multicall

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at fraxscan.com on 2024-03-27
*/

// SPDX-License-Identifier: MIT
pragma solidity >=0.7.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]>
/// @author Bogdan Dumitru <[email protected]>

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) {
              require(success);
            }
            returnData[i] = Return(success, 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

API
[{"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"}]

608060405234801561001057600080fd5b50610643806100206000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c806372425d9d1161005b57806372425d9d146100e657806386d516e8146100ec578063a8b0574e146100f2578063ee82ac5e1461010057600080fd5b80630f28c97d1461008d57806317352e13146100a257806327e86d6e146100c35780634d2301cc146100cb575b600080fd5b425b6040519081526020015b60405180910390f35b6100b56100b0366004610332565b610112565b6040516100999291906104c2565b61008f610283565b61008f6100d9366004610558565b6001600160a01b03163190565b4461008f565b4561008f565b604051418152602001610099565b61008f61010e36600461057a565b4090565b8151439060609067ffffffffffffffff81111561013157610131610296565b60405190808252806020026020018201604052801561017757816020015b60408051808201909152600081526060602082015281526020019060019003908161014f5790505b50905060005b845181101561027b5760008086838151811061019b5761019b610593565b6020026020010151600001516001600160a01b03168784815181106101c2576101c2610593565b6020026020010151602001516040516101db91906105a9565b6000604051808303816000865af19150503d8060008114610218576040519150601f19603f3d011682016040523d82523d6000602084013e61021d565b606091505b50915091508515610232578161023257600080fd5b604051806040016040528083151581526020018281525084848151811061025b5761025b610593565b602002602001018190525050508080610273906105db565b91505061017d565b509250929050565b60006102906001436105f4565b40905090565b634e487b7160e01b600052604160045260246000fd5b6040805190810167ffffffffffffffff811182821017156102cf576102cf610296565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156102fe576102fe610296565b604052919050565b80356001600160a01b038116811461031d57600080fd5b919050565b8035801515811461031d57600080fd5b6000806040838503121561034557600080fd5b823567ffffffffffffffff8082111561035d57600080fd5b818501915085601f83011261037157600080fd5b813560208282111561038557610385610296565b8160051b6103948282016102d5565b928352848101820192828101908a8511156103ae57600080fd5b83870192505b84831015610481578235868111156103cb57600080fd5b8701601f196040828e03820112156103e257600080fd5b6103ea6102ac565b6103f5878401610306565b815260408301358981111561040957600080fd5b8084019350508d603f84011261041e57600080fd5b868301358981111561043257610432610296565b6104428884601f840116016102d5565b92508083528e604082860101111561045957600080fd5b80604085018985013760009083018801528087019190915283525091830191908301906103b4565b9750610491915050878201610322565b9450505050509250929050565b60005b838110156104b95781810151838201526020016104a1565b50506000910152565b6000604080830185845260208281860152818651808452606093508387019150838160051b88010183890160005b8381101561054857898303605f1901855281518051151584528601518684018990528051898501819052610529818a8701848b0161049e565b95870195601f01601f19169390930187019250908501906001016104f0565b50909a9950505050505050505050565b60006020828403121561056a57600080fd5b61057382610306565b9392505050565b60006020828403121561058c57600080fd5b5035919050565b634e487b7160e01b600052603260045260246000fd5b600082516105bb81846020870161049e565b9190910192915050565b634e487b7160e01b600052601160045260246000fd5b6000600182016105ed576105ed6105c5565b5060010190565b81810381811115610607576106076105c5565b9291505056fea2646970667358221220b50ba228154dd43822111118120fb85bb77e253f66cfcbba5413d0158db3d8fb64736f6c63430008130033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100885760003560e01c806372425d9d1161005b57806372425d9d146100e657806386d516e8146100ec578063a8b0574e146100f2578063ee82ac5e1461010057600080fd5b80630f28c97d1461008d57806317352e13146100a257806327e86d6e146100c35780634d2301cc146100cb575b600080fd5b425b6040519081526020015b60405180910390f35b6100b56100b0366004610332565b610112565b6040516100999291906104c2565b61008f610283565b61008f6100d9366004610558565b6001600160a01b03163190565b4461008f565b4561008f565b604051418152602001610099565b61008f61010e36600461057a565b4090565b8151439060609067ffffffffffffffff81111561013157610131610296565b60405190808252806020026020018201604052801561017757816020015b60408051808201909152600081526060602082015281526020019060019003908161014f5790505b50905060005b845181101561027b5760008086838151811061019b5761019b610593565b6020026020010151600001516001600160a01b03168784815181106101c2576101c2610593565b6020026020010151602001516040516101db91906105a9565b6000604051808303816000865af19150503d8060008114610218576040519150601f19603f3d011682016040523d82523d6000602084013e61021d565b606091505b50915091508515610232578161023257600080fd5b604051806040016040528083151581526020018281525084848151811061025b5761025b610593565b602002602001018190525050508080610273906105db565b91505061017d565b509250929050565b60006102906001436105f4565b40905090565b634e487b7160e01b600052604160045260246000fd5b6040805190810167ffffffffffffffff811182821017156102cf576102cf610296565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156102fe576102fe610296565b604052919050565b80356001600160a01b038116811461031d57600080fd5b919050565b8035801515811461031d57600080fd5b6000806040838503121561034557600080fd5b823567ffffffffffffffff8082111561035d57600080fd5b818501915085601f83011261037157600080fd5b813560208282111561038557610385610296565b8160051b6103948282016102d5565b928352848101820192828101908a8511156103ae57600080fd5b83870192505b84831015610481578235868111156103cb57600080fd5b8701601f196040828e03820112156103e257600080fd5b6103ea6102ac565b6103f5878401610306565b815260408301358981111561040957600080fd5b8084019350508d603f84011261041e57600080fd5b868301358981111561043257610432610296565b6104428884601f840116016102d5565b92508083528e604082860101111561045957600080fd5b80604085018985013760009083018801528087019190915283525091830191908301906103b4565b9750610491915050878201610322565b9450505050509250929050565b60005b838110156104b95781810151838201526020016104a1565b50506000910152565b6000604080830185845260208281860152818651808452606093508387019150838160051b88010183890160005b8381101561054857898303605f1901855281518051151584528601518684018990528051898501819052610529818a8701848b0161049e565b95870195601f01601f19169390930187019250908501906001016104f0565b50909a9950505050505050505050565b60006020828403121561056a57600080fd5b61057382610306565b9392505050565b60006020828403121561058c57600080fd5b5035919050565b634e487b7160e01b600052603260045260246000fd5b600082516105bb81846020870161049e565b9190910192915050565b634e487b7160e01b600052601160045260246000fd5b6000600182016105ed576105ed6105c5565b5060010190565b81810381811115610607576106076105c5565b9291505056fea2646970667358221220b50ba228154dd43822111118120fb85bb77e253f66cfcbba5413d0158db3d8fb64736f6c63430008130033

Deployed Bytecode Sourcemap

369:1596:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1460:122;1559:15;1460:122;;;160:25:1;;;148:2;133:18;1460:122:0;;;;;;;;541:492;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;:::i;1328:126::-;;;:::i;1064:116::-;;;;;;:::i;:::-;-1:-1:-1;;;;;1160:12:0;;;1064:116;1588:126;1690:16;1588:126;;1720:118;1816:14;1720:118;;1844;;;1940:14;5310:51:1;;5298:2;5283:18;1844:118:0;5164:203:1;1186:136:0;;;;;;:::i;:::-;1292:22;;1186:136;541:492;733:12;;684;;631:26;;720;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;720:26:0;;;;;;;;;;;;;;;;707:39;;761:9;757:269;780:5;:12;776:1;:16;757:269;;;815:12;829:16;849:5;855:1;849:8;;;;;;;;:::i;:::-;;;;;;;:15;;;-1:-1:-1;;;;;849:20:0;870:5;876:1;870:8;;;;;;;;:::i;:::-;;;;;;;:17;;;849:39;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;814:74;;;;907:6;903:61;;;940:7;932:16;;;;;;994:20;;;;;;;;1001:7;994:20;;;;;;1010:3;994:20;;;978:10;989:1;978:13;;;;;;;;:::i;:::-;;;;;;:36;;;;799:227;;794:3;;;;;:::i;:::-;;;;757:269;;;;541:492;;;;;:::o;1328:126::-;1377:17;1429:16;1444:1;1429:12;:16;:::i;:::-;1419:27;1407:39;;1328:126;:::o;196:127:1:-;257:10;252:3;248:20;245:1;238:31;288:4;285:1;278:15;312:4;309:1;302:15;328:251;400:2;394:9;;;430:15;;475:18;460:34;;496:22;;;457:62;454:88;;;522:18;;:::i;:::-;558:2;551:22;328:251;:::o;584:275::-;655:2;649:9;720:2;701:13;;-1:-1:-1;;697:27:1;685:40;;755:18;740:34;;776:22;;;737:62;734:88;;;802:18;;:::i;:::-;838:2;831:22;584:275;;-1:-1:-1;584:275:1:o;864:173::-;932:20;;-1:-1:-1;;;;;981:31:1;;971:42;;961:70;;1027:1;1024;1017:12;961:70;864:173;;;:::o;1042:160::-;1107:20;;1163:13;;1156:21;1146:32;;1136:60;;1192:1;1189;1182:12;1207:1994;1316:6;1324;1377:2;1365:9;1356:7;1352:23;1348:32;1345:52;;;1393:1;1390;1383:12;1345:52;1433:9;1420:23;1462:18;1503:2;1495:6;1492:14;1489:34;;;1519:1;1516;1509:12;1489:34;1557:6;1546:9;1542:22;1532:32;;1602:7;1595:4;1591:2;1587:13;1583:27;1573:55;;1624:1;1621;1614:12;1573:55;1660:2;1647:16;1682:4;1705:2;1701;1698:10;1695:36;;;1711:18;;:::i;:::-;1757:2;1754:1;1750:10;1780:28;1804:2;1800;1796:11;1780:28;:::i;:::-;1842:15;;;1912:11;;;1908:20;;;1873:12;;;;1940:19;;;1937:39;;;1972:1;1969;1962:12;1937:39;2004:2;2000;1996:11;1985:22;;2016:1101;2032:6;2027:3;2024:15;2016:1101;;;2118:3;2105:17;2154:2;2141:11;2138:19;2135:39;;;2170:1;2167;2160:12;2135:39;2197:20;;-1:-1:-1;;2294:2:1;2271:16;;;2267:25;;2263:34;2260:54;;;2310:1;2307;2300:12;2260:54;2340:22;;:::i;:::-;2389:31;2416:2;2412;2408:11;2389:31;:::i;:::-;2382:5;2375:46;2471:2;2467;2463:11;2450:25;2504:2;2494:8;2491:16;2488:36;;;2520:1;2517;2510:12;2488:36;2555:8;2551:2;2547:17;2537:27;;;2604:7;2599:2;2595;2591:11;2587:25;2577:53;;2626:1;2623;2616:12;2577:53;2674:2;2670;2666:11;2653:25;2701:2;2697;2694:10;2691:36;;;2707:18;;:::i;:::-;2753:48;2797:2;2792;2785:4;2781:2;2777:13;2773:22;2769:31;2753:48;:::i;:::-;2740:61;;2828:2;2821:5;2814:17;2872:7;2867:2;2862;2858;2854:11;2850:20;2847:33;2844:53;;;2893:1;2890;2883:12;2844:53;2952:2;2947;2943;2939:11;2934:2;2927:5;2923:14;2910:45;3000:1;2979:14;;;2975:23;;2968:34;3022:14;;;3015:29;;;;3057:18;;-1:-1:-1;2049:12:1;;;;3095;;;;2016:1101;;;3136:5;-1:-1:-1;3160:35:1;;-1:-1:-1;;3176:18:1;;;3160:35;:::i;:::-;3150:45;;;;;;1207:1994;;;;;:::o;3206:250::-;3291:1;3301:113;3315:6;3312:1;3309:13;3301:113;;;3391:11;;;3385:18;3372:11;;;3365:39;3337:2;3330:10;3301:113;;;-1:-1:-1;;3448:1:1;3430:16;;3423:27;3206:250::o;3461:1325::-;3675:4;3704:2;3744;3733:9;3729:18;3774:6;3763:9;3756:25;3800:2;3838;3833;3822:9;3818:18;3811:30;3861:6;3896;3890:13;3927:6;3919;3912:22;3953:2;3943:12;;3986:2;3975:9;3971:18;3964:25;;4048:2;4038:6;4035:1;4031:14;4020:9;4016:30;4012:39;4086:2;4078:6;4074:15;4107:1;4117:640;4131:6;4128:1;4125:13;4117:640;;;4196:22;;;-1:-1:-1;;4192:36:1;4180:49;;4252:13;;4307:9;;4300:17;4293:25;4278:41;;4358:11;;4352:18;4390:15;;;4383:27;;;4439:19;;4478:15;;;4471:33;;;4517:84;4439:19;4575:15;;;4552:21;;;4517:84;:::i;:::-;4735:12;;;;4667:2;4644:17;-1:-1:-1;;4640:31:1;4628:44;;;;4624:53;;;-1:-1:-1;4700:15:1;;;;4153:1;4146:9;4117:640;;;-1:-1:-1;4774:6:1;;3461:1325;-1:-1:-1;;;;;;;;;;3461:1325:1:o;4973:186::-;5032:6;5085:2;5073:9;5064:7;5060:23;5056:32;5053:52;;;5101:1;5098;5091:12;5053:52;5124:29;5143:9;5124:29;:::i;:::-;5114:39;4973:186;-1:-1:-1;;;4973:186:1:o;5372:180::-;5431:6;5484:2;5472:9;5463:7;5459:23;5455:32;5452:52;;;5500:1;5497;5490:12;5452:52;-1:-1:-1;5523:23:1;;5372:180;-1:-1:-1;5372:180:1:o;5557:127::-;5618:10;5613:3;5609:20;5606:1;5599:31;5649:4;5646:1;5639:15;5673:4;5670:1;5663:15;5689:287;5818:3;5856:6;5850:13;5872:66;5931:6;5926:3;5919:4;5911:6;5907:17;5872:66;:::i;:::-;5954:16;;;;;5689:287;-1:-1:-1;;5689:287:1:o;5981:127::-;6042:10;6037:3;6033:20;6030:1;6023:31;6073:4;6070:1;6063:15;6097:4;6094:1;6087:15;6113:135;6152:3;6173:17;;;6170:43;;6193:18;;:::i;:::-;-1:-1:-1;6240:1:1;6229:13;;6113:135::o;6253:128::-;6320:9;;;6341:11;;;6338:37;;;6355:18;;:::i;:::-;6253:128;;;;:::o

Swarm Source

ipfs://b50ba228154dd43822111118120fb85bb77e253f66cfcbba5413d0158db3d8fb

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

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.