Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0xBf40440703A3F7092b2e73c2F7868727275DBbda
Balance 0 ETH
Nonce 1
Code Size 5534 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

5534 bytes
0x608060405234801561001057600080fd5b506004361061014d5760003560e01c8063715018a6116100c3578063a457c2d71161007c578063a457c2d714610273578063a9059cbb14610286578063b29a814014610299578063c558ae6b146102ac578063dd62ed3e146102bf578063f2fde38b146102d25761014d565b8063715018a61461022b57806379cc6790146102335780637d64bcb414610246578063862b092b1461024e5780638da5cb5b1461025657806395d89b411461026b5761014d565b8063313ce56711610115578063313ce567146101c057806339509351146101d557806340c10f19146101e857806342966c68146101fd5780636c02a9311461021057806370a08231146102185761014d565b806305d2035b1461015257806306fdde0314610170578063095ea7b31461018557806318160ddd1461019857806323b872dd146101ad575b600080fd5b61015a6102e5565b6040516101679190611039565b60405180910390f35b6101786102ee565b6040516101679190611044565b61015a610193366004610f42565b610380565b6101a061039d565b60405161016791906114b6565b61015a6101bb366004610f07565b6103a3565b6101c8610443565b60405161016791906114bf565b61015a6101e3366004610f42565b610452565b6101fb6101f6366004610f42565b6104a1565b005b6101fb61020b366004610ff4565b6104d2565b6101786104e6565b6101a0610226366004610eb4565b610574565b6101fb610593565b6101fb610241366004610f42565b610622565b6101fb610677565b6101786106a4565b61025e6106b3565b604051610167919061100c565b6101786106c7565b61015a610281366004610f42565b6106d6565b61015a610294366004610f42565b610751565b6101fb6102a7366004610f42565b610765565b6101fb6102ba366004610f6b565b61082b565b6101a06102cd366004610ed5565b6108f0565b6101fb6102e0366004610eb4565b61091b565b60055460ff1690565b6060600380546102fd906114fc565b80601f0160208091040260200160405190810160405280929190818152602001828054610329906114fc565b80156103765780601f1061034b57610100808354040283529160200191610376565b820191906000526020600020905b81548152906001019060200180831161035957829003601f168201915b5050505050905090565b600061039461038d610aa7565b8484610aab565b50600192915050565b60025490565b60006103b0848484610b5f565b6001600160a01b0384166000908152600160205260408120816103d1610aa7565b6001600160a01b03166001600160a01b031681526020019081526020016000205490508281101561041d5760405162461bcd60e51b81526004016104149061126b565b60405180910390fd5b61043885610429610aa7565b61043386856114e5565b610aab565b506001949350505050565b600061044d610c87565b905090565b600061039461045f610aa7565b84846001600061046d610aa7565b6001600160a01b03908116825260208083019390935260409182016000908120918b168152925290205461043391906114cd565b60055460ff16156104c45760405162461bcd60e51b8152600401610414906113f8565b6104ce8282610cab565b5050565b6104e36104dd610aa7565b82610cf4565b50565b600680546104f3906114fc565b80601f016020809104026020016040519081016040528092919081815260200182805461051f906114fc565b801561056c5780601f106105415761010080835404028352916020019161056c565b820191906000526020600020905b81548152906001019060200180831161054f57829003601f168201915b505050505081565b6001600160a01b0381166000908152602081905260409020545b919050565b61059b610aa7565b6001600160a01b03166105ac6106b3565b6001600160a01b0316146105d25760405162461bcd60e51b815260040161041490611226565b60055460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360058054610100600160a81b0319169055565b6000610630836102cd610aa7565b9050818110156106525760405162461bcd60e51b8152600401610414906112b3565b6106688361065e610aa7565b61043385856114e5565b6106728383610cf4565b505050565b60055460ff161561069a5760405162461bcd60e51b8152600401610414906113f8565b6106a2610dda565b565b6060600680546102fd906114fc565b60055461010090046001600160a01b031690565b6060600480546102fd906114fc565b600080600160006106e5610aa7565b6001600160a01b03908116825260208083019390935260409182016000908120918816815292529020549050828110156107315760405162461bcd60e51b81526004016104149061143a565b61074761073c610aa7565b8561043386856114e5565b5060019392505050565b600061039461075e610aa7565b8484610b5f565b61076d610aa7565b6001600160a01b031661077e6106b3565b6001600160a01b0316146107a45760405162461bcd60e51b815260040161041490611226565b816001600160a01b031663a9059cbb6107bb6106b3565b836040518363ffffffff1660e01b81526004016107d9929190611020565b602060405180830381600087803b1580156107f357600080fd5b505af1158015610807573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106729190610fd4565b826108485760405162461bcd60e51b8152600401610414906112f7565b8281146108675760405162461bcd60e51b8152600401610414906111a4565b60005b838110156108e9576108d685858381811061089557634e487b7160e01b600052603260045260246000fd5b90506020020160208101906108aa9190610eb4565b8484848181106108ca57634e487b7160e01b600052603260045260246000fd5b90506020020135610751565b50806108e181611537565b91505061086a565b5050505050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610923610aa7565b6001600160a01b03166109346106b3565b6001600160a01b03161461095a5760405162461bcd60e51b815260040161041490611226565b6001600160a01b0381166109805760405162461bcd60e51b8152600401610414906111db565b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6001600160a01b038216610a0d5760405162461bcd60e51b81526004016104149061147f565b610a1960008383610672565b8060026000828254610a2b91906114cd565b90915550506001600160a01b03821660009081526020819052604081208054839290610a589084906114cd565b90915550506040516001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90610a9b9085906114b6565b60405180910390a35050565b3390565b6001600160a01b038316610ad15760405162461bcd60e51b8152600401610414906113b4565b6001600160a01b038216610af75760405162461bcd60e51b81526004016104149061111c565b6001600160a01b0380841660008181526001602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92590610b529085906114b6565b60405180910390a3505050565b6001600160a01b038316610b855760405162461bcd60e51b81526004016104149061136f565b6001600160a01b038216610bab5760405162461bcd60e51b815260040161041490611097565b610bb6838383610672565b6001600160a01b03831660009081526020819052604090205481811015610bef5760405162461bcd60e51b81526004016104149061115e565b610bf982826114e5565b6001600160a01b038086166000908152602081905260408082209390935590851681529081208054849290610c2f9084906114cd565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610c7991906114b6565b60405180910390a350505050565b7f000000000000000000000000000000000000000000000000000000000000001290565b610cb3610aa7565b6001600160a01b0316610cc46106b3565b6001600160a01b031614610cea5760405162461bcd60e51b815260040161041490611226565b6104ce82826109e7565b6001600160a01b038216610d1a5760405162461bcd60e51b81526004016104149061132e565b610d2682600083610672565b6001600160a01b03821660009081526020819052604090205481811015610d5f5760405162461bcd60e51b8152600401610414906110da565b610d6982826114e5565b6001600160a01b03841660009081526020819052604081209190915560028054849290610d979084906114e5565b90915550506040516000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90610b529086906114b6565b610de2610aa7565b6001600160a01b0316610df36106b3565b6001600160a01b031614610e195760405162461bcd60e51b815260040161041490611226565b6106a26005805460ff191660011790556040517fae5184fba832cb2b1f702aca6117b8d265eaf03ad33eb133f19dde0f5920fa0890600090a1565b80356001600160a01b038116811461058e57600080fd5b60008083601f840112610e7c578182fd5b50813567ffffffffffffffff811115610e93578182fd5b6020830191508360208083028501011115610ead57600080fd5b9250929050565b600060208284031215610ec5578081fd5b610ece82610e54565b9392505050565b60008060408385031215610ee7578081fd5b610ef083610e54565b9150610efe60208401610e54565b90509250929050565b600080600060608486031215610f1b578081fd5b610f2484610e54565b9250610f3260208501610e54565b9150604084013590509250925092565b60008060408385031215610f54578182fd5b610f5d83610e54565b946020939093013593505050565b60008060008060408587031215610f80578081fd5b843567ffffffffffffffff80821115610f97578283fd5b610fa388838901610e6b565b90965094506020870135915080821115610fbb578283fd5b50610fc887828801610e6b565b95989497509550505050565b600060208284031215610fe5578081fd5b81518015158114610ece578182fd5b600060208284031215611005578081fd5b5035919050565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b6000602080835283518082850152825b8181101561107057858101830151858201604001528201611054565b818111156110815783604083870101525b50601f01601f1916929092016040019392505050565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526022908201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604082015261636560f01b606082015260800190565b60208082526022908201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604082015261737360f01b606082015260800190565b60208082526026908201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604082015265616c616e636560d01b606082015260800190565b6020808252601c908201527f726563697069656e74732e6c656e20213d2076616c7565732e6c656e00000000604082015260600190565b6020808252602b908201527f45524332304f776e61626c653a206e6577206f776e657220697320746865207a60408201526a65726f206164647265737360a81b606082015260800190565b60208082526025908201527f45524332304f776e61626c653a2063616c6c6572206973206e6f74207468652060408201526437bbb732b960d91b606082015260800190565b60208082526028908201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616040820152676c6c6f77616e636560c01b606082015260800190565b60208082526024908201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77604082015263616e636560e01b606082015260800190565b6020808252601b908201527f6e656564206174206c65617374206f6e6520726563697069656e740000000000604082015260600190565b60208082526021908201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526024908201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526022908201527f45524332304d696e7461626c653a206d696e74696e672069732066696e697368604082015261195960f21b606082015260800190565b60208082526025908201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604082015264207a65726f60d81b606082015260800190565b6020808252601f908201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604082015260600190565b90815260200190565b60ff91909116815260200190565b600082198211156114e0576114e0611552565b500190565b6000828210156114f7576114f7611552565b500390565b60028104600182168061151057607f821691505b6020821081141561153157634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561154b5761154b611552565b5060010190565b634e487b7160e01b600052601160045260246000fdfea264697066735822122084c001db2a6cb6cd81b281ecc15706f8f08bd55432a78685d7ac5a9b81fa576a64736f6c63430008000033

Verified Source Code Partial Match

Compiler: v0.8.0+commit.c7dfd78e EVM: istanbul Optimization: Yes (200 runs)
BaseToken_U_A.sol 556 lines
// Sources flattened with hardhat v2.7.0 https://hardhat.org

// File @uniswap/v2-periphery/contracts/interfaces/[email protected]

pragma solidity >=0.5.0;

interface IERC20 {
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint value);

    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 (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);

    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint value) external returns (bool);
}


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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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


// File contracts/helpers/ERC20.sol



pragma solidity ^0.8.0;


contract ERC20 is Context, IERC20 {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The defaut value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * 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 override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override 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 value {ERC20} uses, unless this function is
     * 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 override returns (uint8) {
        return 18;
    }

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

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        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}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        _approve(sender, _msgSender(), currentAllowance - amount);

        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        _approve(_msgSender(), spender, currentAllowance - subtractedValue);

        return true;
    }

    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        _balances[sender] = senderBalance - amount;
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        _balances[account] = accountBalance - amount;
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` 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.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be to transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts1.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}


// File contracts/helpers/ERC20Burnable.sol



pragma solidity ^0.8.0;


/**
 * @dev Extension of {ERC20} that allows token holders to destroy both their own
 * tokens and those that they have an allowance for, in a way that can be
 * recognized off-chain (via event analysis).
 */
abstract contract ERC20Burnable is Context, ERC20 {
    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) public virtual {
        _burn(_msgSender(), amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, deducting from the caller's
     * allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for ``accounts``'s tokens of at least
     * `amount`.
     */
    function burnFrom(address account, uint256 amount) public virtual {
        uint256 currentAllowance = allowance(account, _msgSender());
        require(currentAllowance >= amount, "ERC20: burn amount exceeds allowance");
        _approve(account, _msgSender(), currentAllowance - amount);
        _burn(account, amount);
    }
}


// File contracts/helpers/ERC20Decimals.sol


pragma solidity ^0.8.0;

abstract contract ERC20Decimals is ERC20 {
    uint8 private immutable _decimals;

    constructor(uint8 decimals_) {
        _decimals = decimals_;
    }

    function decimals() public view virtual override returns (uint8) {
        return _decimals;
    }
}


// File contracts/helpers/ERC20Mintable.sol


pragma solidity ^0.8.0;

abstract contract ERC20Mintable is ERC20 {
    bool private _mintingFinished = false;

    event MintFinished();
    modifier canMint() {
        require(!_mintingFinished, "ERC20Mintable: minting is finished");
        _;
    }

    function mintingFinished() external view returns (bool) {
        return _mintingFinished;
    }

    function mint(address account, uint256 amount) external canMint {
        _mint(account, amount);
    }

    function finishMinting() external canMint {
        _finishMinting();
    }

    function _finishMinting() internal virtual {
        _mintingFinished = true;

        emit MintFinished();
    }
}


// File contracts/helpers/ERC20Ownable.sol


pragma solidity ^0.8.0;

abstract contract ERC20Ownable is Context {
    address private _owner;

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

    constructor() {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    function owner() public view virtual returns (address) {
        return _owner;
    }

    modifier onlyOwner() {
        require(owner() == _msgSender(), "ERC20Ownable: caller is not the owner");
        _;
    }

    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "ERC20Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}


// File contracts/helpers/TokenRecover.sol


pragma solidity ^0.8.0;

contract TokenRecover is ERC20Ownable {
    function recoverToken(address tokenAddress, uint256 tokenAmount) public virtual onlyOwner {
        IERC20(tokenAddress).transfer(owner(), tokenAmount);
    }
}


// File contracts/helpers/TokenHelper.sol

pragma solidity ^0.8.0;

contract TokenHelper {
    string public tokenName;

    constructor(string memory _tokenName) {
        tokenName = _tokenName;
    }

    function getTokenName() public view returns (string memory) {
        return tokenName;
    }
}


// File contracts/BaseToken/BaseToken_U_A.sol


pragma solidity ^0.8.0;






contract BaseToken_U_A is ERC20Decimals, ERC20Mintable, ERC20Burnable, TokenRecover, TokenHelper {
    constructor(
        string memory _name,
        string memory _symbol,
        uint8 _decimals,
        uint256 _initial
    )
        ERC20(_name, _symbol)
        ERC20Decimals(_decimals)
        TokenHelper("BaseToken_U_A")
    {
        _mint(_msgSender(), _initial);
    }

    function Airdrop(address[] calldata _recipients, uint256[] calldata _values) external {
        require(_recipients.length > 0, "need at least one recipient");
        require(
            _recipients.length == _values.length,
            "recipients.len != values.len"
        );
        for (uint256 j = 0; j < _recipients.length; j++) {
            transfer(_recipients[j], _values[j]);
        }
    }

    function decimals() public view virtual override(ERC20, ERC20Decimals) returns (uint8) {
        return super.decimals();
    }

    function _mint(address account, uint256 amount) internal override onlyOwner {
        super._mint(account, amount);
    }

    function _finishMinting() internal override onlyOwner {
        super._finishMinting();
    }
}

Read Contract

allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
getTokenName 0x862b092b → string
mintingFinished 0x05d2035b → bool
name 0x06fdde03 → string
owner 0x8da5cb5b → address
symbol 0x95d89b41 → string
tokenName 0x6c02a931 → string
totalSupply 0x18160ddd → uint256

Write Contract 13 functions

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

Airdrop 0xc558ae6b
address[] _recipients
uint256[] _values
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
burn 0x42966c68
uint256 amount
burnFrom 0x79cc6790
address account
uint256 amount
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
finishMinting 0x7d64bcb4
No parameters
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
mint 0x40c10f19
address account
uint256 amount
recoverToken 0xb29a8140
address tokenAddress
uint256 tokenAmount
renounceOwnership 0x715018a6
No parameters
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner

Recent Transactions

No transactions found for this address