ETH Price: $2,917.51 (-2.38%)
Gas: 54 Gwei

Contract

0x046cA747D8472D2F8C070655aEd06b841215d4b3
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
0x60806040161615732022-12-11 12:49:35437 days 8 hrs ago1670762975IN
 Create: CheckFlag
0 ETH0.0047329612

Advanced mode:
Parent Txn Hash Block From To Value
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CheckFlag

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, None license
/**
 *Submitted for verification at Etherscan.io on 2022-12-11
*/

// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.9;

interface IVerifier {
    function verify(bytes calldata flag) external returns(bool);
}

contract CheckFlag {
    IVerifier _verifier;

    constructor(address verifier) {
        _verifier = IVerifier(verifier);
    }

    function check(bytes calldata flag) payable external returns(bool){

        require(msg.value > 13333333333333333337 ether, "Please pay rabbit hole entrance fee");
        require(flag.length == 18);
        require(uint256(keccak256(abi.encodePacked(flag[:7], flag[17]))) == 49459084011290387902369587151867275004690538990200813105748590866129266398873);

        return _verifier.verify(flag[7:17]);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"verifier","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"bytes","name":"flag","type":"bytes"}],"name":"check","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"}]

608060405234801561001057600080fd5b506040516106cf3803806106cf833981810160405281019061003291906100db565b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050610108565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006100a88261007d565b9050919050565b6100b88161009d565b81146100c357600080fd5b50565b6000815190506100d5816100af565b92915050565b6000602082840312156100f1576100f0610078565b5b60006100ff848285016100c6565b91505092915050565b6105b8806101176000396000f3fe60806040526004361061001e5760003560e01c8063c64b3bb514610023575b600080fd5b61003d60048036038101906100389190610266565b610053565b60405161004a91906102ce565b60405180910390f35b60006f0a07e81672785e76ded2e6bd65c4000034116100a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161009e9061036c565b60405180910390fd5b601283839050146100b757600080fd5b7f6d58d97a386ee471a3357f7561e3659cdd5e5cd80d0b698a0afa88f7a58bd69983836000906007926100ec93929190610396565b85856011818110610100576100ff6103d1565b5b9050013560f81c60f81b60405160200161011c9392919061048c565b6040516020818303038152906040528051906020012060001c1461013f57600080fd5b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638e760afe848460079060119261018f93929190610396565b6040518363ffffffff1660e01b81526004016101ac929190610505565b6020604051808303816000875af11580156101cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101ef9190610555565b905092915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f84011261022657610225610201565b5b8235905067ffffffffffffffff81111561024357610242610206565b5b60208301915083600182028301111561025f5761025e61020b565b5b9250929050565b6000806020838503121561027d5761027c6101f7565b5b600083013567ffffffffffffffff81111561029b5761029a6101fc565b5b6102a785828601610210565b92509250509250929050565b60008115159050919050565b6102c8816102b3565b82525050565b60006020820190506102e360008301846102bf565b92915050565b600082825260208201905092915050565b7f506c65617365207061792072616262697420686f6c6520656e7472616e63652060008201527f6665650000000000000000000000000000000000000000000000000000000000602082015250565b60006103566023836102e9565b9150610361826102fa565b604082019050919050565b6000602082019050818103600083015261038581610349565b9050919050565b600080fd5b600080fd5b600080858511156103aa576103a961038c565b5b838611156103bb576103ba610391565b5b6001850283019150848603905094509492505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081905092915050565b82818337600083830152505050565b60006104268385610400565b935061043383858461040b565b82840190509392505050565b60007fff0000000000000000000000000000000000000000000000000000000000000082169050919050565b6000819050919050565b6104866104818261043f565b61046b565b82525050565b600061049982858761041a565b91506104a58284610475565b600182019150819050949350505050565b600082825260208201905092915050565b6000601f19601f8301169050919050565b60006104e483856104b6565b93506104f183858461040b565b6104fa836104c7565b840190509392505050565b600060208201905081810360008301526105208184866104d8565b90509392505050565b610532816102b3565b811461053d57600080fd5b50565b60008151905061054f81610529565b92915050565b60006020828403121561056b5761056a6101f7565b5b600061057984828501610540565b9150509291505056fea26469706673582212200893ff0bac88957f334a4afacb3af453967d2b1e9ada06606eb56212d47a6c8064736f6c63430008110033000000000000000000000000726afed38eaa7aab9540c0b4b4adc66c1fb14a41

Deployed Bytecode

0x60806040526004361061001e5760003560e01c8063c64b3bb514610023575b600080fd5b61003d60048036038101906100389190610266565b610053565b60405161004a91906102ce565b60405180910390f35b60006f0a07e81672785e76ded2e6bd65c4000034116100a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161009e9061036c565b60405180910390fd5b601283839050146100b757600080fd5b7f6d58d97a386ee471a3357f7561e3659cdd5e5cd80d0b698a0afa88f7a58bd69983836000906007926100ec93929190610396565b85856011818110610100576100ff6103d1565b5b9050013560f81c60f81b60405160200161011c9392919061048c565b6040516020818303038152906040528051906020012060001c1461013f57600080fd5b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638e760afe848460079060119261018f93929190610396565b6040518363ffffffff1660e01b81526004016101ac929190610505565b6020604051808303816000875af11580156101cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101ef9190610555565b905092915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f84011261022657610225610201565b5b8235905067ffffffffffffffff81111561024357610242610206565b5b60208301915083600182028301111561025f5761025e61020b565b5b9250929050565b6000806020838503121561027d5761027c6101f7565b5b600083013567ffffffffffffffff81111561029b5761029a6101fc565b5b6102a785828601610210565b92509250509250929050565b60008115159050919050565b6102c8816102b3565b82525050565b60006020820190506102e360008301846102bf565b92915050565b600082825260208201905092915050565b7f506c65617365207061792072616262697420686f6c6520656e7472616e63652060008201527f6665650000000000000000000000000000000000000000000000000000000000602082015250565b60006103566023836102e9565b9150610361826102fa565b604082019050919050565b6000602082019050818103600083015261038581610349565b9050919050565b600080fd5b600080fd5b600080858511156103aa576103a961038c565b5b838611156103bb576103ba610391565b5b6001850283019150848603905094509492505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081905092915050565b82818337600083830152505050565b60006104268385610400565b935061043383858461040b565b82840190509392505050565b60007fff0000000000000000000000000000000000000000000000000000000000000082169050919050565b6000819050919050565b6104866104818261043f565b61046b565b82525050565b600061049982858761041a565b91506104a58284610475565b600182019150819050949350505050565b600082825260208201905092915050565b6000601f19601f8301169050919050565b60006104e483856104b6565b93506104f183858461040b565b6104fa836104c7565b840190509392505050565b600060208201905081810360008301526105208184866104d8565b90509392505050565b610532816102b3565b811461053d57600080fd5b50565b60008151905061054f81610529565b92915050565b60006020828403121561056b5761056a6101f7565b5b600061057984828501610540565b9150509291505056fea26469706673582212200893ff0bac88957f334a4afacb3af453967d2b1e9ada06606eb56212d47a6c8064736f6c63430008110033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000726afed38eaa7aab9540c0b4b4adc66c1fb14a41

-----Decoded View---------------
Arg [0] : verifier (address): 0x726aFED38Eaa7aaB9540c0b4b4ADc66c1Fb14a41

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000726afed38eaa7aab9540c0b4b4adc66c1fb14a41


Deployed Bytecode Sourcemap

161:560:0:-:0;;;;;;;;;;;;;;;;;;;;;303:415;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;;364:4;402:26;390:9;:38;382:86;;;;;;;;;;;;:::i;:::-;;;;;;;;;502:2;487:4;;:11;;:17;479:26;;;;;;584:77;559:4;;:8;;565:1;559:8;;;;;;;:::i;:::-;569:4;;574:2;569:8;;;;;;;:::i;:::-;;;;;;;;;;542:36;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;532:47;;;;;;524:56;;:137;516:146;;;;;;682:9;;;;;;;;;;:16;;;699:4;;704:1;699:10;706:2;699:10;;;;;;;:::i;:::-;682:28;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;675:35;;303:415;;;;:::o;88:117:1:-;197:1;194;187:12;211:117;320:1;317;310:12;334:117;443:1;440;433:12;457:117;566:1;563;556:12;580:117;689:1;686;679:12;716:552;773:8;783:6;833:3;826:4;818:6;814:17;810:27;800:122;;841:79;;:::i;:::-;800:122;954:6;941:20;931:30;;984:18;976:6;973:30;970:117;;;1006:79;;:::i;:::-;970:117;1120:4;1112:6;1108:17;1096:29;;1174:3;1166:4;1158:6;1154:17;1144:8;1140:32;1137:41;1134:128;;;1181:79;;:::i;:::-;1134:128;716:552;;;;;:::o;1274:527::-;1344:6;1352;1401:2;1389:9;1380:7;1376:23;1372:32;1369:119;;;1407:79;;:::i;:::-;1369:119;1555:1;1544:9;1540:17;1527:31;1585:18;1577:6;1574:30;1571:117;;;1607:79;;:::i;:::-;1571:117;1720:64;1776:7;1767:6;1756:9;1752:22;1720:64;:::i;:::-;1702:82;;;;1498:296;1274:527;;;;;:::o;1807:90::-;1841:7;1884:5;1877:13;1870:21;1859:32;;1807:90;;;:::o;1903:109::-;1984:21;1999:5;1984:21;:::i;:::-;1979:3;1972:34;1903:109;;:::o;2018:210::-;2105:4;2143:2;2132:9;2128:18;2120:26;;2156:65;2218:1;2207:9;2203:17;2194:6;2156:65;:::i;:::-;2018:210;;;;:::o;2234:169::-;2318:11;2352:6;2347:3;2340:19;2392:4;2387:3;2383:14;2368:29;;2234:169;;;;:::o;2409:222::-;2549:34;2545:1;2537:6;2533:14;2526:58;2618:5;2613:2;2605:6;2601:15;2594:30;2409:222;:::o;2637:366::-;2779:3;2800:67;2864:2;2859:3;2800:67;:::i;:::-;2793:74;;2876:93;2965:3;2876:93;:::i;:::-;2994:2;2989:3;2985:12;2978:19;;2637:366;;;:::o;3009:419::-;3175:4;3213:2;3202:9;3198:18;3190:26;;3262:9;3256:4;3252:20;3248:1;3237:9;3233:17;3226:47;3290:131;3416:4;3290:131;:::i;:::-;3282:139;;3009:419;;;:::o;3434:117::-;3543:1;3540;3533:12;3557:117;3666:1;3663;3656:12;3680:469;3785:9;3796;3834:8;3822:10;3819:24;3816:111;;;3846:79;;:::i;:::-;3816:111;3952:6;3942:8;3939:20;3936:107;;;3962:79;;:::i;:::-;3936:107;4093:1;4081:10;4077:18;4069:6;4065:31;4052:44;;4132:10;4122:8;4118:25;4105:38;;3680:469;;;;;;;:::o;4155:180::-;4203:77;4200:1;4193:88;4300:4;4297:1;4290:15;4324:4;4321:1;4314:15;4341:147;4442:11;4479:3;4464:18;;4341:147;;;;:::o;4494:146::-;4591:6;4586:3;4581;4568:30;4632:1;4623:6;4618:3;4614:16;4607:27;4494:146;;;:::o;4668:327::-;4782:3;4803:88;4884:6;4879:3;4803:88;:::i;:::-;4796:95;;4901:56;4950:6;4945:3;4938:5;4901:56;:::i;:::-;4982:6;4977:3;4973:16;4966:23;;4668:327;;;;;:::o;5001:149::-;5037:7;5077:66;5070:5;5066:78;5055:89;;5001:149;;;:::o;5156:78::-;5194:7;5223:5;5212:16;;5156:78;;;:::o;5240:153::-;5343:43;5362:23;5379:5;5362:23;:::i;:::-;5343:43;:::i;:::-;5338:3;5331:56;5240:153;;:::o;5399:433::-;5571:3;5593:103;5692:3;5683:6;5675;5593:103;:::i;:::-;5586:110;;5706:73;5775:3;5766:6;5706:73;:::i;:::-;5804:1;5799:3;5795:11;5788:18;;5823:3;5816:10;;5399:433;;;;;;:::o;5838:168::-;5921:11;5955:6;5950:3;5943:19;5995:4;5990:3;5986:14;5971:29;;5838:168;;;;:::o;6012:102::-;6053:6;6104:2;6100:7;6095:2;6088:5;6084:14;6080:28;6070:38;;6012:102;;;:::o;6142:314::-;6238:3;6259:70;6322:6;6317:3;6259:70;:::i;:::-;6252:77;;6339:56;6388:6;6383:3;6376:5;6339:56;:::i;:::-;6420:29;6442:6;6420:29;:::i;:::-;6415:3;6411:39;6404:46;;6142:314;;;;;:::o;6462:335::-;6589:4;6627:2;6616:9;6612:18;6604:26;;6676:9;6670:4;6666:20;6662:1;6651:9;6647:17;6640:47;6704:86;6785:4;6776:6;6768;6704:86;:::i;:::-;6696:94;;6462:335;;;;;:::o;6803:116::-;6873:21;6888:5;6873:21;:::i;:::-;6866:5;6863:32;6853:60;;6909:1;6906;6899:12;6853:60;6803:116;:::o;6925:137::-;6979:5;7010:6;7004:13;6995:22;;7026:30;7050:5;7026:30;:::i;:::-;6925:137;;;;:::o;7068:345::-;7135:6;7184:2;7172:9;7163:7;7159:23;7155:32;7152:119;;;7190:79;;:::i;:::-;7152:119;7310:1;7335:61;7388:7;7379:6;7368:9;7364:22;7335:61;:::i;:::-;7325:71;;7281:125;7068:345;;;;:::o

Swarm Source

ipfs://0893ff0bac88957f334a4afacb3af453967d2b1e9ada06606eb56212d47a6c80

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  ]

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.