Skip to main content
PulseScanner.io

Address

0x66e2eabcf201ebaeafef27bd7fe3e62e9aacd363
Current Holdings
$0.00
TXs sent
not counted
First Active
2024-12-17
block 22,211,835
Last Active
640 days ago
block 22,211,835
Funded By
not identified

Net worth historyi

No net-worth snapshots recorded yet
exact matchTubaDAOsolc 0.8.4+commit.c7e474f2runtime exact · creation exact
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

contract TubaDAO is ERC721Enumerable, ReentrancyGuard, Ownable {
    string private baseURI;

    constructor(string memory initBaseURI) ERC721("TubaDAO", "TUBADAO") Ownable() {
        baseURI = initBaseURI;
    }

    function random(string memory input) internal pure returns (uint256) {
        return uint256(keccak256(abi.encodePacked(input)));
    }

    function mint() public payable nonReentrant {
        uint256 latestId = totalSupply();
        _safeMint(_msgSender(), latestId);

        require(totalSupply() <= 1069, "Max mint amount");
    }

    function _baseURI() override internal view returns (string memory) {
        return baseURI;
    }

    function setBaseURI(string memory newBaseURI) external onlyOwner {
        baseURI = newBaseURI;
    }
}