APE Price: $0.48 (+1.43%)

Contract Diff Checker

Contract Name:
TRUMAPE

Contract Source Code:

File 1 of 1 : TRUMAPE

// SPDX-License-Identifier: MIT

//                                #%%####***+++++++++++++*****###%%%%#                 ###   
//                          ####**++===============================++**####%        @%#=+#   
//                       ###*+==========-============================+++**#%%######++===+%   
//                    ##*+==============================================================+%@@ 
//                  ##*=================================================================%%+% 
//                ##*===============================-=================================*#+==* 
//               ##+=================================+=============================++======#%
//              %%#+=====================================+++===============================*#
//            %#*===========================================+++++=========================*+#
//           ##+===+++============================================++++++++++++===========*#=#
//          ##+=+++====================================================================+#+==#
//         ##+=++===============================================++++++==========+++++*+====##
//         ##+#+==++=================================================-====================## 
//        %###+=++======================================================================+#   
//        %%##========+#%#*+++*#%#*+==================================================*##    
//         ##+=====++=================+*###+====++=================================*###      
//         %#====+=======++**++=========+*+++#%##*+===+*#*+++=======+++*+=====+###%          
//       #%%%###+===+++++===+++*#*+==+++=+++==---==+++++***++++++++++++**+++*#*###%%##       
//     %##*++++++*#*+==++++++**#####*==++=-------------========+*+========--+#*##**++###     
//   #%#++**####*****+==++****++*##=--==---------=+++==--------===-----==---+#########+##    
//  #%*++###*+++####**#*+++++++*##=--==-------=*#####*=--------===-=+###**=-*###+===+##*##   
//  %*+*##==----===*####+++++++*#+=----------*#--=-:.:##-------=+=++--::-*+=###+----=*#*%#   
// ##++##=----======+####+++++*##+----------#==@@@@@=.:=#------=*=+*@@@+::+####%#=---+#*%%   
// @*+*%=--=*+----=#*+*%%*++++*##+=--------+#+@@@@@+...:*+-----=*#%@@@%=..-###+==+=--*###%   
// %++##--=+--------=+*#%#*+++*##+=--------#+@@@@@@#-=..=#----=++#@@@@%=-::+##+-=+=-=#*##    
// %++##--=-------=**=+#%%*++++*##+=-------#+@@@@@@=@%:.=#---=+#+#%@@@###--*#*=-++-=#*###    
// %++##---------=*=---=#%#*+++**#*+=------=%#@@@@@@@#.:=*--=++++*#%@@@@+:=#%+-=+==#*###     
// %*+*#=-------=+=-----+##*++++**##+=------+%*@@@@@*--+%#+++++++++++*#%#+###+=+=+#*###      
// %%++##-------=+=-----=*#*++++++*##*==----=+###%###*+=----------===++=++###+=+#####        
//  %#++##-------++------+#*+++++++**##*==-----=+**@--=#%%#+=----==+%@@#++*##*+###%%         
//   %#++##=-----===-----+#*+++++++++**###*++*##=--*#==*#####+=--=*###+++=+###%#%%           
//    %#*+*#+=----------+#*++++++++++++++*###=-------=**+==------=+------=+#%##%             
//     #%#++*##+=======#%#+++++++++++++*#%+----------------------=+=--------=###%%           
//       %%#*+++*******#*+**+++++++++*%*=-------------------------=+=---------=###%          
//         %%%%####%%%#****+++++++++#+-=+%%#=----------------------=+-----------###%         
//               %# ###*#*++++++++*#+--==#%#=----------------------===----------#####        
//                 %####***+++++++#+-----=%##%*==-------------------=+-------=+#*##%@        
//                 %##%****++++++#*=------*##==++##*+===------------=====+**+=--++%%%        
//                %%###****++++++#+--------%=--:..:--=+++++*******+++++==-:...:++=%%         
//                 ###*******++++#+--------=#---.............................:-#+=#%         
//                  %###******+++#+---------+%+++--:::..................:::-===*=+#%         
//                  %%%##******++**=---------=#=-::--==-----::::::------::..:=*==*#          
//                  ##%%###*******#+=----------**-......................::=**===*%           
//                     #%%%#*+*****#+=-----------+%*-...............:=+##+====#%%            
//                      #%%#%#++*+**#*===------------=++*########++==---==*%%#               
//                        %%%#####****#*===-----------------------=++***++###                
//                         %%%###%@%%#**#%#+===---------------======--==*#%                  
//                                %%  %%##%%%%##++====------------==+*#%%                    
//                                         @    @@@%###***++++***##%%%                       

// Website:  https://trumape.com/
// Twitter:  https://x.com/TrumApe
// Tegegram: https://t.me/trumape

// TRUMAPE, the 47th president of the United States of BANANA,

pragma solidity ^0.8.28;

contract Ownable {
    address public owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    constructor() {
        owner = msg.sender;
    }

    modifier onlyOwner() {
        require(msg.sender == owner, "Only the owner can call this function");
        _;
    }

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

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 transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
    function approve(address spender, uint256 amount) external returns (bool);
    function allowance(address owner, address spender) external view returns (uint256);
    event Transfer(address indexed from, address indexed to, uint256 value);
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

contract TRUMAPE is Ownable, IERC20 {
    string public name = "Trumape";
    string public symbol = "TRUMAPE";
    uint8 public decimals = 18;
    uint256 private _totalSupply;
    bool tradingOpen = true;
    mapping(address => uint256) private _balances;
    mapping(address => mapping(address => uint256)) private _allowances;

    constructor() {
        _totalSupply = 1_000_000_000 * 10**uint256(decimals);
        _balances[msg.sender] = _totalSupply;
        emit Transfer(address(0), msg.sender, _totalSupply);
    }

    function totalSupply() public view override returns (uint256) {
        return _totalSupply;
    }

    function balanceOf(address account) public view override returns (uint256) {
        return _balances[account];
    }

    function transfer(address recipient, uint256 amount) public override returns (bool) {
        address sender = msg.sender;
        require(sender != address(0), "Transfer from the zero address");
        require(recipient != address(0), "Transfer to the zero address");
        require(_balances[sender] >= amount, "Insufficient balance");

        _balances[sender] -= amount;
        _balances[recipient] += amount;
        emit Transfer(sender, recipient, amount);
        return true;
    }

    function transferFrom(address sender, address recipient, uint256 amount) public override returns (bool) {
        address spender = msg.sender;
        require(sender != address(0), "Transfer from the zero address");
        require(recipient != address(0), "Transfer to the zero address");
        require(_balances[sender] >= amount, "Insufficient balance");
        require(_allowances[sender][spender] >= amount, "Allowance exceeded");

        _balances[sender] -= amount;
        _balances[recipient] += amount;
        _allowances[sender][spender] -= amount;
        emit Transfer(sender, recipient, amount);
        return true;
    }

    function approve(address spender, uint256 amount) public override returns (bool) {
        address sender = msg.sender;
        require(sender != address(0), "Approve from the zero address");
        require(spender != address(0), "Approve to the zero address");

        _allowances[sender][spender] = amount;
        emit Approval(sender, spender, amount);
        return true;
    }

    function allowance(address owner, address spender) public view override returns (uint256) {
        return _allowances[owner][spender];
    }
}

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

Context size (optional):