Contract Address Details

0xAEbd7A84ceD1622593ff24d667df707007F183C1

Contract Name
TreasuryUtil
Creator
0xf9e78c–318f5b at 0x3d23ff–40dc80
Balance
0 Doge
Tokens
Fetching tokens...
Transactions
124 Transactions
Transfers
737 Transfers
Gas Used
21,622,594
Last Balance Update
27570051
Contract name:
TreasuryUtil




Optimization enabled
false
Compiler version
v0.8.9+commit.e5eed63a




EVM Version
default




Verified at
2022-09-28T01:03:47.552878Z

Constructor Arguments

0000000000000000000000004a78a6a8f8b3773f7a78befd106f280403eea807000000000000000000000000765277eebeca2e31912c9946eae1021199b39c6100000000000000000000000072d85ab47fbfc5e7e04a8bcfca1601d8f8ce1a50

Arg [0] (address) : 0x4a78a6a8f8b3773f7a78befd106f280403eea807
Arg [1] (address) : 0x765277eebeca2e31912c9946eae1021199b39c61
Arg [2] (address) : 0x72d85ab47fbfc5e7e04a8bcfca1601d8f8ce1a50

              

Contract source code

// SPDX-License-Identifier: MIT

// Sources flattened with hardhat v2.11.1 https://hardhat.org

// File contracts/libs/IWETH.sol

pragma solidity >=0.5.0;

interface IWETH {
    function deposit() external payable;
    function transfer(address to, uint value) external returns (bool);
    function withdraw(uint) external;
}


// File @openzeppelin/contracts/security/ReentrancyGuard.sol@v4.2.0

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


// File @openzeppelin/contracts/token/ERC20/IERC20.sol@v4.2.0

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


// File @openzeppelin/contracts/utils/Address.sol@v4.2.0

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

    function _verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) private pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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


// File @openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol@v4.2.0

pragma solidity ^0.8.0;


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


// File @openzeppelin/contracts/utils/Context.sol@v4.2.0

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


// File @openzeppelin/contracts/utils/Strings.sol@v4.2.0

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}


// File @openzeppelin/contracts/utils/introspection/IERC165.sol@v4.2.0

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}


// File @openzeppelin/contracts/utils/introspection/ERC165.sol@v4.2.0

pragma solidity ^0.8.0;

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}


// File @openzeppelin/contracts/access/AccessControl.sol@v4.2.0

pragma solidity ^0.8.0;



/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    function hasRole(bytes32 role, address account) external view returns (bool);

    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    function grantRole(bytes32 role, address account) external;

    function revokeRole(bytes32 role, address account) external;

    function renounceRole(bytes32 role, address account) external;
}

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{20}) is missing role (0x[0-9a-f]{32})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role, _msgSender());
        _;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
    }

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

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{20}) is missing role (0x[0-9a-f]{32})$/
     */
    function _checkRole(bytes32 role, address account) internal view {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

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

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

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

        _revokeRole(role, account);
    }

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

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

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

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


// File @uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01.sol@v1.1.0-beta.0

pragma solidity >=0.6.2;

interface IUniswapV2Router01 {
    function factory() external pure returns (address);
    function WETH() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB, uint liquidity);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountToken, uint amountETH);
    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETHWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountToken, uint amountETH);
    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapTokensForExactTokens(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);
    function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);

    function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
    function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
    function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}


// File @uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol@v1.1.0-beta.0

pragma solidity >=0.6.2;

interface IUniswapV2Router02 is IUniswapV2Router01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountETH);
    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountETH);

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable;
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
}


// File @uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol@v1.0.1

pragma solidity >=0.5.0;

interface IUniswapV2Factory {
    event PairCreated(address indexed token0, address indexed token1, address pair, uint);

    function feeTo() external view returns (address);
    function feeToSetter() external view returns (address);

    function getPair(address tokenA, address tokenB) external view returns (address pair);
    function allPairs(uint) external view returns (address pair);
    function allPairsLength() external view returns (uint);

    function createPair(address tokenA, address tokenB) external returns (address pair);

    function setFeeTo(address) external;
    function setFeeToSetter(address) external;
}


// File @uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol@v1.0.1

pragma solidity >=0.5.0;

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

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

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

    function DOMAIN_SEPARATOR() external view returns (bytes32);
    function PERMIT_TYPEHASH() external pure returns (bytes32);
    function nonces(address owner) external view returns (uint);

    function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;

    event Mint(address indexed sender, uint amount0, uint amount1);
    event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
    event Swap(
        address indexed sender,
        uint amount0In,
        uint amount1In,
        uint amount0Out,
        uint amount1Out,
        address indexed to
    );
    event Sync(uint112 reserve0, uint112 reserve1);

    function MINIMUM_LIQUIDITY() external pure returns (uint);
    function factory() external view returns (address);
    function token0() external view returns (address);
    function token1() external view returns (address);
    function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
    function price0CumulativeLast() external view returns (uint);
    function price1CumulativeLast() external view returns (uint);
    function kLast() external view returns (uint);

    function mint(address to) external returns (uint liquidity);
    function burn(address to) external returns (uint amount0, uint amount1);
    function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
    function skim(address to) external;
    function sync() external;

    function initialize(address, address) external;
}


// File contracts/TreasuryUtil.sol

/*
     ,-""""-.
   ,'      _ `.
  /       )_)  \
 :              :
 \              /
  \            /
   `.        ,'
     `.    ,'
       `.,'
        /\`.   ,-._
            `-'         BanksyDao.finance
 */
// Kurama protocol License Identifier:  62b9ff30-1008-4e02-893d-971dd776fe08

pragma solidity ^0.8.9;







/*
 * Errors table:
 * E1: failed approve
 * E3: router already set
 */
contract TreasuryUtil is ReentrancyGuard, AccessControl {
    using SafeERC20 for IERC20;

    bytes32 public constant OPERATOR_ROLE = keccak256("OPERATOR");

    address WETH;

    address treasuryDAOAddress;

    address public immutable usdCurrency;

    address public routerAddress;

    // To receive ETH when swapping
    // receive() external payable {}

    event DepositFeeConvertedToUSD(address indexed inputToken, uint256 inputAmount);

    constructor(address _treasuryDAOAddress, address _usdCurrency, address _routerAddress) {
        treasuryDAOAddress = _treasuryDAOAddress;
        routerAddress = _routerAddress;
        usdCurrency = _usdCurrency;

        _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
        _setupRole(OPERATOR_ROLE, _msgSender());

        WETH = IUniswapV2Router02(routerAddress).WETH();
    }

    function emergencyWithDrawToken(address token) external onlyRole(DEFAULT_ADMIN_ROLE) {
        uint256 balanceToken = IERC20(address(token)).balanceOf(address(this));
        if (balanceToken > 0)
            IERC20(address(token)).transfer(msg.sender, balanceToken);
    }

    /// Public functions ///
    ///@dev sell all of a current type of token for usd.
    function convertDepositFeesToUSD(address token, uint256 tokenType) public onlyRole(OPERATOR_ROLE) {
        uint256 amount = IERC20(token).balanceOf(address(this));

        if (amount == 0)
            return;

        if (tokenType == 1) {
            (address token0, address token1) = _removeLiquidity(token, amount);
            convertDepositFeesToUSD(token0, 0);
            convertDepositFeesToUSD(token1, 0);
            return;
        }

        uint256 holdingOwnership = amount;

        uint256 usdBalanceBefore;

        if (token != usdCurrency) {
            usdBalanceBefore = IERC20(usdCurrency).balanceOf(address(this));
            _swapTokensForTokens(token, usdCurrency, holdingOwnership);
        }

        uint256 usdAmount = IERC20(usdCurrency).balanceOf(address(this)) - usdBalanceBefore;

        if (usdAmount > 0)
            IERC20(usdCurrency).safeTransfer(treasuryDAOAddress, usdAmount);

        emit DepositFeeConvertedToUSD(token, amount);
    }

    /// Internal functions ///
    function _swapTokensForTokens(address from, address to, uint256 amount) internal {
        address[] memory path = new address[](from == WETH || to == WETH ? 2 : 3);
        if (from == WETH || to == WETH) {
            path[0] = from;
            path[1] = to;
        } else {
            path[0] = from;
            path[1] = WETH;
            path[2] = to;
        }

        require(IERC20(from).approve(routerAddress, amount), "E1");

        IUniswapV2Router02(routerAddress).swapExactTokensForTokensSupportingFeeOnTransferTokens(
            amount,
            0, // accept any amount of USD
            path,
            address(this),
            block.timestamp
        );
    }

    function _removeLiquidity(address token, uint256 tokenAmount) internal returns(address, address) {
        require(IERC20(token).approve(routerAddress, tokenAmount), "E1");

        IUniswapV2Pair lpToken = IUniswapV2Pair(token);

        address token0 = lpToken.token0();
        address token1 = lpToken.token1();

        IUniswapV2Router02(routerAddress).removeLiquidity(
            token0,
            token1,
            tokenAmount,
            0,
            0,
            address(this),
            block.timestamp
        );

        return (token0, token1);
    }
}
        

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_treasuryDAOAddress","internalType":"address"},{"type":"address","name":"_usdCurrency","internalType":"address"},{"type":"address","name":"_routerAddress","internalType":"address"}]},{"type":"event","name":"DepositFeeConvertedToUSD","inputs":[{"type":"address","name":"inputToken","internalType":"address","indexed":true},{"type":"uint256","name":"inputAmount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"RoleAdminChanged","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32","indexed":true},{"type":"bytes32","name":"previousAdminRole","internalType":"bytes32","indexed":true},{"type":"bytes32","name":"newAdminRole","internalType":"bytes32","indexed":true}],"anonymous":false},{"type":"event","name":"RoleGranted","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32","indexed":true},{"type":"address","name":"account","internalType":"address","indexed":true},{"type":"address","name":"sender","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"RoleRevoked","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32","indexed":true},{"type":"address","name":"account","internalType":"address","indexed":true},{"type":"address","name":"sender","internalType":"address","indexed":true}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"DEFAULT_ADMIN_ROLE","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"OPERATOR_ROLE","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"convertDepositFeesToUSD","inputs":[{"type":"address","name":"token","internalType":"address"},{"type":"uint256","name":"tokenType","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"emergencyWithDrawToken","inputs":[{"type":"address","name":"token","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"getRoleAdmin","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"grantRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"hasRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"revokeRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"routerAddress","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"supportsInterface","inputs":[{"type":"bytes4","name":"interfaceId","internalType":"bytes4"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"usdCurrency","inputs":[]}]
            

Contract Creation Code

0x60a06040523480156200001157600080fd5b5060405162002b2d38038062002b2d83398181016040528101906200003791906200042b565b600160008190555082600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1681525050620001196000801b6200010d6200024760201b60201c565b6200024f60201b60201c565b6200015a7f523a704056dcd17bcf83bed8b68c59416dac1119be77755efe3bde0a64e46e0c6200014e6200024760201b60201c565b6200024f60201b60201c565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b158015620001c357600080fd5b505afa158015620001d8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001fe919062000487565b600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050620004b9565b600033905090565b6200026182826200026560201b60201c565b5050565b6200027782826200035660201b60201c565b6200035257600180600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550620002f76200024760201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60006001600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620003f382620003c6565b9050919050565b6200040581620003e6565b81146200041157600080fd5b50565b6000815190506200042581620003fa565b92915050565b600080600060608486031215620004475762000446620003c1565b5b6000620004578682870162000414565b93505060206200046a8682870162000414565b92505060406200047d8682870162000414565b9150509250925092565b600060208284031215620004a0576200049f620003c1565b5b6000620004b08482850162000414565b91505092915050565b608051612635620004f8600039600081816104fa015281816106c601528181610719015281816107c8015281816107f301526108d801526126356000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c80636ac91c04116100715780636ac91c041461018b57806391d14854146101a9578063a217fddf146101d9578063d547741f146101f7578063e9b48b8d14610213578063f5b541a61461022f576100b4565b806301ffc9a7146100b9578063248a9ca3146100e95780632f2ff15d1461011957806330ff6453146101355780633268cc561461015157806336568abe1461016f575b600080fd5b6100d360048036038101906100ce91906119ac565b61024d565b6040516100e091906119f4565b60405180910390f35b61010360048036038101906100fe9190611a45565b6102c7565b6040516101109190611a81565b60405180910390f35b610133600480360381019061012e9190611afa565b6102e7565b005b61014f600480360381019061014a9190611b3a565b610310565b005b61015961044f565b6040516101669190611b76565b60405180910390f35b61018960048036038101906101849190611afa565b610475565b005b6101936104f8565b6040516101a09190611b76565b60405180910390f35b6101c360048036038101906101be9190611afa565b61051c565b6040516101d091906119f4565b60405180910390f35b6101e1610587565b6040516101ee9190611a81565b60405180910390f35b610211600480360381019061020c9190611afa565b61058e565b005b61022d60048036038101906102289190611bc7565b6105b7565b005b610237610975565b6040516102449190611a81565b60405180910390f35b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806102c057506102bf82610999565b5b9050919050565b600060016000838152602001908152602001600020600101549050919050565b6102f0826102c7565b610301816102fc610a03565b610a0b565b61030b8383610aa8565b505050565b6000801b61032581610320610a03565b610a0b565b60008273ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016103609190611b76565b60206040518083038186803b15801561037857600080fd5b505afa15801561038c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103b09190611c1c565b9050600081111561044a578273ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b81526004016103f6929190611c58565b602060405180830381600087803b15801561041057600080fd5b505af1158015610424573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104489190611cad565b505b505050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61047d610a03565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146104ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104e190611d5d565b60405180910390fd5b6104f48282610b88565b5050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60006001600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000801b81565b610597826102c7565b6105a8816105a3610a03565b610a0b565b6105b28383610b88565b505050565b7f523a704056dcd17bcf83bed8b68c59416dac1119be77755efe3bde0a64e46e0c6105e9816105e4610a03565b610a0b565b60008373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016106249190611b76565b60206040518083038186803b15801561063c57600080fd5b505afa158015610650573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106749190611c1c565b905060008114156106855750610970565b60018314156106bd5760008061069b8684610c6a565b915091506106aa8260006105b7565b6106b58160006105b7565b505050610970565b600081905060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff16146107ee577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016107709190611b76565b60206040518083038186803b15801561078857600080fd5b505afa15801561079c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107c09190611c1c565b90506107ed867f000000000000000000000000000000000000000000000000000000000000000084610f2f565b5b6000817f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161084a9190611b76565b60206040518083038186803b15801561086257600080fd5b505afa158015610876573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061089a9190611c1c565b6108a49190611dac565b9050600081111561091d5761091c600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16827f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166114209092919063ffffffff16565b5b8673ffffffffffffffffffffffffffffffffffffffff167fa8268b357f1895e4a5829911e48d9df2fe8c9010b09a0369c7ec550e56ef85c4856040516109639190611de0565b60405180910390a2505050505b505050565b7f523a704056dcd17bcf83bed8b68c59416dac1119be77755efe3bde0a64e46e0c81565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b610a15828261051c565b610aa457610a3a8173ffffffffffffffffffffffffffffffffffffffff1660146114a6565b610a488360001c60206114a6565b604051602001610a59929190611f0d565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a9b9190611f91565b60405180910390fd5b5050565b610ab2828261051c565b610b8457600180600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610b29610a03565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b610b92828261051c565b15610c665760006001600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610c0b610a03565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6000808373ffffffffffffffffffffffffffffffffffffffff1663095ea7b3600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16856040518363ffffffff1660e01b8152600401610cca929190611c58565b602060405180830381600087803b158015610ce457600080fd5b505af1158015610cf8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d1c9190611cad565b610d5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d5290611fff565b60405180910390fd5b600084905060008173ffffffffffffffffffffffffffffffffffffffff16630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b158015610da857600080fd5b505afa158015610dbc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610de09190612034565b905060008273ffffffffffffffffffffffffffffffffffffffff1663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b158015610e2a57600080fd5b505afa158015610e3e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e629190612034565b9050600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663baa2abde83838960008030426040518863ffffffff1660e01b8152600401610ecc97969594939291906120a6565b6040805180830381600087803b158015610ee557600080fd5b505af1158015610ef9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f1d9190612115565b50508181945094505050509250929050565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480610fda5750600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b610fe5576003610fe8565b60025b60ff1667ffffffffffffffff81111561100457611003612155565b5b6040519080825280602002602001820160405280156110325781602001602082028036833780820191505090505b509050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806110de5750600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b156111865783816000815181106110f8576110f7612184565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050828160018151811061114757611146612184565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050611296565b838160008151811061119b5761119a612184565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168160018151811061120c5761120b612184565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050828160028151811061125b5761125a612184565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250505b8373ffffffffffffffffffffffffffffffffffffffff1663095ea7b3600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846040518363ffffffff1660e01b81526004016112f3929190611c58565b602060405180830381600087803b15801561130d57600080fd5b505af1158015611321573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113459190611cad565b611384576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137b90611fff565b60405180910390fd5b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635c11d7958360008430426040518663ffffffff1660e01b81526004016113e8959493929190612271565b600060405180830381600087803b15801561140257600080fd5b505af1158015611416573d6000803e3d6000fd5b5050505050505050565b6114a18363a9059cbb60e01b848460405160240161143f929190611c58565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506116e2565b505050565b6060600060028360026114b991906122cb565b6114c39190612325565b67ffffffffffffffff8111156114dc576114db612155565b5b6040519080825280601f01601f19166020018201604052801561150e5781602001600182028036833780820191505090505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061154657611545612184565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106115aa576115a9612184565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026115ea91906122cb565b6115f49190612325565b90505b6001811115611694577f3031323334353637383961626364656600000000000000000000000000000000600f86166010811061163657611635612184565b5b1a60f81b82828151811061164d5761164c612184565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c94508061168d9061237b565b90506115f7565b50600084146116d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116cf906123f1565b60405180910390fd5b8091505092915050565b6000611744826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166117a99092919063ffffffff16565b90506000815111156117a457808060200190518101906117649190611cad565b6117a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161179a90612483565b60405180910390fd5b5b505050565b60606117b884846000856117c1565b90509392505050565b606082471015611806576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117fd90612515565b60405180910390fd5b61180f856118d5565b61184e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161184590612581565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161187791906125e8565b60006040518083038185875af1925050503d80600081146118b4576040519150601f19603f3d011682016040523d82523d6000602084013e6118b9565b606091505b50915091506118c98282866118e8565b92505050949350505050565b600080823b905060008111915050919050565b606083156118f857829050611948565b60008351111561190b5782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161193f9190611f91565b60405180910390fd5b9392505050565b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61198981611954565b811461199457600080fd5b50565b6000813590506119a681611980565b92915050565b6000602082840312156119c2576119c161194f565b5b60006119d084828501611997565b91505092915050565b60008115159050919050565b6119ee816119d9565b82525050565b6000602082019050611a0960008301846119e5565b92915050565b6000819050919050565b611a2281611a0f565b8114611a2d57600080fd5b50565b600081359050611a3f81611a19565b92915050565b600060208284031215611a5b57611a5a61194f565b5b6000611a6984828501611a30565b91505092915050565b611a7b81611a0f565b82525050565b6000602082019050611a966000830184611a72565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611ac782611a9c565b9050919050565b611ad781611abc565b8114611ae257600080fd5b50565b600081359050611af481611ace565b92915050565b60008060408385031215611b1157611b1061194f565b5b6000611b1f85828601611a30565b9250506020611b3085828601611ae5565b9150509250929050565b600060208284031215611b5057611b4f61194f565b5b6000611b5e84828501611ae5565b91505092915050565b611b7081611abc565b82525050565b6000602082019050611b8b6000830184611b67565b92915050565b6000819050919050565b611ba481611b91565b8114611baf57600080fd5b50565b600081359050611bc181611b9b565b92915050565b60008060408385031215611bde57611bdd61194f565b5b6000611bec85828601611ae5565b9250506020611bfd85828601611bb2565b9150509250929050565b600081519050611c1681611b9b565b92915050565b600060208284031215611c3257611c3161194f565b5b6000611c4084828501611c07565b91505092915050565b611c5281611b91565b82525050565b6000604082019050611c6d6000830185611b67565b611c7a6020830184611c49565b9392505050565b611c8a816119d9565b8114611c9557600080fd5b50565b600081519050611ca781611c81565b92915050565b600060208284031215611cc357611cc261194f565b5b6000611cd184828501611c98565b91505092915050565b600082825260208201905092915050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000611d47602f83611cda565b9150611d5282611ceb565b604082019050919050565b60006020820190508181036000830152611d7681611d3a565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611db782611b91565b9150611dc283611b91565b925082821015611dd557611dd4611d7d565b5b828203905092915050565b6000602082019050611df56000830184611c49565b92915050565b600081905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000611e3c601783611dfb565b9150611e4782611e06565b601782019050919050565b600081519050919050565b60005b83811015611e7b578082015181840152602081019050611e60565b83811115611e8a576000848401525b50505050565b6000611e9b82611e52565b611ea58185611dfb565b9350611eb5818560208601611e5d565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000611ef7601183611dfb565b9150611f0282611ec1565b601182019050919050565b6000611f1882611e2f565b9150611f248285611e90565b9150611f2f82611eea565b9150611f3b8284611e90565b91508190509392505050565b6000601f19601f8301169050919050565b6000611f6382611e52565b611f6d8185611cda565b9350611f7d818560208601611e5d565b611f8681611f47565b840191505092915050565b60006020820190508181036000830152611fab8184611f58565b905092915050565b7f4531000000000000000000000000000000000000000000000000000000000000600082015250565b6000611fe9600283611cda565b9150611ff482611fb3565b602082019050919050565b6000602082019050818103600083015261201881611fdc565b9050919050565b60008151905061202e81611ace565b92915050565b60006020828403121561204a5761204961194f565b5b60006120588482850161201f565b91505092915050565b6000819050919050565b6000819050919050565b600061209061208b61208684612061565b61206b565b611b91565b9050919050565b6120a081612075565b82525050565b600060e0820190506120bb600083018a611b67565b6120c86020830189611b67565b6120d56040830188611c49565b6120e26060830187612097565b6120ef6080830186612097565b6120fc60a0830185611b67565b61210960c0830184611c49565b98975050505050505050565b6000806040838503121561212c5761212b61194f565b5b600061213a85828601611c07565b925050602061214b85828601611c07565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6121e881611abc565b82525050565b60006121fa83836121df565b60208301905092915050565b6000602082019050919050565b600061221e826121b3565b61222881856121be565b9350612233836121cf565b8060005b8381101561226457815161224b88826121ee565b975061225683612206565b925050600181019050612237565b5085935050505092915050565b600060a0820190506122866000830188611c49565b6122936020830187612097565b81810360408301526122a58186612213565b90506122b46060830185611b67565b6122c16080830184611c49565b9695505050505050565b60006122d682611b91565b91506122e183611b91565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561231a57612319611d7d565b5b828202905092915050565b600061233082611b91565b915061233b83611b91565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156123705761236f611d7d565b5b828201905092915050565b600061238682611b91565b9150600082141561239a57612399611d7d565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b60006123db602083611cda565b91506123e6826123a5565b602082019050919050565b6000602082019050818103600083015261240a816123ce565b9050919050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b600061246d602a83611cda565b915061247882612411565b604082019050919050565b6000602082019050818103600083015261249c81612460565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b60006124ff602683611cda565b915061250a826124a3565b604082019050919050565b6000602082019050818103600083015261252e816124f2565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b600061256b601d83611cda565b915061257682612535565b602082019050919050565b6000602082019050818103600083015261259a8161255e565b9050919050565b600081519050919050565b600081905092915050565b60006125c2826125a1565b6125cc81856125ac565b93506125dc818560208601611e5d565b80840191505092915050565b60006125f482846125b7565b91508190509291505056fea2646970667358221220f5925df7ab4027ee67d3c38e4df98f4a0fb9d419287ebf37f0c0fa2b2071e1ed64736f6c634300080900330000000000000000000000004a78a6a8f8b3773f7a78befd106f280403eea807000000000000000000000000765277eebeca2e31912c9946eae1021199b39c6100000000000000000000000072d85ab47fbfc5e7e04a8bcfca1601d8f8ce1a50

Deployed ByteCode

0x608060405234801561001057600080fd5b50600436106100b45760003560e01c80636ac91c04116100715780636ac91c041461018b57806391d14854146101a9578063a217fddf146101d9578063d547741f146101f7578063e9b48b8d14610213578063f5b541a61461022f576100b4565b806301ffc9a7146100b9578063248a9ca3146100e95780632f2ff15d1461011957806330ff6453146101355780633268cc561461015157806336568abe1461016f575b600080fd5b6100d360048036038101906100ce91906119ac565b61024d565b6040516100e091906119f4565b60405180910390f35b61010360048036038101906100fe9190611a45565b6102c7565b6040516101109190611a81565b60405180910390f35b610133600480360381019061012e9190611afa565b6102e7565b005b61014f600480360381019061014a9190611b3a565b610310565b005b61015961044f565b6040516101669190611b76565b60405180910390f35b61018960048036038101906101849190611afa565b610475565b005b6101936104f8565b6040516101a09190611b76565b60405180910390f35b6101c360048036038101906101be9190611afa565b61051c565b6040516101d091906119f4565b60405180910390f35b6101e1610587565b6040516101ee9190611a81565b60405180910390f35b610211600480360381019061020c9190611afa565b61058e565b005b61022d60048036038101906102289190611bc7565b6105b7565b005b610237610975565b6040516102449190611a81565b60405180910390f35b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806102c057506102bf82610999565b5b9050919050565b600060016000838152602001908152602001600020600101549050919050565b6102f0826102c7565b610301816102fc610a03565b610a0b565b61030b8383610aa8565b505050565b6000801b61032581610320610a03565b610a0b565b60008273ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016103609190611b76565b60206040518083038186803b15801561037857600080fd5b505afa15801561038c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103b09190611c1c565b9050600081111561044a578273ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b81526004016103f6929190611c58565b602060405180830381600087803b15801561041057600080fd5b505af1158015610424573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104489190611cad565b505b505050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61047d610a03565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146104ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104e190611d5d565b60405180910390fd5b6104f48282610b88565b5050565b7f000000000000000000000000765277eebeca2e31912c9946eae1021199b39c6181565b60006001600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000801b81565b610597826102c7565b6105a8816105a3610a03565b610a0b565b6105b28383610b88565b505050565b7f523a704056dcd17bcf83bed8b68c59416dac1119be77755efe3bde0a64e46e0c6105e9816105e4610a03565b610a0b565b60008373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016106249190611b76565b60206040518083038186803b15801561063c57600080fd5b505afa158015610650573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106749190611c1c565b905060008114156106855750610970565b60018314156106bd5760008061069b8684610c6a565b915091506106aa8260006105b7565b6106b58160006105b7565b505050610970565b600081905060007f000000000000000000000000765277eebeca2e31912c9946eae1021199b39c6173ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff16146107ee577f000000000000000000000000765277eebeca2e31912c9946eae1021199b39c6173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016107709190611b76565b60206040518083038186803b15801561078857600080fd5b505afa15801561079c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107c09190611c1c565b90506107ed867f000000000000000000000000765277eebeca2e31912c9946eae1021199b39c6184610f2f565b5b6000817f000000000000000000000000765277eebeca2e31912c9946eae1021199b39c6173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161084a9190611b76565b60206040518083038186803b15801561086257600080fd5b505afa158015610876573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061089a9190611c1c565b6108a49190611dac565b9050600081111561091d5761091c600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16827f000000000000000000000000765277eebeca2e31912c9946eae1021199b39c6173ffffffffffffffffffffffffffffffffffffffff166114209092919063ffffffff16565b5b8673ffffffffffffffffffffffffffffffffffffffff167fa8268b357f1895e4a5829911e48d9df2fe8c9010b09a0369c7ec550e56ef85c4856040516109639190611de0565b60405180910390a2505050505b505050565b7f523a704056dcd17bcf83bed8b68c59416dac1119be77755efe3bde0a64e46e0c81565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b610a15828261051c565b610aa457610a3a8173ffffffffffffffffffffffffffffffffffffffff1660146114a6565b610a488360001c60206114a6565b604051602001610a59929190611f0d565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a9b9190611f91565b60405180910390fd5b5050565b610ab2828261051c565b610b8457600180600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610b29610a03565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b610b92828261051c565b15610c665760006001600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610c0b610a03565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6000808373ffffffffffffffffffffffffffffffffffffffff1663095ea7b3600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16856040518363ffffffff1660e01b8152600401610cca929190611c58565b602060405180830381600087803b158015610ce457600080fd5b505af1158015610cf8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d1c9190611cad565b610d5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d5290611fff565b60405180910390fd5b600084905060008173ffffffffffffffffffffffffffffffffffffffff16630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b158015610da857600080fd5b505afa158015610dbc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610de09190612034565b905060008273ffffffffffffffffffffffffffffffffffffffff1663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b158015610e2a57600080fd5b505afa158015610e3e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e629190612034565b9050600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663baa2abde83838960008030426040518863ffffffff1660e01b8152600401610ecc97969594939291906120a6565b6040805180830381600087803b158015610ee557600080fd5b505af1158015610ef9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f1d9190612115565b50508181945094505050509250929050565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480610fda5750600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b610fe5576003610fe8565b60025b60ff1667ffffffffffffffff81111561100457611003612155565b5b6040519080825280602002602001820160405280156110325781602001602082028036833780820191505090505b509050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806110de5750600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b156111865783816000815181106110f8576110f7612184565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050828160018151811061114757611146612184565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050611296565b838160008151811061119b5761119a612184565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168160018151811061120c5761120b612184565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050828160028151811061125b5761125a612184565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250505b8373ffffffffffffffffffffffffffffffffffffffff1663095ea7b3600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846040518363ffffffff1660e01b81526004016112f3929190611c58565b602060405180830381600087803b15801561130d57600080fd5b505af1158015611321573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113459190611cad565b611384576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137b90611fff565b60405180910390fd5b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635c11d7958360008430426040518663ffffffff1660e01b81526004016113e8959493929190612271565b600060405180830381600087803b15801561140257600080fd5b505af1158015611416573d6000803e3d6000fd5b5050505050505050565b6114a18363a9059cbb60e01b848460405160240161143f929190611c58565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506116e2565b505050565b6060600060028360026114b991906122cb565b6114c39190612325565b67ffffffffffffffff8111156114dc576114db612155565b5b6040519080825280601f01601f19166020018201604052801561150e5781602001600182028036833780820191505090505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061154657611545612184565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106115aa576115a9612184565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026115ea91906122cb565b6115f49190612325565b90505b6001811115611694577f3031323334353637383961626364656600000000000000000000000000000000600f86166010811061163657611635612184565b5b1a60f81b82828151811061164d5761164c612184565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c94508061168d9061237b565b90506115f7565b50600084146116d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116cf906123f1565b60405180910390fd5b8091505092915050565b6000611744826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166117a99092919063ffffffff16565b90506000815111156117a457808060200190518101906117649190611cad565b6117a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161179a90612483565b60405180910390fd5b5b505050565b60606117b884846000856117c1565b90509392505050565b606082471015611806576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117fd90612515565b60405180910390fd5b61180f856118d5565b61184e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161184590612581565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161187791906125e8565b60006040518083038185875af1925050503d80600081146118b4576040519150601f19603f3d011682016040523d82523d6000602084013e6118b9565b606091505b50915091506118c98282866118e8565b92505050949350505050565b600080823b905060008111915050919050565b606083156118f857829050611948565b60008351111561190b5782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161193f9190611f91565b60405180910390fd5b9392505050565b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61198981611954565b811461199457600080fd5b50565b6000813590506119a681611980565b92915050565b6000602082840312156119c2576119c161194f565b5b60006119d084828501611997565b91505092915050565b60008115159050919050565b6119ee816119d9565b82525050565b6000602082019050611a0960008301846119e5565b92915050565b6000819050919050565b611a2281611a0f565b8114611a2d57600080fd5b50565b600081359050611a3f81611a19565b92915050565b600060208284031215611a5b57611a5a61194f565b5b6000611a6984828501611a30565b91505092915050565b611a7b81611a0f565b82525050565b6000602082019050611a966000830184611a72565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611ac782611a9c565b9050919050565b611ad781611abc565b8114611ae257600080fd5b50565b600081359050611af481611ace565b92915050565b60008060408385031215611b1157611b1061194f565b5b6000611b1f85828601611a30565b9250506020611b3085828601611ae5565b9150509250929050565b600060208284031215611b5057611b4f61194f565b5b6000611b5e84828501611ae5565b91505092915050565b611b7081611abc565b82525050565b6000602082019050611b8b6000830184611b67565b92915050565b6000819050919050565b611ba481611b91565b8114611baf57600080fd5b50565b600081359050611bc181611b9b565b92915050565b60008060408385031215611bde57611bdd61194f565b5b6000611bec85828601611ae5565b9250506020611bfd85828601611bb2565b9150509250929050565b600081519050611c1681611b9b565b92915050565b600060208284031215611c3257611c3161194f565b5b6000611c4084828501611c07565b91505092915050565b611c5281611b91565b82525050565b6000604082019050611c6d6000830185611b67565b611c7a6020830184611c49565b9392505050565b611c8a816119d9565b8114611c9557600080fd5b50565b600081519050611ca781611c81565b92915050565b600060208284031215611cc357611cc261194f565b5b6000611cd184828501611c98565b91505092915050565b600082825260208201905092915050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000611d47602f83611cda565b9150611d5282611ceb565b604082019050919050565b60006020820190508181036000830152611d7681611d3a565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611db782611b91565b9150611dc283611b91565b925082821015611dd557611dd4611d7d565b5b828203905092915050565b6000602082019050611df56000830184611c49565b92915050565b600081905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000611e3c601783611dfb565b9150611e4782611e06565b601782019050919050565b600081519050919050565b60005b83811015611e7b578082015181840152602081019050611e60565b83811115611e8a576000848401525b50505050565b6000611e9b82611e52565b611ea58185611dfb565b9350611eb5818560208601611e5d565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000611ef7601183611dfb565b9150611f0282611ec1565b601182019050919050565b6000611f1882611e2f565b9150611f248285611e90565b9150611f2f82611eea565b9150611f3b8284611e90565b91508190509392505050565b6000601f19601f8301169050919050565b6000611f6382611e52565b611f6d8185611cda565b9350611f7d818560208601611e5d565b611f8681611f47565b840191505092915050565b60006020820190508181036000830152611fab8184611f58565b905092915050565b7f4531000000000000000000000000000000000000000000000000000000000000600082015250565b6000611fe9600283611cda565b9150611ff482611fb3565b602082019050919050565b6000602082019050818103600083015261201881611fdc565b9050919050565b60008151905061202e81611ace565b92915050565b60006020828403121561204a5761204961194f565b5b60006120588482850161201f565b91505092915050565b6000819050919050565b6000819050919050565b600061209061208b61208684612061565b61206b565b611b91565b9050919050565b6120a081612075565b82525050565b600060e0820190506120bb600083018a611b67565b6120c86020830189611b67565b6120d56040830188611c49565b6120e26060830187612097565b6120ef6080830186612097565b6120fc60a0830185611b67565b61210960c0830184611c49565b98975050505050505050565b6000806040838503121561212c5761212b61194f565b5b600061213a85828601611c07565b925050602061214b85828601611c07565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6121e881611abc565b82525050565b60006121fa83836121df565b60208301905092915050565b6000602082019050919050565b600061221e826121b3565b61222881856121be565b9350612233836121cf565b8060005b8381101561226457815161224b88826121ee565b975061225683612206565b925050600181019050612237565b5085935050505092915050565b600060a0820190506122866000830188611c49565b6122936020830187612097565b81810360408301526122a58186612213565b90506122b46060830185611b67565b6122c16080830184611c49565b9695505050505050565b60006122d682611b91565b91506122e183611b91565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561231a57612319611d7d565b5b828202905092915050565b600061233082611b91565b915061233b83611b91565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156123705761236f611d7d565b5b828201905092915050565b600061238682611b91565b9150600082141561239a57612399611d7d565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b60006123db602083611cda565b91506123e6826123a5565b602082019050919050565b6000602082019050818103600083015261240a816123ce565b9050919050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b600061246d602a83611cda565b915061247882612411565b604082019050919050565b6000602082019050818103600083015261249c81612460565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b60006124ff602683611cda565b915061250a826124a3565b604082019050919050565b6000602082019050818103600083015261252e816124f2565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b600061256b601d83611cda565b915061257682612535565b602082019050919050565b6000602082019050818103600083015261259a8161255e565b9050919050565b600081519050919050565b600081905092915050565b60006125c2826125a1565b6125cc81856125ac565b93506125dc818560208601611e5d565b80840191505092915050565b60006125f482846125b7565b91508190509291505056fea2646970667358221220f5925df7ab4027ee67d3c38e4df98f4a0fb9d419287ebf37f0c0fa2b2071e1ed64736f6c63430008090033