Token Magnate Finance

DeFi  
 

Overview [ERC-20]

Price
$0.00 @ 0.000000 Eth
Fully Diluted Market Cap
Max Total Supply:
1,000,000,000 MAG

Holders:
1,225
Filtered by Token Holder (Friend.tech: Shares)

Balance
2.83849333 MAG

Value
$0.00
0xcf205808ed36593aa40a44f10c7f7c2f67d4a4d4
Loading
[ Download CSV Export  ] 
Loading
[ Download CSV Export  ] 
Loading

OVERVIEW

Magnate Finance, at its core, is the first Metaverse based Finance Protocol on Arbitrum, adopted a dynamic interest rate model and created more capital-efficient risk management pools.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Token

Compiler Version
v0.8.6+commit.11564f7e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at basescan.org on 2023-08-01
*/

// SPDX-License-Identifier: MIT

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) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}


pragma solidity ^0.8.0;

/**
 * @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 () {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}


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);
}


pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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 `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, 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 `sender` to `recipient` 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 sender, address recipient, uint256 amount) external returns (bool);

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


pragma solidity ^0.8.0;

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



pragma solidity ^0.8.0;



/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of returning `false` on failure. This behavior is nonetheless conventional
 * and does not conflict with the expectations of ERC20 applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping (address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5,05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

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

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

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

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

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

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

        return true;
    }

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

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

        return true;
    }

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

        _beforeTokenTransfer(sender, recipient, amount);

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

        emit Transfer(sender, recipient, amount);
    }

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

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

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

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

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

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

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

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(address owner, address spender, uint256 amount) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

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

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



pragma solidity ^0.8.0;

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        // Divide the signature in r, s and v variables
        bytes32 r;
        bytes32 s;
        uint8 v;

        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            // solhint-disable-next-line no-inline-assembly
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
        } else if (signature.length == 64) {
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            // solhint-disable-next-line no-inline-assembly
            assembly {
                let vs := mload(add(signature, 0x40))
                r := mload(add(signature, 0x20))
                s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
                v := add(shr(255, vs), 27)
            }
        } else {
            revert("ECDSA: invalid signature length");
        }

        return recover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        require(uint256(s) <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0, "ECDSA: invalid signature 's' value");
        require(v == 27 || v == 28, "ECDSA: invalid signature 'v' value");

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        require(signer != address(0), "ECDSA: invalid signature");

        return signer;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}



pragma solidity ^0.8.0;

/**
 * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
 *
 * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,
 * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding
 * they need in their contracts using a combination of `abi.encode` and `keccak256`.
 *
 * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
 * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
 * ({_hashTypedDataV4}).
 *
 * The implementation of the domain separator was designed to be as efficient as possible while still properly updating
 * the chain id to protect against replay attacks on an eventual fork of the chain.
 *
 * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
 * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
 *
 * _Available since v3.4._
 */
abstract contract EIP712 {
    /* solhint-disable var-name-mixedcase */
    // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to
    // invalidate the cached domain separator if the chain id changes.
    bytes32 private immutable _CACHED_DOMAIN_SEPARATOR;
    uint256 private immutable _CACHED_CHAIN_ID;

    bytes32 private immutable _HASHED_NAME;
    bytes32 private immutable _HASHED_VERSION;
    bytes32 private immutable _TYPE_HASH;
    /* solhint-enable var-name-mixedcase */

    /**
     * @dev Initializes the domain separator and parameter caches.
     *
     * The meaning of `name` and `version` is specified in
     * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
     *
     * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
     * - `version`: the current major version of the signing domain.
     *
     * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
     * contract upgrade].
     */
    constructor(string memory name, string memory version) {
        bytes32 hashedName = keccak256(bytes(name));
        bytes32 hashedVersion = keccak256(bytes(version));
        bytes32 typeHash = keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)");
        _HASHED_NAME = hashedName;
        _HASHED_VERSION = hashedVersion;
        _CACHED_CHAIN_ID = block.chainid;
        _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion);
        _TYPE_HASH = typeHash;
    }

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view returns (bytes32) {
        if (block.chainid == _CACHED_CHAIN_ID) {
            return _CACHED_DOMAIN_SEPARATOR;
        } else {
            return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION);
        }
    }

    function _buildDomainSeparator(bytes32 typeHash, bytes32 name, bytes32 version) private view returns (bytes32) {
        return keccak256(
            abi.encode(
                typeHash,
                name,
                version,
                block.chainid,
                address(this)
            )
        );
    }

    /**
     * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
     * function returns the hash of the fully encoded EIP712 message for this domain.
     *
     * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
     *
     * ```solidity
     * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
     *     keccak256("Mail(address to,string contents)"),
     *     mailTo,
     *     keccak256(bytes(mailContents))
     * )));
     * address signer = ECDSA.recover(digest, signature);
     * ```
     */
    function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
        return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash);
    }
}



pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}



pragma solidity ^0.8.0;





/**
 * @dev Implementation 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.
 *
 * _Available since v3.4._
 */
abstract contract ERC20Permit is ERC20, IERC20Permit, EIP712 {
    using Counters for Counters.Counter;

    mapping (address => Counters.Counter) private _nonces;

    // solhint-disable-next-line var-name-mixedcase
    bytes32 private immutable _PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");

    /**
     * @dev Initializes the {EIP712} domain separator using the `name` parameter, and setting `version` to `"1"`.
     *
     * It's a good idea to use the same `name` that is defined as the ERC20 token name.
     */
    constructor(string memory name) EIP712(name, "1") {
    }

    /**
     * @dev See {IERC20Permit-permit}.
     */
    function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public virtual override {
        // solhint-disable-next-line not-rely-on-time
        require(block.timestamp <= deadline, "ERC20Permit: expired deadline");

        bytes32 structHash = keccak256(
            abi.encode(
                _PERMIT_TYPEHASH,
                owner,
                spender,
                value,
                _useNonce(owner),
                deadline
            )
        );

        bytes32 hash = _hashTypedDataV4(structHash);

        address signer = ECDSA.recover(hash, v, r, s);
        require(signer == owner, "ERC20Permit: invalid signature");

        _approve(owner, spender, value);
    }

    /**
     * @dev See {IERC20Permit-nonces}.
     */
    function nonces(address owner) public view virtual override returns (uint256) {
        return _nonces[owner].current();
    }

    /**
     * @dev See {IERC20Permit-DOMAIN_SEPARATOR}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view override returns (bytes32) {
        return _domainSeparatorV4();
    }

    /**
     * @dev "Consume a nonce": return the current value and increment.
     *
     * _Available since v4.1._
     */
    function _useNonce(address owner) internal virtual returns (uint256 current) {
        Counters.Counter storage nonce = _nonces[owner];
        current = nonce.current();
        nonce.increment();
    }
}




pragma solidity >=0.6.0 <0.9.0;

/**
 * @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.
 */



pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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



pragma solidity >=0.6.0 <0.9.0;

pragma solidity >=0.6.0;

// helper methods for interacting with ERC20 tokens and sending ETH that do not consistently return true/false
library SafeERC20 {
    function _safeApprove(IERC20 token, address to, uint value) internal {
        // bytes4(keccak256(bytes('approve(address,uint256)')));
        (bool success, bytes memory data) = address(token).call(abi.encodeWithSelector(0x095ea7b3, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), '!APPROVE_FAILED');
    }
    function safeApprove(IERC20 token, address to, uint value) internal {
        if (value > 0 && token.allowance(msg.sender, to) > 0) _safeApprove(token, to, 0);
        return _safeApprove(token, to, value);
    }

    function safeTransfer(IERC20 token, address to, uint value) internal {
        // bytes4(keccak256(bytes('transfer(address,uint256)')));
        (bool success, bytes memory data) = address(token).call(abi.encodeWithSelector(0xa9059cbb, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), '!TRANSFER_FAILED');
    }

    function safeTransferFrom(IERC20 token, address from, address to, uint value) internal {
        // bytes4(keccak256(bytes('transferFrom(address,address,uint256)')));
        (bool success, bytes memory data) = address(token).call(abi.encodeWithSelector(0x23b872dd, from, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), '!TRANSFER_FROM_FAILED');
    }

    function safeTransferETH(address to, uint value) internal {
        (bool success,) = to.call{value:value}(new bytes(0));
        require(success, '!ETH_TRANSFER_FAILED');
    }
}


pragma solidity ^0.8.0;



/**
 * @title TokenVesting
 * @dev A token holder contract that can release its token balance gradually like a
 * typical vesting scheme, with a cliff and vesting period. Optionally revocable by the
 * owner.
 */
contract TokenVesting {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    event Released(uint256 amount);

    address public beneficiary;

    uint256 public cliff;
    uint256 public start;
    uint256 public duration;

    mapping(address => uint256) public released;

    /*
     * @dev Creates a vesting contract that vests its balance of any ERC20 token to the
     * _beneficiary, gradually in a linear fashion until _start + _duration. By then all
     * of the balance will have vested.
     * @param _beneficiary
     * @param _cliff duration in seconds of the cliff in which tokens will begin to vest
     * @param _duration
     */

    constructor(
        address _beneficiary,
        uint256 _start,
        uint256 _cliff,
        uint256 _duration
    ) {
        require(_beneficiary != address(0));
        require(_cliff <= _duration);

        beneficiary = _beneficiary;
        duration = _duration;
        cliff = _start.add(_cliff);
        start = _start;
    }

    /**
     * @notice Transfers vested tokens to beneficiary.
     * @param token ERC20 token which is being vested
     */

    function release(address token) external {
        uint256 unreleased = releasableAmount(token);

        require(unreleased > 0);

        released[token] = released[token].add(unreleased);

        IERC20(token).safeTransfer(beneficiary, unreleased);

        emit Released(unreleased);
    }

    /**
     * @dev Calculates the amount that has already vested but hasn't been released yet.
     * @param token ERC20 token which is being vested
     */

    function releasableAmount(address token) public view returns (uint256) {
        return vestedAmount(token).sub(released[token]);
    }

    /**
     * @dev Calculates the amount that has already vested.
     * @param token ERC20 token which is being vested
     */

    function vestedAmount(address token) public view returns (uint256) {
        uint256 currentBalance = IERC20(token).balanceOf(address(this));

        uint256 totalBalance = currentBalance.add(released[token]);

        if (block.timestamp < cliff) {
            return 0;
        } else if (block.timestamp >= start.add(duration)) {
            return totalBalance;
        } else {
            return totalBalance.mul(block.timestamp.sub(start)).div(duration);
        }
    }
}


pragma solidity ^0.8.0;

contract Token is Ownable, ERC20Permit {
    TokenVesting public treasuryLockToken;
    TokenVesting public motivateLockToken;
    TokenVesting public IDOLockToken;
    TokenVesting public teamLockToken;
    bool once;
    uint256 public constant MAX_SUPPLY = 1000 * 1e6 * 1e18;

    constructor(string memory name_, string memory symbol_) Ownable() ERC20(name_,symbol_) ERC20Permit(name_) {
        treasuryLockToken = new TokenVesting(msg.sender, block.timestamp + 90 days, 0 days, 150 days);
        motivateLockToken = new TokenVesting(msg.sender, block.timestamp + 90 days, 0 days, 240 days);
        IDOLockToken = new TokenVesting(msg.sender, block.timestamp + 90 days, 0 days, 150 days);
        teamLockToken = new TokenVesting(msg.sender, block.timestamp + 180 days, 0 days, 0 days);
        _mint(msg.sender, 150 * 1e6 * 1e18);
        _mint(address(treasuryLockToken), 100 * 1e6 * 1e18);
        _mint(address(motivateLockToken), 80 * 1e6 * 1e18);
        _mint(address(IDOLockToken), 100 * 1e6 * 1e18);
        _mint(address(teamLockToken), 20 * 1e6 * 1e18);
    }

    function mintToFarm(address _farm) external onlyOwner {
        require(!once, "only can mint once");
        once = true;
        _mint(_farm, 550 * 1e6 * 1e18);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"IDOLockToken","outputs":[{"internalType":"contract TokenVesting","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"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":"_farm","type":"address"}],"name":"mintToFarm","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"motivateLockToken","outputs":[{"internalType":"contract TokenVesting","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"teamLockToken","outputs":[{"internalType":"contract TokenVesting","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasuryLockToken","outputs":[{"internalType":"contract TokenVesting","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

6101406040527f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9610120523480156200003757600080fd5b506040516200212c3803806200212c8339810160408190526200005a916200069d565b8180604051806040016040528060018152602001603160f81b815250848460006200008a6200044660201b60201c565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3508151620000e990600490602085019062000532565b508051620000ff90600590602084019062000532565b5050825160209384012082519284019290922060c083815260e08290524660a0818152604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818a0181905281830198909852606081019590955260808086019390935230858301528051808603909201825293909201909252805194019390932090925261010052503390506200019d426276a70062000707565b600062c5c100604051620001b190620005c1565b6001600160a01b039094168452602084019290925260408301526060820152608001604051809103906000f080158015620001f0573d6000803e3d6000fd5b50600780546001600160a01b0319166001600160a01b03929092169190911790553362000221426276a70062000707565b600063013c68006040516200023690620005c1565b6001600160a01b039094168452602084019290925260408301526060820152608001604051809103906000f08015801562000275573d6000803e3d6000fd5b50600880546001600160a01b0319166001600160a01b039290921691909117905533620002a6426276a70062000707565b600062c5c100604051620002ba90620005c1565b6001600160a01b039094168452602084019290925260408301526060820152608001604051809103906000f080158015620002f9573d6000803e3d6000fd5b50600980546001600160a01b0319166001600160a01b0392909216919091179055336200032a4262ed4e0062000707565b6000806040516200033b90620005c1565b6001600160a01b039094168452602084019290925260408301526060820152608001604051809103906000f0801580156200037a573d6000803e3d6000fd5b50600a80546001600160a01b0319166001600160a01b0392909216919091179055620003b2336a7c13bc4b2c133c560000006200044a565b600754620003d5906001600160a01b03166a52b7d2dcc80cd2e40000006200044a565b600854620003f8906001600160a01b03166a422ca8b0a00a42500000006200044a565b6009546200041b906001600160a01b03166a52b7d2dcc80cd2e40000006200044a565b600a546200043e906001600160a01b03166a108b2a2c280290940000006200044a565b505062000781565b3390565b6001600160a01b038216620004a55760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b8060036000828254620004b9919062000707565b90915550506001600160a01b03821660009081526001602052604081208054839290620004e890849062000707565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b82805462000540906200072e565b90600052602060002090601f016020900481019282620005645760008555620005af565b82601f106200057f57805160ff1916838001178555620005af565b82800160010185558215620005af579182015b82811115620005af57825182559160200191906001019062000592565b50620005bd929150620005cf565b5090565b6106e48062001a4883390190565b5b80821115620005bd5760008155600101620005d0565b600082601f830112620005f857600080fd5b81516001600160401b03808211156200061557620006156200076b565b604051601f8301601f19908116603f011681019082821181831017156200064057620006406200076b565b816040528381526020925086838588010111156200065d57600080fd5b600091505b8382101562000681578582018301518183018401529082019062000662565b83821115620006935760008385830101525b9695505050505050565b60008060408385031215620006b157600080fd5b82516001600160401b0380821115620006c957600080fd5b620006d786838701620005e6565b93506020850151915080821115620006ee57600080fd5b50620006fd85828601620005e6565b9150509250929050565b600082198211156200072957634e487b7160e01b600052601160045260246000fd5b500190565b600181811c908216806200074357607f821691505b602082108114156200076557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b60805160a05160c05160e0516101005161012051611277620007d1600039600061073401526000610c7701526000610cc601526000610ca101526000610c2501526000610c4e01526112776000f3fe608060405234801561001057600080fd5b506004361061014d5760003560e01c80637b73206c116100c3578063a457c2d71161007c578063a457c2d7146102b8578063a9059cbb146102cb578063d505accf146102de578063dd62ed3e146102f1578063f2fde38b1461032a578063f9dd76ff1461033d57600080fd5b80637b73206c1461023b5780637ecebe00146102665780638da5cb5b1461027957806394ec1c8d1461028a57806395d89b411461029d578063964bca5f146102a557600080fd5b806332cb6b0c1161011557806332cb6b0c146101c75780633644e515146101da57806339509351146101e25780636331e9ae146101f557806370a082311461020a578063715018a61461023357600080fd5b806306fdde0314610152578063095ea7b31461017057806318160ddd1461019357806323b872dd146101a5578063313ce567146101b8575b600080fd5b61015a610350565b604051610167919061115c565b60405180910390f35b61018361017e366004611132565b6103e2565b6040519015158152602001610167565b6003545b604051908152602001610167565b6101836101b3366004611083565b6103f8565b60405160128152602001610167565b6101976b033b2e3c9fd0803ce800000081565b6101976104a7565b6101836101f0366004611132565b6104b6565b61020861020336600461102e565b6104f2565b005b61019761021836600461102e565b6001600160a01b031660009081526001602052604090205490565b610208610597565b60085461024e906001600160a01b031681565b6040516001600160a01b039091168152602001610167565b61019761027436600461102e565b61060b565b6000546001600160a01b031661024e565b60095461024e906001600160a01b031681565b61015a61062b565b600a5461024e906001600160a01b031681565b6101836102c6366004611132565b61063a565b6101836102d9366004611132565b6106d3565b6102086102ec3660046110bf565b6106e0565b6101976102ff366004611050565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b61020861033836600461102e565b610844565b60075461024e906001600160a01b031681565b60606004805461035f9061120c565b80601f016020809104026020016040519081016040528092919081815260200182805461038b9061120c565b80156103d85780601f106103ad576101008083540402835291602001916103d8565b820191906000526020600020905b8154815290600101906020018083116103bb57829003601f168201915b5050505050905090565b60006103ef33848461092e565b50600192915050565b6000610405848484610a52565b6001600160a01b03841660009081526002602090815260408083203384529091529020548281101561048f5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b61049c853385840361092e565b506001949350505050565b60006104b1610c21565b905090565b3360008181526002602090815260408083206001600160a01b038716845290915281205490916103ef9185906104ed9086906111e6565b61092e565b6000546001600160a01b0316331461051c5760405162461bcd60e51b8152600401610486906111b1565b600a54600160a01b900460ff161561056b5760405162461bcd60e51b81526020600482015260126024820152716f6e6c792063616e206d696e74206f6e636560701b6044820152606401610486565b600a805460ff60a01b1916600160a01b179055610594816b01c6f307be4c4687e6000000610d14565b50565b6000546001600160a01b031633146105c15760405162461bcd60e51b8152600401610486906111b1565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6001600160a01b0381166000908152600660205260408120545b92915050565b60606005805461035f9061120c565b3360009081526002602090815260408083206001600160a01b0386168452909152812054828110156106bc5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610486565b6106c9338585840361092e565b5060019392505050565b60006103ef338484610a52565b834211156107305760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e650000006044820152606401610486565b60007f000000000000000000000000000000000000000000000000000000000000000088888861075f8c610df3565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e00160405160208183030381529060405280519060200120905060006107ba82610e1b565b905060006107ca82878787610e69565b9050896001600160a01b0316816001600160a01b03161461082d5760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e617475726500006044820152606401610486565b6108388a8a8a61092e565b50505050505050505050565b6000546001600160a01b0316331461086e5760405162461bcd60e51b8152600401610486906111b1565b6001600160a01b0381166108d35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610486565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0383166109905760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610486565b6001600160a01b0382166109f15760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610486565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038316610ab65760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610486565b6001600160a01b038216610b185760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610486565b6001600160a01b03831660009081526001602052604090205481811015610b905760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610486565b6001600160a01b03808516600090815260016020526040808220858503905591851681529081208054849290610bc79084906111e6565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610c1391815260200190565b60405180910390a350505050565b60007f0000000000000000000000000000000000000000000000000000000000000000461415610c7057507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6001600160a01b038216610d6a5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610486565b8060036000828254610d7c91906111e6565b90915550506001600160a01b03821660009081526001602052604081208054839290610da99084906111e6565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b03811660009081526006602052604090208054600181018255905b50919050565b6000610625610e28610c21565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0821115610ee65760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610486565b8360ff16601b1480610efb57508360ff16601c145b610f525760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610486565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa158015610fa6573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166110095760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610486565b95945050505050565b80356001600160a01b038116811461102957600080fd5b919050565b60006020828403121561104057600080fd5b61104982611012565b9392505050565b6000806040838503121561106357600080fd5b61106c83611012565b915061107a60208401611012565b90509250929050565b60008060006060848603121561109857600080fd5b6110a184611012565b92506110af60208501611012565b9150604084013590509250925092565b600080600080600080600060e0888a0312156110da57600080fd5b6110e388611012565b96506110f160208901611012565b95506040880135945060608801359350608088013560ff8116811461111557600080fd5b9699959850939692959460a0840135945060c09093013592915050565b6000806040838503121561114557600080fd5b61114e83611012565b946020939093013593505050565b600060208083528351808285015260005b818110156111895785810183015185820160400152820161116d565b8181111561119b576000604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000821982111561120757634e487b7160e01b600052601160045260246000fd5b500190565b600181811c9082168061122057607f821691505b60208210811415610e1557634e487b7160e01b600052602260045260246000fdfea264697066735822122045afa4d51460885ef911f63fc7aec53394b08ef2a96f19907d590973dd66c8c364736f6c63430008060033608060405234801561001057600080fd5b506040516106e43803806106e483398101604081905261002f916100a5565b6001600160a01b03841661004257600080fd5b8082111561004f57600080fd5b600080546001600160a01b0319166001600160a01b03861617905560038190556100848383610092602090811b61031b17901c565b600155505060025550610116565b600061009e82846100f0565b9392505050565b600080600080608085870312156100bb57600080fd5b84516001600160a01b03811681146100d257600080fd5b60208601516040870151606090970151919890975090945092505050565b6000821982111561011157634e487b7160e01b600052601160045260246000fd5b500190565b6105bf806101256000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c8063384711cc1161005b578063384711cc146100da57806338af3eed146100ed5780639852595c14610118578063be9a65551461013857600080fd5b80630fb5a6b41461008d57806313d033c0146100a95780631726cbc8146100b257806319165587146100c5575b600080fd5b61009660035481565b6040519081526020015b60405180910390f35b61009660015481565b6100966100c0366004610464565b610141565b6100d86100d3366004610464565b610173565b005b6100966100e8366004610464565b610212565b600054610100906001600160a01b031681565b6040516001600160a01b0390911681526020016100a0565b610096610126366004610464565b60046020526000908152604090205481565b61009660025481565b6001600160a01b03811660009081526004602052604081205461016d9061016784610212565b9061032e565b92915050565b600061017e82610141565b90506000811161018d57600080fd5b6001600160a01b0382166000908152600460205260409020546101b0908261031b565b6001600160a01b0380841660008181526004602052604081209390935591546101db9291168361033a565b6040518181527ffb81f9b30d73d830c3544b34d827c08142579ee75710b490bab0b3995468c5659060200160405180910390a15050565b6040516370a0823160e01b815230600482015260009081906001600160a01b038416906370a082319060240160206040518083038186803b15801561025657600080fd5b505afa15801561026a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061028e91906104af565b6001600160a01b038416600090815260046020526040812054919250906102b690839061031b565b90506001544210156102cc575060009392505050565b6003546002546102db9161031b565b42106102e8579392505050565b61031360035461030d6103066002544261032e90919063ffffffff16565b849061044c565b90610458565b949350505050565b60006103278284610503565b9392505050565b6000610327828461055c565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b179052915160009283929087169161039691906104c8565b6000604051808303816000865af19150503d80600081146103d3576040519150601f19603f3d011682016040523d82523d6000602084013e6103d8565b606091505b5091509150818015610402575080511580610402575080806020019051810190610402919061048d565b6104455760405162461bcd60e51b815260206004820152601060248201526f085514905394d1915497d1905253115160821b604482015260640160405180910390fd5b5050505050565b6000610327828461053d565b6000610327828461051b565b60006020828403121561047657600080fd5b81356001600160a01b038116811461032757600080fd5b60006020828403121561049f57600080fd5b8151801515811461032757600080fd5b6000602082840312156104c157600080fd5b5051919050565b6000825160005b818110156104e957602081860181015185830152016104cf565b818111156104f8576000828501525b509190910192915050565b6000821982111561051657610516610573565b500190565b60008261053857634e487b7160e01b600052601260045260246000fd5b500490565b600081600019048311821515161561055757610557610573565b500290565b60008282101561056e5761056e610573565b500390565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220b957f1ff758f24c7b0297931920cec96352a108df0369257d5d4b8a3574591a464736f6c6343000806003300000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000f4d61676e6174652046696e616e6365000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034d41470000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061014d5760003560e01c80637b73206c116100c3578063a457c2d71161007c578063a457c2d7146102b8578063a9059cbb146102cb578063d505accf146102de578063dd62ed3e146102f1578063f2fde38b1461032a578063f9dd76ff1461033d57600080fd5b80637b73206c1461023b5780637ecebe00146102665780638da5cb5b1461027957806394ec1c8d1461028a57806395d89b411461029d578063964bca5f146102a557600080fd5b806332cb6b0c1161011557806332cb6b0c146101c75780633644e515146101da57806339509351146101e25780636331e9ae146101f557806370a082311461020a578063715018a61461023357600080fd5b806306fdde0314610152578063095ea7b31461017057806318160ddd1461019357806323b872dd146101a5578063313ce567146101b8575b600080fd5b61015a610350565b604051610167919061115c565b60405180910390f35b61018361017e366004611132565b6103e2565b6040519015158152602001610167565b6003545b604051908152602001610167565b6101836101b3366004611083565b6103f8565b60405160128152602001610167565b6101976b033b2e3c9fd0803ce800000081565b6101976104a7565b6101836101f0366004611132565b6104b6565b61020861020336600461102e565b6104f2565b005b61019761021836600461102e565b6001600160a01b031660009081526001602052604090205490565b610208610597565b60085461024e906001600160a01b031681565b6040516001600160a01b039091168152602001610167565b61019761027436600461102e565b61060b565b6000546001600160a01b031661024e565b60095461024e906001600160a01b031681565b61015a61062b565b600a5461024e906001600160a01b031681565b6101836102c6366004611132565b61063a565b6101836102d9366004611132565b6106d3565b6102086102ec3660046110bf565b6106e0565b6101976102ff366004611050565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b61020861033836600461102e565b610844565b60075461024e906001600160a01b031681565b60606004805461035f9061120c565b80601f016020809104026020016040519081016040528092919081815260200182805461038b9061120c565b80156103d85780601f106103ad576101008083540402835291602001916103d8565b820191906000526020600020905b8154815290600101906020018083116103bb57829003601f168201915b5050505050905090565b60006103ef33848461092e565b50600192915050565b6000610405848484610a52565b6001600160a01b03841660009081526002602090815260408083203384529091529020548281101561048f5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b61049c853385840361092e565b506001949350505050565b60006104b1610c21565b905090565b3360008181526002602090815260408083206001600160a01b038716845290915281205490916103ef9185906104ed9086906111e6565b61092e565b6000546001600160a01b0316331461051c5760405162461bcd60e51b8152600401610486906111b1565b600a54600160a01b900460ff161561056b5760405162461bcd60e51b81526020600482015260126024820152716f6e6c792063616e206d696e74206f6e636560701b6044820152606401610486565b600a805460ff60a01b1916600160a01b179055610594816b01c6f307be4c4687e6000000610d14565b50565b6000546001600160a01b031633146105c15760405162461bcd60e51b8152600401610486906111b1565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6001600160a01b0381166000908152600660205260408120545b92915050565b60606005805461035f9061120c565b3360009081526002602090815260408083206001600160a01b0386168452909152812054828110156106bc5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610486565b6106c9338585840361092e565b5060019392505050565b60006103ef338484610a52565b834211156107305760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e650000006044820152606401610486565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c988888861075f8c610df3565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e00160405160208183030381529060405280519060200120905060006107ba82610e1b565b905060006107ca82878787610e69565b9050896001600160a01b0316816001600160a01b03161461082d5760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e617475726500006044820152606401610486565b6108388a8a8a61092e565b50505050505050505050565b6000546001600160a01b0316331461086e5760405162461bcd60e51b8152600401610486906111b1565b6001600160a01b0381166108d35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610486565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0383166109905760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610486565b6001600160a01b0382166109f15760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610486565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038316610ab65760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610486565b6001600160a01b038216610b185760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610486565b6001600160a01b03831660009081526001602052604090205481811015610b905760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610486565b6001600160a01b03808516600090815260016020526040808220858503905591851681529081208054849290610bc79084906111e6565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610c1391815260200190565b60405180910390a350505050565b60007f0000000000000000000000000000000000000000000000000000000000002105461415610c7057507f73e78abc933be449233f3bc4f1b528059c37a9f7994dfb68f87361e74aaf779b90565b50604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6020808301919091527fbc3db5523a4d73def24f70f54674e63b01dcfe1c581dabd2d47d55cc22aa46a1828401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6001600160a01b038216610d6a5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610486565b8060036000828254610d7c91906111e6565b90915550506001600160a01b03821660009081526001602052604081208054839290610da99084906111e6565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b03811660009081526006602052604090208054600181018255905b50919050565b6000610625610e28610c21565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0821115610ee65760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610486565b8360ff16601b1480610efb57508360ff16601c145b610f525760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610486565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa158015610fa6573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166110095760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610486565b95945050505050565b80356001600160a01b038116811461102957600080fd5b919050565b60006020828403121561104057600080fd5b61104982611012565b9392505050565b6000806040838503121561106357600080fd5b61106c83611012565b915061107a60208401611012565b90509250929050565b60008060006060848603121561109857600080fd5b6110a184611012565b92506110af60208501611012565b9150604084013590509250925092565b600080600080600080600060e0888a0312156110da57600080fd5b6110e388611012565b96506110f160208901611012565b95506040880135945060608801359350608088013560ff8116811461111557600080fd5b9699959850939692959460a0840135945060c09093013592915050565b6000806040838503121561114557600080fd5b61114e83611012565b946020939093013593505050565b600060208083528351808285015260005b818110156111895785810183015185820160400152820161116d565b8181111561119b576000604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000821982111561120757634e487b7160e01b600052601160045260246000fd5b500190565b600181811c9082168061122057607f821691505b60208210811415610e1557634e487b7160e01b600052602260045260246000fdfea264697066735822122045afa4d51460885ef911f63fc7aec53394b08ef2a96f19907d590973dd66c8c364736f6c63430008060033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000f4d61676e6174652046696e616e6365000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034d41470000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name_ (string): Magnate Finance
Arg [1] : symbol_ (string): MAG

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [3] : 4d61676e6174652046696e616e63650000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [5] : 4d41470000000000000000000000000000000000000000000000000000000000


Deployed ByteCode Sourcemap

45235:1278:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10643:100;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;12810:169;;;;;;:::i;:::-;;:::i;:::-;;;2708:14:1;;2701:22;2683:41;;2671:2;2656:18;12810:169:0;2638:92:1;11763:108:0;11851:12;;11763:108;;;2881:25:1;;;2869:2;2854:18;11763:108:0;2836:76:1;13461:458:0;;;;;;:::i;:::-;;:::i;11605:93::-;;;11688:2;11756:36:1;;11744:2;11729:18;11605:93:0;11711:87:1;45464:54:0;;45501:17;45464:54;;32969:115;;;:::i;14328:215::-;;;;;;:::i;:::-;;:::i;46338:172::-;;;;;;:::i;:::-;;:::i;:::-;;11934:127;;;;;;:::i;:::-;-1:-1:-1;;;;;12035:18:0;12008:7;12035:18;;;:9;:18;;;;;;;11934:127;2637:148;;;:::i;45325:37::-;;;;;-1:-1:-1;;;;;45325:37:0;;;;;;-1:-1:-1;;;;;2499:32:1;;;2481:51;;2469:2;2454:18;45325:37:0;2436:102:1;32711:128:0;;;;;;:::i;:::-;;:::i;1986:87::-;2032:7;2059:6;-1:-1:-1;;;;;2059:6:0;1986:87;;45369:32;;;;;-1:-1:-1;;;;;45369:32:0;;;10862:104;;;:::i;45408:33::-;;;;;-1:-1:-1;;;;;45408:33:0;;;15046:413;;;;;;:::i;:::-;;:::i;12274:175::-;;;;;;:::i;:::-;;:::i;31874:771::-;;;;;;:::i;:::-;;:::i;12512:151::-;;;;;;:::i;:::-;-1:-1:-1;;;;;12628:18:0;;;12601:7;12628:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;12512:151;2940:244;;;;;;:::i;:::-;;:::i;45281:37::-;;;;;-1:-1:-1;;;;;45281:37:0;;;10643:100;10697:13;10730:5;10723:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10643:100;:::o;12810:169::-;12893:4;12910:39;681:10;12933:7;12942:6;12910:8;:39::i;:::-;-1:-1:-1;12967:4:0;12810:169;;;;:::o;13461:458::-;13567:4;13584:36;13594:6;13602:9;13613:6;13584:9;:36::i;:::-;-1:-1:-1;;;;;13660:19:0;;13633:24;13660:19;;;:11;:19;;;;;;;;681:10;13660:33;;;;;;;;13712:26;;;;13704:79;;;;-1:-1:-1;;;13704:79:0;;8940:2:1;13704:79:0;;;8922:21:1;8979:2;8959:18;;;8952:30;9018:34;8998:18;;;8991:62;-1:-1:-1;;;9069:18:1;;;9062:38;9117:19;;13704:79:0;;;;;;;;;13819:57;13828:6;681:10;13869:6;13850:16;:25;13819:8;:57::i;:::-;-1:-1:-1;13907:4:0;;13461:458;-1:-1:-1;;;;13461:458:0:o;32969:115::-;33029:7;33056:20;:18;:20::i;:::-;33049:27;;32969:115;:::o;14328:215::-;681:10;14416:4;14465:25;;;:11;:25;;;;;;;;-1:-1:-1;;;;;14465:34:0;;;;;;;;;;14416:4;;14433:80;;14456:7;;14465:47;;14502:10;;14465:47;:::i;:::-;14433:8;:80::i;46338:172::-;2032:7;2059:6;-1:-1:-1;;;;;2059:6:0;681:10;2206:23;2198:68;;;;-1:-1:-1;;;2198:68:0;;;;;;;:::i;:::-;46412:4:::1;::::0;-1:-1:-1;;;46412:4:0;::::1;;;46411:5;46403:36;;;::::0;-1:-1:-1;;;46403:36:0;;10521:2:1;46403:36:0::1;::::0;::::1;10503:21:1::0;10560:2;10540:18;;;10533:30;-1:-1:-1;;;10579:18:1;;;10572:48;10637:18;;46403:36:0::1;10493:168:1::0;46403:36:0::1;46450:4;:11:::0;;-1:-1:-1;;;;46450:11:0::1;-1:-1:-1::0;;;46450:11:0::1;::::0;;46472:30:::1;46478:5:::0;46485:16:::1;46472:5;:30::i;:::-;46338:172:::0;:::o;2637:148::-;2032:7;2059:6;-1:-1:-1;;;;;2059:6:0;681:10;2206:23;2198:68;;;;-1:-1:-1;;;2198:68:0;;;;;;;:::i;:::-;2744:1:::1;2728:6:::0;;2707:40:::1;::::0;-1:-1:-1;;;;;2728:6:0;;::::1;::::0;2707:40:::1;::::0;2744:1;;2707:40:::1;2775:1;2758:19:::0;;-1:-1:-1;;;;;;2758:19:0::1;::::0;;2637:148::o;32711:128::-;-1:-1:-1;;;;;32807:14:0;;32780:7;32807:14;;;:7;:14;;;;;30076;32807:24;32800:31;32711:128;-1:-1:-1;;32711:128:0:o;10862:104::-;10918:13;10951:7;10944:14;;;;;:::i;15046:413::-;681:10;15139:4;15183:25;;;:11;:25;;;;;;;;-1:-1:-1;;;;;15183:34:0;;;;;;;;;;15236:35;;;;15228:85;;;;-1:-1:-1;;;15228:85:0;;10868:2:1;15228:85:0;;;10850:21:1;10907:2;10887:18;;;10880:30;10946:34;10926:18;;;10919:62;-1:-1:-1;;;10997:18:1;;;10990:35;11042:19;;15228:85:0;10840:227:1;15228:85:0;15349:67;681:10;15372:7;15400:15;15381:16;:34;15349:8;:67::i;:::-;-1:-1:-1;15447:4:0;;15046:413;-1:-1:-1;;;15046:413:0:o;12274:175::-;12360:4;12377:42;681:10;12401:9;12412:6;12377:9;:42::i;31874:771::-;32103:8;32084:15;:27;;32076:69;;;;-1:-1:-1;;;32076:69:0;;7010:2:1;32076:69:0;;;6992:21:1;7049:2;7029:18;;;7022:30;7088:31;7068:18;;;7061:59;7137:18;;32076:69:0;6982:179:1;32076:69:0;32158:18;32232:16;32267:5;32291:7;32317:5;32341:16;32351:5;32341:9;:16::i;:::-;32203:196;;;;;;3204:25:1;;;;-1:-1:-1;;;;;3303:15:1;;;3283:18;;;3276:43;3355:15;;;;3335:18;;;3328:43;3387:18;;;3380:34;3430:19;;;3423:35;3474:19;;;3467:35;;;3176:19;;32203:196:0;;;;;;;;;;;;32179:231;;;;;;32158:252;;32423:12;32438:28;32455:10;32438:16;:28::i;:::-;32423:43;;32479:14;32496:28;32510:4;32516:1;32519;32522;32496:13;:28::i;:::-;32479:45;;32553:5;-1:-1:-1;;;;;32543:15:0;:6;-1:-1:-1;;;;;32543:15:0;;32535:58;;;;-1:-1:-1;;;32535:58:0;;8581:2:1;32535:58:0;;;8563:21:1;8620:2;8600:18;;;8593:30;8659:32;8639:18;;;8632:60;8709:18;;32535:58:0;8553:180:1;32535:58:0;32606:31;32615:5;32622:7;32631:5;32606:8;:31::i;:::-;32010:635;;;31874:771;;;;;;;:::o;2940:244::-;2032:7;2059:6;-1:-1:-1;;;;;2059:6:0;681:10;2206:23;2198:68;;;;-1:-1:-1;;;2198:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;3029:22:0;::::1;3021:73;;;::::0;-1:-1:-1;;;3021:73:0;;6200:2:1;3021:73:0::1;::::0;::::1;6182:21:1::0;6239:2;6219:18;;;6212:30;6278:34;6258:18;;;6251:62;-1:-1:-1;;;6329:18:1;;;6322:36;6375:19;;3021:73:0::1;6172:228:1::0;3021:73:0::1;3131:6;::::0;;3110:38:::1;::::0;-1:-1:-1;;;;;3110:38:0;;::::1;::::0;3131:6;::::1;::::0;3110:38:::1;::::0;::::1;3159:6;:17:::0;;-1:-1:-1;;;;;;3159:17:0::1;-1:-1:-1::0;;;;;3159:17:0;;;::::1;::::0;;;::::1;::::0;;2940:244::o;18515:346::-;-1:-1:-1;;;;;18617:19:0;;18609:68;;;;-1:-1:-1;;;18609:68:0;;10116:2:1;18609:68:0;;;10098:21:1;10155:2;10135:18;;;10128:30;10194:34;10174:18;;;10167:62;-1:-1:-1;;;10245:18:1;;;10238:34;10289:19;;18609:68:0;10088:226:1;18609:68:0;-1:-1:-1;;;;;18696:21:0;;18688:68;;;;-1:-1:-1;;;18688:68:0;;6607:2:1;18688:68:0;;;6589:21:1;6646:2;6626:18;;;6619:30;6685:34;6665:18;;;6658:62;-1:-1:-1;;;6736:18:1;;;6729:32;6778:19;;18688:68:0;6579:224:1;18688:68:0;-1:-1:-1;;;;;18769:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;18821:32;;2881:25:1;;;18821:32:0;;2854:18:1;18821:32:0;;;;;;;18515:346;;;:::o;15949:640::-;-1:-1:-1;;;;;16055:20:0;;16047:70;;;;-1:-1:-1;;;16047:70:0;;9710:2:1;16047:70:0;;;9692:21:1;9749:2;9729:18;;;9722:30;9788:34;9768:18;;;9761:62;-1:-1:-1;;;9839:18:1;;;9832:35;9884:19;;16047:70:0;9682:227:1;16047:70:0;-1:-1:-1;;;;;16136:23:0;;16128:71;;;;-1:-1:-1;;;16128:71:0;;5796:2:1;16128:71:0;;;5778:21:1;5835:2;5815:18;;;5808:30;5874:34;5854:18;;;5847:62;-1:-1:-1;;;5925:18:1;;;5918:33;5968:19;;16128:71:0;5768:225:1;16128:71:0;-1:-1:-1;;;;;16296:17:0;;16272:21;16296:17;;;:9;:17;;;;;;16332:23;;;;16324:74;;;;-1:-1:-1;;;16324:74:0;;7368:2:1;16324:74:0;;;7350:21:1;7407:2;7387:18;;;7380:30;7446:34;7426:18;;;7419:62;-1:-1:-1;;;7497:18:1;;;7490:36;7543:19;;16324:74:0;7340:228:1;16324:74:0;-1:-1:-1;;;;;16434:17:0;;;;;;;:9;:17;;;;;;16454:22;;;16434:42;;16498:20;;;;;;;;:30;;16470:6;;16434:17;16498:30;;16470:6;;16498:30;:::i;:::-;;;;;;;;16563:9;-1:-1:-1;;;;;16546:35:0;16555:6;-1:-1:-1;;;;;16546:35:0;;16574:6;16546:35;;;;2881:25:1;;2869:2;2854:18;;2836:76;16546:35:0;;;;;;;;16036:553;15949:640;;;:::o;27780:281::-;27833:7;27874:16;27857:13;:33;27853:201;;;-1:-1:-1;27914:24:0;;27780:281::o;27853:201::-;-1:-1:-1;28222:165:0;;;28000:10;28222:165;;;;3772:25:1;;;;28012:12:0;3813:18:1;;;3806:34;28026:15:0;3856:18:1;;;3849:34;28327:13:0;3899:18:1;;;3892:34;28367:4:0;3942:19:1;;;;3935:61;;;;28222:165:0;;;;;;;;;;3744:19:1;;;;28222:165:0;;;28198:200;;;;;;32969:115::o;16876:338::-;-1:-1:-1;;;;;16960:21:0;;16952:65;;;;-1:-1:-1;;;16952:65:0;;11274:2:1;16952:65:0;;;11256:21:1;11313:2;11293:18;;;11286:30;11352:33;11332:18;;;11325:61;11403:18;;16952:65:0;11246:181:1;16952:65:0;17108:6;17092:12;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;17125:18:0;;;;;;:9;:18;;;;;:28;;17147:6;;17125:18;:28;;17147:6;;17125:28;:::i;:::-;;;;-1:-1:-1;;17169:37:0;;2881:25:1;;;-1:-1:-1;;;;;17169:37:0;;;17186:1;;17169:37;;2869:2:1;2854:18;17169:37:0;;;;;;;16876:338;;:::o;33222:207::-;-1:-1:-1;;;;;33343:14:0;;33282:15;33343:14;;;:7;:14;;;;;30076;;30213:1;30195:19;;;;30076:14;33404:17;33299:130;33222:207;;;:::o;29048:167::-;29125:7;29152:55;29174:20;:18;:20::i;:::-;29196:10;24733:57;;-1:-1:-1;;;24733:57:0;;;2196:27:1;2239:11;;;2232:27;;;2275:12;;;2268:28;;;24696:7:0;;2312:12:1;;24733:57:0;;;;;;;;;;;;24723:68;;;;;;24716:75;;24603:196;;;;;22252:1432;22337:7;23262:66;23248:80;;;23240:127;;;;-1:-1:-1;;;23240:127:0;;7775:2:1;23240:127:0;;;7757:21:1;7814:2;7794:18;;;7787:30;7853:34;7833:18;;;7826:62;-1:-1:-1;;;7904:18:1;;;7897:32;7946:19;;23240:127:0;7747:224:1;23240:127:0;23386:1;:7;;23391:2;23386:7;:18;;;;23397:1;:7;;23402:2;23397:7;23386:18;23378:65;;;;-1:-1:-1;;;23378:65:0;;8178:2:1;23378:65:0;;;8160:21:1;8217:2;8197:18;;;8190:30;8256:34;8236:18;;;8229:62;-1:-1:-1;;;8307:18:1;;;8300:32;8349:19;;23378:65:0;8150:224:1;23378:65:0;23558:24;;;23541:14;23558:24;;;;;;;;;4234:25:1;;;4307:4;4295:17;;4275:18;;;4268:45;;;;4329:18;;;4322:34;;;4372:18;;;4365:34;;;23558:24:0;;4206:19:1;;23558:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;23558:24:0;;-1:-1:-1;;23558:24:0;;;-1:-1:-1;;;;;;;23601:20:0;;23593:57;;;;-1:-1:-1;;;23593:57:0;;5443:2:1;23593:57:0;;;5425:21:1;5482:2;5462:18;;;5455:30;5521:26;5501:18;;;5494:54;5565:18;;23593:57:0;5415:174:1;23593:57:0;23670:6;22252:1432;-1:-1:-1;;;;;22252:1432:0:o;14:173:1:-;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:2;;177:1;174;167:12;111:2;63:124;;;:::o;192:186::-;251:6;304:2;292:9;283:7;279:23;275:32;272:2;;;320:1;317;310:12;272:2;343:29;362:9;343:29;:::i;:::-;333:39;262:116;-1:-1:-1;;;262:116:1:o;383:260::-;451:6;459;512:2;500:9;491:7;487:23;483:32;480:2;;;528:1;525;518:12;480:2;551:29;570:9;551:29;:::i;:::-;541:39;;599:38;633:2;622:9;618:18;599:38;:::i;:::-;589:48;;470:173;;;;;:::o;648:328::-;725:6;733;741;794:2;782:9;773:7;769:23;765:32;762:2;;;810:1;807;800:12;762:2;833:29;852:9;833:29;:::i;:::-;823:39;;881:38;915:2;904:9;900:18;881:38;:::i;:::-;871:48;;966:2;955:9;951:18;938:32;928:42;;752:224;;;;;:::o;981:693::-;1092:6;1100;1108;1116;1124;1132;1140;1193:3;1181:9;1172:7;1168:23;1164:33;1161:2;;;1210:1;1207;1200:12;1161:2;1233:29;1252:9;1233:29;:::i;:::-;1223:39;;1281:38;1315:2;1304:9;1300:18;1281:38;:::i;:::-;1271:48;;1366:2;1355:9;1351:18;1338:32;1328:42;;1417:2;1406:9;1402:18;1389:32;1379:42;;1471:3;1460:9;1456:19;1443:33;1516:4;1509:5;1505:16;1498:5;1495:27;1485:2;;1536:1;1533;1526:12;1485:2;1151:523;;;;-1:-1:-1;1151:523:1;;;;1559:5;1611:3;1596:19;;1583:33;;-1:-1:-1;1663:3:1;1648:19;;;1635:33;;1151:523;-1:-1:-1;;1151:523:1:o;1679:254::-;1747:6;1755;1808:2;1796:9;1787:7;1783:23;1779:32;1776:2;;;1824:1;1821;1814:12;1776:2;1847:29;1866:9;1847:29;:::i;:::-;1837:39;1923:2;1908:18;;;;1895:32;;-1:-1:-1;;;1766:167:1:o;4639:597::-;4751:4;4780:2;4809;4798:9;4791:21;4841:6;4835:13;4884:6;4879:2;4868:9;4864:18;4857:34;4909:1;4919:140;4933:6;4930:1;4927:13;4919:140;;;5028:14;;;5024:23;;5018:30;4994:17;;;5013:2;4990:26;4983:66;4948:10;;4919:140;;;5077:6;5074:1;5071:13;5068:2;;;5147:1;5142:2;5133:6;5122:9;5118:22;5114:31;5107:42;5068:2;-1:-1:-1;5220:2:1;5199:15;-1:-1:-1;;5195:29:1;5180:45;;;;5227:2;5176:54;;4760:476;-1:-1:-1;;;4760:476:1:o;9147:356::-;9349:2;9331:21;;;9368:18;;;9361:30;9427:34;9422:2;9407:18;;9400:62;9494:2;9479:18;;9321:182::o;11803:225::-;11843:3;11874:1;11870:6;11867:1;11864:13;11861:2;;;11919:10;11914:3;11910:20;11907:1;11900:31;11954:4;11951:1;11944:15;11982:4;11979:1;11972:15;11861:2;-1:-1:-1;12013:9:1;;11851:177::o;12033:380::-;12112:1;12108:12;;;;12155;;;12176:2;;12230:4;12222:6;12218:17;12208:27;;12176:2;12283;12275:6;12272:14;12252:18;12249:38;12246:2;;;12329:10;12324:3;12320:20;12317:1;12310:31;12364:4;12361:1;12354:15;12392:4;12389:1;12382:15

Swarm Source

ipfs://b957f1ff758f24c7b0297931920cec96352a108df0369257d5d4b8a3574591a4
Loading