ETH Price: $3,178.06 (+0.58%)
Gas: 20 Gwei

Token

Alien Form (A4M)
 

Overview

Max Total Supply

19,348,629,479 A4M

Holders

294 (0.00%)

Total Transfers

-

Market

Price

$0.00 @ 0.000000 ETH (+3.63%)

Onchain Market Cap

$2,026,078.34

Circulating Supply Market Cap

$0.00

Other Info

Token Contract (WITH 9 Decimals)

Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

AlienForm (A4M) is an innovative, decentralized digital assets project that stands at the forefront of transparency, community-led governance, and accountability through the use of multi-signature (multi-sig) wallets and regular publication of monthly financial reports.

Market

Volume (24H):$204,945.71
Market Capitalization:$0.00
Circulating Supply:0.00 A4M
Market Data Source: Coinmarketcap

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
AlienForm

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 2000 runs

Other Settings:
default evmVersion
File 1 of 13 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 2 of 13 : Ownable2Step.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable2Step.sol)

pragma solidity ^0.8.0;

import "./Ownable.sol";

/**
 * @dev Contract module which provides 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} and {acceptOwnership}.
 *
 * This module is used through inheritance. It will make available all functions
 * from parent (Ownable).
 */
abstract contract Ownable2Step is Ownable {
    address private _pendingOwner;

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

    /**
     * @dev Returns the address of the pending owner.
     */
    function pendingOwner() public view virtual returns (address) {
        return _pendingOwner;
    }

    /**
     * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual override onlyOwner {
        _pendingOwner = newOwner;
        emit OwnershipTransferStarted(owner(), newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual override {
        delete _pendingOwner;
        super._transferOwnership(newOwner);
    }

    /**
     * @dev The new owner accepts the ownership transfer.
     */
    function acceptOwnership() public virtual {
        address sender = _msgSender();
        require(pendingOwner() == sender, "Ownable2Step: caller is not the new owner");
        _transferOwnership(sender);
    }
}

File 3 of 13 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * The default value of {decimals} is 18. To change this, you should override
 * this function so it returns a different value.
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * 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}.
     *
     * 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 default value returned by this function, unless
     * it's overridden.
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual 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;
            // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
            // decrementing then incrementing.
            _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;
        unchecked {
            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
            _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;
            // Overflow not possible: amount <= accountBalance <= totalSupply.
            _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 4 of 13 : 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 5 of 13 : IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

File 6 of 13 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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 7 of 13 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/IERC20Permit.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
     * to be set to zero before setting it to a non-zero value, such as USDT.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
     * Revert on invalid signature.
     */
    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

        (bool success, bytes memory returndata) = address(token).call(data);
        return
            success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));
    }
}

File 8 of 13 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 9 of 13 : 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 10 of 13 : AlienForm.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity ^0.8.17;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable2Step.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "./interfaces/IUniswapRouter02.sol";
import "./interfaces/IFactory.sol";
import "./interfaces/IUniswapV2Pair.sol";

contract AlienForm is ERC20, Ownable2Step {
    address payable public marketingFeeAddress;
    address payable public miscFeeAddress;
    address public immutable uniswapPair;
    address public bridgeAddress;

    address[] public botWallets;

    uint16 constant feeDenominator = 1000;
    uint16 constant lpDenominator = 1000;
    uint16 public maxFeeLimit = 300;

    uint16 public buyBurnFee;
    uint16 public buyLiquidityFee = 20;
    uint16 public buyMarketingFee = 40;
    uint16 public buyMiscFee = 30;

    uint16 public sellBurnFee;
    uint16 public sellLiquidityFee = 20;
    uint16 public sellMarketingFee = 40;
    uint16 public sellMiscFee = 30;

    uint16 public transferBurnFee;
    uint16 public transferLiquidityFee = 20;
    uint16 public transferMarketingFee = 40;
    uint16 public transferMiscFee = 30;

    uint256 private _liquidityTokensToSwap;
    uint256 private _marketingFeeTokensToSwap;
    uint256 private _burnFeeTokens;
    uint256 private _miscFeeTokens;

    uint256 private lpTokens;
    uint256 public minLpBeforeSwapping;

    bool public tradingActive;
    bool private hasLiquidity;
    bool inSwapAndLiquify;

    mapping(address => bool) public isExcludedFromFee;
    mapping(address => bool) public automatedMarketMakerPairs;
    mapping(address => bool) public botWallet;

    IUniswapRouter02 public immutable uniswapRouter;

    modifier lockTheSwap() {
        inSwapAndLiquify = true;
        _;
        inSwapAndLiquify = false;
    }

    modifier onlyBridge() {
        require(
            msg.sender == bridgeAddress,
            "AlienForm: only bridge can trigger this method!"
        );
        _;
    }

    constructor() ERC20("Alien Form", "A4M")  {
        _transferOwnership(0x12926793D4c56AFEB8bC62Ede9842AE1F713a00b);   // LP wallet and owner address
        _mint(owner(), 1e11 * 10**decimals());

        marketingFeeAddress = payable(0xdB35482B43CB01dC62a237E532F85092c32B92b7);
        miscFeeAddress = payable(0x1f9c83D24d5d4df1e9D2f6673a4b216FD0b0122C);

        minLpBeforeSwapping = 10; // this means: 10 / 1000 = 1% of the liquidity pool is the threshold before swapping

        address routerAddress = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D; // ETH Mainnet
        // address routerAddress = 0x10ED43C718714eb63d5aA57B78B54704E256024E; // BSC Mainnet

        uniswapRouter = IUniswapRouter02(payable(routerAddress));

        uniswapPair = IFactory(uniswapRouter.factory()).createPair(
            address(this),
            uniswapRouter.WETH()
        );

        isExcludedFromFee[owner()] = true;
        isExcludedFromFee[address(this)] = true;
        isExcludedFromFee[marketingFeeAddress] = true;
        isExcludedFromFee[miscFeeAddress] = true;

        _approve(owner(), routerAddress, type(uint256).max);
        _setAutomatedMarketMakerPair(uniswapPair, true);
        _approve(address(this), address(uniswapRouter), type(uint256).max);
    }

    function mint(address to, uint amount) external onlyBridge() {
        _mint(to, amount);
    }

    function burn(address owner, uint amount) external onlyBridge() {
        _burn(owner, amount);
    }

    function increaseRouterAllowance(address routerAddress) external onlyOwner {
        _approve(address(this), routerAddress, type(uint256).max);
    }

    function migrateBridge(address newAddress) external onlyOwner {
        require(
            newAddress != address(0) && !automatedMarketMakerPairs[newAddress],
            "Can't set this address"
        );
        bridgeAddress = newAddress;
        isExcludedFromFee[newAddress] = true;
    }

    function decimals() public pure override returns (uint8) {
        return 9;
    }

    function addBotWallet(address wallet) external onlyOwner {
        require(!botWallet[wallet], "Wallet already added");
        botWallet[wallet] = true;
        botWallets.push(wallet);
    }

    function addBotWalletBulk(address[] memory wallets) external onlyOwner {
        for (uint256 i = 0; i < wallets.length; ++i) {
            require(!botWallet[wallets[i]], "Wallet already added");
            botWallet[wallets[i]] = true;
            botWallets.push(wallets[i]);
        }
    }

    function getBotWallets() external view returns (address[] memory) {
        return botWallets;
    }

    function removeBotWallet(address wallet) external onlyOwner {
        require(botWallet[wallet], "Wallet not added");
        botWallet[wallet] = false;
        for (uint256 i = 0; i < botWallets.length; i++) {
            if (botWallets[i] == wallet) {
                botWallets[i] = botWallets[botWallets.length - 1];
                botWallets.pop();
                break;
            }
        }
    }

    function burn(uint256 amount) external {
        _burn(msg.sender, amount);
    }

    function enableTrading(bool _tradingActive) external onlyOwner {
        tradingActive = _tradingActive;
    }

    function updateMinLpBeforeSwapping(uint256 minLpBeforeSwapping_)
        external
        onlyOwner
    {
        minLpBeforeSwapping = minLpBeforeSwapping_;
    }

    function setAutomatedMarketMakerPair(address pair, bool value)
        external
        onlyOwner
    {
        require(pair != uniswapPair, "The pair cannot be removed");

        _setAutomatedMarketMakerPair(pair, value);
    }

    function _setAutomatedMarketMakerPair(address pair, bool value) private {
        automatedMarketMakerPairs[pair] = value;
    }

    function excludeFromFee(address account) external onlyOwner {
        isExcludedFromFee[account] = true;
    }

    function includeInFee(address account) external onlyOwner {
        isExcludedFromFee[account] = false;
    }

    function updateMaxFeeLimit(uint16 _maxFeeLimit) external onlyOwner {
        maxFeeLimit = _maxFeeLimit;
    }

    function updateBuyFee(
        uint16 _buyBurnFee,
        uint16 _buyLiquidityFee,
        uint16 _buyMarketingFee,
        uint16 _buyMiscFee
    ) external onlyOwner {
        buyBurnFee = _buyBurnFee;
        buyLiquidityFee = _buyLiquidityFee;
        buyMarketingFee = _buyMarketingFee;
        buyMiscFee = _buyMiscFee;
        require(
            _buyBurnFee +
                _buyLiquidityFee +
                _buyMarketingFee +
                _buyMiscFee <=
                maxFeeLimit,
            "Must keep fees below maxFeeLimit"
        );
    }

    function updateSellFee(
        uint16 _sellBurnFee,
        uint16 _sellLiquidityFee,
        uint16 _sellMarketingFee,
        uint16 _sellMiscFee
    ) external onlyOwner {
        sellBurnFee = _sellBurnFee;
        sellLiquidityFee = _sellLiquidityFee;
        sellMarketingFee = _sellMarketingFee;
        sellMiscFee = _sellMiscFee;
        require(
            _sellBurnFee +
                _sellLiquidityFee +
                _sellMarketingFee +
                _sellMiscFee <=
                maxFeeLimit,
            "Must keep fees below maxFeeLimit"
        );
    }

    function updateTransferFee(
        uint16 _transferBurnFee,
        uint16 _transferLiquidityFee,
        uint16 _transferMarketingFee,
        uint16 _transferMiscFee
    ) external onlyOwner {
        transferBurnFee = _transferBurnFee;
        transferLiquidityFee = _transferLiquidityFee;
        transferMarketingFee = _transferMarketingFee;
        transferMiscFee = _transferMiscFee;
        require(
            _transferBurnFee +
                _transferLiquidityFee +
                _transferMarketingFee +
                _transferMiscFee <=
                maxFeeLimit,
            "Must keep fees below maxFeeLimit"
        );
    }

    function updateMarketingFeeAddress(address marketingFeeAddress_)
        external
        onlyOwner
    {
        require(marketingFeeAddress_ != address(0), "Can't set 0");
        marketingFeeAddress = payable(marketingFeeAddress_);
    }

    function updateMiscFeeAddress(address miscFeeAddress_)
        external
        onlyOwner
    {
        require(miscFeeAddress_ != address(0), "Can't set 0 address");
        miscFeeAddress = payable(miscFeeAddress_);
    }

    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal override {
        if (!tradingActive) {
            require(
                isExcludedFromFee[from] || isExcludedFromFee[to],
                "Trading is not active yet."
            );
        }
        require(!botWallet[from] && !botWallet[to], "Bot wallet");
        checkLiquidity();

        if (
            hasLiquidity && !inSwapAndLiquify && automatedMarketMakerPairs[to]
        ) {
            uint256 contractTokenBalance = balanceOf(address(this));
            if (
                contractTokenBalance >=
                (lpTokens * minLpBeforeSwapping) / lpDenominator
            ) takeFee(contractTokenBalance);
        }

        uint256 _burnFee;
        uint256 _liquidityFee;
        uint256 _marketingFee;
        uint256 _miscFee;

        if (!isExcludedFromFee[from] && !isExcludedFromFee[to]) {
            // Buy
            if (automatedMarketMakerPairs[from]) {
                _burnFee = (amount * buyBurnFee) / feeDenominator;
                _liquidityFee = (amount * buyLiquidityFee) / feeDenominator;
                _marketingFee = (amount * buyMarketingFee) / feeDenominator;
                _miscFee = (amount * buyMiscFee) / feeDenominator;
            }
            // Sell
            else if (automatedMarketMakerPairs[to]) {
                _burnFee = (amount * sellBurnFee) / feeDenominator;
                _liquidityFee = (amount * sellLiquidityFee) / feeDenominator;
                _marketingFee = (amount * sellMarketingFee) / feeDenominator;
                _miscFee = (amount * sellMiscFee) / feeDenominator;
            }
            // Transfer
            else {
                _burnFee = (amount * transferBurnFee) / feeDenominator;
                _liquidityFee = (amount * transferLiquidityFee) / feeDenominator;
                _marketingFee = (amount * transferMarketingFee) / feeDenominator;
                _miscFee = (amount * transferMiscFee) / feeDenominator;
            }
        }

        uint256 _feeTotal = _burnFee +
            _liquidityFee +
            _marketingFee +
            _miscFee;
        uint256 _transferAmount = amount - _feeTotal;
        super._transfer(from, to, _transferAmount);

        if (_feeTotal > 0) {
            super._transfer(from, address(this), _feeTotal);
            _liquidityTokensToSwap += _liquidityFee;
            _marketingFeeTokensToSwap += _marketingFee;
            _burnFeeTokens += _burnFee;
            _miscFeeTokens += _miscFee;
        }
    }

    function takeFee(uint256 contractBalance) private lockTheSwap {
        uint256 totalTokensTaken = _liquidityTokensToSwap +
            _marketingFeeTokensToSwap +
            _burnFeeTokens +
            _miscFeeTokens;
        if (totalTokensTaken == 0 || contractBalance < totalTokensTaken) {
            return;
        }

        uint256 tokensForLiquidity = _liquidityTokensToSwap / 2;
        uint256 initialETHBalance = address(this).balance;
        uint256 toSwap = tokensForLiquidity +
            _marketingFeeTokensToSwap +
            _miscFeeTokens;
        swapTokensForETH(toSwap);
        uint256 ethBalance = address(this).balance - initialETHBalance;

        uint256 ethForMarketing = (ethBalance * _marketingFeeTokensToSwap) /
            toSwap;
        uint256 ethForLiquidity = (ethBalance * tokensForLiquidity) / toSwap;
        uint256 ethForMisc = (ethBalance * _miscFeeTokens) / toSwap;

        if (tokensForLiquidity > 0 && ethForLiquidity > 0) {
            addLiquidity(_liquidityTokensToSwap - tokensForLiquidity, ethForLiquidity);
        }
        bool success;

        (success, ) = address(marketingFeeAddress).call{
            value: ethForMarketing,
            gas: 50000
        }("");
        (success, ) = address(miscFeeAddress).call{
            value: ethForMisc,
            gas: 50000
        }("");

        if (_burnFeeTokens > 0) {
            _burn(address(this), _burnFeeTokens);
        }

        _liquidityTokensToSwap = 0;
        _marketingFeeTokensToSwap = 0;
        _burnFeeTokens = 0;
        _miscFeeTokens = 0;
    }

    function swapTokensForETH(uint256 tokenAmount) private {
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = uniswapRouter.WETH();
        uniswapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(
            tokenAmount,
            0,
            path,
            address(this),
            block.timestamp
        );
    }

    function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {
        uniswapRouter.addLiquidityETH{value: ethAmount}(
            address(this),
            tokenAmount,
            0, // slippage is unavoidable
            0, // slippage is unavoidable
            owner(),
            block.timestamp
        );
    }

    receive() external payable {}

    function checkLiquidity() internal {
        (uint256 r1, uint256 r2, ) = IUniswapV2Pair(uniswapPair).getReserves();

        lpTokens = balanceOf(uniswapPair); // this is not a problem, since contract sell will get that unsynced balance as if we sold it, so we just get more ETH.
        hasLiquidity = r1 > 0 && r2 > 0 ? true : false;
    }

    function withdrawETH() external onlyOwner {
        (bool success, ) = owner().call{value: address(this).balance}("");
        require(success, "Transfer failed.");
    }

    function withdrawTokens(IERC20 tokenAddress, address walletAddress)
        external
        onlyOwner
    {
        require(
            walletAddress != address(0),
            "walletAddress can't be 0 address"
        );
        SafeERC20.safeTransfer(
            tokenAddress,
            walletAddress,
            tokenAddress.balanceOf(address(this))
        );
    }
}

File 11 of 13 : IFactory.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity ^0.8.17;

interface IFactory {
    event PairCreated(
        address indexed token0,
        address indexed token1,
        address pair,
        uint256
    );

    function getPair(address tokenA, address tokenB)
        external
        view
        returns (address pair);

    function allPairs(uint256) external view returns (address pair);

    function createPair(address tokenA, address tokenB)
        external
        returns (address pair);

}

File 12 of 13 : IUniswapRouter02.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity ^0.8.17;

interface IUniswapRouter01 {
    function factory() external pure returns (address);

    function WETH() external pure returns (address);

    function addLiquidityETH(
        address token,
        uint256 amountTokenDesired,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    )
        external
        payable
        returns (
            uint256 amountToken,
            uint256 amountETH,
            uint256 liquidity
        );

    function getAmountsOut(uint256 amountIn, address[] calldata path)
        external
        view
        returns (uint256[] memory amounts);
}

interface IUniswapRouter02 is IUniswapRouter01 {

    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external;
}

File 13 of 13 : IUniswapV2Pair.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity ^0.8.17;

interface IUniswapV2Pair {
    function getReserves()
        external
        view
        returns (
            uint112 reserve0,
            uint112 reserve1,
            uint32 blockTimestampLast
        );
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 2000
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "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":"OwnershipTransferStarted","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":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"}],"name":"addBotWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"wallets","type":"address[]"}],"name":"addBotWalletBulk","outputs":[],"stateMutability":"nonpayable","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":"","type":"address"}],"name":"automatedMarketMakerPairs","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"botWallet","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"botWallets","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bridgeAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"buyBurnFee","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyLiquidityFee","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyMarketingFee","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyMiscFee","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","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":"bool","name":"_tradingActive","type":"bool"}],"name":"enableTrading","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"excludeFromFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getBotWallets","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"includeInFee","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":[{"internalType":"address","name":"routerAddress","type":"address"}],"name":"increaseRouterAllowance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isExcludedFromFee","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"marketingFeeAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxFeeLimit","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newAddress","type":"address"}],"name":"migrateBridge","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"minLpBeforeSwapping","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"miscFeeAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"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":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"}],"name":"removeBotWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sellBurnFee","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sellLiquidityFee","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sellMarketingFee","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sellMiscFee","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"pair","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"setAutomatedMarketMakerPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tradingActive","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":[],"name":"transferBurnFee","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","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":[],"name":"transferLiquidityFee","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"transferMarketingFee","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"transferMiscFee","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uniswapPair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapRouter","outputs":[{"internalType":"contract IUniswapRouter02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_buyBurnFee","type":"uint16"},{"internalType":"uint16","name":"_buyLiquidityFee","type":"uint16"},{"internalType":"uint16","name":"_buyMarketingFee","type":"uint16"},{"internalType":"uint16","name":"_buyMiscFee","type":"uint16"}],"name":"updateBuyFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"marketingFeeAddress_","type":"address"}],"name":"updateMarketingFeeAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_maxFeeLimit","type":"uint16"}],"name":"updateMaxFeeLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"minLpBeforeSwapping_","type":"uint256"}],"name":"updateMinLpBeforeSwapping","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"miscFeeAddress_","type":"address"}],"name":"updateMiscFeeAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_sellBurnFee","type":"uint16"},{"internalType":"uint16","name":"_sellLiquidityFee","type":"uint16"},{"internalType":"uint16","name":"_sellMarketingFee","type":"uint16"},{"internalType":"uint16","name":"_sellMiscFee","type":"uint16"}],"name":"updateSellFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_transferBurnFee","type":"uint16"},{"internalType":"uint16","name":"_transferLiquidityFee","type":"uint16"},{"internalType":"uint16","name":"_transferMarketingFee","type":"uint16"},{"internalType":"uint16","name":"_transferMiscFee","type":"uint16"}],"name":"updateTransferFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"tokenAddress","type":"address"},{"internalType":"address","name":"walletAddress","type":"address"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60c0604052600b80547fffffffffffff000000000000ffff000000000000ffff000000000000ffff000016781e002800140000001e002800140000001e002800140000012c1790553480156200005457600080fd5b506040518060400160405280600a815260200169416c69656e20466f726d60b01b8152506040518060400160405280600381526020016241344d60e81b8152508160039081620000a59190620006ea565b506004620000b48282620006ea565b505050620000d1620000cb620003d260201b60201c565b620003d6565b620000f07312926793d4c56afeb8bc62ede9842ae1f713a00b620003d6565b6200012c620001076005546001600160a01b031690565b620001156009600a620008cb565b620001269064174876e800620008e3565b62000400565b600780546001600160a01b031990811673db35482b43cb01dc62a237e532f85092c32b92b71790915560088054909116731f9c83d24d5d4df1e9d2f6673a4b216fd0b0122c179055600a601155737a250d5630b4cf539739df2c5dacb4c659f2488d60a08190526040805163c45a015560e01b81529051829163c45a01559160048083019260209291908290030181865afa158015620001d0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001f69190620008fd565b6001600160a01b031663c9c653963060a0516001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000246573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200026c9190620008fd565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af1158015620002ba573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002e09190620008fd565b6001600160a01b0316608052600160136000620003056005546001600160a01b031690565b6001600160a01b03908116825260208083019390935260409182016000908120805495151560ff1996871617905530815260139093528183208054851660019081179091556007548216845282842080548616821790556008549091168352912080549092161790556200038f620003856005546001600160a01b031690565b82600019620004c7565b6080516001600160a01b03166000908152601460205260409020805460ff19166001179055620003cb3060a051600019620004c760201b60201c565b506200093e565b3390565b600680546001600160a01b0319169055620003fd81620005ef602090811b62001d7617901c565b50565b6001600160a01b0382166200045c5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064015b60405180910390fd5b806002600082825462000470919062000928565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b0383166200052b5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840162000453565b6001600160a01b0382166200058e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840162000453565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200067157607f821691505b6020821081036200069257634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200064157600081815260208120601f850160051c81016020861015620006c15750805b601f850160051c820191505b81811015620006e257828155600101620006cd565b505050505050565b81516001600160401b0381111562000706576200070662000646565b6200071e816200071784546200065c565b8462000698565b602080601f8311600181146200075657600084156200073d5750858301515b600019600386901b1c1916600185901b178555620006e2565b600085815260208120601f198616915b82811015620007875788860151825594840194600190910190840162000766565b5085821015620007a65787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b600181815b808511156200080d578160001904821115620007f157620007f1620007b6565b80851615620007ff57918102915b93841c9390800290620007d1565b509250929050565b6000826200082657506001620008c5565b816200083557506000620008c5565b81600181146200084e5760028114620008595762000879565b6001915050620008c5565b60ff8411156200086d576200086d620007b6565b50506001821b620008c5565b5060208310610133831016604e8410600b84101617156200089e575081810a620008c5565b620008aa8383620007cc565b8060001904821115620008c157620008c1620007b6565b0290505b92915050565b6000620008dc60ff84168362000815565b9392505050565b8082028115828204841417620008c557620008c5620007b6565b6000602082840312156200091057600080fd5b81516001600160a01b0381168114620008dc57600080fd5b80820180821115620008c557620008c5620007b6565b60805160a05161388c6200098e6000396000818161076301528181612eac01528181612f7d0152612ff5015260008181610a8d015281816116a20152818161282701526128d1015261388c6000f3fe6080604052600436106103b15760003560e01c806392136913116101e7578063bbc0c7421161010d578063e30c3978116100a0578063f275f64b1161006f578063f275f64b14610c02578063f2fde38b14610c22578063f637434214610c42578063fc66e78414610c6d57600080fd5b8063e30c397814610b80578063e71dc3f514610b9e578063ea2f0b3714610bbf578063f11a24d314610bdf57600080fd5b8063dbf1cd13116100dc578063dbf1cd1314610aef578063dc9c30ca14610b05578063dd62ed3e14610b25578063e086e5ec14610b6b57600080fd5b8063bbc0c74214610a61578063c816841b14610a7b578063cb6bb47514610aaf578063d7f5b35914610acf57600080fd5b8063a2ece63611610185578063a9059cbb11610154578063a9059cbb146109c6578063adb873bd146109e6578063b2d2e58614610a0f578063b62496f514610a3157600080fd5b8063a2ece63614610946578063a3c573eb14610966578063a457c2d714610986578063a522ad25146109a657600080fd5b80639a7a23d6116101c15780639a7a23d6146108a35780639bb19a32146108c35780639cbc1ad6146108f65780639dc29fac1461092657600080fd5b8063921369131461083257806395d89b411461085f57806398b516221461087457600080fd5b806339509351116102d757806370a082311161026a5780637bce5a04116102395780637bce5a041461079a57806382d58ce9146107bf57806385c5b319146107df5780638da5cb5b1461081457600080fd5b806370a0823114610706578063715018a61461073c578063735de9f71461075157806379ba50971461078557600080fd5b80634866bad1116102a65780634866bad1146106765780635342acb41461069657806355d889eb146106c6578063660d0af4146106e657600080fd5b806339509351146105f657806340c10f191461061657806342966c6814610636578063437823ec1461065657600080fd5b80631c8a6adc1161034f578063269b17171161031e578063269b1717146105785780632a3606311461059a578063313ce567146105ba578063392d6af7146105d657600080fd5b80631c8a6adc146104e757806322204e8514610518578063239bda491461053857806323b872dd1461055857600080fd5b8063074b323f1161038b578063074b323f1461043e578063095ea7b3146104785780630e460b73146104a857806318160ddd146104c857600080fd5b80630305caff146103bd578063053e39a3146103df57806306fdde031461041c57600080fd5b366103b857005b600080fd5b3480156103c957600080fd5b506103dd6103d83660046132b2565b610c88565b005b3480156103eb57600080fd5b506007546103ff906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561042857600080fd5b50610431610e33565b60405161041391906132fa565b34801561044a57600080fd5b50600b546104659068010000000000000000900461ffff1681565b60405161ffff9091168152602001610413565b34801561048457600080fd5b5061049861049336600461332d565b610ec5565b6040519015158152602001610413565b3480156104b457600080fd5b506103dd6104c336600461336f565b610edf565b3480156104d457600080fd5b506002545b604051908152602001610413565b3480156104f357600080fd5b50600b54610465907201000000000000000000000000000000000000900461ffff1681565b34801561052457600080fd5b506103dd610533366004613446565b611040565b34801561054457600080fd5b506103dd610553366004613461565b61107d565b34801561056457600080fd5b506104986105733660046134b5565b6111f2565b34801561058457600080fd5b5061058d611216565b604051610413919061353a565b3480156105a657600080fd5b506103dd6105b53660046132b2565b611277565b3480156105c657600080fd5b5060405160098152602001610413565b3480156105e257600080fd5b506103dd6105f1366004613461565b61135b565b34801561060257600080fd5b5061049861061136600461332d565b611439565b34801561062257600080fd5b506103dd61063136600461332d565b611478565b34801561064257600080fd5b506103dd61065136600461354d565b611502565b34801561066257600080fd5b506103dd6106713660046132b2565b61150f565b34801561068257600080fd5b506103dd6106913660046132b2565b61153b565b3480156106a257600080fd5b506104986106b13660046132b2565b60136020526000908152604090205460ff1681565b3480156106d257600080fd5b506008546103ff906001600160a01b031681565b3480156106f257600080fd5b506103dd6107013660046132b2565b611550565b34801561071257600080fd5b506104d96107213660046132b2565b6001600160a01b031660009081526020819052604090205490565b34801561074857600080fd5b506103dd6115dd565b34801561075d57600080fd5b506103ff7f000000000000000000000000000000000000000000000000000000000000000081565b34801561079157600080fd5b506103dd6115f1565b3480156107a657600080fd5b50600b54610465906601000000000000900461ffff1681565b3480156107cb57600080fd5b506103dd6107da36600461354d565b61167c565b3480156107eb57600080fd5b50600b5461046590760100000000000000000000000000000000000000000000900461ffff1681565b34801561082057600080fd5b506005546001600160a01b03166103ff565b34801561083e57600080fd5b50600b54610465906e010000000000000000000000000000900461ffff1681565b34801561086b57600080fd5b50610431611689565b34801561088057600080fd5b50600b5461046590700100000000000000000000000000000000900461ffff1681565b3480156108af57600080fd5b506103dd6108be366004613574565b611698565b3480156108cf57600080fd5b50600b546104659074010000000000000000000000000000000000000000900461ffff1681565b34801561090257600080fd5b506104986109113660046132b2565b60156020526000908152604090205460ff1681565b34801561093257600080fd5b506103dd61094136600461332d565b611749565b34801561095257600080fd5b506103ff61096136600461354d565b6117d3565b34801561097257600080fd5b506009546103ff906001600160a01b031681565b34801561099257600080fd5b506104986109a136600461332d565b6117fd565b3480156109b257600080fd5b506103dd6109c13660046135ad565b6118a7565b3480156109d257600080fd5b506104986109e136600461332d565b611993565b3480156109f257600080fd5b50600b54610465906a0100000000000000000000900461ffff1681565b348015610a1b57600080fd5b50600b5461046590600160c01b900461ffff1681565b348015610a3d57600080fd5b50610498610a4c3660046132b2565b60146020526000908152604090205460ff1681565b348015610a6d57600080fd5b506012546104989060ff1681565b348015610a8757600080fd5b506103ff7f000000000000000000000000000000000000000000000000000000000000000081565b348015610abb57600080fd5b506103dd610aca3660046132b2565b6119a1565b348015610adb57600080fd5b506103dd610aea3660046132b2565b611a2e565b348015610afb57600080fd5b506104d960115481565b348015610b1157600080fd5b506103dd610b20366004613461565b611afa565b348015610b3157600080fd5b506104d9610b403660046135ad565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b348015610b7757600080fd5b506103dd611bf8565b348015610b8c57600080fd5b506006546001600160a01b03166103ff565b348015610baa57600080fd5b50600b546104659062010000900461ffff1681565b348015610bcb57600080fd5b506103dd610bda3660046132b2565b611cb4565b348015610beb57600080fd5b50600b5461046590640100000000900461ffff1681565b348015610c0e57600080fd5b506103dd610c1d3660046135db565b611cdd565b348015610c2e57600080fd5b506103dd610c3d3660046132b2565b611cf8565b348015610c4e57600080fd5b50600b54610465906c01000000000000000000000000900461ffff1681565b348015610c7957600080fd5b50600b546104659061ffff1681565b610c90611dd5565b6001600160a01b03811660009081526015602052604090205460ff16610cfd5760405162461bcd60e51b815260206004820152601060248201527f57616c6c6574206e6f742061646465640000000000000000000000000000000060448201526064015b60405180910390fd5b6001600160a01b0381166000908152601560205260408120805460ff191690555b600a54811015610e2f57816001600160a01b0316600a8281548110610d4557610d456135f8565b6000918252602090912001546001600160a01b031603610e1d57600a8054610d6f90600190613624565b81548110610d7f57610d7f6135f8565b600091825260209091200154600a80546001600160a01b039092169183908110610dab57610dab6135f8565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550600a805480610dea57610dea613637565b6000828152602090208101600019908101805473ffffffffffffffffffffffffffffffffffffffff191690550190555050565b80610e278161364d565b915050610d1e565b5050565b606060038054610e4290613667565b80601f0160208091040260200160405190810160405280929190818152602001828054610e6e90613667565b8015610ebb5780601f10610e9057610100808354040283529160200191610ebb565b820191906000526020600020905b815481529060010190602001808311610e9e57829003601f168201915b5050505050905090565b600033610ed3818585611e2f565b60019150505b92915050565b610ee7611dd5565b60005b8151811015610e2f5760156000838381518110610f0957610f096135f8565b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff1615610f7d5760405162461bcd60e51b815260206004820152601460248201527f57616c6c657420616c72656164792061646465640000000000000000000000006044820152606401610cf4565b600160156000848481518110610f9557610f956135f8565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908315150217905550600a828281518110610fe857610fe86135f8565b602090810291909101810151825460018101845560009384529190922001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b039092169190911790556110398161364d565b9050610eea565b611048611dd5565b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00001661ffff92909216919091179055565b611085611dd5565b600b80547fffffffffffffffffffff00000000ffffffffffffffffffffffffffffffffffff16720100000000000000000000000000000000000061ffff878116919091027fffffffffffffffffffff0000ffffffffffffffffffffffffffffffffffffffff16919091177401000000000000000000000000000000000000000086831602177fffffffffffff00000000ffffffffffffffffffffffffffffffffffffffffffff16760100000000000000000000000000000000000000000000858316027fffffffffffff0000ffffffffffffffffffffffffffffffffffffffffffffffff1617600160c01b84831602179182905516818361118686886136a1565b61119091906136a1565b61119a91906136a1565b61ffff1611156111ec5760405162461bcd60e51b815260206004820181905260248201527f4d757374206b65657020666565732062656c6f77206d61784665654c696d69746044820152606401610cf4565b50505050565b600033611200858285611f88565b61120b858585612014565b506001949350505050565b6060600a805480602002602001604051908101604052809291908181526020018280548015610ebb57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611250575050505050905090565b61127f611dd5565b6001600160a01b03811660009081526015602052604090205460ff16156112e85760405162461bcd60e51b815260206004820152601460248201527f57616c6c657420616c72656164792061646465640000000000000000000000006044820152606401610cf4565b6001600160a01b03166000818152601560205260408120805460ff19166001908117909155600a805491820181559091527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a801805473ffffffffffffffffffffffffffffffffffffffff19169091179055565b611363611dd5565b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffff00000000ffff166201000061ffff878116919091027fffffffffffffffffffffffffffffffffffffffffffffffffffff0000ffffffff169190911764010000000086831602177fffffffffffffffffffffffffffffffffffffffffffff00000000ffffffffffff166601000000000000858316027fffffffffffffffffffffffffffffffffffffffffffff0000ffffffffffffffff16176801000000000000000084831602179182905516818361118686886136a1565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909190610ed390829086906114739087906136c3565b611e2f565b6009546001600160a01b031633146114f85760405162461bcd60e51b815260206004820152602f60248201527f416c69656e466f726d3a206f6e6c79206272696467652063616e20747269676760448201527f65722074686973206d6574686f642100000000000000000000000000000000006064820152608401610cf4565b610e2f8282612557565b61150c3382612616565b50565b611517611dd5565b6001600160a01b03166000908152601360205260409020805460ff19166001179055565b611543611dd5565b61150c3082600019611e2f565b611558611dd5565b6001600160a01b0381166115ae5760405162461bcd60e51b815260206004820152600b60248201527f43616e27742073657420300000000000000000000000000000000000000000006044820152606401610cf4565b6007805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6115e5611dd5565b6115ef600061277c565b565b60065433906001600160a01b031681146116735760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f74207468652060448201527f6e6577206f776e657200000000000000000000000000000000000000000000006064820152608401610cf4565b61150c8161277c565b611684611dd5565b601155565b606060048054610e4290613667565b6116a0611dd5565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b0316036117215760405162461bcd60e51b815260206004820152601a60248201527f54686520706169722063616e6e6f742062652072656d6f7665640000000000006044820152606401610cf4565b6001600160a01b0382166000908152601460205260409020805460ff19168215151790555050565b6009546001600160a01b031633146117c95760405162461bcd60e51b815260206004820152602f60248201527f416c69656e466f726d3a206f6e6c79206272696467652063616e20747269676760448201527f65722074686973206d6574686f642100000000000000000000000000000000006064820152608401610cf4565b610e2f8282612616565b600a81815481106117e357600080fd5b6000918252602090912001546001600160a01b0316905081565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091908381101561189a5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610cf4565b61120b8286868403611e2f565b6118af611dd5565b6001600160a01b0381166119055760405162461bcd60e51b815260206004820181905260248201527f77616c6c6574416464726573732063616e2774206265203020616464726573736044820152606401610cf4565b6040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152610e2f90839083906001600160a01b038316906370a0823190602401602060405180830381865afa15801561196a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061198e91906136d6565b6127a2565b600033610ed3818585612014565b6119a9611dd5565b6001600160a01b0381166119ff5760405162461bcd60e51b815260206004820152601360248201527f43616e27742073657420302061646472657373000000000000000000000000006044820152606401610cf4565b6008805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b611a36611dd5565b6001600160a01b03811615801590611a6757506001600160a01b03811660009081526014602052604090205460ff16155b611ab35760405162461bcd60e51b815260206004820152601660248201527f43616e27742073657420746869732061646472657373000000000000000000006044820152606401610cf4565b600980546001600160a01b0390921673ffffffffffffffffffffffffffffffffffffffff19909216821790556000908152601360205260409020805460ff19166001179055565b611b02611dd5565b600b80547fffffffffffffffffffffffffffffffffffff00000000ffffffffffffffffffff166a010000000000000000000061ffff878116919091027fffffffffffffffffffffffffffffffffffff0000ffffffffffffffffffffffff16919091176c0100000000000000000000000086831602177fffffffffffffffffffffffffffff00000000ffffffffffffffffffffffffffff166e010000000000000000000000000000858316027fffffffffffffffffffffffffffff0000ffffffffffffffffffffffffffffffff161770010000000000000000000000000000000084831602179182905516818361118686886136a1565b611c00611dd5565b6000611c146005546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114611c5e576040519150601f19603f3d011682016040523d82523d6000602084013e611c63565b606091505b505090508061150c5760405162461bcd60e51b815260206004820152601060248201527f5472616e73666572206661696c65642e000000000000000000000000000000006044820152606401610cf4565b611cbc611dd5565b6001600160a01b03166000908152601360205260409020805460ff19169055565b611ce5611dd5565b6012805460ff1916911515919091179055565b611d00611dd5565b600680546001600160a01b03831673ffffffffffffffffffffffffffffffffffffffff199091168117909155611d3e6005546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b600580546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6005546001600160a01b031633146115ef5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cf4565b6001600160a01b038316611eaa5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610cf4565b6001600160a01b038216611f265760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610cf4565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b0383811660009081526001602090815260408083209386168352929052205460001981146111ec57818110156120075760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610cf4565b6111ec8484848403611e2f565b60125460ff166120a9576001600160a01b03831660009081526013602052604090205460ff168061205d57506001600160a01b03821660009081526013602052604090205460ff165b6120a95760405162461bcd60e51b815260206004820152601a60248201527f54726164696e67206973206e6f7420616374697665207965742e0000000000006044820152606401610cf4565b6001600160a01b03831660009081526015602052604090205460ff161580156120eb57506001600160a01b03821660009081526015602052604090205460ff16155b6121375760405162461bcd60e51b815260206004820152600a60248201527f426f742077616c6c6574000000000000000000000000000000000000000000006044820152606401610cf4565b61213f612822565b601254610100900460ff16801561215f575060125462010000900460ff16155b801561218357506001600160a01b03821660009081526014602052604090205460ff165b156121c657306000908152602081905260409020546011546010546103e8916121ab916136ef565b6121b59190613706565b81106121c4576121c481612964565b505b6001600160a01b03831660009081526013602052604081205481908190819060ff1615801561220e57506001600160a01b03861660009081526013602052604090205460ff16155b1561249b576001600160a01b03871660009081526014602052604090205460ff16156122e457600b546103e89061224f9062010000900461ffff16876136ef565b6122599190613706565b600b549094506103e89061227990640100000000900461ffff16876136ef565b6122839190613706565b600b549093506103e8906122a5906601000000000000900461ffff16876136ef565b6122af9190613706565b600b549092506103e8906122d39068010000000000000000900461ffff16876136ef565b6122dd9190613706565b905061249b565b6001600160a01b03861660009081526014602052604090205460ff16156123c457600b546103e890612328906a0100000000000000000000900461ffff16876136ef565b6123329190613706565b600b549094506103e89061235a906c01000000000000000000000000900461ffff16876136ef565b6123649190613706565b600b549093506103e89061238e906e010000000000000000000000000000900461ffff16876136ef565b6123989190613706565b600b549092506103e8906122d390700100000000000000000000000000000000900461ffff16876136ef565b600b546103e8906123ef907201000000000000000000000000000000000000900461ffff16876136ef565b6123f99190613706565b600b549094506103e8906124299074010000000000000000000000000000000000000000900461ffff16876136ef565b6124339190613706565b600b549093506103e89061246590760100000000000000000000000000000000000000000000900461ffff16876136ef565b61246f9190613706565b600b549092506103e89061248e90600160c01b900461ffff16876136ef565b6124989190613706565b90505b600081836124a986886136c3565b6124b391906136c3565b6124bd91906136c3565b905060006124cb8288613624565b90506124d8898983612b80565b811561254c576124e9893084612b80565b84600c60008282546124fb91906136c3565b9250508190555083600d600082825461251491906136c3565b9250508190555085600e600082825461252d91906136c3565b9250508190555082600f600082825461254691906136c3565b90915550505b505050505050505050565b6001600160a01b0382166125ad5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610cf4565b80600260008282546125bf91906136c3565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b0382166126925760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610cf4565b6001600160a01b038216600090815260208190526040902054818110156127215760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f63650000000000000000000000000000000000000000000000000000000000006064820152608401610cf4565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101611f7b565b505050565b6006805473ffffffffffffffffffffffffffffffffffffffff1916905561150c81611d76565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052612777908490612d6d565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316630902f1ac6040518163ffffffff1660e01b8152600401606060405180830381865afa158015612883573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128a79190613746565b506dffffffffffffffffffffffffffff1691506dffffffffffffffffffffffffffff16915061290b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031660009081526020819052604090205490565b601055811580159061291d5750600081115b61292857600061292b565b60015b60128054911515610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff9092169190911790555050565b6012805462ff0000191662010000179055600f54600e54600d54600c54600093929161298f916136c3565b61299991906136c3565b6129a391906136c3565b90508015806129b157508082105b156129bc5750612b71565b60006002600c546129cd9190613706565b905060004790506000600f54600d54846129e791906136c3565b6129f191906136c3565b90506129fc81612e55565b6000612a088347613624565b9050600082600d5483612a1b91906136ef565b612a259190613706565b9050600083612a3487856136ef565b612a3e9190613706565b9050600084600f5485612a5191906136ef565b612a5b9190613706565b9050600087118015612a6d5750600082115b15612a8957612a8987600c54612a839190613624565b83612ff3565b6007546040516000916001600160a01b03169061c35090869084818181858888f193505050503d8060008114612adb576040519150601f19603f3d011682016040523d82523d6000602084013e612ae0565b606091505b50506008546040519192506001600160a01b03169061c3509084906000818181858888f193505050503d8060008114612b35576040519150601f19603f3d011682016040523d82523d6000602084013e612b3a565b606091505b5050600e5490915015612b5357612b5330600e54612616565b50506000600c819055600d819055600e819055600f55505050505050505b506012805462ff000019169055565b6001600160a01b038316612bfc5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610cf4565b6001600160a01b038216612c785760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610cf4565b6001600160a01b03831660009081526020819052604090205481811015612d075760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610cf4565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36111ec565b6000612dc2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166130e69092919063ffffffff16565b9050805160001480612de3575080806020019051810190612de39190613796565b6127775760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610cf4565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110612e8a57612e8a6135f8565b60200260200101906001600160a01b031690816001600160a01b0316815250507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015612f08573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f2c91906137b3565b81600181518110612f3f57612f3f6135f8565b6001600160a01b0392831660209182029290920101526040517f791ac9470000000000000000000000000000000000000000000000000000000081527f00000000000000000000000000000000000000000000000000000000000000009091169063791ac94790612fbd9085906000908690309042906004016137d0565b600060405180830381600087803b158015612fd757600080fd5b505af1158015612feb573d6000803e3d6000fd5b505050505050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663f305d71982308560008061303a6005546001600160a01b031690565b60405160e088901b7fffffffff000000000000000000000000000000000000000000000000000000001681526001600160a01b03958616600482015260248101949094526044840192909252606483015290911660848201524260a482015260c40160606040518083038185885af11580156130ba573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906130df919061380c565b5050505050565b60606130f584846000856130fd565b949350505050565b6060824710156131755760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610cf4565b600080866001600160a01b03168587604051613191919061383a565b60006040518083038185875af1925050503d80600081146131ce576040519150601f19603f3d011682016040523d82523d6000602084013e6131d3565b606091505b50915091506131e4878383876131ef565b979650505050505050565b6060831561325e578251600003613257576001600160a01b0385163b6132575760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610cf4565b50816130f5565b6130f583838151156132735781518083602001fd5b8060405162461bcd60e51b8152600401610cf491906132fa565b6001600160a01b038116811461150c57600080fd5b80356132ad8161328d565b919050565b6000602082840312156132c457600080fd5b81356132cf8161328d565b9392505050565b60005b838110156132f15781810151838201526020016132d9565b50506000910152565b60208152600082518060208401526133198160408501602087016132d6565b601f01601f19169190910160400192915050565b6000806040838503121561334057600080fd5b823561334b8161328d565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b6000602080838503121561338257600080fd5b823567ffffffffffffffff8082111561339a57600080fd5b818501915085601f8301126133ae57600080fd5b8135818111156133c0576133c0613359565b8060051b604051601f19603f830116810181811085821117156133e5576133e5613359565b60405291825284820192508381018501918883111561340357600080fd5b938501935b8285101561342857613419856132a2565b84529385019392850192613408565b98975050505050505050565b803561ffff811681146132ad57600080fd5b60006020828403121561345857600080fd5b6132cf82613434565b6000806000806080858703121561347757600080fd5b61348085613434565b935061348e60208601613434565b925061349c60408601613434565b91506134aa60608601613434565b905092959194509250565b6000806000606084860312156134ca57600080fd5b83356134d58161328d565b925060208401356134e58161328d565b929592945050506040919091013590565b600081518084526020808501945080840160005b8381101561352f5781516001600160a01b03168752958201959082019060010161350a565b509495945050505050565b6020815260006132cf60208301846134f6565b60006020828403121561355f57600080fd5b5035919050565b801515811461150c57600080fd5b6000806040838503121561358757600080fd5b82356135928161328d565b915060208301356135a281613566565b809150509250929050565b600080604083850312156135c057600080fd5b82356135cb8161328d565b915060208301356135a28161328d565b6000602082840312156135ed57600080fd5b81356132cf81613566565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b81810381811115610ed957610ed961360e565b634e487b7160e01b600052603160045260246000fd5b600060001982036136605761366061360e565b5060010190565b600181811c9082168061367b57607f821691505b60208210810361369b57634e487b7160e01b600052602260045260246000fd5b50919050565b61ffff8181168382160190808211156136bc576136bc61360e565b5092915050565b80820180821115610ed957610ed961360e565b6000602082840312156136e857600080fd5b5051919050565b8082028115828204841417610ed957610ed961360e565b60008261372357634e487b7160e01b600052601260045260246000fd5b500490565b80516dffffffffffffffffffffffffffff811681146132ad57600080fd5b60008060006060848603121561375b57600080fd5b61376484613728565b925061377260208501613728565b9150604084015163ffffffff8116811461378b57600080fd5b809150509250925092565b6000602082840312156137a857600080fd5b81516132cf81613566565b6000602082840312156137c557600080fd5b81516132cf8161328d565b85815284602082015260a0604082015260006137ef60a08301866134f6565b6001600160a01b0394909416606083015250608001529392505050565b60008060006060848603121561382157600080fd5b8351925060208401519150604084015190509250925092565b6000825161384c8184602087016132d6565b919091019291505056fea264697066735822122061634b3b63cfecc7c604be8b9f6e78ca1c43b605a2cf85173003c5912e233b7c64736f6c63430008110033

Deployed Bytecode

0x6080604052600436106103b15760003560e01c806392136913116101e7578063bbc0c7421161010d578063e30c3978116100a0578063f275f64b1161006f578063f275f64b14610c02578063f2fde38b14610c22578063f637434214610c42578063fc66e78414610c6d57600080fd5b8063e30c397814610b80578063e71dc3f514610b9e578063ea2f0b3714610bbf578063f11a24d314610bdf57600080fd5b8063dbf1cd13116100dc578063dbf1cd1314610aef578063dc9c30ca14610b05578063dd62ed3e14610b25578063e086e5ec14610b6b57600080fd5b8063bbc0c74214610a61578063c816841b14610a7b578063cb6bb47514610aaf578063d7f5b35914610acf57600080fd5b8063a2ece63611610185578063a9059cbb11610154578063a9059cbb146109c6578063adb873bd146109e6578063b2d2e58614610a0f578063b62496f514610a3157600080fd5b8063a2ece63614610946578063a3c573eb14610966578063a457c2d714610986578063a522ad25146109a657600080fd5b80639a7a23d6116101c15780639a7a23d6146108a35780639bb19a32146108c35780639cbc1ad6146108f65780639dc29fac1461092657600080fd5b8063921369131461083257806395d89b411461085f57806398b516221461087457600080fd5b806339509351116102d757806370a082311161026a5780637bce5a04116102395780637bce5a041461079a57806382d58ce9146107bf57806385c5b319146107df5780638da5cb5b1461081457600080fd5b806370a0823114610706578063715018a61461073c578063735de9f71461075157806379ba50971461078557600080fd5b80634866bad1116102a65780634866bad1146106765780635342acb41461069657806355d889eb146106c6578063660d0af4146106e657600080fd5b806339509351146105f657806340c10f191461061657806342966c6814610636578063437823ec1461065657600080fd5b80631c8a6adc1161034f578063269b17171161031e578063269b1717146105785780632a3606311461059a578063313ce567146105ba578063392d6af7146105d657600080fd5b80631c8a6adc146104e757806322204e8514610518578063239bda491461053857806323b872dd1461055857600080fd5b8063074b323f1161038b578063074b323f1461043e578063095ea7b3146104785780630e460b73146104a857806318160ddd146104c857600080fd5b80630305caff146103bd578063053e39a3146103df57806306fdde031461041c57600080fd5b366103b857005b600080fd5b3480156103c957600080fd5b506103dd6103d83660046132b2565b610c88565b005b3480156103eb57600080fd5b506007546103ff906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561042857600080fd5b50610431610e33565b60405161041391906132fa565b34801561044a57600080fd5b50600b546104659068010000000000000000900461ffff1681565b60405161ffff9091168152602001610413565b34801561048457600080fd5b5061049861049336600461332d565b610ec5565b6040519015158152602001610413565b3480156104b457600080fd5b506103dd6104c336600461336f565b610edf565b3480156104d457600080fd5b506002545b604051908152602001610413565b3480156104f357600080fd5b50600b54610465907201000000000000000000000000000000000000900461ffff1681565b34801561052457600080fd5b506103dd610533366004613446565b611040565b34801561054457600080fd5b506103dd610553366004613461565b61107d565b34801561056457600080fd5b506104986105733660046134b5565b6111f2565b34801561058457600080fd5b5061058d611216565b604051610413919061353a565b3480156105a657600080fd5b506103dd6105b53660046132b2565b611277565b3480156105c657600080fd5b5060405160098152602001610413565b3480156105e257600080fd5b506103dd6105f1366004613461565b61135b565b34801561060257600080fd5b5061049861061136600461332d565b611439565b34801561062257600080fd5b506103dd61063136600461332d565b611478565b34801561064257600080fd5b506103dd61065136600461354d565b611502565b34801561066257600080fd5b506103dd6106713660046132b2565b61150f565b34801561068257600080fd5b506103dd6106913660046132b2565b61153b565b3480156106a257600080fd5b506104986106b13660046132b2565b60136020526000908152604090205460ff1681565b3480156106d257600080fd5b506008546103ff906001600160a01b031681565b3480156106f257600080fd5b506103dd6107013660046132b2565b611550565b34801561071257600080fd5b506104d96107213660046132b2565b6001600160a01b031660009081526020819052604090205490565b34801561074857600080fd5b506103dd6115dd565b34801561075d57600080fd5b506103ff7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b34801561079157600080fd5b506103dd6115f1565b3480156107a657600080fd5b50600b54610465906601000000000000900461ffff1681565b3480156107cb57600080fd5b506103dd6107da36600461354d565b61167c565b3480156107eb57600080fd5b50600b5461046590760100000000000000000000000000000000000000000000900461ffff1681565b34801561082057600080fd5b506005546001600160a01b03166103ff565b34801561083e57600080fd5b50600b54610465906e010000000000000000000000000000900461ffff1681565b34801561086b57600080fd5b50610431611689565b34801561088057600080fd5b50600b5461046590700100000000000000000000000000000000900461ffff1681565b3480156108af57600080fd5b506103dd6108be366004613574565b611698565b3480156108cf57600080fd5b50600b546104659074010000000000000000000000000000000000000000900461ffff1681565b34801561090257600080fd5b506104986109113660046132b2565b60156020526000908152604090205460ff1681565b34801561093257600080fd5b506103dd61094136600461332d565b611749565b34801561095257600080fd5b506103ff61096136600461354d565b6117d3565b34801561097257600080fd5b506009546103ff906001600160a01b031681565b34801561099257600080fd5b506104986109a136600461332d565b6117fd565b3480156109b257600080fd5b506103dd6109c13660046135ad565b6118a7565b3480156109d257600080fd5b506104986109e136600461332d565b611993565b3480156109f257600080fd5b50600b54610465906a0100000000000000000000900461ffff1681565b348015610a1b57600080fd5b50600b5461046590600160c01b900461ffff1681565b348015610a3d57600080fd5b50610498610a4c3660046132b2565b60146020526000908152604090205460ff1681565b348015610a6d57600080fd5b506012546104989060ff1681565b348015610a8757600080fd5b506103ff7f00000000000000000000000091c8db6d45522fb5a3a1b9a6f47f92571c30154081565b348015610abb57600080fd5b506103dd610aca3660046132b2565b6119a1565b348015610adb57600080fd5b506103dd610aea3660046132b2565b611a2e565b348015610afb57600080fd5b506104d960115481565b348015610b1157600080fd5b506103dd610b20366004613461565b611afa565b348015610b3157600080fd5b506104d9610b403660046135ad565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b348015610b7757600080fd5b506103dd611bf8565b348015610b8c57600080fd5b506006546001600160a01b03166103ff565b348015610baa57600080fd5b50600b546104659062010000900461ffff1681565b348015610bcb57600080fd5b506103dd610bda3660046132b2565b611cb4565b348015610beb57600080fd5b50600b5461046590640100000000900461ffff1681565b348015610c0e57600080fd5b506103dd610c1d3660046135db565b611cdd565b348015610c2e57600080fd5b506103dd610c3d3660046132b2565b611cf8565b348015610c4e57600080fd5b50600b54610465906c01000000000000000000000000900461ffff1681565b348015610c7957600080fd5b50600b546104659061ffff1681565b610c90611dd5565b6001600160a01b03811660009081526015602052604090205460ff16610cfd5760405162461bcd60e51b815260206004820152601060248201527f57616c6c6574206e6f742061646465640000000000000000000000000000000060448201526064015b60405180910390fd5b6001600160a01b0381166000908152601560205260408120805460ff191690555b600a54811015610e2f57816001600160a01b0316600a8281548110610d4557610d456135f8565b6000918252602090912001546001600160a01b031603610e1d57600a8054610d6f90600190613624565b81548110610d7f57610d7f6135f8565b600091825260209091200154600a80546001600160a01b039092169183908110610dab57610dab6135f8565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550600a805480610dea57610dea613637565b6000828152602090208101600019908101805473ffffffffffffffffffffffffffffffffffffffff191690550190555050565b80610e278161364d565b915050610d1e565b5050565b606060038054610e4290613667565b80601f0160208091040260200160405190810160405280929190818152602001828054610e6e90613667565b8015610ebb5780601f10610e9057610100808354040283529160200191610ebb565b820191906000526020600020905b815481529060010190602001808311610e9e57829003601f168201915b5050505050905090565b600033610ed3818585611e2f565b60019150505b92915050565b610ee7611dd5565b60005b8151811015610e2f5760156000838381518110610f0957610f096135f8565b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff1615610f7d5760405162461bcd60e51b815260206004820152601460248201527f57616c6c657420616c72656164792061646465640000000000000000000000006044820152606401610cf4565b600160156000848481518110610f9557610f956135f8565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908315150217905550600a828281518110610fe857610fe86135f8565b602090810291909101810151825460018101845560009384529190922001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b039092169190911790556110398161364d565b9050610eea565b611048611dd5565b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00001661ffff92909216919091179055565b611085611dd5565b600b80547fffffffffffffffffffff00000000ffffffffffffffffffffffffffffffffffff16720100000000000000000000000000000000000061ffff878116919091027fffffffffffffffffffff0000ffffffffffffffffffffffffffffffffffffffff16919091177401000000000000000000000000000000000000000086831602177fffffffffffff00000000ffffffffffffffffffffffffffffffffffffffffffff16760100000000000000000000000000000000000000000000858316027fffffffffffff0000ffffffffffffffffffffffffffffffffffffffffffffffff1617600160c01b84831602179182905516818361118686886136a1565b61119091906136a1565b61119a91906136a1565b61ffff1611156111ec5760405162461bcd60e51b815260206004820181905260248201527f4d757374206b65657020666565732062656c6f77206d61784665654c696d69746044820152606401610cf4565b50505050565b600033611200858285611f88565b61120b858585612014565b506001949350505050565b6060600a805480602002602001604051908101604052809291908181526020018280548015610ebb57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611250575050505050905090565b61127f611dd5565b6001600160a01b03811660009081526015602052604090205460ff16156112e85760405162461bcd60e51b815260206004820152601460248201527f57616c6c657420616c72656164792061646465640000000000000000000000006044820152606401610cf4565b6001600160a01b03166000818152601560205260408120805460ff19166001908117909155600a805491820181559091527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a801805473ffffffffffffffffffffffffffffffffffffffff19169091179055565b611363611dd5565b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffff00000000ffff166201000061ffff878116919091027fffffffffffffffffffffffffffffffffffffffffffffffffffff0000ffffffff169190911764010000000086831602177fffffffffffffffffffffffffffffffffffffffffffff00000000ffffffffffff166601000000000000858316027fffffffffffffffffffffffffffffffffffffffffffff0000ffffffffffffffff16176801000000000000000084831602179182905516818361118686886136a1565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909190610ed390829086906114739087906136c3565b611e2f565b6009546001600160a01b031633146114f85760405162461bcd60e51b815260206004820152602f60248201527f416c69656e466f726d3a206f6e6c79206272696467652063616e20747269676760448201527f65722074686973206d6574686f642100000000000000000000000000000000006064820152608401610cf4565b610e2f8282612557565b61150c3382612616565b50565b611517611dd5565b6001600160a01b03166000908152601360205260409020805460ff19166001179055565b611543611dd5565b61150c3082600019611e2f565b611558611dd5565b6001600160a01b0381166115ae5760405162461bcd60e51b815260206004820152600b60248201527f43616e27742073657420300000000000000000000000000000000000000000006044820152606401610cf4565b6007805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6115e5611dd5565b6115ef600061277c565b565b60065433906001600160a01b031681146116735760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f74207468652060448201527f6e6577206f776e657200000000000000000000000000000000000000000000006064820152608401610cf4565b61150c8161277c565b611684611dd5565b601155565b606060048054610e4290613667565b6116a0611dd5565b7f00000000000000000000000091c8db6d45522fb5a3a1b9a6f47f92571c3015406001600160a01b0316826001600160a01b0316036117215760405162461bcd60e51b815260206004820152601a60248201527f54686520706169722063616e6e6f742062652072656d6f7665640000000000006044820152606401610cf4565b6001600160a01b0382166000908152601460205260409020805460ff19168215151790555050565b6009546001600160a01b031633146117c95760405162461bcd60e51b815260206004820152602f60248201527f416c69656e466f726d3a206f6e6c79206272696467652063616e20747269676760448201527f65722074686973206d6574686f642100000000000000000000000000000000006064820152608401610cf4565b610e2f8282612616565b600a81815481106117e357600080fd5b6000918252602090912001546001600160a01b0316905081565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091908381101561189a5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610cf4565b61120b8286868403611e2f565b6118af611dd5565b6001600160a01b0381166119055760405162461bcd60e51b815260206004820181905260248201527f77616c6c6574416464726573732063616e2774206265203020616464726573736044820152606401610cf4565b6040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152610e2f90839083906001600160a01b038316906370a0823190602401602060405180830381865afa15801561196a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061198e91906136d6565b6127a2565b600033610ed3818585612014565b6119a9611dd5565b6001600160a01b0381166119ff5760405162461bcd60e51b815260206004820152601360248201527f43616e27742073657420302061646472657373000000000000000000000000006044820152606401610cf4565b6008805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b611a36611dd5565b6001600160a01b03811615801590611a6757506001600160a01b03811660009081526014602052604090205460ff16155b611ab35760405162461bcd60e51b815260206004820152601660248201527f43616e27742073657420746869732061646472657373000000000000000000006044820152606401610cf4565b600980546001600160a01b0390921673ffffffffffffffffffffffffffffffffffffffff19909216821790556000908152601360205260409020805460ff19166001179055565b611b02611dd5565b600b80547fffffffffffffffffffffffffffffffffffff00000000ffffffffffffffffffff166a010000000000000000000061ffff878116919091027fffffffffffffffffffffffffffffffffffff0000ffffffffffffffffffffffff16919091176c0100000000000000000000000086831602177fffffffffffffffffffffffffffff00000000ffffffffffffffffffffffffffff166e010000000000000000000000000000858316027fffffffffffffffffffffffffffff0000ffffffffffffffffffffffffffffffff161770010000000000000000000000000000000084831602179182905516818361118686886136a1565b611c00611dd5565b6000611c146005546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114611c5e576040519150601f19603f3d011682016040523d82523d6000602084013e611c63565b606091505b505090508061150c5760405162461bcd60e51b815260206004820152601060248201527f5472616e73666572206661696c65642e000000000000000000000000000000006044820152606401610cf4565b611cbc611dd5565b6001600160a01b03166000908152601360205260409020805460ff19169055565b611ce5611dd5565b6012805460ff1916911515919091179055565b611d00611dd5565b600680546001600160a01b03831673ffffffffffffffffffffffffffffffffffffffff199091168117909155611d3e6005546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b600580546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6005546001600160a01b031633146115ef5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cf4565b6001600160a01b038316611eaa5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610cf4565b6001600160a01b038216611f265760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610cf4565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b0383811660009081526001602090815260408083209386168352929052205460001981146111ec57818110156120075760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610cf4565b6111ec8484848403611e2f565b60125460ff166120a9576001600160a01b03831660009081526013602052604090205460ff168061205d57506001600160a01b03821660009081526013602052604090205460ff165b6120a95760405162461bcd60e51b815260206004820152601a60248201527f54726164696e67206973206e6f7420616374697665207965742e0000000000006044820152606401610cf4565b6001600160a01b03831660009081526015602052604090205460ff161580156120eb57506001600160a01b03821660009081526015602052604090205460ff16155b6121375760405162461bcd60e51b815260206004820152600a60248201527f426f742077616c6c6574000000000000000000000000000000000000000000006044820152606401610cf4565b61213f612822565b601254610100900460ff16801561215f575060125462010000900460ff16155b801561218357506001600160a01b03821660009081526014602052604090205460ff165b156121c657306000908152602081905260409020546011546010546103e8916121ab916136ef565b6121b59190613706565b81106121c4576121c481612964565b505b6001600160a01b03831660009081526013602052604081205481908190819060ff1615801561220e57506001600160a01b03861660009081526013602052604090205460ff16155b1561249b576001600160a01b03871660009081526014602052604090205460ff16156122e457600b546103e89061224f9062010000900461ffff16876136ef565b6122599190613706565b600b549094506103e89061227990640100000000900461ffff16876136ef565b6122839190613706565b600b549093506103e8906122a5906601000000000000900461ffff16876136ef565b6122af9190613706565b600b549092506103e8906122d39068010000000000000000900461ffff16876136ef565b6122dd9190613706565b905061249b565b6001600160a01b03861660009081526014602052604090205460ff16156123c457600b546103e890612328906a0100000000000000000000900461ffff16876136ef565b6123329190613706565b600b549094506103e89061235a906c01000000000000000000000000900461ffff16876136ef565b6123649190613706565b600b549093506103e89061238e906e010000000000000000000000000000900461ffff16876136ef565b6123989190613706565b600b549092506103e8906122d390700100000000000000000000000000000000900461ffff16876136ef565b600b546103e8906123ef907201000000000000000000000000000000000000900461ffff16876136ef565b6123f99190613706565b600b549094506103e8906124299074010000000000000000000000000000000000000000900461ffff16876136ef565b6124339190613706565b600b549093506103e89061246590760100000000000000000000000000000000000000000000900461ffff16876136ef565b61246f9190613706565b600b549092506103e89061248e90600160c01b900461ffff16876136ef565b6124989190613706565b90505b600081836124a986886136c3565b6124b391906136c3565b6124bd91906136c3565b905060006124cb8288613624565b90506124d8898983612b80565b811561254c576124e9893084612b80565b84600c60008282546124fb91906136c3565b9250508190555083600d600082825461251491906136c3565b9250508190555085600e600082825461252d91906136c3565b9250508190555082600f600082825461254691906136c3565b90915550505b505050505050505050565b6001600160a01b0382166125ad5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610cf4565b80600260008282546125bf91906136c3565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b0382166126925760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610cf4565b6001600160a01b038216600090815260208190526040902054818110156127215760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f63650000000000000000000000000000000000000000000000000000000000006064820152608401610cf4565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101611f7b565b505050565b6006805473ffffffffffffffffffffffffffffffffffffffff1916905561150c81611d76565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052612777908490612d6d565b6000807f00000000000000000000000091c8db6d45522fb5a3a1b9a6f47f92571c3015406001600160a01b0316630902f1ac6040518163ffffffff1660e01b8152600401606060405180830381865afa158015612883573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128a79190613746565b506dffffffffffffffffffffffffffff1691506dffffffffffffffffffffffffffff16915061290b7f00000000000000000000000091c8db6d45522fb5a3a1b9a6f47f92571c3015406001600160a01b031660009081526020819052604090205490565b601055811580159061291d5750600081115b61292857600061292b565b60015b60128054911515610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff9092169190911790555050565b6012805462ff0000191662010000179055600f54600e54600d54600c54600093929161298f916136c3565b61299991906136c3565b6129a391906136c3565b90508015806129b157508082105b156129bc5750612b71565b60006002600c546129cd9190613706565b905060004790506000600f54600d54846129e791906136c3565b6129f191906136c3565b90506129fc81612e55565b6000612a088347613624565b9050600082600d5483612a1b91906136ef565b612a259190613706565b9050600083612a3487856136ef565b612a3e9190613706565b9050600084600f5485612a5191906136ef565b612a5b9190613706565b9050600087118015612a6d5750600082115b15612a8957612a8987600c54612a839190613624565b83612ff3565b6007546040516000916001600160a01b03169061c35090869084818181858888f193505050503d8060008114612adb576040519150601f19603f3d011682016040523d82523d6000602084013e612ae0565b606091505b50506008546040519192506001600160a01b03169061c3509084906000818181858888f193505050503d8060008114612b35576040519150601f19603f3d011682016040523d82523d6000602084013e612b3a565b606091505b5050600e5490915015612b5357612b5330600e54612616565b50506000600c819055600d819055600e819055600f55505050505050505b506012805462ff000019169055565b6001600160a01b038316612bfc5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610cf4565b6001600160a01b038216612c785760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610cf4565b6001600160a01b03831660009081526020819052604090205481811015612d075760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610cf4565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36111ec565b6000612dc2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166130e69092919063ffffffff16565b9050805160001480612de3575080806020019051810190612de39190613796565b6127775760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610cf4565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110612e8a57612e8a6135f8565b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015612f08573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f2c91906137b3565b81600181518110612f3f57612f3f6135f8565b6001600160a01b0392831660209182029290920101526040517f791ac9470000000000000000000000000000000000000000000000000000000081527f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d9091169063791ac94790612fbd9085906000908690309042906004016137d0565b600060405180830381600087803b158015612fd757600080fd5b505af1158015612feb573d6000803e3d6000fd5b505050505050565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663f305d71982308560008061303a6005546001600160a01b031690565b60405160e088901b7fffffffff000000000000000000000000000000000000000000000000000000001681526001600160a01b03958616600482015260248101949094526044840192909252606483015290911660848201524260a482015260c40160606040518083038185885af11580156130ba573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906130df919061380c565b5050505050565b60606130f584846000856130fd565b949350505050565b6060824710156131755760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610cf4565b600080866001600160a01b03168587604051613191919061383a565b60006040518083038185875af1925050503d80600081146131ce576040519150601f19603f3d011682016040523d82523d6000602084013e6131d3565b606091505b50915091506131e4878383876131ef565b979650505050505050565b6060831561325e578251600003613257576001600160a01b0385163b6132575760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610cf4565b50816130f5565b6130f583838151156132735781518083602001fd5b8060405162461bcd60e51b8152600401610cf491906132fa565b6001600160a01b038116811461150c57600080fd5b80356132ad8161328d565b919050565b6000602082840312156132c457600080fd5b81356132cf8161328d565b9392505050565b60005b838110156132f15781810151838201526020016132d9565b50506000910152565b60208152600082518060208401526133198160408501602087016132d6565b601f01601f19169190910160400192915050565b6000806040838503121561334057600080fd5b823561334b8161328d565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b6000602080838503121561338257600080fd5b823567ffffffffffffffff8082111561339a57600080fd5b818501915085601f8301126133ae57600080fd5b8135818111156133c0576133c0613359565b8060051b604051601f19603f830116810181811085821117156133e5576133e5613359565b60405291825284820192508381018501918883111561340357600080fd5b938501935b8285101561342857613419856132a2565b84529385019392850192613408565b98975050505050505050565b803561ffff811681146132ad57600080fd5b60006020828403121561345857600080fd5b6132cf82613434565b6000806000806080858703121561347757600080fd5b61348085613434565b935061348e60208601613434565b925061349c60408601613434565b91506134aa60608601613434565b905092959194509250565b6000806000606084860312156134ca57600080fd5b83356134d58161328d565b925060208401356134e58161328d565b929592945050506040919091013590565b600081518084526020808501945080840160005b8381101561352f5781516001600160a01b03168752958201959082019060010161350a565b509495945050505050565b6020815260006132cf60208301846134f6565b60006020828403121561355f57600080fd5b5035919050565b801515811461150c57600080fd5b6000806040838503121561358757600080fd5b82356135928161328d565b915060208301356135a281613566565b809150509250929050565b600080604083850312156135c057600080fd5b82356135cb8161328d565b915060208301356135a28161328d565b6000602082840312156135ed57600080fd5b81356132cf81613566565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b81810381811115610ed957610ed961360e565b634e487b7160e01b600052603160045260246000fd5b600060001982036136605761366061360e565b5060010190565b600181811c9082168061367b57607f821691505b60208210810361369b57634e487b7160e01b600052602260045260246000fd5b50919050565b61ffff8181168382160190808211156136bc576136bc61360e565b5092915050565b80820180821115610ed957610ed961360e565b6000602082840312156136e857600080fd5b5051919050565b8082028115828204841417610ed957610ed961360e565b60008261372357634e487b7160e01b600052601260045260246000fd5b500490565b80516dffffffffffffffffffffffffffff811681146132ad57600080fd5b60008060006060848603121561375b57600080fd5b61376484613728565b925061377260208501613728565b9150604084015163ffffffff8116811461378b57600080fd5b809150509250925092565b6000602082840312156137a857600080fd5b81516132cf81613566565b6000602082840312156137c557600080fd5b81516132cf8161328d565b85815284602082015260a0604082015260006137ef60a08301866134f6565b6001600160a01b0394909416606083015250608001529392505050565b60008060006060848603121561382157600080fd5b8351925060208401519150604084015190509250925092565b6000825161384c8184602087016132d6565b919091019291505056fea264697066735822122061634b3b63cfecc7c604be8b9f6e78ca1c43b605a2cf85173003c5912e233b7c64736f6c63430008110033

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.