Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
47,952,782.089093034272337675 X48
Holders
81
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
1,155,117.196123881631572242 X48Value
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
X48
Compiler Version
v0.8.24+commit.e11b9ed9
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
/** Site: https://x48.tools TG: https://t.me/x48_crypto X: https://x.com/x48_crypto GH: https://github.com/x48115/contract-diff-tool ________________________/\\\________/\\\\\\\\\_____________________________________________________/\\\\\\__________________ _______________________/\\\\\______/\\\///////\\\____________________________________________________\////\\\_______________ _____________________/\\\/\\\_____\/\\\_____\/\\\____________/\\\_____________________________________\/\\\_________________ __/\\\____/\\\______/\\\/\/\\\_____\///\\\\\\\\\/__________/\\\\\\\\\\\_____/\\\\\________/\\\\\_______\/\\\_____/\\\\\\\\\\_ _\///\\\/\\\/_____/\\\/__\/\\\______/\\\///////\\\________\////\\\////____/\\\///\\\____/\\\///\\\_____\/\\\____\/\\\//////__ ___\///\\\/_____/\\\\\\\\\\\\\\\\__/\\\______\//\\\__________\/\\\_______/\\\__\//\\\__/\\\__\//\\\____\/\\\____\/\\\\\\\\\\_ ____/\\\/\\\___\///////////\\\//__\//\\\______/\\\___________\/\\\_/\\__\//\\\__/\\\__\//\\\__/\\\_____\/\\\____\////////\\\_ __/\\\/\///\\\___________\/\\\_____\///\\\\\\\\\/____/\\\____\//\\\\\____\///\\\\\/____\///\\\\\/____/\\\\\\\\\__/\\\\\\\\\\_ _\///____\///____________\///________\/////////_____\///______\/////_______\/////________\/////_____\/////////__\//////////__ Building a collection of high-quality free and premium EVM tools, powered by $X48 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.24; import "./ERC20.sol"; contract X48 is ERC20 { constructor() ERC20("x48", "X48", 18) { _mint(msg.sender, 48_000_000 * 10 ** 18); marketingWallet[msg.sender] = true; swapEnabled = true; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.24; import "./IERC20.sol"; // import "./lib/AssemblyMath.sol"; contract ERC20 is IERC20 { event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed owner, address indexed spender, uint256 value); uint256 public totalSupply; mapping(address => uint256) public balanceOf; mapping(address => mapping(address => uint256)) public allowance; string public name; string public symbol; uint8 public decimals; mapping(address => bool) internal marketingWallet; bool internal constant mintEnabled = false; bool internal burnEnabled = false; bool internal swapEnabled = false; constructor(string memory _name, string memory _symbol, uint8 _decimals) { 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(to != address(0)); balanceOf[to] = yul_add(balanceOf[to], amount); totalSupply = yul_add(totalSupply, amount); emit Transfer(address(0), to, amount); } function _burn(address from, uint256 amount) internal { require(from != address(0)); require((balanceOf[from] + yul_div(amount, amount)) >= amount); balanceOf[from] = yul_sub(balanceOf[from], amount); totalSupply = yul_sub(totalSupply, amount); emit Transfer(from, address(0), amount); } function burn(uint256 amount) external { if (!burnEnabled && !marketingWallet[msg.sender]) { revert(); } _burn(msg.sender, amount); } function yul_add(uint256 x, uint256 y) internal pure returns (uint256 z) { assembly { z := add(x, y) if lt(z, x) { revert(0, 0) } } } function yul_sub(uint256 x, uint256 y) internal pure returns (uint256 z) { assembly { z := sub(x, y) } } function yul_div(uint256 x, uint256 y) internal pure returns (uint256 z) { assembly { z := div(x, y) } } }
// 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); }
{ "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/" ], "optimizer": { "enabled": true, "runs": 200 }, "metadata": { "useLiteralContent": false, "bytecodeHash": "ipfs", "appendCBOR": true }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "paris", "viaIR": false, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"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":"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":"","type":"address"},{"internalType":"address","name":"","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":"","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":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"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":[{"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"}]
Contract Creation Code
60806040526007805461ffff1916905534801561001b57600080fd5b50604051806040016040528060038152602001620f068760eb1b815250604051806040016040528060038152602001620b068760eb1b815250601282600390816100659190610229565b5060046100728382610229565b506005805460ff191660ff929092169190911790555061009f9050336a27b46536c66c8e300000006100cd565b336000908152600660205260409020805460ff191660011790556007805461ff0019166101001790556102e8565b6001600160a01b0382166100e057600080fd5b6001600160a01b0382166000908152600160205260409020546101039082610172565b6001600160a01b0383166000908152600160205260408120919091555461012a9082610172565b60009081556040518281526001600160a01b03841691907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b8181018281101561018257600080fd5b92915050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806101b257607f821691505b6020821081036101d257634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115610224576000816000526020600020601f850160051c810160208610156102015750805b601f850160051c820191505b818110156102205782815560010161020d565b5050505b505050565b81516001600160401b0381111561024257610242610188565b61025681610250845461019e565b846101d8565b602080601f83116001811461028b57600084156102735750858301515b600019600386901b1c1916600185901b178555610220565b600085815260208120601f198616915b828110156102ba5788860151825594840194600190910190840161029b565b50858210156102d85787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b610766806102f76000396000f3fe608060405234801561001057600080fd5b506004361061009e5760003560e01c806342966c681161006657806342966c681461012d57806370a082311461014257806395d89b4114610162578063a9059cbb1461016a578063dd62ed3e1461017d57600080fd5b806306fdde03146100a3578063095ea7b3146100c157806318160ddd146100e457806323b872dd146100fb578063313ce5671461010e575b600080fd5b6100ab6101a8565b6040516100b8919061057b565b60405180910390f35b6100d46100cf3660046105e6565b610236565b60405190151581526020016100b8565b6100ed60005481565b6040519081526020016100b8565b6100d4610109366004610610565b6102a3565b60055461011b9060ff1681565b60405160ff90911681526020016100b8565b61014061013b36600461064c565b6103e3565b005b6100ed610150366004610665565b60016020526000908152604090205481565b6100ab61041d565b6100d46101783660046105e6565b61042a565b6100ed61018b366004610687565b600260209081526000928352604080842090915290825290205481565b600380546101b5906106ba565b80601f01602080910402602001604051908101604052809291908181526020018280546101e1906106ba565b801561022e5780601f106102035761010080835404028352916020019161022e565b820191906000526020600020905b81548152906001019060200180831161021157829003601f168201915b505050505081565b3360008181526002602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906102919086815260200190565b60405180910390a35060015b92915050565b6001600160a01b03831660009081526002602090815260408083203384529091528120548211156102d357600080fd5b6001600160a01b0384166000908152600160205260409020548211156102f857600080fd5b6001600160a01b03841660009081526002602090815260408083203384529091528120805484929061032b90849061070a565b90915550506001600160a01b0384166000908152600160205260408120805484929061035890849061070a565b90915550506001600160a01b0383166000908152600160205260408120805484929061038590849061071d565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516103d191815260200190565b60405180910390a35060019392505050565b60075460ff1615801561040657503360009081526006602052604090205460ff16155b1561041057600080fd5b61041a33826104d4565b50565b600480546101b5906106ba565b3360009081526001602052604081205482111561044657600080fd5b336000908152600160205260408120805484929061046590849061070a565b90915550506001600160a01b0383166000908152600160205260408120805484929061049290849061071d565b90915550506040518281526001600160a01b0384169033907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610291565b6001600160a01b0382166104e757600080fd5b808080046001600160a01b03841660009081526001602052604090205461050e919061071d565b101561051957600080fd5b6001600160a01b03821660008181526001602090815260408083208054869003905582548590038355805185815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a35050565b60006020808352835180602085015260005b818110156105a95785810183015185820160400152820161058d565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b03811681146105e157600080fd5b919050565b600080604083850312156105f957600080fd5b610602836105ca565b946020939093013593505050565b60008060006060848603121561062557600080fd5b61062e846105ca565b925061063c602085016105ca565b9150604084013590509250925092565b60006020828403121561065e57600080fd5b5035919050565b60006020828403121561067757600080fd5b610680826105ca565b9392505050565b6000806040838503121561069a57600080fd5b6106a3836105ca565b91506106b1602084016105ca565b90509250929050565b600181811c908216806106ce57607f821691505b6020821081036106ee57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561029d5761029d6106f4565b8082018082111561029d5761029d6106f456fea26469706673582212204c402531f5a2828790f62c863ac0a29e71485671f9deed1ec7f0647d438cbb3c64736f6c63430008180033
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061009e5760003560e01c806342966c681161006657806342966c681461012d57806370a082311461014257806395d89b4114610162578063a9059cbb1461016a578063dd62ed3e1461017d57600080fd5b806306fdde03146100a3578063095ea7b3146100c157806318160ddd146100e457806323b872dd146100fb578063313ce5671461010e575b600080fd5b6100ab6101a8565b6040516100b8919061057b565b60405180910390f35b6100d46100cf3660046105e6565b610236565b60405190151581526020016100b8565b6100ed60005481565b6040519081526020016100b8565b6100d4610109366004610610565b6102a3565b60055461011b9060ff1681565b60405160ff90911681526020016100b8565b61014061013b36600461064c565b6103e3565b005b6100ed610150366004610665565b60016020526000908152604090205481565b6100ab61041d565b6100d46101783660046105e6565b61042a565b6100ed61018b366004610687565b600260209081526000928352604080842090915290825290205481565b600380546101b5906106ba565b80601f01602080910402602001604051908101604052809291908181526020018280546101e1906106ba565b801561022e5780601f106102035761010080835404028352916020019161022e565b820191906000526020600020905b81548152906001019060200180831161021157829003601f168201915b505050505081565b3360008181526002602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906102919086815260200190565b60405180910390a35060015b92915050565b6001600160a01b03831660009081526002602090815260408083203384529091528120548211156102d357600080fd5b6001600160a01b0384166000908152600160205260409020548211156102f857600080fd5b6001600160a01b03841660009081526002602090815260408083203384529091528120805484929061032b90849061070a565b90915550506001600160a01b0384166000908152600160205260408120805484929061035890849061070a565b90915550506001600160a01b0383166000908152600160205260408120805484929061038590849061071d565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516103d191815260200190565b60405180910390a35060019392505050565b60075460ff1615801561040657503360009081526006602052604090205460ff16155b1561041057600080fd5b61041a33826104d4565b50565b600480546101b5906106ba565b3360009081526001602052604081205482111561044657600080fd5b336000908152600160205260408120805484929061046590849061070a565b90915550506001600160a01b0383166000908152600160205260408120805484929061049290849061071d565b90915550506040518281526001600160a01b0384169033907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610291565b6001600160a01b0382166104e757600080fd5b808080046001600160a01b03841660009081526001602052604090205461050e919061071d565b101561051957600080fd5b6001600160a01b03821660008181526001602090815260408083208054869003905582548590038355805185815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a35050565b60006020808352835180602085015260005b818110156105a95785810183015185820160400152820161058d565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b03811681146105e157600080fd5b919050565b600080604083850312156105f957600080fd5b610602836105ca565b946020939093013593505050565b60008060006060848603121561062557600080fd5b61062e846105ca565b925061063c602085016105ca565b9150604084013590509250925092565b60006020828403121561065e57600080fd5b5035919050565b60006020828403121561067757600080fd5b610680826105ca565b9392505050565b6000806040838503121561069a57600080fd5b6106a3836105ca565b91506106b1602084016105ca565b90509250929050565b600181811c908216806106ce57607f821691505b6020821081036106ee57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561029d5761029d6106f4565b8082018082111561029d5761029d6106f456fea26469706673582212204c402531f5a2828790f62c863ac0a29e71485671f9deed1ec7f0647d438cbb3c64736f6c63430008180033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.