ETH Price: $2,228.80 (-4.82%)

Contract

0xCB947E889F7dDa1DF9D1fa5932EbfEEe99bc893B
 

Overview

ETH Balance

0.02779490631141 ETH

Eth Value

$61.95 (@ $2,228.80/ETH)

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
__callback140299692022-01-18 14:12:101520 days ago1642515130IN
0xCB947E88...e99bc893B
0 ETH0.02339654110.10140069
Withdraw140299542022-01-18 14:09:151520 days ago1642514955IN
0xCB947E88...e99bc893B
0.03311762 ETH0.03162982110.10140069
__callback137608442021-12-07 21:07:311562 days ago1638911251IN
0xCB947E88...e99bc893B
0 ETH0.0290702496.90080824
Withdraw137608232021-12-07 21:00:251562 days ago1638910825IN
0xCB947E88...e99bc893B
0.03003925 ETH0.0278387396.90080824
__callback137271672021-12-02 11:45:551567 days ago1638445555IN
0xCB947E88...e99bc893B
0 ETH0.0057374888.24991621
Withdraw137271162021-12-02 11:34:541567 days ago1638444894IN
0xCB947E88...e99bc893B
0.02735747 ETH0.002391388.24991621
Withdraw137271162021-12-02 11:34:541567 days ago1638444894IN
0xCB947E88...e99bc893B
0.02735747 ETH0.025353488.24991621
__callback131869062021-09-08 18:58:171652 days ago1631127497IN
0xCB947E88...e99bc893B
0 ETH0.03133417125.97414685
Withdraw131868052021-09-08 18:37:061652 days ago1631126226IN
0xCB947E88...e99bc893B
0.03905198 ETH0.03619123125.97414685
Withdraw131867922021-09-08 18:35:241652 days ago1631126124IN
0xCB947E88...e99bc893B
0.05683268 ETH0.00729747167.98983615
__callback131867392021-09-08 18:23:061652 days ago1631125386IN
0xCB947E88...e99bc893B
0 ETH0.03609551143.50094579
Withdraw131866242021-09-08 17:58:491652 days ago1631123929IN
0xCB947E88...e99bc893B
0.0641576 ETH0.04122653143.50094579
Withdraw131866042021-09-08 17:56:161652 days ago1631123776IN
0xCB947E88...e99bc893B
0.05243302 ETH0.00609273203.09109843
__callback128777752021-07-22 18:26:571700 days ago1626978417IN
0xCB947E88...e99bc893B
0 ETH0.0043232424
Withdraw128777562021-07-22 18:24:111700 days ago1626978251IN
0xCB947E88...e99bc893B
0.00527 ETH0.0068949824
__callback128592862021-07-19 21:01:031703 days ago1626728463IN
0xCB947E88...e99bc893B
0 ETH0.0057003232
Withdraw128592702021-07-19 20:57:341703 days ago1626728254IN
0xCB947E88...e99bc893B
0.00992 ETH0.0091933132
__callback127012912021-06-25 4:59:071727 days ago1624597147IN
0xCB947E88...e99bc893B
0 ETH0.0017813510
Withdraw127012842021-06-25 4:56:061727 days ago1624596966IN
0xCB947E88...e99bc893B
0.0031 ETH0.0002709710
Withdraw127012832021-06-25 4:56:021727 days ago1624596962IN
0xCB947E88...e99bc893B
0.0031 ETH0.0028729110
__callback121352212021-03-29 16:27:131815 days ago1617035233IN
0xCB947E88...e99bc893B
0 ETH0.0377895222
Withdraw121351862021-03-29 16:18:231815 days ago1617034703IN
0xCB947E88...e99bc893B
0.06882 ETH0.06432827222
__callback121298112021-03-28 20:27:501816 days ago1616963270IN
0xCB947E88...e99bc893B
0 ETH0.02229921131
Withdraw121297932021-03-28 20:24:581816 days ago1616963098IN
0xCB947E88...e99bc893B
0.04061 ETH0.03795947131
__callback121297112021-03-28 20:03:561816 days ago1616961836IN
0xCB947E88...e99bc893B
0 ETH0.02482149134
View all transactions

Latest 15 internal transactions

Advanced mode:
Parent Transaction Hash Method Block
From
To
-140299542022-01-18 14:09:151520 days ago1642514955
0xCB947E88...e99bc893B
0.03331173 ETH
-137608232021-12-07 21:00:251562 days ago1638910825
0xCB947E88...e99bc893B
0.02935156 ETH
-137271162021-12-02 11:34:541567 days ago1638444894
0xCB947E88...e99bc893B
0.02675629 ETH
-131868052021-09-08 18:37:061652 days ago1631126226
0xCB947E88...e99bc893B
0.03807356 ETH
-131866242021-09-08 17:58:491652 days ago1631123929
0xCB947E88...e99bc893B
0.0433316 ETH
-128777562021-07-22 18:24:111700 days ago1626978251
0xCB947E88...e99bc893B
0.00748131 ETH
-128592702021-07-19 20:57:341703 days ago1626728254
0xCB947E88...e99bc893B
0.00988131 ETH
-127012832021-06-25 4:56:021727 days ago1624596962
0xCB947E88...e99bc893B
0.00328131 ETH
-121351862021-03-29 16:18:231815 days ago1617034703
0xCB947E88...e99bc893B
0.06688131 ETH
-121297932021-03-28 20:24:581816 days ago1616963098
0xCB947E88...e99bc893B
0.03958131 ETH
-121296522021-03-28 19:49:161816 days ago1616960956
0xCB947E88...e99bc893B
0.04048131 ETH
-120996782021-03-24 5:18:191820 days ago1616563099
0xCB947E88...e99bc893B
0.03053131 ETH
-120996512021-03-24 5:09:571820 days ago1616562597
0xCB947E88...e99bc893B
0.03718131 ETH
-120949152021-03-23 11:40:371821 days ago1616499637
0xCB947E88...e99bc893B
0.03478131 ETH
-120678062021-03-19 7:20:061825 days ago1616138406
0xCB947E88...e99bc893B
0.0376524 ETH
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BerezkaWithdraw

Compiler Version
v0.5.17+commit.d19bba13

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at Etherscan.io on 2021-03-15
*/

// File: browser/withdraw/ITokens.sol

pragma solidity 0.5.17;


interface ITokens {
   
   function burn(address _holder, uint256 _amount) external;
   
}
// File: browser/withdraw/IAgent.sol

pragma solidity 0.5.17;


interface IAgent {
   
   function transfer(address _token, address _to, uint256 _value) external;
   
}
// File: browser/withdraw/Context.sol

pragma solidity 0.5.17;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
contract Context {
    function _msgSender() internal view returns (address) {
        return msg.sender;
    }

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


pragma solidity 0.5.17;

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
contract Ownable is Context {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () public {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

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

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

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

pragma solidity 0.5.17;


interface IERC20 {
    
    function decimals() external view returns (uint256);
    
    /**
     * @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: browser/withdraw/provableAPI.sol

// <provableAPI>
/*


Copyright (c) 2015-2016 Oraclize SRL
Copyright (c) 2016-2019 Oraclize LTD
Copyright (c) 2019 Provable Things Limited

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

*/
pragma solidity >= 0.5.0 < 0.6.0; // Incompatible compiler version - please select a compiler within the stated pragma range, or use a different version of the provableAPI!

// Dummy contract only used to emit to end-user they are using wrong solc
contract solcChecker {
/* INCOMPATIBLE SOLC: import the following instead: "github.com/oraclize/ethereum-api/oraclizeAPI_0.4.sol" */ function f(bytes calldata x) external;
}

contract ProvableI {

    address public cbAddress;

    function setProofType(byte _proofType) external;
    function setCustomGasPrice(uint _gasPrice) external;
    function getPrice(string memory _datasource) public returns (uint _dsprice);
    function randomDS_getSessionPubKeyHash() external view returns (bytes32 _sessionKeyHash);
    function getPrice(string memory _datasource, uint _gasLimit) public returns (uint _dsprice);
    function queryN(uint _timestamp, string memory _datasource, bytes memory _argN) public payable returns (bytes32 _id);
    function query(uint _timestamp, string calldata _datasource, string calldata _arg) external payable returns (bytes32 _id);
    function query2(uint _timestamp, string memory _datasource, string memory _arg1, string memory _arg2) public payable returns (bytes32 _id);
    function query_withGasLimit(uint _timestamp, string calldata _datasource, string calldata _arg, uint _gasLimit) external payable returns (bytes32 _id);
    function queryN_withGasLimit(uint _timestamp, string calldata _datasource, bytes calldata _argN, uint _gasLimit) external payable returns (bytes32 _id);
    function query2_withGasLimit(uint _timestamp, string calldata _datasource, string calldata _arg1, string calldata _arg2, uint _gasLimit) external payable returns (bytes32 _id);
}

contract OracleAddrResolverI {
    function getAddress() public returns (address _address);
}
/*

Begin solidity-cborutils

https://github.com/smartcontractkit/solidity-cborutils

MIT License

Copyright (c) 2018 SmartContract ChainLink, Ltd.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

*/
library Buffer {

    struct buffer {
        bytes buf;
        uint capacity;
    }

    function init(buffer memory _buf, uint _capacity) internal pure {
        uint capacity = _capacity;
        if (capacity % 32 != 0) {
            capacity += 32 - (capacity % 32);
        }
        _buf.capacity = capacity; // Allocate space for the buffer data
        assembly {
            let ptr := mload(0x40)
            mstore(_buf, ptr)
            mstore(ptr, 0)
            mstore(0x40, add(ptr, capacity))
        }
    }

    function resize(buffer memory _buf, uint _capacity) private pure {
        bytes memory oldbuf = _buf.buf;
        init(_buf, _capacity);
        append(_buf, oldbuf);
    }

    function max(uint _a, uint _b) private pure returns (uint _max) {
        if (_a > _b) {
            return _a;
        }
        return _b;
    }
    /**
      * @dev Appends a byte array to the end of the buffer. Resizes if doing so
      *      would exceed the capacity of the buffer.
      * @param _buf The buffer to append to.
      * @param _data The data to append.
      * @return The original buffer.
      *
      */
    function append(buffer memory _buf, bytes memory _data) internal pure returns (buffer memory _buffer) {
        if (_data.length + _buf.buf.length > _buf.capacity) {
            resize(_buf, max(_buf.capacity, _data.length) * 2);
        }
        uint dest;
        uint src;
        uint len = _data.length;
        assembly {
            let bufptr := mload(_buf) // Memory address of the buffer data
            let buflen := mload(bufptr) // Length of existing buffer data
            dest := add(add(bufptr, buflen), 32) // Start address = buffer address + buffer length + sizeof(buffer length)
            mstore(bufptr, add(buflen, mload(_data))) // Update buffer length
            src := add(_data, 32)
        }
        for(; len >= 32; len -= 32) { // Copy word-length chunks while possible
            assembly {
                mstore(dest, mload(src))
            }
            dest += 32;
            src += 32;
        }
        uint mask = 256 ** (32 - len) - 1; // Copy remaining bytes
        assembly {
            let srcpart := and(mload(src), not(mask))
            let destpart := and(mload(dest), mask)
            mstore(dest, or(destpart, srcpart))
        }
        return _buf;
    }
    /**
      *
      * @dev Appends a byte to the end of the buffer. Resizes if doing so would
      * exceed the capacity of the buffer.
      * @param _buf The buffer to append to.
      * @param _data The data to append.
      * @return The original buffer.
      *
      */
    function append(buffer memory _buf, uint8 _data) internal pure {
        if (_buf.buf.length + 1 > _buf.capacity) {
            resize(_buf, _buf.capacity * 2);
        }
        assembly {
            let bufptr := mload(_buf) // Memory address of the buffer data
            let buflen := mload(bufptr) // Length of existing buffer data
            let dest := add(add(bufptr, buflen), 32) // Address = buffer address + buffer length + sizeof(buffer length)
            mstore8(dest, _data)
            mstore(bufptr, add(buflen, 1)) // Update buffer length
        }
    }
    /**
      *
      * @dev Appends a byte to the end of the buffer. Resizes if doing so would
      * exceed the capacity of the buffer.
      * @param _buf The buffer to append to.
      * @param _data The data to append.
      * @return The original buffer.
      *
      */
    function appendInt(buffer memory _buf, uint _data, uint _len) internal pure returns (buffer memory _buffer) {
        if (_len + _buf.buf.length > _buf.capacity) {
            resize(_buf, max(_buf.capacity, _len) * 2);
        }
        uint mask = 256 ** _len - 1;
        assembly {
            let bufptr := mload(_buf) // Memory address of the buffer data
            let buflen := mload(bufptr) // Length of existing buffer data
            let dest := add(add(bufptr, buflen), _len) // Address = buffer address + buffer length + sizeof(buffer length) + len
            mstore(dest, or(and(mload(dest), not(mask)), _data))
            mstore(bufptr, add(buflen, _len)) // Update buffer length
        }
        return _buf;
    }
}

library CBOR {

    using Buffer for Buffer.buffer;

    uint8 private constant MAJOR_TYPE_INT = 0;
    uint8 private constant MAJOR_TYPE_MAP = 5;
    uint8 private constant MAJOR_TYPE_BYTES = 2;
    uint8 private constant MAJOR_TYPE_ARRAY = 4;
    uint8 private constant MAJOR_TYPE_STRING = 3;
    uint8 private constant MAJOR_TYPE_NEGATIVE_INT = 1;
    uint8 private constant MAJOR_TYPE_CONTENT_FREE = 7;

    function encodeType(Buffer.buffer memory _buf, uint8 _major, uint _value) private pure {
        if (_value <= 23) {
            _buf.append(uint8((_major << 5) | _value));
        } else if (_value <= 0xFF) {
            _buf.append(uint8((_major << 5) | 24));
            _buf.appendInt(_value, 1);
        } else if (_value <= 0xFFFF) {
            _buf.append(uint8((_major << 5) | 25));
            _buf.appendInt(_value, 2);
        } else if (_value <= 0xFFFFFFFF) {
            _buf.append(uint8((_major << 5) | 26));
            _buf.appendInt(_value, 4);
        } else if (_value <= 0xFFFFFFFFFFFFFFFF) {
            _buf.append(uint8((_major << 5) | 27));
            _buf.appendInt(_value, 8);
        }
    }

    function encodeIndefiniteLengthType(Buffer.buffer memory _buf, uint8 _major) private pure {
        _buf.append(uint8((_major << 5) | 31));
    }

    function encodeUInt(Buffer.buffer memory _buf, uint _value) internal pure {
        encodeType(_buf, MAJOR_TYPE_INT, _value);
    }

    function encodeInt(Buffer.buffer memory _buf, int _value) internal pure {
        if (_value >= 0) {
            encodeType(_buf, MAJOR_TYPE_INT, uint(_value));
        } else {
            encodeType(_buf, MAJOR_TYPE_NEGATIVE_INT, uint(-1 - _value));
        }
    }

    function encodeBytes(Buffer.buffer memory _buf, bytes memory _value) internal pure {
        encodeType(_buf, MAJOR_TYPE_BYTES, _value.length);
        _buf.append(_value);
    }

    function encodeString(Buffer.buffer memory _buf, string memory _value) internal pure {
        encodeType(_buf, MAJOR_TYPE_STRING, bytes(_value).length);
        _buf.append(bytes(_value));
    }

    function startArray(Buffer.buffer memory _buf) internal pure {
        encodeIndefiniteLengthType(_buf, MAJOR_TYPE_ARRAY);
    }

    function startMap(Buffer.buffer memory _buf) internal pure {
        encodeIndefiniteLengthType(_buf, MAJOR_TYPE_MAP);
    }

    function endSequence(Buffer.buffer memory _buf) internal pure {
        encodeIndefiniteLengthType(_buf, MAJOR_TYPE_CONTENT_FREE);
    }
}
/*

End solidity-cborutils

*/
contract usingProvable {

    using CBOR for Buffer.buffer;

    ProvableI provable;
    OracleAddrResolverI OAR;

    uint constant day = 60 * 60 * 24;
    uint constant week = 60 * 60 * 24 * 7;
    uint constant month = 60 * 60 * 24 * 30;

    byte constant proofType_NONE = 0x00;
    byte constant proofType_Ledger = 0x30;
    byte constant proofType_Native = 0xF0;
    byte constant proofStorage_IPFS = 0x01;
    byte constant proofType_Android = 0x40;
    byte constant proofType_TLSNotary = 0x10;

    string provable_network_name;
    uint8 constant networkID_auto = 0;
    uint8 constant networkID_morden = 2;
    uint8 constant networkID_mainnet = 1;
    uint8 constant networkID_testnet = 2;
    uint8 constant networkID_consensys = 161;

    mapping(bytes32 => bytes32) provable_randomDS_args;
    mapping(bytes32 => bool) provable_randomDS_sessionKeysHashVerified;

    modifier provableAPI {
        if ((address(OAR) == address(0)) || (getCodeSize(address(OAR)) == 0)) {
            provable_setNetwork(networkID_auto);
        }
        if (address(provable) != OAR.getAddress()) {
            provable = ProvableI(OAR.getAddress());
        }
        _;
    }

    modifier provable_randomDS_proofVerify(bytes32 _queryId, string memory _result, bytes memory _proof) {
        // RandomDS Proof Step 1: The prefix has to match 'LP\x01' (Ledger Proof version 1)
        require((_proof[0] == "L") && (_proof[1] == "P") && (uint8(_proof[2]) == uint8(1)));
        bool proofVerified = provable_randomDS_proofVerify__main(_proof, _queryId, bytes(_result), provable_getNetworkName());
        require(proofVerified);
        _;
    }

    function provable_setNetwork(uint8 _networkID) internal returns (bool _networkSet) {
      _networkID; // NOTE: Silence the warning and remain backwards compatible
      return provable_setNetwork();
    }

    function provable_setNetworkName(string memory _network_name) internal {
        provable_network_name = _network_name;
    }

    function provable_getNetworkName() internal view returns (string memory _networkName) {
        return provable_network_name;
    }

    function provable_setNetwork() internal returns (bool _networkSet) {
        if (getCodeSize(0x1d3B2638a7cC9f2CB3D298A3DA7a90B67E5506ed) > 0) { //mainnet
            OAR = OracleAddrResolverI(0x1d3B2638a7cC9f2CB3D298A3DA7a90B67E5506ed);
            provable_setNetworkName("eth_mainnet");
            return true;
        }
        if (getCodeSize(0xc03A2615D5efaf5F49F60B7BB6583eaec212fdf1) > 0) { //ropsten testnet
            OAR = OracleAddrResolverI(0xc03A2615D5efaf5F49F60B7BB6583eaec212fdf1);
            provable_setNetworkName("eth_ropsten3");
            return true;
        }
        if (getCodeSize(0xB7A07BcF2Ba2f2703b24C0691b5278999C59AC7e) > 0) { //kovan testnet
            OAR = OracleAddrResolverI(0xB7A07BcF2Ba2f2703b24C0691b5278999C59AC7e);
            provable_setNetworkName("eth_kovan");
            return true;
        }
        if (getCodeSize(0x146500cfd35B22E4A392Fe0aDc06De1a1368Ed48) > 0) { //rinkeby testnet
            OAR = OracleAddrResolverI(0x146500cfd35B22E4A392Fe0aDc06De1a1368Ed48);
            provable_setNetworkName("eth_rinkeby");
            return true;
        }
        if (getCodeSize(0xa2998EFD205FB9D4B4963aFb70778D6354ad3A41) > 0) { //goerli testnet
            OAR = OracleAddrResolverI(0xa2998EFD205FB9D4B4963aFb70778D6354ad3A41);
            provable_setNetworkName("eth_goerli");
            return true;
        }
        if (getCodeSize(0x6f485C8BF6fc43eA212E93BBF8ce046C7f1cb475) > 0) { //ethereum-bridge
            OAR = OracleAddrResolverI(0x6f485C8BF6fc43eA212E93BBF8ce046C7f1cb475);
            return true;
        }
        if (getCodeSize(0x20e12A1F859B3FeaE5Fb2A0A32C18F5a65555bBF) > 0) { //ether.camp ide
            OAR = OracleAddrResolverI(0x20e12A1F859B3FeaE5Fb2A0A32C18F5a65555bBF);
            return true;
        }
        if (getCodeSize(0x51efaF4c8B3C9AfBD5aB9F4bbC82784Ab6ef8fAA) > 0) { //browser-solidity
            OAR = OracleAddrResolverI(0x51efaF4c8B3C9AfBD5aB9F4bbC82784Ab6ef8fAA);
            return true;
        }
        return false;
    }
    /**
     * @dev The following `__callback` functions are just placeholders ideally
     *      meant to be defined in child contract when proofs are used.
     *      The function bodies simply silence compiler warnings.
     */
    function __callback(bytes32 _myid, string memory _result) public {
        __callback(_myid, _result, new bytes(0));
    }

    function __callback(bytes32 _myid, string memory _result, bytes memory _proof) public {
      _myid; _result; _proof;
      provable_randomDS_args[bytes32(0)] = bytes32(0);
    }

    function provable_getPrice(string memory _datasource) provableAPI internal returns (uint _queryPrice) {
        return provable.getPrice(_datasource);
    }

    function provable_getPrice(string memory _datasource, uint _gasLimit) provableAPI internal returns (uint _queryPrice) {
        return provable.getPrice(_datasource, _gasLimit);
    }

    function provable_query(string memory _datasource, string memory _arg) provableAPI internal returns (bytes32 _id) {
        uint price = provable.getPrice(_datasource);
        if (price > 1 ether + tx.gasprice * 200000) {
            return 0; // Unexpectedly high price
        }
        return provable.query.value(price)(0, _datasource, _arg);
    }

    function provable_query(uint _timestamp, string memory _datasource, string memory _arg) provableAPI internal returns (bytes32 _id) {
        uint price = provable.getPrice(_datasource);
        if (price > 1 ether + tx.gasprice * 200000) {
            return 0; // Unexpectedly high price
        }
        return provable.query.value(price)(_timestamp, _datasource, _arg);
    }

    function provable_query(uint _timestamp, string memory _datasource, string memory _arg, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        uint price = provable.getPrice(_datasource,_gasLimit);
        if (price > 1 ether + tx.gasprice * _gasLimit) {
            return 0; // Unexpectedly high price
        }
        return provable.query_withGasLimit.value(price)(_timestamp, _datasource, _arg, _gasLimit);
    }

    function provable_query(string memory _datasource, string memory _arg, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        uint price = provable.getPrice(_datasource, _gasLimit);
        if (price > 1 ether + tx.gasprice * _gasLimit) {
           return 0; // Unexpectedly high price
        }
        return provable.query_withGasLimit.value(price)(0, _datasource, _arg, _gasLimit);
    }

    function provable_query(string memory _datasource, string memory _arg1, string memory _arg2) provableAPI internal returns (bytes32 _id) {
        uint price = provable.getPrice(_datasource);
        if (price > 1 ether + tx.gasprice * 200000) {
            return 0; // Unexpectedly high price
        }
        return provable.query2.value(price)(0, _datasource, _arg1, _arg2);
    }

    function provable_query(uint _timestamp, string memory _datasource, string memory _arg1, string memory _arg2) provableAPI internal returns (bytes32 _id) {
        uint price = provable.getPrice(_datasource);
        if (price > 1 ether + tx.gasprice * 200000) {
            return 0; // Unexpectedly high price
        }
        return provable.query2.value(price)(_timestamp, _datasource, _arg1, _arg2);
    }

    function provable_query(uint _timestamp, string memory _datasource, string memory _arg1, string memory _arg2, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        uint price = provable.getPrice(_datasource, _gasLimit);
        if (price > 1 ether + tx.gasprice * _gasLimit) {
            return 0; // Unexpectedly high price
        }
        return provable.query2_withGasLimit.value(price)(_timestamp, _datasource, _arg1, _arg2, _gasLimit);
    }

    function provable_query(string memory _datasource, string memory _arg1, string memory _arg2, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        uint price = provable.getPrice(_datasource, _gasLimit);
        if (price > 1 ether + tx.gasprice * _gasLimit) {
            return 0; // Unexpectedly high price
        }
        return provable.query2_withGasLimit.value(price)(0, _datasource, _arg1, _arg2, _gasLimit);
    }

    function provable_query(string memory _datasource, string[] memory _argN) provableAPI internal returns (bytes32 _id) {
        uint price = provable.getPrice(_datasource);
        if (price > 1 ether + tx.gasprice * 200000) {
            return 0; // Unexpectedly high price
        }
        bytes memory args = stra2cbor(_argN);
        return provable.queryN.value(price)(0, _datasource, args);
    }

    function provable_query(uint _timestamp, string memory _datasource, string[] memory _argN) provableAPI internal returns (bytes32 _id) {
        uint price = provable.getPrice(_datasource);
        if (price > 1 ether + tx.gasprice * 200000) {
            return 0; // Unexpectedly high price
        }
        bytes memory args = stra2cbor(_argN);
        return provable.queryN.value(price)(_timestamp, _datasource, args);
    }

    function provable_query(uint _timestamp, string memory _datasource, string[] memory _argN, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        uint price = provable.getPrice(_datasource, _gasLimit);
        if (price > 1 ether + tx.gasprice * _gasLimit) {
            return 0; // Unexpectedly high price
        }
        bytes memory args = stra2cbor(_argN);
        return provable.queryN_withGasLimit.value(price)(_timestamp, _datasource, args, _gasLimit);
    }

    function provable_query(string memory _datasource, string[] memory _argN, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        uint price = provable.getPrice(_datasource, _gasLimit);
        if (price > 1 ether + tx.gasprice * _gasLimit) {
            return 0; // Unexpectedly high price
        }
        bytes memory args = stra2cbor(_argN);
        return provable.queryN_withGasLimit.value(price)(0, _datasource, args, _gasLimit);
    }

    function provable_query(string memory _datasource, string[1] memory _args) provableAPI internal returns (bytes32 _id) {
        string[] memory dynargs = new string[](1);
        dynargs[0] = _args[0];
        return provable_query(_datasource, dynargs);
    }

    function provable_query(uint _timestamp, string memory _datasource, string[1] memory _args) provableAPI internal returns (bytes32 _id) {
        string[] memory dynargs = new string[](1);
        dynargs[0] = _args[0];
        return provable_query(_timestamp, _datasource, dynargs);
    }

    function provable_query(uint _timestamp, string memory _datasource, string[1] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        string[] memory dynargs = new string[](1);
        dynargs[0] = _args[0];
        return provable_query(_timestamp, _datasource, dynargs, _gasLimit);
    }

    function provable_query(string memory _datasource, string[1] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        string[] memory dynargs = new string[](1);
        dynargs[0] = _args[0];
        return provable_query(_datasource, dynargs, _gasLimit);
    }

    function provable_query(string memory _datasource, string[2] memory _args) provableAPI internal returns (bytes32 _id) {
        string[] memory dynargs = new string[](2);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        return provable_query(_datasource, dynargs);
    }

    function provable_query(uint _timestamp, string memory _datasource, string[2] memory _args) provableAPI internal returns (bytes32 _id) {
        string[] memory dynargs = new string[](2);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        return provable_query(_timestamp, _datasource, dynargs);
    }

    function provable_query(uint _timestamp, string memory _datasource, string[2] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        string[] memory dynargs = new string[](2);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        return provable_query(_timestamp, _datasource, dynargs, _gasLimit);
    }

    function provable_query(string memory _datasource, string[2] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        string[] memory dynargs = new string[](2);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        return provable_query(_datasource, dynargs, _gasLimit);
    }

    function provable_query(string memory _datasource, string[3] memory _args) provableAPI internal returns (bytes32 _id) {
        string[] memory dynargs = new string[](3);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        dynargs[2] = _args[2];
        return provable_query(_datasource, dynargs);
    }

    function provable_query(uint _timestamp, string memory _datasource, string[3] memory _args) provableAPI internal returns (bytes32 _id) {
        string[] memory dynargs = new string[](3);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        dynargs[2] = _args[2];
        return provable_query(_timestamp, _datasource, dynargs);
    }

    function provable_query(uint _timestamp, string memory _datasource, string[3] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        string[] memory dynargs = new string[](3);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        dynargs[2] = _args[2];
        return provable_query(_timestamp, _datasource, dynargs, _gasLimit);
    }

    function provable_query(string memory _datasource, string[3] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        string[] memory dynargs = new string[](3);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        dynargs[2] = _args[2];
        return provable_query(_datasource, dynargs, _gasLimit);
    }

    function provable_query(string memory _datasource, string[4] memory _args) provableAPI internal returns (bytes32 _id) {
        string[] memory dynargs = new string[](4);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        dynargs[2] = _args[2];
        dynargs[3] = _args[3];
        return provable_query(_datasource, dynargs);
    }

    function provable_query(uint _timestamp, string memory _datasource, string[4] memory _args) provableAPI internal returns (bytes32 _id) {
        string[] memory dynargs = new string[](4);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        dynargs[2] = _args[2];
        dynargs[3] = _args[3];
        return provable_query(_timestamp, _datasource, dynargs);
    }

    function provable_query(uint _timestamp, string memory _datasource, string[4] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        string[] memory dynargs = new string[](4);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        dynargs[2] = _args[2];
        dynargs[3] = _args[3];
        return provable_query(_timestamp, _datasource, dynargs, _gasLimit);
    }

    function provable_query(string memory _datasource, string[4] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        string[] memory dynargs = new string[](4);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        dynargs[2] = _args[2];
        dynargs[3] = _args[3];
        return provable_query(_datasource, dynargs, _gasLimit);
    }

    function provable_query(string memory _datasource, string[5] memory _args) provableAPI internal returns (bytes32 _id) {
        string[] memory dynargs = new string[](5);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        dynargs[2] = _args[2];
        dynargs[3] = _args[3];
        dynargs[4] = _args[4];
        return provable_query(_datasource, dynargs);
    }

    function provable_query(uint _timestamp, string memory _datasource, string[5] memory _args) provableAPI internal returns (bytes32 _id) {
        string[] memory dynargs = new string[](5);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        dynargs[2] = _args[2];
        dynargs[3] = _args[3];
        dynargs[4] = _args[4];
        return provable_query(_timestamp, _datasource, dynargs);
    }

    function provable_query(uint _timestamp, string memory _datasource, string[5] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        string[] memory dynargs = new string[](5);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        dynargs[2] = _args[2];
        dynargs[3] = _args[3];
        dynargs[4] = _args[4];
        return provable_query(_timestamp, _datasource, dynargs, _gasLimit);
    }

    function provable_query(string memory _datasource, string[5] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        string[] memory dynargs = new string[](5);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        dynargs[2] = _args[2];
        dynargs[3] = _args[3];
        dynargs[4] = _args[4];
        return provable_query(_datasource, dynargs, _gasLimit);
    }

    function provable_query(string memory _datasource, bytes[] memory _argN) provableAPI internal returns (bytes32 _id) {
        uint price = provable.getPrice(_datasource);
        if (price > 1 ether + tx.gasprice * 200000) {
            return 0; // Unexpectedly high price
        }
        bytes memory args = ba2cbor(_argN);
        return provable.queryN.value(price)(0, _datasource, args);
    }

    function provable_query(uint _timestamp, string memory _datasource, bytes[] memory _argN) provableAPI internal returns (bytes32 _id) {
        uint price = provable.getPrice(_datasource);
        if (price > 1 ether + tx.gasprice * 200000) {
            return 0; // Unexpectedly high price
        }
        bytes memory args = ba2cbor(_argN);
        return provable.queryN.value(price)(_timestamp, _datasource, args);
    }

    function provable_query(uint _timestamp, string memory _datasource, bytes[] memory _argN, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        uint price = provable.getPrice(_datasource, _gasLimit);
        if (price > 1 ether + tx.gasprice * _gasLimit) {
            return 0; // Unexpectedly high price
        }
        bytes memory args = ba2cbor(_argN);
        return provable.queryN_withGasLimit.value(price)(_timestamp, _datasource, args, _gasLimit);
    }

    function provable_query(string memory _datasource, bytes[] memory _argN, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        uint price = provable.getPrice(_datasource, _gasLimit);
        if (price > 1 ether + tx.gasprice * _gasLimit) {
            return 0; // Unexpectedly high price
        }
        bytes memory args = ba2cbor(_argN);
        return provable.queryN_withGasLimit.value(price)(0, _datasource, args, _gasLimit);
    }

    function provable_query(string memory _datasource, bytes[1] memory _args) provableAPI internal returns (bytes32 _id) {
        bytes[] memory dynargs = new bytes[](1);
        dynargs[0] = _args[0];
        return provable_query(_datasource, dynargs);
    }

    function provable_query(uint _timestamp, string memory _datasource, bytes[1] memory _args) provableAPI internal returns (bytes32 _id) {
        bytes[] memory dynargs = new bytes[](1);
        dynargs[0] = _args[0];
        return provable_query(_timestamp, _datasource, dynargs);
    }

    function provable_query(uint _timestamp, string memory _datasource, bytes[1] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        bytes[] memory dynargs = new bytes[](1);
        dynargs[0] = _args[0];
        return provable_query(_timestamp, _datasource, dynargs, _gasLimit);
    }

    function provable_query(string memory _datasource, bytes[1] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        bytes[] memory dynargs = new bytes[](1);
        dynargs[0] = _args[0];
        return provable_query(_datasource, dynargs, _gasLimit);
    }

    function provable_query(string memory _datasource, bytes[2] memory _args) provableAPI internal returns (bytes32 _id) {
        bytes[] memory dynargs = new bytes[](2);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        return provable_query(_datasource, dynargs);
    }

    function provable_query(uint _timestamp, string memory _datasource, bytes[2] memory _args) provableAPI internal returns (bytes32 _id) {
        bytes[] memory dynargs = new bytes[](2);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        return provable_query(_timestamp, _datasource, dynargs);
    }

    function provable_query(uint _timestamp, string memory _datasource, bytes[2] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        bytes[] memory dynargs = new bytes[](2);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        return provable_query(_timestamp, _datasource, dynargs, _gasLimit);
    }

    function provable_query(string memory _datasource, bytes[2] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        bytes[] memory dynargs = new bytes[](2);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        return provable_query(_datasource, dynargs, _gasLimit);
    }

    function provable_query(string memory _datasource, bytes[3] memory _args) provableAPI internal returns (bytes32 _id) {
        bytes[] memory dynargs = new bytes[](3);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        dynargs[2] = _args[2];
        return provable_query(_datasource, dynargs);
    }

    function provable_query(uint _timestamp, string memory _datasource, bytes[3] memory _args) provableAPI internal returns (bytes32 _id) {
        bytes[] memory dynargs = new bytes[](3);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        dynargs[2] = _args[2];
        return provable_query(_timestamp, _datasource, dynargs);
    }

    function provable_query(uint _timestamp, string memory _datasource, bytes[3] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        bytes[] memory dynargs = new bytes[](3);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        dynargs[2] = _args[2];
        return provable_query(_timestamp, _datasource, dynargs, _gasLimit);
    }

    function provable_query(string memory _datasource, bytes[3] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        bytes[] memory dynargs = new bytes[](3);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        dynargs[2] = _args[2];
        return provable_query(_datasource, dynargs, _gasLimit);
    }

    function provable_query(string memory _datasource, bytes[4] memory _args) provableAPI internal returns (bytes32 _id) {
        bytes[] memory dynargs = new bytes[](4);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        dynargs[2] = _args[2];
        dynargs[3] = _args[3];
        return provable_query(_datasource, dynargs);
    }

    function provable_query(uint _timestamp, string memory _datasource, bytes[4] memory _args) provableAPI internal returns (bytes32 _id) {
        bytes[] memory dynargs = new bytes[](4);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        dynargs[2] = _args[2];
        dynargs[3] = _args[3];
        return provable_query(_timestamp, _datasource, dynargs);
    }

    function provable_query(uint _timestamp, string memory _datasource, bytes[4] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        bytes[] memory dynargs = new bytes[](4);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        dynargs[2] = _args[2];
        dynargs[3] = _args[3];
        return provable_query(_timestamp, _datasource, dynargs, _gasLimit);
    }

    function provable_query(string memory _datasource, bytes[4] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        bytes[] memory dynargs = new bytes[](4);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        dynargs[2] = _args[2];
        dynargs[3] = _args[3];
        return provable_query(_datasource, dynargs, _gasLimit);
    }

    function provable_query(string memory _datasource, bytes[5] memory _args) provableAPI internal returns (bytes32 _id) {
        bytes[] memory dynargs = new bytes[](5);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        dynargs[2] = _args[2];
        dynargs[3] = _args[3];
        dynargs[4] = _args[4];
        return provable_query(_datasource, dynargs);
    }

    function provable_query(uint _timestamp, string memory _datasource, bytes[5] memory _args) provableAPI internal returns (bytes32 _id) {
        bytes[] memory dynargs = new bytes[](5);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        dynargs[2] = _args[2];
        dynargs[3] = _args[3];
        dynargs[4] = _args[4];
        return provable_query(_timestamp, _datasource, dynargs);
    }

    function provable_query(uint _timestamp, string memory _datasource, bytes[5] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        bytes[] memory dynargs = new bytes[](5);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        dynargs[2] = _args[2];
        dynargs[3] = _args[3];
        dynargs[4] = _args[4];
        return provable_query(_timestamp, _datasource, dynargs, _gasLimit);
    }

    function provable_query(string memory _datasource, bytes[5] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        bytes[] memory dynargs = new bytes[](5);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        dynargs[2] = _args[2];
        dynargs[3] = _args[3];
        dynargs[4] = _args[4];
        return provable_query(_datasource, dynargs, _gasLimit);
    }

    function provable_setProof(byte _proofP) provableAPI internal {
        return provable.setProofType(_proofP);
    }


    function provable_cbAddress() provableAPI internal returns (address _callbackAddress) {
        return provable.cbAddress();
    }

    function getCodeSize(address _addr) view internal returns (uint _size) {
        assembly {
            _size := extcodesize(_addr)
        }
    }

    function provable_setCustomGasPrice(uint _gasPrice) provableAPI internal {
        return provable.setCustomGasPrice(_gasPrice);
    }

    function provable_randomDS_getSessionPubKeyHash() provableAPI internal returns (bytes32 _sessionKeyHash) {
        return provable.randomDS_getSessionPubKeyHash();
    }

    function parseAddr(string memory _a) internal pure returns (address _parsedAddress) {
        bytes memory tmp = bytes(_a);
        uint160 iaddr = 0;
        uint160 b1;
        uint160 b2;
        for (uint i = 2; i < 2 + 2 * 20; i += 2) {
            iaddr *= 256;
            b1 = uint160(uint8(tmp[i]));
            b2 = uint160(uint8(tmp[i + 1]));
            if ((b1 >= 97) && (b1 <= 102)) {
                b1 -= 87;
            } else if ((b1 >= 65) && (b1 <= 70)) {
                b1 -= 55;
            } else if ((b1 >= 48) && (b1 <= 57)) {
                b1 -= 48;
            }
            if ((b2 >= 97) && (b2 <= 102)) {
                b2 -= 87;
            } else if ((b2 >= 65) && (b2 <= 70)) {
                b2 -= 55;
            } else if ((b2 >= 48) && (b2 <= 57)) {
                b2 -= 48;
            }
            iaddr += (b1 * 16 + b2);
        }
        return address(iaddr);
    }

    function strCompare(string memory _a, string memory _b) internal pure returns (int _returnCode) {
        bytes memory a = bytes(_a);
        bytes memory b = bytes(_b);
        uint minLength = a.length;
        if (b.length < minLength) {
            minLength = b.length;
        }
        for (uint i = 0; i < minLength; i ++) {
            if (a[i] < b[i]) {
                return -1;
            } else if (a[i] > b[i]) {
                return 1;
            }
        }
        if (a.length < b.length) {
            return -1;
        } else if (a.length > b.length) {
            return 1;
        } else {
            return 0;
        }
    }

    function indexOf(string memory _haystack, string memory _needle) internal pure returns (int _returnCode) {
        bytes memory h = bytes(_haystack);
        bytes memory n = bytes(_needle);
        if (h.length < 1 || n.length < 1 || (n.length > h.length)) {
            return -1;
        } else if (h.length > (2 ** 128 - 1)) {
            return -1;
        } else {
            uint subindex = 0;
            for (uint i = 0; i < h.length; i++) {
                if (h[i] == n[0]) {
                    subindex = 1;
                    while(subindex < n.length && (i + subindex) < h.length && h[i + subindex] == n[subindex]) {
                        subindex++;
                    }
                    if (subindex == n.length) {
                        return int(i);
                    }
                }
            }
            return -1;
        }
    }

    function strConcat(string memory _a, string memory _b) internal pure returns (string memory _concatenatedString) {
        return strConcat(_a, _b, "", "", "");
    }

    function strConcat(string memory _a, string memory _b, string memory _c) internal pure returns (string memory _concatenatedString) {
        return strConcat(_a, _b, _c, "", "");
    }

    function strConcat(string memory _a, string memory _b, string memory _c, string memory _d) internal pure returns (string memory _concatenatedString) {
        return strConcat(_a, _b, _c, _d, "");
    }

    function strConcat(string memory _a, string memory _b, string memory _c, string memory _d, string memory _e) internal pure returns (string memory _concatenatedString) {
        bytes memory _ba = bytes(_a);
        bytes memory _bb = bytes(_b);
        bytes memory _bc = bytes(_c);
        bytes memory _bd = bytes(_d);
        bytes memory _be = bytes(_e);
        string memory abcde = new string(_ba.length + _bb.length + _bc.length + _bd.length + _be.length);
        bytes memory babcde = bytes(abcde);
        uint k = 0;
        uint i = 0;
        for (i = 0; i < _ba.length; i++) {
            babcde[k++] = _ba[i];
        }
        for (i = 0; i < _bb.length; i++) {
            babcde[k++] = _bb[i];
        }
        for (i = 0; i < _bc.length; i++) {
            babcde[k++] = _bc[i];
        }
        for (i = 0; i < _bd.length; i++) {
            babcde[k++] = _bd[i];
        }
        for (i = 0; i < _be.length; i++) {
            babcde[k++] = _be[i];
        }
        return string(babcde);
    }

    function safeParseInt(string memory _a) internal pure returns (uint _parsedInt) {
        return safeParseInt(_a, 0);
    }

    function safeParseInt(string memory _a, uint _b) internal pure returns (uint _parsedInt) {
        bytes memory bresult = bytes(_a);
        uint mint = 0;
        bool decimals = false;
        for (uint i = 0; i < bresult.length; i++) {
            if ((uint(uint8(bresult[i])) >= 48) && (uint(uint8(bresult[i])) <= 57)) {
                if (decimals) {
                   if (_b == 0) break;
                    else _b--;
                }
                mint *= 10;
                mint += uint(uint8(bresult[i])) - 48;
            } else if (uint(uint8(bresult[i])) == 46) {
                require(!decimals, 'More than one decimal encountered in string!');
                decimals = true;
            } else {
                revert("Non-numeral character encountered in string!");
            }
        }
        if (_b > 0) {
            mint *= 10 ** _b;
        }
        return mint;
    }

    function parseInt(string memory _a) internal pure returns (uint _parsedInt) {
        return parseInt(_a, 0);
    }

    function parseInt(string memory _a, uint _b) internal pure returns (uint _parsedInt) {
        bytes memory bresult = bytes(_a);
        uint mint = 0;
        bool decimals = false;
        for (uint i = 0; i < bresult.length; i++) {
            if ((uint(uint8(bresult[i])) >= 48) && (uint(uint8(bresult[i])) <= 57)) {
                if (decimals) {
                   if (_b == 0) {
                       break;
                   } else {
                       _b--;
                   }
                }
                mint *= 10;
                mint += uint(uint8(bresult[i])) - 48;
            } else if (uint(uint8(bresult[i])) == 46) {
                decimals = true;
            }
        }
        if (_b > 0) {
            mint *= 10 ** _b;
        }
        return mint;
    }

    function uint2str(uint _i) internal pure returns (string memory _uintAsString) {
        if (_i == 0) {
            return "0";
        }
        uint j = _i;
        uint len;
        while (j != 0) {
            len++;
            j /= 10;
        }
        bytes memory bstr = new bytes(len);
        uint k = len - 1;
        while (_i != 0) {
            bstr[k--] = byte(uint8(48 + _i % 10));
            _i /= 10;
        }
        return string(bstr);
    }

    function stra2cbor(string[] memory _arr) internal pure returns (bytes memory _cborEncoding) {
        safeMemoryCleaner();
        Buffer.buffer memory buf;
        Buffer.init(buf, 1024);
        buf.startArray();
        for (uint i = 0; i < _arr.length; i++) {
            buf.encodeString(_arr[i]);
        }
        buf.endSequence();
        return buf.buf;
    }

    function ba2cbor(bytes[] memory _arr) internal pure returns (bytes memory _cborEncoding) {
        safeMemoryCleaner();
        Buffer.buffer memory buf;
        Buffer.init(buf, 1024);
        buf.startArray();
        for (uint i = 0; i < _arr.length; i++) {
            buf.encodeBytes(_arr[i]);
        }
        buf.endSequence();
        return buf.buf;
    }

    function provable_newRandomDSQuery(uint _delay, uint _nbytes, uint _customGasLimit) internal returns (bytes32 _queryId) {
        require((_nbytes > 0) && (_nbytes <= 32));
        _delay *= 10; // Convert from seconds to ledger timer ticks
        bytes memory nbytes = new bytes(1);
        nbytes[0] = byte(uint8(_nbytes));
        bytes memory unonce = new bytes(32);
        bytes memory sessionKeyHash = new bytes(32);
        bytes32 sessionKeyHash_bytes32 = provable_randomDS_getSessionPubKeyHash();
        assembly {
            mstore(unonce, 0x20)
            /*
             The following variables can be relaxed.
             Check the relaxed random contract at https://github.com/oraclize/ethereum-examples
             for an idea on how to override and replace commit hash variables.
            */
            mstore(add(unonce, 0x20), xor(blockhash(sub(number, 1)), xor(coinbase, timestamp)))
            mstore(sessionKeyHash, 0x20)
            mstore(add(sessionKeyHash, 0x20), sessionKeyHash_bytes32)
        }
        bytes memory delay = new bytes(32);
        assembly {
            mstore(add(delay, 0x20), _delay)
        }
        bytes memory delay_bytes8 = new bytes(8);
        copyBytes(delay, 24, 8, delay_bytes8, 0);
        bytes[4] memory args = [unonce, nbytes, sessionKeyHash, delay];
        bytes32 queryId = provable_query("random", args, _customGasLimit);
        bytes memory delay_bytes8_left = new bytes(8);
        assembly {
            let x := mload(add(delay_bytes8, 0x20))
            mstore8(add(delay_bytes8_left, 0x27), div(x, 0x100000000000000000000000000000000000000000000000000000000000000))
            mstore8(add(delay_bytes8_left, 0x26), div(x, 0x1000000000000000000000000000000000000000000000000000000000000))
            mstore8(add(delay_bytes8_left, 0x25), div(x, 0x10000000000000000000000000000000000000000000000000000000000))
            mstore8(add(delay_bytes8_left, 0x24), div(x, 0x100000000000000000000000000000000000000000000000000000000))
            mstore8(add(delay_bytes8_left, 0x23), div(x, 0x1000000000000000000000000000000000000000000000000000000))
            mstore8(add(delay_bytes8_left, 0x22), div(x, 0x10000000000000000000000000000000000000000000000000000))
            mstore8(add(delay_bytes8_left, 0x21), div(x, 0x100000000000000000000000000000000000000000000000000))
            mstore8(add(delay_bytes8_left, 0x20), div(x, 0x1000000000000000000000000000000000000000000000000))
        }
        provable_randomDS_setCommitment(queryId, keccak256(abi.encodePacked(delay_bytes8_left, args[1], sha256(args[0]), args[2])));
        return queryId;
    }

    function provable_randomDS_setCommitment(bytes32 _queryId, bytes32 _commitment) internal {
        provable_randomDS_args[_queryId] = _commitment;
    }

    function verifySig(bytes32 _tosignh, bytes memory _dersig, bytes memory _pubkey) internal returns (bool _sigVerified) {
        bool sigok;
        address signer;
        bytes32 sigr;
        bytes32 sigs;
        bytes memory sigr_ = new bytes(32);
        uint offset = 4 + (uint(uint8(_dersig[3])) - 0x20);
        sigr_ = copyBytes(_dersig, offset, 32, sigr_, 0);
        bytes memory sigs_ = new bytes(32);
        offset += 32 + 2;
        sigs_ = copyBytes(_dersig, offset + (uint(uint8(_dersig[offset - 1])) - 0x20), 32, sigs_, 0);
        assembly {
            sigr := mload(add(sigr_, 32))
            sigs := mload(add(sigs_, 32))
        }
        (sigok, signer) = safer_ecrecover(_tosignh, 27, sigr, sigs);
        if (address(uint160(uint256(keccak256(_pubkey)))) == signer) {
            return true;
        } else {
            (sigok, signer) = safer_ecrecover(_tosignh, 28, sigr, sigs);
            return (address(uint160(uint256(keccak256(_pubkey)))) == signer);
        }
    }

    function provable_randomDS_proofVerify__sessionKeyValidity(bytes memory _proof, uint _sig2offset) internal returns (bool _proofVerified) {
        bool sigok;
        // Random DS Proof Step 6: Verify the attestation signature, APPKEY1 must sign the sessionKey from the correct ledger app (CODEHASH)
        bytes memory sig2 = new bytes(uint(uint8(_proof[_sig2offset + 1])) + 2);
        copyBytes(_proof, _sig2offset, sig2.length, sig2, 0);
        bytes memory appkey1_pubkey = new bytes(64);
        copyBytes(_proof, 3 + 1, 64, appkey1_pubkey, 0);
        bytes memory tosign2 = new bytes(1 + 65 + 32);
        tosign2[0] = byte(uint8(1)); //role
        copyBytes(_proof, _sig2offset - 65, 65, tosign2, 1);
        bytes memory CODEHASH = hex"fd94fa71bc0ba10d39d464d0d8f465efeef0a2764e3887fcc9df41ded20f505c";
        copyBytes(CODEHASH, 0, 32, tosign2, 1 + 65);
        sigok = verifySig(sha256(tosign2), sig2, appkey1_pubkey);
        if (!sigok) {
            return false;
        }
        // Random DS Proof Step 7: Verify the APPKEY1 provenance (must be signed by Ledger)
        bytes memory LEDGERKEY = hex"7fb956469c5c9b89840d55b43537e66a98dd4811ea0a27224272c2e5622911e8537a2f8e86a46baec82864e98dd01e9ccc2f8bc5dfc9cbe5a91a290498dd96e4";
        bytes memory tosign3 = new bytes(1 + 65);
        tosign3[0] = 0xFE;
        copyBytes(_proof, 3, 65, tosign3, 1);
        bytes memory sig3 = new bytes(uint(uint8(_proof[3 + 65 + 1])) + 2);
        copyBytes(_proof, 3 + 65, sig3.length, sig3, 0);
        sigok = verifySig(sha256(tosign3), sig3, LEDGERKEY);
        return sigok;
    }

    function provable_randomDS_proofVerify__returnCode(bytes32 _queryId, string memory _result, bytes memory _proof) internal returns (uint8 _returnCode) {
        // Random DS Proof Step 1: The prefix has to match 'LP\x01' (Ledger Proof version 1)
        if ((_proof[0] != "L") || (_proof[1] != "P") || (uint8(_proof[2]) != uint8(1))) {
            return 1;
        }
        bool proofVerified = provable_randomDS_proofVerify__main(_proof, _queryId, bytes(_result), provable_getNetworkName());
        if (!proofVerified) {
            return 2;
        }
        return 0;
    }

    function matchBytes32Prefix(bytes32 _content, bytes memory _prefix, uint _nRandomBytes) internal pure returns (bool _matchesPrefix) {
        bool match_ = true;
        require(_prefix.length == _nRandomBytes);
        for (uint256 i = 0; i< _nRandomBytes; i++) {
            if (_content[i] != _prefix[i]) {
                match_ = false;
            }
        }
        return match_;
    }

    function provable_randomDS_proofVerify__main(bytes memory _proof, bytes32 _queryId, bytes memory _result, string memory _contextName) internal returns (bool _proofVerified) {
        // Random DS Proof Step 2: The unique keyhash has to match with the sha256 of (context name + _queryId)
        uint ledgerProofLength = 3 + 65 + (uint(uint8(_proof[3 + 65 + 1])) + 2) + 32;
        bytes memory keyhash = new bytes(32);
        copyBytes(_proof, ledgerProofLength, 32, keyhash, 0);
        if (!(keccak256(keyhash) == keccak256(abi.encodePacked(sha256(abi.encodePacked(_contextName, _queryId)))))) {
            return false;
        }
        bytes memory sig1 = new bytes(uint(uint8(_proof[ledgerProofLength + (32 + 8 + 1 + 32) + 1])) + 2);
        copyBytes(_proof, ledgerProofLength + (32 + 8 + 1 + 32), sig1.length, sig1, 0);
        // Random DS Proof Step 3: We assume sig1 is valid (it will be verified during step 5) and we verify if '_result' is the _prefix of sha256(sig1)
        if (!matchBytes32Prefix(sha256(sig1), _result, uint(uint8(_proof[ledgerProofLength + 32 + 8])))) {
            return false;
        }
        // Random DS Proof Step 4: Commitment match verification, keccak256(delay, nbytes, unonce, sessionKeyHash) == commitment in storage.
        // This is to verify that the computed args match with the ones specified in the query.
        bytes memory commitmentSlice1 = new bytes(8 + 1 + 32);
        copyBytes(_proof, ledgerProofLength + 32, 8 + 1 + 32, commitmentSlice1, 0);
        bytes memory sessionPubkey = new bytes(64);
        uint sig2offset = ledgerProofLength + 32 + (8 + 1 + 32) + sig1.length + 65;
        copyBytes(_proof, sig2offset - 64, 64, sessionPubkey, 0);
        bytes32 sessionPubkeyHash = sha256(sessionPubkey);
        if (provable_randomDS_args[_queryId] == keccak256(abi.encodePacked(commitmentSlice1, sessionPubkeyHash))) { //unonce, nbytes and sessionKeyHash match
            delete provable_randomDS_args[_queryId];
        } else return false;
        // Random DS Proof Step 5: Validity verification for sig1 (keyhash and args signed with the sessionKey)
        bytes memory tosign1 = new bytes(32 + 8 + 1 + 32);
        copyBytes(_proof, ledgerProofLength, 32 + 8 + 1 + 32, tosign1, 0);
        if (!verifySig(sha256(tosign1), sig1, sessionPubkey)) {
            return false;
        }
        // Verify if sessionPubkeyHash was verified already, if not.. let's do it!
        if (!provable_randomDS_sessionKeysHashVerified[sessionPubkeyHash]) {
            provable_randomDS_sessionKeysHashVerified[sessionPubkeyHash] = provable_randomDS_proofVerify__sessionKeyValidity(_proof, sig2offset);
        }
        return provable_randomDS_sessionKeysHashVerified[sessionPubkeyHash];
    }
    /*
     The following function has been written by Alex Beregszaszi (@axic), use it under the terms of the MIT license
    */
    function copyBytes(bytes memory _from, uint _fromOffset, uint _length, bytes memory _to, uint _toOffset) internal pure returns (bytes memory _copiedBytes) {
        uint minLength = _length + _toOffset;
        require(_to.length >= minLength); // Buffer too small. Should be a better way?
        uint i = 32 + _fromOffset; // NOTE: the offset 32 is added to skip the `size` field of both bytes variables
        uint j = 32 + _toOffset;
        while (i < (32 + _fromOffset + _length)) {
            assembly {
                let tmp := mload(add(_from, i))
                mstore(add(_to, j), tmp)
            }
            i += 32;
            j += 32;
        }
        return _to;
    }
    /*
     The following function has been written by Alex Beregszaszi (@axic), use it under the terms of the MIT license
     Duplicate Solidity's ecrecover, but catching the CALL return value
    */
    function safer_ecrecover(bytes32 _hash, uint8 _v, bytes32 _r, bytes32 _s) internal returns (bool _success, address _recoveredAddress) {
        /*
         We do our own memory management here. Solidity uses memory offset
         0x40 to store the current end of memory. We write past it (as
         writes are memory extensions), but don't update the offset so
         Solidity will reuse it. The memory used here is only needed for
         this context.
         FIXME: inline assembly can't access return values
        */
        bool ret;
        address addr;
        assembly {
            let size := mload(0x40)
            mstore(size, _hash)
            mstore(add(size, 32), _v)
            mstore(add(size, 64), _r)
            mstore(add(size, 96), _s)
            ret := call(3000, 1, 0, size, 128, size, 32) // NOTE: we can reuse the request memory because we deal with the return code.
            addr := mload(size)
        }
        return (ret, addr);
    }
    /*
     The following function has been written by Alex Beregszaszi (@axic), use it under the terms of the MIT license
    */
    function ecrecovery(bytes32 _hash, bytes memory _sig) internal returns (bool _success, address _recoveredAddress) {
        bytes32 r;
        bytes32 s;
        uint8 v;
        if (_sig.length != 65) {
            return (false, address(0));
        }
        /*
         The signature format is a compact form of:
           {bytes32 r}{bytes32 s}{uint8 v}
         Compact means, uint8 is not padded to 32 bytes.
        */
        assembly {
            r := mload(add(_sig, 32))
            s := mload(add(_sig, 64))
            /*
             Here we are loading the last 32 bytes. We exploit the fact that
             'mload' will pad with zeroes if we overread.
             There is no 'mload8' to do this, but that would be nicer.
            */
            v := byte(0, mload(add(_sig, 96)))
            /*
              Alternative solution:
              'byte' is not working due to the Solidity parser, so lets
              use the second best option, 'and'
              v := and(mload(add(_sig, 65)), 255)
            */
        }
        /*
         albeit non-transactional signatures are not specified by the YP, one would expect it
         to match the YP range of [27, 28]
         geth uses [0, 1] and some clients have followed. This might change, see:
         https://github.com/ethereum/go-ethereum/issues/2053
        */
        if (v < 27) {
            v += 27;
        }
        if (v != 27 && v != 28) {
            return (false, address(0));
        }
        return safer_ecrecover(_hash, v, r, s);
    }

    function safeMemoryCleaner() internal pure {
        assembly {
            let fmem := mload(0x40)
            codecopy(fmem, codesize, sub(msize, fmem))
        }
    }
}
// </provableAPI>

// File: browser/withdraw/BerezkaWithdraw.sol

pragma solidity 0.5.17;






// This contract provides Withdraw function for Berezka DAO
// Basic flow is:
//  1. User creates a withdraw request, specifying what token he wants to exchange to stable conin
//  2. Oracle request is sent for an actual current token price
//  3. Oracle calls back with reliable price. Then an exchange is happening
//  4. In an event of Oracle failing, cancel function can be called by Owner to cancel request
//
contract BerezkaWithdraw is usingProvable, Ownable {
    
    // Information about withdrawal request
    //
    struct WithdrawRequest {
        bytes32 requestId; // Identifier (also an Oracle Service Query ID)
        address sender; // Who is withdrawing tokens
        uint256 amount; // What amount of tokens
        address token; // What exact token
        address targetToken; // What token he want to receive
        uint256 lastValidBlock; // Last block when this request is valid
    }
    
    // Information about DAO
    struct Dao {
        address agent; // Address of Aragon DAO Agent App
        address tokens; // Address of Aragon DAO Tokens App
    }
    
    // Token whitelist to withdraw
    //
    mapping(address => bool) public whitelist;

    // Each token have an agent to withdraw tokens from
    //
    mapping(address => Dao) public daoConfig;

    // Each user (address) can have at most one pending withdraw query
    //
    mapping(address => bytes32) public pendingQueries;

    // Remember withdraw requests
    //
    mapping(bytes32 => WithdrawRequest) public pendingRequests;

    uint256 public lastExchangePrice;
    
    // Address (IPFS Hash) of Oracle Script
    //
    string public oracleAddress = "QmY9dSVkz5hnjQFhk3EG2z6wNvcyHJQGBoUta7nsvw6VYL";
    
    // Gas required to call callback method
    //
    uint256 public oracleCallbackGas = 300000;
    
    // How many blocks requests are valid to receive callbacks?
    // By default use 1 hour (360 blocks)
    //
    uint256 public requestValidityDurationBlocks = 360;
    
    uint public gasprice;

    // Event used to log a creation of withdraw request
    //
    event WithdrawRequestCreated(
        uint256 _amountToWithdraw,
        address _tokenToWithraw,
        address _withdrawTo,
        bytes32 _queryId
    );

    // Event used to log a success completion of withdraw request
    //
    event WithdrawRequestSucceeded(
        uint256 _finalPrice,
        bytes32 _queryId
    );
    
    // Event used to log a failure to complete a withdraw request
    //
    event WithdrawRequestFailed(
        bytes32 _queryId
    );
    
    // Event used to log a cancellation to complete a withdraw request
    //
    event WithdrawRequestCancelled(
        bytes32 _queryId
    );

    // Creates new instance
    //
    constructor() public {}

    // Main function. Allows user (msg.sender) to withdraw funds from DAO.
    // _amount - amount of DAO tokens to exhange
    // _token - token of DAO to exchange
    // _targetToken - token to receive in exchange
    // _optimisticPrice - an optimistic price of DAO token. Used to check if DAO Agent 
    //                    have enough funds on it's balance. Is not used to calculare
    //                    use returns
    function withdraw(
        uint256 _amount,
        address _token,
        address _targetToken,
        uint256 _optimisticPrice
    ) 
        public
        payable 
    {
        // Require that amount is positive
        //
        require(_amount > 0, 
            "ZERO_TOKEN_AMOUNT"
        );
        // Require that an optimistic price is set
        //
        require(_optimisticPrice > 0, 
            "ZERO_OPTIMISTIC_PRICE"
        );
        
        // Check that token to withdraw is whitelisted
        //
        require(whitelist[_targetToken],
            "INVALID_TOKEN_TO_WITHDRAW"
        );
    
        // Require no pending queries for this address
        //
        require(pendingQueries[msg.sender] == 0,
            "PENDING_REQUEST_IN_PROGRESS"
        );
        
        // Require that there is an agent (vault) address for  a given token
        //
        address agent = daoConfig[_token].agent;
        require(agent != address(0), 
            "NO_DAO_FOR_TOKEN"
        );
        
        // Require that an agent have funds to fullfill request (optimisitcally)
        // And that this contract can withdraw neccesary amount of funds from agent
        //
        IERC20 targetToken = IERC20(_targetToken);
        uint256 optimisticAmount = computeExchange(_amount, _optimisticPrice, _targetToken);
        require(optimisticAmount > 0, 
            "INVALID_TOKEN_AMOUNT"
        );
        require(targetToken.balanceOf(agent) >= optimisticAmount, 
            "INSUFFICIENT_FUNDS_ON_AGENT"
        );
        
        // Set gas price for provable equal gas price of current transaction
        //
        provable_setCustomGasPrice(tx.gasprice);
        
        // Check funds for oracle call
        //
        require(provable_getPrice("computation") <= address(this).balance, 
            "INSUFFICIENT_FUNDS_FOR_ORACLE_CALL"
        );
        
        // Send oracle query for price verification. Transfer from agent to sender 
        // will happen in oracle callback
        //
        bytes32 queryId =
            provable_query(
                "computation",
                [
                    oracleAddress,
                    strConcat("0x", _toAsciiString(_token))
                ],
                oracleCallbackGas
            );
        
        // queryId can be 0 as indication that something goes wrong on Oracle Side
        //
        if (queryId != 0) {
            // Add pending query for account
            //
            pendingQueries[msg.sender] = queryId;
            
            // Add pending request for processing
            //
            pendingRequests[queryId] = WithdrawRequest(
                queryId,
                msg.sender,
                _amount,
                _token,
                _targetToken,
                block.number + requestValidityDurationBlocks
            );
    
            emit WithdrawRequestCreated(_amount, _token, msg.sender, queryId);
        }
    }

    // Oracle callback function. Oracle will supply us with reliable price, so 
    // actual exchange action happens here
    // _queryID - withdraw request ID
    // _result - encoded as string reliable price
    //
    function __callback(
        bytes32 _queryID,
        string memory _result
    ) public {
        // Check that sender of transaction is indeed oracle service
        //
        require(msg.sender == provable_cbAddress(),
            "INVALID_CALLBACK_SENDER"
        );
        
        // Extract price from oracle response
        //
        lastExchangePrice = parseInt(_result);
        WithdrawRequest memory request = pendingRequests[_queryID];
        require(request.requestId == _queryID, 
            "REQUEST_IS_CANCELLED"
        );
        
        // Check that request is not expired
        //
        require(request.lastValidBlock >= block.number, 
            "REQUEST_IS_EXPIRED"
        );
        
        // Positive scenario - we've got a valid price from oracle
        //
        if (lastExchangePrice > 0) {
            uint256 finalAmount = computeExchange(request.amount, lastExchangePrice, request.targetToken);
            // Transfer target token from agent to owner
            //
            IAgent agent = IAgent(daoConfig[request.token].agent);
            agent.transfer(request.targetToken, request.sender, finalAmount);
            
            // Burn tokens
            //
            IERC20 token = IERC20(request.token);
            require(token.balanceOf(request.sender) >= request.amount, 
                "NOT_ENOUGH_TOKENS_TO_BURN_ON_BALANCE"
            );
            ITokens tokens = ITokens(daoConfig[request.token].tokens); // TODO ???
            tokens.burn(request.sender, request.amount);
            
            // Emit event that everything is fine
            //
            emit WithdrawRequestSucceeded(lastExchangePrice, _queryID);
        } else {
            // Emit event that something has failed
            //
            emit WithdrawRequestFailed(_queryID);
        }
        
        // Clean up
        //
        delete pendingQueries[request.sender];
        delete pendingRequests[_queryID];
    }
    
    // Computes an amount of _targetToken that user will get in exchange for
    // a given amount for DAO tokens
    // _amount - amount of DAO tokens
    // _price - price in 6 decimals per 10e18 of DAO token
    // _targetToken - target token to receive
    //
    function computeExchange(
        uint256 _amount,
        uint256 _price,
        address _targetToken
    )
        public 
        view 
        returns (uint256)
    {
        IERC20 targetToken = IERC20(_targetToken);
        return _amount * _price * 10 ** (targetToken.decimals() - 6) / 10**18;
    }
    
    // Cancels a current pending request withdraw query (in an event of Oracle failing to answer)
    // Can be performed by sender address
    // _queryId - ID of request to cancel
    //
    function cancel() 
        public 
    {
        
        _cancel(pendingQueries[msg.sender]);
    }
    
    // --- Administrative functions --- 
    
    // Adds new DAO to contract.
    // _token - DAO token
    // _tokens - corresponding Tokens service in Aragon, that manages _token
    // _agent - agent contract in Aragon (fund holder)
    //
    function addDao(
        address _token,
        address _tokens,
        address _agent
    )
        public 
        onlyOwner 
    {
        require(_token != address(0), 
            "INVALID_TOKEN_ADDRESS"
        );
        require(_agent != address(0), 
            "INVALID_TOKEN_ADDRESS"
        );
        require(_tokens != address(0),
            "INVALID_TOKENS_ADDRESS"
        );
        
        daoConfig[_token] = Dao(_agent, _tokens);
    }
    
    // Removes DAO from contract
    // _token - token to remove
    //
    function deleteDao(
        address _token
    ) 
        public 
        onlyOwner 
    {
        require(_token != address(0), 
            "INVALID_TOKEN_ADDRESS"
        );
        delete daoConfig[_token];
    }
    
    // Sets an address (IPFS Hash) of Oracle Script
    // _oracleAddres - IPFS Hash of Oracle Script
    //
    function setOracleAddress(
        string memory _oracleAddres    
    ) 
        public 
        onlyOwner 
    {
        oracleAddress = _oracleAddres;
    }
    
    // Sets amount of Gas used to call __callback function
    // _oracleCallbackGas - amount of gas
    //
    function setOracleGas(
        uint256 _oracleCallbackGas
    ) 
        public 
        onlyOwner 
    {
        oracleCallbackGas = _oracleCallbackGas;
    }
    
    // Sets duration (in blocks) for how long withdrawal request is still valid
    // _duration - duration in blocks
    //
    function setRequestDuration(
        uint256 _duration    
    ) 
        public
        onlyOwner
    {
        requestValidityDurationBlocks = _duration;
    }
    
    // Adds possible tokens (stableconins) to withdraw to
    // _whitelisted - list of stableconins to withdraw to
    //
    function addWhitelistTokens(
        address[] memory _whitelisted
    ) 
        public 
        onlyOwner 
    {
        for (uint256 i = 0; i < _whitelisted.length; i++) {
            whitelist[_whitelisted[i]] = true;
        }
    }
    
    // Removes possible tokens (stableconins) to withdraw to
    // _whitelisted - list of stableconins to withdraw to
    //
    function removeWhitelistTokens(
        address[] memory _whitelisted
    ) 
        public 
        onlyOwner 
    {
        for (uint256 i = 0; i < _whitelisted.length; i++) {
            whitelist[_whitelisted[i]] = false;
        }
    }
    
    // Cancels a pending withdraw query (in an event of Oracle failing to answer)
    // _queryId - ID of request to cancel
    //
    function cancel(
        bytes32 _queryId
    ) 
        public 
        onlyOwner 
    {
        _cancel(_queryId);
    }
    
    // --- Internal functions --- 
    
    // Cancels a pending withdraw query (in an event of Oracle failing to answer)
    // _queryId - ID of request to cancel
    //
    function _cancel(
        bytes32 _queryId
    ) 
        internal 
    {
        require(pendingRequests[_queryId].sender != address(0), 
            "REQUEST_NOT_EXISTS"
        );
        
        WithdrawRequest memory request = pendingRequests[_queryId];
        delete pendingQueries[request.sender];
        delete pendingRequests[_queryId];
        
        emit WithdrawRequestCancelled(_queryId);
    }

    // Converts address to string (for Oracle Service call)
    // _x - address to convert
    //
    function _toAsciiString(
        address _x
    )
        internal 
        pure 
        returns (string memory)
    {
        bytes memory s = new bytes(40);
        for (uint256 i = 0; i < 20; i++) {
            bytes1 b = bytes1(uint8(uint256(uint160(_x)) / (2**(8 * (19 - i)))));
            bytes1 hi = bytes1(uint8(b) / 16);
            bytes1 lo = bytes1(uint8(b) - 16 * uint8(hi));
            s[2 * i] = _char(hi);
            s[2 * i + 1] = _char(lo);
        }
        return string(s);
    }

    // Converts byte to char (for string conversion for Oracle Service call)
    // _b - byte to convert to char
    //
    function _char(
        bytes1 _b
    ) 
        internal 
        pure 
        returns (bytes1 c) 
    {
        if (uint8(_b) < 10) return bytes1(uint8(_b) + 0x30);
        else return bytes1(uint8(_b) + 0x57);
    }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"_queryId","type":"bytes32"}],"name":"WithdrawRequestCancelled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_amountToWithdraw","type":"uint256"},{"indexed":false,"internalType":"address","name":"_tokenToWithraw","type":"address"},{"indexed":false,"internalType":"address","name":"_withdrawTo","type":"address"},{"indexed":false,"internalType":"bytes32","name":"_queryId","type":"bytes32"}],"name":"WithdrawRequestCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"_queryId","type":"bytes32"}],"name":"WithdrawRequestFailed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_finalPrice","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"_queryId","type":"bytes32"}],"name":"WithdrawRequestSucceeded","type":"event"},{"constant":false,"inputs":[{"internalType":"bytes32","name":"_queryID","type":"bytes32"},{"internalType":"string","name":"_result","type":"string"}],"name":"__callback","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"bytes32","name":"_myid","type":"bytes32"},{"internalType":"string","name":"_result","type":"string"},{"internalType":"bytes","name":"_proof","type":"bytes"}],"name":"__callback","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_tokens","type":"address"},{"internalType":"address","name":"_agent","type":"address"}],"name":"addDao","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address[]","name":"_whitelisted","type":"address[]"}],"name":"addWhitelistTokens","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"bytes32","name":"_queryId","type":"bytes32"}],"name":"cancel","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"cancel","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"address","name":"_targetToken","type":"address"}],"name":"computeExchange","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"daoConfig","outputs":[{"internalType":"address","name":"agent","type":"address"},{"internalType":"address","name":"tokens","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"deleteDao","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"gasprice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"lastExchangePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"oracleAddress","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"oracleCallbackGas","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"pendingQueries","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"pendingRequests","outputs":[{"internalType":"bytes32","name":"requestId","type":"bytes32"},{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"targetToken","type":"address"},{"internalType":"uint256","name":"lastValidBlock","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address[]","name":"_whitelisted","type":"address[]"}],"name":"removeWhitelistTokens","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"requestValidityDurationBlocks","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"string","name":"_oracleAddres","type":"string"}],"name":"setOracleAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_oracleCallbackGas","type":"uint256"}],"name":"setOracleGas","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_duration","type":"uint256"}],"name":"setRequestDuration","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_targetToken","type":"address"},{"internalType":"uint256","name":"_optimisticPrice","type":"uint256"}],"name":"withdraw","outputs":[],"payable":true,"stateMutability":"payable","type":"function"}]

60e0604052602e6080818152906200390560a03980516200002991600b91602090910190620000b3565b50620493e0600c55610168600d553480156200004457600080fd5b5060006200005a6001600160e01b03620000ae16565b600580546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35062000155565b335b90565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620000f657805160ff191683800117855562000126565b8280016001018555821562000126579182015b828111156200012657825182559160200191906001019062000109565b506200013492915062000138565b5090565b620000b091905b808211156200013457600081556001016200013f565b6137a080620001656000396000f3fe6080604052600436106101665760003560e01c8063a89ae4ba116100d1578063c7e22ac41161008a578063ea8a1af011610064578063ea8a1af0146108e7578063ede374f0146108fc578063f2fde38b14610911578063fafc02b41461094457610166565b8063c7e22ac4146107e5578063dc7966841461080f578063e3113df91461083957610166565b8063a89ae4ba14610618578063b25706f3146106a4578063b89f34bf14610752578063beea0c5814610767578063c0587a95146107a6578063c4d252f5146107bb57610166565b80636ec232d3116101235780636ec232d3146104f5578063715018a61461051c5780637fc4077e146105315780638da5cb5b146105645780639b19251a14610595578063a318c1a4146105dc57610166565b80631d6fbb7d1461016b5780631f154b32146101a05780632795ad201461025057806327dc297e146102be57806338bbfa501461037557806343095dbc146104b0575b600080fd5b34801561017757600080fd5b5061019e6004803603602081101561018e57600080fd5b50356001600160a01b031661099b565b005b3480156101ac57600080fd5b5061019e600480360360208110156101c357600080fd5b810190602081018135600160201b8111156101dd57600080fd5b8201836020820111156101ef57600080fd5b803590602001918460018302840111600160201b8311171561021057600080fd5b91908080601f0160208091040260200160405190810160405281815292919060208401838380828437600092019190915250929550610a85945050505050565b34801561025c57600080fd5b5061027a6004803603602081101561027357600080fd5b5035610afd565b6040519586526001600160a01b0394851660208701526040808701949094529184166060860152909216608084015260a083019190915260c0909101905180910390f35b3480156102ca57600080fd5b5061019e600480360360408110156102e157600080fd5b81359190810190604081016020820135600160201b81111561030257600080fd5b82018360208201111561031457600080fd5b803590602001918460018302840111600160201b8311171561033557600080fd5b91908080601f0160208091040260200160405190810160405281815292919060208401838380828437600092019190915250929550610b43945050505050565b34801561038157600080fd5b5061019e6004803603606081101561039857600080fd5b81359190810190604081016020820135600160201b8111156103b957600080fd5b8201836020820111156103cb57600080fd5b803590602001918460018302840111600160201b831117156103ec57600080fd5b91908080601f01602080910402602001604051908101604052818152929190602084018383808284376000920191909152509295949360208101935035915050600160201b81111561043d57600080fd5b82018360208201111561044f57600080fd5b803590602001918460018302840111600160201b8311171561047057600080fd5b91908080601f0160208091040260200160405190810160405281815292919060208401838380828437600092019190915250929550611004945050505050565b3480156104bc57600080fd5b5061019e600480360360608110156104d357600080fd5b506001600160a01b038135811691602081013582169160409091013516611018565b34801561050157600080fd5b5061050a6111ec565b60405190815260200160405180910390f35b34801561052857600080fd5b5061019e6111f2565b34801561053d57600080fd5b5061050a6004803603602081101561055457600080fd5b50356001600160a01b03166112a0565b34801561057057600080fd5b506105796112b4565b6040516001600160a01b03909116815260200160405180910390f35b3480156105a157600080fd5b506105c8600480360360208110156105b857600080fd5b50356001600160a01b03166112c4565b604051901515815260200160405180910390f35b61019e600480360360808110156105f257600080fd5b508035906001600160a01b036020820135811691604081013590911690606001356112db565b34801561062457600080fd5b5061062d6118a7565b60405160208082528190810183818151815260200191508051906020019080838360005b83811015610669578082015183820152602001610651565b50505050905090810190601f1680156106965780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156106b057600080fd5b5061019e600480360360208110156106c757600080fd5b810190602081018135600160201b8111156106e157600080fd5b8201836020820111156106f357600080fd5b803590602001918460208302840111600160201b8311171561071457600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550611945945050505050565b34801561075e57600080fd5b5061050a611a03565b34801561077357600080fd5b5061050a6004803603606081101561078a57600080fd5b50803590602081013590604001356001600160a01b0316611a09565b3480156107b257600080fd5b5061050a611aa6565b3480156107c757600080fd5b5061019e600480360360208110156107de57600080fd5b5035611aac565b3480156107f157600080fd5b5061019e6004803603602081101561080857600080fd5b5035611b19565b34801561081b57600080fd5b5061019e6004803603602081101561083257600080fd5b5035611b7f565b34801561084557600080fd5b5061019e6004803603602081101561085c57600080fd5b810190602081018135600160201b81111561087657600080fd5b82018360208201111561088857600080fd5b803590602001918460208302840111600160201b831117156108a957600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550611be5945050505050565b3480156108f357600080fd5b5061019e611ca3565b34801561090857600080fd5b5061050a611cbe565b34801561091d57600080fd5b5061019e6004803603602081101561093457600080fd5b50356001600160a01b0316611cc4565b34801561095057600080fd5b506109776004803603602081101561096757600080fd5b50356001600160a01b0316611dc8565b6040516001600160a01b039283168152911660208201526040908101905180910390f35b6109a3611def565b6001600160a01b03166109b46112b4565b6001600160a01b0316146109fc5760405162461bcd60e51b81526020600482018190526024820152600080516020613728833981519152604482015260640160405180910390fd5b6001600160a01b038116610a4e5760405162461bcd60e51b8152602060048201526015602482015274494e56414c49445f544f4b454e5f4144445245535360581b604482015260640160405180910390fd5b6001600160a01b038116600090815260076020526040902080546001600160a01b0319908116825560019091018054909116905550565b610a8d611def565b6001600160a01b0316610a9e6112b4565b6001600160a01b031614610ae65760405162461bcd60e51b81526020600482018190526024820152600080516020613728833981519152604482015260640160405180910390fd5b600b818051610af99291602001906135fb565b5050565b6009602052806000526040600020805460018201546002830154600384015460048501546005909501549395506001600160a01b03928316949193908316929091169086565b610b4b611df3565b6001600160a01b0316336001600160a01b031614610baf5760405162461bcd60e51b815260206004820152601760248201527f494e56414c49445f43414c4c4241434b5f53454e444552000000000000000000604482015260640160405180910390fd5b610bb881611fbc565b600a55610bc3613679565b600083815260096020526040902060405160c0810160409081528254825260018301546001600160a01b039081166020840152600284015491830191909152600383015481166060830152600483015416608082015260059091015460a0820152905082815114610c715760405162461bcd60e51b8152602060048201526014602482015273149154555154d517d254d7d0d05390d15313115160621b604482015260640160405180910390fd5b438160a001511015610cbe5760405162461bcd60e51b8152602060048201526012602482015271149154555154d517d254d7d156141254915160721b604482015260640160405180910390fd5b600a5415610f54576000610cdd8260400151600a548460800151611a09565b905060006007600084606001516001600160a01b03166001600160a01b03168152602001908152602001600020546001600160a01b031690508063beabacc860808501518560200151856040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529190921660248201526044810191909152606401600060405180830381600087803b158015610d7957600080fd5b505af1158015610d8d573d6000803e3d6000fd5b505050506000836060015190508360400151816001600160a01b03166370a0823186602001516040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b158015610df257600080fd5b505afa158015610e06573d6000803e3d6000fd5b505050506040513d6020811015610e1c57600080fd5b81019080805193909310159250610e679150505760405162461bcd60e51b81526004018080602001828103825260248152602001806137486024913960400191505060405180910390fd5b60006007600086606001516001600160a01b03166001600160a01b03168152602001908152602001600020600101546001600160a01b0316905080639dc29fac602087015187604001516040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015610ef757600080fd5b505af1158015610f0b573d6000803e3d6000fd5b505050507fe3be18defe5d4518a04b527722e586e20a5497c4f9ba02b96b01c214c0c6af61600a548860405191825260208201526040908101905180910390a150505050610f88565b7fd723bb0a8811783fee4e7c2b97eecfbc49a0600b310afc7630b571281b51b59d8360405190815260200160405180910390a15b6008600082602001516001600160a01b03166001600160a01b0316815260200190815260200160002060009081905583815260096020526040902060008082556001820180546001600160a01b031990811690915560028301829055600383018054821690556004830180549091169055600590910155505050565b600080805260036020526040812055505050565b611020611def565b6001600160a01b03166110316112b4565b6001600160a01b0316146110795760405162461bcd60e51b81526020600482018190526024820152600080516020613728833981519152604482015260640160405180910390fd5b6001600160a01b0383166110cb5760405162461bcd60e51b8152602060048201526015602482015274494e56414c49445f544f4b454e5f4144445245535360581b604482015260640160405180910390fd5b6001600160a01b03811661111d5760405162461bcd60e51b8152602060048201526015602482015274494e56414c49445f544f4b454e5f4144445245535360581b604482015260640160405180910390fd5b6001600160a01b0382166111705760405162461bcd60e51b8152602060048201526016602482015275494e56414c49445f544f4b454e535f4144445245535360501b604482015260640160405180910390fd5b604051604080820181526001600160a01b0380841683528481166020808501919091529086166000908152600790915220815181546001600160a01b0319166001600160a01b0391909116178155602082015160019190910180546001600160a01b0319166001600160a01b0390921691909117905550505050565b600e5481565b6111fa611def565b6001600160a01b031661120b6112b4565b6001600160a01b0316146112535760405162461bcd60e51b81526020600482018190526024820152600080516020613728833981519152604482015260640160405180910390fd5b6005546000906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3600580546001600160a01b0319169055565b600860205280600052604060002054905081565b6005546001600160a01b03165b90565b60066020528060005260406000205460ff16905081565b600084116113235760405162461bcd60e51b815260206004820152601160248201527016915493d7d513d2d15397d05353d55395607a1b604482015260640160405180910390fd5b6000811161136f5760405162461bcd60e51b81526020600482015260156024820152745a45524f5f4f5054494d49535449435f505249434560581b604482015260640160405180910390fd5b6001600160a01b03821660009081526006602052604090205460ff166113db5760405162461bcd60e51b815260206004820152601960248201527f494e56414c49445f544f4b454e5f544f5f574954484452415700000000000000604482015260640160405180910390fd5b336000908152600860205260409020541561143c5760405162461bcd60e51b815260206004820152601b60248201527f50454e44494e475f524551554553545f494e5f50524f47524553530000000000604482015260640160405180910390fd5b6001600160a01b0383166000908152600760205260408120546001600160a01b03169050806114a45760405162461bcd60e51b815260206004820152601060248201526f2727afa220a7afa327a92faa27a5a2a760811b604482015260640160405180910390fd5b8260006114b2878584611a09565b9050600081116114ff5760405162461bcd60e51b81526020600482015260146024820152731253959053125117d513d2d15397d05353d5539560621b604482015260640160405180910390fd5b80826001600160a01b03166370a08231856040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561154f57600080fd5b505afa158015611563573d6000803e3d6000fd5b505050506040513d602081101561157957600080fd5b810190808051939093101592506115d99150505760405162461bcd60e51b815260206004820152601b60248201527f494e53554646494349454e545f46554e44535f4f4e5f4147454e540000000000604482015260640160405180910390fd5b6115e23a611fd1565b4761160d60405160408082019052600b81526a31b7b6b83aba30ba34b7b760a91b602082015261218a565b111561164a5760405162461bcd60e51b81526004018080602001828103825260228152602001806137066022913960400191505060405180910390fd5b600061174e60405160408082018152600b82526a31b7b6b83aba30ba34b7b760a91b6020830152518060400160405280600b8054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156117105780601f106116e557610100808354040283529160200191611710565b820191906000526020600020905b8154815290600101906020018083116116f357829003601f168201915b50505050508152602001611744604051604080820190526002815261060f60f31b602082015261173f8d6123c3565b6124c6565b9052600c54612505565b9050801561189d5733600090815260086020528190604090205560405160c081016040908152828252336020808401919091528183018b90526001600160a01b038a8116606085015289166080840152600d54430160a084015260008481526009909152208151815560208201516001820180546001600160a01b0319166001600160a01b03929092169190911790556040820151816002015560608201516003820180546001600160a01b0319166001600160a01b039290921691909117905560808201516004820180546001600160a01b0319166001600160a01b039290921691909117905560a0820151600590910155507ffd89136dffafbaac50e67b1e6fcdeac776c4ec112780e17ef2a34e9d0c04bfa4888833846040519384526001600160a01b039283166020850152911660408084019190915260608301919091526080909101905180910390a15b5050505050505050565b600b8054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561193d5780601f106119125761010080835404028352916020019161193d565b820191906000526020600020905b81548152906001019060200180831161192057829003601f168201915b505050505081565b61194d611def565b6001600160a01b031661195e6112b4565b6001600160a01b0316146119a65760405162461bcd60e51b81526020600482018190526024820152600080516020613728833981519152604482015260640160405180910390fd5b60005b8151811015610af9576000600660008484815181106119c457fe5b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020805460ff19169115159190911790556001016119a9565b600c5481565b600081670de0b6b3a764000060066001600160a01b03831663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b158015611a5057600080fd5b505afa158015611a64573d6000803e3d6000fd5b505050506040513d6020811015611a7a57600080fd5b810190808051906020019092919050505003600a0a8587020281611a9a57fe5b049150505b9392505050565b600a5481565b611ab4611def565b6001600160a01b0316611ac56112b4565b6001600160a01b031614611b0d5760405162461bcd60e51b81526020600482018190526024820152600080516020613728833981519152604482015260640160405180910390fd5b611b16816126e3565b50565b611b21611def565b6001600160a01b0316611b326112b4565b6001600160a01b031614611b7a5760405162461bcd60e51b81526020600482018190526024820152600080516020613728833981519152604482015260640160405180910390fd5b600c55565b611b87611def565b6001600160a01b0316611b986112b4565b6001600160a01b031614611be05760405162461bcd60e51b81526020600482018190526024820152600080516020613728833981519152604482015260640160405180910390fd5b600d55565b611bed611def565b6001600160a01b0316611bfe6112b4565b6001600160a01b031614611c465760405162461bcd60e51b81526020600482018190526024820152600080516020613728833981519152604482015260640160405180910390fd5b60005b8151811015610af957600160066000848481518110611c6457fe5b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020805460ff1916911515919091179055600101611c49565b3360009081526008602052611cbc9060409020546126e3565b565b600d5481565b611ccc611def565b6001600160a01b0316611cdd6112b4565b6001600160a01b031614611d255760405162461bcd60e51b81526020600482018190526024820152600080516020613728833981519152604482015260640160405180910390fd5b6001600160a01b038116611d6a5760405162461bcd60e51b81526004018080602001828103825260268152602001806136e06026913960400191505060405180910390fd5b6005546001600160a01b0380831691167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3600580546001600160a01b0319166001600160a01b0392909216919091179055565b600760205280600052604060002080546001909101546001600160a01b0391821692501682565b3390565b6001546000906001600160a01b03161580611e205750600154611e1e906001600160a01b031661285e565b155b15611e3157611e2f6000612862565b505b6001546001600160a01b03166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b158015611e6e57600080fd5b505af1158015611e82573d6000803e3d6000fd5b505050506040513d6020811015611e9857600080fd5b8101908080516000546001600160a01b039081169116149250611f49915050576001546001600160a01b03166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b158015611ef557600080fd5b505af1158015611f09573d6000803e3d6000fd5b505050506040513d6020811015611f1f57600080fd5b810190808051600080546001600160a01b0319166001600160a01b03929092169190911790555050505b6000546001600160a01b031663c281d19e6040518163ffffffff1660e01b815260040160206040518083038186803b158015611f8457600080fd5b505afa158015611f98573d6000803e3d6000fd5b505050506040513d6020811015611fae57600080fd5b810190808051935050505090565b6000611fc982600061286c565b90505b919050565b6001546001600160a01b03161580611ffb5750600154611ff9906001600160a01b031661285e565b155b1561200c5761200a6000612862565b505b6001546001600160a01b03166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561204957600080fd5b505af115801561205d573d6000803e3d6000fd5b505050506040513d602081101561207357600080fd5b8101908080516000546001600160a01b039081169116149250612124915050576001546001600160a01b03166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156120d057600080fd5b505af11580156120e4573d6000803e3d6000fd5b505050506040513d60208110156120fa57600080fd5b810190808051600080546001600160a01b0319166001600160a01b03929092169190911790555050505b6000546001600160a01b031663ca6ad1e4826040516001600160e01b031960e084901b1681526004810191909152602401600060405180830381600087803b15801561216f57600080fd5b505af1158015612183573d6000803e3d6000fd5b5050505050565b6001546000906001600160a01b031615806121b757506001546121b5906001600160a01b031661285e565b155b156121c8576121c66000612862565b505b6001546001600160a01b03166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561220557600080fd5b505af1158015612219573d6000803e3d6000fd5b505050506040513d602081101561222f57600080fd5b8101908080516000546001600160a01b0390811691161492506122e0915050576001546001600160a01b03166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561228c57600080fd5b505af11580156122a0573d6000803e3d6000fd5b505050506040513d60208110156122b657600080fd5b810190808051600080546001600160a01b0319166001600160a01b03929092169190911790555050505b6000546001600160a01b031663524f3889836040518263ffffffff1660e01b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561233e578082015183820152602001612326565b50505050905090810190601f16801561236b5780820380516001836020036101000a031916815260200191505b5092505050602060405180830381600087803b15801561238a57600080fd5b505af115801561239e573d6000803e3d6000fd5b505050506040513d60208110156123b457600080fd5b81019080805195945050505050565b6060806028604051818152601f19601f83011681016020016040529080156123f2576020820181803883390190505b50905060005b60148110156124bf5760008160130360080260020a856001600160a01b03168161241e57fe5b0460f81b9050600060108260f81c60ff168161243657fe5b0460f81b905060008160f81c6010028360f81c0360f81b90506124588261293a565b85856002028151811061246757fe5b60200101906001600160f81b031916908160001a9053506124878161293a565b85856002026001018151811061249957fe5b60200101906001600160f81b031916908160001a90535050600190920191506123f89050565b5092915050565b60606124fc838360405160208101604090815260008252516020810160409081526000825251602081016040526000815261296b565b90505b92915050565b6001546000906001600160a01b031615806125325750600154612530906001600160a01b031661285e565b155b15612543576125416000612862565b505b6001546001600160a01b03166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561258057600080fd5b505af1158015612594573d6000803e3d6000fd5b505050506040513d60208110156125aa57600080fd5b8101908080516000546001600160a01b03908116911614925061265b915050576001546001600160a01b03166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561260757600080fd5b505af115801561261b573d6000803e3d6000fd5b505050506040513d602081101561263157600080fd5b810190808051600080546001600160a01b0319166001600160a01b03929092169190911790555050505b6060600260405190808252806020026020018201604052801561269257816020015b606081526020019060019003908161267d5790505b5090508351816000815181106126a457fe5b60209081029190910101528360016020020151816001815181106126c457fe5b60200260200101819052506126da858285612b6b565b95945050505050565b6000818152600960205260408120600101546001600160a01b031614156127455760405162461bcd60e51b8152602060048201526012602482015271524551554553545f4e4f545f45584953545360701b604482015260640160405180910390fd5b61274d613679565b600082815260096020526040902060405160c0810160409081528254825260018301546001600160a01b0390811660208401908152600285015492840192909252600384015481166060840152600484015416608083015260059092015460a08201529150600890600090516001600160a01b03166001600160a01b0316815260200190815260200160002060009081905582815260096020526040902060008082556001820180546001600160a01b0319908116909155600283018290556003830180548216905560048301805490911690556005909101557f6f868d40e825c93388b018873ec15044296481ecb32053f282033d80f2db66728260405190815260200160405180910390a15050565b3b90565b6000611fc9612f3c565b6000828180805b835181101561292157603084828151811061288a57fe5b602001015160f81c108015906128b4575060398482815181106128a957fe5b602001015160f81c11155b156128f85781156128d157856128c957612921565b600019909501945b600a8302925060308482815181106128e557fe5b602001015160f81c039290920191612919565b83818151811061290457fe5b602001015160f81c602e141561291957600191505b600101612873565b5084156129315784600a0a820291505b50949350505050565b6000600a60f883901c101561295a578160f81c60300160f81b9050611fcc565b8160f81c60570160f81b9050611fcc565b60608585858585858151835185518751895101010101604051818152601f19601f83011681016020016040529080156129ab576020820181803883390190505b509050806000805b8851811015612a04578881815181106129c857fe5b602001015160f81c60f81b8383806001019450815181106129e557fe5b60200101906001600160f81b031916908160001a9053506001016129b3565b5060005b8751811015612a5957878181518110612a1d57fe5b602001015160f81c60f81b838380600101945081518110612a3a57fe5b60200101906001600160f81b031916908160001a905350600101612a08565b5060005b8651811015612aae57868181518110612a7257fe5b602001015160f81c60f81b838380600101945081518110612a8f57fe5b60200101906001600160f81b031916908160001a905350600101612a5d565b5060005b8551811015612b0357858181518110612ac757fe5b602001015160f81c60f81b838380600101945081518110612ae457fe5b60200101906001600160f81b031916908160001a905350600101612ab2565b5060005b8451811015612b5857848181518110612b1c57fe5b602001015160f81c60f81b838380600101945081518110612b3957fe5b60200101906001600160f81b031916908160001a905350600101612b07565b50909d9c50505050505050505050505050565b6001546000906001600160a01b03161580612b985750600154612b96906001600160a01b031661285e565b155b15612ba957612ba76000612862565b505b6001546001600160a01b03166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b158015612be657600080fd5b505af1158015612bfa573d6000803e3d6000fd5b505050506040513d6020811015612c1057600080fd5b8101908080516000546001600160a01b039081169116149250612cc1915050576001546001600160a01b03166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b158015612c6d57600080fd5b505af1158015612c81573d6000803e3d6000fd5b505050506040513d6020811015612c9757600080fd5b810190808051600080546001600160a01b0319166001600160a01b03929092169190911790555050505b600080546001600160a01b0316632ef3accc86856040518363ffffffff1660e01b81526004018080602001838152602001828103825284818151815260200191508051906020019080838360005b83811015612d27578082015183820152602001612d0f565b50505050905090810190601f168015612d545780820380516001836020036101000a031916815260200191505b509350505050602060405180830381600087803b158015612d7457600080fd5b505af1158015612d88573d6000803e3d6000fd5b505050506040513d6020811015612d9e57600080fd5b8101908080519350505050670de0b6b3a76400003a840201811115612dc7575060009050611a9f565b6060612dd285613285565b600080549192506001600160a01b039091169063c55c1cb69084908985896040518663ffffffff1660e01b8152600401808581526020018060200180602001848152602001838103835286818151815260200191508051906020019080838360005b83811015612e4c578082015183820152602001612e34565b50505050905090810190601f168015612e795780820380516001836020036101000a031916815260200191505b50838103825285818151815260200191508051906020019080838360005b83811015612eaf578082015183820152602001612e97565b50505050905090810190601f168015612edc5780820380516001836020036101000a031916815260200191505b5096505050505050506020604051808303818588803b158015612efe57600080fd5b505af1158015612f12573d6000803e3d6000fd5b50505050506040513d6020811015612f2957600080fd5b8101908080519998505050505050505050565b600080612f5c731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed61285e565b1115612fba57600180546001600160a01b031916731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed179055612fb260405160408082019052600b81526a195d1a17db585a5b9b995d60aa1b60208201526132f7565b5060016112c1565b6000612fd973c03a2615d5efaf5f49f60b7bb6583eaec212fdf161285e565b111561303057600180546001600160a01b03191673c03a2615d5efaf5f49f60b7bb6583eaec212fdf1179055612fb260405160408082019052600c81526b6574685f726f707374656e3360a01b60208201526132f7565b600061304f73b7a07bcf2ba2f2703b24c0691b5278999c59ac7e61285e565b11156130a357600180546001600160a01b03191673b7a07bcf2ba2f2703b24c0691b5278999c59ac7e179055612fb260405160408082019052600981526832ba342fb5b7bb30b760b91b60208201526132f7565b60006130c273146500cfd35b22e4a392fe0adc06de1a1368ed4861285e565b111561311857600180546001600160a01b03191673146500cfd35b22e4a392fe0adc06de1a1368ed48179055612fb260405160408082019052600b81526a6574685f72696e6b65627960a81b60208201526132f7565b600061313773a2998efd205fb9d4b4963afb70778d6354ad3a4161285e565b111561318c57600180546001600160a01b03191673a2998efd205fb9d4b4963afb70778d6354ad3a41179055612fb260405160408082019052600a8152696574685f676f65726c6960b01b60208201526132f7565b60006131ab736f485c8bf6fc43ea212e93bbf8ce046c7f1cb47561285e565b11156131dd5750600180546001600160a01b031916736f485c8bf6fc43ea212e93bbf8ce046c7f1cb4751781556112c1565b60006131fc7320e12a1f859b3feae5fb2a0a32c18f5a65555bbf61285e565b111561322e5750600180546001600160a01b0319167320e12a1f859b3feae5fb2a0a32c18f5a65555bbf1781556112c1565b600061324d7351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa61285e565b111561327f5750600180546001600160a01b0319167351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa1781556112c1565b50600090565b606061328f61330a565b6132976136ad565b6132a381610400613316565b6132ac81613344565b60005b83518110156132e4576132dc8482815181106132c757fe5b6020026020010151839063ffffffff61334f16565b6001016132af565b506132ee81613371565b80519392505050565b6002818051610af99291602001906135fb565b60405180590338823950565b8060208106156133295760208106602003015b60208301819052604051928390526000835290910160405250565b611b16816004613378565b61335c8260038351613393565b61336c828263ffffffff6134a416565b505050565b611b168160075b610af982601f611fe0600585901b161763ffffffff61353d16565b601781116133b9576133b48360e0600585901b16831763ffffffff61353d16565b61336c565b60ff81116133f4576133dc836018611fe0600586901b161763ffffffff61353d16565b6133ee8382600163ffffffff61357616565b5061336c565b61ffff811161342a57613418836019611fe0600586901b161763ffffffff61353d16565b6133ee8382600263ffffffff61357616565b63ffffffff81116134625761345083601a611fe0600586901b161763ffffffff61353d16565b6133ee8382600463ffffffff61357616565b67ffffffffffffffff811161336c5761348c83601b611fe0600586901b161763ffffffff61353d16565b61349e8382600863ffffffff61357616565b50505050565b6134ac6136ad565b826020015183515183510111156134d8576134d8836134d0856020015185516135ca565b6002026135e1565b60008060008451905085518051602081830101945086510190526020850191505b6020811061351957815183526020928301929190910190601f19016134f9565b60001960208290036101000a01801983511681855116179093525093949350505050565b8160200151825151600101111561355f5761355f8283602001516002026135e1565b815180516020818301018381535060010190525050565b61357e6136ad565b8360200151845151830111156135a0576135a0846134d08660200151856135ca565b60001961010083900a01845180518481830101868419825116179052909301909252509192915050565b6000818311156135db5750816124ff565b50919050565b6060825190506135f18383613316565b61349e83826134a4565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061363c57805160ff1916838001178555613669565b82800160010185558215613669579182015b8281111561366957825182559160200191906001019061364e565b506136759291506136c5565b5090565b60405160c081016040908152600080835260208301819052908201819052606082018190526080820181905260a082015290565b60405160408082019052606081526000602082015290565b6112c191905b8082111561367557600081556001016136cb56fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373494e53554646494349454e545f46554e44535f464f525f4f5241434c455f43414c4c4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65724e4f545f454e4f5547485f544f4b454e535f544f5f4255524e5f4f4e5f42414c414e4345a265627a7a723158203984d7672809b0d7d161f585386ecd293600684cb2ce0ef7f3e160feb3a1585064736f6c63430005110032516d59396453566b7a35686e6a5146686b334547327a36774e766379484a5147426f557461376e7376773656594c

Deployed Bytecode

0x6080604052600436106101665760003560e01c8063a89ae4ba116100d1578063c7e22ac41161008a578063ea8a1af011610064578063ea8a1af0146108e7578063ede374f0146108fc578063f2fde38b14610911578063fafc02b41461094457610166565b8063c7e22ac4146107e5578063dc7966841461080f578063e3113df91461083957610166565b8063a89ae4ba14610618578063b25706f3146106a4578063b89f34bf14610752578063beea0c5814610767578063c0587a95146107a6578063c4d252f5146107bb57610166565b80636ec232d3116101235780636ec232d3146104f5578063715018a61461051c5780637fc4077e146105315780638da5cb5b146105645780639b19251a14610595578063a318c1a4146105dc57610166565b80631d6fbb7d1461016b5780631f154b32146101a05780632795ad201461025057806327dc297e146102be57806338bbfa501461037557806343095dbc146104b0575b600080fd5b34801561017757600080fd5b5061019e6004803603602081101561018e57600080fd5b50356001600160a01b031661099b565b005b3480156101ac57600080fd5b5061019e600480360360208110156101c357600080fd5b810190602081018135600160201b8111156101dd57600080fd5b8201836020820111156101ef57600080fd5b803590602001918460018302840111600160201b8311171561021057600080fd5b91908080601f0160208091040260200160405190810160405281815292919060208401838380828437600092019190915250929550610a85945050505050565b34801561025c57600080fd5b5061027a6004803603602081101561027357600080fd5b5035610afd565b6040519586526001600160a01b0394851660208701526040808701949094529184166060860152909216608084015260a083019190915260c0909101905180910390f35b3480156102ca57600080fd5b5061019e600480360360408110156102e157600080fd5b81359190810190604081016020820135600160201b81111561030257600080fd5b82018360208201111561031457600080fd5b803590602001918460018302840111600160201b8311171561033557600080fd5b91908080601f0160208091040260200160405190810160405281815292919060208401838380828437600092019190915250929550610b43945050505050565b34801561038157600080fd5b5061019e6004803603606081101561039857600080fd5b81359190810190604081016020820135600160201b8111156103b957600080fd5b8201836020820111156103cb57600080fd5b803590602001918460018302840111600160201b831117156103ec57600080fd5b91908080601f01602080910402602001604051908101604052818152929190602084018383808284376000920191909152509295949360208101935035915050600160201b81111561043d57600080fd5b82018360208201111561044f57600080fd5b803590602001918460018302840111600160201b8311171561047057600080fd5b91908080601f0160208091040260200160405190810160405281815292919060208401838380828437600092019190915250929550611004945050505050565b3480156104bc57600080fd5b5061019e600480360360608110156104d357600080fd5b506001600160a01b038135811691602081013582169160409091013516611018565b34801561050157600080fd5b5061050a6111ec565b60405190815260200160405180910390f35b34801561052857600080fd5b5061019e6111f2565b34801561053d57600080fd5b5061050a6004803603602081101561055457600080fd5b50356001600160a01b03166112a0565b34801561057057600080fd5b506105796112b4565b6040516001600160a01b03909116815260200160405180910390f35b3480156105a157600080fd5b506105c8600480360360208110156105b857600080fd5b50356001600160a01b03166112c4565b604051901515815260200160405180910390f35b61019e600480360360808110156105f257600080fd5b508035906001600160a01b036020820135811691604081013590911690606001356112db565b34801561062457600080fd5b5061062d6118a7565b60405160208082528190810183818151815260200191508051906020019080838360005b83811015610669578082015183820152602001610651565b50505050905090810190601f1680156106965780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156106b057600080fd5b5061019e600480360360208110156106c757600080fd5b810190602081018135600160201b8111156106e157600080fd5b8201836020820111156106f357600080fd5b803590602001918460208302840111600160201b8311171561071457600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550611945945050505050565b34801561075e57600080fd5b5061050a611a03565b34801561077357600080fd5b5061050a6004803603606081101561078a57600080fd5b50803590602081013590604001356001600160a01b0316611a09565b3480156107b257600080fd5b5061050a611aa6565b3480156107c757600080fd5b5061019e600480360360208110156107de57600080fd5b5035611aac565b3480156107f157600080fd5b5061019e6004803603602081101561080857600080fd5b5035611b19565b34801561081b57600080fd5b5061019e6004803603602081101561083257600080fd5b5035611b7f565b34801561084557600080fd5b5061019e6004803603602081101561085c57600080fd5b810190602081018135600160201b81111561087657600080fd5b82018360208201111561088857600080fd5b803590602001918460208302840111600160201b831117156108a957600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550611be5945050505050565b3480156108f357600080fd5b5061019e611ca3565b34801561090857600080fd5b5061050a611cbe565b34801561091d57600080fd5b5061019e6004803603602081101561093457600080fd5b50356001600160a01b0316611cc4565b34801561095057600080fd5b506109776004803603602081101561096757600080fd5b50356001600160a01b0316611dc8565b6040516001600160a01b039283168152911660208201526040908101905180910390f35b6109a3611def565b6001600160a01b03166109b46112b4565b6001600160a01b0316146109fc5760405162461bcd60e51b81526020600482018190526024820152600080516020613728833981519152604482015260640160405180910390fd5b6001600160a01b038116610a4e5760405162461bcd60e51b8152602060048201526015602482015274494e56414c49445f544f4b454e5f4144445245535360581b604482015260640160405180910390fd5b6001600160a01b038116600090815260076020526040902080546001600160a01b0319908116825560019091018054909116905550565b610a8d611def565b6001600160a01b0316610a9e6112b4565b6001600160a01b031614610ae65760405162461bcd60e51b81526020600482018190526024820152600080516020613728833981519152604482015260640160405180910390fd5b600b818051610af99291602001906135fb565b5050565b6009602052806000526040600020805460018201546002830154600384015460048501546005909501549395506001600160a01b03928316949193908316929091169086565b610b4b611df3565b6001600160a01b0316336001600160a01b031614610baf5760405162461bcd60e51b815260206004820152601760248201527f494e56414c49445f43414c4c4241434b5f53454e444552000000000000000000604482015260640160405180910390fd5b610bb881611fbc565b600a55610bc3613679565b600083815260096020526040902060405160c0810160409081528254825260018301546001600160a01b039081166020840152600284015491830191909152600383015481166060830152600483015416608082015260059091015460a0820152905082815114610c715760405162461bcd60e51b8152602060048201526014602482015273149154555154d517d254d7d0d05390d15313115160621b604482015260640160405180910390fd5b438160a001511015610cbe5760405162461bcd60e51b8152602060048201526012602482015271149154555154d517d254d7d156141254915160721b604482015260640160405180910390fd5b600a5415610f54576000610cdd8260400151600a548460800151611a09565b905060006007600084606001516001600160a01b03166001600160a01b03168152602001908152602001600020546001600160a01b031690508063beabacc860808501518560200151856040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529190921660248201526044810191909152606401600060405180830381600087803b158015610d7957600080fd5b505af1158015610d8d573d6000803e3d6000fd5b505050506000836060015190508360400151816001600160a01b03166370a0823186602001516040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b158015610df257600080fd5b505afa158015610e06573d6000803e3d6000fd5b505050506040513d6020811015610e1c57600080fd5b81019080805193909310159250610e679150505760405162461bcd60e51b81526004018080602001828103825260248152602001806137486024913960400191505060405180910390fd5b60006007600086606001516001600160a01b03166001600160a01b03168152602001908152602001600020600101546001600160a01b0316905080639dc29fac602087015187604001516040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015610ef757600080fd5b505af1158015610f0b573d6000803e3d6000fd5b505050507fe3be18defe5d4518a04b527722e586e20a5497c4f9ba02b96b01c214c0c6af61600a548860405191825260208201526040908101905180910390a150505050610f88565b7fd723bb0a8811783fee4e7c2b97eecfbc49a0600b310afc7630b571281b51b59d8360405190815260200160405180910390a15b6008600082602001516001600160a01b03166001600160a01b0316815260200190815260200160002060009081905583815260096020526040902060008082556001820180546001600160a01b031990811690915560028301829055600383018054821690556004830180549091169055600590910155505050565b600080805260036020526040812055505050565b611020611def565b6001600160a01b03166110316112b4565b6001600160a01b0316146110795760405162461bcd60e51b81526020600482018190526024820152600080516020613728833981519152604482015260640160405180910390fd5b6001600160a01b0383166110cb5760405162461bcd60e51b8152602060048201526015602482015274494e56414c49445f544f4b454e5f4144445245535360581b604482015260640160405180910390fd5b6001600160a01b03811661111d5760405162461bcd60e51b8152602060048201526015602482015274494e56414c49445f544f4b454e5f4144445245535360581b604482015260640160405180910390fd5b6001600160a01b0382166111705760405162461bcd60e51b8152602060048201526016602482015275494e56414c49445f544f4b454e535f4144445245535360501b604482015260640160405180910390fd5b604051604080820181526001600160a01b0380841683528481166020808501919091529086166000908152600790915220815181546001600160a01b0319166001600160a01b0391909116178155602082015160019190910180546001600160a01b0319166001600160a01b0390921691909117905550505050565b600e5481565b6111fa611def565b6001600160a01b031661120b6112b4565b6001600160a01b0316146112535760405162461bcd60e51b81526020600482018190526024820152600080516020613728833981519152604482015260640160405180910390fd5b6005546000906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3600580546001600160a01b0319169055565b600860205280600052604060002054905081565b6005546001600160a01b03165b90565b60066020528060005260406000205460ff16905081565b600084116113235760405162461bcd60e51b815260206004820152601160248201527016915493d7d513d2d15397d05353d55395607a1b604482015260640160405180910390fd5b6000811161136f5760405162461bcd60e51b81526020600482015260156024820152745a45524f5f4f5054494d49535449435f505249434560581b604482015260640160405180910390fd5b6001600160a01b03821660009081526006602052604090205460ff166113db5760405162461bcd60e51b815260206004820152601960248201527f494e56414c49445f544f4b454e5f544f5f574954484452415700000000000000604482015260640160405180910390fd5b336000908152600860205260409020541561143c5760405162461bcd60e51b815260206004820152601b60248201527f50454e44494e475f524551554553545f494e5f50524f47524553530000000000604482015260640160405180910390fd5b6001600160a01b0383166000908152600760205260408120546001600160a01b03169050806114a45760405162461bcd60e51b815260206004820152601060248201526f2727afa220a7afa327a92faa27a5a2a760811b604482015260640160405180910390fd5b8260006114b2878584611a09565b9050600081116114ff5760405162461bcd60e51b81526020600482015260146024820152731253959053125117d513d2d15397d05353d5539560621b604482015260640160405180910390fd5b80826001600160a01b03166370a08231856040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561154f57600080fd5b505afa158015611563573d6000803e3d6000fd5b505050506040513d602081101561157957600080fd5b810190808051939093101592506115d99150505760405162461bcd60e51b815260206004820152601b60248201527f494e53554646494349454e545f46554e44535f4f4e5f4147454e540000000000604482015260640160405180910390fd5b6115e23a611fd1565b4761160d60405160408082019052600b81526a31b7b6b83aba30ba34b7b760a91b602082015261218a565b111561164a5760405162461bcd60e51b81526004018080602001828103825260228152602001806137066022913960400191505060405180910390fd5b600061174e60405160408082018152600b82526a31b7b6b83aba30ba34b7b760a91b6020830152518060400160405280600b8054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156117105780601f106116e557610100808354040283529160200191611710565b820191906000526020600020905b8154815290600101906020018083116116f357829003601f168201915b50505050508152602001611744604051604080820190526002815261060f60f31b602082015261173f8d6123c3565b6124c6565b9052600c54612505565b9050801561189d5733600090815260086020528190604090205560405160c081016040908152828252336020808401919091528183018b90526001600160a01b038a8116606085015289166080840152600d54430160a084015260008481526009909152208151815560208201516001820180546001600160a01b0319166001600160a01b03929092169190911790556040820151816002015560608201516003820180546001600160a01b0319166001600160a01b039290921691909117905560808201516004820180546001600160a01b0319166001600160a01b039290921691909117905560a0820151600590910155507ffd89136dffafbaac50e67b1e6fcdeac776c4ec112780e17ef2a34e9d0c04bfa4888833846040519384526001600160a01b039283166020850152911660408084019190915260608301919091526080909101905180910390a15b5050505050505050565b600b8054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561193d5780601f106119125761010080835404028352916020019161193d565b820191906000526020600020905b81548152906001019060200180831161192057829003601f168201915b505050505081565b61194d611def565b6001600160a01b031661195e6112b4565b6001600160a01b0316146119a65760405162461bcd60e51b81526020600482018190526024820152600080516020613728833981519152604482015260640160405180910390fd5b60005b8151811015610af9576000600660008484815181106119c457fe5b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020805460ff19169115159190911790556001016119a9565b600c5481565b600081670de0b6b3a764000060066001600160a01b03831663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b158015611a5057600080fd5b505afa158015611a64573d6000803e3d6000fd5b505050506040513d6020811015611a7a57600080fd5b810190808051906020019092919050505003600a0a8587020281611a9a57fe5b049150505b9392505050565b600a5481565b611ab4611def565b6001600160a01b0316611ac56112b4565b6001600160a01b031614611b0d5760405162461bcd60e51b81526020600482018190526024820152600080516020613728833981519152604482015260640160405180910390fd5b611b16816126e3565b50565b611b21611def565b6001600160a01b0316611b326112b4565b6001600160a01b031614611b7a5760405162461bcd60e51b81526020600482018190526024820152600080516020613728833981519152604482015260640160405180910390fd5b600c55565b611b87611def565b6001600160a01b0316611b986112b4565b6001600160a01b031614611be05760405162461bcd60e51b81526020600482018190526024820152600080516020613728833981519152604482015260640160405180910390fd5b600d55565b611bed611def565b6001600160a01b0316611bfe6112b4565b6001600160a01b031614611c465760405162461bcd60e51b81526020600482018190526024820152600080516020613728833981519152604482015260640160405180910390fd5b60005b8151811015610af957600160066000848481518110611c6457fe5b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020805460ff1916911515919091179055600101611c49565b3360009081526008602052611cbc9060409020546126e3565b565b600d5481565b611ccc611def565b6001600160a01b0316611cdd6112b4565b6001600160a01b031614611d255760405162461bcd60e51b81526020600482018190526024820152600080516020613728833981519152604482015260640160405180910390fd5b6001600160a01b038116611d6a5760405162461bcd60e51b81526004018080602001828103825260268152602001806136e06026913960400191505060405180910390fd5b6005546001600160a01b0380831691167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3600580546001600160a01b0319166001600160a01b0392909216919091179055565b600760205280600052604060002080546001909101546001600160a01b0391821692501682565b3390565b6001546000906001600160a01b03161580611e205750600154611e1e906001600160a01b031661285e565b155b15611e3157611e2f6000612862565b505b6001546001600160a01b03166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b158015611e6e57600080fd5b505af1158015611e82573d6000803e3d6000fd5b505050506040513d6020811015611e9857600080fd5b8101908080516000546001600160a01b039081169116149250611f49915050576001546001600160a01b03166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b158015611ef557600080fd5b505af1158015611f09573d6000803e3d6000fd5b505050506040513d6020811015611f1f57600080fd5b810190808051600080546001600160a01b0319166001600160a01b03929092169190911790555050505b6000546001600160a01b031663c281d19e6040518163ffffffff1660e01b815260040160206040518083038186803b158015611f8457600080fd5b505afa158015611f98573d6000803e3d6000fd5b505050506040513d6020811015611fae57600080fd5b810190808051935050505090565b6000611fc982600061286c565b90505b919050565b6001546001600160a01b03161580611ffb5750600154611ff9906001600160a01b031661285e565b155b1561200c5761200a6000612862565b505b6001546001600160a01b03166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561204957600080fd5b505af115801561205d573d6000803e3d6000fd5b505050506040513d602081101561207357600080fd5b8101908080516000546001600160a01b039081169116149250612124915050576001546001600160a01b03166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156120d057600080fd5b505af11580156120e4573d6000803e3d6000fd5b505050506040513d60208110156120fa57600080fd5b810190808051600080546001600160a01b0319166001600160a01b03929092169190911790555050505b6000546001600160a01b031663ca6ad1e4826040516001600160e01b031960e084901b1681526004810191909152602401600060405180830381600087803b15801561216f57600080fd5b505af1158015612183573d6000803e3d6000fd5b5050505050565b6001546000906001600160a01b031615806121b757506001546121b5906001600160a01b031661285e565b155b156121c8576121c66000612862565b505b6001546001600160a01b03166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561220557600080fd5b505af1158015612219573d6000803e3d6000fd5b505050506040513d602081101561222f57600080fd5b8101908080516000546001600160a01b0390811691161492506122e0915050576001546001600160a01b03166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561228c57600080fd5b505af11580156122a0573d6000803e3d6000fd5b505050506040513d60208110156122b657600080fd5b810190808051600080546001600160a01b0319166001600160a01b03929092169190911790555050505b6000546001600160a01b031663524f3889836040518263ffffffff1660e01b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561233e578082015183820152602001612326565b50505050905090810190601f16801561236b5780820380516001836020036101000a031916815260200191505b5092505050602060405180830381600087803b15801561238a57600080fd5b505af115801561239e573d6000803e3d6000fd5b505050506040513d60208110156123b457600080fd5b81019080805195945050505050565b6060806028604051818152601f19601f83011681016020016040529080156123f2576020820181803883390190505b50905060005b60148110156124bf5760008160130360080260020a856001600160a01b03168161241e57fe5b0460f81b9050600060108260f81c60ff168161243657fe5b0460f81b905060008160f81c6010028360f81c0360f81b90506124588261293a565b85856002028151811061246757fe5b60200101906001600160f81b031916908160001a9053506124878161293a565b85856002026001018151811061249957fe5b60200101906001600160f81b031916908160001a90535050600190920191506123f89050565b5092915050565b60606124fc838360405160208101604090815260008252516020810160409081526000825251602081016040526000815261296b565b90505b92915050565b6001546000906001600160a01b031615806125325750600154612530906001600160a01b031661285e565b155b15612543576125416000612862565b505b6001546001600160a01b03166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561258057600080fd5b505af1158015612594573d6000803e3d6000fd5b505050506040513d60208110156125aa57600080fd5b8101908080516000546001600160a01b03908116911614925061265b915050576001546001600160a01b03166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561260757600080fd5b505af115801561261b573d6000803e3d6000fd5b505050506040513d602081101561263157600080fd5b810190808051600080546001600160a01b0319166001600160a01b03929092169190911790555050505b6060600260405190808252806020026020018201604052801561269257816020015b606081526020019060019003908161267d5790505b5090508351816000815181106126a457fe5b60209081029190910101528360016020020151816001815181106126c457fe5b60200260200101819052506126da858285612b6b565b95945050505050565b6000818152600960205260408120600101546001600160a01b031614156127455760405162461bcd60e51b8152602060048201526012602482015271524551554553545f4e4f545f45584953545360701b604482015260640160405180910390fd5b61274d613679565b600082815260096020526040902060405160c0810160409081528254825260018301546001600160a01b0390811660208401908152600285015492840192909252600384015481166060840152600484015416608083015260059092015460a08201529150600890600090516001600160a01b03166001600160a01b0316815260200190815260200160002060009081905582815260096020526040902060008082556001820180546001600160a01b0319908116909155600283018290556003830180548216905560048301805490911690556005909101557f6f868d40e825c93388b018873ec15044296481ecb32053f282033d80f2db66728260405190815260200160405180910390a15050565b3b90565b6000611fc9612f3c565b6000828180805b835181101561292157603084828151811061288a57fe5b602001015160f81c108015906128b4575060398482815181106128a957fe5b602001015160f81c11155b156128f85781156128d157856128c957612921565b600019909501945b600a8302925060308482815181106128e557fe5b602001015160f81c039290920191612919565b83818151811061290457fe5b602001015160f81c602e141561291957600191505b600101612873565b5084156129315784600a0a820291505b50949350505050565b6000600a60f883901c101561295a578160f81c60300160f81b9050611fcc565b8160f81c60570160f81b9050611fcc565b60608585858585858151835185518751895101010101604051818152601f19601f83011681016020016040529080156129ab576020820181803883390190505b509050806000805b8851811015612a04578881815181106129c857fe5b602001015160f81c60f81b8383806001019450815181106129e557fe5b60200101906001600160f81b031916908160001a9053506001016129b3565b5060005b8751811015612a5957878181518110612a1d57fe5b602001015160f81c60f81b838380600101945081518110612a3a57fe5b60200101906001600160f81b031916908160001a905350600101612a08565b5060005b8651811015612aae57868181518110612a7257fe5b602001015160f81c60f81b838380600101945081518110612a8f57fe5b60200101906001600160f81b031916908160001a905350600101612a5d565b5060005b8551811015612b0357858181518110612ac757fe5b602001015160f81c60f81b838380600101945081518110612ae457fe5b60200101906001600160f81b031916908160001a905350600101612ab2565b5060005b8451811015612b5857848181518110612b1c57fe5b602001015160f81c60f81b838380600101945081518110612b3957fe5b60200101906001600160f81b031916908160001a905350600101612b07565b50909d9c50505050505050505050505050565b6001546000906001600160a01b03161580612b985750600154612b96906001600160a01b031661285e565b155b15612ba957612ba76000612862565b505b6001546001600160a01b03166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b158015612be657600080fd5b505af1158015612bfa573d6000803e3d6000fd5b505050506040513d6020811015612c1057600080fd5b8101908080516000546001600160a01b039081169116149250612cc1915050576001546001600160a01b03166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b158015612c6d57600080fd5b505af1158015612c81573d6000803e3d6000fd5b505050506040513d6020811015612c9757600080fd5b810190808051600080546001600160a01b0319166001600160a01b03929092169190911790555050505b600080546001600160a01b0316632ef3accc86856040518363ffffffff1660e01b81526004018080602001838152602001828103825284818151815260200191508051906020019080838360005b83811015612d27578082015183820152602001612d0f565b50505050905090810190601f168015612d545780820380516001836020036101000a031916815260200191505b509350505050602060405180830381600087803b158015612d7457600080fd5b505af1158015612d88573d6000803e3d6000fd5b505050506040513d6020811015612d9e57600080fd5b8101908080519350505050670de0b6b3a76400003a840201811115612dc7575060009050611a9f565b6060612dd285613285565b600080549192506001600160a01b039091169063c55c1cb69084908985896040518663ffffffff1660e01b8152600401808581526020018060200180602001848152602001838103835286818151815260200191508051906020019080838360005b83811015612e4c578082015183820152602001612e34565b50505050905090810190601f168015612e795780820380516001836020036101000a031916815260200191505b50838103825285818151815260200191508051906020019080838360005b83811015612eaf578082015183820152602001612e97565b50505050905090810190601f168015612edc5780820380516001836020036101000a031916815260200191505b5096505050505050506020604051808303818588803b158015612efe57600080fd5b505af1158015612f12573d6000803e3d6000fd5b50505050506040513d6020811015612f2957600080fd5b8101908080519998505050505050505050565b600080612f5c731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed61285e565b1115612fba57600180546001600160a01b031916731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed179055612fb260405160408082019052600b81526a195d1a17db585a5b9b995d60aa1b60208201526132f7565b5060016112c1565b6000612fd973c03a2615d5efaf5f49f60b7bb6583eaec212fdf161285e565b111561303057600180546001600160a01b03191673c03a2615d5efaf5f49f60b7bb6583eaec212fdf1179055612fb260405160408082019052600c81526b6574685f726f707374656e3360a01b60208201526132f7565b600061304f73b7a07bcf2ba2f2703b24c0691b5278999c59ac7e61285e565b11156130a357600180546001600160a01b03191673b7a07bcf2ba2f2703b24c0691b5278999c59ac7e179055612fb260405160408082019052600981526832ba342fb5b7bb30b760b91b60208201526132f7565b60006130c273146500cfd35b22e4a392fe0adc06de1a1368ed4861285e565b111561311857600180546001600160a01b03191673146500cfd35b22e4a392fe0adc06de1a1368ed48179055612fb260405160408082019052600b81526a6574685f72696e6b65627960a81b60208201526132f7565b600061313773a2998efd205fb9d4b4963afb70778d6354ad3a4161285e565b111561318c57600180546001600160a01b03191673a2998efd205fb9d4b4963afb70778d6354ad3a41179055612fb260405160408082019052600a8152696574685f676f65726c6960b01b60208201526132f7565b60006131ab736f485c8bf6fc43ea212e93bbf8ce046c7f1cb47561285e565b11156131dd5750600180546001600160a01b031916736f485c8bf6fc43ea212e93bbf8ce046c7f1cb4751781556112c1565b60006131fc7320e12a1f859b3feae5fb2a0a32c18f5a65555bbf61285e565b111561322e5750600180546001600160a01b0319167320e12a1f859b3feae5fb2a0a32c18f5a65555bbf1781556112c1565b600061324d7351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa61285e565b111561327f5750600180546001600160a01b0319167351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa1781556112c1565b50600090565b606061328f61330a565b6132976136ad565b6132a381610400613316565b6132ac81613344565b60005b83518110156132e4576132dc8482815181106132c757fe5b6020026020010151839063ffffffff61334f16565b6001016132af565b506132ee81613371565b80519392505050565b6002818051610af99291602001906135fb565b60405180590338823950565b8060208106156133295760208106602003015b60208301819052604051928390526000835290910160405250565b611b16816004613378565b61335c8260038351613393565b61336c828263ffffffff6134a416565b505050565b611b168160075b610af982601f611fe0600585901b161763ffffffff61353d16565b601781116133b9576133b48360e0600585901b16831763ffffffff61353d16565b61336c565b60ff81116133f4576133dc836018611fe0600586901b161763ffffffff61353d16565b6133ee8382600163ffffffff61357616565b5061336c565b61ffff811161342a57613418836019611fe0600586901b161763ffffffff61353d16565b6133ee8382600263ffffffff61357616565b63ffffffff81116134625761345083601a611fe0600586901b161763ffffffff61353d16565b6133ee8382600463ffffffff61357616565b67ffffffffffffffff811161336c5761348c83601b611fe0600586901b161763ffffffff61353d16565b61349e8382600863ffffffff61357616565b50505050565b6134ac6136ad565b826020015183515183510111156134d8576134d8836134d0856020015185516135ca565b6002026135e1565b60008060008451905085518051602081830101945086510190526020850191505b6020811061351957815183526020928301929190910190601f19016134f9565b60001960208290036101000a01801983511681855116179093525093949350505050565b8160200151825151600101111561355f5761355f8283602001516002026135e1565b815180516020818301018381535060010190525050565b61357e6136ad565b8360200151845151830111156135a0576135a0846134d08660200151856135ca565b60001961010083900a01845180518481830101868419825116179052909301909252509192915050565b6000818311156135db5750816124ff565b50919050565b6060825190506135f18383613316565b61349e83826134a4565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061363c57805160ff1916838001178555613669565b82800160010185558215613669579182015b8281111561366957825182559160200191906001019061364e565b506136759291506136c5565b5090565b60405160c081016040908152600080835260208301819052908201819052606082018190526080820181905260a082015290565b60405160408082019052606081526000602082015290565b6112c191905b8082111561367557600081556001016136cb56fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373494e53554646494349454e545f46554e44535f464f525f4f5241434c455f43414c4c4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65724e4f545f454e4f5547485f544f4b454e535f544f5f4255524e5f4f4e5f42414c414e4345a265627a7a723158203984d7672809b0d7d161f585386ecd293600684cb2ce0ef7f3e160feb3a1585064736f6c63430005110032

Deployed Bytecode Sourcemap

66297:13734:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;76263:226;;8:9:-1;5:2;;;30:1;27;20:12;5:2;76263:226:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;76263:226:0;-1:-1:-1;;;;;76263:226:0;;:::i;:::-;;76613:166;;8:9:-1;5:2;;;30:1;27;20:12;5:2;76613:166:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;76613:166:0;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;76613:166:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;76613:166:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;76613:166:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1:33:-1;99:1;81:16;;74:27;;;;-1:-1;76613:166:0;;-1:-1:-1;76613:166:0;;-1:-1:-1;;;;;76613:166:0:i;67388:58::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;67388:58:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;67388:58:0;;:::i;:::-;;;;;;-1:-1:-1;;;;;67388:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;72493:2032;;8:9:-1;5:2;;;30:1;27;20:12;5:2;72493:2032:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;72493:2032:0;;;;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;72493:2032:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;72493:2032:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;72493:2032:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1:33:-1;99:1;81:16;;74:27;;;;-1:-1;72493:2032:0;;-1:-1:-1;72493:2032:0;;-1:-1:-1;;;;;72493:2032:0:i;22201:181::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;22201:181:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;22201:181:0;;;;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;22201:181:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;22201:181:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;22201:181:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1:33:-1;99:1;81:16;;74:27;;;;-1:-1;22201:181:0;;;;;;;;-1:-1:-1;22201:181:0;;-1:-1:-1;;;;;5:28;;2:2;;;46:1;43;36:12;2:2;22201:181:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;22201:181:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;22201:181:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1:33:-1;99:1;81:16;;74:27;;;;-1:-1;22201:181:0;;-1:-1:-1;22201:181:0;;-1:-1:-1;;;;;22201:181:0:i;75698:478::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;75698:478:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;75698:478:0;;;;;;;;;;;;;;;;;;;:::i;67930:20::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;67930:20:0;;;:::i;:::-;;;;;;;;;;;;;;;2990:140;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2990:140:0;;;:::i;67287:49::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;67287:49:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;67287:49:0;-1:-1:-1;;;;;67287:49:0;;:::i;2347:79::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2347:79:0;;;:::i;:::-;;;-1:-1:-1;;;;;2347:79:0;;;;;;;;;;;;;;67043:41;;8:9:-1;5:2;;;30:1;27;20:12;5:2;67043:41:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;67043:41:0;-1:-1:-1;;;;;67043:41:0;;:::i;:::-;;;;;;;;;;;;;;;;;69182:3080;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;69182:3080:0;;;-1:-1:-1;;;;;69182:3080:0;;;;;;;;;;;;;;;;;;;:::i;67553:78::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;67553:78:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;67553:78:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;77901:250;;8:9:-1;5:2;;;30:1;27;20:12;5:2;77901:250:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;77901:250:0;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;77901:250:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;77901:250:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;-1:-1;;;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;77901:250:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;77901:250:0;;-1:-1:-1;77901:250:0;;-1:-1:-1;;;;;77901:250:0:i;67697:41::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;67697:41:0;;;:::i;74807:318::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;74807:318:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;74807:318:0;;;;;;;;;;;-1:-1:-1;;;;;74807:318:0;;:::i;67455:32::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;67455:32:0;;;:::i;78297:129::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;78297:129:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;78297:129:0;;:::i;76902:166::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;76902:166:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;76902:166:0;;:::i;77208:168::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;77208:168:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;77208:168:0;;:::i;77514:246::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;77514:246:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;77514:246:0;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;77514:246:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;77514:246:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;-1:-1;;;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;77514:246:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;77514:246:0;;-1:-1:-1;77514:246:0;;-1:-1:-1;;;;;77514:246:0:i;75330:105::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;75330:105:0;;;:::i;67867:50::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;67867:50:0;;;:::i;3285:236::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3285:236:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;3285:236:0;-1:-1:-1;;;;;3285:236:0;;:::i;67158:40::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;67158:40:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;67158:40:0;-1:-1:-1;;;;;67158:40:0;;:::i;:::-;;;-1:-1:-1;;;;;67158:40:0;;;;;;;;;;;;;;;;;;;;;;76263:226;2570:12;:10;:12::i;:::-;-1:-1:-1;;;;;2559:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2559:23:0;;2551:68;;;;-1:-1:-1;;;2551:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2551:68:0;;;;;;;;;;;;;;-1:-1:-1;;;;;76376:20:0;;76368:78;;;;-1:-1:-1;;;76368:78:0;;;;;;;;;;;;-1:-1:-1;;;76368:78:0;;;;;;;;;;;;;;-1:-1:-1;;;;;76464:17:0;;;;;;:9;:17;;;;;76457:24;;-1:-1:-1;;;;;;76457:24:0;;;;;;;;;;;;;;;;-1:-1:-1;76263:226:0:o;76613:166::-;2570:12;:10;:12::i;:::-;-1:-1:-1;;;;;2559:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2559:23:0;;2551:68;;;;-1:-1:-1;;;2551:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2551:68:0;;;;;;;;;;;;;;76742:13;76758;;76742:29;;;;;;;;:::i;:::-;;76613:166;:::o;67388:58::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;67388:58:0;;;;;;;;;;;;;;;:::o;72493:2032::-;72701:20;:18;:20::i;:::-;-1:-1:-1;;;;;72687:34:0;:10;-1:-1:-1;;;;;72687:34:0;;72679:93;;;;-1:-1:-1;;;72679:93:0;;;;;;;;;;;;;;;;;;;;;;;;;;;72872:17;72881:7;72872:8;:17::i;:::-;72852;:37;72900:30;;:::i;:::-;72933:25;;;;:15;:25;;;;;72900:58;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;72900:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;72998:8:0;72900:58;72977:17;:29;72969:86;;;;-1:-1:-1;;;72969:86:0;;;;;;;;;;;;-1:-1:-1;;;72969:86:0;;;;;;;;;;;;;;73168:12;73142:7;:22;;;:38;;73134:93;;;;-1:-1:-1;;;73134:93:0;;;;;;;;;;;;-1:-1:-1;;;73134:93:0;;;;;;;;;;;;;;73332:17;;:21;73328:1056;;73370:19;73392:71;73408:7;:14;;;73424:17;;73443:7;:19;;;73392:15;:71::i;:::-;73370:93;;73552:12;73574:9;:24;73584:7;:13;;;-1:-1:-1;;;;;73574:24:0;-1:-1:-1;;;;;73574:24:0;;;;;;;;;;;;:30;-1:-1:-1;;;;;73574:30:0;;-1:-1:-1;73574:30:0;73620:14;73635:19;;;;73656:7;:14;;;73672:11;73620:64;;-1:-1:-1;;;;;;73620:64:0;;;;;;;-1:-1:-1;;;;;73620:64:0;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;73620:64:0;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;73620:64:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;73620:64:0;;;;73757:12;73779:7;:13;;;73757:36;;73851:7;:14;;;73816:5;-1:-1:-1;;;;;73816:15:0;;73832:7;:14;;;73816:31;;-1:-1:-1;;;;;;73816:31:0;;;;;;;-1:-1:-1;;;;;73816:31:0;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;73816:31:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;73816:31:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;73816:31:0;;;;;;:49;;;;;;-1:-1:-1;73808:130:0;;-1:-1:-1;;73808:130:0;;;-1:-1:-1;;;73808:130:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;73953:14;73978:9;:24;73988:7;:13;;;-1:-1:-1;;;;;73978:24:0;-1:-1:-1;;;;;73978:24:0;;;;;;;;;;;;:31;;;-1:-1:-1;;;;;73978:31:0;;-1:-1:-1;73978:31:0;74037:11;74049:14;;;;74065:7;:14;;;74037:43;;-1:-1:-1;;;;;;74037:43:0;;;;;;;-1:-1:-1;;;;;74037:43:0;;;;;;;;;;;;;-1:-1:-1;74037:43:0;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;74037:43:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;74037:43:0;;;;74181:53;74206:17;;74225:8;74181:53;;;;;;;;;;;;;;;;;;;;73328:1056;;;;;;;74341:31;74363:8;74341:31;;;;;;;;;;;;;;73328:1056;74444:14;:30;74459:7;:14;;;-1:-1:-1;;;;;74444:30:0;-1:-1:-1;;;;;74444:30:0;;;;;;;;;;;;74437:37;;;;;74492:25;;;:15;:25;;;;;;74485:32;;;;;;;;-1:-1:-1;;;;;;74485:32:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;72493:2032:0:o;22201:181::-;22372:1;22327:34;;;:22;:34;;;22372:1;22327:34;:47;-1:-1:-1;;;22201:181:0:o;75698:478::-;2570:12;:10;:12::i;:::-;-1:-1:-1;;;;;2559:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2559:23:0;;2551:68;;;;-1:-1:-1;;;2551:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2551:68:0;;;;;;;;;;;;;;-1:-1:-1;;;;;75858:20:0;;75850:78;;;;-1:-1:-1;;;75850:78:0;;;;;;;;;;;;-1:-1:-1;;;75850:78:0;;;;;;;;;;;;;;-1:-1:-1;;;;;75947:20:0;;75939:78;;;;-1:-1:-1;;;75939:78:0;;;;;;;;;;;;-1:-1:-1;;;75939:78:0;;;;;;;;;;;;;;-1:-1:-1;;;;;76036:21:0;;76028:79;;;;-1:-1:-1;;;76028:79:0;;;;;;;;;;;;-1:-1:-1;;;76028:79:0;;;;;;;;;;;;;;76148:20;;;;;;;;-1:-1:-1;;;;;76148:20:0;;;;;;;;;;;;;;;;76128:17;;;-1:-1:-1;76128:17:0;;;:9;:17;;;;:40;;;;-1:-1:-1;;;;;;76128:40:0;-1:-1:-1;;;;;76128:40:0;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;76128:40:0;-1:-1:-1;;;;;76128:40:0;;;;;;;;;-1:-1:-1;;;;75698:478:0:o;67930:20::-;;;;:::o;2990:140::-;2570:12;:10;:12::i;:::-;-1:-1:-1;;;;;2559:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2559:23:0;;2551:68;;;;-1:-1:-1;;;2551:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2551:68:0;;;;;;;;;;;;;;3073:6;;3089:1;;-1:-1:-1;;;;;3073:6:0;3052:40;;;;;;;;;;3103:6;:19;;-1:-1:-1;;;;;;3103:19:0;;;2990:140::o;67287:49::-;;;;;;;;;;;;-1:-1:-1;67287:49:0;:::o;2347:79::-;2412:6;;-1:-1:-1;;;;;2412:6:0;2347:79;;:::o;67043:41::-;;;;;;;;;;;;;;-1:-1:-1;67043:41:0;:::o;69182:3080::-;69449:1;69439:7;:11;69431:65;;;;-1:-1:-1;;;69431:65:0;;;;;;;;;;;;-1:-1:-1;;;69431:65:0;;;;;;;;;;;;;;69598:1;69579:16;:20;69571:78;;;;-1:-1:-1;;;69571:78:0;;;;;;;;;;;;-1:-1:-1;;;69571:78:0;;;;;;;;;;;;;;-1:-1:-1;;;;;69746:23:0;;;;;;:9;:23;;;;;;;;69738:84;;;;-1:-1:-1;;;69738:84:0;;;;;;;;;;;;;;;;;;;;;;;;;;;69930:10;69915:26;;;;:14;:26;;;;;;:31;69907:94;;;;-1:-1:-1;;;69907:94:0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;70128:17:0;;70112:13;70128:17;;;:9;:17;;;70112:13;70128:17;:23;-1:-1:-1;;;;;70128:23:0;;-1:-1:-1;70170:19:0;70162:72;;;;-1:-1:-1;;;70162:72:0;;;;;;;;;;;;-1:-1:-1;;;70162:72:0;;;;;;;;;;;;;;70462:12;70434:18;70513:56;70529:7;70538:16;70462:12;70513:15;:56::i;:::-;70486:83;;70607:1;70588:16;:20;70580:77;;;;-1:-1:-1;;;70580:77:0;;;;;;;;;;;;-1:-1:-1;;;70580:77:0;;;;;;;;;;;;;;70708:16;70676:11;-1:-1:-1;;;;;70676:21:0;;70698:5;70676:28;;-1:-1:-1;;;;;;70676:28:0;;;;;;;-1:-1:-1;;;;;70676:28:0;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;70676:28:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;70676:28:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;70676:28:0;;;;;;:48;;;;;;-1:-1:-1;70668:112:0;;-1:-1:-1;;70668:112:0;;;-1:-1:-1;;;70668:112:0;;;;;;;;;;;;;;;;;;;;;;;;;;;70891:39;70918:11;70891:26;:39::i;:::-;71047:21;71011:32;;;;;;;;;;;;-1:-1:-1;;;71011:32:0;;;;:17;:32::i;:::-;:57;;71003:128;;;;-1:-1:-1;;;71003:128:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;71292:15;71323:233;;;;;;;;;;;;-1:-1:-1;;;71323:233:0;;;;;;;;;;;71411:13;71323:233;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;71447:39;;;;;;;;;;;;-1:-1:-1;;;71447:39:0;;;;71463:22;71478:6;71463:14;:22::i;:::-;71447:9;:39::i;:::-;71323:233;;71524:17;;71323:14;:233::i;:::-;71292:264;-1:-1:-1;71677:12:0;;71673:582;;71783:10;71768:26;;;;:14;:26;;71797:7;;71768:26;;;:36;71927:230;;;;;;;;;;;;71987:10;71927:230;;;;;;;;;;;;;;-1:-1:-1;;;;;71927:230:0;;;;;;;;;;;;;72113:29;;72098:12;:44;71927:230;;;;-1:-1:-1;71900:24:0;;;:15;:24;;;;:257;;;;;;;;;;;;;-1:-1:-1;;;;;;71900:257:0;-1:-1:-1;;;;;71900:257:0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;71900:257:0;-1:-1:-1;;;;;71900:257:0;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;71900:257:0;-1:-1:-1;;;;;71900:257:0;;;;;;;;;;;;;;;;;;;-1:-1:-1;72183:60:0;72206:7;72215:6;72223:10;72235:7;72183:60;;;;;-1:-1:-1;;;;;72183:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;71673:582;69182:3080;;;;;;;;:::o;67553:78::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;77901:250::-;2570:12;:10;:12::i;:::-;-1:-1:-1;;;;;2559:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2559:23:0;;2551:68;;;;-1:-1:-1;;;2551:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2551:68:0;;;;;;;;;;;;;;78038:9;78033:111;78057:12;:19;78053:1;:23;78033:111;;;78127:5;78098:9;:26;78108:12;78121:1;78108:15;;;;;;;;;;;;;;-1:-1:-1;;;;;78098:26:0;-1:-1:-1;;;;;78098:26:0;;;;;;;;;;;;:34;;-1:-1:-1;;78098:34:0;;;;;;;;;;-1:-1:-1;78078:3:0;78033:111;;67697:41;;;;:::o;74807:318::-;74971:7;75024:12;75111:6;75106:1;-1:-1:-1;;;;;75081:20:0;;;:22;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;75081:22:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;75081:22:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;75081:22:0;;;;;;;;;;;;;;;;:26;75074:2;:34;75065:6;75055:7;:16;:53;:62;;;;;;75048:69;;;74807:318;;;;;;:::o;67455:32::-;;;;:::o;78297:129::-;2570:12;:10;:12::i;:::-;-1:-1:-1;;;;;2559:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2559:23:0;;2551:68;;;;-1:-1:-1;;;2551:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2551:68:0;;;;;;;;;;;;;;78401:17;78409:8;78401:7;:17::i;:::-;78297:129;:::o;76902:166::-;2570:12;:10;:12::i;:::-;-1:-1:-1;;;;;2559:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2559:23:0;;2551:68;;;;-1:-1:-1;;;2551:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2551:68:0;;;;;;;;;;;;;;77022:17;:38;76902:166::o;77208:168::-;2570:12;:10;:12::i;:::-;-1:-1:-1;;;;;2559:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2559:23:0;;2551:68;;;;-1:-1:-1;;;2551:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2551:68:0;;;;;;;;;;;;;;77327:29;:41;77208:168::o;77514:246::-;2570:12;:10;:12::i;:::-;-1:-1:-1;;;;;2559:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2559:23:0;;2551:68;;;;-1:-1:-1;;;2551:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2551:68:0;;;;;;;;;;;;;;77648:9;77643:110;77667:12;:19;77663:1;:23;77643:110;;;77737:4;77708:9;:26;77718:12;77731:1;77718:15;;;;;;;;;;;;;;-1:-1:-1;;;;;77708:26:0;-1:-1:-1;;;;;77708:26:0;;;;;;;;;;;;:33;;-1:-1:-1;;77708:33:0;;;;;;;;;;-1:-1:-1;77688:3:0;77643:110;;75330:105;75415:10;75400:26;;;;:14;:26;;75392:35;;75400:26;;;;75392:7;:35::i;:::-;75330:105::o;67867:50::-;;;;:::o;3285:236::-;2570:12;:10;:12::i;:::-;-1:-1:-1;;;;;2559:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2559:23:0;;2551:68;;;;-1:-1:-1;;;2551:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2551:68:0;;;;;;;;;;;;;;-1:-1:-1;;;;;3366:22:0;;3358:73;;;;-1:-1:-1;;;3358:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3468:6;;-1:-1:-1;;;;;3447:38:0;;;;3468:6;3447:38;;;;;;;;;;3496:6;:17;;-1:-1:-1;;;;;;3496:17:0;-1:-1:-1;;;;;3496:17:0;;;;;;;;;;3285:236::o;67158:40::-;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;67158:40:0;;;;-1:-1:-1;67158:40:0;;:::o;943:90::-;1015:10;943:90;:::o;44407:132::-;18522:3;;44467:24;;-1:-1:-1;;;;;18522:3:0;18514:26;;18513:64;;-1:-1:-1;18566:3:0;;18546:25;;-1:-1:-1;;;;;18566:3:0;18546:11;:25::i;:::-;:30;18513:64;18509:132;;;18594:35;18160:1;18594:19;:35::i;:::-;;18509:132;18676:3;;-1:-1:-1;;;;;18676:3:0;:14;:16;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;18676:16:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;18676:16:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;18676:16:0;;;;;;18663:8;;-1:-1:-1;;;;;18663:8:0;;;18655:37;;;;-1:-1:-1;18651:108:0;;-1:-1:-1;;18651:108:0;18730:3;;-1:-1:-1;;;;;18730:3:0;:14;:16;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;18730:16:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;18730:16:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;18730:16:0;;;;;;18709:8;:38;;-1:-1:-1;;;;;;18709:38:0;-1:-1:-1;;;;;18709:38:0;;;;;;;;;;-1:-1:-1;;;18651:108:0;44511:8;;-1:-1:-1;;;;;44511:8:0;:18;:20;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;44511:20:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;44511:20:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;44511:20:0;;;;;;;-1:-1:-1;;;;44407:132:0;:::o;50268:117::-;50327:15;50362;50371:2;50375:1;50362:8;:15::i;:::-;50355:22;;50268:117;;;;:::o;44706:136::-;18522:3;;-1:-1:-1;;;;;18522:3:0;18514:26;;18513:64;;-1:-1:-1;18566:3:0;;18546:25;;-1:-1:-1;;;;;18566:3:0;18546:11;:25::i;:::-;:30;18513:64;18509:132;;;18594:35;18160:1;18594:19;:35::i;:::-;;18509:132;18676:3;;-1:-1:-1;;;;;18676:3:0;:14;:16;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;18676:16:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;18676:16:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;18676:16:0;;;;;;18663:8;;-1:-1:-1;;;;;18663:8:0;;;18655:37;;;;-1:-1:-1;18651:108:0;;-1:-1:-1;;18651:108:0;18730:3;;-1:-1:-1;;;;;18730:3:0;:14;:16;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;18730:16:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;18730:16:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;18730:16:0;;;;;;18709:8;:38;;-1:-1:-1;;;;;;18709:38:0;-1:-1:-1;;;;;18709:38:0;;;;;;;;;;-1:-1:-1;;;18651:108:0;44797:8;;-1:-1:-1;;;;;44797:8:0;:26;44824:9;44797:37;;-1:-1:-1;;;;;;44797:37:0;;;;;;;;;;;;;;;;-1:-1:-1;44797:37:0;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;44797:37:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;44797:37:0;;;;44706:136;:::o;22390:158::-;18522:3;;22474:16;;-1:-1:-1;;;;;18522:3:0;18514:26;;18513:64;;-1:-1:-1;18566:3:0;;18546:25;;-1:-1:-1;;;;;18566:3:0;18546:11;:25::i;:::-;:30;18513:64;18509:132;;;18594:35;18160:1;18594:19;:35::i;:::-;;18509:132;18676:3;;-1:-1:-1;;;;;18676:3:0;:14;:16;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;18676:16:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;18676:16:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;18676:16:0;;;;;;18663:8;;-1:-1:-1;;;;;18663:8:0;;;18655:37;;;;-1:-1:-1;18651:108:0;;-1:-1:-1;;18651:108:0;18730:3;;-1:-1:-1;;;;;18730:3:0;:14;:16;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;18730:16:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;18730:16:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;18730:16:0;;;;;;18709:8;:38;;-1:-1:-1;;;;;;18709:38:0;-1:-1:-1;;;;;18709:38:0;;;;;;;;;;-1:-1:-1;;;18651:108:0;22510:8;;-1:-1:-1;;;;;22510:8:0;:17;22528:11;22510:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;22510:30:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;22510:30:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;22510:30:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;22510:30:0;;;;;;;22390:158;-1:-1:-1;;;;;22390:158:0:o;79149:520::-;79253:13;79284:14;79311:2;79301:13;;;;;-1:-1:-1;;79301:13:0;;;;;;;;;;;;;;;;;;21:6:-1;;104:10;79301:13:0;87:34:-1;135:17;;-1:-1;79301:13:0;-1:-1:-1;79284:30:0;-1:-1:-1;79330:9:0;79325:310;79349:2;79345:1;:6;79325:310;;;79373:8;79435:1;79430:2;:6;79425:1;:12;79421:1;:17;79413:2;-1:-1:-1;;;;;79397:20:0;:42;;;;;;79384:57;;79373:68;;79456:9;79486:2;79481:1;79475:8;;:13;;;;;;;;79468:21;;79456:33;;79504:9;79545:2;79539:9;;79534:2;:14;79529:1;79523:8;;:25;79516:33;;79504:45;;79575:9;79581:2;79575:5;:9::i;:::-;79564:1;79570;79566;:5;79564:8;;;;;;;;;;;:20;-1:-1:-1;;;;;79564:20:0;;;;;;;;;79614:9;79620:2;79614:5;:9::i;:::-;79599:1;79605;79601;:5;79609:1;79601:9;79599:12;;;;;;;;;;;:24;-1:-1:-1;;;;;79599:24:0;;;;;;;;-1:-1:-1;;79353:3:0;;;;;-1:-1:-1;79325:310:0;;-1:-1:-1;79325:310:0;;-1:-1:-1;79659:1:0;79149:520;-1:-1:-1;;79149:520:0:o;47563:168::-;47641:33;47694:29;47704:2;47708;47694:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:9;:29::i;:::-;47687:36;;47563:168;;;;;:::o;30156:323::-;18522:3;;30277:11;;-1:-1:-1;;;;;18522:3:0;18514:26;;18513:64;;-1:-1:-1;18566:3:0;;18546:25;;-1:-1:-1;;;;;18566:3:0;18546:11;:25::i;:::-;:30;18513:64;18509:132;;;18594:35;18160:1;18594:19;:35::i;:::-;;18509:132;18676:3;;-1:-1:-1;;;;;18676:3:0;:14;:16;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;18676:16:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;18676:16:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;18676:16:0;;;;;;18663:8;;-1:-1:-1;;;;;18663:8:0;;;18655:37;;;;-1:-1:-1;18651:108:0;;-1:-1:-1;;18651:108:0;18730:3;;-1:-1:-1;;;;;18730:3:0;:14;:16;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;18730:16:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;18730:16:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;18730:16:0;;;;;;18709:8;:38;;-1:-1:-1;;;;;;18709:38:0;-1:-1:-1;;;;;18709:38:0;;;;;;;;;;-1:-1:-1;;;18651:108:0;30301:23;30340:1;30327:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;30301:41:0;-1:-1:-1;30366:5:0;:8;30353:7;30361:1;30353:10;;;;;;;;;;;;;;;;;:21;30398:5;30404:1;30398:8;;;;30385:7;30393:1;30385:10;;;;;;;;;;;;;:21;;;;30424:47;30439:11;30452:7;30461:9;30424:14;:47::i;:::-;30417:54;30156:323;-1:-1:-1;;;;;30156:323:0:o;78614:426::-;78753:1;78709:25;;;:15;:25;;;78753:1;78709:25;:32;;;-1:-1:-1;;;;;78709:32:0;:46;;78701:101;;;;-1:-1:-1;;;78701:101:0;;;;;;;;;;;;-1:-1:-1;;;78701:101:0;;;;;;;;;;;;;;78823:30;;:::i;:::-;78856:25;;;;:15;:25;;;;;78823:58;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;78823:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;78899:14:0;;78823:58;;78914:14;-1:-1:-1;;;;;78899:30:0;-1:-1:-1;;;;;78899:30:0;;;;;;;;;;;;78892:37;;;;;78947:25;;;:15;:25;;;;;;78940:32;;;;;;;;-1:-1:-1;;;;;;78940:32:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;78998:34;79023:8;78998:34;;;;;;;;;;;;;;78614:426;;:::o;44547:151::-;44662:18;;44638:53::o;19263:208::-;19328:16;19442:21;:19;:21::i;50393:819::-;50461:15;50518:2;50461:15;;;50588:530;50609:7;:14;50605:1;:18;50588:530;;;50677:2;50661:7;50669:1;50661:10;;;;;;;;;;;;;;50650:29;;;;50649:66;;;50712:2;50696:7;50704:1;50696:10;;;;;;;;;;;;;;50685:29;;50649:66;50645:462;;;50740:8;50736:181;;;50776:7;50772:126;;50811:5;;50772:126;-1:-1:-1;;50871:4:0;;;;50772:126;50943:2;50935:10;;;;50998:2;50983:7;50991:1;50983:10;;;;;;;;;;;;;;50972:28;50964:36;;;;;50645:462;;;51037:7;51045:1;51037:10;;;;;;;;;;;;;;51053:2;51026:29;51022:85;;;51087:4;51076:15;;51022:85;50625:3;;50588:530;;;-1:-1:-1;51132:6:0;;51128:55;;51169:2;51163;:8;51155:16;;;;51128:55;-1:-1:-1;51200:4:0;50393:819;-1:-1:-1;;;;50393:819:0:o;79800:228::-;79895:8;79938:2;79926:9;;;;:14;79922:98;;;79962:2;79956:9;;79968:4;79956:16;79949:24;;79942:31;;;;79922:98;80009:2;80003:9;;80015:4;80003:16;79996:24;;79989:31;;;;48145:1046;48277:33;48348:2;48387;48426;48465;48504;48277:33;48504:2;48603:10;48590:3;:10;48577:3;:10;48564:3;:10;48551:3;:10;:23;:36;:49;:62;48540:74;;;;;-1:-1:-1;;48540:74:0;;;;;;;;;;;;;;;;;;21:6:-1;;104:10;48540:74:0;87:34:-1;135:17;;-1:-1;48540:74:0;-1:-1:-1;48518:96:0;-1:-1:-1;48518:96:0;48670:6;;48712:80;48728:3;:10;48724:1;:14;48712:80;;;48774:3;48778:1;48774:6;;;;;;;;;;;;;;;;48760;48767:3;;;;;;48760:11;;;;;;;;;;;:20;-1:-1:-1;;;;;48760:20:0;;;;;;;;-1:-1:-1;48740:3:0;;48712:80;;;-1:-1:-1;48811:1:0;48802:80;48818:3;:10;48814:1;:14;48802:80;;;48864:3;48868:1;48864:6;;;;;;;;;;;;;;;;48850;48857:3;;;;;;48850:11;;;;;;;;;;;:20;-1:-1:-1;;;;;48850:20:0;;;;;;;;-1:-1:-1;48830:3:0;;48802:80;;;-1:-1:-1;48901:1:0;48892:80;48908:3;:10;48904:1;:14;48892:80;;;48954:3;48958:1;48954:6;;;;;;;;;;;;;;;;48940;48947:3;;;;;;48940:11;;;;;;;;;;;:20;-1:-1:-1;;;;;48940:20:0;;;;;;;;-1:-1:-1;48920:3:0;;48892:80;;;-1:-1:-1;48991:1:0;48982:80;48998:3;:10;48994:1;:14;48982:80;;;49044:3;49048:1;49044:6;;;;;;;;;;;;;;;;49030;49037:3;;;;;;49030:11;;;;;;;;;;;:20;-1:-1:-1;;;;;49030:20:0;;;;;;;;-1:-1:-1;49010:3:0;;48982:80;;;-1:-1:-1;49081:1:0;49072:80;49088:3;:10;49084:1;:14;49072:80;;;49134:3;49138:1;49134:6;;;;;;;;;;;;;;;;49120;49127:3;;;;;;49120:11;;;;;;;;;;;:20;-1:-1:-1;;;;;49120:20:0;;;;;;;;-1:-1:-1;49100:3:0;;49072:80;;;-1:-1:-1;49176:6:0;;48145:1046;-1:-1:-1;;;;;;;;;;;;;48145:1046:0:o;27487:464::-;18522:3;;27607:11;;-1:-1:-1;;;;;18522:3:0;18514:26;;18513:64;;-1:-1:-1;18566:3:0;;18546:25;;-1:-1:-1;;;;;18566:3:0;18546:11;:25::i;:::-;:30;18513:64;18509:132;;;18594:35;18160:1;18594:19;:35::i;:::-;;18509:132;18676:3;;-1:-1:-1;;;;;18676:3:0;:14;:16;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;18676:16:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;18676:16:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;18676:16:0;;;;;;18663:8;;-1:-1:-1;;;;;18663:8:0;;;18655:37;;;;-1:-1:-1;18651:108:0;;-1:-1:-1;;18651:108:0;18730:3;;-1:-1:-1;;;;;18730:3:0;:14;:16;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;18730:16:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;18730:16:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;18730:16:0;;;;;;18709:8;:38;;-1:-1:-1;;;;;;18709:38:0;-1:-1:-1;;;;;18709:38:0;;;;;;;;;;-1:-1:-1;;;18651:108:0;27631:10;27644:8;;-1:-1:-1;;;;;27644:8:0;:17;27662:11;27675:9;27644:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;27644:41:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;27644:41:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;27644:41:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;27644:41:0;;;;;;;-1:-1:-1;;;;27708:7:0;27718:11;:23;;27708:33;27700:41;;27696:109;;;-1:-1:-1;27765:1:0;;-1:-1:-1;27758:8:0;;27696:109;27815:17;27835:16;27845:5;27835:9;:16::i;:::-;27869:8;;;27815:36;;-1:-1:-1;;;;;;27869:8:0;;;;:28;;27904:5;;27914:11;27815:36;27933:9;27869:74;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;27869:74:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;27869:74:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;27869:74:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;27869:74:0;;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;27869:74:0;;;;;;;27487:464;-1:-1:-1;;;;;;;;;27487:464:0:o;19755:2070::-;19804:16;19895:1;19837:55;19849:42;19837:11;:55::i;:::-;:59;19833:250;;;19923:3;:69;;-1:-1:-1;;;;;;19923:69:0;19949:42;19923:69;;;20007:38;;;;;;;;;;;;-1:-1:-1;;;20007:38:0;;;;:23;:38::i;:::-;-1:-1:-1;20067:4:0;20060:11;;19833:250;20155:1;20097:55;20109:42;20097:11;:55::i;:::-;:59;20093:259;;;20191:3;:69;;-1:-1:-1;;;;;;20191:69:0;20217:42;20191:69;;;20275:39;;;;;;;;;;;;-1:-1:-1;;;20275:39:0;;;;:23;:39::i;20093:259::-;20424:1;20366:55;20378:42;20366:11;:55::i;:::-;:59;20362:254;;;20458:3;:69;;-1:-1:-1;;;;;;20458:69:0;20484:42;20458:69;;;20542:36;;;;;;;;;;;;-1:-1:-1;;;20542:36:0;;;;:23;:36::i;20362:254::-;20688:1;20630:55;20642:42;20630:11;:55::i;:::-;:59;20626:258;;;20724:3;:69;;-1:-1:-1;;;;;;20724:69:0;20750:42;20724:69;;;20808:38;;;;;;;;;;;;-1:-1:-1;;;20808:38:0;;;;:23;:38::i;20626:258::-;20956:1;20898:55;20910:42;20898:11;:55::i;:::-;:59;20894:256;;;20991:3;:69;;-1:-1:-1;;;;;;20991:69:0;21017:42;20991:69;;;21075:37;;;;;;;;;;;;-1:-1:-1;;;21075:37:0;;;;:23;:37::i;20894:256::-;21222:1;21164:55;21176:42;21164:11;:55::i;:::-;:59;21160:205;;;-1:-1:-1;21258:3:0;:69;;-1:-1:-1;;;;;;21258:69:0;21284:42;21258:69;;;21342:11;;21160:205;21437:1;21379:55;21391:42;21379:11;:55::i;:::-;:59;21375:204;;;-1:-1:-1;21472:3:0;:69;;-1:-1:-1;;;;;;21472:69:0;21498:42;21472:69;;;21556:11;;21375:204;21651:1;21593:55;21605:42;21593:11;:55::i;:::-;:59;21589:206;;;-1:-1:-1;21688:3:0;:69;;-1:-1:-1;;;;;;21688:69:0;21714:42;21688:69;;;21772:11;;21589:206;-1:-1:-1;21812:5:0;19755:2070;:::o;51710:379::-;51774:26;51813:19;:17;:19::i;:::-;51843:24;;:::i;:::-;51878:22;51890:3;51895:4;51878:11;:22::i;:::-;51911:16;:3;:14;:16::i;:::-;51943:6;51938:91;51959:4;:11;51955:1;:15;51938:91;;;51992:25;52009:4;52014:1;52009:7;;;;;;;;;;;;;;51992:3;;:25;:16;:25;:::i;:::-;51972:3;;51938:91;;;;52039:17;:3;:15;:17::i;:::-;52074:3;:7;52067:14;51710:379;-1:-1:-1;;;51710:379:0:o;19479:127::-;19561:21;19585:13;;19561:37;;;;;;;;:::i;65588:175::-;65684:4;65678:11;65739:4;65732:5;65728:16;65718:8;65712:4;65703:42;65651:105;:::o;10718:446::-;10809:9;10844:2;10809:9;10833:13;:18;10829:83;;10897:2;10886:8;:13;10880:2;:20;10868:32;10829:83;10922:13;;;:24;;;11036:4;11030:11;11055:17;;;;11098:1;11086:14;;11127:18;;;11121:4;11114:32;-1:-1:-1;11004:153:0:o;17116:130::-;17188:50;17215:4;15223:1;17188:26;:50::i;16910:198::-;17006:57;17017:4;15274:1;17048:6;17042:20;17006:10;:57::i;:::-;17074:26;:4;17092:6;17074:26;:11;:26;:::i;:::-;;16910:198;;:::o;17388:138::-;17461:57;17488:4;15388:1;16144:147;16245:38;:4;16279:2;16264:11;16274:1;16264:11;;;;16263:18;16245:38;:11;:38;:::i;15398:738::-;15510:2;15500:6;:12;15496:633;;15529:42;:4;15547:22;15558:1;15548:11;;;15547:22;;;15529:42;:11;:42;:::i;:::-;15496:633;;;15603:4;15593:6;:14;15589:540;;15624:38;:4;15658:2;15643:11;15653:1;15643:11;;;;15642:18;15624:38;:11;:38;:::i;:::-;15677:25;:4;15692:6;15700:1;15677:25;:14;:25;:::i;:::-;;15589:540;;;15734:6;15724;:16;15720:409;;15757:38;:4;15791:2;15776:11;15786:1;15776:11;;;;15775:18;15757:38;:11;:38;:::i;:::-;15810:25;:4;15825:6;15833:1;15810:25;:14;:25;:::i;15720:409::-;15867:10;15857:6;:20;15853:276;;15894:38;:4;15928:2;15913:11;15923:1;15913:11;;;;15912:18;15894:38;:11;:38;:::i;:::-;15947:25;:4;15962:6;15970:1;15947:25;:14;:25;:::i;15853:276::-;16004:18;15994:6;:28;15990:139;;16039:38;:4;16073:2;16058:11;16068:1;16058:11;;;;16057:18;16039:38;:11;:38;:::i;:::-;16092:25;:4;16107:6;16115:1;16092:25;:14;:25;:::i;:::-;;15398:738;;;:::o;11804:1241::-;11883:21;;:::i;:::-;11954:4;:13;;;11936:4;:8;:15;11921:5;:12;:30;:46;11917:129;;;11984:50;11991:4;11997:32;12001:4;:13;;;12016:5;:12;11997:3;:32::i;:::-;12032:1;11997:36;11984:6;:50::i;:::-;12056:9;12076:8;12095;12106:5;:12;12095:23;;12173:4;12167:11;12249:6;12243:13;12337:2;12328:6;12320;12316:19;12312:28;12304:36;;12461:5;12455:12;12443:25;12428:41;;12525:2;12514:14;;;-1:-1:-1;12549:212:0;12562:2;12555:3;:9;12549:212;;12681:3;12675:10;12662:24;;12723:2;12715:10;;;;12740:9;;;;;-1:-1:-1;;12566:9:0;12549:212;;;-1:-1:-1;;12791:2:0;:8;;;12783:3;:17;:21;12894:9;;12888:3;12882:10;12878:26;12951:4;12944;12938:11;12934:22;12983:21;12970:35;;;-1:-1:-1;13033:4:0;;11804:1241;-1:-1:-1;;;;11804:1241:0:o;13339:586::-;13439:4;:13;;;13417:4;:8;:15;13435:1;13417:19;:35;13413:99;;;13469:31;13476:4;13482;:13;;;13498:1;13482:17;13469:6;:31::i;:::-;13566:4;13560:11;13642:6;13636:13;13734:2;13725:6;13717;13713:19;13709:28;13833:5;13827:4;13819:20;-1:-1:-1;13880:1:0;13868:14;13853:30;;-1:-1:-1;;13531:387:0:o;14219:748::-;14304:21;;:::i;:::-;14367:4;:13;;;14349:4;:8;:15;14342:4;:22;:38;14338:113;;;14397:42;14404:4;14410:24;14414:4;:13;;;14429:4;14410:3;:24::i;14397:42::-;-1:-1:-1;;14473:3:0;:11;;;:15;14543:4;14537:11;14619:6;14613:13;14711:4;14702:6;14694;14690:19;14686:30;14849:5;14841:4;14837:9;14830:4;14824:11;14820:27;14817:38;14804:52;;14885:17;;;14870:33;;;-1:-1:-1;14955:4:0;;14219:748;-1:-1:-1;;14219:748:0:o;11357:151::-;11410:9;11441:2;11436;:7;11432:49;;;-1:-1:-1;11467:2:0;11460:9;;11432:49;-1:-1:-1;11498:2:0;11357:151;-1:-1:-1;11357:151:0:o;11172:177::-;11248:19;11270:4;:8;11248:30;;11289:21;11294:4;11300:9;11289:4;:21::i;:::-;11321:20;11328:4;11334:6;11321;:20::i;66297:13734::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;66297:13734:0;;;-1:-1:-1;66297:13734:0;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;

Swarm Source

bzzr://3984d7672809b0d7d161f585386ecd293600684cb2ce0ef7f3e160feb3a15850

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.