ETH Price: $3,353.29 (+0.38%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Mintout210101642024-10-20 23:46:4772 days ago1729468007IN
0xa5cb2783...BCFc6A7C0
0 ETH0.004141457.30576997

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Minter

Compiler Version
v0.8.26+commit.8a97fa7a

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at Etherscan.io on 2024-10-18
*/

// SPDX-License-Identifier: MIT
// https://thedaonft.eth.limo/

pragma solidity ^0.8.11;


/*
  ::::::::::: :::    ::: :::::::::: ::::    ::: :::::::::: :::::::::::
     :+:     :+:    :+: :+:        :+:+:   :+: :+:            :+:
    +:+     +:+    +:+ +:+        :+:+:+  +:+ +:+            +:+
   +#+     +#++:++#++ +#++:++#   +#+ +:+ +#+ :#::+::#       +#+
  +#+     +#+    +#+ +#+        +#+  +#+#+# +#+            +#+
 #+#     #+#    #+# #+#        #+#   #+#+# #+#            #+#
###     ###    ### ########## ###    #### ###            ###

Minter will mint out the remaining nfts
*/

//import "hardhat/console.sol";

contract Minter {

    IRedeemer private r = IRedeemer(0x01D7B7728E41564F63ef8989A1D827F5e4e6E56C);
    ITheNFT private nft = ITheNFT(0x79a7D3559D73EA032120A69E59223d4375DEb595);
    ITheNFT private v1 = ITheNFT(0x266830230bf10A58cA64B7347499FD361a011a02);
    IERC20 private theDao = IERC20(0xBB9bc244D798123fDe783fCc1C72d3Bb8C189413);
    address private deployer;
    uint256 private constant oneDao = 1e16;

    constructor() {
        nft.setApprovalForAll(address(r), true);       // approve redeemer to use our nfts
        theDao.approve(address(r), type(uint256).max); // approve redeemer to take our thedao tokens
        deployer = msg.sender;
    }

    function mintout(uint256 i) external {
        unchecked {
            theDao.transferFrom(msg.sender, address(this), i * oneDao);
            uint256 id = 1800 - v1.balanceOf(address(v1));
            r.mint(i, true);
            for (uint256 count = 0; count < i; count++) {
                r.burn(id + count);
            }
            theDao.transfer(msg.sender, i * oneDao);
        }
    }

    function sweep(address tok) external {
        IERC20(tok).transfer(deployer, theDao.balanceOf(address(this)));
    }

}

interface IRedeemer {
    function mint(uint256 _i, bool _sendCig) external;
    function burn(uint256 _id) external;
}

interface ITheNFT {
    function balanceOf(address) external view returns(uint256);
    function ownerOf(uint256) external view returns(address);
    function transferFrom(address,address,uint256) external;
    function mint(uint256 i) external;
    function approve(address to, uint256 tokenId) external;
    function burn(uint256 id) external;
    function restore(uint256 id) external;
    function isApprovedForAll(address _owner, address _operator) external view returns (bool);
    function upgrade(uint256[] calldata _ids) external;
    function setApprovalForAll(address _operator, bool _approved) external;
}

interface IERC20 {
    function totalSupply() external view returns (uint256);
    function balanceOf(address account) external view returns (uint256);
    function transfer(address recipient, uint256 amount) external returns (bool);
    function allowance(address owner, address spender) external view returns (uint256);
    function approve(address spender, uint256 amount) external returns (bool);
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
    event Transfer(address indexed from, address indexed to, uint256 value);
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"i","type":"uint256"}],"name":"mintout","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tok","type":"address"}],"name":"sweep","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040527301d7b7728e41564f63ef8989a1d827f5e4e6e56c5f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507379a7d3559d73ea032120a69e59223d4375deb59560015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073266830230bf10a58ca64b7347499fd361a011a0260025f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073bb9bc244d798123fde783fcc1c72d3bb8c18941360035f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555034801561015e575f80fd5b5060015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a22cb4655f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660016040518363ffffffff1660e01b81526004016101db929190610382565b5f604051808303815f87803b1580156101f2575f80fd5b505af1158015610204573d5f803e3d5ffd5b5050505060035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663095ea7b35f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6040518363ffffffff1660e01b81526004016102a39291906103c1565b6020604051808303815f875af11580156102bf573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102e39190610416565b503360045f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550610441565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61035282610329565b9050919050565b61036281610348565b82525050565b5f8115159050919050565b61037c81610368565b82525050565b5f6040820190506103955f830185610359565b6103a26020830184610373565b9392505050565b5f819050919050565b6103bb816103a9565b82525050565b5f6040820190506103d45f830185610359565b6103e160208301846103b2565b9392505050565b5f80fd5b6103f581610368565b81146103ff575f80fd5b50565b5f81519050610410816103ec565b92915050565b5f6020828403121561042b5761042a6103e8565b5b5f61043884828501610402565b91505092915050565b6107808061044e5f395ff3fe608060405234801561000f575f80fd5b5060043610610034575f3560e01c806301681a62146100385780634c195ae714610054575b5f80fd5b610052600480360381019061004d9190610540565b610070565b005b61006e6004803603810190610069919061059e565b6101a8565b005b8073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb60045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161010891906105d8565b602060405180830381865afa158015610123573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101479190610605565b6040518363ffffffff1660e01b815260040161016492919061063f565b6020604051808303815f875af1158015610180573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101a4919061069b565b5050565b60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330662386f26fc1000085026040518463ffffffff1660e01b815260040161020f939291906106c6565b6020604051808303815f875af115801561022b573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061024f919061069b565b505f60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a0823160025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518263ffffffff1660e01b81526004016102cc91906105d8565b602060405180830381865afa1580156102e7573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061030b9190610605565b6107080390505f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166367f68fac8360016040518363ffffffff1660e01b815260040161036c92919061070a565b5f604051808303815f87803b158015610383575f80fd5b505af1158015610395573d5f803e3d5ffd5b505050505f5b82811015610437575f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342966c688284016040518263ffffffff1660e01b81526004016103fd9190610731565b5f604051808303815f87803b158015610414575f80fd5b505af1158015610426573d5f803e3d5ffd5b50505050808060010191505061039b565b5060035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33662386f26fc1000085026040518363ffffffff1660e01b815260040161049d92919061063f565b6020604051808303815f875af11580156104b9573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104dd919061069b565b505050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61050f826104e6565b9050919050565b61051f81610505565b8114610529575f80fd5b50565b5f8135905061053a81610516565b92915050565b5f60208284031215610555576105546104e2565b5b5f6105628482850161052c565b91505092915050565b5f819050919050565b61057d8161056b565b8114610587575f80fd5b50565b5f8135905061059881610574565b92915050565b5f602082840312156105b3576105b26104e2565b5b5f6105c08482850161058a565b91505092915050565b6105d281610505565b82525050565b5f6020820190506105eb5f8301846105c9565b92915050565b5f815190506105ff81610574565b92915050565b5f6020828403121561061a576106196104e2565b5b5f610627848285016105f1565b91505092915050565b6106398161056b565b82525050565b5f6040820190506106525f8301856105c9565b61065f6020830184610630565b9392505050565b5f8115159050919050565b61067a81610666565b8114610684575f80fd5b50565b5f8151905061069581610671565b92915050565b5f602082840312156106b0576106af6104e2565b5b5f6106bd84828501610687565b91505092915050565b5f6060820190506106d95f8301866105c9565b6106e660208301856105c9565b6106f36040830184610630565b949350505050565b61070481610666565b82525050565b5f60408201905061071d5f830185610630565b61072a60208301846106fb565b9392505050565b5f6020820190506107445f830184610630565b9291505056fea264697066735822122058fc1e86b518069616c5fb4ebe7a4a8a8f80c1dff14ccb2be9e7963ec10b84b864736f6c634300081a0033

Deployed Bytecode

0x608060405234801561000f575f80fd5b5060043610610034575f3560e01c806301681a62146100385780634c195ae714610054575b5f80fd5b610052600480360381019061004d9190610540565b610070565b005b61006e6004803603810190610069919061059e565b6101a8565b005b8073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb60045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161010891906105d8565b602060405180830381865afa158015610123573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101479190610605565b6040518363ffffffff1660e01b815260040161016492919061063f565b6020604051808303815f875af1158015610180573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101a4919061069b565b5050565b60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330662386f26fc1000085026040518463ffffffff1660e01b815260040161020f939291906106c6565b6020604051808303815f875af115801561022b573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061024f919061069b565b505f60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a0823160025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518263ffffffff1660e01b81526004016102cc91906105d8565b602060405180830381865afa1580156102e7573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061030b9190610605565b6107080390505f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166367f68fac8360016040518363ffffffff1660e01b815260040161036c92919061070a565b5f604051808303815f87803b158015610383575f80fd5b505af1158015610395573d5f803e3d5ffd5b505050505f5b82811015610437575f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342966c688284016040518263ffffffff1660e01b81526004016103fd9190610731565b5f604051808303815f87803b158015610414575f80fd5b505af1158015610426573d5f803e3d5ffd5b50505050808060010191505061039b565b5060035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33662386f26fc1000085026040518363ffffffff1660e01b815260040161049d92919061063f565b6020604051808303815f875af11580156104b9573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104dd919061069b565b505050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61050f826104e6565b9050919050565b61051f81610505565b8114610529575f80fd5b50565b5f8135905061053a81610516565b92915050565b5f60208284031215610555576105546104e2565b5b5f6105628482850161052c565b91505092915050565b5f819050919050565b61057d8161056b565b8114610587575f80fd5b50565b5f8135905061059881610574565b92915050565b5f602082840312156105b3576105b26104e2565b5b5f6105c08482850161058a565b91505092915050565b6105d281610505565b82525050565b5f6020820190506105eb5f8301846105c9565b92915050565b5f815190506105ff81610574565b92915050565b5f6020828403121561061a576106196104e2565b5b5f610627848285016105f1565b91505092915050565b6106398161056b565b82525050565b5f6040820190506106525f8301856105c9565b61065f6020830184610630565b9392505050565b5f8115159050919050565b61067a81610666565b8114610684575f80fd5b50565b5f8151905061069581610671565b92915050565b5f602082840312156106b0576106af6104e2565b5b5f6106bd84828501610687565b91505092915050565b5f6060820190506106d95f8301866105c9565b6106e660208301856105c9565b6106f36040830184610630565b949350505050565b61070481610666565b82525050565b5f60408201905061071d5f830185610630565b61072a60208301846106fb565b9392505050565b5f6020820190506107445f830184610630565b9291505056fea264697066735822122058fc1e86b518069616c5fb4ebe7a4a8a8f80c1dff14ccb2be9e7963ec10b84b864736f6c634300081a0033

Deployed Bytecode Sourcemap

644:1218:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1738:119;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;1325:405;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;1738:119;1793:3;1786:20;;;1807:8;;;;;;;;;;;1817:6;;;;;;;;;;;:16;;;1842:4;1817:31;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1786:63;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;1738:119;:::o;1325:405::-;1398:6;;;;;;;;;;;:19;;;1418:10;1438:4;1056;1445:1;:10;1398:58;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;1471:10;1491:2;;;;;;;;;;;:12;;;1512:2;;;;;;;;;;;1491:25;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1484:4;:32;1471:45;;1531:1;;;;;;;;;;:6;;;1538:1;1541:4;1531:15;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1566:13;1561:97;1593:1;1585:5;:9;1561:97;;;1624:1;;;;;;;;;;:6;;;1636:5;1631:2;:10;1624:18;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1596:7;;;;;;;1561:97;;;;1672:6;;;;;;;;;;;:15;;;1688:10;1056:4;1700:1;:10;1672:39;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;1373:350;1325:405;:::o;88:117:1:-;197:1;194;187:12;334:126;371:7;411:42;404:5;400:54;389:65;;334:126;;;:::o;466:96::-;503:7;532:24;550:5;532:24;:::i;:::-;521:35;;466:96;;;:::o;568:122::-;641:24;659:5;641:24;:::i;:::-;634:5;631:35;621:63;;680:1;677;670:12;621:63;568:122;:::o;696:139::-;742:5;780:6;767:20;758:29;;796:33;823:5;796:33;:::i;:::-;696:139;;;;:::o;841:329::-;900:6;949:2;937:9;928:7;924:23;920:32;917:119;;;955:79;;:::i;:::-;917:119;1075:1;1100:53;1145:7;1136:6;1125:9;1121:22;1100:53;:::i;:::-;1090:63;;1046:117;841:329;;;;:::o;1176:77::-;1213:7;1242:5;1231:16;;1176:77;;;:::o;1259:122::-;1332:24;1350:5;1332:24;:::i;:::-;1325:5;1322:35;1312:63;;1371:1;1368;1361:12;1312:63;1259:122;:::o;1387:139::-;1433:5;1471:6;1458:20;1449:29;;1487:33;1514:5;1487:33;:::i;:::-;1387:139;;;;:::o;1532:329::-;1591:6;1640:2;1628:9;1619:7;1615:23;1611:32;1608:119;;;1646:79;;:::i;:::-;1608:119;1766:1;1791:53;1836:7;1827:6;1816:9;1812:22;1791:53;:::i;:::-;1781:63;;1737:117;1532:329;;;;:::o;1867:118::-;1954:24;1972:5;1954:24;:::i;:::-;1949:3;1942:37;1867:118;;:::o;1991:222::-;2084:4;2122:2;2111:9;2107:18;2099:26;;2135:71;2203:1;2192:9;2188:17;2179:6;2135:71;:::i;:::-;1991:222;;;;:::o;2219:143::-;2276:5;2307:6;2301:13;2292:22;;2323:33;2350:5;2323:33;:::i;:::-;2219:143;;;;:::o;2368:351::-;2438:6;2487:2;2475:9;2466:7;2462:23;2458:32;2455:119;;;2493:79;;:::i;:::-;2455:119;2613:1;2638:64;2694:7;2685:6;2674:9;2670:22;2638:64;:::i;:::-;2628:74;;2584:128;2368:351;;;;:::o;2725:118::-;2812:24;2830:5;2812:24;:::i;:::-;2807:3;2800:37;2725:118;;:::o;2849:332::-;2970:4;3008:2;2997:9;2993:18;2985:26;;3021:71;3089:1;3078:9;3074:17;3065:6;3021:71;:::i;:::-;3102:72;3170:2;3159:9;3155:18;3146:6;3102:72;:::i;:::-;2849:332;;;;;:::o;3187:90::-;3221:7;3264:5;3257:13;3250:21;3239:32;;3187:90;;;:::o;3283:116::-;3353:21;3368:5;3353:21;:::i;:::-;3346:5;3343:32;3333:60;;3389:1;3386;3379:12;3333:60;3283:116;:::o;3405:137::-;3459:5;3490:6;3484:13;3475:22;;3506:30;3530:5;3506:30;:::i;:::-;3405:137;;;;:::o;3548:345::-;3615:6;3664:2;3652:9;3643:7;3639:23;3635:32;3632:119;;;3670:79;;:::i;:::-;3632:119;3790:1;3815:61;3868:7;3859:6;3848:9;3844:22;3815:61;:::i;:::-;3805:71;;3761:125;3548:345;;;;:::o;3899:442::-;4048:4;4086:2;4075:9;4071:18;4063:26;;4099:71;4167:1;4156:9;4152:17;4143:6;4099:71;:::i;:::-;4180:72;4248:2;4237:9;4233:18;4224:6;4180:72;:::i;:::-;4262;4330:2;4319:9;4315:18;4306:6;4262:72;:::i;:::-;3899:442;;;;;;:::o;4347:109::-;4428:21;4443:5;4428:21;:::i;:::-;4423:3;4416:34;4347:109;;:::o;4462:320::-;4577:4;4615:2;4604:9;4600:18;4592:26;;4628:71;4696:1;4685:9;4681:17;4672:6;4628:71;:::i;:::-;4709:66;4771:2;4760:9;4756:18;4747:6;4709:66;:::i;:::-;4462:320;;;;;:::o;4788:222::-;4881:4;4919:2;4908:9;4904:18;4896:26;;4932:71;5000:1;4989:9;4985:17;4976:6;4932:71;:::i;:::-;4788:222;;;;:::o

Swarm Source

ipfs://58fc1e86b518069616c5fb4ebe7a4a8a8f80c1dff14ccb2be9e7963ec10b84b8

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  ]

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.