ETH Price: $2,958.87 (-0.85%)
Gas: 0.1 Gwei
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

Advanced mode:
Parent Transaction Hash Method Block
From
To
View All Internal Transactions
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

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

Contract Source Code Verified (Exact Match)

Contract Name:
Armorer

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at Etherscan.io on 2023-01-26
*/

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

/*
Generic front runner contract with balance guarantees
*/
contract Armorer {

    constructor() {
    }

    function yoink(address payable _addr, bytes calldata funcData) public payable {
        // grab the starting balance for comparison
        uint256 startBalance = address(this).balance;
        // execute the call to the specified contract
        (bool success,) = _addr.call{value: msg.value, gas: gasleft()}(
            funcData
        );

        // expect the call to be successful
        require(success, "yoink was not successful");
        // get the ending balance for comparison
        uint256 endBalance = address(this).balance;
        // the call to the other contract should have increased this contracts balance
        require(endBalance > startBalance, "balance was not increased");
        // send funds to the account that invoked this
        payable(msg.sender).transfer(address(this).balance);
    }

    // needed to add to the balance
    receive() external payable {
    }

}

Contract Security Audit

Contract ABI

API
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address payable","name":"_addr","type":"address"},{"internalType":"bytes","name":"funcData","type":"bytes"}],"name":"yoink","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405234801561001057600080fd5b5061043c806100206000396000f3fe6080604052600436106100225760003560e01c8063334400741461002e57610029565b3661002957005b600080fd5b61004860048036038101906100439190610265565b61004a565b005b600047905060008473ffffffffffffffffffffffffffffffffffffffff16345a90868660405161007b929190610304565b600060405180830381858888f193505050503d80600081146100b9576040519150601f19603f3d011682016040523d82523d6000602084013e6100be565b606091505b5050905080610102576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016100f99061037a565b60405180910390fd5b6000479050828111610149576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610140906103e6565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f1935050505015801561018f573d6000803e3d6000fd5b50505050505050565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006101cd826101a2565b9050919050565b6101dd816101c2565b81146101e857600080fd5b50565b6000813590506101fa816101d4565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f84011261022557610224610200565b5b8235905067ffffffffffffffff81111561024257610241610205565b5b60208301915083600182028301111561025e5761025d61020a565b5b9250929050565b60008060006040848603121561027e5761027d610198565b5b600061028c868287016101eb565b935050602084013567ffffffffffffffff8111156102ad576102ac61019d565b5b6102b98682870161020f565b92509250509250925092565b600081905092915050565b82818337600083830152505050565b60006102eb83856102c5565b93506102f88385846102d0565b82840190509392505050565b60006103118284866102df565b91508190509392505050565b600082825260208201905092915050565b7f796f696e6b20776173206e6f74207375636365737366756c0000000000000000600082015250565b600061036460188361031d565b915061036f8261032e565b602082019050919050565b6000602082019050818103600083015261039381610357565b9050919050565b7f62616c616e636520776173206e6f7420696e6372656173656400000000000000600082015250565b60006103d060198361031d565b91506103db8261039a565b602082019050919050565b600060208201905081810360008301526103ff816103c3565b905091905056fea2646970667358221220f339ac493f75babd275cff49f38ca87ac3f9fb693dc75d6dfca7209c2fc3835864736f6c63430008110033

Deployed Bytecode

0x6080604052600436106100225760003560e01c8063334400741461002e57610029565b3661002957005b600080fd5b61004860048036038101906100439190610265565b61004a565b005b600047905060008473ffffffffffffffffffffffffffffffffffffffff16345a90868660405161007b929190610304565b600060405180830381858888f193505050503d80600081146100b9576040519150601f19603f3d011682016040523d82523d6000602084013e6100be565b606091505b5050905080610102576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016100f99061037a565b60405180910390fd5b6000479050828111610149576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610140906103e6565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f1935050505015801561018f573d6000803e3d6000fd5b50505050505050565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006101cd826101a2565b9050919050565b6101dd816101c2565b81146101e857600080fd5b50565b6000813590506101fa816101d4565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f84011261022557610224610200565b5b8235905067ffffffffffffffff81111561024257610241610205565b5b60208301915083600182028301111561025e5761025d61020a565b5b9250929050565b60008060006040848603121561027e5761027d610198565b5b600061028c868287016101eb565b935050602084013567ffffffffffffffff8111156102ad576102ac61019d565b5b6102b98682870161020f565b92509250509250925092565b600081905092915050565b82818337600083830152505050565b60006102eb83856102c5565b93506102f88385846102d0565b82840190509392505050565b60006103118284866102df565b91508190509392505050565b600082825260208201905092915050565b7f796f696e6b20776173206e6f74207375636365737366756c0000000000000000600082015250565b600061036460188361031d565b915061036f8261032e565b602082019050919050565b6000602082019050818103600083015261039381610357565b9050919050565b7f62616c616e636520776173206e6f7420696e6372656173656400000000000000600082015250565b60006103d060198361031d565b91506103db8261039a565b602082019050919050565b600060208201905081810360008301526103ff816103c3565b905091905056fea2646970667358221220f339ac493f75babd275cff49f38ca87ac3f9fb693dc75d6dfca7209c2fc3835864736f6c63430008110033

Deployed Bytecode Sourcemap

124:982:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;180:841;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;322:20;345:21;322:44;;433:12;450:5;:10;;468:9;484;450:78;509:8;;450:78;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;432:96;;;594:7;586:44;;;;;;;;;;;;:::i;:::-;;;;;;;;;691:18;712:21;691:42;;853:12;840:10;:25;832:63;;;;;;;;;;;;:::i;:::-;;;;;;;;;970:10;962:28;;:51;991:21;962:51;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;258:763;;;180:841;;;:::o;88:117:1:-;197:1;194;187:12;211:117;320:1;317;310:12;334:126;371:7;411:42;404:5;400:54;389:65;;334:126;;;:::o;466:104::-;511:7;540:24;558:5;540:24;:::i;:::-;529:35;;466:104;;;:::o;576:138::-;657:32;683:5;657:32;:::i;:::-;650:5;647:43;637:71;;704:1;701;694:12;637:71;576:138;:::o;720:155::-;774:5;812:6;799:20;790:29;;828:41;863:5;828:41;:::i;:::-;720:155;;;;:::o;881:117::-;990:1;987;980:12;1004:117;1113:1;1110;1103:12;1127:117;1236:1;1233;1226:12;1263:552;1320:8;1330:6;1380:3;1373:4;1365:6;1361:17;1357:27;1347:122;;1388:79;;:::i;:::-;1347:122;1501:6;1488:20;1478:30;;1531:18;1523:6;1520:30;1517:117;;;1553:79;;:::i;:::-;1517:117;1667:4;1659:6;1655:17;1643:29;;1721:3;1713:4;1705:6;1701:17;1691:8;1687:32;1684:41;1681:128;;;1728:79;;:::i;:::-;1681:128;1263:552;;;;;:::o;1821:688::-;1908:6;1916;1924;1973:2;1961:9;1952:7;1948:23;1944:32;1941:119;;;1979:79;;:::i;:::-;1941:119;2099:1;2124:61;2177:7;2168:6;2157:9;2153:22;2124:61;:::i;:::-;2114:71;;2070:125;2262:2;2251:9;2247:18;2234:32;2293:18;2285:6;2282:30;2279:117;;;2315:79;;:::i;:::-;2279:117;2428:64;2484:7;2475:6;2464:9;2460:22;2428:64;:::i;:::-;2410:82;;;;2205:297;1821:688;;;;;:::o;2515:147::-;2616:11;2653:3;2638:18;;2515:147;;;;:::o;2668:146::-;2765:6;2760:3;2755;2742:30;2806:1;2797:6;2792:3;2788:16;2781:27;2668:146;;;:::o;2842:327::-;2956:3;2977:88;3058:6;3053:3;2977:88;:::i;:::-;2970:95;;3075:56;3124:6;3119:3;3112:5;3075:56;:::i;:::-;3156:6;3151:3;3147:16;3140:23;;2842:327;;;;;:::o;3175:291::-;3315:3;3337:103;3436:3;3427:6;3419;3337:103;:::i;:::-;3330:110;;3457:3;3450:10;;3175:291;;;;;:::o;3472:169::-;3556:11;3590:6;3585:3;3578:19;3630:4;3625:3;3621:14;3606:29;;3472:169;;;;:::o;3647:174::-;3787:26;3783:1;3775:6;3771:14;3764:50;3647:174;:::o;3827:366::-;3969:3;3990:67;4054:2;4049:3;3990:67;:::i;:::-;3983:74;;4066:93;4155:3;4066:93;:::i;:::-;4184:2;4179:3;4175:12;4168:19;;3827:366;;;:::o;4199:419::-;4365:4;4403:2;4392:9;4388:18;4380:26;;4452:9;4446:4;4442:20;4438:1;4427:9;4423:17;4416:47;4480:131;4606:4;4480:131;:::i;:::-;4472:139;;4199:419;;;:::o;4624:175::-;4764:27;4760:1;4752:6;4748:14;4741:51;4624:175;:::o;4805:366::-;4947:3;4968:67;5032:2;5027:3;4968:67;:::i;:::-;4961:74;;5044:93;5133:3;5044:93;:::i;:::-;5162:2;5157:3;5153:12;5146:19;;4805:366;;;:::o;5177:419::-;5343:4;5381:2;5370:9;5366:18;5358:26;;5430:9;5424:4;5420:20;5416:1;5405:9;5401:17;5394:47;5458:131;5584:4;5458:131;:::i;:::-;5450:139;;5177:419;;;:::o

Swarm Source

ipfs://f339ac493f75babd275cff49f38ca87ac3f9fb693dc75d6dfca7209c2fc38358

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
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.