APE Price: $1.25 (+6.98%)

Contract Diff Checker

Contract Name:
MACACO

Contract Source Code:

File 1 of 1 : MACACO

// República dos Macacos - A Primeira Criptomoeda Oficial do Brasil na Apechain

// Um projeto 100% BR que traz aquela zoeira raiz pro mundo cripto! 🐒 💸
// É meme coin, é comunidade, é selva! é Brasil!

// Aqui, o espírito é de macaco pra macaco, com muita parceria e humor no sangue. 
// Se você curte zoeira com um toque de brasilidade e uma pitada de caos, é só chegar. 
// MACACO VÊ MACACO FAZ - HUEHUEHUE BRRRRRR BRR BRR #BrazilianCore 🐵 🇧🇷

// SPDX-License-Identifier: MIT

pragma solidity 0.8.18;

contract MACACO {
    string public name = "MACACO";
    string public symbol = "MACACO";
    uint256 public totalSupply = 100000000000000000000000000;
    uint8 public decimals = 18;
    
    address public owner;
    address public constant teamWallet = 0x38960Dd14D797e010B3038Ad18EBa4c6811455fc;

    event Transfer(address indexed _from, address indexed _to, uint256 _value);
    event Approval(address indexed _owner, address indexed _spender, uint256 _value);
    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    mapping(address => uint256) public balanceOf;
    mapping(address => mapping(address => uint256)) public allowance;

    constructor() {
        owner = msg.sender;
        balanceOf[msg.sender] = totalSupply;
    }

    modifier onlyOwner() {
        require(msg.sender == owner, "Caller is not the owner");
        _;
    }

    function transfer(address _to, uint256 _value) public returns (bool success) {
        require(balanceOf[msg.sender] >= _value, "Insufficient balance");

        uint256 burnAmount = _value / 100; // 1% burn
        uint256 transferAmount = _value - burnAmount;

        balanceOf[msg.sender] -= _value;
        balanceOf[_to] += transferAmount;
        balanceOf[address(0x000000000000000000000000000000000000dEaD)] += burnAmount;
        
        emit Transfer(msg.sender, _to, transferAmount);
        emit Transfer(msg.sender, address(0x000000000000000000000000000000000000dEaD), burnAmount);

        uint256 bnbToTeam = (7 * address(this).balance) / 100;
        payable(teamWallet).transfer(bnbToTeam);

        return true;
    }
    
    function approve(address _spender, uint256 _value) public returns (bool success) {
        allowance[msg.sender][_spender] = _value;
        emit Approval(msg.sender, _spender, _value);
        return true;
    }

    function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) {
        require(_value <= balanceOf[_from], "Insufficient balance");
        require(_value <= allowance[_from][msg.sender], "Allowance exceeded");

        uint256 burnAmount = _value / 100; // 1% burn
        uint256 transferAmount = _value - burnAmount;

        balanceOf[_from] -= _value;
        balanceOf[_to] += transferAmount;
        balanceOf[address(0x000000000000000000000000000000000000dEaD)] += burnAmount;
        allowance[_from][msg.sender] -= _value;

        emit Transfer(_from, _to, transferAmount);
        emit Transfer(_from, address(0x000000000000000000000000000000000000dEaD), burnAmount);

        uint256 bnbToTeam = (7 * address(this).balance) / 100;
        payable(teamWallet).transfer(bnbToTeam);

        return true;
    }

    function renounceOwnership() public onlyOwner {
        emit OwnershipTransferred(owner, address(0x000000000000000000000000000000000000dEaD));
        owner = address(0x000000000000000000000000000000000000dEaD);
    }
    
    receive() external payable {}
}

Please enter a contract address above to load the contract details and source code.

Context size (optional):