6.1 SMART CONTRACTS

Below are the main contracts for the game, besides these, there's also a Smart Contract for the Blindbox System, NFTs, Airdrop and Market Place.

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

import "@openzeppelin/[email protected]/token/ERC20/ERC20.sol";
import "@openzeppelin/[email protected]/access/Ownable.sol";

/// @title Cryptofoot98 Token (CFOOT) by e.t.
contract Cryptofoot98 is ERC20, Ownable {
    uint256 public constant MAX_SUPPLY = 100_000_000 * 10 ** 18;
    bytes3 public constant FOOTPRINT = "e.t"; // Fixed to bytes3

    constructor() ERC20("Cryptofoot98", "CFOOT") { 
        _mint(msg.sender, MAX_SUPPLY); 
    }

    function burn(uint256 amount) public { 
        _burn(msg.sender, amount); 
    }

    function decimals() public pure override returns (uint8) { 
        return 18; 
    }

    // Restore renounceOwnership for decentralization
    function renounceOwnership() public override onlyOwner {
        super.renounceOwnership();
    }
}

Last updated