Contract 0xA0627D657AEb4E733a38d57B62EF024BCc13d75a

Contract Overview

Balance:
0 BTT
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x3e22ae5f59e0e449fe721e534c73cd6f0fa0e4d633c5a22b9916b102715482a8Set Relayer Toke...193496972023-03-10 10:46:59384 days 5 hrs ago0x77b2c586a1d7d2dfd53abd10e60e7e89563d2f06 IN  0xa0627d657aeb4e733a38d57b62ef024bcc13d75a0 BTT282.645
0xbc2ee33067376670e6cbc1f9071b2318c96907759892165e639f7b560c454930Set Relayer Toke...193496962023-03-10 10:46:57384 days 5 hrs ago0x77b2c586a1d7d2dfd53abd10e60e7e89563d2f06 IN  0xa0627d657aeb4e733a38d57b62ef024bcc13d75a0 BTT282.789
0x1c86e4819ff305edad2671a171ccc5bcb4adf971bdf41b1e60381f88e28511d0Set Relayer Toke...193496942023-03-10 10:46:49384 days 5 hrs ago0x77b2c586a1d7d2dfd53abd10e60e7e89563d2f06 IN  0xa0627d657aeb4e733a38d57b62ef024bcc13d75a0 BTT282.645
0x4871d7880d3a7c2d5fee7cec1bdc37ff7ef970f5414d2d3e7e91aaa3afe09a90Set Relayer Toke...193496912023-03-10 10:46:43384 days 5 hrs ago0x77b2c586a1d7d2dfd53abd10e60e7e89563d2f06 IN  0xa0627d657aeb4e733a38d57b62ef024bcc13d75a0 BTT282.897
0xa4925a16e8c71ea5ed5e45105ddf8fb683e6df29fbb32dd01534ddf31ac7b8ffSet Relayer Toke...193496882023-03-10 10:46:37384 days 5 hrs ago0x77b2c586a1d7d2dfd53abd10e60e7e89563d2f06 IN  0xa0627d657aeb4e733a38d57b62ef024bcc13d75a0 BTT282.645
0xb7c34618859b108a5dab7e358c1a5d4a0b96b2952556498c82d96d679828d4baSet Relayer Toke...193496862023-03-10 10:46:33384 days 5 hrs ago0x77b2c586a1d7d2dfd53abd10e60e7e89563d2f06 IN  0xa0627d657aeb4e733a38d57b62ef024bcc13d75a0 BTT282.357
0xd41c557de189537786b613ecf5ce16d3c762df35a0bbbc2aff0f75c45527069dSet Relayer Toke...193496832023-03-10 10:46:27384 days 5 hrs ago0x77b2c586a1d7d2dfd53abd10e60e7e89563d2f06 IN  0xa0627d657aeb4e733a38d57b62ef024bcc13d75a0 BTT282.645
0x4ad1dec8e145ab6041e9f6ca0a44f86b544b1d139b73046507d785b6f1f63731Set Relayer Toke...193496802023-03-10 10:46:21384 days 5 hrs ago0x77b2c586a1d7d2dfd53abd10e60e7e89563d2f06 IN  0xa0627d657aeb4e733a38d57b62ef024bcc13d75a0 BTT282.573
0x439d242daeb5fc89a1679bd46d088c4af9b26fb3f62e8b9fea5ce207cd074cfaSet Relayer Toke...193496782023-03-10 10:46:17384 days 5 hrs ago0x77b2c586a1d7d2dfd53abd10e60e7e89563d2f06 IN  0xa0627d657aeb4e733a38d57b62ef024bcc13d75a0 BTT282.645
0xa4bcf9b4165fac5be05de73c46d7f6211e795079d47a1183d9d6ddb45517789fSet Relayer Toke...193496752023-03-10 10:46:11384 days 5 hrs ago0x77b2c586a1d7d2dfd53abd10e60e7e89563d2f06 IN  0xa0627d657aeb4e733a38d57b62ef024bcc13d75a0 BTT282.789
0x343e24562554644ef56500749bb3593e282d22932195edff679ea81ba24430a9Set Relayer Toke...193496722023-03-10 10:46:05384 days 5 hrs ago0x77b2c586a1d7d2dfd53abd10e60e7e89563d2f06 IN  0xa0627d657aeb4e733a38d57b62ef024bcc13d75a0 BTT282.645
0xdb93dfa1dd16f510cc9f4efade093c6954f0f0b21b9e0acdba0fc3682d2b415fSet Relayer Toke...193496692023-03-10 10:45:59384 days 5 hrs ago0x77b2c586a1d7d2dfd53abd10e60e7e89563d2f06 IN  0xa0627d657aeb4e733a38d57b62ef024bcc13d75a0 BTT282.141
0x8afbac85a928b47f38b7a7e2a98f0c6c726e814d058881dca28c4f10d731f3f7Set Relayer Toke...193496672023-03-10 10:45:55384 days 5 hrs ago0x77b2c586a1d7d2dfd53abd10e60e7e89563d2f06 IN  0xa0627d657aeb4e733a38d57b62ef024bcc13d75a0 BTT282.645
0x6e7979da849bf7a38d04f3bfa25b7d57de62fa818afe46de180422146c9d0f9fSet Relayer Toke...193496642023-03-10 10:45:49384 days 5 hrs ago0x77b2c586a1d7d2dfd53abd10e60e7e89563d2f06 IN  0xa0627d657aeb4e733a38d57b62ef024bcc13d75a0 BTT282.573
0x4b581135cb9c15bbad26893bbaf7fe2426d5828c1d4903f7104346f4a9b42f08Set Relayer Toke...193496612023-03-10 10:45:43384 days 5 hrs ago0x77b2c586a1d7d2dfd53abd10e60e7e89563d2f06 IN  0xa0627d657aeb4e733a38d57b62ef024bcc13d75a0 BTT282.537
0x1b5429ad0ba23fd2ad2eca0bcda2193efbc6eb6bf13e59ddc0ee61ec54f68ab5Set Relayer Toke...193496592023-03-10 10:45:39384 days 5 hrs ago0x77b2c586a1d7d2dfd53abd10e60e7e89563d2f06 IN  0xa0627d657aeb4e733a38d57b62ef024bcc13d75a0 BTT282.141
0x570a9c52b5b7239456d9283dbf000445c682c3ce4cf1ef757919c3ba786e7e9bSet Relayer Toke...193496562023-03-10 10:45:33384 days 5 hrs ago0x77b2c586a1d7d2dfd53abd10e60e7e89563d2f06 IN  0xa0627d657aeb4e733a38d57b62ef024bcc13d75a0 BTT282.645
0xfb8245b470fc031653ce6825fb90e6e8b8c6336479a99cd53b388adfdb0290c9Set Relayer Toke...193496532023-03-10 10:45:27384 days 5 hrs ago0x77b2c586a1d7d2dfd53abd10e60e7e89563d2f06 IN  0xa0627d657aeb4e733a38d57b62ef024bcc13d75a0 BTT282.573
0xa94c103bb892b17949b653a9e0dbf94099e4004a0137a95d18a08c5a7608a0fdSet Relayer Toke...193496512023-03-10 10:45:23384 days 5 hrs ago0x77b2c586a1d7d2dfd53abd10e60e7e89563d2f06 IN  0xa0627d657aeb4e733a38d57b62ef024bcc13d75a0 BTT282.645
0xabffb42a2145b64b70781d5d758844a314d3504d90450789ed4148054f8f27b5Set Relayer Toke...193496482023-03-10 10:45:17384 days 5 hrs ago0x77b2c586a1d7d2dfd53abd10e60e7e89563d2f06 IN  0xa0627d657aeb4e733a38d57b62ef024bcc13d75a0 BTT282.681
0x81b1da8682c1dfe27e676dc75a397d7d757d02cf226391d2d073741b613299a3Set Relayer Toke...193496452023-03-10 10:45:11384 days 5 hrs ago0x77b2c586a1d7d2dfd53abd10e60e7e89563d2f06 IN  0xa0627d657aeb4e733a38d57b62ef024bcc13d75a0 BTT282.645
0xe104699ea293742b831491dabeef7fa3cd444ac85e5a821682d7534bfe980c30Set Relayer Toke...193496432023-03-10 10:45:07384 days 5 hrs ago0x77b2c586a1d7d2dfd53abd10e60e7e89563d2f06 IN  0xa0627d657aeb4e733a38d57b62ef024bcc13d75a0 BTT282.141
0x87d5bceeef6ea18da315818fe4de560ba6273a6f5e80b8f4bede3499f19adab2Set Relayer Toke...193496402023-03-10 10:45:01384 days 5 hrs ago0x77b2c586a1d7d2dfd53abd10e60e7e89563d2f06 IN  0xa0627d657aeb4e733a38d57b62ef024bcc13d75a0 BTT282.645
0x71e1c2a0af2c5700cfec89d363572f2622f24ea3de4d19e2c8ee8a013a7f1253Set Relayer Toke...193496382023-03-10 10:44:57384 days 5 hrs ago0x77b2c586a1d7d2dfd53abd10e60e7e89563d2f06 IN  0xa0627d657aeb4e733a38d57b62ef024bcc13d75a0 BTT282.465
0x3cc6ec234cb223e1350c4cf77a07a2f866594e74b50308bd6e63c49061be5fd8Set Relayer Toke...193496352023-03-10 10:44:51384 days 5 hrs ago0x77b2c586a1d7d2dfd53abd10e60e7e89563d2f06 IN  0xa0627d657aeb4e733a38d57b62ef024bcc13d75a0 BTT282.645
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xe3ff7bd796bd97ef8b66da9285a80c27ff42ee69b792811093c6519115e73708192535202023-03-08 3:40:53386 days 12 hrs ago 0xa0627d657aeb4e733a38d57b62ef024bcc13d75a 0x4e824ea3f2cddcaf0e34bfac1290f6ef27460e470 BTT
0xe3ff7bd796bd97ef8b66da9285a80c27ff42ee69b792811093c6519115e73708192535202023-03-08 3:40:53386 days 12 hrs ago 0xa0627d657aeb4e733a38d57b62ef024bcc13d75a 0x298fa36a9e2ebd6d3698e552987294fa8b65cd000 BTT
0xe3ff7bd796bd97ef8b66da9285a80c27ff42ee69b792811093c6519115e73708192535202023-03-08 3:40:53386 days 12 hrs ago 0xa0627d657aeb4e733a38d57b62ef024bcc13d75a 0x298fa36a9e2ebd6d3698e552987294fa8b65cd000 BTT
0x47b9c39bdaacab5353abffc466e8476ade3b5c2a181553b98940151f34fc5b69188948162023-02-27 14:10:25395 days 1 hr ago 0xa0627d657aeb4e733a38d57b62ef024bcc13d75a 0x4e824ea3f2cddcaf0e34bfac1290f6ef27460e470 BTT
0x47b9c39bdaacab5353abffc466e8476ade3b5c2a181553b98940151f34fc5b69188948162023-02-27 14:10:25395 days 1 hr ago 0xa0627d657aeb4e733a38d57b62ef024bcc13d75a 0x8e009872b8a6d469939139be5e3bbd99a731212f0 BTT
0x47b9c39bdaacab5353abffc466e8476ade3b5c2a181553b98940151f34fc5b69188948162023-02-27 14:10:25395 days 1 hr ago 0xa0627d657aeb4e733a38d57b62ef024bcc13d75a 0x8e009872b8a6d469939139be5e3bbd99a731212f0 BTT
0xe2bb94fc4d4cbadb8fb11177c99450892543d12cc044b4902860debe5fe4c015186745392023-02-22 7:58:23400 days 7 hrs ago 0xa0627d657aeb4e733a38d57b62ef024bcc13d75a 0x4e824ea3f2cddcaf0e34bfac1290f6ef27460e470 BTT
0xe2bb94fc4d4cbadb8fb11177c99450892543d12cc044b4902860debe5fe4c015186745392023-02-22 7:58:23400 days 7 hrs ago 0xa0627d657aeb4e733a38d57b62ef024bcc13d75a 0x8e009872b8a6d469939139be5e3bbd99a731212f0 BTT
0xe2bb94fc4d4cbadb8fb11177c99450892543d12cc044b4902860debe5fe4c015186745392023-02-22 7:58:23400 days 7 hrs ago 0xa0627d657aeb4e733a38d57b62ef024bcc13d75a 0x8e009872b8a6d469939139be5e3bbd99a731212f0 BTT
0x1927999839cd018bed6e2a50447d04ff1d6e9d4b6b9f726ff069bd7b8d8acb5f186740492023-02-22 7:41:35400 days 8 hrs ago 0xa0627d657aeb4e733a38d57b62ef024bcc13d75a 0x4e824ea3f2cddcaf0e34bfac1290f6ef27460e470 BTT
0x1927999839cd018bed6e2a50447d04ff1d6e9d4b6b9f726ff069bd7b8d8acb5f186740492023-02-22 7:41:35400 days 8 hrs ago 0xa0627d657aeb4e733a38d57b62ef024bcc13d75a 0x8e009872b8a6d469939139be5e3bbd99a731212f0 BTT
0x1927999839cd018bed6e2a50447d04ff1d6e9d4b6b9f726ff069bd7b8d8acb5f186740492023-02-22 7:41:35400 days 8 hrs ago 0xa0627d657aeb4e733a38d57b62ef024bcc13d75a 0x8e009872b8a6d469939139be5e3bbd99a731212f0 BTT
0xfe6b585e39c8c14c010fa739747e2329629e1c7202b77c422da67b453a23d216186737522023-02-22 7:31:21400 days 8 hrs ago 0xa0627d657aeb4e733a38d57b62ef024bcc13d75a 0x4e824ea3f2cddcaf0e34bfac1290f6ef27460e470 BTT
0xfe6b585e39c8c14c010fa739747e2329629e1c7202b77c422da67b453a23d216186737522023-02-22 7:31:21400 days 8 hrs ago 0xa0627d657aeb4e733a38d57b62ef024bcc13d75a 0x8e009872b8a6d469939139be5e3bbd99a731212f0 BTT
0xfe6b585e39c8c14c010fa739747e2329629e1c7202b77c422da67b453a23d216186737522023-02-22 7:31:21400 days 8 hrs ago 0xa0627d657aeb4e733a38d57b62ef024bcc13d75a 0x8e009872b8a6d469939139be5e3bbd99a731212f0 BTT
0x8d6f0628fbbbc1756153611862709c79c69dd2a91567e12faae277362dad1e2b186736382023-02-22 7:27:25400 days 8 hrs ago 0xa0627d657aeb4e733a38d57b62ef024bcc13d75a 0x4e824ea3f2cddcaf0e34bfac1290f6ef27460e470 BTT
0x8d6f0628fbbbc1756153611862709c79c69dd2a91567e12faae277362dad1e2b186736382023-02-22 7:27:25400 days 8 hrs ago 0xa0627d657aeb4e733a38d57b62ef024bcc13d75a 0x8e009872b8a6d469939139be5e3bbd99a731212f0 BTT
0x8d6f0628fbbbc1756153611862709c79c69dd2a91567e12faae277362dad1e2b186736382023-02-22 7:27:25400 days 8 hrs ago 0xa0627d657aeb4e733a38d57b62ef024bcc13d75a 0x8e009872b8a6d469939139be5e3bbd99a731212f0 BTT
0x2a619309f5e979a6e451479684e26005a3cbf94c5ba88ecaca0b4a19bf264b62185984602023-02-20 12:23:09402 days 3 hrs ago 0xa0627d657aeb4e733a38d57b62ef024bcc13d75a 0x4e824ea3f2cddcaf0e34bfac1290f6ef27460e470 BTT
0x2a619309f5e979a6e451479684e26005a3cbf94c5ba88ecaca0b4a19bf264b62185984602023-02-20 12:23:09402 days 3 hrs ago 0xa0627d657aeb4e733a38d57b62ef024bcc13d75a 0x8e009872b8a6d469939139be5e3bbd99a731212f0 BTT
0x2a619309f5e979a6e451479684e26005a3cbf94c5ba88ecaca0b4a19bf264b62185984602023-02-20 12:23:09402 days 3 hrs ago 0xa0627d657aeb4e733a38d57b62ef024bcc13d75a 0x8e009872b8a6d469939139be5e3bbd99a731212f0 BTT
0x766a0b2d26355dec7e33c9a70f5bb8c130d9393183bfafc4da5996f9f4a87df9185977622023-02-20 11:59:13402 days 3 hrs ago 0xa0627d657aeb4e733a38d57b62ef024bcc13d75a 0x4e824ea3f2cddcaf0e34bfac1290f6ef27460e470 BTT
0x766a0b2d26355dec7e33c9a70f5bb8c130d9393183bfafc4da5996f9f4a87df9185977622023-02-20 11:59:13402 days 3 hrs ago 0xa0627d657aeb4e733a38d57b62ef024bcc13d75a 0x88d81a35e07c72c01fbe14ce775941cb43231f840 BTT
0x766a0b2d26355dec7e33c9a70f5bb8c130d9393183bfafc4da5996f9f4a87df9185977622023-02-20 11:59:13402 days 3 hrs ago 0xa0627d657aeb4e733a38d57b62ef024bcc13d75a 0x88d81a35e07c72c01fbe14ce775941cb43231f840 BTT
0x5cd4aacc4c499600702aeeb505a28a90c194389a927a05e20e6a16b4e328473b185973802023-02-20 11:46:05402 days 4 hrs ago 0xa0627d657aeb4e733a38d57b62ef024bcc13d75a 0x4e824ea3f2cddcaf0e34bfac1290f6ef27460e470 BTT
[ Download CSV Export 
Index Block
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ChildERC20Relay

Compiler Version
v0.6.6+commit.6c089d02

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license
File 1 of 16 : EIP712Base.sol
pragma solidity 0.6.6;

import {Initializable} from "./Initializable.sol";

contract EIP712Base is Initializable {
    struct EIP712Domain {
        string name;
        string version;
        address verifyingContract;
        bytes32 salt;
    }

    string constant public ERC712_VERSION = "1";

    bytes32 internal constant EIP712_DOMAIN_TYPEHASH = keccak256(
        bytes(
            "EIP712Domain(string name,string version,address verifyingContract,bytes32 salt)"
        )
    );
    bytes32 internal domainSeperator;

    // supposed to be called once while initializing.
    // one of the contractsa that inherits this contract follows proxy pattern
    // so it is not possible to do this in a constructor
    function _initializeEIP712(
        string memory name
    )
        internal
        initializer
    {
        _setDomainSeperator(name);
    }

    function _setDomainSeperator(string memory name) internal {
        domainSeperator = keccak256(
            abi.encode(
                EIP712_DOMAIN_TYPEHASH,
                keccak256(bytes(name)),
                keccak256(bytes(ERC712_VERSION)),
                address(this),
                bytes32(getChainId())
            )
        );
    }

    function getDomainSeperator() public view returns (bytes32) {
        return domainSeperator;
    }

    function getChainId() public pure returns (uint256) {
        uint256 id;
        assembly {
            id := chainid()
        }
        return id;
    }

    /**
     * Accept message hash and returns hash message in EIP712 compatible form
     * So that it can be used to recover signer from signature signed using EIP712 formatted data
     * https://eips.ethereum.org/EIPS/eip-712
     * "\\x19" makes the encoding deterministic
     * "\\x01" is the version byte to make it compatible to EIP-191
     */
    function toTypedMessageHash(bytes32 messageHash)
        internal
        view
        returns (bytes32)
    {
        return
            keccak256(
                abi.encodePacked("\x19\x01", getDomainSeperator(), messageHash)
            );
    }
}

File 2 of 16 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 3 of 16 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "./IERC20.sol";
import "../../math/SafeMath.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 SafeMath for uint256;
    using Address for address;

    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    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'
        // solhint-disable-next-line max-line-length
        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));
    }

    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).add(value);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    /**
     * @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");
        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 4 of 16 : IChildToken.sol
pragma solidity 0.6.6;

import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";

interface IChildToken is IERC20 {
    event WithdrawTo(address indexed from, address indexed to, uint256 amount);
    function deposit(address user, bytes calldata depositData) external;
    function withdrawTo(address to, uint256 amount) payable external;
}

File 5 of 16 : AccessControlMixin.sol
pragma solidity 0.6.6;

import {AccessControl} from "@openzeppelin/contracts/access/AccessControl.sol";

contract AccessControlMixin is AccessControl {
    string private _revertMsg;
    function _setupContractId(string memory contractId) internal {
        _revertMsg = string(abi.encodePacked(contractId, ": INSUFFICIENT_PERMISSIONS"));
    }

    modifier only(bytes32 role) {
        require(
            hasRole(role, _msgSender()),
            _revertMsg
        );
        _;
    }
}

File 6 of 16 : IChildERC20Exit.sol
pragma solidity 0.6.6;

import "./IChildToken.sol";
import "./IChildTokenForExchange.sol";

interface IChildERC20Exit
{
    event ExitTokenTo(address indexed from, address indexed to, address fromToken, address indexed toToken, uint256 amount);

    function addMapping(IChildToken originToken, IChildTokenForExchange tokenA,IChildTokenForExchange tokenB) external;

    function withdrawTo(address to, IChildToken tokenWithdraw, IChildToken tokenExit, uint256
        amount) external;

    function withdrawBTT(address to,IChildToken tokenWithdraw, IChildToken tokenExit, uint256
        amount) payable external;

}

File 7 of 16 : ContextMixin.sol
pragma solidity 0.6.6;

abstract contract ContextMixin {
    function msgSender()
        internal
        view
        returns (address payable sender)
    {
        if (msg.sender == address(this)) {
            bytes memory array = msg.data;
            uint256 index = msg.data.length;
            assembly {
                // Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those.
                sender := and(
                    mload(add(array, index)),
                    0xffffffffffffffffffffffffffffffffffffffff
                )
            }
        } else {
            sender = msg.sender;
        }
        return sender;
    }
}

File 8 of 16 : AccessControl.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context {
    using EnumerableSet for EnumerableSet.AddressSet;
    using Address for address;

    struct RoleData {
        EnumerableSet.AddressSet members;
        bytes32 adminRole;
    }

    mapping (bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view returns (bool) {
        return _roles[role].members.contains(account);
    }

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) public view returns (uint256) {
        return _roles[role].members.length();
    }

    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) public view returns (address) {
        return _roles[role].members.at(index);
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual {
        require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to grant");

        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual {
        require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to revoke");

        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        emit RoleAdminChanged(role, _roles[role].adminRole, adminRole);
        _roles[role].adminRole = adminRole;
    }

    function _grantRole(bytes32 role, address account) private {
        if (_roles[role].members.add(account)) {
            emit RoleGranted(role, account, _msgSender());
        }
    }

    function _revokeRole(bytes32 role, address account) private {
        if (_roles[role].members.remove(account)) {
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 9 of 16 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

/**
 * @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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 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://diligence.consensys.net/posts/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.5.11/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");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (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 functionCall(target, data, "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");
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(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) {
        require(isContract(target), "Address: static call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(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) {
        require(isContract(target), "Address: delegate call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // 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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 10 of 16 : ChildERC20Relay.sol
pragma solidity 0.6.6;

import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import {AccessControlMixin} from "../../../common/AccessControlMixin.sol";
import {NativeMetaTransaction} from "../../../common/NativeMetaTransaction.sol";
import {ContextMixin} from "../../../common/ContextMixin.sol";
import {IChildToken} from "./IChildToken.sol";
import {IChildERC20Exit} from "./IChildERC20Exit.sol";

contract ChildERC20Relay is AccessControlMixin, NativeMetaTransaction, ContextMixin {
    using SafeERC20 for IERC20;

    event RelayStart(uint256 indexed id, address indexed relayer);
    event RelayExit(uint256 indexed id, address indexed relayer, address to,
        address tokenWithdraw, address tokenExit, uint256 actual, uint256 fee, bool withRefuel, uint256 refuelFee);
    event RelayEnd(uint256 indexed id, address indexed relayer);
    event FeeUpdated(address indexed relayer, address indexed tokenExit, uint256 fee);
    event RefuelFeeUpdated(address indexed relayer, address indexed tokenExit, uint256 refuelFee);
    event RelayerUpdated(address indexed relayer, bool state);
    event StateUpdated(address indexed relayer, address indexed tokenExit, bool state);
    event RefuelStateUpdated(address indexed relayer, address indexed tokenExit, bool state);

    uint256 public nonce;
    IChildERC20Exit public exitHelper;
    mapping(address => mapping(IChildToken => uint256)) public relayerTokenFees;
    mapping(address => mapping(IChildToken => bool)) public relayerTokenStates;

    mapping(address => mapping(IChildToken => uint256)) public relayerTokenRefuelFees;
    mapping(address => mapping(IChildToken => bool)) public relayerTokenRefuelStates;

    mapping(address => bool) public relayerStates;
    mapping(IChildToken => bool) public approved;

    bytes32 public constant MANAGER_ROLE = keccak256("MANAGER_ROLE");

    constructor(
        address _admin,
        address _manager,
        address _exitHelper
    ) public {
        _setupContractId("ChildERC20Relay");
        _setupRole(DEFAULT_ADMIN_ROLE, _admin);
        _setupRole(MANAGER_ROLE, _manager);
        exitHelper = IChildERC20Exit(_exitHelper);
        _initializeEIP712("ChildERC20Relay");
    }

    function setRelayerStates(address relayer, bool state) external {
        require(relayer != address(0x00), "ChildERC20Relay: relayer should not be zero address");
        if (!hasRole(MANAGER_ROLE, msgSender())) {
            require(relayer == msgSender() && state == false, "ChildERC20Relay: INSUFFICIENT_PERMISSIONS");
        }

        relayerStates[relayer] = state;
        emit RelayerUpdated(relayer, state);
    }

    function setRelayerTokenStates(address relayer, IChildToken childToken, bool state) external {
        require(relayerStates[relayer], "ChildERC20Relay: relayer is not active");
        if (!hasRole(MANAGER_ROLE, msgSender())) {
            require(relayer == msgSender(), "ChildERC20Relay: INSUFFICIENT_PERMISSIONS");
        }

        relayerTokenStates[relayer][childToken] = state;
        emit StateUpdated(relayer, address(childToken), state);
    }

    function setRelayerTokenRefuelStates(address relayer, IChildToken childToken, bool state) external {
        require(relayerStates[relayer], "ChildERC20Relay: relayer is not active");
        if (!hasRole(MANAGER_ROLE, msgSender())) {
            require(relayer == msgSender(), "ChildERC20Relay: INSUFFICIENT_PERMISSIONS");
        }

        relayerTokenRefuelStates[relayer][childToken] = state;
        emit RefuelStateUpdated(relayer, address(childToken), state);
    }

    function setRelayerTokenFees(address relayer, IChildToken childToken, uint256 fee) external {
        require(relayerStates[relayer], "ChildERC20Relay: relayer is not active");
        if (!hasRole(MANAGER_ROLE, msgSender())) {
            require(relayer == msgSender(), "ChildERC20Relay: INSUFFICIENT_PERMISSIONS");
        }

        relayerTokenFees[relayer][childToken] = fee;
        emit FeeUpdated(relayer, address(childToken), fee);
    }

    function setRelayerTokenRefuelFees(address relayer, IChildToken childToken, uint256 refuelFee) external {
        require(relayerStates[relayer], "ChildERC20Relay: relayer is not active");
        if (!hasRole(MANAGER_ROLE, msgSender())) {
            require(relayer == msgSender(), "ChildERC20Relay: INSUFFICIENT_PERMISSIONS");
        }

        relayerTokenRefuelFees[relayer][childToken] = refuelFee;
        emit RefuelFeeUpdated(relayer, address(childToken), refuelFee);
    }

    function withdrawToByRelayer(address to, IChildToken tokenWithdraw, IChildToken tokenExit, uint256
        amount, address relayer, bool withRefuel)
    external {
        require(relayerStates[relayer], "ChildERC20Relay: relayer is not active");
        require(relayerTokenStates[relayer][tokenExit], "ChildERC20Relay: unsupported relayer and exitToken");

        uint256 refuelFee = 0;
        if (withRefuel) {
            require(relayerTokenRefuelStates[relayer][tokenExit], "ChildERC20Relay: unsupported relayer and exitToken for refuel");
            refuelFee = relayerTokenRefuelFees[relayer][tokenExit];
        }
        uint256 fee = relayerTokenFees[relayer][tokenExit];

        require(amount > fee + refuelFee, "ChildERC20Relay: amount must be larger than fee");
        uint256 actualExit = amount - fee - refuelFee;

        uint256 _nonce = nonce + 1;
        nonce = _nonce;
        emit RelayStart(_nonce, relayer);

        IERC20(tokenWithdraw).safeTransferFrom(msgSender(), address(this), amount);
        IERC20(tokenWithdraw).transfer(relayer, fee + refuelFee);

        if (!approved[tokenWithdraw]) {
            IERC20(tokenWithdraw).approve(address(exitHelper), uint256(-1));
            approved[tokenWithdraw] = true;
        }

        emit RelayExit(_nonce, relayer, to, address(tokenWithdraw), address(tokenExit), actualExit, fee, withRefuel, refuelFee);
        exitHelper.withdrawTo(to, tokenWithdraw, tokenExit, actualExit);

        emit RelayEnd(_nonce, relayer);
    }

    function withdrawBTTByRelayer(address to, IChildToken tokenWithdraw, IChildToken tokenExit, uint256
        amount, address payable relayer, bool withRefuel)
    payable external {
        require(relayerStates[relayer], "ChildERC20Relay: relayer is not active");
        require(relayerTokenStates[relayer][tokenExit], "ChildERC20Relay: unsupported relayer and exitToken");

        uint256 refuelFee = 0;
        if (withRefuel) {
            require(relayerTokenRefuelStates[relayer][tokenExit], "ChildERC20Relay: unsupported relayer and exitToken for refuel");
            refuelFee = relayerTokenRefuelFees[relayer][tokenExit];
        }
        uint256 fee = relayerTokenFees[relayer][tokenExit];

        require(amount > fee + refuelFee, "ChildERC20Relay: amount must be larger than fee");
        uint256 actualExit = amount - fee - refuelFee;

        uint256 _nonce = nonce + 1;
        nonce = _nonce;
        emit RelayStart(_nonce, relayer);

        if (address(tokenWithdraw) == address(0x1010)) {
            require(msg.value >= amount, "msg value can't be less than amount");
            relayer.transfer(fee + refuelFee);

            emit RelayExit(_nonce, relayer, to, address(tokenWithdraw), address(tokenExit), actualExit, fee, withRefuel, refuelFee);
            exitHelper.withdrawBTT{value:actualExit}(to, tokenWithdraw, tokenExit, actualExit);

            emit RelayEnd(_nonce, relayer);

            if (msg.value > amount) {
                msg.sender.transfer(msg.value - amount);
            }
            return;
        }

        IERC20(tokenWithdraw).safeTransferFrom(msgSender(), address(this), amount);
        IERC20(tokenWithdraw).transfer(relayer, fee + refuelFee);

        if (!approved[tokenWithdraw]) {
            IERC20(tokenWithdraw).approve(address(exitHelper), uint256(-1));
            approved[tokenWithdraw] = true;
        }

        emit RelayExit(_nonce, relayer, to, address(tokenWithdraw), address(tokenExit), actualExit, fee, withRefuel, refuelFee);
        exitHelper.withdrawBTT(to, tokenWithdraw, tokenExit, actualExit);

        emit RelayEnd(_nonce, relayer);
    }
}

File 11 of 16 : IChildTokenForExchange.sol
pragma solidity 0.6.6;

import {IChildToken} from "./IChildToken.sol";

interface IChildTokenForExchange is IChildToken {
    function swapIn(uint256 amount)  external;

    function swapOut(uint256 amount) external;

}

File 12 of 16 : EnumerableSet.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;

        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping (bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) { // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            bytes32 lastvalue = set._values[lastIndex];

            // Move the last value to the index where the value to delete is
            set._values[toDeleteIndex] = lastvalue;
            // Update the index for the moved value
            set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        require(set._values.length > index, "EnumerableSet: index out of bounds");
        return set._values[index];
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }


    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }
}

File 13 of 16 : NativeMetaTransaction.sol
pragma solidity 0.6.6;

import {SafeMath} from "@openzeppelin/contracts/math/SafeMath.sol";
import {EIP712Base} from "./EIP712Base.sol";

contract NativeMetaTransaction is EIP712Base {
    using SafeMath for uint256;
    bytes32 private constant META_TRANSACTION_TYPEHASH = keccak256(
        bytes(
            "MetaTransaction(uint256 nonce,address from,bytes functionSignature)"
        )
    );
    event MetaTransactionExecuted(
        address userAddress,
        address payable relayerAddress,
        bytes functionSignature
    );
    mapping(address => uint256) nonces;

    /*
     * Meta transaction structure.
     * No point of including value field here as if user is doing value transfer then he has the funds to pay for gas
     * He should call the desired function directly in that case.
     */
    struct MetaTransaction {
        uint256 nonce;
        address from;
        bytes functionSignature;
    }

    function executeMetaTransaction(
        address userAddress,
        bytes memory functionSignature,
        bytes32 sigR,
        bytes32 sigS,
        uint8 sigV
    ) public payable returns (bytes memory) {
        MetaTransaction memory metaTx = MetaTransaction({
            nonce: nonces[userAddress],
            from: userAddress,
            functionSignature: functionSignature
        });

        require(
            verify(userAddress, metaTx, sigR, sigS, sigV),
            "Signer and signature do not match"
        );

        // increase nonce for user (to avoid re-use)
        nonces[userAddress] = nonces[userAddress].add(1);

        emit MetaTransactionExecuted(
            userAddress,
            msg.sender,
            functionSignature
        );

        // Append userAddress and relayer address at the end to extract it from calling context
        (bool success, bytes memory returnData) = address(this).call(
            abi.encodePacked(functionSignature, userAddress)
        );
        require(success, "Function call not successful");

        return returnData;
    }

    function hashMetaTransaction(MetaTransaction memory metaTx)
        internal
        pure
        returns (bytes32)
    {
        return
            keccak256(
                abi.encode(
                    META_TRANSACTION_TYPEHASH,
                    metaTx.nonce,
                    metaTx.from,
                    keccak256(metaTx.functionSignature)
                )
            );
    }

    function getNonce(address user) public view returns (uint256 nonce) {
        nonce = nonces[user];
    }

    function verify(
        address signer,
        MetaTransaction memory metaTx,
        bytes32 sigR,
        bytes32 sigS,
        uint8 sigV
    ) internal view returns (bool) {
        require(signer != address(0), "NativeMetaTransaction: INVALID_SIGNER");
        return
            signer ==
            ecrecover(
                toTypedMessageHash(hashMetaTransaction(metaTx)),
                sigV,
                sigR,
                sigS
            );
    }
}

File 14 of 16 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <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 GSN 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 payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

File 15 of 16 : Initializable.sol
pragma solidity 0.6.6;

contract Initializable {
    bool inited = false;

    modifier initializer() {
        require(!inited, "already inited");
        _;
        inited = true;
    }
}

File 16 of 16 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

Contract ABI

[{"inputs":[{"internalType":"address","name":"_admin","type":"address"},{"internalType":"address","name":"_manager","type":"address"},{"internalType":"address","name":"_exitHelper","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"relayer","type":"address"},{"indexed":true,"internalType":"address","name":"tokenExit","type":"address"},{"indexed":false,"internalType":"uint256","name":"fee","type":"uint256"}],"name":"FeeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"address payable","name":"relayerAddress","type":"address"},{"indexed":false,"internalType":"bytes","name":"functionSignature","type":"bytes"}],"name":"MetaTransactionExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"relayer","type":"address"},{"indexed":true,"internalType":"address","name":"tokenExit","type":"address"},{"indexed":false,"internalType":"uint256","name":"refuelFee","type":"uint256"}],"name":"RefuelFeeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"relayer","type":"address"},{"indexed":true,"internalType":"address","name":"tokenExit","type":"address"},{"indexed":false,"internalType":"bool","name":"state","type":"bool"}],"name":"RefuelStateUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":true,"internalType":"address","name":"relayer","type":"address"}],"name":"RelayEnd","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":true,"internalType":"address","name":"relayer","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"address","name":"tokenWithdraw","type":"address"},{"indexed":false,"internalType":"address","name":"tokenExit","type":"address"},{"indexed":false,"internalType":"uint256","name":"actual","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"fee","type":"uint256"},{"indexed":false,"internalType":"bool","name":"withRefuel","type":"bool"},{"indexed":false,"internalType":"uint256","name":"refuelFee","type":"uint256"}],"name":"RelayExit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":true,"internalType":"address","name":"relayer","type":"address"}],"name":"RelayStart","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"relayer","type":"address"},{"indexed":false,"internalType":"bool","name":"state","type":"bool"}],"name":"RelayerUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"relayer","type":"address"},{"indexed":true,"internalType":"address","name":"tokenExit","type":"address"},{"indexed":false,"internalType":"bool","name":"state","type":"bool"}],"name":"StateUpdated","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ERC712_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MANAGER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IChildToken","name":"","type":"address"}],"name":"approved","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"},{"internalType":"bytes","name":"functionSignature","type":"bytes"},{"internalType":"bytes32","name":"sigR","type":"bytes32"},{"internalType":"bytes32","name":"sigS","type":"bytes32"},{"internalType":"uint8","name":"sigV","type":"uint8"}],"name":"executeMetaTransaction","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"exitHelper","outputs":[{"internalType":"contract IChildERC20Exit","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getChainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"getDomainSeperator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getNonce","outputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"relayerStates","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"contract IChildToken","name":"","type":"address"}],"name":"relayerTokenFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"contract IChildToken","name":"","type":"address"}],"name":"relayerTokenRefuelFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"contract IChildToken","name":"","type":"address"}],"name":"relayerTokenRefuelStates","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"contract IChildToken","name":"","type":"address"}],"name":"relayerTokenStates","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"relayer","type":"address"},{"internalType":"bool","name":"state","type":"bool"}],"name":"setRelayerStates","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"relayer","type":"address"},{"internalType":"contract IChildToken","name":"childToken","type":"address"},{"internalType":"uint256","name":"fee","type":"uint256"}],"name":"setRelayerTokenFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"relayer","type":"address"},{"internalType":"contract IChildToken","name":"childToken","type":"address"},{"internalType":"uint256","name":"refuelFee","type":"uint256"}],"name":"setRelayerTokenRefuelFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"relayer","type":"address"},{"internalType":"contract IChildToken","name":"childToken","type":"address"},{"internalType":"bool","name":"state","type":"bool"}],"name":"setRelayerTokenRefuelStates","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"relayer","type":"address"},{"internalType":"contract IChildToken","name":"childToken","type":"address"},{"internalType":"bool","name":"state","type":"bool"}],"name":"setRelayerTokenStates","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"contract IChildToken","name":"tokenWithdraw","type":"address"},{"internalType":"contract IChildToken","name":"tokenExit","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address payable","name":"relayer","type":"address"},{"internalType":"bool","name":"withRefuel","type":"bool"}],"name":"withdrawBTTByRelayer","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"contract IChildToken","name":"tokenWithdraw","type":"address"},{"internalType":"contract IChildToken","name":"tokenExit","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"relayer","type":"address"},{"internalType":"bool","name":"withRefuel","type":"bool"}],"name":"withdrawToByRelayer","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526002805460ff191690553480156200001b57600080fd5b506040516200305538038062003055833981810160405260608110156200004157600080fd5b5080516020808301516040938401518451808601909552600f85526e4368696c64455243323052656c617960881b9285019290925291926200008c906001600160e01b036200012d16565b620000a26000846001600160e01b03620001d316565b604080516b4d414e414745525f524f4c4560a01b8152905190819003600c019020620000d890836001600160e01b03620001d316565b600680546001600160a01b0319166001600160a01b03831617905560408051808201909152600f81526e4368696c64455243323052656c617960881b60208201526200012490620001e8565b505050620004e4565b806040516020018082805190602001908083835b60208310620001625780518252601f19909201916020918201910162000141565b51815160209384036101000a60001901801990921691161790527f3a20494e53554646494349454e545f5045524d495353494f4e530000000000009190930190815260408051808303600519018152601a90920190528051620001cf955060019450920191905062000442565b5050565b620001cf82826001600160e01b036200025616565b60025460ff161562000232576040805162461bcd60e51b815260206004820152600e60248201526d185b1c9958591e481a5b9a5d195960921b604482015290519081900360640190fd5b62000246816001600160e01b03620002d816565b506002805460ff19166001179055565b6000828152602081815260409091206200027b91839062002357620003a0821b17901c565b15620001cf57620002946001600160e01b03620003c916565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6040518060800160405280604f815260200162003006604f913980516020918201208251838301206040805180820190915260018152603160f81b930192909252907fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6306200034f6001600160e01b03620003ce16565b604080516020808201979097528082019590955260608501939093526001600160a01b03909116608084015260a0808401919091528151808403909101815260c09092019052805191012060035550565b6000620003c0836001600160a01b0384166001600160e01b03620003d216565b90505b92915050565b335b90565b4690565b6000620003e983836001600160e01b036200042a16565b6200042157508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155620003c3565b506000620003c3565b60009081526001919091016020526040902054151590565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200048557805160ff1916838001178555620004b5565b82800160010185558215620004b5579182015b82811115620004b557825182559160200191906001019062000498565b50620004c3929150620004c7565b5090565b620003cb91905b80821115620004c35760008155600101620004ce565b612b1280620004f46000396000f3fe6080604052600436106101c25760003560e01c8063825598b4116100f7578063b5362dcc11610095578063d7caad7711610064578063d7caad77146107e5578063d8b964e614610820578063e5eed87314610853578063ec87621c1461089f576101c2565b8063b5362dcc146106fc578063ca15c8731461073f578063d547741f14610769578063d54e6f21146107a2576101c2565b806395c7041c116100d157806395c7041c14610664578063a217fddf14610679578063affed0e01461068e578063b47fe4c3146106a3576101c2565b8063825598b4146105a45780639010d07c146105df57806391d148541461062b576101c2565b80632f2ff15d1161016457806336568abe1161013e57806336568abe146104a65780633c34b179146104df57806344dd997a1461051a578063619254a91461055f576101c2565b80632f2ff15d1461041b578063309aeb89146104565780633408e47014610491576101c2565b806320379ee5116101a057806320379ee5146103625780632199e56d14610377578063248a9ca3146103be5780632d0335ab146103e8576101c2565b80630c53c51c146101c75780630f7e59701461030057806317f6845b14610315575b600080fd5b61028b600480360360a08110156101dd57600080fd5b6001600160a01b03823516919081019060408101602082013564010000000081111561020857600080fd5b82018360208201111561021a57600080fd5b8035906020019184600183028401116401000000008311171561023c57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550508235935050506020810135906040013560ff166108b4565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102c55781810151838201526020016102ad565b50505050905090810190601f1680156102f25780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561030c57600080fd5b5061028b610bb7565b34801561032157600080fd5b506103506004803603604081101561033857600080fd5b506001600160a01b0381358116916020013516610bd4565b60408051918252519081900360200190f35b34801561036e57600080fd5b50610350610bf1565b34801561038357600080fd5b506103aa6004803603602081101561039a57600080fd5b50356001600160a01b0316610bf7565b604080519115158252519081900360200190f35b3480156103ca57600080fd5b50610350600480360360208110156103e157600080fd5b5035610c0c565b3480156103f457600080fd5b506103506004803603602081101561040b57600080fd5b50356001600160a01b0316610c21565b34801561042757600080fd5b506104546004803603604081101561043e57600080fd5b50803590602001356001600160a01b0316610c3c565b005b34801561046257600080fd5b506103aa6004803603604081101561047957600080fd5b506001600160a01b0381358116916020013516610ca8565b34801561049d57600080fd5b50610350610cc8565b3480156104b257600080fd5b50610454600480360360408110156104c957600080fd5b50803590602001356001600160a01b0316610ccc565b3480156104eb57600080fd5b506103aa6004803603604081101561050257600080fd5b506001600160a01b0381358116916020013516610d2d565b34801561052657600080fd5b506104546004803603606081101561053d57600080fd5b506001600160a01b038135811691602081013590911690604001351515610d4d565b34801561056b57600080fd5b506104546004803603606081101561058257600080fd5b506001600160a01b038135811691602081013590911690604001351515610e9a565b3480156105b057600080fd5b50610454600480360360408110156105c757600080fd5b506001600160a01b0381351690602001351515610fe7565b3480156105eb57600080fd5b5061060f6004803603604081101561060257600080fd5b508035906020013561111e565b604080516001600160a01b039092168252519081900360200190f35b34801561063757600080fd5b506103aa6004803603604081101561064e57600080fd5b50803590602001356001600160a01b0316611145565b34801561067057600080fd5b5061060f611163565b34801561068557600080fd5b50610350611172565b34801561069a57600080fd5b50610350611177565b3480156106af57600080fd5b50610454600480360360c08110156106c657600080fd5b506001600160a01b038135811691602081013582169160408201358116916060810135916080820135169060a00135151561117d565b34801561070857600080fd5b506104546004803603606081101561071f57600080fd5b506001600160a01b03813581169160208101359091169060400135611614565b34801561074b57600080fd5b506103506004803603602081101561076257600080fd5b5035611755565b34801561077557600080fd5b506104546004803603604081101561078c57600080fd5b50803590602001356001600160a01b031661176c565b3480156107ae57600080fd5b50610454600480360360608110156107c557600080fd5b506001600160a01b038135811691602081013590911690604001356117c5565b3480156107f157600080fd5b506103506004803603604081101561080857600080fd5b506001600160a01b0381358116916020013516611906565b34801561082c57600080fd5b506103aa6004803603602081101561084357600080fd5b50356001600160a01b0316611923565b610454600480360360c081101561086957600080fd5b506001600160a01b038135811691602081013582169160408201358116916060810135916080820135169060a001351515611938565b3480156108ab57600080fd5b50610350611f58565b60606108be6127e6565b50604080516060810182526001600160a01b038816600081815260046020908152908490205483528201529081018690526108fc8782878787611f7c565b6109375760405162461bcd60e51b81526004018080602001828103825260218152602001806129856021913960400191505060405180910390fd5b6001600160a01b03871660009081526004602052604090205461096190600163ffffffff61205916565b6001600160a01b03881660008181526004602090815260408083209490945583519283523383820181905260609484018581528b51958501959095528a517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b958d9592948d94919260808501928601918190849084905b838110156109f05781810151838201526020016109d8565b50505050905090810190601f168015610a1d5780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a160006060306001600160a01b0316888a6040516020018083805190602001908083835b60208310610a6e5780518252601f199092019160209182019101610a4f565b6001836020036101000a038019825116818451168082178552505050505050905001826001600160a01b03166001600160a01b031660601b8152601401925050506040516020818303038152906040526040518082805190602001908083835b60208310610aed5780518252601f199092019160209182019101610ace565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114610b4f576040519150601f19603f3d011682016040523d82523d6000602084013e610b54565b606091505b509150915081610bab576040805162461bcd60e51b815260206004820152601c60248201527f46756e6374696f6e2063616c6c206e6f74207375636365737366756c00000000604482015290519081900360640190fd5b98975050505050505050565b604051806040016040528060018152602001603160f81b81525081565b600760209081526000928352604080842090915290825290205481565b60035490565b600b6020526000908152604090205460ff1681565b60009081526020819052604090206002015490565b6001600160a01b031660009081526004602052604090205490565b600082815260208190526040902060020154610c5f90610c5a6120b3565b611145565b610c9a5760405162461bcd60e51b815260040180806020018281038252602f815260200180612865602f913960400191505060405180910390fd5b610ca482826120b7565b5050565b600860209081526000928352604080842090915290825290205460ff1681565b4690565b610cd46120b3565b6001600160a01b0316816001600160a01b031614610d235760405162461bcd60e51b815260040180806020018281038252602f815260200180612aae602f913960400191505060405180910390fd5b610ca48282612126565b600a60209081526000928352604080842090915290825290205460ff1681565b6001600160a01b0383166000908152600b602052604090205460ff16610da45760405162461bcd60e51b8152600401808060200182810382526026815260200180612a2f6026913960400191505060405180910390fd5b604080516b4d414e414745525f524f4c4560a01b8152905190819003600c019020610dd190610c5a612195565b610e2c57610ddd612195565b6001600160a01b0316836001600160a01b031614610e2c5760405162461bcd60e51b81526004018080602001828103825260298152602001806129e36029913960400191505060405180910390fd5b6001600160a01b03838116600081815260086020908152604080832094871680845294825291829020805460ff1916861515908117909155825190815291517f1f5e4e4e7839efccb193d33ca97252eb1b88ea6ba4a58379bad9051970300bbb9281900390910190a3505050565b6001600160a01b0383166000908152600b602052604090205460ff16610ef15760405162461bcd60e51b8152600401808060200182810382526026815260200180612a2f6026913960400191505060405180910390fd5b604080516b4d414e414745525f524f4c4560a01b8152905190819003600c019020610f1e90610c5a612195565b610f7957610f2a612195565b6001600160a01b0316836001600160a01b031614610f795760405162461bcd60e51b81526004018080602001828103825260298152602001806129e36029913960400191505060405180910390fd5b6001600160a01b038381166000818152600a6020908152604080832094871680845294825291829020805460ff1916861515908117909155825190815291517fb2c32974c0812f85801ffa1febc9f693edc271f9638c1446da46559de9a2185e9281900390910190a3505050565b6001600160a01b03821661102c5760405162461bcd60e51b81526004018080602001828103825260338152602001806128d76033913960400191505060405180910390fd5b604080516b4d414e414745525f524f4c4560a01b8152905190819003600c01902061105990610c5a612195565b6110be57611065612195565b6001600160a01b0316826001600160a01b0316148015611083575080155b6110be5760405162461bcd60e51b81526004018080602001828103825260298152602001806129e36029913960400191505060405180910390fd5b6001600160a01b0382166000818152600b6020908152604091829020805460ff1916851515908117909155825190815291517f4b36b2e66f38ed349bec532105790177f1283bcbc094e6cd48565195d3033c439281900390910190a25050565b600082815260208190526040812061113c908363ffffffff6121f316565b90505b92915050565b600082815260208190526040812061113c908363ffffffff6121ff16565b6006546001600160a01b031681565b600081565b60055481565b6001600160a01b0382166000908152600b602052604090205460ff166111d45760405162461bcd60e51b8152600401808060200182810382526026815260200180612a2f6026913960400191505060405180910390fd5b6001600160a01b0380831660009081526008602090815260408083209388168352929052205460ff166112385760405162461bcd60e51b81526004018080602001828103825260328152602001806128336032913960400191505060405180910390fd5b600081156112cc576001600160a01b038084166000908152600a602090815260408083209389168352929052205460ff166112a45760405162461bcd60e51b815260040180806020018281038252603d8152602001806129a6603d913960400191505060405180910390fd5b506001600160a01b038083166000908152600960209081526040808320938816835292905220545b6001600160a01b0380841660009081526007602090815260408083209389168352929052205481810185116113325760405162461bcd60e51b815260040180806020018281038252602f815260200180612a7f602f913960400191505060405180910390fd5b600580546001019081905560405182870384900391906001600160a01b0387169082907f9e58804cdcc1d7a91f2c8e54fba67270e10a93977562fc966cae440f50338fad90600090a361139e611386612195565b6001600160a01b038b1690308a63ffffffff61221416565b6040805163a9059cbb60e01b81526001600160a01b03888116600483015285870160248301529151918b169163a9059cbb916044808201926020929091908290030181600087803b1580156113f257600080fd5b505af1158015611406573d6000803e3d6000fd5b505050506040513d602081101561141c57600080fd5b50506001600160a01b0389166000908152600c602052604090205460ff166114e5576006546040805163095ea7b360e01b81526001600160a01b03928316600482015260001960248201529051918b169163095ea7b3916044808201926020929091908290030181600087803b15801561149557600080fd5b505af11580156114a9573d6000803e3d6000fd5b505050506040513d60208110156114bf57600080fd5b50506001600160a01b0389166000908152600c60205260409020805460ff191660011790555b604080516001600160a01b038c811682528b811660208301528a811682840152606082018590526080820186905287151560a083015260c0820187905291519188169183917f7383e64e7eb9ec3b3552d566452396b772344d194636e943d9ba537cee6d7eca919081900360e00190a3600654604080516301b02cf360e21b81526001600160a01b038d811660048301528c811660248301528b8116604483015260648201869052915191909216916306c0b3cc91608480830192600092919082900301818387803b1580156115ba57600080fd5b505af11580156115ce573d6000803e3d6000fd5b50506040516001600160a01b03891692508391507fc3ba42e7e5a243c6e3eca768c628ef167bf0a5470d06ef06005ddc2f562f62f690600090a350505050505050505050565b6001600160a01b0383166000908152600b602052604090205460ff1661166b5760405162461bcd60e51b8152600401808060200182810382526026815260200180612a2f6026913960400191505060405180910390fd5b604080516b4d414e414745525f524f4c4560a01b8152905190819003600c01902061169890610c5a612195565b6116f3576116a4612195565b6001600160a01b0316836001600160a01b0316146116f35760405162461bcd60e51b81526004018080602001828103825260298152602001806129e36029913960400191505060405180910390fd5b6001600160a01b03808416600081815260076020908152604080832094871680845294825291829020859055815185815291517fe79c98674461ff4148d44bd2ffe46f5346a33ca14909e65b9aae5e58639454a39281900390910190a3505050565b600081815260208190526040812061113f90612274565b60008281526020819052604090206002015461178a90610c5a6120b3565b610d235760405162461bcd60e51b81526004018080602001828103825260308152602001806129306030913960400191505060405180910390fd5b6001600160a01b0383166000908152600b602052604090205460ff1661181c5760405162461bcd60e51b8152600401808060200182810382526026815260200180612a2f6026913960400191505060405180910390fd5b604080516b4d414e414745525f524f4c4560a01b8152905190819003600c01902061184990610c5a612195565b6118a457611855612195565b6001600160a01b0316836001600160a01b0316146118a45760405162461bcd60e51b81526004018080602001828103825260298152602001806129e36029913960400191505060405180910390fd5b6001600160a01b03808416600081815260096020908152604080832094871680845294825291829020859055815185815291517fdc2b4cad0c8ec3a6d058968c526286244ff1b04eeadbe9985ac7b37f49a2f29d9281900390910190a3505050565b600960209081526000928352604080842090915290825290205481565b600c6020526000908152604090205460ff1681565b6001600160a01b0382166000908152600b602052604090205460ff1661198f5760405162461bcd60e51b8152600401808060200182810382526026815260200180612a2f6026913960400191505060405180910390fd5b6001600160a01b0380831660009081526008602090815260408083209388168352929052205460ff166119f35760405162461bcd60e51b81526004018080602001828103825260328152602001806128336032913960400191505060405180910390fd5b60008115611a87576001600160a01b038084166000908152600a602090815260408083209389168352929052205460ff16611a5f5760405162461bcd60e51b815260040180806020018281038252603d8152602001806129a6603d913960400191505060405180910390fd5b506001600160a01b038083166000908152600960209081526040808320938816835292905220545b6001600160a01b038084166000908152600760209081526040808320938916835292905220548181018511611aed5760405162461bcd60e51b815260040180806020018281038252602f815260200180612a7f602f913960400191505060405180910390fd5b600580546001019081905560405182870384900391906001600160a01b0387169082907f9e58804cdcc1d7a91f2c8e54fba67270e10a93977562fc966cae440f50338fad90600090a36001600160a01b0389166110101415611d295786341015611b885760405162461bcd60e51b8152600401808060200182810382526023815260200180612a0c6023913960400191505060405180910390fd5b6040516001600160a01b0387169084860180156108fc02916000818181858888f19350505050158015611bbf573d6000803e3d6000fd5b50604080516001600160a01b038c811682528b811660208301528a811682840152606082018590526080820186905287151560a083015260c0820187905291519188169183917f7383e64e7eb9ec3b3552d566452396b772344d194636e943d9ba537cee6d7eca919081900360e00190a360065460408051630cdf678760e31b81526001600160a01b038d811660048301528c811660248301528b8116604483015260648201869052915191909216916366fb3c3891859160848082019260009290919082900301818588803b158015611c9857600080fd5b505af1158015611cac573d6000803e3d6000fd5b50506040516001600160a01b038a1693508492507fc3ba42e7e5a243c6e3eca768c628ef167bf0a5470d06ef06005ddc2f562f62f69150600090a386341115611d205760405133903489900380156108fc02916000818181858888f19350505050158015611d1e573d6000803e3d6000fd5b505b50505050611f50565b611d34611386612195565b6040805163a9059cbb60e01b81526001600160a01b03888116600483015285870160248301529151918b169163a9059cbb916044808201926020929091908290030181600087803b158015611d8857600080fd5b505af1158015611d9c573d6000803e3d6000fd5b505050506040513d6020811015611db257600080fd5b50506001600160a01b0389166000908152600c602052604090205460ff16611e7b576006546040805163095ea7b360e01b81526001600160a01b03928316600482015260001960248201529051918b169163095ea7b3916044808201926020929091908290030181600087803b158015611e2b57600080fd5b505af1158015611e3f573d6000803e3d6000fd5b505050506040513d6020811015611e5557600080fd5b50506001600160a01b0389166000908152600c60205260409020805460ff191660011790555b604080516001600160a01b038c811682528b811660208301528a811682840152606082018590526080820186905287151560a083015260c0820187905291519188169183917f7383e64e7eb9ec3b3552d566452396b772344d194636e943d9ba537cee6d7eca919081900360e00190a360065460408051630cdf678760e31b81526001600160a01b038d811660048301528c811660248301528b8116604483015260648201869052915191909216916366fb3c3891608480830192600092919082900301818387803b1580156115ba57600080fd5b505050505050565b604080516b4d414e414745525f524f4c4560a01b8152905190819003600c01902081565b60006001600160a01b038616611fc35760405162461bcd60e51b81526004018080602001828103825260258152602001806129606025913960400191505060405180910390fd5b6001611fd6611fd18761227f565b61230b565b83868660405160008152602001604052604051808581526020018460ff1660ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa158015612030573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b60008282018381101561113c576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b3390565b60008281526020819052604090206120d5908263ffffffff61235716565b15610ca4576120e26120b3565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081905260409020612144908263ffffffff61236c16565b15610ca4576121516120b3565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b6000333014156121ed5760606000368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031691506121f09050565b50335b90565b600061113c8383612381565b600061113c836001600160a01b0384166123e5565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261226e9085906123fd565b50505050565b600061113f826124b3565b600060405180608001604052806043815260200161289460439139805190602001208260000151836020015184604001518051906020012060405160200180858152602001848152602001836001600160a01b03166001600160a01b03168152602001828152602001945050505050604051602081830303815290604052805190602001209050919050565b6000612315610bf1565b82604051602001808061190160f01b81525060020183815260200182815260200192505050604051602081830303815290604052805190602001209050919050565b600061113c836001600160a01b0384166124b7565b600061113c836001600160a01b038416612501565b815460009082106123c35760405162461bcd60e51b81526004018080602001828103825260228152602001806128116022913960400191505060405180910390fd5b8260000182815481106123d257fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b6060612452826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166125c79092919063ffffffff16565b8051909150156124ae5780806020019051602081101561247157600080fd5b50516124ae5760405162461bcd60e51b815260040180806020018281038252602a815260200180612a55602a913960400191505060405180910390fd5b505050565b5490565b60006124c383836123e5565b6124f95750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561113f565b50600061113f565b600081815260018301602052604081205480156125bd578354600019808301919081019060009087908390811061253457fe5b906000526020600020015490508087600001848154811061255157fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061258157fe5b6001900381819060005260206000200160009055905586600101600087815260200190815260200160002060009055600194505050505061113f565b600091505061113f565b60606125d684846000856125e0565b90505b9392505050565b6060824710156126215760405162461bcd60e51b815260040180806020018281038252602681526020018061290a6026913960400191505060405180910390fd5b61262a8561273c565b61267b576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106126ba5780518252601f19909201916020918201910161269b565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461271c576040519150601f19603f3d011682016040523d82523d6000602084013e612721565b606091505b5091509150612731828286612742565b979650505050505050565b3b151590565b606083156127515750816125d9565b8251156127615782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156127ab578181015183820152602001612793565b50505050905090810190601f1680156127d85780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b60405180606001604052806000815260200160006001600160a01b0316815260200160608152509056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734368696c64455243323052656c61793a20756e737570706f727465642072656c6179657220616e642065786974546f6b656e416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e744d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e6174757265294368696c64455243323052656c61793a2072656c617965722073686f756c64206e6f74206265207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b654e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5349474e45525369676e657220616e64207369676e617475726520646f206e6f74206d617463684368696c64455243323052656c61793a20756e737570706f727465642072656c6179657220616e642065786974546f6b656e20666f722072656675656c4368696c64455243323052656c61793a20494e53554646494349454e545f5045524d495353494f4e536d73672076616c75652063616e2774206265206c657373207468616e20616d6f756e744368696c64455243323052656c61793a2072656c61796572206973206e6f74206163746976655361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565644368696c64455243323052656c61793a20616d6f756e74206d757374206265206c6172676572207468616e20666565416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a26469706673582212204f5181a796e6c78f1380e74799d57bdcd84c358981a8c2c30720b198ebf5a41b64736f6c63430006060033454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c6164647265737320766572696679696e67436f6e74726163742c627974657333322073616c74290000000000000000000000004698ca96dd198ae04e6c45b199516c17c31dbc950000000000000000000000004698ca96dd198ae04e6c45b199516c17c31dbc950000000000000000000000004e824ea3f2cddcaf0e34bfac1290f6ef27460e47

Deployed Bytecode

0x6080604052600436106101c25760003560e01c8063825598b4116100f7578063b5362dcc11610095578063d7caad7711610064578063d7caad77146107e5578063d8b964e614610820578063e5eed87314610853578063ec87621c1461089f576101c2565b8063b5362dcc146106fc578063ca15c8731461073f578063d547741f14610769578063d54e6f21146107a2576101c2565b806395c7041c116100d157806395c7041c14610664578063a217fddf14610679578063affed0e01461068e578063b47fe4c3146106a3576101c2565b8063825598b4146105a45780639010d07c146105df57806391d148541461062b576101c2565b80632f2ff15d1161016457806336568abe1161013e57806336568abe146104a65780633c34b179146104df57806344dd997a1461051a578063619254a91461055f576101c2565b80632f2ff15d1461041b578063309aeb89146104565780633408e47014610491576101c2565b806320379ee5116101a057806320379ee5146103625780632199e56d14610377578063248a9ca3146103be5780632d0335ab146103e8576101c2565b80630c53c51c146101c75780630f7e59701461030057806317f6845b14610315575b600080fd5b61028b600480360360a08110156101dd57600080fd5b6001600160a01b03823516919081019060408101602082013564010000000081111561020857600080fd5b82018360208201111561021a57600080fd5b8035906020019184600183028401116401000000008311171561023c57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550508235935050506020810135906040013560ff166108b4565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102c55781810151838201526020016102ad565b50505050905090810190601f1680156102f25780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561030c57600080fd5b5061028b610bb7565b34801561032157600080fd5b506103506004803603604081101561033857600080fd5b506001600160a01b0381358116916020013516610bd4565b60408051918252519081900360200190f35b34801561036e57600080fd5b50610350610bf1565b34801561038357600080fd5b506103aa6004803603602081101561039a57600080fd5b50356001600160a01b0316610bf7565b604080519115158252519081900360200190f35b3480156103ca57600080fd5b50610350600480360360208110156103e157600080fd5b5035610c0c565b3480156103f457600080fd5b506103506004803603602081101561040b57600080fd5b50356001600160a01b0316610c21565b34801561042757600080fd5b506104546004803603604081101561043e57600080fd5b50803590602001356001600160a01b0316610c3c565b005b34801561046257600080fd5b506103aa6004803603604081101561047957600080fd5b506001600160a01b0381358116916020013516610ca8565b34801561049d57600080fd5b50610350610cc8565b3480156104b257600080fd5b50610454600480360360408110156104c957600080fd5b50803590602001356001600160a01b0316610ccc565b3480156104eb57600080fd5b506103aa6004803603604081101561050257600080fd5b506001600160a01b0381358116916020013516610d2d565b34801561052657600080fd5b506104546004803603606081101561053d57600080fd5b506001600160a01b038135811691602081013590911690604001351515610d4d565b34801561056b57600080fd5b506104546004803603606081101561058257600080fd5b506001600160a01b038135811691602081013590911690604001351515610e9a565b3480156105b057600080fd5b50610454600480360360408110156105c757600080fd5b506001600160a01b0381351690602001351515610fe7565b3480156105eb57600080fd5b5061060f6004803603604081101561060257600080fd5b508035906020013561111e565b604080516001600160a01b039092168252519081900360200190f35b34801561063757600080fd5b506103aa6004803603604081101561064e57600080fd5b50803590602001356001600160a01b0316611145565b34801561067057600080fd5b5061060f611163565b34801561068557600080fd5b50610350611172565b34801561069a57600080fd5b50610350611177565b3480156106af57600080fd5b50610454600480360360c08110156106c657600080fd5b506001600160a01b038135811691602081013582169160408201358116916060810135916080820135169060a00135151561117d565b34801561070857600080fd5b506104546004803603606081101561071f57600080fd5b506001600160a01b03813581169160208101359091169060400135611614565b34801561074b57600080fd5b506103506004803603602081101561076257600080fd5b5035611755565b34801561077557600080fd5b506104546004803603604081101561078c57600080fd5b50803590602001356001600160a01b031661176c565b3480156107ae57600080fd5b50610454600480360360608110156107c557600080fd5b506001600160a01b038135811691602081013590911690604001356117c5565b3480156107f157600080fd5b506103506004803603604081101561080857600080fd5b506001600160a01b0381358116916020013516611906565b34801561082c57600080fd5b506103aa6004803603602081101561084357600080fd5b50356001600160a01b0316611923565b610454600480360360c081101561086957600080fd5b506001600160a01b038135811691602081013582169160408201358116916060810135916080820135169060a001351515611938565b3480156108ab57600080fd5b50610350611f58565b60606108be6127e6565b50604080516060810182526001600160a01b038816600081815260046020908152908490205483528201529081018690526108fc8782878787611f7c565b6109375760405162461bcd60e51b81526004018080602001828103825260218152602001806129856021913960400191505060405180910390fd5b6001600160a01b03871660009081526004602052604090205461096190600163ffffffff61205916565b6001600160a01b03881660008181526004602090815260408083209490945583519283523383820181905260609484018581528b51958501959095528a517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b958d9592948d94919260808501928601918190849084905b838110156109f05781810151838201526020016109d8565b50505050905090810190601f168015610a1d5780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a160006060306001600160a01b0316888a6040516020018083805190602001908083835b60208310610a6e5780518252601f199092019160209182019101610a4f565b6001836020036101000a038019825116818451168082178552505050505050905001826001600160a01b03166001600160a01b031660601b8152601401925050506040516020818303038152906040526040518082805190602001908083835b60208310610aed5780518252601f199092019160209182019101610ace565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114610b4f576040519150601f19603f3d011682016040523d82523d6000602084013e610b54565b606091505b509150915081610bab576040805162461bcd60e51b815260206004820152601c60248201527f46756e6374696f6e2063616c6c206e6f74207375636365737366756c00000000604482015290519081900360640190fd5b98975050505050505050565b604051806040016040528060018152602001603160f81b81525081565b600760209081526000928352604080842090915290825290205481565b60035490565b600b6020526000908152604090205460ff1681565b60009081526020819052604090206002015490565b6001600160a01b031660009081526004602052604090205490565b600082815260208190526040902060020154610c5f90610c5a6120b3565b611145565b610c9a5760405162461bcd60e51b815260040180806020018281038252602f815260200180612865602f913960400191505060405180910390fd5b610ca482826120b7565b5050565b600860209081526000928352604080842090915290825290205460ff1681565b4690565b610cd46120b3565b6001600160a01b0316816001600160a01b031614610d235760405162461bcd60e51b815260040180806020018281038252602f815260200180612aae602f913960400191505060405180910390fd5b610ca48282612126565b600a60209081526000928352604080842090915290825290205460ff1681565b6001600160a01b0383166000908152600b602052604090205460ff16610da45760405162461bcd60e51b8152600401808060200182810382526026815260200180612a2f6026913960400191505060405180910390fd5b604080516b4d414e414745525f524f4c4560a01b8152905190819003600c019020610dd190610c5a612195565b610e2c57610ddd612195565b6001600160a01b0316836001600160a01b031614610e2c5760405162461bcd60e51b81526004018080602001828103825260298152602001806129e36029913960400191505060405180910390fd5b6001600160a01b03838116600081815260086020908152604080832094871680845294825291829020805460ff1916861515908117909155825190815291517f1f5e4e4e7839efccb193d33ca97252eb1b88ea6ba4a58379bad9051970300bbb9281900390910190a3505050565b6001600160a01b0383166000908152600b602052604090205460ff16610ef15760405162461bcd60e51b8152600401808060200182810382526026815260200180612a2f6026913960400191505060405180910390fd5b604080516b4d414e414745525f524f4c4560a01b8152905190819003600c019020610f1e90610c5a612195565b610f7957610f2a612195565b6001600160a01b0316836001600160a01b031614610f795760405162461bcd60e51b81526004018080602001828103825260298152602001806129e36029913960400191505060405180910390fd5b6001600160a01b038381166000818152600a6020908152604080832094871680845294825291829020805460ff1916861515908117909155825190815291517fb2c32974c0812f85801ffa1febc9f693edc271f9638c1446da46559de9a2185e9281900390910190a3505050565b6001600160a01b03821661102c5760405162461bcd60e51b81526004018080602001828103825260338152602001806128d76033913960400191505060405180910390fd5b604080516b4d414e414745525f524f4c4560a01b8152905190819003600c01902061105990610c5a612195565b6110be57611065612195565b6001600160a01b0316826001600160a01b0316148015611083575080155b6110be5760405162461bcd60e51b81526004018080602001828103825260298152602001806129e36029913960400191505060405180910390fd5b6001600160a01b0382166000818152600b6020908152604091829020805460ff1916851515908117909155825190815291517f4b36b2e66f38ed349bec532105790177f1283bcbc094e6cd48565195d3033c439281900390910190a25050565b600082815260208190526040812061113c908363ffffffff6121f316565b90505b92915050565b600082815260208190526040812061113c908363ffffffff6121ff16565b6006546001600160a01b031681565b600081565b60055481565b6001600160a01b0382166000908152600b602052604090205460ff166111d45760405162461bcd60e51b8152600401808060200182810382526026815260200180612a2f6026913960400191505060405180910390fd5b6001600160a01b0380831660009081526008602090815260408083209388168352929052205460ff166112385760405162461bcd60e51b81526004018080602001828103825260328152602001806128336032913960400191505060405180910390fd5b600081156112cc576001600160a01b038084166000908152600a602090815260408083209389168352929052205460ff166112a45760405162461bcd60e51b815260040180806020018281038252603d8152602001806129a6603d913960400191505060405180910390fd5b506001600160a01b038083166000908152600960209081526040808320938816835292905220545b6001600160a01b0380841660009081526007602090815260408083209389168352929052205481810185116113325760405162461bcd60e51b815260040180806020018281038252602f815260200180612a7f602f913960400191505060405180910390fd5b600580546001019081905560405182870384900391906001600160a01b0387169082907f9e58804cdcc1d7a91f2c8e54fba67270e10a93977562fc966cae440f50338fad90600090a361139e611386612195565b6001600160a01b038b1690308a63ffffffff61221416565b6040805163a9059cbb60e01b81526001600160a01b03888116600483015285870160248301529151918b169163a9059cbb916044808201926020929091908290030181600087803b1580156113f257600080fd5b505af1158015611406573d6000803e3d6000fd5b505050506040513d602081101561141c57600080fd5b50506001600160a01b0389166000908152600c602052604090205460ff166114e5576006546040805163095ea7b360e01b81526001600160a01b03928316600482015260001960248201529051918b169163095ea7b3916044808201926020929091908290030181600087803b15801561149557600080fd5b505af11580156114a9573d6000803e3d6000fd5b505050506040513d60208110156114bf57600080fd5b50506001600160a01b0389166000908152600c60205260409020805460ff191660011790555b604080516001600160a01b038c811682528b811660208301528a811682840152606082018590526080820186905287151560a083015260c0820187905291519188169183917f7383e64e7eb9ec3b3552d566452396b772344d194636e943d9ba537cee6d7eca919081900360e00190a3600654604080516301b02cf360e21b81526001600160a01b038d811660048301528c811660248301528b8116604483015260648201869052915191909216916306c0b3cc91608480830192600092919082900301818387803b1580156115ba57600080fd5b505af11580156115ce573d6000803e3d6000fd5b50506040516001600160a01b03891692508391507fc3ba42e7e5a243c6e3eca768c628ef167bf0a5470d06ef06005ddc2f562f62f690600090a350505050505050505050565b6001600160a01b0383166000908152600b602052604090205460ff1661166b5760405162461bcd60e51b8152600401808060200182810382526026815260200180612a2f6026913960400191505060405180910390fd5b604080516b4d414e414745525f524f4c4560a01b8152905190819003600c01902061169890610c5a612195565b6116f3576116a4612195565b6001600160a01b0316836001600160a01b0316146116f35760405162461bcd60e51b81526004018080602001828103825260298152602001806129e36029913960400191505060405180910390fd5b6001600160a01b03808416600081815260076020908152604080832094871680845294825291829020859055815185815291517fe79c98674461ff4148d44bd2ffe46f5346a33ca14909e65b9aae5e58639454a39281900390910190a3505050565b600081815260208190526040812061113f90612274565b60008281526020819052604090206002015461178a90610c5a6120b3565b610d235760405162461bcd60e51b81526004018080602001828103825260308152602001806129306030913960400191505060405180910390fd5b6001600160a01b0383166000908152600b602052604090205460ff1661181c5760405162461bcd60e51b8152600401808060200182810382526026815260200180612a2f6026913960400191505060405180910390fd5b604080516b4d414e414745525f524f4c4560a01b8152905190819003600c01902061184990610c5a612195565b6118a457611855612195565b6001600160a01b0316836001600160a01b0316146118a45760405162461bcd60e51b81526004018080602001828103825260298152602001806129e36029913960400191505060405180910390fd5b6001600160a01b03808416600081815260096020908152604080832094871680845294825291829020859055815185815291517fdc2b4cad0c8ec3a6d058968c526286244ff1b04eeadbe9985ac7b37f49a2f29d9281900390910190a3505050565b600960209081526000928352604080842090915290825290205481565b600c6020526000908152604090205460ff1681565b6001600160a01b0382166000908152600b602052604090205460ff1661198f5760405162461bcd60e51b8152600401808060200182810382526026815260200180612a2f6026913960400191505060405180910390fd5b6001600160a01b0380831660009081526008602090815260408083209388168352929052205460ff166119f35760405162461bcd60e51b81526004018080602001828103825260328152602001806128336032913960400191505060405180910390fd5b60008115611a87576001600160a01b038084166000908152600a602090815260408083209389168352929052205460ff16611a5f5760405162461bcd60e51b815260040180806020018281038252603d8152602001806129a6603d913960400191505060405180910390fd5b506001600160a01b038083166000908152600960209081526040808320938816835292905220545b6001600160a01b038084166000908152600760209081526040808320938916835292905220548181018511611aed5760405162461bcd60e51b815260040180806020018281038252602f815260200180612a7f602f913960400191505060405180910390fd5b600580546001019081905560405182870384900391906001600160a01b0387169082907f9e58804cdcc1d7a91f2c8e54fba67270e10a93977562fc966cae440f50338fad90600090a36001600160a01b0389166110101415611d295786341015611b885760405162461bcd60e51b8152600401808060200182810382526023815260200180612a0c6023913960400191505060405180910390fd5b6040516001600160a01b0387169084860180156108fc02916000818181858888f19350505050158015611bbf573d6000803e3d6000fd5b50604080516001600160a01b038c811682528b811660208301528a811682840152606082018590526080820186905287151560a083015260c0820187905291519188169183917f7383e64e7eb9ec3b3552d566452396b772344d194636e943d9ba537cee6d7eca919081900360e00190a360065460408051630cdf678760e31b81526001600160a01b038d811660048301528c811660248301528b8116604483015260648201869052915191909216916366fb3c3891859160848082019260009290919082900301818588803b158015611c9857600080fd5b505af1158015611cac573d6000803e3d6000fd5b50506040516001600160a01b038a1693508492507fc3ba42e7e5a243c6e3eca768c628ef167bf0a5470d06ef06005ddc2f562f62f69150600090a386341115611d205760405133903489900380156108fc02916000818181858888f19350505050158015611d1e573d6000803e3d6000fd5b505b50505050611f50565b611d34611386612195565b6040805163a9059cbb60e01b81526001600160a01b03888116600483015285870160248301529151918b169163a9059cbb916044808201926020929091908290030181600087803b158015611d8857600080fd5b505af1158015611d9c573d6000803e3d6000fd5b505050506040513d6020811015611db257600080fd5b50506001600160a01b0389166000908152600c602052604090205460ff16611e7b576006546040805163095ea7b360e01b81526001600160a01b03928316600482015260001960248201529051918b169163095ea7b3916044808201926020929091908290030181600087803b158015611e2b57600080fd5b505af1158015611e3f573d6000803e3d6000fd5b505050506040513d6020811015611e5557600080fd5b50506001600160a01b0389166000908152600c60205260409020805460ff191660011790555b604080516001600160a01b038c811682528b811660208301528a811682840152606082018590526080820186905287151560a083015260c0820187905291519188169183917f7383e64e7eb9ec3b3552d566452396b772344d194636e943d9ba537cee6d7eca919081900360e00190a360065460408051630cdf678760e31b81526001600160a01b038d811660048301528c811660248301528b8116604483015260648201869052915191909216916366fb3c3891608480830192600092919082900301818387803b1580156115ba57600080fd5b505050505050565b604080516b4d414e414745525f524f4c4560a01b8152905190819003600c01902081565b60006001600160a01b038616611fc35760405162461bcd60e51b81526004018080602001828103825260258152602001806129606025913960400191505060405180910390fd5b6001611fd6611fd18761227f565b61230b565b83868660405160008152602001604052604051808581526020018460ff1660ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa158015612030573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b60008282018381101561113c576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b3390565b60008281526020819052604090206120d5908263ffffffff61235716565b15610ca4576120e26120b3565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081905260409020612144908263ffffffff61236c16565b15610ca4576121516120b3565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b6000333014156121ed5760606000368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031691506121f09050565b50335b90565b600061113c8383612381565b600061113c836001600160a01b0384166123e5565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261226e9085906123fd565b50505050565b600061113f826124b3565b600060405180608001604052806043815260200161289460439139805190602001208260000151836020015184604001518051906020012060405160200180858152602001848152602001836001600160a01b03166001600160a01b03168152602001828152602001945050505050604051602081830303815290604052805190602001209050919050565b6000612315610bf1565b82604051602001808061190160f01b81525060020183815260200182815260200192505050604051602081830303815290604052805190602001209050919050565b600061113c836001600160a01b0384166124b7565b600061113c836001600160a01b038416612501565b815460009082106123c35760405162461bcd60e51b81526004018080602001828103825260228152602001806128116022913960400191505060405180910390fd5b8260000182815481106123d257fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b6060612452826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166125c79092919063ffffffff16565b8051909150156124ae5780806020019051602081101561247157600080fd5b50516124ae5760405162461bcd60e51b815260040180806020018281038252602a815260200180612a55602a913960400191505060405180910390fd5b505050565b5490565b60006124c383836123e5565b6124f95750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561113f565b50600061113f565b600081815260018301602052604081205480156125bd578354600019808301919081019060009087908390811061253457fe5b906000526020600020015490508087600001848154811061255157fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061258157fe5b6001900381819060005260206000200160009055905586600101600087815260200190815260200160002060009055600194505050505061113f565b600091505061113f565b60606125d684846000856125e0565b90505b9392505050565b6060824710156126215760405162461bcd60e51b815260040180806020018281038252602681526020018061290a6026913960400191505060405180910390fd5b61262a8561273c565b61267b576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106126ba5780518252601f19909201916020918201910161269b565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461271c576040519150601f19603f3d011682016040523d82523d6000602084013e612721565b606091505b5091509150612731828286612742565b979650505050505050565b3b151590565b606083156127515750816125d9565b8251156127615782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156127ab578181015183820152602001612793565b50505050905090810190601f1680156127d85780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b60405180606001604052806000815260200160006001600160a01b0316815260200160608152509056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734368696c64455243323052656c61793a20756e737570706f727465642072656c6179657220616e642065786974546f6b656e416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e744d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e6174757265294368696c64455243323052656c61793a2072656c617965722073686f756c64206e6f74206265207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b654e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5349474e45525369676e657220616e64207369676e617475726520646f206e6f74206d617463684368696c64455243323052656c61793a20756e737570706f727465642072656c6179657220616e642065786974546f6b656e20666f722072656675656c4368696c64455243323052656c61793a20494e53554646494349454e545f5045524d495353494f4e536d73672076616c75652063616e2774206265206c657373207468616e20616d6f756e744368696c64455243323052656c61793a2072656c61796572206973206e6f74206163746976655361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565644368696c64455243323052656c61793a20616d6f756e74206d757374206265206c6172676572207468616e20666565416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a26469706673582212204f5181a796e6c78f1380e74799d57bdcd84c358981a8c2c30720b198ebf5a41b64736f6c63430006060033

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

0000000000000000000000004698ca96dd198ae04e6c45b199516c17c31dbc950000000000000000000000004698ca96dd198ae04e6c45b199516c17c31dbc950000000000000000000000004e824ea3f2cddcaf0e34bfac1290f6ef27460e47

-----Decoded View---------------
Arg [0] : _admin (address): 0x4698ca96dd198ae04e6c45b199516c17c31dbc95
Arg [1] : _manager (address): 0x4698ca96dd198ae04e6c45b199516c17c31dbc95
Arg [2] : _exitHelper (address): 0x4e824ea3f2cddcaf0e34bfac1290f6ef27460e47

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000004698ca96dd198ae04e6c45b199516c17c31dbc95
Arg [1] : 0000000000000000000000004698ca96dd198ae04e6c45b199516c17c31dbc95
Arg [2] : 0000000000000000000000004e824ea3f2cddcaf0e34bfac1290f6ef27460e47


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading