Source Code
Overview
FRAX Balance | FXTL Balance
0 FRAX | 0 FXTL
FRAX Value
$0.00
Cross-Chain Transactions
Loading...
Loading
Contract Name:
UniswapInterfaceMulticall
Compiler Version
v0.7.6+commit.7338295f
Contract Source Code (Solidity)
/**
*Submitted for verification at fraxscan.com on 2024-03-05
*/
// SPDX-License-Identifier: MIT
pragma solidity =0.7.6;
pragma abicoder v2;
/// @notice A fork of Multicall2 specifically tailored for the Uniswap Interface
contract UniswapInterfaceMulticall {
struct Call {
address target;
uint256 gasLimit;
bytes callData;
}
struct Result {
bool success;
uint256 gasUsed;
bytes returnData;
}
function getCurrentBlockTimestamp() public view returns (uint256 timestamp) {
timestamp = block.timestamp;
}
function getEthBalance(address addr) public view returns (uint256 balance) {
balance = addr.balance;
}
function multicall(Call[] memory calls) public returns (uint256 blockNumber, Result[] memory returnData) {
blockNumber = block.number;
returnData = new Result[](calls.length);
for (uint256 i = 0; i < calls.length; i++) {
(address target, uint256 gasLimit, bytes memory callData) =
(calls[i].target, calls[i].gasLimit, calls[i].callData);
uint256 gasLeftBefore = gasleft();
(bool success, bytes memory ret) = target.call{gas: gasLimit}(callData);
uint256 gasUsed = gasLeftBefore - gasleft();
returnData[i] = Result(success, gasUsed, ret);
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"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":[{"components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"uint256","name":"gasLimit","type":"uint256"},{"internalType":"bytes","name":"callData","type":"bytes"}],"internalType":"struct UniswapInterfaceMulticall.Call[]","name":"calls","type":"tuple[]"}],"name":"multicall","outputs":[{"internalType":"uint256","name":"blockNumber","type":"uint256"},{"components":[{"internalType":"bool","name":"success","type":"bool"},{"internalType":"uint256","name":"gasUsed","type":"uint256"},{"internalType":"bytes","name":"returnData","type":"bytes"}],"internalType":"struct UniswapInterfaceMulticall.Result[]","name":"returnData","type":"tuple[]"}],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
608060405234801561001057600080fd5b50610554806100206000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80630f28c97d146100465780631749e1e3146100645780634d2301cc14610085575b600080fd5b61004e610098565b60405161005b9190610401565b60405180910390f35b6100776100723660046102a7565b61009c565b60405161005b92919061040a565b61004e610093366004610286565b610220565b4290565b8051439060609067ffffffffffffffff811180156100b957600080fd5b506040519080825280602002602001820160405280156100f357816020015b6100e061023a565b8152602001906001900390816100d85790505b50905060005b835181101561021a57600080600086848151811061011357fe5b60200260200101516000015187858151811061012b57fe5b60200260200101516020015188868151811061014357fe5b60200260200101516040015192509250925060005a90506000808573ffffffffffffffffffffffffffffffffffffffff16858560405161018391906103e5565b60006040518083038160008787f1925050503d80600081146101c1576040519150601f19603f3d011682016040523d82523d6000602084013e6101c6565b606091505b509150915060005a8403905060405180606001604052808415158152602001828152602001838152508989815181106101fb57fe5b60200260200101819052505050505050505080806001019150506100f9565b50915091565b73ffffffffffffffffffffffffffffffffffffffff163190565b604051806060016040528060001515815260200160008152602001606081525090565b803573ffffffffffffffffffffffffffffffffffffffff8116811461028157600080fd5b919050565b600060208284031215610297578081fd5b6102a08261025d565b9392505050565b600060208083850312156102b9578182fd5b823567ffffffffffffffff808211156102d0578384fd5b818501915085601f8301126102e3578384fd5b8135818111156102ef57fe5b6102fc84858302016104ca565b81815284810190848601875b848110156103d65781358701601f19606081838f03011215610328578a8bfd5b60408051606081018181108b8211171561033e57fe5b825261034b848d0161025d565b8152818401358c82015260608401358a811115610366578d8efd5b8085019450508e603f85011261037a578c8dfd5b8b8401358a81111561038857fe5b6103988d85601f840116016104ca565b93508084528f838287010111156103ad578d8efd5b808386018e86013783018c018d9052908101919091528552509287019290870190600101610308565b50909998505050505050505050565b600082516103f78184602087016104ee565b9190910192915050565b90815260200190565b600060408083018584526020828186015281865180845260609350838701915083838202880101838901875b838110156104ba578983037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa0018552815180511515845286810151878501528801518884018890528051888501819052608061049782828801858c016104ee565b96880196601f91909101601f191694909401909301925090850190600101610436565b50909a9950505050505050505050565b60405181810167ffffffffffffffff811182821017156104e657fe5b604052919050565b60005b838110156105095781810151838201526020016104f1565b83811115610518576000848401525b5050505056fea2646970667358221220d67206b216cdcc8d16135890a5c5841e19f1247466e86f435cc99db092522ae864736f6c63430007060033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100415760003560e01c80630f28c97d146100465780631749e1e3146100645780634d2301cc14610085575b600080fd5b61004e610098565b60405161005b9190610401565b60405180910390f35b6100776100723660046102a7565b61009c565b60405161005b92919061040a565b61004e610093366004610286565b610220565b4290565b8051439060609067ffffffffffffffff811180156100b957600080fd5b506040519080825280602002602001820160405280156100f357816020015b6100e061023a565b8152602001906001900390816100d85790505b50905060005b835181101561021a57600080600086848151811061011357fe5b60200260200101516000015187858151811061012b57fe5b60200260200101516020015188868151811061014357fe5b60200260200101516040015192509250925060005a90506000808573ffffffffffffffffffffffffffffffffffffffff16858560405161018391906103e5565b60006040518083038160008787f1925050503d80600081146101c1576040519150601f19603f3d011682016040523d82523d6000602084013e6101c6565b606091505b509150915060005a8403905060405180606001604052808415158152602001828152602001838152508989815181106101fb57fe5b60200260200101819052505050505050505080806001019150506100f9565b50915091565b73ffffffffffffffffffffffffffffffffffffffff163190565b604051806060016040528060001515815260200160008152602001606081525090565b803573ffffffffffffffffffffffffffffffffffffffff8116811461028157600080fd5b919050565b600060208284031215610297578081fd5b6102a08261025d565b9392505050565b600060208083850312156102b9578182fd5b823567ffffffffffffffff808211156102d0578384fd5b818501915085601f8301126102e3578384fd5b8135818111156102ef57fe5b6102fc84858302016104ca565b81815284810190848601875b848110156103d65781358701601f19606081838f03011215610328578a8bfd5b60408051606081018181108b8211171561033e57fe5b825261034b848d0161025d565b8152818401358c82015260608401358a811115610366578d8efd5b8085019450508e603f85011261037a578c8dfd5b8b8401358a81111561038857fe5b6103988d85601f840116016104ca565b93508084528f838287010111156103ad578d8efd5b808386018e86013783018c018d9052908101919091528552509287019290870190600101610308565b50909998505050505050505050565b600082516103f78184602087016104ee565b9190910192915050565b90815260200190565b600060408083018584526020828186015281865180845260609350838701915083838202880101838901875b838110156104ba578983037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa0018552815180511515845286810151878501528801518884018890528051888501819052608061049782828801858c016104ee565b96880196601f91909101601f191694909401909301925090850190600101610436565b50909a9950505050505050505050565b60405181810167ffffffffffffffff811182821017156104e657fe5b604052919050565b60005b838110156105095781810151838201526020016104f1565b83811115610518576000848401525b5050505056fea2646970667358221220d67206b216cdcc8d16135890a5c5841e19f1247466e86f435cc99db092522ae864736f6c63430007060033
Deployed Bytecode Sourcemap
163:1174:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;416:122;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;670:664;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;:::i;546:116::-;;;;;;:::i;:::-;;:::i;416:122::-;515:15;;416:122::o;670:664::-;849:12;;800;;747:26;;836;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;823:39;;878:9;873:454;897:5;:12;893:1;:16;873:454;;;932:14;948:16;966:21;1009:5;1015:1;1009:8;;;;;;;;;;;;;;:15;;;1026:5;1032:1;1026:8;;;;;;;;;;;;;;:17;;;1045:5;1051:1;1045:8;;;;;;;;;;;;;;:17;;;931:132;;;;;;1078:21;1102:9;1078:33;;1127:12;1141:16;1161:6;:11;;1178:8;1188;1161:36;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1126:71;;;;1212:15;1246:9;1230:13;:25;1212:43;;1286:29;;;;;;;;1293:7;1286:29;;;;;;1302:7;1286:29;;;;1311:3;1286:29;;;1270:10;1281:1;1270:13;;;;;;;;;;;;;:45;;;;873:454;;;;;;;911:3;;;;;;;873:454;;;;670:664;;;:::o;546:116::-;642:12;;;;546:116::o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;14:198:1:-;84:20;;144:42;133:54;;123:65;;113:2;;202:1;199;192:12;113:2;65:147;;;:::o;217:198::-;;329:2;317:9;308:7;304:23;300:32;297:2;;;350:6;342;335:22;297:2;378:31;399:9;378:31;:::i;:::-;368:41;287:128;-1:-1:-1;;;287:128:1:o;420:2122::-;;555:2;598;586:9;577:7;573:23;569:32;566:2;;;619:6;611;604:22;566:2;664:9;651:23;693:18;734:2;726:6;723:14;720:2;;;755:6;747;740:22;720:2;798:6;787:9;783:22;773:32;;843:7;836:4;832:2;828:13;824:27;814:2;;870:6;862;855:22;814:2;911;898:16;933:2;929;926:10;923:2;;;939:9;923:2;970:36;1002:2;997;993;989:11;985:20;970:36;:::i;:::-;1040:15;;;1071:12;;;;1103:11;;;1132:6;1147:1365;1161:2;1158:1;1155:9;1147:1365;;;1237:3;1224:17;1220:2;1216:26;-1:-1:-1;;1378:4:1;1373:2;1368;1359:7;1355:16;1351:25;1347:36;1344:2;;;1401:6;1393;1386:22;1344:2;1433;1468;1462:9;1514:4;1506:6;1502:17;1573:6;1561:10;1558:22;1553:2;1541:10;1538:18;1535:46;1532:2;;;1584:9;1532:2;1608:22;;1658:33;1679:11;;;1658:33;:::i;:::-;1650:6;1643:49;1750:2;1746;1742:11;1729:25;1724:2;1716:6;1712:15;1705:50;1805:4;1801:2;1797:13;1784:27;1840:2;1830:8;1827:16;1824:2;;;1861:6;1853;1846:22;1824:2;1901:8;1897:2;1893:17;1883:27;;;1950:7;1945:2;1941;1937:11;1933:25;1923:2;;1977:6;1969;1962:22;1923:2;2030;2026;2022:11;2009:25;2057:2;2053;2050:10;2047:2;;;2063:9;2047:2;2100:47;2143:2;2138;2131:4;2127:2;2123:13;2119:22;2115:31;2100:47;:::i;:::-;2087:60;;2174:2;2167:5;2160:17;2218:7;2213:2;2208;2204;2200:11;2196:20;2193:33;2190:2;;;2244:6;2236;2229:22;2190:2;2308;2303;2299;2295:11;2290:2;2283:5;2279:14;2266:45;2335:14;;2331:23;;2324:39;;;2383:15;;;2376:30;;;;2419:19;;-1:-1:-1;2458:12:1;;;;2490;;;;1179:1;1172:9;1147:1365;;;-1:-1:-1;2531:5:1;;535:2007;-1:-1:-1;;;;;;;;;535:2007:1:o;2547:274::-;;2714:6;2708:13;2730:53;2776:6;2771:3;2764:4;2756:6;2752:17;2730:53;:::i;:::-;2799:16;;;;;2684:137;-1:-1:-1;;2684:137:1:o;2826:177::-;2972:25;;;2960:2;2945:18;;2927:76::o;3008:1516::-;;3251:2;3291;3280:9;3276:18;3321:6;3310:9;3303:25;3347:2;3385;3380;3369:9;3365:18;3358:30;3408:6;3443;3437:13;3474:6;3466;3459:22;3500:2;3490:12;;3533:2;3522:9;3518:18;3511:25;;3596:2;3590;3582:6;3578:15;3567:9;3563:31;3559:40;3634:2;3626:6;3622:15;3655:4;3668:827;3682:6;3679:1;3676:13;3668:827;;;3747:22;;;3771:66;3743:95;3731:108;;3862:13;;3917:9;;3910:17;3903:25;3888:41;;3972:11;;;3966:18;3949:15;;;3942:43;4024:11;;4018:18;4056:15;;;4049:27;;;4105:19;;4144:15;;;4137:33;;;4193:3;4209:71;4105:19;4254:15;;;4231:21;;;4209:71;:::i;:::-;4473:12;;;;4337:2;4323:17;;;;-1:-1:-1;;4319:90:1;4307:103;;;;4303:112;;;;-1:-1:-1;4438:15:1;;;;3704:1;3697:9;3668:827;;;-1:-1:-1;4512:6:1;;3231:1293;-1:-1:-1;;;;;;;;;;3231:1293:1:o;4529:242::-;4599:2;4593:9;4629:17;;;4676:18;4661:34;;4697:22;;;4658:62;4655:2;;;4723:9;4655:2;4750;4743:22;4573:198;;-1:-1:-1;4573:198:1:o;4776:258::-;4848:1;4858:113;4872:6;4869:1;4866:13;4858:113;;;4948:11;;;4942:18;4929:11;;;4922:39;4894:2;4887:10;4858:113;;;4989:6;4986:1;4983:13;4980:2;;;5024:1;5015:6;5010:3;5006:16;4999:27;4980:2;;4829:205;;;:::o
Swarm Source
ipfs://d67206b216cdcc8d16135890a5c5841e19f1247466e86f435cc99db092522ae8
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in FRAX
0
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
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.