Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0x05c8a404D7c8975C09c25308e10e3Cb1f2D050f5
Balance 0 ETH
Nonce 1
Code Size 2854 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

2854 bytes
0x608060405234801561000f575f80fd5b50600436106100f0575f3560e01c806370a0823111610093578063a9059cbb11610063578063a9059cbb146101ff578063dd62ed3e14610212578063ef20accb1461024a578063f851a44014610252575f80fd5b806370a08231146101a95780637dfcbe34146101d15780638f283970146101e457806395d89b41146101f7575f80fd5b806323b872dd116100ce57806323b872dd146101475780632d1343f31461015a578063313ce5671461016f5780633accfa6c1461017e575f80fd5b806306fdde03146100f4578063095ea7b31461011257806318160ddd14610135575b5f80fd5b6100fc610265565b6040516101099190610962565b60405180910390f35b6101256101203660046109c9565b6102f5565b6040519015158152602001610109565b6002545b604051908152602001610109565b6101256101553660046109f1565b61030e565b61016d610168366004610a2a565b61032d565b005b60405160128152602001610109565b600654610191906001600160a01b031681565b6040516001600160a01b039091168152602001610109565b6101396101b7366004610a2a565b6001600160a01b03165f9081526020819052604090205490565b600754610191906001600160a01b031681565b61016d6101f2366004610a2a565b6103a9565b6100fc610424565b61012561020d3660046109c9565b610433565b610139610220366004610a43565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b61016d610450565b600554610191906001600160a01b031681565b60606003805461027490610a74565b80601f01602080910402602001604051908101604052809291908181526020018280546102a090610a74565b80156102eb5780601f106102c2576101008083540402835291602001916102eb565b820191905f5260205f20905b8154815290600101906020018083116102ce57829003601f168201915b5050505050905090565b5f336103028185856104df565b60019150505b92915050565b5f61031a8484846104f1565b6103258484846105dd565b949350505050565b6005546001600160a01b031633146103605760405162461bcd60e51b815260040161035790610aac565b60405180910390fd5b600780546001600160a01b0319166001600160a01b0383169081179091556040517fa1b693564ab9440dac4c5cc06a7458ad44ee509fc8cb25d35df65eea3abf2281905f90a250565b6005546001600160a01b031633146103d35760405162461bcd60e51b815260040161035790610aac565b600680546001600160a01b0319166001600160a01b03838116918217909255600554604051919216907fabadef65e57dcbc94a1edc7f70476a3abca7121015c7358dd71b9ad8e434895f905f90a350565b60606004805461027490610a74565b5f61043f3384846104f1565b6104498383610600565b9392505050565b6006546001600160a01b0316331461047a5760405162461bcd60e51b815260040161035790610aac565b6006546005546040516001600160a01b0392831692909116907f7cb6040a31264d0f3fa4024e96aa137a3c4afbd8bb1162e1046ee09c5d7e162a905f90a360068054600580546001600160a01b03199081166001600160a01b03841617909155169055565b6104ec838383600161060d565b505050565b306001600160a01b038316036105495760405162461bcd60e51b815260206004820181905260248201527f53656e64696e6720746f6b656e20746f20697473206f776e20616464726573736044820152606401610357565b6007546001600160a01b031680156105d7576001600160a01b03811663d7ccbd83336040516001600160e01b031960e084901b1681526001600160a01b03918216600482015281881660248201529086166044820152606481018590526084015f604051808303815f87803b1580156105c0575f80fd5b505af11580156105d2573d5f803e3d5ffd5b505050505b50505050565b5f336105ea858285610698565b6105f585858561070d565b506001949350505050565b5f3361030281858561070d565b6007546001600160a01b0316801561068557604051639d300b0b60e01b81526001600160a01b038681166004830152858116602483015260448201859052821690639d300b0b906064015f604051808303815f87803b15801561066e575f80fd5b505af1158015610680573d5f803e3d5ffd5b505050505b6106918585858561076a565b5050505050565b6001600160a01b038381165f908152600160209081526040808320938616835292905220545f1981146105d757818110156106ff57604051637dc7a0d960e11b81526001600160a01b03841660048201526024810182905260448101839052606401610357565b6105d784848484035f61060d565b6001600160a01b03831661073657604051634b637e8f60e11b81525f6004820152602401610357565b6001600160a01b03821661075f5760405163ec442f0560e01b81525f6004820152602401610357565b6104ec83838361083c565b6001600160a01b0384166107935760405163e602df0560e01b81525f6004820152602401610357565b6001600160a01b0383166107bc57604051634a1406b160e11b81525f6004820152602401610357565b6001600160a01b038085165f90815260016020908152604080832093871683529290522082905580156105d757826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161082e91815260200190565b60405180910390a350505050565b6001600160a01b038316610866578060025f82825461085b9190610ad1565b909155506108d69050565b6001600160a01b0383165f90815260208190526040902054818110156108b85760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401610357565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b0382166108f257600280548290039055610910565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161095591815260200190565b60405180910390a3505050565b5f602080835283518060208501525f5b8181101561098e57858101830151858201604001528201610972565b505f604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b03811681146109c4575f80fd5b919050565b5f80604083850312156109da575f80fd5b6109e3836109ae565b946020939093013593505050565b5f805f60608486031215610a03575f80fd5b610a0c846109ae565b9250610a1a602085016109ae565b9150604084013590509250925092565b5f60208284031215610a3a575f80fd5b610449826109ae565b5f8060408385031215610a54575f80fd5b610a5d836109ae565b9150610a6b602084016109ae565b90509250929050565b600181811c90821680610a8857607f821691505b602082108103610aa657634e487b7160e01b5f52602260045260245ffd5b50919050565b6020808252600b908201526a105d5d1a0819985a5b195960aa1b604082015260600190565b8082018082111561030857634e487b7160e01b5f52601160045260245ffdfea2646970667358221220c2bc8b7bf1ea3805c1fff26e8a3ec6bd04570ed1f14ff7c92bca517fe60f2d7f64736f6c63430008180033

Verified Source Code Partial Match

Compiler: v0.8.24+commit.e11b9ed9 EVM: shanghai Optimization: Yes (200 runs)
Erc20TokenFixedSupplyProtected.sol 601 lines
// SPDX-License-Identifier: MIT

pragma solidity =0.8.24;

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol)

/**
 * @dev Standard ERC20 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 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);
}

// File @openzeppelin/contracts/token/ERC20/[email protected]

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
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);
}

// File @openzeppelin/contracts/token/ERC20/extensions/[email protected]

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol)

/**
 * @dev Interface for the optional metadata functions from the ERC20 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);
}

// File @openzeppelin/contracts/utils/[email protected]

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

/**
 * @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;
    }
}

// File @openzeppelin/contracts/token/ERC20/[email protected]

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/ERC20.sol)

/**
 * @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 ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 */
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}.
     *
     * All two of these 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 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    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;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    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}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * 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 from, address to, uint256 value) internal {
        if (from == address(0)) {
            revert ERC20InvalidSender(address(0));
        }
        if (to == address(0)) {
            revert ERC20InvalidReceiver(address(0));
        }
        _update(from, 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:
     * ```
     * 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, currentAllowance - value, false);
            }
        }
    }
}

// File contracts/interfaces/IAntiBot.sol

// Original license: SPDX_License_Identifier: MIT

interface IAntiBot {
    function onPreApproveCheck(address owner, address spender, uint256 amount) external;
    function onPreTransferCheck(address operator, address from, address to, uint256 amount) external;
}

// File contracts/library/Adminable.sol

// Original license: SPDX_License_Identifier: MIT

abstract contract Adminable {
    address public admin;
    address public adminCandidate;

    event AdminChangeRequested(address indexed oldAdmin, address indexed newAdmin);
    event AdminChangeConfirmed(address indexed oldAdmin, address indexed newAdmin);

    constructor(address _admin) {
        require(_admin != address(0), "Zero admin address");
        admin = _admin;
        emit AdminChangeConfirmed(address(0), _admin);
    }

    modifier onlyAdmin() {
        require(admin == msg.sender, "Auth failed");
        _;
    }

    modifier onlyAdminCandidate {
        require(adminCandidate == msg.sender, "Auth failed");
        _;
    }

    function changeAdmin(address _adminCandidate) external onlyAdmin {
        adminCandidate = _adminCandidate;
        emit AdminChangeRequested(admin, _adminCandidate);
    }

    function confirmNewAdmin() external onlyAdminCandidate {
        emit AdminChangeConfirmed(admin, adminCandidate);
        admin = adminCandidate;
        adminCandidate = address(0);
    }
}

// File contracts/Erc20TokenFixedSupplyProtected.sol

// Original license: SPDX_License_Identifier: MIT

contract Erc20TokenFixedSupplyProtected is ERC20, Adminable {
    address public antiBot;

    event SetAntiBot(address indexed antiBot);

    constructor(
        string memory _name,
        string memory _symbol,
        address _admin,
        address _antiBot,
        uint256 _totalSupply
    ) ERC20(_name, _symbol) Adminable(_admin) {
        antiBot = _antiBot;
        emit SetAntiBot(_antiBot);

        _mint(_admin, _totalSupply);
    }

    function setAntiBot(address _antiBot) external onlyAdmin {
        antiBot = _antiBot;
        emit SetAntiBot(_antiBot);
    }

    function _approve(address _owner, address _spender, uint256 _value, bool _emitEvent) internal virtual override {
        address protector = antiBot;
        if (protector != address(0)) {
            IAntiBot(protector).onPreApproveCheck(_owner, _spender, _value);
        }
        super._approve(_owner, _spender, _value, _emitEvent);
    }

    function transfer(address _to, uint256 _value) public override returns (bool) {
        _beforeTokenTransfer(_msgSender(), _to, _value);
        return super.transfer(_to, _value);
    }

    function transferFrom(address _from, address _to, uint256 _value) public override returns (bool) {
        _beforeTokenTransfer(_from, _to, _value);
        return super.transferFrom(_from, _to, _value);
    }

    function _beforeTokenTransfer(address _from, address _to, uint256 _value) private {
        require(_to != address(this), "Sending token to its own address");

        address protector = antiBot;
        if (protector != address(0)) {
            IAntiBot(protector).onPreTransferCheck(_msgSender(), _from, _to, _value);
        }
    }
}

Read Contract

admin 0xf851a440 → address
adminCandidate 0x3accfa6c → address
allowance 0xdd62ed3e → uint256
antiBot 0x7dfcbe34 → address
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
name 0x06fdde03 → string
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256

Write Contract 6 functions

These functions modify contract state and require a wallet transaction to execute.

approve 0x095ea7b3
address spender
uint256 value
returns: bool
changeAdmin 0x8f283970
address _adminCandidate
confirmNewAdmin 0xef20accb
No parameters
setAntiBot 0x2d1343f3
address _antiBot
transfer 0xa9059cbb
address _to
uint256 _value
returns: bool
transferFrom 0x23b872dd
address _from
address _to
uint256 _value
returns: bool

Recent Transactions

No transactions found for this address