ETH Price: $3,410.71 (+1.76%)
Gas: 6 Gwei

Token

Nexus Chain (wNexus)
 

Overview

Max Total Supply

150,000,000 wNexus

Holders

24

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
469,628.84587383197239681 wNexus

Value
$0.00
0xe5c2f5fdf935e44f0c47cf9c248c31c73d690369
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
wNexus

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 2000 runs

Other Settings:
default evmVersion
File 1 of 7 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @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 anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing 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);
    }
}

File 2 of 7 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.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}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * 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.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    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 default 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:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, 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}.
     *
     * NOTE: If `amount` 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 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, 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}.
     *
     * 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 `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, 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) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, 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) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `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.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
        }
        _balances[to] += amount;

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, 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:
     *
     * - `account` 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);

        _afterTokenTransfer(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");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

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

        _afterTokenTransfer(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 Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - 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 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-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

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

File 3 of 7 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
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 4 of 7 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @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 amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` 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 amount) 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 `amount` 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 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` 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 amount
    ) external returns (bool);
}

File 5 of 7 : Context.sol
// 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 6 of 7 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 7 of 7 : Token.sol
//SPDX-License-Identifier: MIT

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

pragma solidity ^0.8.17;

interface DexFactory {
    function createPair(
        address tokenA,
        address tokenB
    ) external returns (address pair);
}

interface DexRouter {
    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 swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external;
}

contract wNexus is ERC20, Ownable {
    struct Tax {
        uint256 marketingTax;
    }

    uint256 private constant _totalSupply = 150000000 * 1e18;
    mapping(address => uint256) private _balances;

    //Router
    DexRouter public uniswapRouter;
    address public pairAddress;

    //Taxes
    Tax public buyTaxes = Tax(0);
    Tax public sellTaxes = Tax(0);
    uint256 public totalBuyFees = 0;
    uint256 public totalSellFees = 0;

    //Whitelisting from taxes/maxwallet/txlimit/etc
    mapping(address => bool) private whitelisted;

    //Swapping
    uint256 public swapTokensAtAmount = _totalSupply / 15000; //after 0.001% of total supply, swap them
    bool public swapAndLiquifyEnabled = true;
    bool public isSwapping = false;
    bool public tradingStatus = false;

    //Wallets
    address public MarketingWallet;

    constructor() ERC20("Nexus Chain", "wNexus") {
        //0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0 test
        // Pancakeswap on mainnet
        //LFT swap on ETH 0x4f381d5fF61ad1D0eC355fEd2Ac4000eA1e67854
        //UniswapV2 on ETHMain net 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
        uniswapRouter = DexRouter(0x10ED43C718714eb63d5aA57B78B54704E256024E);
        // do not whitelist liquidity pool, otherwise there wont be any taxes
        whitelisted[msg.sender] = true;
        whitelisted[address(uniswapRouter)] = true;
        whitelisted[address(this)] = true;
        MarketingWallet = owner();
        _mint(msg.sender, _totalSupply);
    }

    function enableTrading(address _pairAddress) external onlyOwner {
        pairAddress = _pairAddress;
        tradingStatus = true;
    }

    function setMarketingWallet(address _newMarketing) external onlyOwner {
        require(
            MarketingWallet != address(0),
            "new marketing wallet can not be dead address!"
        );
        MarketingWallet = _newMarketing;
    }

    function setBuyFees(uint256 _marketingTax) external onlyOwner {
        require(_marketingTax <= 10, "can not set higher than 10%");
        buyTaxes.marketingTax = _marketingTax;
        totalBuyFees = _marketingTax;
    }

    function setSellFees(uint256 _marketingTax) external onlyOwner {
        require(_marketingTax <= 10, "can not set higher than 10%");
        sellTaxes.marketingTax = _marketingTax;
        totalSellFees = _marketingTax;
    }

    function setSwapTokensAtAmount(uint256 _newAmount) external onlyOwner {
        require(
            _newAmount > 0,
            "Radiate : Minimum swap amount must be greater than 0!"
        );
        swapTokensAtAmount = _newAmount;
    }

    function toggleSwapping() external onlyOwner {
        swapAndLiquifyEnabled = (swapAndLiquifyEnabled == true) ? false : true;
    }

    function setWhitelistStatus(
        address _wallet,
        bool _status
    ) external onlyOwner {
        whitelisted[_wallet] = _status;
    }

    function checkWhitelist(address _wallet) external view returns (bool) {
        return whitelisted[_wallet];
    }

    function _takeTax(
        address _from,
        address _to,
        uint256 _amount
    ) internal returns (uint256) {
        if (whitelisted[_from] || whitelisted[_to]) {
            return _amount;
        }
        require(tradingStatus, "Trading is not enabled yet!");
        uint256 totalTax = 0;
        if (_to == pairAddress) {
            totalTax = totalSellFees;
        } else if (_from == pairAddress) {
            totalTax = totalBuyFees;
        }
        uint256 tax = (_amount * totalTax) / 100;
        super._transfer(_from, address(this), tax);
        return (_amount - tax);
    }

    function _transfer(
        address _from,
        address _to,
        uint256 _amount
    ) internal virtual override {
        require(_from != address(0), "transfer from address zero");
        require(_to != address(0), "transfer to address zero");
        uint256 toTransfer = _takeTax(_from, _to, _amount);

        bool canSwap = balanceOf(address(this)) >= swapTokensAtAmount;
        if (
            swapAndLiquifyEnabled &&
            pairAddress == _to &&
            canSwap &&
            !whitelisted[_from] &&
            !whitelisted[_to] &&
            !isSwapping
        ) {
            isSwapping = true;
            manageTaxes();
            isSwapping = false;
        }
        super._transfer(_from, _to, toTransfer);
    }

    function manageTaxes() internal {
        swapToETH(balanceOf(address(this)));
        (bool success, ) = MarketingWallet.call{value: address(this).balance}(
            ""
        );
    }

    function swapToETH(uint256 _amount) internal {
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = uniswapRouter.WETH();
        _approve(address(this), address(uniswapRouter), _amount);
        uniswapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(
            _amount,
            0,
            path,
            address(this),
            block.timestamp
        );
    }

    function withdrawStuckETH() external onlyOwner {
        (bool success, ) = address(msg.sender).call{
            value: address(this).balance
        }("");
        require(success, "transfering ETH failed");
    }

    function withdrawStuckTokens(address erc20_token) external onlyOwner {
        bool success = IERC20(erc20_token).transfer(
            msg.sender,
            IERC20(erc20_token).balanceOf(address(this))
        );
        require(success, "trasfering tokens failed!");
    }

    receive() external payable {}
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 2000
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "metadata": {
    "useLiteralContent": true
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MarketingWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyTaxes","outputs":[{"internalType":"uint256","name":"marketingTax","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"}],"name":"checkWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_pairAddress","type":"address"}],"name":"enableTrading","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isSwapping","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pairAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sellTaxes","outputs":[{"internalType":"uint256","name":"marketingTax","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_marketingTax","type":"uint256"}],"name":"setBuyFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newMarketing","type":"address"}],"name":"setMarketingWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_marketingTax","type":"uint256"}],"name":"setSellFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newAmount","type":"uint256"}],"name":"setSwapTokensAtAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"},{"internalType":"bool","name":"_status","type":"bool"}],"name":"setWhitelistStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapAndLiquifyEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapTokensAtAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleSwapping","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalBuyFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSellFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tradingStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uniswapRouter","outputs":[{"internalType":"contract DexRouter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawStuckETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"erc20_token","type":"address"}],"name":"withdrawStuckTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60006080819052600981905560c060405260a0819052600a819055600b819055600c556200003b613a986a7c13bc4b2c133c56000000620002e4565b600e55600f805462ffffff191660011790553480156200005a57600080fd5b506040518060400160405280600b81526020016a2732bc3ab99021b430b4b760a91b81525060405180604001604052806006815260200165774e6578757360d01b8152508160039081620000af9190620003ab565b506004620000be8282620003ab565b505050620000db620000d5620001a160201b60201c565b620001a5565b600780546001600160a01b0319167310ed43c718714eb63d5aa57b78b54704e256024e178155336000908152600d6020526040808220805460ff19908116600190811790925593546001600160a01b03168352818320805485168217905530835291208054909216179055620001596005546001600160a01b031690565b600f80546001600160a01b03929092166301000000026301000000600160b81b03199092169190911790556200019b336a7c13bc4b2c133c56000000620001f7565b6200049f565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620002525760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b806002600082825462000266919062000477565b90915550506001600160a01b038216600090815260208190526040812080548392906200029590849062000477565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b505050565b6000826200030257634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200033257607f821691505b6020821081036200035357634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620002df57600081815260208120601f850160051c81016020861015620003825750805b601f850160051c820191505b81811015620003a3578281556001016200038e565b505050505050565b81516001600160401b03811115620003c757620003c762000307565b620003df81620003d884546200031d565b8462000359565b602080601f831160018114620004175760008415620003fe5750858301515b600019600386901b1c1916600185901b178555620003a3565b600085815260208120601f198616915b82811015620004485788860151825594840194600190910190840162000427565b5085821015620004675787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b808201808211156200049957634e487b7160e01b600052601160045260246000fd5b92915050565b611b3480620004af6000396000f3fe6080604052600436106102385760003560e01c806395927c2511610138578063d0a39814116100b0578063e2f456051161007f578063f2fde38b11610064578063f2fde38b1461067f578063f5648a4f1461069f578063f66895a3146106b457600080fd5b8063e2f4560514610654578063ef586f711461066a57600080fd5b8063d0a39814146105b8578063d4fb9a01146105ce578063dcf7aef3146105ee578063dd62ed3e1461060e57600080fd5b8063a9059cbb11610107578063b8863115116100ec578063b886311514610563578063b9e9370014610582578063cb9637281461059857600080fd5b8063a9059cbb14610523578063afa4f3b21461054357600080fd5b806395927c25146104ae57806395d89b41146104ce578063a457c2d7146104e3578063a8b089821461050357600080fd5b8063313ce567116101cb57806370a082311161019a578063735de9f71161017f578063735de9f714610459578063864701a5146104795780638da5cb5b1461049057600080fd5b806370a082311461040e578063715018a61461044457600080fd5b8063313ce5671461039857806339509351146103b45780634a74bb02146103d45780635d098b38146103ee57600080fd5b806318160ddd1161020757806318160ddd146102e15780631950c2181461030057806323b872dd146103395780632598cdb21461035957600080fd5b806306fdde031461024457806307980cb91461026f578063095ea7b3146102915780630c424284146102c157600080fd5b3661023f57005b600080fd5b34801561025057600080fd5b506102596106cb565b60405161026691906117dc565b60405180910390f35b34801561027b57600080fd5b5061028f61028a36600461185d565b61075d565b005b34801561029d57600080fd5b506102b16102ac36600461187a565b6107cd565b6040519015158152602001610266565b3480156102cd57600080fd5b5061028f6102dc3660046118b4565b6107e7565b3480156102ed57600080fd5b506002545b604051908152602001610266565b34801561030c57600080fd5b506102b161031b36600461185d565b6001600160a01b03166000908152600d602052604090205460ff1690565b34801561034557600080fd5b506102b16103543660046118ed565b61081a565b34801561036557600080fd5b50600f5461038090630100000090046001600160a01b031681565b6040516001600160a01b039091168152602001610266565b3480156103a457600080fd5b5060405160128152602001610266565b3480156103c057600080fd5b506102b16103cf36600461187a565b610840565b3480156103e057600080fd5b50600f546102b19060ff1681565b3480156103fa57600080fd5b5061028f61040936600461185d565b61087f565b34801561041a57600080fd5b506102f261042936600461185d565b6001600160a01b031660009081526020819052604090205490565b34801561045057600080fd5b5061028f610952565b34801561046557600080fd5b50600754610380906001600160a01b031681565b34801561048557600080fd5b506009546102f29081565b34801561049c57600080fd5b506005546001600160a01b0316610380565b3480156104ba57600080fd5b5061028f6104c936600461192e565b610966565b3480156104da57600080fd5b506102596109c9565b3480156104ef57600080fd5b506102b16104fe36600461187a565b6109d8565b34801561050f57600080fd5b50600854610380906001600160a01b031681565b34801561052f57600080fd5b506102b161053e36600461187a565b610a8d565b34801561054f57600080fd5b5061028f61055e36600461192e565b610a9b565b34801561056f57600080fd5b50600f546102b190610100900460ff1681565b34801561058e57600080fd5b506102f2600b5481565b3480156105a457600080fd5b5061028f6105b336600461185d565b610b1e565b3480156105c457600080fd5b506102f2600c5481565b3480156105da57600080fd5b50600f546102b19062010000900460ff1681565b3480156105fa57600080fd5b5061028f61060936600461192e565b610c8e565b34801561061a57600080fd5b506102f2610629366004611947565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561066057600080fd5b506102f2600e5481565b34801561067657600080fd5b5061028f610cf1565b34801561068b57600080fd5b5061028f61069a36600461185d565b610d25565b3480156106ab57600080fd5b5061028f610db5565b3480156106c057600080fd5b50600a546102f29081565b6060600380546106da90611975565b80601f016020809104026020016040519081016040528092919081815260200182805461070690611975565b80156107535780601f1061072857610100808354040283529160200191610753565b820191906000526020600020905b81548152906001019060200180831161073657829003601f168201915b5050505050905090565b610765610e55565b600880546001600160a01b039092167fffffffffffffffffffffffff0000000000000000000000000000000000000000909216919091179055600f80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff1662010000179055565b6000336107db818585610eaf565b60019150505b92915050565b6107ef610e55565b6001600160a01b03919091166000908152600d60205260409020805460ff1916911515919091179055565b600033610828858285611007565b6108338585856110b7565b60019150505b9392505050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091906107db908290869061087a9087906119c5565b610eaf565b610887610e55565b600f54630100000090046001600160a01b03166109115760405162461bcd60e51b815260206004820152602d60248201527f6e6577206d61726b6574696e672077616c6c65742063616e206e6f742062652060448201527f646561642061646472657373210000000000000000000000000000000000000060648201526084015b60405180910390fd5b600f80546001600160a01b039092166301000000027fffffffffffffffffff0000000000000000000000000000000000000000ffffff909216919091179055565b61095a610e55565b6109646000611249565b565b61096e610e55565b600a8111156109bf5760405162461bcd60e51b815260206004820152601b60248201527f63616e206e6f742073657420686967686572207468616e2031302500000000006044820152606401610908565b600a819055600c55565b6060600480546106da90611975565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919083811015610a755760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610908565b610a828286868403610eaf565b506001949350505050565b6000336107db8185856110b7565b610aa3610e55565b60008111610b195760405162461bcd60e51b815260206004820152603560248201527f52616469617465203a204d696e696d756d207377617020616d6f756e74206d7560448201527f73742062652067726561746572207468616e20302100000000000000000000006064820152608401610908565b600e55565b610b26610e55565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000906001600160a01b0383169063a9059cbb90339083906370a0823190602401602060405180830381865afa158015610b90573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb491906119d8565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015610c17573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c3b91906119f1565b905080610c8a5760405162461bcd60e51b815260206004820152601960248201527f74726173666572696e6720746f6b656e73206661696c656421000000000000006044820152606401610908565b5050565b610c96610e55565b600a811115610ce75760405162461bcd60e51b815260206004820152601b60248201527f63616e206e6f742073657420686967686572207468616e2031302500000000006044820152606401610908565b6009819055600b55565b610cf9610e55565b600f5460ff161515600114610d0f576001610d12565b60005b600f805460ff1916911515919091179055565b610d2d610e55565b6001600160a01b038116610da95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610908565b610db281611249565b50565b610dbd610e55565b604051600090339047908381818185875af1925050503d8060008114610dff576040519150601f19603f3d011682016040523d82523d6000602084013e610e04565b606091505b5050905080610db25760405162461bcd60e51b815260206004820152601660248201527f7472616e73666572696e6720455448206661696c6564000000000000000000006044820152606401610908565b6005546001600160a01b031633146109645760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610908565b6001600160a01b038316610f2a5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610908565b6001600160a01b038216610fa65760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610908565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038381166000908152600160209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146110b157818110156110a45760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610908565b6110b18484848403610eaf565b50505050565b6001600160a01b03831661110d5760405162461bcd60e51b815260206004820152601a60248201527f7472616e736665722066726f6d2061646472657373207a65726f0000000000006044820152606401610908565b6001600160a01b0382166111635760405162461bcd60e51b815260206004820152601860248201527f7472616e7366657220746f2061646472657373207a65726f00000000000000006044820152606401610908565b60006111708484846112b3565b600e5430600090815260208190526040902054600f5492935010159060ff1680156111a857506008546001600160a01b038581169116145b80156111b15750805b80156111d657506001600160a01b0385166000908152600d602052604090205460ff16155b80156111fb57506001600160a01b0384166000908152600d602052604090205460ff16155b801561120f5750600f54610100900460ff16155b1561123757600f805461ff00191661010017905561122b6113cc565b600f805461ff00191690555b611242858584611439565b5050505050565b600580546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0383166000908152600d602052604081205460ff16806112f257506001600160a01b0383166000908152600d602052604090205460ff165b156112fe575080610839565b600f5462010000900460ff166113565760405162461bcd60e51b815260206004820152601b60248201527f54726164696e67206973206e6f7420656e61626c6564207965742100000000006044820152606401610908565b6008546000906001600160a01b03908116908516036113785750600c54611393565b6008546001600160a01b03908116908616036113935750600b545b600060646113a18386611a0e565b6113ab9190611a25565b90506113b8863083611439565b6113c28185611a47565b9695505050505050565b306000908152602081905260409020546113e590611650565b600f54604051600091630100000090046001600160a01b03169047908381818185875af1925050503d80600081146110b1576040519150601f19603f3d011682016040523d82523d6000602084013e6110b1565b6001600160a01b0383166114b55760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610908565b6001600160a01b0382166115315760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610908565b6001600160a01b038316600090815260208190526040902054818110156115c05760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610908565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906115f79084906119c5565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161164391815260200190565b60405180910390a36110b1565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061168557611685611a5a565b6001600160a01b03928316602091820292909201810191909152600754604080517fad5c46480000000000000000000000000000000000000000000000000000000081529051919093169263ad5c46489260048083019391928290030181865afa1580156116f7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061171b9190611a70565b8160018151811061172e5761172e611a5a565b6001600160a01b0392831660209182029290920101526007546117549130911684610eaf565b6007546040517f791ac9470000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063791ac947906117a6908590600090869030904290600401611a8d565b600060405180830381600087803b1580156117c057600080fd5b505af11580156117d4573d6000803e3d6000fd5b505050505050565b600060208083528351808285015260005b81811015611809578581018301518582016040015282016117ed565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b6001600160a01b0381168114610db257600080fd5b60006020828403121561186f57600080fd5b813561083981611848565b6000806040838503121561188d57600080fd5b823561189881611848565b946020939093013593505050565b8015158114610db257600080fd5b600080604083850312156118c757600080fd5b82356118d281611848565b915060208301356118e2816118a6565b809150509250929050565b60008060006060848603121561190257600080fd5b833561190d81611848565b9250602084013561191d81611848565b929592945050506040919091013590565b60006020828403121561194057600080fd5b5035919050565b6000806040838503121561195a57600080fd5b823561196581611848565b915060208301356118e281611848565b600181811c9082168061198957607f821691505b6020821081036119a957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808201808211156107e1576107e16119af565b6000602082840312156119ea57600080fd5b5051919050565b600060208284031215611a0357600080fd5b8151610839816118a6565b80820281158282048414176107e1576107e16119af565b600082611a4257634e487b7160e01b600052601260045260246000fd5b500490565b818103818111156107e1576107e16119af565b634e487b7160e01b600052603260045260246000fd5b600060208284031215611a8257600080fd5b815161083981611848565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015611add5784516001600160a01b031683529383019391830191600101611ab8565b50506001600160a01b0396909616606085015250505060800152939250505056fea2646970667358221220fb937552d8312378b7d7fedf712a9a84dcb0f48addb2544bb3ab7566039a38bc64736f6c63430008110033

Deployed Bytecode

0x6080604052600436106102385760003560e01c806395927c2511610138578063d0a39814116100b0578063e2f456051161007f578063f2fde38b11610064578063f2fde38b1461067f578063f5648a4f1461069f578063f66895a3146106b457600080fd5b8063e2f4560514610654578063ef586f711461066a57600080fd5b8063d0a39814146105b8578063d4fb9a01146105ce578063dcf7aef3146105ee578063dd62ed3e1461060e57600080fd5b8063a9059cbb11610107578063b8863115116100ec578063b886311514610563578063b9e9370014610582578063cb9637281461059857600080fd5b8063a9059cbb14610523578063afa4f3b21461054357600080fd5b806395927c25146104ae57806395d89b41146104ce578063a457c2d7146104e3578063a8b089821461050357600080fd5b8063313ce567116101cb57806370a082311161019a578063735de9f71161017f578063735de9f714610459578063864701a5146104795780638da5cb5b1461049057600080fd5b806370a082311461040e578063715018a61461044457600080fd5b8063313ce5671461039857806339509351146103b45780634a74bb02146103d45780635d098b38146103ee57600080fd5b806318160ddd1161020757806318160ddd146102e15780631950c2181461030057806323b872dd146103395780632598cdb21461035957600080fd5b806306fdde031461024457806307980cb91461026f578063095ea7b3146102915780630c424284146102c157600080fd5b3661023f57005b600080fd5b34801561025057600080fd5b506102596106cb565b60405161026691906117dc565b60405180910390f35b34801561027b57600080fd5b5061028f61028a36600461185d565b61075d565b005b34801561029d57600080fd5b506102b16102ac36600461187a565b6107cd565b6040519015158152602001610266565b3480156102cd57600080fd5b5061028f6102dc3660046118b4565b6107e7565b3480156102ed57600080fd5b506002545b604051908152602001610266565b34801561030c57600080fd5b506102b161031b36600461185d565b6001600160a01b03166000908152600d602052604090205460ff1690565b34801561034557600080fd5b506102b16103543660046118ed565b61081a565b34801561036557600080fd5b50600f5461038090630100000090046001600160a01b031681565b6040516001600160a01b039091168152602001610266565b3480156103a457600080fd5b5060405160128152602001610266565b3480156103c057600080fd5b506102b16103cf36600461187a565b610840565b3480156103e057600080fd5b50600f546102b19060ff1681565b3480156103fa57600080fd5b5061028f61040936600461185d565b61087f565b34801561041a57600080fd5b506102f261042936600461185d565b6001600160a01b031660009081526020819052604090205490565b34801561045057600080fd5b5061028f610952565b34801561046557600080fd5b50600754610380906001600160a01b031681565b34801561048557600080fd5b506009546102f29081565b34801561049c57600080fd5b506005546001600160a01b0316610380565b3480156104ba57600080fd5b5061028f6104c936600461192e565b610966565b3480156104da57600080fd5b506102596109c9565b3480156104ef57600080fd5b506102b16104fe36600461187a565b6109d8565b34801561050f57600080fd5b50600854610380906001600160a01b031681565b34801561052f57600080fd5b506102b161053e36600461187a565b610a8d565b34801561054f57600080fd5b5061028f61055e36600461192e565b610a9b565b34801561056f57600080fd5b50600f546102b190610100900460ff1681565b34801561058e57600080fd5b506102f2600b5481565b3480156105a457600080fd5b5061028f6105b336600461185d565b610b1e565b3480156105c457600080fd5b506102f2600c5481565b3480156105da57600080fd5b50600f546102b19062010000900460ff1681565b3480156105fa57600080fd5b5061028f61060936600461192e565b610c8e565b34801561061a57600080fd5b506102f2610629366004611947565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561066057600080fd5b506102f2600e5481565b34801561067657600080fd5b5061028f610cf1565b34801561068b57600080fd5b5061028f61069a36600461185d565b610d25565b3480156106ab57600080fd5b5061028f610db5565b3480156106c057600080fd5b50600a546102f29081565b6060600380546106da90611975565b80601f016020809104026020016040519081016040528092919081815260200182805461070690611975565b80156107535780601f1061072857610100808354040283529160200191610753565b820191906000526020600020905b81548152906001019060200180831161073657829003601f168201915b5050505050905090565b610765610e55565b600880546001600160a01b039092167fffffffffffffffffffffffff0000000000000000000000000000000000000000909216919091179055600f80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff1662010000179055565b6000336107db818585610eaf565b60019150505b92915050565b6107ef610e55565b6001600160a01b03919091166000908152600d60205260409020805460ff1916911515919091179055565b600033610828858285611007565b6108338585856110b7565b60019150505b9392505050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091906107db908290869061087a9087906119c5565b610eaf565b610887610e55565b600f54630100000090046001600160a01b03166109115760405162461bcd60e51b815260206004820152602d60248201527f6e6577206d61726b6574696e672077616c6c65742063616e206e6f742062652060448201527f646561642061646472657373210000000000000000000000000000000000000060648201526084015b60405180910390fd5b600f80546001600160a01b039092166301000000027fffffffffffffffffff0000000000000000000000000000000000000000ffffff909216919091179055565b61095a610e55565b6109646000611249565b565b61096e610e55565b600a8111156109bf5760405162461bcd60e51b815260206004820152601b60248201527f63616e206e6f742073657420686967686572207468616e2031302500000000006044820152606401610908565b600a819055600c55565b6060600480546106da90611975565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919083811015610a755760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610908565b610a828286868403610eaf565b506001949350505050565b6000336107db8185856110b7565b610aa3610e55565b60008111610b195760405162461bcd60e51b815260206004820152603560248201527f52616469617465203a204d696e696d756d207377617020616d6f756e74206d7560448201527f73742062652067726561746572207468616e20302100000000000000000000006064820152608401610908565b600e55565b610b26610e55565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000906001600160a01b0383169063a9059cbb90339083906370a0823190602401602060405180830381865afa158015610b90573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb491906119d8565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015610c17573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c3b91906119f1565b905080610c8a5760405162461bcd60e51b815260206004820152601960248201527f74726173666572696e6720746f6b656e73206661696c656421000000000000006044820152606401610908565b5050565b610c96610e55565b600a811115610ce75760405162461bcd60e51b815260206004820152601b60248201527f63616e206e6f742073657420686967686572207468616e2031302500000000006044820152606401610908565b6009819055600b55565b610cf9610e55565b600f5460ff161515600114610d0f576001610d12565b60005b600f805460ff1916911515919091179055565b610d2d610e55565b6001600160a01b038116610da95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610908565b610db281611249565b50565b610dbd610e55565b604051600090339047908381818185875af1925050503d8060008114610dff576040519150601f19603f3d011682016040523d82523d6000602084013e610e04565b606091505b5050905080610db25760405162461bcd60e51b815260206004820152601660248201527f7472616e73666572696e6720455448206661696c6564000000000000000000006044820152606401610908565b6005546001600160a01b031633146109645760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610908565b6001600160a01b038316610f2a5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610908565b6001600160a01b038216610fa65760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610908565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038381166000908152600160209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146110b157818110156110a45760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610908565b6110b18484848403610eaf565b50505050565b6001600160a01b03831661110d5760405162461bcd60e51b815260206004820152601a60248201527f7472616e736665722066726f6d2061646472657373207a65726f0000000000006044820152606401610908565b6001600160a01b0382166111635760405162461bcd60e51b815260206004820152601860248201527f7472616e7366657220746f2061646472657373207a65726f00000000000000006044820152606401610908565b60006111708484846112b3565b600e5430600090815260208190526040902054600f5492935010159060ff1680156111a857506008546001600160a01b038581169116145b80156111b15750805b80156111d657506001600160a01b0385166000908152600d602052604090205460ff16155b80156111fb57506001600160a01b0384166000908152600d602052604090205460ff16155b801561120f5750600f54610100900460ff16155b1561123757600f805461ff00191661010017905561122b6113cc565b600f805461ff00191690555b611242858584611439565b5050505050565b600580546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0383166000908152600d602052604081205460ff16806112f257506001600160a01b0383166000908152600d602052604090205460ff165b156112fe575080610839565b600f5462010000900460ff166113565760405162461bcd60e51b815260206004820152601b60248201527f54726164696e67206973206e6f7420656e61626c6564207965742100000000006044820152606401610908565b6008546000906001600160a01b03908116908516036113785750600c54611393565b6008546001600160a01b03908116908616036113935750600b545b600060646113a18386611a0e565b6113ab9190611a25565b90506113b8863083611439565b6113c28185611a47565b9695505050505050565b306000908152602081905260409020546113e590611650565b600f54604051600091630100000090046001600160a01b03169047908381818185875af1925050503d80600081146110b1576040519150601f19603f3d011682016040523d82523d6000602084013e6110b1565b6001600160a01b0383166114b55760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610908565b6001600160a01b0382166115315760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610908565b6001600160a01b038316600090815260208190526040902054818110156115c05760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610908565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906115f79084906119c5565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161164391815260200190565b60405180910390a36110b1565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061168557611685611a5a565b6001600160a01b03928316602091820292909201810191909152600754604080517fad5c46480000000000000000000000000000000000000000000000000000000081529051919093169263ad5c46489260048083019391928290030181865afa1580156116f7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061171b9190611a70565b8160018151811061172e5761172e611a5a565b6001600160a01b0392831660209182029290920101526007546117549130911684610eaf565b6007546040517f791ac9470000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063791ac947906117a6908590600090869030904290600401611a8d565b600060405180830381600087803b1580156117c057600080fd5b505af11580156117d4573d6000803e3d6000fd5b505050505050565b600060208083528351808285015260005b81811015611809578581018301518582016040015282016117ed565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b6001600160a01b0381168114610db257600080fd5b60006020828403121561186f57600080fd5b813561083981611848565b6000806040838503121561188d57600080fd5b823561189881611848565b946020939093013593505050565b8015158114610db257600080fd5b600080604083850312156118c757600080fd5b82356118d281611848565b915060208301356118e2816118a6565b809150509250929050565b60008060006060848603121561190257600080fd5b833561190d81611848565b9250602084013561191d81611848565b929592945050506040919091013590565b60006020828403121561194057600080fd5b5035919050565b6000806040838503121561195a57600080fd5b823561196581611848565b915060208301356118e281611848565b600181811c9082168061198957607f821691505b6020821081036119a957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808201808211156107e1576107e16119af565b6000602082840312156119ea57600080fd5b5051919050565b600060208284031215611a0357600080fd5b8151610839816118a6565b80820281158282048414176107e1576107e16119af565b600082611a4257634e487b7160e01b600052601260045260246000fd5b500490565b818103818111156107e1576107e16119af565b634e487b7160e01b600052603260045260246000fd5b600060208284031215611a8257600080fd5b815161083981611848565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015611add5784516001600160a01b031683529383019391830191600101611ab8565b50506001600160a01b0396909616606085015250505060800152939250505056fea2646970667358221220fb937552d8312378b7d7fedf712a9a84dcb0f48addb2544bb3ab7566039a38bc64736f6c63430008110033

Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.