Address Details
contract

0x42Eb7Fc1feC1abe140A394253Cc3C36d711c6565

Contract Name
FactorySCNBCrowdsale
Creator
0x067b6e–041cd7 at 0xb6f593–cdc3f8
Balance
0 CELO ( )
Locked CELO Balance
0.00 CELO
Voting CELO Balance
0.00 CELO
Pending Unlocked Gold
0.00 CELO
Tokens
Fetching tokens...
Transactions
Fetching transactions...
Transfers
Fetching transfers...
Gas Used
Fetching gas used...
Last Balance Update
12976039
This contract has been verified via Sourcify. View contract in Sourcify repository
Contract name:
FactorySCNBCrowdsale




Optimization enabled
true
Compiler version
v0.8.10+commit.fc410830




Optimization runs
25000
EVM Version
london




Verified at
2022-08-19T15:50:29.637998Z

project:/contracts/crowdsale/FactorySCNBCrowdsale.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;

import "./SCCrowdsale/SCCrowdsale.sol";
import "./SCCrowdsale/SCDatesChangeableCrowdsale.sol";
import "../IController.sol";

contract FactorySCNBCrowdsale is ReentrancyGuard {
    using SafeERC20 for IERC20;

    IController public immutable CONTROLLER;

    mapping (address => uint256[2]) public price;

    event NewContract(address contractAddress, uint8 contractType);

    modifier canSetPrice {
        require(CONTROLLER.canSetPrice(msg.sender), "Cannot set price");
        _;
    }

    constructor(IController _controller) {
        CONTROLLER = _controller;
    }

    function setPrice(address _token, uint256[2] calldata _price) external canSetPrice {
        price[_token] = _price;
    }

    function deploySoftCappableCrowdsale(
        address[2] calldata tokenToPayAndOwner,
        address _token, uint256 _tokenDecimals,
        uint256 _duration,
        uint256 _soft_cap,
        address[] calldata _tokens, uint256[] calldata _rates,
        uint256[2] calldata _limits
    ) external nonReentrant {
        uint256 _price = price[tokenToPayAndOwner[0]][0];
        require(_price > 0, "Wrong payment method");
        IERC20(tokenToPayAndOwner[0]).safeTransferFrom(msg.sender, CONTROLLER.feeReceiver(), _price);
        require(_tokens.length == _rates.length, "Invalid parameters");
        SoftCappableCrowdsale crowdsale = new SoftCappableCrowdsale(_token, _tokenDecimals, _duration, _soft_cap);
        crowdsale.setLimits(_limits[0], _limits[1]);
        for (uint256 i; i < _tokens.length; i++) {
            crowdsale.addPaymentMethod(_tokens[i], _rates[i]);
        }
        crowdsale.transferOwnership(tokenToPayAndOwner[1]);
        emit NewContract(address(crowdsale), 0);
    }

    function deploySoftCappableDatesChangeableCrowdsale(
        address[2] calldata tokenToPayAndOwner,
        address _token, uint256 _tokenDecimals,
        uint256 _duration,
        uint256 _soft_cap,
        address[] calldata _tokens, uint256[] calldata _rates,
        uint256[2] calldata _limits
    ) external nonReentrant {
        uint256 _price = price[tokenToPayAndOwner[0]][1];
        require(_price > 0, "Wrong payment method");
        IERC20(tokenToPayAndOwner[0]).safeTransferFrom(msg.sender, CONTROLLER.feeReceiver(), _price);
        require(_tokens.length == _rates.length, "Invalid parameters");
        SoftCappableDatesChangeableCrowdsale crowdsale = new SoftCappableDatesChangeableCrowdsale(_token, _tokenDecimals, _duration, _soft_cap);
        crowdsale.setLimits(_limits[0], _limits[1]);
        for (uint256 i; i < _tokens.length; i++) {
            crowdsale.addPaymentMethod(_tokens[i], _rates[i]);
        }
        crowdsale.transferOwnership(tokenToPayAndOwner[1]);
        emit NewContract(address(crowdsale), 1);
    }
}
        

/_openzeppelin/contracts/access/Ownable.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _setOwner(_msgSender());
    }

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

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

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

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

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}
          

/_openzeppelin/contracts/security/ReentrancyGuard.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}
          

/_openzeppelin/contracts/token/ERC20/IERC20.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

/_openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

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

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

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

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

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

/_openzeppelin/contracts/utils/Address.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

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

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

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

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

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}
          

/_openzeppelin/contracts/utils/Context.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}
          

/project_/contracts/IController.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;

interface IController {

    function feeReceiver() external view returns(address);

    function canSetPrice(address) external view returns(bool);
}
          

/project_/contracts/crowdsale/CrowdsaleBase.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

abstract contract CrowdsaleBase is Ownable, ReentrancyGuard {

    IERC20 public tokenToSell;
    uint256 public tokenDecimals;
    uint256 public DURATION;

    uint256 public totalSold;
    uint256 public endTime;

    uint256 public lowerLimit;
    uint256 public upperLimit;

    mapping(address => uint256) public bought;

    modifier afterStartAndBeforeEnd() {
        require(endTime > block.timestamp, "Already ended or not started");
        _;
    }

    constructor(address _token, uint256 _tokenDecimals, uint256 _duration) {
        tokenToSell = IERC20(_token);
        tokenDecimals = _tokenDecimals;
        DURATION = _duration;
    }

    function setLimits(uint256 _lowerLimit, uint256 _upperLimit) external onlyOwner {
        lowerLimit = _lowerLimit;
        upperLimit = _upperLimit;
    }

    function _calculate(uint256 amountToPay, uint256 _rate) internal virtual returns(uint256) {
        return ((amountToPay * (10 ** tokenDecimals)) / _rate);
    }

    function _beforeSending(uint256 _toGet) internal virtual {
        require(_toGet >= lowerLimit, "Cannot receive less than lower limit");
        bought[_msgSender()] += _toGet;
        require(upperLimit == 0 || bought[_msgSender()] <= upperLimit, "Cannot receive more than upper limit");
    }
}
          

/project_/contracts/crowdsale/DatesChangeable.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;

import "./CrowdsaleBase.sol";

abstract contract DatesChangeableCrowdsale is CrowdsaleBase {

    function endCrowdsale() external onlyOwner afterStartAndBeforeEnd {
        endTime = block.timestamp;
    }
}
          

/project_/contracts/crowdsale/SCCrowdsale/SCCrowdsale.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.10;

import "../CrowdsaleBase.sol";

contract SoftCappableCrowdsale is CrowdsaleBase {
    using SafeERC20 for IERC20;

    uint256 public SOFT_CAP;

    address[] public paymentMethods;
    uint256[] public ratePerFullToken;
    mapping (address => uint256[]) public amounts;
    uint256[] private refundable;
    mapping (address => uint256) private _paymentMethodExists;

    constructor(address _token, uint256 _tokenDecimals, uint256 _duration, uint256 _soft_cap) CrowdsaleBase(_token, _tokenDecimals, _duration) {
        SOFT_CAP = _soft_cap;
    }

    function start() external onlyOwner {
        require(endTime == 0, "Already started");
        endTime = block.timestamp + DURATION;
        refundable.push(0);
    }

    function addPaymentMethod(address token, uint256 rate) external onlyOwner {
        require(token != address(tokenToSell), "Cannot add sellable token as payment method");
        uint256 ID = _paymentMethodExists[token];
        if (ID == 0) {
            require(paymentMethods.length < 3, "Cannot add more than three payment methods");
            paymentMethods.push(token);
            ratePerFullToken.push(rate);
            _paymentMethodExists[token] = paymentMethods.length;
            refundable.push(0);
        }
        else {
            ratePerFullToken[ID - 1] = rate;
        }
    }

    function buy(address tokenToPay, uint256 amountToPay) external afterStartAndBeforeEnd nonReentrant {
        uint256 ID = _paymentMethodExists[tokenToPay];
        require(ID != 0, "Invalid payment method");
        uint256 _rate = ratePerFullToken[ID - 1];
        require(_rate > 0, "Invalid payment method");

        IERC20(tokenToPay).safeTransferFrom(_msgSender(), address(this), amountToPay);
        uint256 toGet = _calculate(amountToPay, _rate);

        _beforeSending(toGet);
        require(toGet <= (tokenToSell.balanceOf(address(this)) - refundable[0]), "Cannot buy this much");
        totalSold += toGet;

        if (totalSold < SOFT_CAP) {
            while (amounts[_msgSender()].length <= ID) {
                amounts[_msgSender()].push(0);
            }
            amounts[_msgSender()][0] += toGet;
            refundable[0] += toGet;
            amounts[_msgSender()][ID] += amountToPay;
            refundable[ID] += amountToPay;
        }
        else {
            if (amounts[_msgSender()].length > 0) {
                toGet += amounts[_msgSender()][0];
                for (uint256 i; i < amounts[_msgSender()].length; i++) {
                    refundable[i] -= amounts[_msgSender()][i];
                }
                delete amounts[_msgSender()];
            }
            tokenToSell.safeTransfer(_msgSender(), toGet);
        }
    }

    function redeem() external nonReentrant {
        tokenToSell.safeTransfer(_msgSender(), amounts[_msgSender()][0]);
        for (uint256 i; i < amounts[_msgSender()].length; i++) {
            refundable[i] -= amounts[_msgSender()][i];
        }
        delete amounts[_msgSender()];
    }

    function refund() external nonReentrant {
        require(block.timestamp > endTime, "Not ended yet");
        require(totalSold < SOFT_CAP, "Soft cap is reached");
        for (uint256 i; i < amounts[_msgSender()].length; i++) {
            uint256 toRefund = amounts[_msgSender()][i];
            if (toRefund > 0) {
                if (i != 0) {
                    address token = paymentMethods[i - 1];
                    IERC20(token).safeTransfer(_msgSender(), toRefund);
                }
                else {
                    totalSold -= toRefund;
                    bought[_msgSender()] -= toRefund;
                }
                refundable[i] -= toRefund;
            }
        }
        delete amounts[_msgSender()];
    }

    function getToken(address token) external onlyOwner nonReentrant {
        if (token == address(tokenToSell)) {
            require(block.timestamp > endTime, "Not ended yet");
            tokenToSell.safeTransfer(_msgSender(), tokenToSell.balanceOf(address(this)) - refundable[0]);
        }
        else {
            uint256 toGet = IERC20(token).balanceOf(address(this));
            uint256 ID = _paymentMethodExists[token];
            if (ID != 0 && totalSold < SOFT_CAP) {
                toGet -= refundable[ID];
            }
            if (toGet > 0) {
                IERC20(token).safeTransfer(_msgSender(), toGet);
            }
        }
    }
}
          

/project_/contracts/crowdsale/SCCrowdsale/SCDatesChangeableCrowdsale.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.10;

import "../DatesChangeable.sol";

contract SoftCappableDatesChangeableCrowdsale is DatesChangeableCrowdsale {
    using SafeERC20 for IERC20;

    uint256 public SOFT_CAP;

    address[] public paymentMethods;
    uint256[] public ratePerFullToken;
    mapping (address => uint256[]) public amounts;
    uint256[] private refundable;
    mapping (address => uint256) private _paymentMethodExists;

    constructor(address _token, uint256 _tokenDecimals, uint256 _duration, uint256 _soft_cap) CrowdsaleBase(_token, _tokenDecimals, _duration) {
        SOFT_CAP = _soft_cap;
    }

    function start() external onlyOwner {
        require(endTime == 0, "Already started");
        endTime = block.timestamp + DURATION;
        refundable.push(0);
    }

    function addPaymentMethod(address token, uint256 rate) external onlyOwner {
        require(token != address(tokenToSell), "Cannot add sellable token as payment method");
        uint256 ID = _paymentMethodExists[token];
        if (ID == 0) {
            require(paymentMethods.length < 3, "Cannot add more than three payment methods");
            paymentMethods.push(token);
            ratePerFullToken.push(rate);
            _paymentMethodExists[token] = paymentMethods.length;
            refundable.push(0);
        }
        else {
            ratePerFullToken[ID - 1] = rate;
        }
    }

    function buy(address tokenToPay, uint256 amountToPay) external afterStartAndBeforeEnd nonReentrant {
        uint256 ID = _paymentMethodExists[tokenToPay];
        require(ID != 0, "Invalid payment method");
        uint256 _rate = ratePerFullToken[ID - 1];
        require(_rate > 0, "Invalid payment method");

        IERC20(tokenToPay).safeTransferFrom(_msgSender(), address(this), amountToPay);
        uint256 toGet = _calculate(amountToPay, _rate);

        _beforeSending(toGet);
        require(toGet <= (tokenToSell.balanceOf(address(this)) - refundable[0]), "Cannot buy this much");
        totalSold += toGet;

        if (totalSold < SOFT_CAP) {
            while (amounts[_msgSender()].length <= ID) {
                amounts[_msgSender()].push(0);
            }
            amounts[_msgSender()][0] += toGet;
            refundable[0] += toGet;
            amounts[_msgSender()][ID] += amountToPay;
            refundable[ID] += amountToPay;
        }
        else {
            if (amounts[_msgSender()].length > 0) {
                toGet += amounts[_msgSender()][0];
                for (uint256 i; i < amounts[_msgSender()].length; i++) {
                    refundable[i] -= amounts[_msgSender()][i];
                }
                delete amounts[_msgSender()];
            }
            tokenToSell.safeTransfer(_msgSender(), toGet);
        }
    }

    function redeem() external nonReentrant {
        tokenToSell.safeTransfer(_msgSender(), amounts[_msgSender()][0]);
        for (uint256 i; i < amounts[_msgSender()].length; i++) {
            refundable[i] -= amounts[_msgSender()][i];
        }
        delete amounts[_msgSender()];
    }

    function refund() external nonReentrant {
        require(block.timestamp > endTime, "Not ended yet");
        require(totalSold < SOFT_CAP, "Soft cap is reached");
        for (uint256 i; i < amounts[_msgSender()].length; i++) {
            uint256 toRefund = amounts[_msgSender()][i];
            if (toRefund > 0) {
                if (i != 0) {
                    address token = paymentMethods[i - 1];
                    IERC20(token).safeTransfer(_msgSender(), toRefund);
                }
                else {
                    totalSold -= toRefund;
                    bought[_msgSender()] -= toRefund;
                }
                refundable[i] -= toRefund;
            }
        }
        delete amounts[_msgSender()];
    }

    function getToken(address token) external onlyOwner nonReentrant {
        if (token == address(tokenToSell)) {
            require(block.timestamp > endTime, "Not ended yet");
            tokenToSell.safeTransfer(_msgSender(), tokenToSell.balanceOf(address(this)) - refundable[0]);
        }
        else {
            uint256 toGet = IERC20(token).balanceOf(address(this));
            uint256 ID = _paymentMethodExists[token];
            if (ID != 0 && totalSold < SOFT_CAP) {
                toGet -= refundable[ID];
            }
            if (toGet > 0) {
                IERC20(token).safeTransfer(_msgSender(), toGet);
            }
        }
    }
}
          

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_controller","internalType":"contract IController"}]},{"type":"event","name":"NewContract","inputs":[{"type":"address","name":"contractAddress","internalType":"address","indexed":false},{"type":"uint8","name":"contractType","internalType":"uint8","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IController"}],"name":"CONTROLLER","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"deploySoftCappableCrowdsale","inputs":[{"type":"address[2]","name":"tokenToPayAndOwner","internalType":"address[2]"},{"type":"address","name":"_token","internalType":"address"},{"type":"uint256","name":"_tokenDecimals","internalType":"uint256"},{"type":"uint256","name":"_duration","internalType":"uint256"},{"type":"uint256","name":"_soft_cap","internalType":"uint256"},{"type":"address[]","name":"_tokens","internalType":"address[]"},{"type":"uint256[]","name":"_rates","internalType":"uint256[]"},{"type":"uint256[2]","name":"_limits","internalType":"uint256[2]"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"deploySoftCappableDatesChangeableCrowdsale","inputs":[{"type":"address[2]","name":"tokenToPayAndOwner","internalType":"address[2]"},{"type":"address","name":"_token","internalType":"address"},{"type":"uint256","name":"_tokenDecimals","internalType":"uint256"},{"type":"uint256","name":"_duration","internalType":"uint256"},{"type":"uint256","name":"_soft_cap","internalType":"uint256"},{"type":"address[]","name":"_tokens","internalType":"address[]"},{"type":"uint256[]","name":"_rates","internalType":"uint256[]"},{"type":"uint256[2]","name":"_limits","internalType":"uint256[2]"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"price","inputs":[{"type":"address","name":"","internalType":"address"},{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setPrice","inputs":[{"type":"address","name":"_token","internalType":"address"},{"type":"uint256[2]","name":"_price","internalType":"uint256[2]"}]}]
              

Contract Creation Code

0x60a060405234801561001057600080fd5b506040516158d03803806158d083398101604081905261002f91610045565b60016000556001600160a01b0316608052610075565b60006020828403121561005757600080fd5b81516001600160a01b038116811461006e57600080fd5b9392505050565b60805161582c6100a46000396000818160d20152818161023e0152818161069601526108cc015261582c6000f3fe608060405234801561001057600080fd5b50600436106100675760003560e01c806392024b021161005057806392024b0214610094578063ad9b8024146100a7578063ee0fc121146100cd57600080fd5b806315fa6b951461006c57806319cfe1e714610081575b600080fd5b61007f61007a366004611135565b610119565b005b61007f61008f3660046111f9565b610668565b61007f6100a2366004611135565b6107b2565b6100ba6100b536600461122f565b610c86565b6040519081526020015b60405180910390f35b6100f47f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100c4565b6002600054141561018b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b600260009081556001816101a260208e018e61128a565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002060010154905060008111610238576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f57726f6e67207061796d656e74206d6574686f640000000000000000000000006044820152606401610182565b610300337f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663b3f006746040518163ffffffff1660e01b8152600401602060405180830381865afa1580156102a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102cb91906112a7565b838e60006020020160208101906102e2919061128a565b73ffffffffffffffffffffffffffffffffffffffff16929190610cab565b848314610369576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f496e76616c696420706172616d657465727300000000000000000000000000006044820152606401610182565b60008a8a8a8a60405161037b9061103e565b73ffffffffffffffffffffffffffffffffffffffff9094168452602084019290925260408301526060820152608001604051809103906000f0801580156103c6573d6000803e3d6000fd5b506040517fc4590d3f000000000000000000000000000000000000000000000000000000008152843560048201526020850135602482015290915073ffffffffffffffffffffffffffffffffffffffff82169063c4590d3f90604401600060405180830381600087803b15801561043c57600080fd5b505af1158015610450573d6000803e3d6000fd5b5050505060005b86811015610553578173ffffffffffffffffffffffffffffffffffffffff1663539270bc89898481811061048d5761048d61125b565b90506020020160208101906104a2919061128a565b8888858181106104b4576104b461125b565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e087901b16815273ffffffffffffffffffffffffffffffffffffffff90941660048501526020029190910135602483015250604401600060405180830381600087803b15801561052857600080fd5b505af115801561053c573d6000803e3d6000fd5b50505050808061054b906112c4565b915050610457565b5073ffffffffffffffffffffffffffffffffffffffff811663f2fde38b8d6001602002016020810190610586919061128a565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815273ffffffffffffffffffffffffffffffffffffffff9091166004820152602401600060405180830381600087803b1580156105ec57600080fd5b505af1158015610600573d6000803e3d6000fd5b50506040805173ffffffffffffffffffffffffffffffffffffffff85168152600160208201527f6a52a393150c061e1a1d151cdb19dda10b47bde43e6dca17727226d75861a2db93500190505b60405180910390a15050600160005550505050505050505050565b6040517fa386c7360000000000000000000000000000000000000000000000000000000081523360048201527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff169063a386c73690602401602060405180830381865afa1580156106f2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107169190611324565b61077c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f43616e6e6f7420736574207072696365000000000000000000000000000000006044820152606401610182565b73ffffffffffffffffffffffffffffffffffffffff821660009081526001602052604090206107ad9082600261104c565b505050565b6002600054141561081f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610182565b6002600090815560018161083660208e018e61128a565b73ffffffffffffffffffffffffffffffffffffffff1681526020810191909152604001600020549050806108c6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f57726f6e67207061796d656e74206d6574686f640000000000000000000000006044820152606401610182565b610935337f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663b3f006746040518163ffffffff1660e01b8152600401602060405180830381865afa1580156102a7573d6000803e3d6000fd5b84831461099e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f496e76616c696420706172616d657465727300000000000000000000000000006044820152606401610182565b60008a8a8a8a6040516109b09061108a565b73ffffffffffffffffffffffffffffffffffffffff9094168452602084019290925260408301526060820152608001604051809103906000f0801580156109fb573d6000803e3d6000fd5b506040517fc4590d3f000000000000000000000000000000000000000000000000000000008152843560048201526020850135602482015290915073ffffffffffffffffffffffffffffffffffffffff82169063c4590d3f90604401600060405180830381600087803b158015610a7157600080fd5b505af1158015610a85573d6000803e3d6000fd5b5050505060005b86811015610b88578173ffffffffffffffffffffffffffffffffffffffff1663539270bc898984818110610ac257610ac261125b565b9050602002016020810190610ad7919061128a565b888885818110610ae957610ae961125b565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e087901b16815273ffffffffffffffffffffffffffffffffffffffff90941660048501526020029190910135602483015250604401600060405180830381600087803b158015610b5d57600080fd5b505af1158015610b71573d6000803e3d6000fd5b505050508080610b80906112c4565b915050610a8c565b5073ffffffffffffffffffffffffffffffffffffffff811663f2fde38b8d6001602002016020810190610bbb919061128a565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815273ffffffffffffffffffffffffffffffffffffffff9091166004820152602401600060405180830381600087803b158015610c2157600080fd5b505af1158015610c35573d6000803e3d6000fd5b50506040805173ffffffffffffffffffffffffffffffffffffffff85168152600060208201527f6a52a393150c061e1a1d151cdb19dda10b47bde43e6dca17727226d75861a2db935001905061064d565b60016020528160005260406000208160028110610ca257600080fd5b01549150829050565b6040805173ffffffffffffffffffffffffffffffffffffffff85811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052610d40908590610d46565b50505050565b6000610da8826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610e529092919063ffffffff16565b8051909150156107ad5780806020019051810190610dc69190611324565b6107ad576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610182565b6060610e618484600085610e6b565b90505b9392505050565b606082471015610efd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610182565b843b610f65576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610182565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051610f8e9190611372565b60006040518083038185875af1925050503d8060008114610fcb576040519150601f19603f3d011682016040523d82523d6000602084013e610fd0565b606091505b5091509150610fe0828286610feb565b979650505050505050565b60608315610ffa575081610e64565b82511561100a5782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610182919061138e565b61211580620013e083390190565b826002810192821561107a579160200282015b8281111561107a57823582559160200191906001019061105f565b50611086929150611098565b5090565b61230280620034f583390190565b5b808211156110865760008155600101611099565b80604081018310156110be57600080fd5b92915050565b73ffffffffffffffffffffffffffffffffffffffff811681146110e657600080fd5b50565b60008083601f8401126110fb57600080fd5b50813567ffffffffffffffff81111561111357600080fd5b6020830191508360208260051b850101111561112e57600080fd5b9250929050565b6000806000806000806000806000806101408b8d03121561115557600080fd5b61115f8c8c6110ad565b995060408b013561116f816110c4565b985060608b0135975060808b0135965060a08b0135955060c08b013567ffffffffffffffff808211156111a157600080fd5b6111ad8e838f016110e9565b909750955060e08d01359150808211156111c657600080fd5b506111d38d828e016110e9565b90945092506111e890508c6101008d016110ad565b90509295989b9194979a5092959850565b6000806060838503121561120c57600080fd5b8235611217816110c4565b915061122684602085016110ad565b90509250929050565b6000806040838503121561124257600080fd5b823561124d816110c4565b946020939093013593505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006020828403121561129c57600080fd5b8135610e64816110c4565b6000602082840312156112b957600080fd5b8151610e64816110c4565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561131d577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b5060010190565b60006020828403121561133657600080fd5b81518015158114610e6457600080fd5b60005b83811015611361578181015183820152602001611349565b83811115610d405750506000910152565b60008251611384818460208701611346565b9190910192915050565b60208152600082518060208401526113ad816040850160208701611346565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fe60806040523480156200001157600080fd5b5060405162002115380380620021158339810160408190526200003491620000ca565b83838362000042336200007a565b60018055600280546001600160a01b0319166001600160a01b039490941693909317909255600355600455600a555062000117915050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008060008060808587031215620000e157600080fd5b84516001600160a01b0381168114620000f957600080fd5b60208601516040870151606090970151919890975090945092505050565b611fee80620001276000396000f3fe608060405234801561001057600080fd5b506004361061018d5760003560e01c80638b90cdc9116100e3578063be040fb01161008c578063cce7ec1311610066578063cce7ec13146102f0578063dfbf8b1614610303578063f2fde38b1461031657600080fd5b8063be040fb0146102cd578063be9a6555146102d5578063c4590d3f146102dd57600080fd5b80639731d9f6116100bd5780639731d9f6146102a8578063a05d479d146102b1578063b652dc2f146102c457600080fd5b80638b90cdc91461026e5780638da5cb5b146102815780639106d7ba1461029f57600080fd5b8063539270bc11610145578063667022fd1161011f578063667022fd146102015780636cd0715414610221578063715018a61461026657600080fd5b8063539270bc146101d3578063590e1ae3146101e657806359770438146101ee57600080fd5b80633197cbb6116101765780633197cbb6146101b857806338392c40146101c15780633b97e856146101ca57600080fd5b80631be05289146101925780632095f2d4146101ae575b600080fd5b61019b60045481565b6040519081526020015b60405180910390f35b6101b6610329565b005b61019b60065481565b61019b60085481565b61019b60035481565b6101b66101e1366004611bfa565b6103ec565b6101b6610699565b6101b66101fc366004611c24565b6108e1565b61019b61020f366004611c24565b60096020526000908152604090205481565b6002546102419073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101a5565b6101b6610c27565b61024161027c366004611c3f565b610c9a565b60005473ffffffffffffffffffffffffffffffffffffffff16610241565b61019b60055481565b61019b60075481565b61019b6102bf366004611c3f565b610cd1565b61019b600a5481565b6101b6610cf2565b6101b6610e23565b6101b66102eb366004611c58565b610f1e565b6101b66102fe366004611bfa565b610f90565b61019b610311366004611bfa565b6114da565b6101b6610324366004611c24565b61150b565b60005473ffffffffffffffffffffffffffffffffffffffff1633146103955760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b42600654116103e65760405162461bcd60e51b815260206004820152601c60248201527f416c726561647920656e646564206f72206e6f74207374617274656400000000604482015260640161038c565b42600655565b60005473ffffffffffffffffffffffffffffffffffffffff1633146104535760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161038c565b60025473ffffffffffffffffffffffffffffffffffffffff838116911614156104e45760405162461bcd60e51b815260206004820152602b60248201527f43616e6e6f74206164642073656c6c61626c6520746f6b656e2061732070617960448201527f6d656e74206d6574686f64000000000000000000000000000000000000000000606482015260840161038c565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600f60205260409020548061066957600b546003116105875760405162461bcd60e51b815260206004820152602a60248201527f43616e6e6f7420616464206d6f7265207468616e207468726565207061796d6560448201527f6e74206d6574686f647300000000000000000000000000000000000000000000606482015260840161038c565b50600b8054600180820183557f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db990910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff959095169485179055600c80548083019091557fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c70192909255546000928352600f6020526040832055600e8054918201815582527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd0155565b81600c610677600184611ca9565b8154811061068757610687611cc0565b6000918252602090912001555b505050565b600260015414156106ec5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161038c565b600260015560065442116107425760405162461bcd60e51b815260206004820152600d60248201527f4e6f7420656e6465642079657400000000000000000000000000000000000000604482015260640161038c565b600a54600554106107955760405162461bcd60e51b815260206004820152601360248201527f536f667420636170206973207265616368656400000000000000000000000000604482015260640161038c565b60005b336000908152600d60205260409020548110156108c257336000908152600d602052604081208054839081106107d0576107d0611cc0565b9060005260206000200154905060008111156108af578115610840576000600b6107fb600185611ca9565b8154811061080b5761080b611cc0565b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905061083a813384611607565b5061087c565b80600560008282546108529190611ca9565b90915550503360009081526009602052604081208054839290610876908490611ca9565b90915550505b80600e838154811061089057610890611cc0565b9060005260206000200160008282546108a99190611ca9565b90915550505b50806108ba81611cef565b915050610798565b50336000908152600d602052604081206108db91611b9f565b60018055565b60005473ffffffffffffffffffffffffffffffffffffffff1633146109485760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161038c565b6002600154141561099b5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161038c565b600260018190555473ffffffffffffffffffffffffffffffffffffffff82811691161415610af9576006544211610a145760405162461bcd60e51b815260206004820152600d60248201527f4e6f7420656e6465642079657400000000000000000000000000000000000000604482015260640161038c565b610af433600e600081548110610a2c57610a2c611cc0565b6000918252602090912001546002546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff909116906370a0823190602401602060405180830381865afa158015610aa6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aca9190611d28565b610ad49190611ca9565b60025473ffffffffffffffffffffffffffffffffffffffff169190611607565b610c20565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8316906370a0823190602401602060405180830381865afa158015610b66573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b8a9190611d28565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600f60205260409020549091508015801590610bc55750600a54600554105b15610bf657600e8181548110610bdd57610bdd611cc0565b906000526020600020015482610bf39190611ca9565b91505b8115610c1d57610c1d73ffffffffffffffffffffffffffffffffffffffff84163384611607565b50505b5060018055565b60005473ffffffffffffffffffffffffffffffffffffffff163314610c8e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161038c565b610c9860006116db565b565b600b8181548110610caa57600080fd5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b600c8181548110610ce157600080fd5b600091825260209091200154905081565b60026001541415610d455760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161038c565b6002600155336000818152600d602052604081208054610d99939290610d6d57610d6d611cc0565b60009182526020909120015460025473ffffffffffffffffffffffffffffffffffffffff169190611607565b60005b336000908152600d60205260409020548110156108c257336000908152600d60205260409020805482908110610dd457610dd4611cc0565b9060005260206000200154600e8281548110610df257610df2611cc0565b906000526020600020016000828254610e0b9190611ca9565b90915550819050610e1b81611cef565b915050610d9c565b60005473ffffffffffffffffffffffffffffffffffffffff163314610e8a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161038c565b60065415610eda5760405162461bcd60e51b815260206004820152600f60248201527f416c726561647920737461727465640000000000000000000000000000000000604482015260640161038c565b600454610ee79042611d41565b600655600e805460018101825560009182527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd0155565b60005473ffffffffffffffffffffffffffffffffffffffff163314610f855760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161038c565b600791909155600855565b4260065411610fe15760405162461bcd60e51b815260206004820152601c60248201527f416c726561647920656e646564206f72206e6f74207374617274656400000000604482015260640161038c565b600260015414156110345760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161038c565b600260015573ffffffffffffffffffffffffffffffffffffffff82166000908152600f6020526040902054806110ac5760405162461bcd60e51b815260206004820152601660248201527f496e76616c6964207061796d656e74206d6574686f6400000000000000000000604482015260640161038c565b6000600c6110bb600184611ca9565b815481106110cb576110cb611cc0565b90600052602060002001549050600081116111285760405162461bcd60e51b815260206004820152601660248201527f496e76616c6964207061796d656e74206d6574686f6400000000000000000000604482015260640161038c565b61114a73ffffffffffffffffffffffffffffffffffffffff8516333086611750565b600061115684836117b4565b9050611161816117e3565b600e60008154811061117557611175611cc0565b6000918252602090912001546002546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff909116906370a0823190602401602060405180830381865afa1580156111ef573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112139190611d28565b61121d9190611ca9565b81111561126c5760405162461bcd60e51b815260206004820152601460248201527f43616e6e6f74206275792074686973206d756368000000000000000000000000604482015260640161038c565b806005600082825461127e9190611d41565b9091555050600a5460055410156113bb575b336000908152600d602052604090205483106112cc57336000908152600d60209081526040822080546001810182559083529082200155611290565b336000908152600d6020526040812080548392906112ec576112ec611cc0565b9060005260206000200160008282546113059190611d41565b9250508190555080600e60008154811061132157611321611cc0565b90600052602060002001600082825461133a9190611d41565b9091555050336000908152600d6020526040902080548591908590811061136357611363611cc0565b90600052602060002001600082825461137c9190611d41565b9250508190555083600e848154811061139757611397611cc0565b9060005260206000200160008282546113b09190611d41565b909155506114cf9050565b336000908152600d6020526040902054156114ab57336000908152600d6020526040812080549091906113f0576113f0611cc0565b9060005260206000200154816114069190611d41565b905060005b336000908152600d602052604090205481101561149257336000908152600d6020526040902080548290811061144357611443611cc0565b9060005260206000200154600e828154811061146157611461611cc0565b90600052602060002001600082825461147a9190611ca9565b9091555081905061148a81611cef565b91505061140b565b50336000908152600d602052604081206114ab91611b9f565b6114cf3360025473ffffffffffffffffffffffffffffffffffffffff169083611607565b505060018055505050565b600d60205281600052604060002081815481106114f657600080fd5b90600052602060002001600091509150505481565b60005473ffffffffffffffffffffffffffffffffffffffff1633146115725760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161038c565b73ffffffffffffffffffffffffffffffffffffffff81166115fb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161038c565b611604816116db565b50565b60405173ffffffffffffffffffffffffffffffffffffffff83166024820152604481018290526106949084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009093169290921790915261190f565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60405173ffffffffffffffffffffffffffffffffffffffff808516602483015283166044820152606481018290526117ae9085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401611659565b50505050565b600081600354600a6117c69190611e79565b6117d09085611e85565b6117da9190611ec2565b90505b92915050565b60075481101561185a5760405162461bcd60e51b8152602060048201526024808201527f43616e6e6f742072656365697665206c657373207468616e206c6f776572206c60448201527f696d697400000000000000000000000000000000000000000000000000000000606482015260840161038c565b3360009081526009602052604081208054839290611879908490611d41565b9091555050600854158061189e57506008543360009081526009602052604090205411155b6116045760405162461bcd60e51b8152602060048201526024808201527f43616e6e6f742072656365697665206d6f7265207468616e207570706572206c60448201527f696d697400000000000000000000000000000000000000000000000000000000606482015260840161038c565b6000611971826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611a019092919063ffffffff16565b805190915015610694578080602001905181019061198f9190611efd565b6106945760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161038c565b6060611a108484600085611a1a565b90505b9392505050565b606082471015611a925760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161038c565b843b611ae05760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161038c565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051611b099190611f4b565b60006040518083038185875af1925050503d8060008114611b46576040519150601f19603f3d011682016040523d82523d6000602084013e611b4b565b606091505b5091509150611b5b828286611b66565b979650505050505050565b60608315611b75575081611a13565b825115611b855782518084602001fd5b8160405162461bcd60e51b815260040161038c9190611f67565b508054600082559060005260206000209081019061160491905b80821115611bcd5760008155600101611bb9565b5090565b803573ffffffffffffffffffffffffffffffffffffffff81168114611bf557600080fd5b919050565b60008060408385031215611c0d57600080fd5b611c1683611bd1565b946020939093013593505050565b600060208284031215611c3657600080fd5b6117da82611bd1565b600060208284031215611c5157600080fd5b5035919050565b60008060408385031215611c6b57600080fd5b50508035926020909101359150565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082821015611cbb57611cbb611c7a565b500390565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415611d2157611d21611c7a565b5060010190565b600060208284031215611d3a57600080fd5b5051919050565b60008219821115611d5457611d54611c7a565b500190565b600181815b80851115611db257817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04821115611d9857611d98611c7a565b80851615611da557918102915b93841c9390800290611d5e565b509250929050565b600082611dc9575060016117dd565b81611dd6575060006117dd565b8160018114611dec5760028114611df657611e12565b60019150506117dd565b60ff841115611e0757611e07611c7a565b50506001821b6117dd565b5060208310610133831016604e8410600b8410161715611e35575081810a6117dd565b611e3f8383611d59565b807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04821115611e7157611e71611c7a565b029392505050565b60006117da8383611dba565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615611ebd57611ebd611c7a565b500290565b600082611ef8577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b600060208284031215611f0f57600080fd5b81518015158114611a1357600080fd5b60005b83811015611f3a578181015183820152602001611f22565b838111156117ae5750506000910152565b60008251611f5d818460208701611f1f565b9190910192915050565b6020815260008251806020840152611f86816040850160208701611f1f565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea264697066735822122083a2a992e3d70f01ac6f25305e6d3e81d67afc24b087f8802efcf172f7fd927064736f6c634300080a003360806040523480156200001157600080fd5b5060405162002302380380620023028339810160408190526200003491620000ca565b83838362000042336200007a565b60018055600280546001600160a01b0319166001600160a01b039490941693909317909255600355600455600a555062000117915050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008060008060808587031215620000e157600080fd5b84516001600160a01b0381168114620000f957600080fd5b60208601516040870151606090970151919890975090945092505050565b6121db80620001276000396000f3fe608060405234801561001057600080fd5b50600436106101825760003560e01c80638da5cb5b116100d8578063be040fb01161008c578063cce7ec1311610066578063cce7ec13146102dd578063dfbf8b16146102f0578063f2fde38b1461030357600080fd5b8063be040fb0146102ba578063be9a6555146102c2578063c4590d3f146102ca57600080fd5b80639731d9f6116100bd5780639731d9f614610295578063a05d479d1461029e578063b652dc2f146102b157600080fd5b80638da5cb5b1461026e5780639106d7ba1461028c57600080fd5b8063590e1ae31161013a5780636cd07154116101145780636cd071541461020e578063715018a6146102535780638b90cdc91461025b57600080fd5b8063590e1ae3146101d357806359770438146101db578063667022fd146101ee57600080fd5b806338392c401161016b57806338392c40146101ac5780633b97e856146101b5578063539270bc146101be57600080fd5b80631be05289146101875780633197cbb6146101a3575b600080fd5b61019060045481565b6040519081526020015b60405180910390f35b61019060065481565b61019060085481565b61019060035481565b6101d16101cc366004611de7565b610316565b005b6101d1610616565b6101d16101e9366004611e11565b6108ac565b6101906101fc366004611e11565b60096020526000908152604090205481565b60025461022e9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161019a565b6101d1610c40565b61022e610269366004611e2c565b610ccd565b60005473ffffffffffffffffffffffffffffffffffffffff1661022e565b61019060055481565b61019060075481565b6101906102ac366004611e2c565b610d04565b610190600a5481565b6101d1610d25565b6101d1610e70565b6101d16102d8366004611e45565b610f9f565b6101d16102eb366004611de7565b61102b565b6101906102fe366004611de7565b6115f7565b6101d1610311366004611e11565b611628565b60005473ffffffffffffffffffffffffffffffffffffffff16331461039c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b60025473ffffffffffffffffffffffffffffffffffffffff83811691161415610447576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f43616e6e6f74206164642073656c6c61626c6520746f6b656e2061732070617960448201527f6d656e74206d6574686f640000000000000000000000000000000000000000006064820152608401610393565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600f6020526040902054806105e657600b54600311610504576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f43616e6e6f7420616464206d6f7265207468616e207468726565207061796d6560448201527f6e74206d6574686f6473000000000000000000000000000000000000000000006064820152608401610393565b50600b8054600180820183557f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db990910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff959095169485179055600c80548083019091557fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c70192909255546000928352600f6020526040832055600e8054918201815582527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd0155565b81600c6105f4600184611e96565b8154811061060457610604611ead565b6000918252602090912001555b505050565b60026001541415610683576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610393565b600260015560065442116106f3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f4e6f7420656e64656420796574000000000000000000000000000000000000006044820152606401610393565b600a5460055410610760576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f536f6674206361702069732072656163686564000000000000000000000000006044820152606401610393565b60005b336000908152600d602052604090205481101561088d57336000908152600d6020526040812080548390811061079b5761079b611ead565b90600052602060002001549050600081111561087a57811561080b576000600b6107c6600185611e96565b815481106107d6576107d6611ead565b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff169050610805813384611758565b50610847565b806005600082825461081d9190611e96565b90915550503360009081526009602052604081208054839290610841908490611e96565b90915550505b80600e838154811061085b5761085b611ead565b9060005260206000200160008282546108749190611e96565b90915550505b508061088581611edc565b915050610763565b50336000908152600d602052604081206108a691611d8c565b60018055565b60005473ffffffffffffffffffffffffffffffffffffffff16331461092d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610393565b6002600154141561099a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610393565b600260018190555473ffffffffffffffffffffffffffffffffffffffff82811691161415610b12576006544211610a2d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f4e6f7420656e64656420796574000000000000000000000000000000000000006044820152606401610393565b610b0d33600e600081548110610a4557610a45611ead565b6000918252602090912001546002546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff909116906370a0823190602401602060405180830381865afa158015610abf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ae39190611f15565b610aed9190611e96565b60025473ffffffffffffffffffffffffffffffffffffffff169190611758565b610c39565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8316906370a0823190602401602060405180830381865afa158015610b7f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ba39190611f15565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600f60205260409020549091508015801590610bde5750600a54600554105b15610c0f57600e8181548110610bf657610bf6611ead565b906000526020600020015482610c0c9190611e96565b91505b8115610c3657610c3673ffffffffffffffffffffffffffffffffffffffff84163384611758565b50505b5060018055565b60005473ffffffffffffffffffffffffffffffffffffffff163314610cc1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610393565b610ccb600061182c565b565b600b8181548110610cdd57600080fd5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b600c8181548110610d1457600080fd5b600091825260209091200154905081565b60026001541415610d92576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610393565b6002600155336000818152600d602052604081208054610de6939290610dba57610dba611ead565b60009182526020909120015460025473ffffffffffffffffffffffffffffffffffffffff169190611758565b60005b336000908152600d602052604090205481101561088d57336000908152600d60205260409020805482908110610e2157610e21611ead565b9060005260206000200154600e8281548110610e3f57610e3f611ead565b906000526020600020016000828254610e589190611e96565b90915550819050610e6881611edc565b915050610de9565b60005473ffffffffffffffffffffffffffffffffffffffff163314610ef1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610393565b60065415610f5b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f416c7265616479207374617274656400000000000000000000000000000000006044820152606401610393565b600454610f689042611f2e565b600655600e805460018101825560009182527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd0155565b60005473ffffffffffffffffffffffffffffffffffffffff163314611020576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610393565b600791909155600855565b4260065411611096576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f416c726561647920656e646564206f72206e6f742073746172746564000000006044820152606401610393565b60026001541415611103576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610393565b600260015573ffffffffffffffffffffffffffffffffffffffff82166000908152600f602052604090205480611195576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f496e76616c6964207061796d656e74206d6574686f64000000000000000000006044820152606401610393565b6000600c6111a4600184611e96565b815481106111b4576111b4611ead565b906000526020600020015490506000811161122b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f496e76616c6964207061796d656e74206d6574686f64000000000000000000006044820152606401610393565b61124d73ffffffffffffffffffffffffffffffffffffffff85163330866118a1565b60006112598483611905565b905061126481611934565b600e60008154811061127857611278611ead565b6000918252602090912001546002546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff909116906370a0823190602401602060405180830381865afa1580156112f2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113169190611f15565b6113209190611e96565b811115611389576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f43616e6e6f74206275792074686973206d7563680000000000000000000000006044820152606401610393565b806005600082825461139b9190611f2e565b9091555050600a5460055410156114d8575b336000908152600d602052604090205483106113e957336000908152600d602090815260408220805460018101825590835290822001556113ad565b336000908152600d60205260408120805483929061140957611409611ead565b9060005260206000200160008282546114229190611f2e565b9250508190555080600e60008154811061143e5761143e611ead565b9060005260206000200160008282546114579190611f2e565b9091555050336000908152600d6020526040902080548591908590811061148057611480611ead565b9060005260206000200160008282546114999190611f2e565b9250508190555083600e84815481106114b4576114b4611ead565b9060005260206000200160008282546114cd9190611f2e565b909155506115ec9050565b336000908152600d6020526040902054156115c857336000908152600d60205260408120805490919061150d5761150d611ead565b9060005260206000200154816115239190611f2e565b905060005b336000908152600d60205260409020548110156115af57336000908152600d6020526040902080548290811061156057611560611ead565b9060005260206000200154600e828154811061157e5761157e611ead565b9060005260206000200160008282546115979190611e96565b909155508190506115a781611edc565b915050611528565b50336000908152600d602052604081206115c891611d8c565b6115ec3360025473ffffffffffffffffffffffffffffffffffffffff169083611758565b505060018055505050565b600d602052816000526040600020818154811061161357600080fd5b90600052602060002001600091509150505481565b60005473ffffffffffffffffffffffffffffffffffffffff1633146116a9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610393565b73ffffffffffffffffffffffffffffffffffffffff811661174c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610393565b6117558161182c565b50565b60405173ffffffffffffffffffffffffffffffffffffffff83166024820152604481018290526106119084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152611a94565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60405173ffffffffffffffffffffffffffffffffffffffff808516602483015283166044820152606481018290526118ff9085907f23b872dd00000000000000000000000000000000000000000000000000000000906084016117aa565b50505050565b600081600354600a6119179190612066565b6119219085612072565b61192b91906120af565b90505b92915050565b6007548110156119c5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f43616e6e6f742072656365697665206c657373207468616e206c6f776572206c60448201527f696d6974000000000000000000000000000000000000000000000000000000006064820152608401610393565b33600090815260096020526040812080548392906119e4908490611f2e565b90915550506008541580611a0957506008543360009081526009602052604090205411155b611755576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f43616e6e6f742072656365697665206d6f7265207468616e207570706572206c60448201527f696d6974000000000000000000000000000000000000000000000000000000006064820152608401610393565b6000611af6826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611ba09092919063ffffffff16565b8051909150156106115780806020019051810190611b1491906120ea565b610611576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610393565b6060611baf8484600085611bb9565b90505b9392505050565b606082471015611c4b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610393565b843b611cb3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610393565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051611cdc9190612138565b60006040518083038185875af1925050503d8060008114611d19576040519150601f19603f3d011682016040523d82523d6000602084013e611d1e565b606091505b5091509150611d2e828286611d39565b979650505050505050565b60608315611d48575081611bb2565b825115611d585782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103939190612154565b508054600082559060005260206000209081019061175591905b80821115611dba5760008155600101611da6565b5090565b803573ffffffffffffffffffffffffffffffffffffffff81168114611de257600080fd5b919050565b60008060408385031215611dfa57600080fd5b611e0383611dbe565b946020939093013593505050565b600060208284031215611e2357600080fd5b61192b82611dbe565b600060208284031215611e3e57600080fd5b5035919050565b60008060408385031215611e5857600080fd5b50508035926020909101359150565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082821015611ea857611ea8611e67565b500390565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415611f0e57611f0e611e67565b5060010190565b600060208284031215611f2757600080fd5b5051919050565b60008219821115611f4157611f41611e67565b500190565b600181815b80851115611f9f57817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04821115611f8557611f85611e67565b80851615611f9257918102915b93841c9390800290611f4b565b509250929050565b600082611fb65750600161192e565b81611fc35750600061192e565b8160018114611fd95760028114611fe357611fff565b600191505061192e565b60ff841115611ff457611ff4611e67565b50506001821b61192e565b5060208310610133831016604e8410600b8410161715612022575081810a61192e565b61202c8383611f46565b807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0482111561205e5761205e611e67565b029392505050565b600061192b8383611fa7565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156120aa576120aa611e67565b500290565b6000826120e5577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000602082840312156120fc57600080fd5b81518015158114611bb257600080fd5b60005b8381101561212757818101518382015260200161210f565b838111156118ff5750506000910152565b6000825161214a81846020870161210c565b9190910192915050565b602081526000825180602084015261217381604085016020870161210c565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea2646970667358221220e4e815fd6fd3f034e2c0af333a995dc325467c27e5928e499efc4e800017525864736f6c634300080a0033a26469706673582212201fcc877529745e4f138614824c4a672475edf0e8c4a48471ab851477b13ecc3064736f6c634300080a0033000000000000000000000000d584e695d6bc250084d1fc472792a2e0e1303d4c

Deployed ByteCode

0x608060405234801561001057600080fd5b50600436106100675760003560e01c806392024b021161005057806392024b0214610094578063ad9b8024146100a7578063ee0fc121146100cd57600080fd5b806315fa6b951461006c57806319cfe1e714610081575b600080fd5b61007f61007a366004611135565b610119565b005b61007f61008f3660046111f9565b610668565b61007f6100a2366004611135565b6107b2565b6100ba6100b536600461122f565b610c86565b6040519081526020015b60405180910390f35b6100f47f000000000000000000000000d584e695d6bc250084d1fc472792a2e0e1303d4c81565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100c4565b6002600054141561018b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b600260009081556001816101a260208e018e61128a565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002060010154905060008111610238576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f57726f6e67207061796d656e74206d6574686f640000000000000000000000006044820152606401610182565b610300337f000000000000000000000000d584e695d6bc250084d1fc472792a2e0e1303d4c73ffffffffffffffffffffffffffffffffffffffff1663b3f006746040518163ffffffff1660e01b8152600401602060405180830381865afa1580156102a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102cb91906112a7565b838e60006020020160208101906102e2919061128a565b73ffffffffffffffffffffffffffffffffffffffff16929190610cab565b848314610369576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f496e76616c696420706172616d657465727300000000000000000000000000006044820152606401610182565b60008a8a8a8a60405161037b9061103e565b73ffffffffffffffffffffffffffffffffffffffff9094168452602084019290925260408301526060820152608001604051809103906000f0801580156103c6573d6000803e3d6000fd5b506040517fc4590d3f000000000000000000000000000000000000000000000000000000008152843560048201526020850135602482015290915073ffffffffffffffffffffffffffffffffffffffff82169063c4590d3f90604401600060405180830381600087803b15801561043c57600080fd5b505af1158015610450573d6000803e3d6000fd5b5050505060005b86811015610553578173ffffffffffffffffffffffffffffffffffffffff1663539270bc89898481811061048d5761048d61125b565b90506020020160208101906104a2919061128a565b8888858181106104b4576104b461125b565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e087901b16815273ffffffffffffffffffffffffffffffffffffffff90941660048501526020029190910135602483015250604401600060405180830381600087803b15801561052857600080fd5b505af115801561053c573d6000803e3d6000fd5b50505050808061054b906112c4565b915050610457565b5073ffffffffffffffffffffffffffffffffffffffff811663f2fde38b8d6001602002016020810190610586919061128a565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815273ffffffffffffffffffffffffffffffffffffffff9091166004820152602401600060405180830381600087803b1580156105ec57600080fd5b505af1158015610600573d6000803e3d6000fd5b50506040805173ffffffffffffffffffffffffffffffffffffffff85168152600160208201527f6a52a393150c061e1a1d151cdb19dda10b47bde43e6dca17727226d75861a2db93500190505b60405180910390a15050600160005550505050505050505050565b6040517fa386c7360000000000000000000000000000000000000000000000000000000081523360048201527f000000000000000000000000d584e695d6bc250084d1fc472792a2e0e1303d4c73ffffffffffffffffffffffffffffffffffffffff169063a386c73690602401602060405180830381865afa1580156106f2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107169190611324565b61077c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f43616e6e6f7420736574207072696365000000000000000000000000000000006044820152606401610182565b73ffffffffffffffffffffffffffffffffffffffff821660009081526001602052604090206107ad9082600261104c565b505050565b6002600054141561081f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610182565b6002600090815560018161083660208e018e61128a565b73ffffffffffffffffffffffffffffffffffffffff1681526020810191909152604001600020549050806108c6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f57726f6e67207061796d656e74206d6574686f640000000000000000000000006044820152606401610182565b610935337f000000000000000000000000d584e695d6bc250084d1fc472792a2e0e1303d4c73ffffffffffffffffffffffffffffffffffffffff1663b3f006746040518163ffffffff1660e01b8152600401602060405180830381865afa1580156102a7573d6000803e3d6000fd5b84831461099e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f496e76616c696420706172616d657465727300000000000000000000000000006044820152606401610182565b60008a8a8a8a6040516109b09061108a565b73ffffffffffffffffffffffffffffffffffffffff9094168452602084019290925260408301526060820152608001604051809103906000f0801580156109fb573d6000803e3d6000fd5b506040517fc4590d3f000000000000000000000000000000000000000000000000000000008152843560048201526020850135602482015290915073ffffffffffffffffffffffffffffffffffffffff82169063c4590d3f90604401600060405180830381600087803b158015610a7157600080fd5b505af1158015610a85573d6000803e3d6000fd5b5050505060005b86811015610b88578173ffffffffffffffffffffffffffffffffffffffff1663539270bc898984818110610ac257610ac261125b565b9050602002016020810190610ad7919061128a565b888885818110610ae957610ae961125b565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e087901b16815273ffffffffffffffffffffffffffffffffffffffff90941660048501526020029190910135602483015250604401600060405180830381600087803b158015610b5d57600080fd5b505af1158015610b71573d6000803e3d6000fd5b505050508080610b80906112c4565b915050610a8c565b5073ffffffffffffffffffffffffffffffffffffffff811663f2fde38b8d6001602002016020810190610bbb919061128a565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815273ffffffffffffffffffffffffffffffffffffffff9091166004820152602401600060405180830381600087803b158015610c2157600080fd5b505af1158015610c35573d6000803e3d6000fd5b50506040805173ffffffffffffffffffffffffffffffffffffffff85168152600060208201527f6a52a393150c061e1a1d151cdb19dda10b47bde43e6dca17727226d75861a2db935001905061064d565b60016020528160005260406000208160028110610ca257600080fd5b01549150829050565b6040805173ffffffffffffffffffffffffffffffffffffffff85811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052610d40908590610d46565b50505050565b6000610da8826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610e529092919063ffffffff16565b8051909150156107ad5780806020019051810190610dc69190611324565b6107ad576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610182565b6060610e618484600085610e6b565b90505b9392505050565b606082471015610efd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610182565b843b610f65576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610182565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051610f8e9190611372565b60006040518083038185875af1925050503d8060008114610fcb576040519150601f19603f3d011682016040523d82523d6000602084013e610fd0565b606091505b5091509150610fe0828286610feb565b979650505050505050565b60608315610ffa575081610e64565b82511561100a5782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610182919061138e565b61211580620013e083390190565b826002810192821561107a579160200282015b8281111561107a57823582559160200191906001019061105f565b50611086929150611098565b5090565b61230280620034f583390190565b5b808211156110865760008155600101611099565b80604081018310156110be57600080fd5b92915050565b73ffffffffffffffffffffffffffffffffffffffff811681146110e657600080fd5b50565b60008083601f8401126110fb57600080fd5b50813567ffffffffffffffff81111561111357600080fd5b6020830191508360208260051b850101111561112e57600080fd5b9250929050565b6000806000806000806000806000806101408b8d03121561115557600080fd5b61115f8c8c6110ad565b995060408b013561116f816110c4565b985060608b0135975060808b0135965060a08b0135955060c08b013567ffffffffffffffff808211156111a157600080fd5b6111ad8e838f016110e9565b909750955060e08d01359150808211156111c657600080fd5b506111d38d828e016110e9565b90945092506111e890508c6101008d016110ad565b90509295989b9194979a5092959850565b6000806060838503121561120c57600080fd5b8235611217816110c4565b915061122684602085016110ad565b90509250929050565b6000806040838503121561124257600080fd5b823561124d816110c4565b946020939093013593505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006020828403121561129c57600080fd5b8135610e64816110c4565b6000602082840312156112b957600080fd5b8151610e64816110c4565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561131d577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b5060010190565b60006020828403121561133657600080fd5b81518015158114610e6457600080fd5b60005b83811015611361578181015183820152602001611349565b83811115610d405750506000910152565b60008251611384818460208701611346565b9190910192915050565b60208152600082518060208401526113ad816040850160208701611346565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fe60806040523480156200001157600080fd5b5060405162002115380380620021158339810160408190526200003491620000ca565b83838362000042336200007a565b60018055600280546001600160a01b0319166001600160a01b039490941693909317909255600355600455600a555062000117915050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008060008060808587031215620000e157600080fd5b84516001600160a01b0381168114620000f957600080fd5b60208601516040870151606090970151919890975090945092505050565b611fee80620001276000396000f3fe608060405234801561001057600080fd5b506004361061018d5760003560e01c80638b90cdc9116100e3578063be040fb01161008c578063cce7ec1311610066578063cce7ec13146102f0578063dfbf8b1614610303578063f2fde38b1461031657600080fd5b8063be040fb0146102cd578063be9a6555146102d5578063c4590d3f146102dd57600080fd5b80639731d9f6116100bd5780639731d9f6146102a8578063a05d479d146102b1578063b652dc2f146102c457600080fd5b80638b90cdc91461026e5780638da5cb5b146102815780639106d7ba1461029f57600080fd5b8063539270bc11610145578063667022fd1161011f578063667022fd146102015780636cd0715414610221578063715018a61461026657600080fd5b8063539270bc146101d3578063590e1ae3146101e657806359770438146101ee57600080fd5b80633197cbb6116101765780633197cbb6146101b857806338392c40146101c15780633b97e856146101ca57600080fd5b80631be05289146101925780632095f2d4146101ae575b600080fd5b61019b60045481565b6040519081526020015b60405180910390f35b6101b6610329565b005b61019b60065481565b61019b60085481565b61019b60035481565b6101b66101e1366004611bfa565b6103ec565b6101b6610699565b6101b66101fc366004611c24565b6108e1565b61019b61020f366004611c24565b60096020526000908152604090205481565b6002546102419073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101a5565b6101b6610c27565b61024161027c366004611c3f565b610c9a565b60005473ffffffffffffffffffffffffffffffffffffffff16610241565b61019b60055481565b61019b60075481565b61019b6102bf366004611c3f565b610cd1565b61019b600a5481565b6101b6610cf2565b6101b6610e23565b6101b66102eb366004611c58565b610f1e565b6101b66102fe366004611bfa565b610f90565b61019b610311366004611bfa565b6114da565b6101b6610324366004611c24565b61150b565b60005473ffffffffffffffffffffffffffffffffffffffff1633146103955760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b42600654116103e65760405162461bcd60e51b815260206004820152601c60248201527f416c726561647920656e646564206f72206e6f74207374617274656400000000604482015260640161038c565b42600655565b60005473ffffffffffffffffffffffffffffffffffffffff1633146104535760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161038c565b60025473ffffffffffffffffffffffffffffffffffffffff838116911614156104e45760405162461bcd60e51b815260206004820152602b60248201527f43616e6e6f74206164642073656c6c61626c6520746f6b656e2061732070617960448201527f6d656e74206d6574686f64000000000000000000000000000000000000000000606482015260840161038c565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600f60205260409020548061066957600b546003116105875760405162461bcd60e51b815260206004820152602a60248201527f43616e6e6f7420616464206d6f7265207468616e207468726565207061796d6560448201527f6e74206d6574686f647300000000000000000000000000000000000000000000606482015260840161038c565b50600b8054600180820183557f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db990910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff959095169485179055600c80548083019091557fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c70192909255546000928352600f6020526040832055600e8054918201815582527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd0155565b81600c610677600184611ca9565b8154811061068757610687611cc0565b6000918252602090912001555b505050565b600260015414156106ec5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161038c565b600260015560065442116107425760405162461bcd60e51b815260206004820152600d60248201527f4e6f7420656e6465642079657400000000000000000000000000000000000000604482015260640161038c565b600a54600554106107955760405162461bcd60e51b815260206004820152601360248201527f536f667420636170206973207265616368656400000000000000000000000000604482015260640161038c565b60005b336000908152600d60205260409020548110156108c257336000908152600d602052604081208054839081106107d0576107d0611cc0565b9060005260206000200154905060008111156108af578115610840576000600b6107fb600185611ca9565b8154811061080b5761080b611cc0565b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905061083a813384611607565b5061087c565b80600560008282546108529190611ca9565b90915550503360009081526009602052604081208054839290610876908490611ca9565b90915550505b80600e838154811061089057610890611cc0565b9060005260206000200160008282546108a99190611ca9565b90915550505b50806108ba81611cef565b915050610798565b50336000908152600d602052604081206108db91611b9f565b60018055565b60005473ffffffffffffffffffffffffffffffffffffffff1633146109485760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161038c565b6002600154141561099b5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161038c565b600260018190555473ffffffffffffffffffffffffffffffffffffffff82811691161415610af9576006544211610a145760405162461bcd60e51b815260206004820152600d60248201527f4e6f7420656e6465642079657400000000000000000000000000000000000000604482015260640161038c565b610af433600e600081548110610a2c57610a2c611cc0565b6000918252602090912001546002546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff909116906370a0823190602401602060405180830381865afa158015610aa6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aca9190611d28565b610ad49190611ca9565b60025473ffffffffffffffffffffffffffffffffffffffff169190611607565b610c20565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8316906370a0823190602401602060405180830381865afa158015610b66573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b8a9190611d28565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600f60205260409020549091508015801590610bc55750600a54600554105b15610bf657600e8181548110610bdd57610bdd611cc0565b906000526020600020015482610bf39190611ca9565b91505b8115610c1d57610c1d73ffffffffffffffffffffffffffffffffffffffff84163384611607565b50505b5060018055565b60005473ffffffffffffffffffffffffffffffffffffffff163314610c8e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161038c565b610c9860006116db565b565b600b8181548110610caa57600080fd5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b600c8181548110610ce157600080fd5b600091825260209091200154905081565b60026001541415610d455760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161038c565b6002600155336000818152600d602052604081208054610d99939290610d6d57610d6d611cc0565b60009182526020909120015460025473ffffffffffffffffffffffffffffffffffffffff169190611607565b60005b336000908152600d60205260409020548110156108c257336000908152600d60205260409020805482908110610dd457610dd4611cc0565b9060005260206000200154600e8281548110610df257610df2611cc0565b906000526020600020016000828254610e0b9190611ca9565b90915550819050610e1b81611cef565b915050610d9c565b60005473ffffffffffffffffffffffffffffffffffffffff163314610e8a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161038c565b60065415610eda5760405162461bcd60e51b815260206004820152600f60248201527f416c726561647920737461727465640000000000000000000000000000000000604482015260640161038c565b600454610ee79042611d41565b600655600e805460018101825560009182527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd0155565b60005473ffffffffffffffffffffffffffffffffffffffff163314610f855760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161038c565b600791909155600855565b4260065411610fe15760405162461bcd60e51b815260206004820152601c60248201527f416c726561647920656e646564206f72206e6f74207374617274656400000000604482015260640161038c565b600260015414156110345760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161038c565b600260015573ffffffffffffffffffffffffffffffffffffffff82166000908152600f6020526040902054806110ac5760405162461bcd60e51b815260206004820152601660248201527f496e76616c6964207061796d656e74206d6574686f6400000000000000000000604482015260640161038c565b6000600c6110bb600184611ca9565b815481106110cb576110cb611cc0565b90600052602060002001549050600081116111285760405162461bcd60e51b815260206004820152601660248201527f496e76616c6964207061796d656e74206d6574686f6400000000000000000000604482015260640161038c565b61114a73ffffffffffffffffffffffffffffffffffffffff8516333086611750565b600061115684836117b4565b9050611161816117e3565b600e60008154811061117557611175611cc0565b6000918252602090912001546002546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff909116906370a0823190602401602060405180830381865afa1580156111ef573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112139190611d28565b61121d9190611ca9565b81111561126c5760405162461bcd60e51b815260206004820152601460248201527f43616e6e6f74206275792074686973206d756368000000000000000000000000604482015260640161038c565b806005600082825461127e9190611d41565b9091555050600a5460055410156113bb575b336000908152600d602052604090205483106112cc57336000908152600d60209081526040822080546001810182559083529082200155611290565b336000908152600d6020526040812080548392906112ec576112ec611cc0565b9060005260206000200160008282546113059190611d41565b9250508190555080600e60008154811061132157611321611cc0565b90600052602060002001600082825461133a9190611d41565b9091555050336000908152600d6020526040902080548591908590811061136357611363611cc0565b90600052602060002001600082825461137c9190611d41565b9250508190555083600e848154811061139757611397611cc0565b9060005260206000200160008282546113b09190611d41565b909155506114cf9050565b336000908152600d6020526040902054156114ab57336000908152600d6020526040812080549091906113f0576113f0611cc0565b9060005260206000200154816114069190611d41565b905060005b336000908152600d602052604090205481101561149257336000908152600d6020526040902080548290811061144357611443611cc0565b9060005260206000200154600e828154811061146157611461611cc0565b90600052602060002001600082825461147a9190611ca9565b9091555081905061148a81611cef565b91505061140b565b50336000908152600d602052604081206114ab91611b9f565b6114cf3360025473ffffffffffffffffffffffffffffffffffffffff169083611607565b505060018055505050565b600d60205281600052604060002081815481106114f657600080fd5b90600052602060002001600091509150505481565b60005473ffffffffffffffffffffffffffffffffffffffff1633146115725760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161038c565b73ffffffffffffffffffffffffffffffffffffffff81166115fb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161038c565b611604816116db565b50565b60405173ffffffffffffffffffffffffffffffffffffffff83166024820152604481018290526106949084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009093169290921790915261190f565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60405173ffffffffffffffffffffffffffffffffffffffff808516602483015283166044820152606481018290526117ae9085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401611659565b50505050565b600081600354600a6117c69190611e79565b6117d09085611e85565b6117da9190611ec2565b90505b92915050565b60075481101561185a5760405162461bcd60e51b8152602060048201526024808201527f43616e6e6f742072656365697665206c657373207468616e206c6f776572206c60448201527f696d697400000000000000000000000000000000000000000000000000000000606482015260840161038c565b3360009081526009602052604081208054839290611879908490611d41565b9091555050600854158061189e57506008543360009081526009602052604090205411155b6116045760405162461bcd60e51b8152602060048201526024808201527f43616e6e6f742072656365697665206d6f7265207468616e207570706572206c60448201527f696d697400000000000000000000000000000000000000000000000000000000606482015260840161038c565b6000611971826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611a019092919063ffffffff16565b805190915015610694578080602001905181019061198f9190611efd565b6106945760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161038c565b6060611a108484600085611a1a565b90505b9392505050565b606082471015611a925760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161038c565b843b611ae05760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161038c565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051611b099190611f4b565b60006040518083038185875af1925050503d8060008114611b46576040519150601f19603f3d011682016040523d82523d6000602084013e611b4b565b606091505b5091509150611b5b828286611b66565b979650505050505050565b60608315611b75575081611a13565b825115611b855782518084602001fd5b8160405162461bcd60e51b815260040161038c9190611f67565b508054600082559060005260206000209081019061160491905b80821115611bcd5760008155600101611bb9565b5090565b803573ffffffffffffffffffffffffffffffffffffffff81168114611bf557600080fd5b919050565b60008060408385031215611c0d57600080fd5b611c1683611bd1565b946020939093013593505050565b600060208284031215611c3657600080fd5b6117da82611bd1565b600060208284031215611c5157600080fd5b5035919050565b60008060408385031215611c6b57600080fd5b50508035926020909101359150565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082821015611cbb57611cbb611c7a565b500390565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415611d2157611d21611c7a565b5060010190565b600060208284031215611d3a57600080fd5b5051919050565b60008219821115611d5457611d54611c7a565b500190565b600181815b80851115611db257817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04821115611d9857611d98611c7a565b80851615611da557918102915b93841c9390800290611d5e565b509250929050565b600082611dc9575060016117dd565b81611dd6575060006117dd565b8160018114611dec5760028114611df657611e12565b60019150506117dd565b60ff841115611e0757611e07611c7a565b50506001821b6117dd565b5060208310610133831016604e8410600b8410161715611e35575081810a6117dd565b611e3f8383611d59565b807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04821115611e7157611e71611c7a565b029392505050565b60006117da8383611dba565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615611ebd57611ebd611c7a565b500290565b600082611ef8577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b600060208284031215611f0f57600080fd5b81518015158114611a1357600080fd5b60005b83811015611f3a578181015183820152602001611f22565b838111156117ae5750506000910152565b60008251611f5d818460208701611f1f565b9190910192915050565b6020815260008251806020840152611f86816040850160208701611f1f565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea264697066735822122083a2a992e3d70f01ac6f25305e6d3e81d67afc24b087f8802efcf172f7fd927064736f6c634300080a003360806040523480156200001157600080fd5b5060405162002302380380620023028339810160408190526200003491620000ca565b83838362000042336200007a565b60018055600280546001600160a01b0319166001600160a01b039490941693909317909255600355600455600a555062000117915050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008060008060808587031215620000e157600080fd5b84516001600160a01b0381168114620000f957600080fd5b60208601516040870151606090970151919890975090945092505050565b6121db80620001276000396000f3fe608060405234801561001057600080fd5b50600436106101825760003560e01c80638da5cb5b116100d8578063be040fb01161008c578063cce7ec1311610066578063cce7ec13146102dd578063dfbf8b16146102f0578063f2fde38b1461030357600080fd5b8063be040fb0146102ba578063be9a6555146102c2578063c4590d3f146102ca57600080fd5b80639731d9f6116100bd5780639731d9f614610295578063a05d479d1461029e578063b652dc2f146102b157600080fd5b80638da5cb5b1461026e5780639106d7ba1461028c57600080fd5b8063590e1ae31161013a5780636cd07154116101145780636cd071541461020e578063715018a6146102535780638b90cdc91461025b57600080fd5b8063590e1ae3146101d357806359770438146101db578063667022fd146101ee57600080fd5b806338392c401161016b57806338392c40146101ac5780633b97e856146101b5578063539270bc146101be57600080fd5b80631be05289146101875780633197cbb6146101a3575b600080fd5b61019060045481565b6040519081526020015b60405180910390f35b61019060065481565b61019060085481565b61019060035481565b6101d16101cc366004611de7565b610316565b005b6101d1610616565b6101d16101e9366004611e11565b6108ac565b6101906101fc366004611e11565b60096020526000908152604090205481565b60025461022e9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161019a565b6101d1610c40565b61022e610269366004611e2c565b610ccd565b60005473ffffffffffffffffffffffffffffffffffffffff1661022e565b61019060055481565b61019060075481565b6101906102ac366004611e2c565b610d04565b610190600a5481565b6101d1610d25565b6101d1610e70565b6101d16102d8366004611e45565b610f9f565b6101d16102eb366004611de7565b61102b565b6101906102fe366004611de7565b6115f7565b6101d1610311366004611e11565b611628565b60005473ffffffffffffffffffffffffffffffffffffffff16331461039c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b60025473ffffffffffffffffffffffffffffffffffffffff83811691161415610447576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f43616e6e6f74206164642073656c6c61626c6520746f6b656e2061732070617960448201527f6d656e74206d6574686f640000000000000000000000000000000000000000006064820152608401610393565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600f6020526040902054806105e657600b54600311610504576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f43616e6e6f7420616464206d6f7265207468616e207468726565207061796d6560448201527f6e74206d6574686f6473000000000000000000000000000000000000000000006064820152608401610393565b50600b8054600180820183557f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db990910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff959095169485179055600c80548083019091557fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c70192909255546000928352600f6020526040832055600e8054918201815582527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd0155565b81600c6105f4600184611e96565b8154811061060457610604611ead565b6000918252602090912001555b505050565b60026001541415610683576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610393565b600260015560065442116106f3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f4e6f7420656e64656420796574000000000000000000000000000000000000006044820152606401610393565b600a5460055410610760576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f536f6674206361702069732072656163686564000000000000000000000000006044820152606401610393565b60005b336000908152600d602052604090205481101561088d57336000908152600d6020526040812080548390811061079b5761079b611ead565b90600052602060002001549050600081111561087a57811561080b576000600b6107c6600185611e96565b815481106107d6576107d6611ead565b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff169050610805813384611758565b50610847565b806005600082825461081d9190611e96565b90915550503360009081526009602052604081208054839290610841908490611e96565b90915550505b80600e838154811061085b5761085b611ead565b9060005260206000200160008282546108749190611e96565b90915550505b508061088581611edc565b915050610763565b50336000908152600d602052604081206108a691611d8c565b60018055565b60005473ffffffffffffffffffffffffffffffffffffffff16331461092d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610393565b6002600154141561099a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610393565b600260018190555473ffffffffffffffffffffffffffffffffffffffff82811691161415610b12576006544211610a2d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f4e6f7420656e64656420796574000000000000000000000000000000000000006044820152606401610393565b610b0d33600e600081548110610a4557610a45611ead565b6000918252602090912001546002546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff909116906370a0823190602401602060405180830381865afa158015610abf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ae39190611f15565b610aed9190611e96565b60025473ffffffffffffffffffffffffffffffffffffffff169190611758565b610c39565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8316906370a0823190602401602060405180830381865afa158015610b7f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ba39190611f15565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600f60205260409020549091508015801590610bde5750600a54600554105b15610c0f57600e8181548110610bf657610bf6611ead565b906000526020600020015482610c0c9190611e96565b91505b8115610c3657610c3673ffffffffffffffffffffffffffffffffffffffff84163384611758565b50505b5060018055565b60005473ffffffffffffffffffffffffffffffffffffffff163314610cc1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610393565b610ccb600061182c565b565b600b8181548110610cdd57600080fd5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b600c8181548110610d1457600080fd5b600091825260209091200154905081565b60026001541415610d92576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610393565b6002600155336000818152600d602052604081208054610de6939290610dba57610dba611ead565b60009182526020909120015460025473ffffffffffffffffffffffffffffffffffffffff169190611758565b60005b336000908152600d602052604090205481101561088d57336000908152600d60205260409020805482908110610e2157610e21611ead565b9060005260206000200154600e8281548110610e3f57610e3f611ead565b906000526020600020016000828254610e589190611e96565b90915550819050610e6881611edc565b915050610de9565b60005473ffffffffffffffffffffffffffffffffffffffff163314610ef1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610393565b60065415610f5b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f416c7265616479207374617274656400000000000000000000000000000000006044820152606401610393565b600454610f689042611f2e565b600655600e805460018101825560009182527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd0155565b60005473ffffffffffffffffffffffffffffffffffffffff163314611020576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610393565b600791909155600855565b4260065411611096576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f416c726561647920656e646564206f72206e6f742073746172746564000000006044820152606401610393565b60026001541415611103576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610393565b600260015573ffffffffffffffffffffffffffffffffffffffff82166000908152600f602052604090205480611195576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f496e76616c6964207061796d656e74206d6574686f64000000000000000000006044820152606401610393565b6000600c6111a4600184611e96565b815481106111b4576111b4611ead565b906000526020600020015490506000811161122b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f496e76616c6964207061796d656e74206d6574686f64000000000000000000006044820152606401610393565b61124d73ffffffffffffffffffffffffffffffffffffffff85163330866118a1565b60006112598483611905565b905061126481611934565b600e60008154811061127857611278611ead565b6000918252602090912001546002546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff909116906370a0823190602401602060405180830381865afa1580156112f2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113169190611f15565b6113209190611e96565b811115611389576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f43616e6e6f74206275792074686973206d7563680000000000000000000000006044820152606401610393565b806005600082825461139b9190611f2e565b9091555050600a5460055410156114d8575b336000908152600d602052604090205483106113e957336000908152600d602090815260408220805460018101825590835290822001556113ad565b336000908152600d60205260408120805483929061140957611409611ead565b9060005260206000200160008282546114229190611f2e565b9250508190555080600e60008154811061143e5761143e611ead565b9060005260206000200160008282546114579190611f2e565b9091555050336000908152600d6020526040902080548591908590811061148057611480611ead565b9060005260206000200160008282546114999190611f2e565b9250508190555083600e84815481106114b4576114b4611ead565b9060005260206000200160008282546114cd9190611f2e565b909155506115ec9050565b336000908152600d6020526040902054156115c857336000908152600d60205260408120805490919061150d5761150d611ead565b9060005260206000200154816115239190611f2e565b905060005b336000908152600d60205260409020548110156115af57336000908152600d6020526040902080548290811061156057611560611ead565b9060005260206000200154600e828154811061157e5761157e611ead565b9060005260206000200160008282546115979190611e96565b909155508190506115a781611edc565b915050611528565b50336000908152600d602052604081206115c891611d8c565b6115ec3360025473ffffffffffffffffffffffffffffffffffffffff169083611758565b505060018055505050565b600d602052816000526040600020818154811061161357600080fd5b90600052602060002001600091509150505481565b60005473ffffffffffffffffffffffffffffffffffffffff1633146116a9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610393565b73ffffffffffffffffffffffffffffffffffffffff811661174c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610393565b6117558161182c565b50565b60405173ffffffffffffffffffffffffffffffffffffffff83166024820152604481018290526106119084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152611a94565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60405173ffffffffffffffffffffffffffffffffffffffff808516602483015283166044820152606481018290526118ff9085907f23b872dd00000000000000000000000000000000000000000000000000000000906084016117aa565b50505050565b600081600354600a6119179190612066565b6119219085612072565b61192b91906120af565b90505b92915050565b6007548110156119c5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f43616e6e6f742072656365697665206c657373207468616e206c6f776572206c60448201527f696d6974000000000000000000000000000000000000000000000000000000006064820152608401610393565b33600090815260096020526040812080548392906119e4908490611f2e565b90915550506008541580611a0957506008543360009081526009602052604090205411155b611755576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f43616e6e6f742072656365697665206d6f7265207468616e207570706572206c60448201527f696d6974000000000000000000000000000000000000000000000000000000006064820152608401610393565b6000611af6826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611ba09092919063ffffffff16565b8051909150156106115780806020019051810190611b1491906120ea565b610611576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610393565b6060611baf8484600085611bb9565b90505b9392505050565b606082471015611c4b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610393565b843b611cb3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610393565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051611cdc9190612138565b60006040518083038185875af1925050503d8060008114611d19576040519150601f19603f3d011682016040523d82523d6000602084013e611d1e565b606091505b5091509150611d2e828286611d39565b979650505050505050565b60608315611d48575081611bb2565b825115611d585782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103939190612154565b508054600082559060005260206000209081019061175591905b80821115611dba5760008155600101611da6565b5090565b803573ffffffffffffffffffffffffffffffffffffffff81168114611de257600080fd5b919050565b60008060408385031215611dfa57600080fd5b611e0383611dbe565b946020939093013593505050565b600060208284031215611e2357600080fd5b61192b82611dbe565b600060208284031215611e3e57600080fd5b5035919050565b60008060408385031215611e5857600080fd5b50508035926020909101359150565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082821015611ea857611ea8611e67565b500390565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415611f0e57611f0e611e67565b5060010190565b600060208284031215611f2757600080fd5b5051919050565b60008219821115611f4157611f41611e67565b500190565b600181815b80851115611f9f57817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04821115611f8557611f85611e67565b80851615611f9257918102915b93841c9390800290611f4b565b509250929050565b600082611fb65750600161192e565b81611fc35750600061192e565b8160018114611fd95760028114611fe357611fff565b600191505061192e565b60ff841115611ff457611ff4611e67565b50506001821b61192e565b5060208310610133831016604e8410600b8410161715612022575081810a61192e565b61202c8383611f46565b807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0482111561205e5761205e611e67565b029392505050565b600061192b8383611fa7565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156120aa576120aa611e67565b500290565b6000826120e5577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000602082840312156120fc57600080fd5b81518015158114611bb257600080fd5b60005b8381101561212757818101518382015260200161210f565b838111156118ff5750506000910152565b6000825161214a81846020870161210c565b9190910192915050565b602081526000825180602084015261217381604085016020870161210c565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea2646970667358221220e4e815fd6fd3f034e2c0af333a995dc325467c27e5928e499efc4e800017525864736f6c634300080a0033a26469706673582212201fcc877529745e4f138614824c4a672475edf0e8c4a48471ab851477b13ecc3064736f6c634300080a0033