ETH Price: $2,469.41 (-8.44%)

Contract

0x2Db892C4D67027FD77f1d1f35E5BF764Ea4d7529
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Mint183452492023-10-14 1:08:47319 days ago1697245727IN
0x2Db892C4...4Ea4d7529
0.003 ETH0.000110934.65636971
Mint183447242023-10-13 23:23:35319 days ago1697239415IN
0x2Db892C4...4Ea4d7529
0.003 ETH0.000136985.74977526
Mint183447222023-10-13 23:23:11319 days ago1697239391IN
0x2Db892C4...4Ea4d7529
0.003 ETH0.000149116.25907001
Mint183447222023-10-13 23:23:11319 days ago1697239391IN
0x2Db892C4...4Ea4d7529
0.003 ETH0.000149136.26007001
Mint183447222023-10-13 23:23:11319 days ago1697239391IN
0x2Db892C4...4Ea4d7529
0.003 ETH0.000149136.26007001
Mint183447222023-10-13 23:23:11319 days ago1697239391IN
0x2Db892C4...4Ea4d7529
0.003 ETH0.000149136.26007001
Mint183447222023-10-13 23:23:11319 days ago1697239391IN
0x2Db892C4...4Ea4d7529
0.003 ETH0.000270996.26007001
Mint183447212023-10-13 23:22:59319 days ago1697239379IN
0x2Db892C4...4Ea4d7529
0.015 ETH0.000134585.576512
Mint183447202023-10-13 23:22:47319 days ago1697239367IN
0x2Db892C4...4Ea4d7529
0.021 ETH0.000215084.96857838
Mint183447202023-10-13 23:22:47319 days ago1697239367IN
0x2Db892C4...4Ea4d7529
0.006 ETH0.000215084.96857838
Mint183447192023-10-13 23:22:35319 days ago1697239355IN
0x2Db892C4...4Ea4d7529
0.06 ETH0.000125755.21054802
Mint183447192023-10-13 23:22:35319 days ago1697239355IN
0x2Db892C4...4Ea4d7529
0.003 ETH0.000225515.20954802
Mint183447192023-10-13 23:22:35319 days ago1697239355IN
0x2Db892C4...4Ea4d7529
0.009 ETH0.000225555.21054802
Mint183447182023-10-13 23:22:23319 days ago1697239343IN
0x2Db892C4...4Ea4d7529
0.006 ETH0.000235545.44131811
Mint183447182023-10-13 23:22:23319 days ago1697239343IN
0x2Db892C4...4Ea4d7529
0.015 ETH0.000235545.44131811
Mint183447182023-10-13 23:22:23319 days ago1697239343IN
0x2Db892C4...4Ea4d7529
0.003 ETH0.000235545.44131811
Mint183447182023-10-13 23:22:23319 days ago1697239343IN
0x2Db892C4...4Ea4d7529
0.003 ETH0.000235545.44131811
Mint183447182023-10-13 23:22:23319 days ago1697239343IN
0x2Db892C4...4Ea4d7529
0.003 ETH0.000235545.44131811
Mint183447172023-10-13 23:22:11319 days ago1697239331IN
0x2Db892C4...4Ea4d7529
0.003 ETH0.000209874.84815807
Mint183447172023-10-13 23:22:11319 days ago1697239331IN
0x2Db892C4...4Ea4d7529
0.03 ETH0.000218525.04815807
Mint183447172023-10-13 23:22:11319 days ago1697239331IN
0x2Db892C4...4Ea4d7529
0.003 ETH0.000209874.84815807
Mint183447172023-10-13 23:22:11319 days ago1697239331IN
0x2Db892C4...4Ea4d7529
0.006 ETH0.000209874.84815807
Mint183447172023-10-13 23:22:11319 days ago1697239331IN
0x2Db892C4...4Ea4d7529
0.009 ETH0.000209874.84815807
Mint183447162023-10-13 23:21:59319 days ago1697239319IN
0x2Db892C4...4Ea4d7529
0.006 ETH0.000223155.15495985
Mint183447162023-10-13 23:21:59319 days ago1697239319IN
0x2Db892C4...4Ea4d7529
0.009 ETH0.000223195.15595985
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
183447222023-10-13 23:23:11319 days ago1697239391
0x2Db892C4...4Ea4d7529
0.003 ETH
183447202023-10-13 23:22:47319 days ago1697239367
0x2Db892C4...4Ea4d7529
0.021 ETH
183447202023-10-13 23:22:47319 days ago1697239367
0x2Db892C4...4Ea4d7529
0.006 ETH
183447192023-10-13 23:22:35319 days ago1697239355
0x2Db892C4...4Ea4d7529
0.003 ETH
183447192023-10-13 23:22:35319 days ago1697239355
0x2Db892C4...4Ea4d7529
0.009 ETH
183447182023-10-13 23:22:23319 days ago1697239343
0x2Db892C4...4Ea4d7529
0.006 ETH
183447182023-10-13 23:22:23319 days ago1697239343
0x2Db892C4...4Ea4d7529
0.015 ETH
183447182023-10-13 23:22:23319 days ago1697239343
0x2Db892C4...4Ea4d7529
0.003 ETH
183447182023-10-13 23:22:23319 days ago1697239343
0x2Db892C4...4Ea4d7529
0.003 ETH
183447182023-10-13 23:22:23319 days ago1697239343
0x2Db892C4...4Ea4d7529
0.003 ETH
183447172023-10-13 23:22:11319 days ago1697239331
0x2Db892C4...4Ea4d7529
0.003 ETH
183447172023-10-13 23:22:11319 days ago1697239331
0x2Db892C4...4Ea4d7529
0.03 ETH
183447172023-10-13 23:22:11319 days ago1697239331
0x2Db892C4...4Ea4d7529
0.003 ETH
183447172023-10-13 23:22:11319 days ago1697239331
0x2Db892C4...4Ea4d7529
0.006 ETH
183447172023-10-13 23:22:11319 days ago1697239331
0x2Db892C4...4Ea4d7529
0.009 ETH
183447162023-10-13 23:21:59319 days ago1697239319
0x2Db892C4...4Ea4d7529
0.006 ETH
183447162023-10-13 23:21:59319 days ago1697239319
0x2Db892C4...4Ea4d7529
0.009 ETH
183447162023-10-13 23:21:59319 days ago1697239319
0x2Db892C4...4Ea4d7529
0.012 ETH
183447142023-10-13 23:21:35319 days ago1697239295
0x2Db892C4...4Ea4d7529
0.003 ETH
183447112023-10-13 23:20:59319 days ago1697239259
0x2Db892C4...4Ea4d7529
0.006 ETH
183447102023-10-13 23:20:47319 days ago1697239247
0x2Db892C4...4Ea4d7529
0.006 ETH
183447092023-10-13 23:20:35319 days ago1697239235
0x2Db892C4...4Ea4d7529
0.003 ETH
183447092023-10-13 23:20:35319 days ago1697239235
0x2Db892C4...4Ea4d7529
0.006 ETH
183447082023-10-13 23:20:23319 days ago1697239223
0x2Db892C4...4Ea4d7529
0.003 ETH
183447072023-10-13 23:20:11319 days ago1697239211
0x2Db892C4...4Ea4d7529
0.003 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Nerdies

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, Unlicense license
/**
 *Submitted for verification at Etherscan.io on 2023-10-13
*/

// SPDX-License-Identifier: Unlicensed

pragma solidity ^0.8.20;

contract Nerdies {

    error MaxSupplyReached();
    error InvalidValue();
    error RequestingTooMany();
    error TransferFailed();
    error OnlyOwner();

    event Mint(address indexed minter, uint256 indexed amount, uint256 startID);

    uint256 public TOTAL_SUPPLY = 0;
    uint256 public PRICE = 0.003 * 1 ether;
    uint256 public immutable MAX_SUPPLY = 2000;

    address OWNER;

    modifier onlyOwner() {
        if (msg.sender != OWNER) {
            revert OnlyOwner();
        }
        _;
    }

    constructor () {
        OWNER = msg.sender;
    }

    function setPrice(uint256 _PRICE) external onlyOwner {
        PRICE = _PRICE;
    }

    function mint(uint256 amount) external payable {
        if (TOTAL_SUPPLY == MAX_SUPPLY) { revert MaxSupplyReached(); }
        if ((TOTAL_SUPPLY + amount) > MAX_SUPPLY) { revert RequestingTooMany(); }
        if ((PRICE * amount) != msg.value) { revert InvalidValue(); }
        

        (bool success,) = address(OWNER).call{value: msg.value}("");
        if (!success) {
            revert TransferFailed();
        }

        emit Mint(msg.sender, amount, TOTAL_SUPPLY);
        
        unchecked {
            TOTAL_SUPPLY += amount;
        }
    }

    function withdraw() external onlyOwner {
        (bool success,) = address(OWNER).call{value: address(this).balance}("");
        if (!success) {
            revert TransferFailed();
        }
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"InvalidValue","type":"error"},{"inputs":[],"name":"MaxSupplyReached","type":"error"},{"inputs":[],"name":"OnlyOwner","type":"error"},{"inputs":[],"name":"RequestingTooMany","type":"error"},{"inputs":[],"name":"TransferFailed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"minter","type":"address"},{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"startID","type":"uint256"}],"name":"Mint","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_PRICE","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a06040525f8055660aa87bee5380006001556107d0608090815250348015610026575f80fd5b503360025f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060805161070261008d5f395f81816101320152818161033a015261039401526107025ff3fe608060405260043610610054575f3560e01c806332cb6b0c146100585780633ccfd60b146100825780638d859f3e14610098578063902d55a5146100c257806391b7f5ed146100ec578063a0712d6814610114575b5f80fd5b348015610063575f80fd5b5061006c610130565b6040516100799190610578565b60405180910390f35b34801561008d575f80fd5b50610096610154565b005b3480156100a3575f80fd5b506100ac61029d565b6040516100b99190610578565b60405180910390f35b3480156100cd575f80fd5b506100d66102a3565b6040516100e39190610578565b60405180910390f35b3480156100f7575f80fd5b50610112600480360381019061010d91906105bf565b6102a8565b005b61012e600480360381019061012991906105bf565b610338565b005b7f000000000000000000000000000000000000000000000000000000000000000081565b60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146101da576040517f5fc483c500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff164760405161022090610617565b5f6040518083038185875af1925050503d805f811461025a576040519150601f19603f3d011682016040523d82523d5f602084013e61025f565b606091505b505090508061029a576040517f90b8ec1800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50565b60015481565b5f5481565b60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461032e576040517f5fc483c500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060018190555050565b7f00000000000000000000000000000000000000000000000000000000000000005f5403610392576040517fd05cb60900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000000815f546103c09190610658565b11156103f8576040517f9e0456c300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3481600154610407919061068b565b1461043e576040517faa7feadc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163460405161048490610617565b5f6040518083038185875af1925050503d805f81146104be576040519150601f19603f3d011682016040523d82523d5f602084013e6104c3565b606091505b50509050806104fe576040517f90b8ec1800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b813373ffffffffffffffffffffffffffffffffffffffff167f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f5f546040516105469190610578565b60405180910390a3815f8082825401925050819055505050565b5f819050919050565b61057281610560565b82525050565b5f60208201905061058b5f830184610569565b92915050565b5f80fd5b61059e81610560565b81146105a8575f80fd5b50565b5f813590506105b981610595565b92915050565b5f602082840312156105d4576105d3610591565b5b5f6105e1848285016105ab565b91505092915050565b5f81905092915050565b50565b5f6106025f836105ea565b915061060d826105f4565b5f82019050919050565b5f610621826105f7565b9150819050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61066282610560565b915061066d83610560565b92508282019050808211156106855761068461062b565b5b92915050565b5f61069582610560565b91506106a083610560565b92508282026106ae81610560565b915082820484148315176106c5576106c461062b565b5b509291505056fea26469706673582212200c42be63c96a3cbb25edb9989228c6d79eebd36542e21d16978411692c46c52d64736f6c63430008140033

Deployed Bytecode

0x608060405260043610610054575f3560e01c806332cb6b0c146100585780633ccfd60b146100825780638d859f3e14610098578063902d55a5146100c257806391b7f5ed146100ec578063a0712d6814610114575b5f80fd5b348015610063575f80fd5b5061006c610130565b6040516100799190610578565b60405180910390f35b34801561008d575f80fd5b50610096610154565b005b3480156100a3575f80fd5b506100ac61029d565b6040516100b99190610578565b60405180910390f35b3480156100cd575f80fd5b506100d66102a3565b6040516100e39190610578565b60405180910390f35b3480156100f7575f80fd5b50610112600480360381019061010d91906105bf565b6102a8565b005b61012e600480360381019061012991906105bf565b610338565b005b7f00000000000000000000000000000000000000000000000000000000000007d081565b60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146101da576040517f5fc483c500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff164760405161022090610617565b5f6040518083038185875af1925050503d805f811461025a576040519150601f19603f3d011682016040523d82523d5f602084013e61025f565b606091505b505090508061029a576040517f90b8ec1800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50565b60015481565b5f5481565b60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461032e576040517f5fc483c500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060018190555050565b7f00000000000000000000000000000000000000000000000000000000000007d05f5403610392576040517fd05cb60900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000007d0815f546103c09190610658565b11156103f8576040517f9e0456c300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3481600154610407919061068b565b1461043e576040517faa7feadc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163460405161048490610617565b5f6040518083038185875af1925050503d805f81146104be576040519150601f19603f3d011682016040523d82523d5f602084013e6104c3565b606091505b50509050806104fe576040517f90b8ec1800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b813373ffffffffffffffffffffffffffffffffffffffff167f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f5f546040516105469190610578565b60405180910390a3815f8082825401925050819055505050565b5f819050919050565b61057281610560565b82525050565b5f60208201905061058b5f830184610569565b92915050565b5f80fd5b61059e81610560565b81146105a8575f80fd5b50565b5f813590506105b981610595565b92915050565b5f602082840312156105d4576105d3610591565b5b5f6105e1848285016105ab565b91505092915050565b5f81905092915050565b50565b5f6106025f836105ea565b915061060d826105f4565b5f82019050919050565b5f610621826105f7565b9150819050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61066282610560565b915061066d83610560565b92508282019050808211156106855761068461062b565b5b92915050565b5f61069582610560565b91506106a083610560565b92508282026106ae81610560565b915082820484148315176106c5576106c461062b565b5b509291505056fea26469706673582212200c42be63c96a3cbb25edb9989228c6d79eebd36542e21d16978411692c46c52d64736f6c63430008140033

Deployed Bytecode Sourcemap

70:1480:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;408:42;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1344:203;;;;;;;;;;;;;:::i;:::-;;363:38;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;325:31;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;670:86;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;764:572;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;408:42;;;:::o;1344:203::-;531:5;;;;;;;;;;;517:19;;:10;:19;;;513:70;;560:11;;;;;;;;;;;;;;513:70;1395:12:::1;1420:5;;;;;;;;;;;1412:19;;1439:21;1412:53;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1394:71;;;1481:7;1476:64;;1512:16;;;;;;;;;;;;;;1476:64;1383:164;1344:203::o:0;363:38::-;;;;:::o;325:31::-;;;;:::o;670:86::-;531:5;;;;;;;;;;;517:19;;:10;:19;;;513:70;;560:11;;;;;;;;;;;;;;513:70;742:6:::1;734:5;:14;;;;670:86:::0;:::o;764:572::-;842:10;826:12;;:26;822:62;;863:18;;;;;;;;;;;;;;822:62;924:10;914:6;899:12;;:21;;;;:::i;:::-;898:36;894:73;;;945:19;;;;;;;;;;;;;;894:73;1001:9;990:6;982:5;;:14;;;;:::i;:::-;981:29;977:61;;1021:14;;;;;;;;;;;;;;977:61;1061:12;1086:5;;;;;;;;;;;1078:19;;1105:9;1078:41;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1060:59;;;1135:7;1130:64;;1166:16;;;;;;;;;;;;;;1130:64;1228:6;1216:10;1211:38;;;1236:12;;1211:38;;;;;;:::i;:::-;;;;;;;;1311:6;1295:12;;:22;;;;;;;;;;;811:525;764:572;:::o;7:77:1:-;44:7;73:5;62:16;;7:77;;;:::o;90:118::-;177:24;195:5;177:24;:::i;:::-;172:3;165:37;90:118;;:::o;214:222::-;307:4;345:2;334:9;330:18;322:26;;358:71;426:1;415:9;411:17;402:6;358:71;:::i;:::-;214:222;;;;:::o;523:117::-;632:1;629;622:12;769:122;842:24;860:5;842:24;:::i;:::-;835:5;832:35;822:63;;881:1;878;871:12;822:63;769:122;:::o;897:139::-;943:5;981:6;968:20;959:29;;997:33;1024:5;997:33;:::i;:::-;897:139;;;;:::o;1042:329::-;1101:6;1150:2;1138:9;1129:7;1125:23;1121:32;1118:119;;;1156:79;;:::i;:::-;1118:119;1276:1;1301:53;1346:7;1337:6;1326:9;1322:22;1301:53;:::i;:::-;1291:63;;1247:117;1042:329;;;;:::o;1377:147::-;1478:11;1515:3;1500:18;;1377:147;;;;:::o;1530:114::-;;:::o;1650:398::-;1809:3;1830:83;1911:1;1906:3;1830:83;:::i;:::-;1823:90;;1922:93;2011:3;1922:93;:::i;:::-;2040:1;2035:3;2031:11;2024:18;;1650:398;;;:::o;2054:379::-;2238:3;2260:147;2403:3;2260:147;:::i;:::-;2253:154;;2424:3;2417:10;;2054:379;;;:::o;2439:180::-;2487:77;2484:1;2477:88;2584:4;2581:1;2574:15;2608:4;2605:1;2598:15;2625:191;2665:3;2684:20;2702:1;2684:20;:::i;:::-;2679:25;;2718:20;2736:1;2718:20;:::i;:::-;2713:25;;2761:1;2758;2754:9;2747:16;;2782:3;2779:1;2776:10;2773:36;;;2789:18;;:::i;:::-;2773:36;2625:191;;;;:::o;2822:410::-;2862:7;2885:20;2903:1;2885:20;:::i;:::-;2880:25;;2919:20;2937:1;2919:20;:::i;:::-;2914:25;;2974:1;2971;2967:9;2996:30;3014:11;2996:30;:::i;:::-;2985:41;;3175:1;3166:7;3162:15;3159:1;3156:22;3136:1;3129:9;3109:83;3086:139;;3205:18;;:::i;:::-;3086:139;2870:362;2822:410;;;;:::o

Swarm Source

ipfs://0c42be63c96a3cbb25edb9989228c6d79eebd36542e21d16978411692c46c52d

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

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ 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.