Token

Gravity Finance (GFI)

Overview

Max Total Supply

239,547.002027505180804728 GFI

Holders

11

Market

Price

-

Onchain Market Cap

-

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
102 GFI

Value
$0.00
0x1395BE38f84397606722F21614Fc6050501211b3
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information

Contract Source Code Verified (Exact Match)

Contract Name:
ERC20WarpToken

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 10000000 runs

Other Settings:
default evmVersion
File 1 of 12 : ERC20WarpToken.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;

import "@vialabs/contracts/message/MessageClient.sol";
import "@openzeppelin/contracts-4/token/ERC20/extensions/ERC20Burnable.sol";
import "@openzeppelin/contracts-4/token/ERC20/utils/SafeERC20.sol";

interface IBurnableToken {
    function burn(uint256 amount) external;
    function totalSupply() external;
    function balanceOf(address account) external;
    function transfer(address recipient, uint256 amount) external;
    function allowance(address owner, address spender) external;
    function approve(address spender, uint256 amount) external;
    function transferFrom(address sender, address recipient, uint256 amount) external;
}

contract ERC20WarpToken is ERC20Burnable, MessageClient {
    IBurnableToken public immutable baseToken;
    uint256 public immutable homeChain;
    uint256 public immutable chainId;
    uint8 public immutable tokenDecimals;

    uint256 private _fee = 1 ether;
    bool private _canGoBack = false;
    address private _feeBeneficiary;

    event TokensReceived(address _eTo, uint256 _eAmount);
    event FeeChanged(uint256 _amount);
    event BeneficiaryChanged(address _beneficiary);
    event StatusChanged(bool _status);

    /**
     * On the "homeChain" the baseToken will be transferred to this contract and the equivalent amount of tokens will be minted on
     * the destination chain. On the destination chain the "new" ERC20 will be minted and transferred to the recipient. When bridging
     * back from a new chain to the home chain, the tokens will be burned on the destination chain and the equivalent amount will be
     * unlocked on the home chain from this contract. This acts as a "locker" for the tokens on the home chain.
     *
     * On each new non-home chain, the tokens will be burned on the source chain and minted on the destination chain (like helloerc20)
     *
     * @param _homeChain chain ID of the original ERC20 token
     * @param _baseToken address of the original ERC20 token (blank if not on the home chain)
     * @param _tokenName name of the ERC20 token on each additional chain (blank if on the home chain)
     * @param _tokenSymbol symbol of the ERC20 token on each additional chain (blank if on the home chain)
     * @param _tokenDecimals decimals of the ERC20 token on each additional chain
     */
    constructor(
        uint256 _homeChain,
        address _baseToken,
        string memory _tokenName,
        string memory _tokenSymbol,
        uint8 _tokenDecimals
    ) ERC20(_tokenName, _tokenSymbol) {
        baseToken = IBurnableToken(_baseToken);
        homeChain = _homeChain;
        chainId = block.chainid;
        tokenDecimals = _tokenDecimals;

        // @note Some sane initial value. But allow to change.
        _feeBeneficiary = MESSAGE_OWNER;
    }

    /**
     * Function to collect the accumulated fees in a much cheaper way compared to moving them on every tx. onlyMessageOwner can be omitted.
     *
     */
    function collect() external onlyMessageOwner {
        (bool sent, ) = payable(_feeBeneficiary).call{
            value: address(this).balance
        }("");
        require(sent, "Failed to send Ether");
    }

    /**
     * Function to set the fee
     *
     * @param _amount amount of desired fee
     */
    function setFee(uint256 _amount) external onlyMessageOwner {
        _fee = _amount;

        emit FeeChanged(_fee);
    }

    /**
     * Function to set the fee
     *
     * @param _beneficiary address that will receive the fees collected over time
     */
    function setBeneficiary(address _beneficiary) external onlyMessageOwner {
        _feeBeneficiary = _beneficiary;

        emit BeneficiaryChanged(_feeBeneficiary);
    }

    /**
     * Function to set if going back is allowed (for future use, as there will be no tokens locked, everything is burned)
     *
     * @param _status whether to allow going back or not
     */
    function setStatus(bool _status) external onlyMessageOwner {
        _canGoBack = _status;

        emit StatusChanged(_canGoBack);
    }

    /**
     * Bridge tokens from the current chain to the destination chain. If the current chain is the home chain, the tokens will be
     * transferred to this contract locked. If the current chain is not the home chain, the tokens will be burned on the current chain.
     * Function is "payable"
     *
     * After locking or burning, a cross chain message will be sent to the destination chain with the recipient and amount of tokens.
     *
     * @param _destChainId chain ID of the destination chain
     * @param _recipient address of the recipient on the destination chain
     * @param _amount amount of tokens to bridge
     */
    function bridge(
        uint256 _destChainId,
        address _recipient,
        uint256 _amount
    ) external payable onlyActiveChain(_destChainId) {
        require(msg.value == _fee, "Sent fee amount is incorrect");

        // @note needs this as onlyActiveChain() will have a valid chain because we need to receive messages from those chains in onlySelf(_sender, _sourceChainId)
        if (_destChainId == homeChain) {
            require(_canGoBack == true, "Going back is not allowed");
        }

        if (chainId == homeChain) {
            baseToken.transferFrom(msg.sender, address(this), _amount);
            // burn tokens if home chain
            baseToken.burn(_amount);
        } else {
            // burn tokens if "new" chain
            _burn(msg.sender, _amount);
        }

        // send cross chain message
        _sendMessage(_destChainId, abi.encode(_recipient, _amount));
    }

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

    /**
     * If the destination chain is the home chain, the tokens will be unlocked and transferred to the recipient. If the destination
     * chain is not the home chain, the tokens will be minted on the destination chain and transferred to the recipient.
     */
    function messageProcess(
        uint256,
        uint256 _sourceChainId,
        address _sender,
        address,
        uint256,
        bytes calldata _data
    ) external override onlySelf(_sender, _sourceChainId) {
        (address _recipient, uint256 _amount) = abi.decode(
            _data,
            (address, uint256)
        );

        if (chainId == homeChain) {
            // this won't trigger, do nothing
        } else {
            // mint tokens of "new" chain
            _mint(_recipient, _amount);
        }

        emit TokensReceived(_recipient, _amount);
    }

    /**
     * Function to read the fee
     *
     */
    function getFee() external view returns (uint256) {
        return _fee;
    }

    /**
     * Function to read the beneficiary
     *
     */
    function getBeneficiary() external view returns (address) {
        return _feeBeneficiary;
    }

    /**
     * Function to read the status
     *
     */
    function getStatus() external view returns (bool) {
        return _canGoBack;
    }
}

File 2 of 12 : 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 3 of 12 : ERC20Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol)

pragma solidity ^0.8.0;

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

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

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

File 4 of 12 : 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 12 : IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (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.
 *
 * ==== Security Considerations
 *
 * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
 * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
 * considered as an intention to spend the allowance in any specific way. The second is that because permits have
 * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
 * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
 * generally recommended is:
 *
 * ```solidity
 * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
 *     try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
 *     doThing(..., value);
 * }
 *
 * function doThing(..., uint256 value) public {
 *     token.safeTransferFrom(msg.sender, address(this), value);
 *     ...
 * }
 * ```
 *
 * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
 * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
 * {SafeERC20-safeTransferFrom}).
 *
 * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
 * contracts should have entry points that don't rely on permit.
 */
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].
     *
     * CAUTION: See Security Considerations above.
     */
    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 12 : 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 12 : 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 12 : 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 12 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (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;
    }

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

File 10 of 12 : IERC20cl.sol
// SPDX-License-Identifier: MIT
// (c)2021-2024 Atlas
// security-contact: [email protected]

pragma solidity ^0.8.9;

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

    function name() external view returns (string memory);
    function symbol() external view returns (string memory);
    function decimals() external view returns (uint8);
    function totalSupply() external view returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);

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

File 11 of 12 : IMessageV3.sol
// SPDX-License-Identifier: MIT
// (c)2021-2024 Atlas
// security-contact: [email protected]

pragma solidity ^0.8.9;

interface IMessageV3 {
    event SendRequested(uint txId, address sender, address recipient, uint chain, bool express, bytes data, uint16 confirmations);
    event SendProcessed(uint txId, uint sourceChainId, address sender, address recipient);
    event Success(uint txId, uint sourceChainId, address sender, address recipient, uint amount);
    event ErrorLog(uint txId, string message);
    event SetExsig(address caller, address signer);
    event SetMaxgas(address caller, uint maxGas);
    event SetMaxfee(address caller, uint maxFee);

    function chainsig() external view returns (address signer);
    function weth() external view returns (address wethTokenAddress);
    function feeToken() external view returns (address feeToken);
    function feeTokenDecimals() external view returns (uint feeTokenDecimals);
    function minFee() external view returns (uint minFee);
    function bridgeEnabled() external view returns (bool bridgeEnabled);
    function takeFeesOffline() external view returns (bool takeFeesOffline);
    function whitelistOnly() external view returns (bool whitelistOnly);

    function enabledChains(uint destChainId) external view returns (bool enabled);
    function customSourceFee(address caller) external view returns (uint customSourceFee);
    function maxgas(address caller) external view returns (uint maxgas);
    function exsig(address caller) external view returns (address signer);

    // @dev backwards compat with BridgeClient
    function minTokenForChain(uint chainId) external returns (uint amount);

    function sendMessage(address recipient, uint chain, bytes calldata data, uint16 confirmations, bool express) external returns (uint txId);
    // @dev backwards compat with BridgeClient
    function sendRequest(address recipient, uint chainId, uint amount, address referrer, bytes calldata data, uint16 confirmations) external returns (uint txId);

    function setExsig(address signer) external;
    function setMaxgas(uint maxgas) external;
    function setMaxfee(uint maxfee) external;

    function getSourceFee(uint _destChainId, bool _express) external view returns (uint _fee);
}

File 12 of 12 : MessageClient.sol
// SPDX-License-Identifier: MIT
// (c)2021-2024 Atlas
// security-contact: [email protected]

pragma solidity ^0.8.9;

import "./IMessageV3.sol";
import "./IERC20cl.sol";

interface IFeature {
    function getPayload(uint _txId) external view returns (bytes memory);
}

interface IFeatureGateway {
    function isFeatureEnabled(uint32) external view returns (bool);
    function featureAddresses(uint32) external view returns (address);
    function messageV3() external view returns (IMessageV3);
    function processForward(uint _txId, uint _sourceChainId, uint _destChainId, address _sender, address _recipient, uint _gas, bytes[] calldata _data) external;
    function process(uint txId, uint sourceChainId, uint destChainId, address sender, address recipient, uint gas, uint32 featureId, bytes calldata featureReply, bytes[] calldata data) external;
}

/**
 * @title MessageV3 Client
 * @author Atlas <[email protected]>
 */
abstract contract MessageClient {
    IMessageV3 public MESSAGEv3;
    IERC20cl public FEE_TOKEN;
    IFeatureGateway public FEATURE_GATEWAY;
    mapping(uint => mapping(uint32 => ChainData)) public FEATURES;

    struct ChainData {
        address endpoint; // address of this contract on specified chain
        bytes endpointExtended; // address of this contract on non EVM
        uint16 confirmations; // source confirmations
        bool extended; // are we using extended endpoint? (addresses larger than uint256)
    }
    mapping(uint => ChainData) public CHAINS;
    address public MESSAGE_OWNER;

    modifier onlySelf(address _sender, uint _sourceChainId) {
        require(msg.sender == address(MESSAGEv3), "MessageClient: not authorized");
        require(_sender == CHAINS[_sourceChainId].endpoint, "MessageClient: not authorized");
        _;
    }

    modifier onlyActiveChain(uint _destinationChainId) {
        require(CHAINS[_destinationChainId].endpoint != address(0), "MessageClient: destination chain not active");
        _;
    }

    modifier onlyMessageOwner() {
        require(msg.sender == MESSAGE_OWNER, "MessageClient: not authorized");
        _;
    }

    event MessageOwnershipTransferred(address previousOwner, address newOwner);
    event RecoverToken(address owner, address token, uint amount);
    event SetMaxgas(address owner, uint maxGas);
    event SetMaxfee(address owner, uint maxfee);
    event SetExsig(address owner, address exsig);
    event SendMessageWithFeature(uint txId, uint destinationChainId, uint32 featureId, bytes featureData);

    constructor() {
        MESSAGE_OWNER = msg.sender;
    }

    function transferMessageOwnership(address _newMessageOwner) external onlyMessageOwner {
        MESSAGE_OWNER = _newMessageOwner;
        emit MessageOwnershipTransferred(msg.sender, _newMessageOwner);
    }

    /** BRIDGE RECEIVER */
    // @dev DEPRICATED kept for backwards compatibility
    function messageProcess(
        uint _txId,          // transaction id
        uint _sourceChainId, // source chain id
        address _sender,     // corresponding MessageClient address on source chain
        address,
        uint,
        bytes calldata _data // encoded message from source chain
    ) external virtual onlySelf (_sender, _sourceChainId) {
        _processMessage(_txId, _sourceChainId, _data);
    }

    // @dev PREFERRED if no Features used
    // this is extended by the implementing class if not using Features
    function _processMessage(uint _txId, uint _sourceChainId, bytes calldata _data) internal virtual {
        (uint32 _featureId, bytes memory _featureData, bytes memory _messageData) = abi.decode(_data, (uint32, bytes, bytes));
        
        // call the implementing class to process the message
        _processMessageWithFeature(_txId, _sourceChainId, _messageData, _featureId, _featureData, _getFeatureResponse(_featureId, _txId));
    }

    // @dev REQUIRED if using Features
    // this is extended by the implementing class if using Features
    function _processMessageWithFeature(
        uint,         // transaction id
        uint,         // source chain id
        bytes memory, // encoded message from source chain
        uint32,       // feature id
        bytes memory, // encoded feature data
        bytes memory  // reply from feature processing off-chain
    ) internal virtual {
        revert("MessageClient: _processMessage or _processMessageWithFeature not implemented");
    }

    function _getFeatureResponse(uint32 _featureId, uint _txId) internal view returns (bytes memory) {
        return IFeature(FEATURE_GATEWAY.featureAddresses(_featureId)).getPayload(_txId);
    }
    
    /** BRIDGE SENDER */
    function _sendMessage(uint _destinationChainId, bytes memory _data) internal returns (uint _txId) {
        ChainData memory _chain = CHAINS[_destinationChainId];
        if(_chain.extended) { // non-evm addresses larger than uint256
            _data = abi.encode(_data, _chain.endpointExtended);
        }
        return IMessageV3(MESSAGEv3).sendMessage(
            _chain.endpoint,      // corresponding MessageClient contract address on destination chain
            _destinationChainId,  // id of the destination chain
            _data,                // arbitrary data package to send
            _chain.confirmations, // amount of required transaction confirmations
            false                 // send express mode on destination
        );
    }

    function _sendMessageExpress(uint _destinationChainId, bytes memory _data) internal returns (uint _txId) {
        ChainData memory _chain = CHAINS[_destinationChainId];
        if(_chain.extended) { // non-evm addresses larger than uint256
            _data = abi.encode(_data, _chain.endpointExtended);
        }
        return IMessageV3(MESSAGEv3).sendMessage(
            _chain.endpoint,      // corresponding MessageV3Client contract address on destination chain
            _destinationChainId,  // id of the destination chain
            _data,                // arbitrary data package to send
            _chain.confirmations, // amount of required transaction confirmations
            true                  // send express mode on destination
        );
    }

    function _sendMessageWithFeature(uint _destinationChainId, bytes memory _messageData, uint32 _featureId, bytes memory _featureData) internal returns (uint _txId) {
        require(FEATURE_GATEWAY.isFeatureEnabled(_featureId), "MessageClient: feature not enabled");

        // wrap feature data into message data so it can be signed
        bytes memory _data = abi.encode(_featureId, _featureData, _messageData);

        ChainData memory _chain = CHAINS[_destinationChainId];
        if(_chain.extended) { // non-evm addresses larger than uint256
            _data = abi.encode(_data, _chain.endpointExtended);
        }

        _txId = IMessageV3(MESSAGEv3).sendMessage(
            _chain.endpoint,      // corresponding MessageV3Client contract address on destination chain
            _destinationChainId,  // id of the destination chain
            _data,                // arbitrary data package to send
            _chain.confirmations, // amount of required transaction confirmations
            false                 // send express mode on destination
        );

        // signal we have feature data included with the message data
        emit SendMessageWithFeature(_txId, _destinationChainId, _featureId, _featureData);
    }

    /** OWNER */
    function configureClientExtended(
        address _messageV3, // MessageV3 bridge address
        uint[] calldata _chains, // list of chains to accept as valid destinations
        bytes[] calldata _endpoints, // list of corresponding MessageV3Client addresses on each chain
        uint16[] calldata _confirmations // confirmations required on each chain before processing
    ) external onlyMessageOwner {
        uint _chainsLength = _chains.length;
        for(uint x=0; x < _chainsLength; x++) {
            CHAINS[_chains[x]].confirmations = _confirmations[x];
            CHAINS[_chains[x]].endpointExtended = _endpoints[x];
            CHAINS[_chains[x]].extended = true;
            CHAINS[_chains[x]].endpoint = address(1);
        }

        _configureMessageV3(_messageV3);
    }

    function configureClient(
        address _messageV3, // MessageV3 bridge address
        uint[] calldata _chains, // list of chains to accept as valid destinations
        address[] calldata _endpoints, // list of corresponding MessageV3Client addresses on each chain
        uint16[] calldata _confirmations // confirmations required on each chain before processing
    ) public onlyMessageOwner {
        uint _chainsLength = _chains.length;
        for(uint x=0; x < _chainsLength; x++) {
            CHAINS[_chains[x]].confirmations = _confirmations[x];
            CHAINS[_chains[x]].endpoint = _endpoints[x];
            CHAINS[_chains[x]].extended = false;
        }

        _configureMessageV3(_messageV3);
    }

    function configureFeatureGateway(address _featureGateway) external onlyMessageOwner {
        FEATURE_GATEWAY = IFeatureGateway(_featureGateway);
    }

    function _configureMessageV3(address _messageV3) internal {
        MESSAGEv3 = IMessageV3(_messageV3);
        FEE_TOKEN = IERC20cl(MESSAGEv3.feeToken());

        // approve bridge for source chain fees (limited per transaction with setMaxfee)
        if(address(FEE_TOKEN) != address(0)) {
            FEE_TOKEN.approve(address(MESSAGEv3), type(uint).max);
        }

        // approve bridge for destination gas fees (limited per transaction with setMaxgas)
        if(address(MESSAGEv3.weth()) != address(0)) {
            IERC20cl(MESSAGEv3.weth()).approve(address(MESSAGEv3), type(uint).max);
        }
    }

    function setExsig(address _signer) public onlyMessageOwner {
        MESSAGEv3.setExsig(_signer);
        emit SetExsig(msg.sender, _signer);
    }

    function setMaxgas(uint _maxGas) public onlyMessageOwner {
        MESSAGEv3.setMaxgas(_maxGas);
        emit SetMaxgas(msg.sender, _maxGas);
    }

    function setMaxfee(uint _maxFee) public onlyMessageOwner {
        MESSAGEv3.setMaxfee(_maxFee);
        emit SetMaxfee(msg.sender, _maxFee);
    }

    function recoverToken(address _token, uint _amount) public onlyMessageOwner {
        if(_token == address(0)) {
            // payable(msg.sender).transfer(_amount);
            // @note Zk needs
            (bool success, ) = payable(msg.sender).call{value: _amount}("");
            require(success, "Transfer failed");
        } else {
            IERC20cl(_token).transfer(msg.sender, _amount);
        }
        emit RecoverToken(msg.sender, _token, _amount);
    }

    function isSelf(address _sender, uint _sourceChainId) public view returns (bool) {
        if(_sender == CHAINS[_sourceChainId].endpoint) return true;
        return false;
    }

    function isAuthorized(address _sender, uint _sourceChainId) public view returns (bool) {
        return isSelf(_sender, _sourceChainId);
    }

    receive() external payable {}
    fallback() external payable {}
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"_homeChain","type":"uint256"},{"internalType":"address","name":"_baseToken","type":"address"},{"internalType":"string","name":"_tokenName","type":"string"},{"internalType":"string","name":"_tokenSymbol","type":"string"},{"internalType":"uint8","name":"_tokenDecimals","type":"uint8"}],"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":false,"internalType":"address","name":"_beneficiary","type":"address"}],"name":"BeneficiaryChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"FeeChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"MessageOwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RecoverToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"txId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"destinationChainId","type":"uint256"},{"indexed":false,"internalType":"uint32","name":"featureId","type":"uint32"},{"indexed":false,"internalType":"bytes","name":"featureData","type":"bytes"}],"name":"SendMessageWithFeature","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"address","name":"exsig","type":"address"}],"name":"SetExsig","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"maxfee","type":"uint256"}],"name":"SetMaxfee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"maxGas","type":"uint256"}],"name":"SetMaxgas","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"_status","type":"bool"}],"name":"StatusChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_eTo","type":"address"},{"indexed":false,"internalType":"uint256","name":"_eAmount","type":"uint256"}],"name":"TokensReceived","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"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"CHAINS","outputs":[{"internalType":"address","name":"endpoint","type":"address"},{"internalType":"bytes","name":"endpointExtended","type":"bytes"},{"internalType":"uint16","name":"confirmations","type":"uint16"},{"internalType":"bool","name":"extended","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint32","name":"","type":"uint32"}],"name":"FEATURES","outputs":[{"internalType":"address","name":"endpoint","type":"address"},{"internalType":"bytes","name":"endpointExtended","type":"bytes"},{"internalType":"uint16","name":"confirmations","type":"uint16"},{"internalType":"bool","name":"extended","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FEATURE_GATEWAY","outputs":[{"internalType":"contract IFeatureGateway","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FEE_TOKEN","outputs":[{"internalType":"contract IERC20cl","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MESSAGE_OWNER","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MESSAGEv3","outputs":[{"internalType":"contract IMessageV3","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseToken","outputs":[{"internalType":"contract IBurnableToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_destChainId","type":"uint256"},{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"bridge","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"chainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collect","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_messageV3","type":"address"},{"internalType":"uint256[]","name":"_chains","type":"uint256[]"},{"internalType":"address[]","name":"_endpoints","type":"address[]"},{"internalType":"uint16[]","name":"_confirmations","type":"uint16[]"}],"name":"configureClient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_messageV3","type":"address"},{"internalType":"uint256[]","name":"_chains","type":"uint256[]"},{"internalType":"bytes[]","name":"_endpoints","type":"bytes[]"},{"internalType":"uint16[]","name":"_confirmations","type":"uint16[]"}],"name":"configureClientExtended","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_featureGateway","type":"address"}],"name":"configureFeatureGateway","outputs":[],"stateMutability":"nonpayable","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":[],"name":"getBeneficiary","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"homeChain","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"_sender","type":"address"},{"internalType":"uint256","name":"_sourceChainId","type":"uint256"}],"name":"isAuthorized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_sender","type":"address"},{"internalType":"uint256","name":"_sourceChainId","type":"uint256"}],"name":"isSelf","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"_sourceChainId","type":"uint256"},{"internalType":"address","name":"_sender","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"messageProcess","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"recoverToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_beneficiary","type":"address"}],"name":"setBeneficiary","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"setExsig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxFee","type":"uint256"}],"name":"setMaxfee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxGas","type":"uint256"}],"name":"setMaxgas","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_status","type":"bool"}],"name":"setStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenDecimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newMessageOwner","type":"address"}],"name":"transferMessageOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

610100604052670de0b6b3a7640000600b55600c805460ff191690553480156200002857600080fd5b5060405162003b6938038062003b698339810160408190526200004b916200018c565b828260036200005b8382620002cc565b5060046200006a8282620002cc565b5050600a8054336001600160a01b031990911681179091556001600160a01b03959095166080525060a09490945250504660c05260ff90911660e052600c8054610100600160a81b03191661010090920291909117905562000398565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620000ef57600080fd5b81516001600160401b03808211156200010c576200010c620000c7565b604051601f8301601f19908116603f01168101908282118183101715620001375762000137620000c7565b816040528381526020925086838588010111156200015457600080fd5b600091505b8382101562000178578582018301518183018401529082019062000159565b600093810190920192909252949350505050565b600080600080600060a08688031215620001a557600080fd5b855160208701519095506001600160a01b0381168114620001c557600080fd5b60408701519094506001600160401b0380821115620001e357600080fd5b620001f189838a01620000dd565b945060608801519150808211156200020857600080fd5b506200021788828901620000dd565b925050608086015160ff811681146200022f57600080fd5b809150509295509295909350565b600181811c908216806200025257607f821691505b6020821081036200027357634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620002c757600081815260208120601f850160051c81016020861015620002a25750805b601f850160051c820191505b81811015620002c357828155600101620002ae565b5050505b505050565b81516001600160401b03811115620002e857620002e8620000c7565b6200030081620002f984546200023d565b8462000279565b602080601f8311600181146200033857600084156200031f5750858301515b600019600386901b1c1916600185901b178555620002c3565b600085815260208120601f198616915b82811015620003695788860151825594840194600190910190840162000348565b5085821015620003885787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60805160a05160c05160e05161375f6200040a6000396000818161043c01526104a00152600081816106f201528181610f15015261146301526000818161062c01528181610e5c01528181610ef401526114420152600081816107f301528181610f740152611012015261375f6000f3fe6080604052600436106102a55760003560e01c806373717b0811610161578063b479a961116100ca578063ced72f8711610084578063e522538111610061578063e5225381146108bd578063f52a9198146108d2578063f7194138146108f257005b8063ced72f8714610835578063dd62ed3e1461084a578063e47ad74d1461089d57005b8063bb0b9830116100b2578063bb0b9830146107b4578063c55dae63146107e1578063c60853f61461081557005b8063b479a96114610774578063b7f494a41461079457005b806395d89b411161011b578063a457c2d711610103578063a457c2d714610714578063a9059cbb14610734578063b29a81401461075457005b806395d89b41146106cb5780639a8a0592146106e057005b806379cc67901161014957806379cc67901461064e578063853c75d81461066e57806392ae12fd1461069b57005b806373717b08146105ed5780637468a52b1461061a57005b8063313ce5671161020e578063559b2f65116101c85780635f46e740116101a55780635f46e7401461056a57806369fe0e2d1461058a57806370a08231146105aa57005b8063559b2f65146104fa578063565a2e2c1461051a5780635c40f6f41461054a57005b80633b97e856116101f65780633b97e8561461048e57806342966c68146104c25780634e69d560146104e257005b8063313ce5671461042d578063395093511461046e57005b806320bfe3421161025f5780632972b0f0116102475780632972b0f0146103da5780632ee02d7c146103fa5780632f820a5f1461041a57005b806320bfe3421461039a57806323b872dd146103ba57005b80630d0298021161028d5780630d0298021461030957806318160ddd1461035b5780631c31f7101461037a57005b806306fdde03146102ae578063095ea7b3146102d957005b366102ac57005b005b3480156102ba57600080fd5b506102c3610912565b6040516102d09190612fb0565b60405180910390f35b3480156102e557600080fd5b506102f96102f4366004612fe5565b6109a4565b60405190151581526020016102d0565b34801561031557600080fd5b506005546103369073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016102d0565b34801561036757600080fd5b506002545b6040519081526020016102d0565b34801561038657600080fd5b506102ac610395366004613011565b6109be565b3480156103a657600080fd5b506102f96103b5366004612fe5565b610ac8565b3480156103c657600080fd5b506102f96103d536600461302e565b610b08565b3480156103e657600080fd5b506102f96103f5366004612fe5565b610b2c565b34801561040657600080fd5b506102ac6104153660046130bb565b610b3f565b6102ac610428366004613168565b610d3c565b34801561043957600080fd5b507f00000000000000000000000000000000000000000000000000000000000000005b60405160ff90911681526020016102d0565b34801561047a57600080fd5b506102f9610489366004612fe5565b6110de565b34801561049a57600080fd5b5061045c7f000000000000000000000000000000000000000000000000000000000000000081565b3480156104ce57600080fd5b506102ac6104dd36600461318f565b61112a565b3480156104ee57600080fd5b50600c5460ff166102f9565b34801561050657600080fd5b506102ac610515366004613011565b611137565b34801561052657600080fd5b50600c54610100900473ffffffffffffffffffffffffffffffffffffffff16610336565b34801561055657600080fd5b506102ac6105653660046131b6565b611232565b34801561057657600080fd5b506102ac6105853660046131d3565b611318565b34801561059657600080fd5b506102ac6105a536600461318f565b6114ee565b3480156105b657600080fd5b5061036c6105c5366004613011565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b3480156105f957600080fd5b506006546103369073ffffffffffffffffffffffffffffffffffffffff1681565b34801561062657600080fd5b5061036c7f000000000000000000000000000000000000000000000000000000000000000081565b34801561065a57600080fd5b506102ac610669366004612fe5565b6115a4565b34801561067a57600080fd5b50600a546103369073ffffffffffffffffffffffffffffffffffffffff1681565b3480156106a757600080fd5b506106bb6106b636600461318f565b6115bd565b6040516102d09493929190613288565b3480156106d757600080fd5b506102c361168f565b3480156106ec57600080fd5b5061036c7f000000000000000000000000000000000000000000000000000000000000000081565b34801561072057600080fd5b506102f961072f366004612fe5565b61169e565b34801561074057600080fd5b506102f961074f366004612fe5565b61176f565b34801561076057600080fd5b506102ac61076f366004612fe5565b61177d565b34801561078057600080fd5b506102ac61078f36600461318f565b6119c4565b3480156107a057600080fd5b506102ac6107af3660046130bb565b611b00565b3480156107c057600080fd5b506007546103369073ffffffffffffffffffffffffffffffffffffffff1681565b3480156107ed57600080fd5b506103367f000000000000000000000000000000000000000000000000000000000000000081565b34801561082157600080fd5b506102ac610830366004613011565b611d24565b34801561084157600080fd5b50600b5461036c565b34801561085657600080fd5b5061036c6108653660046132d3565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b3480156108a957600080fd5b506102ac6108b836600461318f565b611e76565b3480156108c957600080fd5b506102ac611fb2565b3480156108de57600080fd5b506106bb6108ed36600461330c565b612102565b3480156108fe57600080fd5b506102ac61090d366004613011565b612146565b6060600380546109219061333a565b80601f016020809104026020016040519081016040528092919081815260200182805461094d9061333a565b801561099a5780601f1061096f5761010080835404028352916020019161099a565b820191906000526020600020905b81548152906001019060200180831161097d57829003601f168201915b5050505050905090565b6000336109b281858561220e565b60019150505b92915050565b600a5473ffffffffffffffffffffffffffffffffffffffff163314610a44576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f4d657373616765436c69656e743a206e6f7420617574686f72697a656400000060448201526064015b60405180910390fd5b600c80547fffffffffffffffffffffff0000000000000000000000000000000000000000ff1661010073ffffffffffffffffffffffffffffffffffffffff8481168202929092179283905560405192041681527f373c72efabe4ef3e552ff77838be729f3bc3d8c586df0012902d1baa2377fa1d906020015b60405180910390a150565b60008181526009602052604081205473ffffffffffffffffffffffffffffffffffffffff90811690841603610aff575060016109b8565b50600092915050565b600033610b168582856123c2565b610b21858585612499565b506001949350505050565b6000610b388383610ac8565b9392505050565b600a5473ffffffffffffffffffffffffffffffffffffffff163314610bc0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f4d657373616765436c69656e743a206e6f7420617574686f72697a65640000006044820152606401610a3b565b8460005b81811015610d2857838382818110610bde57610bde61338d565b9050602002016020810190610bf391906133bc565b600960008a8a85818110610c0957610c0961338d565b90506020020135815260200190815260200160002060020160006101000a81548161ffff021916908361ffff160217905550858582818110610c4d57610c4d61338d565b9050602002016020810190610c629190613011565b600960008a8a85818110610c7857610c7861338d565b90506020020135815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600960008a8a85818110610ce657610ce661338d565b90506020020135815260200190815260200160002060020160026101000a81548160ff0219169083151502179055508080610d209061340f565b915050610bc4565b50610d3288612708565b5050505050505050565b600083815260096020526040902054839073ffffffffffffffffffffffffffffffffffffffff16610def576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f4d657373616765436c69656e743a2064657374696e6174696f6e20636861696e60448201527f206e6f74206163746976650000000000000000000000000000000000000000006064820152608401610a3b565b600b543414610e5a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f53656e742066656520616d6f756e7420697320696e636f7272656374000000006044820152606401610a3b565b7f00000000000000000000000000000000000000000000000000000000000000008403610ef257600c5460ff161515600114610ef2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f476f696e67206261636b206973206e6f7420616c6c6f776564000000000000006044820152606401610a3b565b7f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000000361108a576040517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018390527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906323b872dd90606401600060405180830381600087803b158015610fcd57600080fd5b505af1158015610fe1573d6000803e3d6000fd5b50506040517f42966c68000000000000000000000000000000000000000000000000000000008152600481018590527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1692506342966c689150602401600060405180830381600087803b15801561106d57600080fd5b505af1158015611081573d6000803e3d6000fd5b50505050611094565b6110943383612ac7565b6040805173ffffffffffffffffffffffffffffffffffffffff851660208201529081018390526110d7908590606001604051602081830303815290604052612c88565b5050505050565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff871684529091528120549091906109b29082908690611125908790613447565b61220e565b6111343382612ac7565b50565b600a5473ffffffffffffffffffffffffffffffffffffffff1633146111b8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f4d657373616765436c69656e743a206e6f7420617574686f72697a65640000006044820152606401610a3b565b600a80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040805133815260208101929092527fe1a25f463c6504824e91268b5b2c05658d5358c9c1698a85346cfae5336a642e9101610abd565b600a5473ffffffffffffffffffffffffffffffffffffffff1633146112b3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f4d657373616765436c69656e743a206e6f7420617574686f72697a65640000006044820152606401610a3b565b600c80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001682151590811790915560405160ff909116151581527f4dcbe1841ee9bd9c888e46c0b35574429b1c0f1071806180028dee2f9a10643090602001610abd565b6005548590879073ffffffffffffffffffffffffffffffffffffffff16331461139d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f4d657373616765436c69656e743a206e6f7420617574686f72697a65640000006044820152606401610a3b565b60008181526009602052604090205473ffffffffffffffffffffffffffffffffffffffff83811691161461142d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f4d657373616765436c69656e743a206e6f7420617574686f72697a65640000006044820152606401610a3b565b60008061143c85870187612fe5565b915091507f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000000315611492576114928282612e59565b6040805173ffffffffffffffffffffffffffffffffffffffff84168152602081018390527f5a0ebf9442637ca6e817894481a6de0c29715a73efc9e02bb7ef4ed52843362d910160405180910390a15050505050505050505050565b600a5473ffffffffffffffffffffffffffffffffffffffff16331461156f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f4d657373616765436c69656e743a206e6f7420617574686f72697a65640000006044820152606401610a3b565b600b8190556040518181527f6bbc57480a46553fa4d156ce702beef5f3ad66303b0ed1a5d4cb44966c6584c390602001610abd565b6115af8233836123c2565b6115b98282612ac7565b5050565b6009602052600090815260409020805460018201805473ffffffffffffffffffffffffffffffffffffffff90921692916115f69061333a565b80601f01602080910402602001604051908101604052809291908181526020018280546116229061333a565b801561166f5780601f106116445761010080835404028352916020019161166f565b820191906000526020600020905b81548152906001019060200180831161165257829003601f168201915b5050506002909301549192505061ffff81169060ff620100009091041684565b6060600480546109219061333a565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716845290915281205490919083811015611762576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610a3b565b610b21828686840361220e565b6000336109b2818585612499565b600a5473ffffffffffffffffffffffffffffffffffffffff1633146117fe576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f4d657373616765436c69656e743a206e6f7420617574686f72697a65640000006044820152606401610a3b565b73ffffffffffffffffffffffffffffffffffffffff82166118d157604051600090339083908381818185875af1925050503d806000811461185b576040519150601f19603f3d011682016040523d82523d6000602084013e611860565b606091505b50509050806118cb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f5472616e73666572206661696c656400000000000000000000000000000000006044820152606401610a3b565b5061196a565b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000081523360048201526024810182905273ffffffffffffffffffffffffffffffffffffffff83169063a9059cbb906044016020604051808303816000875af1158015611944573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611968919061345a565b505b6040805133815273ffffffffffffffffffffffffffffffffffffffff841660208201529081018290527f16a1412f01b73c390eb2548427101644aa86c1443c272f73df00fb74c48fe4999060600160405180910390a15050565b600a5473ffffffffffffffffffffffffffffffffffffffff163314611a45576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f4d657373616765436c69656e743a206e6f7420617574686f72697a65640000006044820152606401610a3b565b6005546040517fb479a9610000000000000000000000000000000000000000000000000000000081526004810183905273ffffffffffffffffffffffffffffffffffffffff9091169063b479a96190602401600060405180830381600087803b158015611ab157600080fd5b505af1158015611ac5573d6000803e3d6000fd5b505060408051338152602081018590527f7b6bdf5a54b984bdb41e777eb126123085d57633ab56d408d9a1d39dd894e7bb9350019050610abd565b600a5473ffffffffffffffffffffffffffffffffffffffff163314611b81576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f4d657373616765436c69656e743a206e6f7420617574686f72697a65640000006044820152606401610a3b565b8460005b81811015610d2857838382818110611b9f57611b9f61338d565b9050602002016020810190611bb491906133bc565b600960008a8a85818110611bca57611bca61338d565b90506020020135815260200190815260200160002060020160006101000a81548161ffff021916908361ffff160217905550858582818110611c0e57611c0e61338d565b9050602002810190611c209190613477565b600960008b8b86818110611c3657611c3661338d565b9050602002013581526020019081526020016000206001019182611c5b929190613559565b506001600960008a8a85818110611c7457611c7461338d565b90506020020135815260200190815260200160002060020160026101000a81548160ff0219169083151502179055506001600960008a8a85818110611cbb57611cbb61338d565b90506020020135815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508080611d1c9061340f565b915050611b85565b600a5473ffffffffffffffffffffffffffffffffffffffff163314611da5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f4d657373616765436c69656e743a206e6f7420617574686f72697a65640000006044820152606401610a3b565b6005546040517fc60853f600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83811660048301529091169063c60853f690602401600060405180830381600087803b158015611e1257600080fd5b505af1158015611e26573d6000803e3d6000fd5b50506040805133815273ffffffffffffffffffffffffffffffffffffffff851660208201527f3785abad972484d82ebc033d8eb190737cd209b24e7f853dd622e415c3f537a29350019050610abd565b600a5473ffffffffffffffffffffffffffffffffffffffff163314611ef7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f4d657373616765436c69656e743a206e6f7420617574686f72697a65640000006044820152606401610a3b565b6005546040517fe47ad74d0000000000000000000000000000000000000000000000000000000081526004810183905273ffffffffffffffffffffffffffffffffffffffff9091169063e47ad74d90602401600060405180830381600087803b158015611f6357600080fd5b505af1158015611f77573d6000803e3d6000fd5b505060408051338152602081018590527f83f76efc0c025b2e3779f7bcead5a89ddaf05dc7829157cdab021a8591e7a6f99350019050610abd565b600a5473ffffffffffffffffffffffffffffffffffffffff163314612033576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f4d657373616765436c69656e743a206e6f7420617574686f72697a65640000006044820152606401610a3b565b600c54604051600091610100900473ffffffffffffffffffffffffffffffffffffffff169047908381818185875af1925050503d8060008114612092576040519150601f19603f3d011682016040523d82523d6000602084013e612097565b606091505b5050905080611134576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f4661696c656420746f2073656e642045746865720000000000000000000000006044820152606401610a3b565b60086020908152600092835260408084209091529082529020805460018201805473ffffffffffffffffffffffffffffffffffffffff90921692916115f69061333a565b600a5473ffffffffffffffffffffffffffffffffffffffff1633146121c7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f4d657373616765436c69656e743a206e6f7420617574686f72697a65640000006044820152606401610a3b565b600780547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b73ffffffffffffffffffffffffffffffffffffffff83166122b0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610a3b565b73ffffffffffffffffffffffffffffffffffffffff8216612353576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610a3b565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff8381166000908152600160209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146124935781811015612486576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610a3b565b612493848484840361220e565b50505050565b73ffffffffffffffffffffffffffffffffffffffff831661253c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610a3b565b73ffffffffffffffffffffffffffffffffffffffff82166125df576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610a3b565b73ffffffffffffffffffffffffffffffffffffffff831660009081526020819052604090205481811015612695576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610a3b565b73ffffffffffffffffffffffffffffffffffffffff848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3612493565b600580547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8316908117909155604080517f647846a5000000000000000000000000000000000000000000000000000000008152905163647846a5916004808201926020929091908290030181865afa15801561279f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127c39190613673565b600680547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff929092169182179055156128cc576006546005546040517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff91821660048201527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff602482015291169063095ea7b3906044016020604051808303816000875af11580156128a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128ca919061345a565b505b600554604080517f3fc8cef3000000000000000000000000000000000000000000000000000000008152905160009273ffffffffffffffffffffffffffffffffffffffff1691633fc8cef39160048083019260209291908290030181865afa15801561293c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129609190613673565b73ffffffffffffffffffffffffffffffffffffffff161461113457600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16633fc8cef36040518163ffffffff1660e01b8152600401602060405180830381865afa1580156129e8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a0c9190613673565b6005546040517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff91821660048201527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff602482015291169063095ea7b3906044016020604051808303816000875af1158015612aa3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115b9919061345a565b73ffffffffffffffffffffffffffffffffffffffff8216612b6a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610a3b565b73ffffffffffffffffffffffffffffffffffffffff821660009081526020819052604090205481811015612c20576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f63650000000000000000000000000000000000000000000000000000000000006064820152608401610a3b565b73ffffffffffffffffffffffffffffffffffffffff83166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91016123b5565b505050565b6000828152600960209081526040808320815160808101909252805473ffffffffffffffffffffffffffffffffffffffff168252600181018054859484019190612cd19061333a565b80601f0160208091040260200160405190810160405280929190818152602001828054612cfd9061333a565b8015612d4a5780601f10612d1f57610100808354040283529160200191612d4a565b820191906000526020600020905b815481529060010190602001808311612d2d57829003601f168201915b50505091835250506002919091015461ffff8116602083015262010000900460ff161515604090910152606081015190915015612daa57828160200151604051602001612d98929190613690565b60405160208183030381529060405292505b600554815160408084015190517ffdadc90c00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9093169263fdadc90c92612e0e929091899189916000906004016136be565b6020604051808303816000875af1158015612e2d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e519190613710565b949350505050565b73ffffffffffffffffffffffffffffffffffffffff8216612ed6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610a3b565b8060026000828254612ee89190613447565b909155505073ffffffffffffffffffffffffffffffffffffffff8216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6000815180845260005b81811015612f7257602081850181015186830182015201612f56565b5060006020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b602081526000610b386020830184612f4c565b73ffffffffffffffffffffffffffffffffffffffff8116811461113457600080fd5b60008060408385031215612ff857600080fd5b823561300381612fc3565b946020939093013593505050565b60006020828403121561302357600080fd5b8135610b3881612fc3565b60008060006060848603121561304357600080fd5b833561304e81612fc3565b9250602084013561305e81612fc3565b929592945050506040919091013590565b60008083601f84011261308157600080fd5b50813567ffffffffffffffff81111561309957600080fd5b6020830191508360208260051b85010111156130b457600080fd5b9250929050565b60008060008060008060006080888a0312156130d657600080fd5b87356130e181612fc3565b9650602088013567ffffffffffffffff808211156130fe57600080fd5b61310a8b838c0161306f565b909850965060408a013591508082111561312357600080fd5b61312f8b838c0161306f565b909650945060608a013591508082111561314857600080fd5b506131558a828b0161306f565b989b979a50959850939692959293505050565b60008060006060848603121561317d57600080fd5b83359250602084013561305e81612fc3565b6000602082840312156131a157600080fd5b5035919050565b801515811461113457600080fd5b6000602082840312156131c857600080fd5b8135610b38816131a8565b600080600080600080600060c0888a0312156131ee57600080fd5b8735965060208801359550604088013561320781612fc3565b9450606088013561321781612fc3565b93506080880135925060a088013567ffffffffffffffff8082111561323b57600080fd5b818a0191508a601f83011261324f57600080fd5b81358181111561325e57600080fd5b8b602082850101111561327057600080fd5b60208301945080935050505092959891949750929550565b73ffffffffffffffffffffffffffffffffffffffff851681526080602082015260006132b76080830186612f4c565b61ffff9490941660408301525090151560609091015292915050565b600080604083850312156132e657600080fd5b82356132f181612fc3565b9150602083013561330181612fc3565b809150509250929050565b6000806040838503121561331f57600080fd5b82359150602083013563ffffffff8116811461330157600080fd5b600181811c9082168061334e57607f821691505b602082108103613387577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000602082840312156133ce57600080fd5b813561ffff81168114610b3857600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613440576134406133e0565b5060010190565b808201808211156109b8576109b86133e0565b60006020828403121561346c57600080fd5b8151610b38816131a8565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18436030181126134ac57600080fd5b83018035915067ffffffffffffffff8211156134c757600080fd5b6020019150368190038213156130b457600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b601f821115612c8357600081815260208120601f850160051c810160208610156135325750805b601f850160051c820191505b818110156135515782815560010161353e565b505050505050565b67ffffffffffffffff831115613571576135716134dc565b6135858361357f835461333a565b8361350b565b6000601f8411600181146135d757600085156135a15750838201355b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600387901b1c1916600186901b1783556110d7565b6000838152602090207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0861690835b828110156136265786850135825560209485019460019092019101613606565b5086821015613661577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60f88860031b161c19848701351681555b505060018560011b0183555050505050565b60006020828403121561368557600080fd5b8151610b3881612fc3565b6040815260006136a36040830185612f4c565b82810360208401526136b58185612f4c565b95945050505050565b73ffffffffffffffffffffffffffffffffffffffff8616815284602082015260a0604082015260006136f360a0830186612f4c565b61ffff949094166060830152509015156080909101529392505050565b60006020828403121561372257600080fd5b505191905056fea26469706673582212207f6b9b7854196d833a6d7634b70c45a195907a23f3583307c0f952a74bb5befa64736f6c634300081100330000000000000000000000000000000000000000000000000000000000000089000000000000000000000000874e178a2f3f3f9d34db862453cd756e7eab038100000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000f477261766974792046696e616e6365000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034746490000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102a55760003560e01c806373717b0811610161578063b479a961116100ca578063ced72f8711610084578063e522538111610061578063e5225381146108bd578063f52a9198146108d2578063f7194138146108f257005b8063ced72f8714610835578063dd62ed3e1461084a578063e47ad74d1461089d57005b8063bb0b9830116100b2578063bb0b9830146107b4578063c55dae63146107e1578063c60853f61461081557005b8063b479a96114610774578063b7f494a41461079457005b806395d89b411161011b578063a457c2d711610103578063a457c2d714610714578063a9059cbb14610734578063b29a81401461075457005b806395d89b41146106cb5780639a8a0592146106e057005b806379cc67901161014957806379cc67901461064e578063853c75d81461066e57806392ae12fd1461069b57005b806373717b08146105ed5780637468a52b1461061a57005b8063313ce5671161020e578063559b2f65116101c85780635f46e740116101a55780635f46e7401461056a57806369fe0e2d1461058a57806370a08231146105aa57005b8063559b2f65146104fa578063565a2e2c1461051a5780635c40f6f41461054a57005b80633b97e856116101f65780633b97e8561461048e57806342966c68146104c25780634e69d560146104e257005b8063313ce5671461042d578063395093511461046e57005b806320bfe3421161025f5780632972b0f0116102475780632972b0f0146103da5780632ee02d7c146103fa5780632f820a5f1461041a57005b806320bfe3421461039a57806323b872dd146103ba57005b80630d0298021161028d5780630d0298021461030957806318160ddd1461035b5780631c31f7101461037a57005b806306fdde03146102ae578063095ea7b3146102d957005b366102ac57005b005b3480156102ba57600080fd5b506102c3610912565b6040516102d09190612fb0565b60405180910390f35b3480156102e557600080fd5b506102f96102f4366004612fe5565b6109a4565b60405190151581526020016102d0565b34801561031557600080fd5b506005546103369073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016102d0565b34801561036757600080fd5b506002545b6040519081526020016102d0565b34801561038657600080fd5b506102ac610395366004613011565b6109be565b3480156103a657600080fd5b506102f96103b5366004612fe5565b610ac8565b3480156103c657600080fd5b506102f96103d536600461302e565b610b08565b3480156103e657600080fd5b506102f96103f5366004612fe5565b610b2c565b34801561040657600080fd5b506102ac6104153660046130bb565b610b3f565b6102ac610428366004613168565b610d3c565b34801561043957600080fd5b507f00000000000000000000000000000000000000000000000000000000000000125b60405160ff90911681526020016102d0565b34801561047a57600080fd5b506102f9610489366004612fe5565b6110de565b34801561049a57600080fd5b5061045c7f000000000000000000000000000000000000000000000000000000000000001281565b3480156104ce57600080fd5b506102ac6104dd36600461318f565b61112a565b3480156104ee57600080fd5b50600c5460ff166102f9565b34801561050657600080fd5b506102ac610515366004613011565b611137565b34801561052657600080fd5b50600c54610100900473ffffffffffffffffffffffffffffffffffffffff16610336565b34801561055657600080fd5b506102ac6105653660046131b6565b611232565b34801561057657600080fd5b506102ac6105853660046131d3565b611318565b34801561059657600080fd5b506102ac6105a536600461318f565b6114ee565b3480156105b657600080fd5b5061036c6105c5366004613011565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b3480156105f957600080fd5b506006546103369073ffffffffffffffffffffffffffffffffffffffff1681565b34801561062657600080fd5b5061036c7f000000000000000000000000000000000000000000000000000000000000008981565b34801561065a57600080fd5b506102ac610669366004612fe5565b6115a4565b34801561067a57600080fd5b50600a546103369073ffffffffffffffffffffffffffffffffffffffff1681565b3480156106a757600080fd5b506106bb6106b636600461318f565b6115bd565b6040516102d09493929190613288565b3480156106d757600080fd5b506102c361168f565b3480156106ec57600080fd5b5061036c7f000000000000000000000000000000000000000000000000000000000000009281565b34801561072057600080fd5b506102f961072f366004612fe5565b61169e565b34801561074057600080fd5b506102f961074f366004612fe5565b61176f565b34801561076057600080fd5b506102ac61076f366004612fe5565b61177d565b34801561078057600080fd5b506102ac61078f36600461318f565b6119c4565b3480156107a057600080fd5b506102ac6107af3660046130bb565b611b00565b3480156107c057600080fd5b506007546103369073ffffffffffffffffffffffffffffffffffffffff1681565b3480156107ed57600080fd5b506103367f000000000000000000000000874e178a2f3f3f9d34db862453cd756e7eab038181565b34801561082157600080fd5b506102ac610830366004613011565b611d24565b34801561084157600080fd5b50600b5461036c565b34801561085657600080fd5b5061036c6108653660046132d3565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b3480156108a957600080fd5b506102ac6108b836600461318f565b611e76565b3480156108c957600080fd5b506102ac611fb2565b3480156108de57600080fd5b506106bb6108ed36600461330c565b612102565b3480156108fe57600080fd5b506102ac61090d366004613011565b612146565b6060600380546109219061333a565b80601f016020809104026020016040519081016040528092919081815260200182805461094d9061333a565b801561099a5780601f1061096f5761010080835404028352916020019161099a565b820191906000526020600020905b81548152906001019060200180831161097d57829003601f168201915b5050505050905090565b6000336109b281858561220e565b60019150505b92915050565b600a5473ffffffffffffffffffffffffffffffffffffffff163314610a44576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f4d657373616765436c69656e743a206e6f7420617574686f72697a656400000060448201526064015b60405180910390fd5b600c80547fffffffffffffffffffffff0000000000000000000000000000000000000000ff1661010073ffffffffffffffffffffffffffffffffffffffff8481168202929092179283905560405192041681527f373c72efabe4ef3e552ff77838be729f3bc3d8c586df0012902d1baa2377fa1d906020015b60405180910390a150565b60008181526009602052604081205473ffffffffffffffffffffffffffffffffffffffff90811690841603610aff575060016109b8565b50600092915050565b600033610b168582856123c2565b610b21858585612499565b506001949350505050565b6000610b388383610ac8565b9392505050565b600a5473ffffffffffffffffffffffffffffffffffffffff163314610bc0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f4d657373616765436c69656e743a206e6f7420617574686f72697a65640000006044820152606401610a3b565b8460005b81811015610d2857838382818110610bde57610bde61338d565b9050602002016020810190610bf391906133bc565b600960008a8a85818110610c0957610c0961338d565b90506020020135815260200190815260200160002060020160006101000a81548161ffff021916908361ffff160217905550858582818110610c4d57610c4d61338d565b9050602002016020810190610c629190613011565b600960008a8a85818110610c7857610c7861338d565b90506020020135815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600960008a8a85818110610ce657610ce661338d565b90506020020135815260200190815260200160002060020160026101000a81548160ff0219169083151502179055508080610d209061340f565b915050610bc4565b50610d3288612708565b5050505050505050565b600083815260096020526040902054839073ffffffffffffffffffffffffffffffffffffffff16610def576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f4d657373616765436c69656e743a2064657374696e6174696f6e20636861696e60448201527f206e6f74206163746976650000000000000000000000000000000000000000006064820152608401610a3b565b600b543414610e5a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f53656e742066656520616d6f756e7420697320696e636f7272656374000000006044820152606401610a3b565b7f00000000000000000000000000000000000000000000000000000000000000898403610ef257600c5460ff161515600114610ef2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f476f696e67206261636b206973206e6f7420616c6c6f776564000000000000006044820152606401610a3b565b7f00000000000000000000000000000000000000000000000000000000000000897f00000000000000000000000000000000000000000000000000000000000000920361108a576040517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018390527f000000000000000000000000874e178a2f3f3f9d34db862453cd756e7eab038173ffffffffffffffffffffffffffffffffffffffff16906323b872dd90606401600060405180830381600087803b158015610fcd57600080fd5b505af1158015610fe1573d6000803e3d6000fd5b50506040517f42966c68000000000000000000000000000000000000000000000000000000008152600481018590527f000000000000000000000000874e178a2f3f3f9d34db862453cd756e7eab038173ffffffffffffffffffffffffffffffffffffffff1692506342966c689150602401600060405180830381600087803b15801561106d57600080fd5b505af1158015611081573d6000803e3d6000fd5b50505050611094565b6110943383612ac7565b6040805173ffffffffffffffffffffffffffffffffffffffff851660208201529081018390526110d7908590606001604051602081830303815290604052612c88565b5050505050565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff871684529091528120549091906109b29082908690611125908790613447565b61220e565b6111343382612ac7565b50565b600a5473ffffffffffffffffffffffffffffffffffffffff1633146111b8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f4d657373616765436c69656e743a206e6f7420617574686f72697a65640000006044820152606401610a3b565b600a80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040805133815260208101929092527fe1a25f463c6504824e91268b5b2c05658d5358c9c1698a85346cfae5336a642e9101610abd565b600a5473ffffffffffffffffffffffffffffffffffffffff1633146112b3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f4d657373616765436c69656e743a206e6f7420617574686f72697a65640000006044820152606401610a3b565b600c80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001682151590811790915560405160ff909116151581527f4dcbe1841ee9bd9c888e46c0b35574429b1c0f1071806180028dee2f9a10643090602001610abd565b6005548590879073ffffffffffffffffffffffffffffffffffffffff16331461139d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f4d657373616765436c69656e743a206e6f7420617574686f72697a65640000006044820152606401610a3b565b60008181526009602052604090205473ffffffffffffffffffffffffffffffffffffffff83811691161461142d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f4d657373616765436c69656e743a206e6f7420617574686f72697a65640000006044820152606401610a3b565b60008061143c85870187612fe5565b915091507f00000000000000000000000000000000000000000000000000000000000000897f00000000000000000000000000000000000000000000000000000000000000920315611492576114928282612e59565b6040805173ffffffffffffffffffffffffffffffffffffffff84168152602081018390527f5a0ebf9442637ca6e817894481a6de0c29715a73efc9e02bb7ef4ed52843362d910160405180910390a15050505050505050505050565b600a5473ffffffffffffffffffffffffffffffffffffffff16331461156f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f4d657373616765436c69656e743a206e6f7420617574686f72697a65640000006044820152606401610a3b565b600b8190556040518181527f6bbc57480a46553fa4d156ce702beef5f3ad66303b0ed1a5d4cb44966c6584c390602001610abd565b6115af8233836123c2565b6115b98282612ac7565b5050565b6009602052600090815260409020805460018201805473ffffffffffffffffffffffffffffffffffffffff90921692916115f69061333a565b80601f01602080910402602001604051908101604052809291908181526020018280546116229061333a565b801561166f5780601f106116445761010080835404028352916020019161166f565b820191906000526020600020905b81548152906001019060200180831161165257829003601f168201915b5050506002909301549192505061ffff81169060ff620100009091041684565b6060600480546109219061333a565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716845290915281205490919083811015611762576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610a3b565b610b21828686840361220e565b6000336109b2818585612499565b600a5473ffffffffffffffffffffffffffffffffffffffff1633146117fe576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f4d657373616765436c69656e743a206e6f7420617574686f72697a65640000006044820152606401610a3b565b73ffffffffffffffffffffffffffffffffffffffff82166118d157604051600090339083908381818185875af1925050503d806000811461185b576040519150601f19603f3d011682016040523d82523d6000602084013e611860565b606091505b50509050806118cb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f5472616e73666572206661696c656400000000000000000000000000000000006044820152606401610a3b565b5061196a565b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000081523360048201526024810182905273ffffffffffffffffffffffffffffffffffffffff83169063a9059cbb906044016020604051808303816000875af1158015611944573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611968919061345a565b505b6040805133815273ffffffffffffffffffffffffffffffffffffffff841660208201529081018290527f16a1412f01b73c390eb2548427101644aa86c1443c272f73df00fb74c48fe4999060600160405180910390a15050565b600a5473ffffffffffffffffffffffffffffffffffffffff163314611a45576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f4d657373616765436c69656e743a206e6f7420617574686f72697a65640000006044820152606401610a3b565b6005546040517fb479a9610000000000000000000000000000000000000000000000000000000081526004810183905273ffffffffffffffffffffffffffffffffffffffff9091169063b479a96190602401600060405180830381600087803b158015611ab157600080fd5b505af1158015611ac5573d6000803e3d6000fd5b505060408051338152602081018590527f7b6bdf5a54b984bdb41e777eb126123085d57633ab56d408d9a1d39dd894e7bb9350019050610abd565b600a5473ffffffffffffffffffffffffffffffffffffffff163314611b81576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f4d657373616765436c69656e743a206e6f7420617574686f72697a65640000006044820152606401610a3b565b8460005b81811015610d2857838382818110611b9f57611b9f61338d565b9050602002016020810190611bb491906133bc565b600960008a8a85818110611bca57611bca61338d565b90506020020135815260200190815260200160002060020160006101000a81548161ffff021916908361ffff160217905550858582818110611c0e57611c0e61338d565b9050602002810190611c209190613477565b600960008b8b86818110611c3657611c3661338d565b9050602002013581526020019081526020016000206001019182611c5b929190613559565b506001600960008a8a85818110611c7457611c7461338d565b90506020020135815260200190815260200160002060020160026101000a81548160ff0219169083151502179055506001600960008a8a85818110611cbb57611cbb61338d565b90506020020135815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508080611d1c9061340f565b915050611b85565b600a5473ffffffffffffffffffffffffffffffffffffffff163314611da5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f4d657373616765436c69656e743a206e6f7420617574686f72697a65640000006044820152606401610a3b565b6005546040517fc60853f600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83811660048301529091169063c60853f690602401600060405180830381600087803b158015611e1257600080fd5b505af1158015611e26573d6000803e3d6000fd5b50506040805133815273ffffffffffffffffffffffffffffffffffffffff851660208201527f3785abad972484d82ebc033d8eb190737cd209b24e7f853dd622e415c3f537a29350019050610abd565b600a5473ffffffffffffffffffffffffffffffffffffffff163314611ef7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f4d657373616765436c69656e743a206e6f7420617574686f72697a65640000006044820152606401610a3b565b6005546040517fe47ad74d0000000000000000000000000000000000000000000000000000000081526004810183905273ffffffffffffffffffffffffffffffffffffffff9091169063e47ad74d90602401600060405180830381600087803b158015611f6357600080fd5b505af1158015611f77573d6000803e3d6000fd5b505060408051338152602081018590527f83f76efc0c025b2e3779f7bcead5a89ddaf05dc7829157cdab021a8591e7a6f99350019050610abd565b600a5473ffffffffffffffffffffffffffffffffffffffff163314612033576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f4d657373616765436c69656e743a206e6f7420617574686f72697a65640000006044820152606401610a3b565b600c54604051600091610100900473ffffffffffffffffffffffffffffffffffffffff169047908381818185875af1925050503d8060008114612092576040519150601f19603f3d011682016040523d82523d6000602084013e612097565b606091505b5050905080611134576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f4661696c656420746f2073656e642045746865720000000000000000000000006044820152606401610a3b565b60086020908152600092835260408084209091529082529020805460018201805473ffffffffffffffffffffffffffffffffffffffff90921692916115f69061333a565b600a5473ffffffffffffffffffffffffffffffffffffffff1633146121c7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f4d657373616765436c69656e743a206e6f7420617574686f72697a65640000006044820152606401610a3b565b600780547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b73ffffffffffffffffffffffffffffffffffffffff83166122b0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610a3b565b73ffffffffffffffffffffffffffffffffffffffff8216612353576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610a3b565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff8381166000908152600160209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146124935781811015612486576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610a3b565b612493848484840361220e565b50505050565b73ffffffffffffffffffffffffffffffffffffffff831661253c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610a3b565b73ffffffffffffffffffffffffffffffffffffffff82166125df576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610a3b565b73ffffffffffffffffffffffffffffffffffffffff831660009081526020819052604090205481811015612695576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610a3b565b73ffffffffffffffffffffffffffffffffffffffff848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3612493565b600580547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8316908117909155604080517f647846a5000000000000000000000000000000000000000000000000000000008152905163647846a5916004808201926020929091908290030181865afa15801561279f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127c39190613673565b600680547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff929092169182179055156128cc576006546005546040517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff91821660048201527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff602482015291169063095ea7b3906044016020604051808303816000875af11580156128a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128ca919061345a565b505b600554604080517f3fc8cef3000000000000000000000000000000000000000000000000000000008152905160009273ffffffffffffffffffffffffffffffffffffffff1691633fc8cef39160048083019260209291908290030181865afa15801561293c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129609190613673565b73ffffffffffffffffffffffffffffffffffffffff161461113457600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16633fc8cef36040518163ffffffff1660e01b8152600401602060405180830381865afa1580156129e8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a0c9190613673565b6005546040517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff91821660048201527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff602482015291169063095ea7b3906044016020604051808303816000875af1158015612aa3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115b9919061345a565b73ffffffffffffffffffffffffffffffffffffffff8216612b6a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610a3b565b73ffffffffffffffffffffffffffffffffffffffff821660009081526020819052604090205481811015612c20576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f63650000000000000000000000000000000000000000000000000000000000006064820152608401610a3b565b73ffffffffffffffffffffffffffffffffffffffff83166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91016123b5565b505050565b6000828152600960209081526040808320815160808101909252805473ffffffffffffffffffffffffffffffffffffffff168252600181018054859484019190612cd19061333a565b80601f0160208091040260200160405190810160405280929190818152602001828054612cfd9061333a565b8015612d4a5780601f10612d1f57610100808354040283529160200191612d4a565b820191906000526020600020905b815481529060010190602001808311612d2d57829003601f168201915b50505091835250506002919091015461ffff8116602083015262010000900460ff161515604090910152606081015190915015612daa57828160200151604051602001612d98929190613690565b60405160208183030381529060405292505b600554815160408084015190517ffdadc90c00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9093169263fdadc90c92612e0e929091899189916000906004016136be565b6020604051808303816000875af1158015612e2d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e519190613710565b949350505050565b73ffffffffffffffffffffffffffffffffffffffff8216612ed6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610a3b565b8060026000828254612ee89190613447565b909155505073ffffffffffffffffffffffffffffffffffffffff8216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6000815180845260005b81811015612f7257602081850181015186830182015201612f56565b5060006020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b602081526000610b386020830184612f4c565b73ffffffffffffffffffffffffffffffffffffffff8116811461113457600080fd5b60008060408385031215612ff857600080fd5b823561300381612fc3565b946020939093013593505050565b60006020828403121561302357600080fd5b8135610b3881612fc3565b60008060006060848603121561304357600080fd5b833561304e81612fc3565b9250602084013561305e81612fc3565b929592945050506040919091013590565b60008083601f84011261308157600080fd5b50813567ffffffffffffffff81111561309957600080fd5b6020830191508360208260051b85010111156130b457600080fd5b9250929050565b60008060008060008060006080888a0312156130d657600080fd5b87356130e181612fc3565b9650602088013567ffffffffffffffff808211156130fe57600080fd5b61310a8b838c0161306f565b909850965060408a013591508082111561312357600080fd5b61312f8b838c0161306f565b909650945060608a013591508082111561314857600080fd5b506131558a828b0161306f565b989b979a50959850939692959293505050565b60008060006060848603121561317d57600080fd5b83359250602084013561305e81612fc3565b6000602082840312156131a157600080fd5b5035919050565b801515811461113457600080fd5b6000602082840312156131c857600080fd5b8135610b38816131a8565b600080600080600080600060c0888a0312156131ee57600080fd5b8735965060208801359550604088013561320781612fc3565b9450606088013561321781612fc3565b93506080880135925060a088013567ffffffffffffffff8082111561323b57600080fd5b818a0191508a601f83011261324f57600080fd5b81358181111561325e57600080fd5b8b602082850101111561327057600080fd5b60208301945080935050505092959891949750929550565b73ffffffffffffffffffffffffffffffffffffffff851681526080602082015260006132b76080830186612f4c565b61ffff9490941660408301525090151560609091015292915050565b600080604083850312156132e657600080fd5b82356132f181612fc3565b9150602083013561330181612fc3565b809150509250929050565b6000806040838503121561331f57600080fd5b82359150602083013563ffffffff8116811461330157600080fd5b600181811c9082168061334e57607f821691505b602082108103613387577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000602082840312156133ce57600080fd5b813561ffff81168114610b3857600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613440576134406133e0565b5060010190565b808201808211156109b8576109b86133e0565b60006020828403121561346c57600080fd5b8151610b38816131a8565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18436030181126134ac57600080fd5b83018035915067ffffffffffffffff8211156134c757600080fd5b6020019150368190038213156130b457600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b601f821115612c8357600081815260208120601f850160051c810160208610156135325750805b601f850160051c820191505b818110156135515782815560010161353e565b505050505050565b67ffffffffffffffff831115613571576135716134dc565b6135858361357f835461333a565b8361350b565b6000601f8411600181146135d757600085156135a15750838201355b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600387901b1c1916600186901b1783556110d7565b6000838152602090207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0861690835b828110156136265786850135825560209485019460019092019101613606565b5086821015613661577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60f88860031b161c19848701351681555b505060018560011b0183555050505050565b60006020828403121561368557600080fd5b8151610b3881612fc3565b6040815260006136a36040830185612f4c565b82810360208401526136b58185612f4c565b95945050505050565b73ffffffffffffffffffffffffffffffffffffffff8616815284602082015260a0604082015260006136f360a0830186612f4c565b61ffff949094166060830152509015156080909101529392505050565b60006020828403121561372257600080fd5b505191905056fea26469706673582212207f6b9b7854196d833a6d7634b70c45a195907a23f3583307c0f952a74bb5befa64736f6c63430008110033

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

0000000000000000000000000000000000000000000000000000000000000089000000000000000000000000874e178a2f3f3f9d34db862453cd756e7eab038100000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000f477261766974792046696e616e6365000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034746490000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _homeChain (uint256): 137
Arg [1] : _baseToken (address): 0x874e178A2f3f3F9d34db862453Cd756E7eAb0381
Arg [2] : _tokenName (string): Gravity Finance
Arg [3] : _tokenSymbol (string): GFI
Arg [4] : _tokenDecimals (uint8): 18

-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000089
Arg [1] : 000000000000000000000000874e178a2f3f3f9d34db862453cd756e7eab0381
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [5] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [6] : 477261766974792046696e616e63650000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [8] : 4746490000000000000000000000000000000000000000000000000000000000


[ 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.