Contract 0x66Ac11c106C3670988DEFDd24BC75dE786b91095 10
Contract Overview
Balance:
0 ETH
EtherValue:
$0.00
My Name Tag:
Not Available, login to update
[ Download CSV Export ]
Latest 25 internal transaction
[ Download CSV Export ]
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
Exchange
Compiler Version
v0.8.11+commit.d7f03943
Optimization Enabled:
Yes with 1000000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @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 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]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role); _; } /** * @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 virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `_msgSender()` is missing `role`. * Overriding this function changes the behavior of the {onlyRole} modifier. * * Format of the revert message is described in {_checkRole}. * * _Available since v4.6._ */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @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]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { 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 virtual 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. * * May emit a {RoleGranted} event. */ 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. * * May emit a {RoleRevoked} event. */ 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 revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. * * May emit a {RoleRevoked} event. */ 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. * * May emit a {RoleGranted} event. * * [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}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ 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 { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. * * May emit a {RoleGranted} event. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. * * May emit a {RoleRevoked} event. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @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 {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @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) external; /** * @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) external; /** * @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) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC20.sol) pragma solidity ^0.8.0; import "../token/ERC20/IERC20.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) 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 making 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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/draft-IERC20Permit.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; 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)); } } function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @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); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.11; import "@openzeppelin/contracts/interfaces/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "./interfaces/IWrappedEther.sol"; import "./interfaces/IExchangeAdapter.sol"; contract Exchange is ReentrancyGuard, AccessControl { using SafeERC20 for IERC20; using Address for address; // struct size - 64 bytes, 2 slots struct RouteEdge { uint32 swapProtocol; // 0 - unknown edge, 1 - UniswapV2, 2 - Curve... address pool; // address of pool to call address fromCoin; // address of coin to deposit to pool address toCoin; // address of coin to get from pool } // struct size - 32 bytes, 1 slots struct LpToken { uint32 swapProtocol; // 0 - unknown edge, 1 - UniswapV2, 2 - Curve... address pool; // address of pool to call } // returns true if address is registered as major token, false otherwise mapping(address => bool) public isMajorCoin; // returns true if pool received approve of token. First address is pool, // second is token mapping(address => mapping(address => bool)) public approveCompleted; // Storage of routes between major coins. Normally, any major coin should // have route to any other major coin that is saved here mapping(address => mapping(address => RouteEdge[])) private internalMajorRoute; // Storage of single edges from minor coin to major mapping(address => RouteEdge) public minorCoins; // Storage of LP tokens that are registeres in exchange mapping(address => LpToken) public lpTokens; // Storage of swap execution method for different protocols mapping(uint32 => address) public adapters; // Wrapped ether token that is used for native ether swaps IWrappedEther public wrappedEther = IWrappedEther(0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2); // bytes4(keccak256(bytes("executeSwap(address,address,address,uint256)"))) bytes4 public constant EXECUTE_SWAP_SIG_HASH = 0x6012856e; // bytes4(keccak256(bytes("enterPool(address,address,uint256)"))) bytes4 public constant ENTER_POOL_SIG_HASH = 0x73ec962e; // bytes4(keccak256(bytes("exitPool(address,address,uint256)"))) bytes4 public constant EXIT_POOL_SIG_HASH = 0x660cb8d4; constructor(address gnosis, bool isTesting) { require(gnosis.isContract(), "Exchange: not contract"); _grantRole(DEFAULT_ADMIN_ROLE, gnosis); if (isTesting) _grantRole(DEFAULT_ADMIN_ROLE, msg.sender); } /// @notice Execute exchange of coins through predefined routes /// @param from swap input token /// @param to swap output token /// @param amountIn amount of `from `tokens to be taken from caller /// @param minAmountOut minimum amount of output tokens, revert if less /// @return Amount of tokens that are returned function exchange( address from, address to, uint256 amountIn, uint256 minAmountOut ) external payable nonReentrant returns (uint256) { require(from != to, "Exchange: from == to"); if (lpTokens[to].swapProtocol != 0) { IERC20(from).safeTransferFrom(msg.sender, address(this), amountIn); uint256 amountOut = _enterLiquidityPool(from, to, amountIn); require(amountOut >= minAmountOut, "Exchange: slippage"); IERC20(to).safeTransfer(msg.sender, amountOut); return amountOut; } if (lpTokens[from].swapProtocol != 0) { IERC20(from).safeTransferFrom(msg.sender, address(this), amountIn); uint256 amountOut = _exitLiquidityPool(from, to, amountIn); require(amountOut >= minAmountOut, "Exchange: slippage"); IERC20(to).safeTransfer(msg.sender, amountOut); return amountOut; } if ( from == address(0) || from == 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE ) { require( to != address(0) && to != 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE, "Exchange: ETH to ETH" ); require(amountIn == msg.value, "Exchange: value/amount discrep"); wrappedEther.deposit{value: msg.value}(); uint256 amountOut = _exchange(address(wrappedEther), to, amountIn); require(amountOut >= minAmountOut, "Exchange: slippage"); IERC20(to).safeTransfer(msg.sender, amountOut); return amountOut; } IERC20(from).safeTransferFrom(msg.sender, address(this), amountIn); if ( to == address(0) || to == 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE ) { uint256 amountOut = _exchange( from, address(wrappedEther), amountIn ); require(amountOut >= minAmountOut, "Exchange: slippage"); wrappedEther.withdraw(amountOut); Address.sendValue(payable(msg.sender), amountOut); return amountOut; } uint256 amountOut_ = _exchange(from, to, amountIn); require(amountOut_ >= minAmountOut, "Exchange: slippage"); IERC20(to).safeTransfer(msg.sender, amountOut_); return amountOut_; } /// @notice Register swap/lp token adapters /// @param protocolId protocol id of adapter to add function registerAdapters( address[] calldata adapters_, uint32[] calldata protocolId ) external onlyRole(DEFAULT_ADMIN_ROLE) { uint256 length = adapters_.length; require( adapters_.length == protocolId.length, "Exchange: length discrep" ); for (uint256 i = 0; i < length; i++) { adapters[protocolId[i]] = adapters_[i]; } } /// @notice Unregister swap/lp token adapters /// @param protocolId protocol id of adapter to remove function unregisterAdapters( uint32[] calldata protocolId ) external onlyRole(DEFAULT_ADMIN_ROLE) { uint256 length = protocolId.length; for (uint256 i = 0; i < length; i++) { delete adapters[protocolId[i]]; } } /// @notice Create single edge of a route from minor coin to major /// @dev In order for swap from/to minor coin to be working, `toCoin` should /// be registered as major /// @param edges array of edges to store function createMinorCoinEdge( RouteEdge[] calldata edges ) external onlyRole(DEFAULT_ADMIN_ROLE) { uint256 length = edges.length; for (uint256 i = 0; i < length; i++) { // validate protocol id - zero is interpreted as // non-existing route require(edges[i].swapProtocol != 0, "Exchange: protocol type !set"); require( edges[i].fromCoin != edges[i].toCoin, "Exchange: edge is loop" ); if (!approveCompleted[edges[i].pool][edges[i].fromCoin]) { IERC20(edges[i].fromCoin).safeApprove( edges[i].pool, type(uint256).max ); approveCompleted[edges[i].pool][edges[i].fromCoin] = true; } if (!approveCompleted[edges[i].pool][edges[i].toCoin]) { IERC20(edges[i].toCoin).safeApprove( edges[i].pool, type(uint256).max ); approveCompleted[edges[i].pool][edges[i].toCoin] = true; } minorCoins[edges[i].fromCoin] = edges[i]; } } /// @notice Remove internal minor route piece /// @param edges source coin of route to delete function deleteMinorCoinEdge( address[] calldata edges ) external onlyRole(DEFAULT_ADMIN_ROLE) { for (uint256 i = 0; i < edges.length; i++) { delete minorCoins[edges[i]]; } } /// @notice Create route between two tokens and set them as major /// @param routes array of routes function createInternalMajorRoutes( RouteEdge[][] calldata routes ) external onlyRole(DEFAULT_ADMIN_ROLE) { for (uint256 i = 0; i < routes.length; i++) { RouteEdge[] memory route = routes[i]; // extract start and beginning of given route address start = route[0].fromCoin; address end = route[route.length - 1].toCoin; require(start != end, "Exchange: route is loop"); if (internalMajorRoute[start][end].length != 0) { delete internalMajorRoute[start][end]; } // validate protocol id - zero is interpreted as non-existing route require(route[0].swapProtocol != 0, "Exchange: protocol type !set"); // set approve of the token to the pool if (!approveCompleted[route[0].pool][route[0].fromCoin]) { IERC20(route[0].fromCoin).safeApprove( route[0].pool, type(uint256).max ); approveCompleted[route[0].pool][route[0].fromCoin] = true; } require( route[0].fromCoin != route[0].toCoin, "Exchange: edge is loop" ); // starting to save this route internalMajorRoute[start][end].push(route[0]); // if route is simple, then we've done everything for it if (route.length == 1) { // as route between these coins is set, we consider them as major isMajorCoin[start] = true; isMajorCoin[end] = true; continue; } // loop through whole route to check its continuity address node = route[0].toCoin; for (uint256 j = 1; j < route.length; j++) { require(route[j].fromCoin == node, "Exchange: route broken"); node = route[j].toCoin; // validate protocol id - zero is interpreted as // non-existing route require( route[j].swapProtocol != 0, "Exchange: protocol type !set" ); require( route[j].fromCoin != route[j].toCoin, "Exchange: edge is loop" ); // set approve of the token to the pool if (!approveCompleted[route[j].pool][route[j].fromCoin]) { IERC20(route[j].fromCoin).safeApprove( route[j].pool, type(uint256).max ); approveCompleted[route[j].pool][route[j].fromCoin] = true; } // continiuing to save this route internalMajorRoute[start][end].push(route[j]); } // as route between these coins is set, we consider them as major isMajorCoin[start] = true; isMajorCoin[end] = true; } } /// @notice Remove internal major routes and unregister them on demand /// @param from source coin of route to delete /// @param to destination coin of route to delete /// @param removeMajor true if need to no longer recognize source and destination coin as major function deleteInternalMajorRoutes( address[] calldata from, address[] calldata to, bool removeMajor ) external onlyRole(DEFAULT_ADMIN_ROLE) { require(from.length == to.length, "Exchange: length discrep"); for (uint256 i = 0; i < from.length; i++) { delete internalMajorRoute[from[i]][to[i]]; if (removeMajor) { isMajorCoin[from[i]] = false; isMajorCoin[to[i]] = false; } } } /// @notice Force unapprove of some coin to any pool /// @param coins coins list /// @param spenders pools list function removeApproval( address[] calldata coins, address[] calldata spenders ) external onlyRole(DEFAULT_ADMIN_ROLE) { require(coins.length == spenders.length, "Exchange: length discrep"); for (uint256 i = 0; i < coins.length; i++) { IERC20(coins[i]).safeApprove(spenders[i], 0); approveCompleted[spenders[i]][coins[i]] = false; } } /// @notice Force approve of some coin to any pool /// @param coins coins list /// @param spenders pools list function createApproval( address[] calldata coins, address[] calldata spenders ) external onlyRole(DEFAULT_ADMIN_ROLE) { require(coins.length == spenders.length, "Exchange: length discrep"); for (uint256 i = 0; i < coins.length; i++) { IERC20(coins[i]).safeApprove(spenders[i], type(uint256).max); approveCompleted[spenders[i]][coins[i]] = true; } } /// @notice Add all info for enabling LP token swap and set up coin approval /// @param edges info about protocol type and pools /// @param lpTokensAddress coins that will be recognized as LP tokens /// @param entryCoins coins which require approval to pool function createLpToken( LpToken[] calldata edges, address[] calldata lpTokensAddress, address[][] calldata entryCoins ) external onlyRole(DEFAULT_ADMIN_ROLE) { require( edges.length == entryCoins.length && entryCoins.length == lpTokensAddress.length, "Exchange: length discrep" ); for (uint256 i = 0; i < edges.length; i++) { LpToken memory edge = edges[i]; require(edge.swapProtocol != 0, "Exchange: protocol type !set"); for (uint256 j = 0; j < entryCoins[i].length; j++) { if (!approveCompleted[edge.pool][entryCoins[i][j]]) { IERC20(entryCoins[i][j]).safeApprove( edge.pool, type(uint256).max ); approveCompleted[edge.pool][entryCoins[i][j]] = true; } } lpTokens[lpTokensAddress[i]] = edge; } } /// @notice Set addresses to be no longer recognized as LP tokens /// @param edges list of LP tokens function deleteLpToken( address[] calldata edges ) external onlyRole(DEFAULT_ADMIN_ROLE) { for (uint256 i = 0; i < edges.length; i++) { delete lpTokens[edges[i]]; } } /// @notice Set addresses of wrapped native token of blockchain where exchange is deployed /// @param token wrapped token address function setWrappedNativeToken( address token ) external onlyRole(DEFAULT_ADMIN_ROLE) { wrappedEther = IWrappedEther(token); } /// @inheritdoc AccessControl function grantRole( bytes32 role, address account ) public override onlyRole(getRoleAdmin(role)) { require(account.isContract(), "Exchange: not contract"); _grantRole(role, account); } /// @notice Build highest liquidity swap route between two ERC20 coins /// @param from address of coin to start route from /// @param to address of route destination coin /// @return route containing liquidity pool addresses function buildRoute( address from, address to ) public view returns (RouteEdge[] memory) { bool isFromMajorCoin = isMajorCoin[from]; bool isToMajorCoin = isMajorCoin[to]; if (isFromMajorCoin && isToMajorCoin) { // Moscow - Heathrow // in this case route of major coins is predefined RouteEdge[] memory majorToMajor = internalMajorRoute[from][to]; // check if this part of route exists require( majorToMajor.length > 0, "Exchange: 1!path from major coin" ); return majorToMajor; } else if (!isFromMajorCoin && isToMajorCoin) { // Tomsk - Heathrow // getting predefined route from minor coin to major coin RouteEdge memory minorToMajor = minorCoins[from]; // revert if route is not predefined require( minorToMajor.swapProtocol != 0, "Exchange: 2!path from input coin" ); // if predefined route from minor to major coin is what we wanted // to get, simply return it if (minorToMajor.toCoin == to) { RouteEdge[] memory result = new RouteEdge[](1); result[0] = minorToMajor; return result; } // find continuation of the route, if these major coins don't match RouteEdge[] memory majorToMajor = internalMajorRoute[ minorToMajor.toCoin ][to]; // check if this part of route exists require( majorToMajor.length > 0, "Exchange: 2!path from major coin" ); // concatenate route and return it RouteEdge[] memory route = new RouteEdge[](majorToMajor.length + 1); route[0] = minorToMajor; for (uint256 i = 0; i < majorToMajor.length; i++) { route[i + 1] = majorToMajor[i]; } return route; } else if (isFromMajorCoin && !isToMajorCoin) { // Heathrow - Sochi // getting predefined route from any major coin to target minor coin RouteEdge memory majorToMinor = reverseRouteEdge(minorCoins[to]); // revert if route is not predefined require( majorToMinor.swapProtocol != 0, "Exchange: 3!path from input coin" ); // if predefined route from major to minor coin is what we wanted // to get, simply return it if (majorToMinor.fromCoin == from) { RouteEdge[] memory result = new RouteEdge[](1); result[0] = majorToMinor; return result; } // find beginning of route from start major coin to major coin // that is linked to destination RouteEdge[] memory majorToMajor = internalMajorRoute[from][ majorToMinor.fromCoin ]; // check if this part of route exists require( majorToMajor.length > 0, "Exchange: 3!path from major coin" ); // concatenate route and return it RouteEdge[] memory route = new RouteEdge[](majorToMajor.length + 1); route[majorToMajor.length] = majorToMinor; for (uint256 i = 0; i < majorToMajor.length; i++) { route[i] = majorToMajor[i]; } return route; } else { // Chelyabinsk - Glasgow // minor - minor // get paths from source and target coin to // corresponding major coins RouteEdge memory minorToMajor = minorCoins[from]; RouteEdge memory majorToMinor = reverseRouteEdge(minorCoins[to]); // revert if routes are not predefined require( minorToMajor.swapProtocol != 0, "Exchange: 4!path from input coin" ); require( majorToMinor.swapProtocol != 0, "Exchange: 4!path from out coin" ); // if these paths overlap on one coin, simply return it if (minorToMajor.toCoin == majorToMinor.fromCoin) { RouteEdge[] memory result = new RouteEdge[](2); result[0] = minorToMajor; result[1] = majorToMinor; return result; } // connect input and output coins with major coins RouteEdge[] memory majorToMajor = internalMajorRoute[ minorToMajor.toCoin ][majorToMinor.fromCoin]; // check if this part of route exists require( majorToMajor.length > 0, "Exchange: 4!path from major coin" ); // concatenate route and return it RouteEdge[] memory route = new RouteEdge[](majorToMajor.length + 2); route[0] = minorToMajor; route[majorToMajor.length + 1] = majorToMinor; for (uint256 i = 0; i < majorToMajor.length; i++) { route[i + 1] = majorToMajor[i]; } return route; } } /// @notice Get prebuilt route between two major coins /// @param from major coin to start route from /// @param to major coin that should be end of route /// @return Prebuilt route between major coins function getMajorRoute( address from, address to ) external view returns (RouteEdge[] memory) { return internalMajorRoute[from][to]; } function _exchange( address from, address to, uint256 amountIn ) private returns (uint256) { // this code was written at late evening of 14 Feb // i would like to say to solidity: i love you <3 // you're naughty bitch, but anyway RouteEdge[] memory edges = buildRoute(from, to); uint256 swapAmount = amountIn; for (uint256 i = 0; i < edges.length; i++) { RouteEdge memory edge = edges[i]; address adapter = adapters[edge.swapProtocol]; require(adapter != address(0), "Exchange: adapter not found"); // using delegatecall for gas savings (no need to transfer tokens // to/from adapter) bytes memory returnedData = adapter.functionDelegateCall( abi.encodeWithSelector( EXECUTE_SWAP_SIG_HASH, edge.pool, edge.fromCoin, edge.toCoin, swapAmount ) ); // extract return value from delegatecall swapAmount = abi.decode(returnedData, (uint256)); } return swapAmount; } function _enterLiquidityPool( address from, address to, uint256 amountIn ) private returns (uint256) { LpToken memory edge = lpTokens[to]; address adapter = adapters[edge.swapProtocol]; require(adapter != address(0), "Exchange: adapter not found"); // using delegatecall for gas savings (no need to transfer tokens // to adapter) bytes memory returnedData = adapter.functionDelegateCall( abi.encodeWithSelector( ENTER_POOL_SIG_HASH, edge.pool, from, amountIn ) ); // extract return value from delegatecall return abi.decode(returnedData, (uint256)); } function _exitLiquidityPool( address from, address to, uint256 amountIn ) private returns (uint256) { LpToken memory edge = lpTokens[from]; address adapter = adapters[edge.swapProtocol]; require(adapter != address(0), "Exchange: adapter not found"); // using delegatecall for gas savings (no need to transfer tokens // to adapter) bytes memory returnedData = adapter.functionDelegateCall( abi.encodeWithSelector(EXIT_POOL_SIG_HASH, edge.pool, to, amountIn) ); // extract return value from delegatecall return abi.decode(returnedData, (uint256)); } function reverseRouteEdge( RouteEdge memory route ) private pure returns (RouteEdge memory) { address cache = route.fromCoin; route.fromCoin = route.toCoin; route.toCoin = cache; return route; } receive() external payable {} }
// SPDX-License-Identifier: MIT pragma solidity 0.8.11; interface IExchangeAdapter { // 0x6012856e => executeSwap(address,address,address,uint256) function executeSwap( address pool, address fromToken, address toToken, uint256 amount ) external payable returns (uint256); // 0x73ec962e => enterPool(address,address,uint256) function enterPool( address pool, address fromToken, uint256 amount ) external payable returns (uint256); // 0x660cb8d4 => exitPool(address,address,uint256) function exitPool( address pool, address toToken, uint256 amount ) external payable returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.11; interface IWrappedEther { function name() external view returns (string memory); function approve(address guy, uint256 wad) external returns (bool); function totalSupply() external view returns (uint256); function transferFrom( address src, address dst, uint256 wad ) external returns (bool); function withdraw(uint256 wad) external; function decimals() external view returns (uint8); function balanceOf(address) external view returns (uint256); function symbol() external view returns (string memory); function transfer(address dst, uint256 wad) external returns (bool); function deposit() external payable; function allowance(address, address) external view returns (uint256); }
{ "optimizer": { "enabled": true, "runs": 1000000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"gnosis","type":"address"},{"internalType":"bool","name":"isTesting","type":"bool"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ENTER_POOL_SIG_HASH","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"EXECUTE_SWAP_SIG_HASH","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"EXIT_POOL_SIG_HASH","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"","type":"uint32"}],"name":"adapters","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"approveCompleted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"}],"name":"buildRoute","outputs":[{"components":[{"internalType":"uint32","name":"swapProtocol","type":"uint32"},{"internalType":"address","name":"pool","type":"address"},{"internalType":"address","name":"fromCoin","type":"address"},{"internalType":"address","name":"toCoin","type":"address"}],"internalType":"struct Exchange.RouteEdge[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"coins","type":"address[]"},{"internalType":"address[]","name":"spenders","type":"address[]"}],"name":"createApproval","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"swapProtocol","type":"uint32"},{"internalType":"address","name":"pool","type":"address"},{"internalType":"address","name":"fromCoin","type":"address"},{"internalType":"address","name":"toCoin","type":"address"}],"internalType":"struct Exchange.RouteEdge[][]","name":"routes","type":"tuple[][]"}],"name":"createInternalMajorRoutes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"swapProtocol","type":"uint32"},{"internalType":"address","name":"pool","type":"address"}],"internalType":"struct Exchange.LpToken[]","name":"edges","type":"tuple[]"},{"internalType":"address[]","name":"lpTokensAddress","type":"address[]"},{"internalType":"address[][]","name":"entryCoins","type":"address[][]"}],"name":"createLpToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"swapProtocol","type":"uint32"},{"internalType":"address","name":"pool","type":"address"},{"internalType":"address","name":"fromCoin","type":"address"},{"internalType":"address","name":"toCoin","type":"address"}],"internalType":"struct Exchange.RouteEdge[]","name":"edges","type":"tuple[]"}],"name":"createMinorCoinEdge","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"from","type":"address[]"},{"internalType":"address[]","name":"to","type":"address[]"},{"internalType":"bool","name":"removeMajor","type":"bool"}],"name":"deleteInternalMajorRoutes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"edges","type":"address[]"}],"name":"deleteLpToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"edges","type":"address[]"}],"name":"deleteMinorCoinEdge","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"minAmountOut","type":"uint256"}],"name":"exchange","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"}],"name":"getMajorRoute","outputs":[{"components":[{"internalType":"uint32","name":"swapProtocol","type":"uint32"},{"internalType":"address","name":"pool","type":"address"},{"internalType":"address","name":"fromCoin","type":"address"},{"internalType":"address","name":"toCoin","type":"address"}],"internalType":"struct Exchange.RouteEdge[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isMajorCoin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lpTokens","outputs":[{"internalType":"uint32","name":"swapProtocol","type":"uint32"},{"internalType":"address","name":"pool","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"minorCoins","outputs":[{"internalType":"uint32","name":"swapProtocol","type":"uint32"},{"internalType":"address","name":"pool","type":"address"},{"internalType":"address","name":"fromCoin","type":"address"},{"internalType":"address","name":"toCoin","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"adapters_","type":"address[]"},{"internalType":"uint32[]","name":"protocolId","type":"uint32[]"}],"name":"registerAdapters","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"coins","type":"address[]"},{"internalType":"address[]","name":"spenders","type":"address[]"}],"name":"removeApproval","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"setWrappedNativeToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32[]","name":"protocolId","type":"uint32[]"}],"name":"unregisterAdapters","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wrappedEther","outputs":[{"internalType":"contract IWrappedEther","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6080604052600880546001600160a01b03191673c02aaa39b223fe8d0a0e5c4f27ead9083c756cc21790553480156200003757600080fd5b5060405162006037380380620060378339810160408190526200005a9162000193565b600160008190555062000081826001600160a01b0316620000fb60201b620041061760201c565b620000d25760405162461bcd60e51b815260206004820152601660248201527f45786368616e67653a206e6f7420636f6e747261637400000000000000000000604482015260640160405180910390fd5b620000df6000836200010a565b8015620000f357620000f36000336200010a565b5050620001e1565b6001600160a01b03163b151590565b60008281526001602090815260408083206001600160a01b038516845290915290205460ff166200018f5760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45b5050565b60008060408385031215620001a757600080fd5b82516001600160a01b0381168114620001bf57600080fd5b60208401519092508015158114620001d657600080fd5b809150509250929050565b615e4680620001f16000396000f3fe6080604052600436106101d15760003560e01c80638bbb8989116100f7578063b3a2c09711610095578063d547741f11610064578063d547741f14610742578063da058ae314610762578063e6e9d1cf14610782578063f735e634146107a257600080fd5b8063b3a2c0971461069f578063c91f014d146106bf578063ca0fdae014610702578063cfa57daf1461072257600080fd5b8063a217fddf116100d1578063a217fddf146105ab578063af695a20146105c0578063b17b658d146105e0578063b2e59de11461066457600080fd5b80638bbb8989146104bf57806391790cf11461052457806391d148541461055857600080fd5b8063265a9ca61161016f5780635bc4696e1161013e5780635bc4696e146103a85780635f3f0710146104525780636e8811021461047f578063724552461461049f57600080fd5b8063265a9ca6146103185780632f2ff15d14610338578063326705ab1461035857806336568abe1461038857600080fd5b806314671a29116101ab57806314671a2914610255578063170e2c8b146102a75780631e6b208e146102c7578063248a9ca3146102e757600080fd5b806301ffc9a7146101dd5780630ed2fc951461021257806312e63e111461023357600080fd5b366101d857005b600080fd5b3480156101e957600080fd5b506101fd6101f836600461533b565b6107d6565b60405190151581526020015b60405180910390f35b61022561022036600461539f565b61086f565b604051908152602001610209565b34801561023f57600080fd5b5061025361024e366004615431565b610f18565b005b34801561026157600080fd5b506008546102829073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610209565b3480156102b357600080fd5b506102536102c2366004615473565b610fbd565b3480156102d357600080fd5b506102536102e2366004615431565b6111c8565b3480156102f357600080fd5b506102256103023660046154df565b6000908152600160208190526040909120015490565b34801561032457600080fd5b50610253610333366004615473565b61125f565b34801561034457600080fd5b506102536103533660046154f8565b6113a5565b34801561036457600080fd5b506101fd610373366004615528565b60026020526000908152604090205460ff1681565b34801561039457600080fd5b506102536103a33660046154f8565b61144e565b3480156103b457600080fd5b5061040f6103c3366004615528565b60056020526000908152604090208054600182015460029092015463ffffffff82169273ffffffffffffffffffffffffffffffffffffffff640100000000909304831692908116911684565b6040805163ffffffff909516855273ffffffffffffffffffffffffffffffffffffffff938416602086015291831691840191909152166060820152608001610209565b34801561045e57600080fd5b5061047261046d366004615545565b611501565b6040516102099190615573565b34801561048b57600080fd5b5061047261049a366004615545565b6115d9565b3480156104ab57600080fd5b506102536104ba366004615606565b612495565b3480156104cb57600080fd5b506104f37f6012856e0000000000000000000000000000000000000000000000000000000081565b6040517fffffffff000000000000000000000000000000000000000000000000000000009091168152602001610209565b34801561053057600080fd5b506104f37f73ec962e0000000000000000000000000000000000000000000000000000000081565b34801561056457600080fd5b506101fd6105733660046154f8565b600091825260016020908152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b3480156105b757600080fd5b50610225600081565b3480156105cc57600080fd5b506102536105db36600461568a565b612701565b3480156105ec57600080fd5b506106336105fb366004615528565b60066020526000908152604090205463ffffffff811690640100000000900473ffffffffffffffffffffffffffffffffffffffff1682565b6040805163ffffffff909316835273ffffffffffffffffffffffffffffffffffffffff909116602083015201610209565b34801561067057600080fd5b506101fd61067f366004615545565b600360209081526000928352604080842090915290825290205460ff1681565b3480156106ab57600080fd5b506102536106ba366004615473565b612d67565b3480156106cb57600080fd5b506102826106da366004615711565b60076020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b34801561070e57600080fd5b5061025361071d366004615431565b612f19565b34801561072e57600080fd5b5061025361073d36600461572e565b613bc7565b34801561074e57600080fd5b5061025361075d3660046154f8565b613fb5565b34801561076e57600080fd5b5061025361077d366004615528565b613fdb565b34801561078e57600080fd5b5061025361079d366004615431565b61402e565b3480156107ae57600080fd5b506104f37f660cb8d40000000000000000000000000000000000000000000000000000000081565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061086957507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6000600260005414156108e3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b600260005573ffffffffffffffffffffffffffffffffffffffff858116908516141561096b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f45786368616e67653a2066726f6d203d3d20746f00000000000000000000000060448201526064016108da565b73ffffffffffffffffffffffffffffffffffffffff841660009081526006602052604090205463ffffffff1615610a5f576109be73ffffffffffffffffffffffffffffffffffffffff8616333086614122565b60006109cb8686866141fe565b905082811015610a37576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f45786368616e67653a20736c697070616765000000000000000000000000000060448201526064016108da565b610a5873ffffffffffffffffffffffffffffffffffffffff861633836143dd565b9050610f0b565b73ffffffffffffffffffffffffffffffffffffffff851660009081526006602052604090205463ffffffff1615610abf57610ab273ffffffffffffffffffffffffffffffffffffffff8616333086614122565b60006109cb868686614433565b73ffffffffffffffffffffffffffffffffffffffff85161580610b0b575073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ffffffffffffffffffffffffffffffffffffffff8616145b15610cd95773ffffffffffffffffffffffffffffffffffffffff841615801590610b5f575073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ffffffffffffffffffffffffffffffffffffffff851614155b610bc5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f45786368616e67653a2045544820746f2045544800000000000000000000000060448201526064016108da565b348314610c2e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f45786368616e67653a2076616c75652f616d6f756e742064697363726570000060448201526064016108da565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b158015610c9857600080fd5b505af1158015610cac573d6000803e3d6000fd5b5050600854600093506109cb925073ffffffffffffffffffffffffffffffffffffffff1690508686614559565b610cfb73ffffffffffffffffffffffffffffffffffffffff8616333086614122565b73ffffffffffffffffffffffffffffffffffffffff84161580610d47575073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ffffffffffffffffffffffffffffffffffffffff8516145b15610e6e57600854600090610d7490879073ffffffffffffffffffffffffffffffffffffffff1686614559565b905082811015610de0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f45786368616e67653a20736c697070616765000000000000000000000000000060448201526064016108da565b6008546040517f2e1a7d4d0000000000000000000000000000000000000000000000000000000081526004810183905273ffffffffffffffffffffffffffffffffffffffff90911690632e1a7d4d90602401600060405180830381600087803b158015610e4c57600080fd5b505af1158015610e60573d6000803e3d6000fd5b50505050610a5833826146db565b6000610e7b868686614559565b905082811015610ee7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f45786368616e67653a20736c697070616765000000000000000000000000000060448201526064016108da565b610f0873ffffffffffffffffffffffffffffffffffffffff861633836143dd565b90505b6001600055949350505050565b6000610f2381614835565b60005b82811015610fb75760066000858584818110610f4457610f446157f6565b9050602002016020810190610f599190615528565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002080547fffffffffffffffff00000000000000000000000000000000000000000000000016905580610faf81615854565b915050610f26565b50505050565b6000610fc881614835565b838214611031576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45786368616e67653a206c656e6774682064697363726570000000000000000060448201526064016108da565b60005b848110156111c0576110cb848483818110611051576110516157f6565b90506020020160208101906110669190615528565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff888885818110611099576110996157f6565b90506020020160208101906110ae9190615528565b73ffffffffffffffffffffffffffffffffffffffff169190614842565b6001600360008686858181106110e3576110e36157f6565b90506020020160208101906110f89190615528565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000888885818110611146576111466157f6565b905060200201602081019061115b9190615528565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055806111b881615854565b915050611034565b505050505050565b60006111d381614835565b8160005b8181101561125857600760008686848181106111f5576111f56157f6565b905060200201602081019061120a9190615711565b63ffffffff168152602081019190915260400160002080547fffffffffffffffffffffffff00000000000000000000000000000000000000001690558061125081615854565b9150506111d7565b5050505050565b600061126a81614835565b838281146112d4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45786368616e67653a206c656e6774682064697363726570000000000000000060448201526064016108da565b60005b8181101561139c578686828181106112f1576112f16157f6565b90506020020160208101906113069190615528565b6007600087878581811061131c5761131c6157f6565b90506020020160208101906113319190615711565b63ffffffff168152602081019190915260400160002080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff929092169190911790558061139481615854565b9150506112d7565b50505050505050565b600082815260016020819052604090912001546113c181614835565b73ffffffffffffffffffffffffffffffffffffffff82163b61143f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f45786368616e67653a206e6f7420636f6e74726163740000000000000000000060448201526064016108da565b61144983836149c4565b505050565b73ffffffffffffffffffffffffffffffffffffffff811633146114f3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084016108da565b6114fd8282614a83565b5050565b73ffffffffffffffffffffffffffffffffffffffff80831660009081526004602090815260408083209385168352928152828220805484518184028101840190955280855260609493919290919084015b828210156115cd5760008481526020908190206040805160808101825260038602909201805463ffffffff8116845273ffffffffffffffffffffffffffffffffffffffff6401000000009091048116848601526001808301548216938501939093526002909101541660608301529083529092019101611552565b50505050905092915050565b73ffffffffffffffffffffffffffffffffffffffff80831660009081526002602052604080822054928416825290205460609160ff908116911681801561161d5750805b156117675773ffffffffffffffffffffffffffffffffffffffff8086166000908152600460209081526040808320938816835292815282822080548451818402810184019095528085529293929091849084015b828210156116ec5760008481526020908190206040805160808101825260038602909201805463ffffffff8116845273ffffffffffffffffffffffffffffffffffffffff6401000000009091048116848601526001808301548216938501939093526002909101541660608301529083529092019101611671565b505050509050600081511161175d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f45786368616e67653a203121706174682066726f6d206d616a6f7220636f696e60448201526064016108da565b9250610869915050565b811580156117725750805b15611b7f5773ffffffffffffffffffffffffffffffffffffffff8086166000908152600560209081526040918290208251608081018452815463ffffffff8116808352640100000000909104861693820193909352600182015485169381019390935260020154909216606082015290611848576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f45786368616e67653a203221706174682066726f6d20696e70757420636f696e60448201526064016108da565b8473ffffffffffffffffffffffffffffffffffffffff16816060015173ffffffffffffffffffffffffffffffffffffffff16141561191657604080516001808252818301909252600091816020015b6040805160808101825260008082526020808301829052928201819052606082015282527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90920191018161189757905050905081816000815181106118ff576118ff6157f6565b602002602001018190525080945050505050610869565b606081015173ffffffffffffffffffffffffffffffffffffffff9081166000908152600460209081526040808320938916835292815282822080548451818402810184019095528085529293929091849084015b828210156119e55760008481526020908190206040805160808101825260038602909201805463ffffffff8116845273ffffffffffffffffffffffffffffffffffffffff640100000000909104811684860152600180830154821693850193909352600290910154166060830152908352909201910161196a565b5050505090506000815111611a56576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f45786368616e67653a203221706174682066726f6d206d616a6f7220636f696e60448201526064016108da565b600081516001611a6691906158bc565b67ffffffffffffffff811115611a7e57611a7e61588d565b604051908082528060200260200182016040528015611aee57816020015b6040805160808101825260008082526020808301829052928201819052606082015282527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff909201910181611a9c5790505b5090508281600081518110611b0557611b056157f6565b602002602001018190525060005b8251811015611b7257828181518110611b2e57611b2e6157f6565b602002602001015182826001611b4491906158bc565b81518110611b5457611b546157f6565b60200260200101819052508080611b6a90615854565b915050611b13565b5094506108699350505050565b818015611b8a575080155b15611f5b5773ffffffffffffffffffffffffffffffffffffffff8481166000908152600560209081526040808320815160808082018452825463ffffffff80821684526401000000009091048816838701526001840154881683860190815260029094015488166060808501918252865193840187528884529683018890529482018790529401949094528051825186169091529093169092528051909116611c8f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f45786368616e67653a203321706174682066726f6d20696e70757420636f696e60448201526064016108da565b8573ffffffffffffffffffffffffffffffffffffffff16816040015173ffffffffffffffffffffffffffffffffffffffff161415611d0c57604080516001815260c0810182526000918101828152606082018390526080820183905260a0820183905260208201528051909183918391906118ff576118ff6157f6565b73ffffffffffffffffffffffffffffffffffffffff808716600090815260046020908152604080832085820151909416835292815282822080548451818402810184019095528085529293929091849084015b82821015611dda5760008481526020908190206040805160808101825260038602909201805463ffffffff8116845273ffffffffffffffffffffffffffffffffffffffff6401000000009091048116848601526001808301548216938501939093526002909101541660608301529083529092019101611d5f565b5050505090506000815111611e4b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f45786368616e67653a203321706174682066726f6d206d616a6f7220636f696e60448201526064016108da565b600081516001611e5b91906158bc565b67ffffffffffffffff811115611e7357611e7361588d565b604051908082528060200260200182016040528015611ee357816020015b6040805160808101825260008082526020808301829052928201819052606082015282527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff909201910181611e915790505b5090508281835181518110611efa57611efa6157f6565b602002602001018190525060005b8251811015611b7257828181518110611f2357611f236157f6565b6020026020010151828281518110611f3d57611f3d6157f6565b60200260200101819052508080611f5390615854565b915050611f08565b73ffffffffffffffffffffffffffffffffffffffff8581166000908152600560208181526040808420815160808082018452825463ffffffff8082168452640100000000918290048a16848801526001808601548b16858801526002958601548b166060808701919091528f8c168b52988852868a208751808601895281549384168152939092048b16838901528101548a16828701908152940154891681880190815285519283018652888352958201889052938101879052909401859052805183518716909152909416905291825190915063ffffffff1661209b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f45786368616e67653a203421706174682066726f6d20696e70757420636f696e60448201526064016108da565b805163ffffffff16612109576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f45786368616e67653a203421706174682066726f6d206f757420636f696e000060448201526064016108da565b806040015173ffffffffffffffffffffffffffffffffffffffff16826060015173ffffffffffffffffffffffffffffffffffffffff1614156121fc5760408051600280825260608201909252600091816020015b6040805160808101825260008082526020808301829052928201819052606082015282527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90920191018161215d57905050905082816000815181106121c5576121c56157f6565b602002602001018190525081816001815181106121e4576121e46157f6565b60200260200101819052508095505050505050610869565b606082015173ffffffffffffffffffffffffffffffffffffffff908116600090815260046020908152604080832085820151909416835292815282822080548451818402810184019095528085529293929091849084015b828210156122cf5760008481526020908190206040805160808101825260038602909201805463ffffffff8116845273ffffffffffffffffffffffffffffffffffffffff6401000000009091048116848601526001808301548216938501939093526002909101541660608301529083529092019101612254565b5050505090506000815111612340576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f45786368616e67653a203421706174682066726f6d206d616a6f7220636f696e60448201526064016108da565b60008151600261235091906158bc565b67ffffffffffffffff8111156123685761236861588d565b6040519080825280602002602001820160405280156123d857816020015b6040805160808101825260008082526020808301829052928201819052606082015282527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9092019101816123865790505b50905083816000815181106123ef576123ef6157f6565b602002602001018190525082818351600161240a91906158bc565b8151811061241a5761241a6157f6565b602002602001018190525060005b825181101561248757828181518110612443576124436157f6565b60200260200101518282600161245991906158bc565b81518110612469576124696157f6565b6020026020010181905250808061247f90615854565b915050612428565b509550610869945050505050565b60006124a081614835565b848314612509576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45786368616e67653a206c656e6774682064697363726570000000000000000060448201526064016108da565b60005b8581101561139c576004600088888481811061252a5761252a6157f6565b905060200201602081019061253f9190615528565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600086868481811061258d5761258d6157f6565b90506020020160208101906125a29190615528565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006125e891906152ac565b82156126ef57600060026000898985818110612606576126066157f6565b905060200201602081019061261b9190615528565b73ffffffffffffffffffffffffffffffffffffffff1681526020810191909152604001600090812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001692151592909217909155600281878785818110612686576126866157f6565b905060200201602081019061269b9190615528565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169115159190911790555b806126f981615854565b91505061250c565b600061270c81614835565b8160005b818110156112585784848281811061272a5761272a6157f6565b6127409260206080909202019081019150615711565b63ffffffff166127ac576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f45786368616e67653a2070726f746f636f6c207479706520217365740000000060448201526064016108da565b8484828181106127be576127be6157f6565b90506080020160600160208101906127d69190615528565b73ffffffffffffffffffffffffffffffffffffffff168585838181106127fe576127fe6157f6565b90506080020160400160208101906128169190615528565b73ffffffffffffffffffffffffffffffffffffffff161415612894576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f45786368616e67653a2065646765206973206c6f6f700000000000000000000060448201526064016108da565b600360008686848181106128aa576128aa6157f6565b90506080020160200160208101906128c29190615528565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000868684818110612910576129106157f6565b90506080020160400160208101906129289190615528565b73ffffffffffffffffffffffffffffffffffffffff16815260208101919091526040016000205460ff16612ab8576129ce85858381811061296b5761296b6157f6565b90506080020160200160208101906129839190615528565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8787858181106129b6576129b66157f6565b90506080020160400160208101906110ae9190615528565b6001600360008787858181106129e6576129e66157f6565b90506080020160200160208101906129fe9190615528565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000878785818110612a4c57612a4c6157f6565b9050608002016040016020810190612a649190615528565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169115159190911790555b60036000868684818110612ace57612ace6157f6565b9050608002016020016020810190612ae69190615528565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000868684818110612b3457612b346157f6565b9050608002016060016020810190612b4c9190615528565b73ffffffffffffffffffffffffffffffffffffffff16815260208101919091526040016000205460ff16612cdc57612bf2858583818110612b8f57612b8f6157f6565b9050608002016020016020810190612ba79190615528565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff878785818110612bda57612bda6157f6565b90506080020160600160208101906110ae9190615528565b600160036000878785818110612c0a57612c0a6157f6565b9050608002016020016020810190612c229190615528565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000878785818110612c7057612c706157f6565b9050608002016060016020810190612c889190615528565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169115159190911790555b848482818110612cee57612cee6157f6565b90506080020160056000878785818110612d0a57612d0a6157f6565b9050608002016040016020810190612d229190615528565b73ffffffffffffffffffffffffffffffffffffffff1681526020810191909152604001600020612d5282826158d4565b50819050612d5f81615854565b915050612710565b6000612d7281614835565b838214612ddb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45786368616e67653a206c656e6774682064697363726570000000000000000060448201526064016108da565b60005b848110156111c057612e24848483818110612dfb57612dfb6157f6565b9050602002016020810190612e109190615528565b6000888885818110611099576110996157f6565b600060036000868685818110612e3c57612e3c6157f6565b9050602002016020810190612e519190615528565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000888885818110612e9f57612e9f6157f6565b9050602002016020810190612eb49190615528565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001691151591909117905580612f1181615854565b915050612dde565b6000612f2481614835565b60005b82811015610fb7576000848483818110612f4357612f436157f6565b9050602002810190612f559190615a0e565b808060200260200160405190810160405280939291908181526020016000905b82821015612fa157612f9260808302860136819003810190615a76565b81526020019060010190612f75565b50505050509050600081600081518110612fbd57612fbd6157f6565b602002602001015160400151905060008260018451612fdc9190615b22565b81518110612fec57612fec6157f6565b60200260200101516060015190508073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613090576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f45786368616e67653a20726f757465206973206c6f6f7000000000000000000060448201526064016108da565b73ffffffffffffffffffffffffffffffffffffffff808316600090815260046020908152604080832093851683529290522054156131055773ffffffffffffffffffffffffffffffffffffffff80831660009081526004602090815260408083209385168352929052908120613105916152ac565b82600081518110613118576131186157f6565b60200260200101516000015163ffffffff1660001415613194576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f45786368616e67653a2070726f746f636f6c207479706520217365740000000060448201526064016108da565b60036000846000815181106131ab576131ab6157f6565b60200260200101516020015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084600081518110613206576132066157f6565b60209081029190910181015160409081015173ffffffffffffffffffffffffffffffffffffffff16835290820192909252016000205460ff1661339c576132ca83600081518110613259576132596157f6565b6020026020010151602001517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff85600081518110613299576132996157f6565b60200260200101516040015173ffffffffffffffffffffffffffffffffffffffff166148429092919063ffffffff16565b600160036000856000815181106132e3576132e36157f6565b60200260200101516020015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008560008151811061333e5761333e6157f6565b60200260200101516040015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505b826000815181106133af576133af6157f6565b60200260200101516060015173ffffffffffffffffffffffffffffffffffffffff16836000815181106133e4576133e46157f6565b60200260200101516040015173ffffffffffffffffffffffffffffffffffffffff16141561346e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f45786368616e67653a2065646765206973206c6f6f700000000000000000000060448201526064016108da565b73ffffffffffffffffffffffffffffffffffffffff808316600090815260046020908152604080832093851683529290529081208451909185916134b4576134b46157f6565b602090810291909101810151825460018082018555600094855293839020825160039092020180549383015163ffffffff9092167fffffffffffffffff0000000000000000000000000000000000000000000000009094169390931764010000000073ffffffffffffffffffffffffffffffffffffffff92831602178355604082015183850180547fffffffffffffffffffffffff0000000000000000000000000000000000000000908116928416929092179055606090920151600290930180549092169216919091179055835114156135f55773ffffffffffffffffffffffffffffffffffffffff918216600090815260026020526040808220805460017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00918216811790925593909416825290208054909116909117905550613bb5565b60008360008151811061360a5761360a6157f6565b60200260200101516060015190506000600190505b8451811015613b4b578173ffffffffffffffffffffffffffffffffffffffff16858281518110613651576136516157f6565b60200260200101516040015173ffffffffffffffffffffffffffffffffffffffff16146136da576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f45786368616e67653a20726f7574652062726f6b656e0000000000000000000060448201526064016108da565b8481815181106136ec576136ec6157f6565b602002602001015160600151915084818151811061370c5761370c6157f6565b60200260200101516000015163ffffffff1660001415613788576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f45786368616e67653a2070726f746f636f6c207479706520217365740000000060448201526064016108da565b84818151811061379a5761379a6157f6565b60200260200101516060015173ffffffffffffffffffffffffffffffffffffffff168582815181106137ce576137ce6157f6565b60200260200101516040015173ffffffffffffffffffffffffffffffffffffffff161415613858576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f45786368616e67653a2065646765206973206c6f6f700000000000000000000060448201526064016108da565b6003600086838151811061386e5761386e6157f6565b60200260200101516020015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008683815181106138c8576138c86157f6565b60209081029190910181015160409081015173ffffffffffffffffffffffffffffffffffffffff16835290820192909252016000205460ff16613a295761395985828151811061391a5761391a6157f6565b6020026020010151602001517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff878481518110613299576132996157f6565b600160036000878481518110613971576139716157f6565b60200260200101516020015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008784815181106139cb576139cb6157f6565b60200260200101516040015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505b73ffffffffffffffffffffffffffffffffffffffff80851660009081526004602090815260408083209387168352929052208551869083908110613a6f57613a6f6157f6565b602090810291909101810151825460018082018555600094855293839020825160039092020180549383015163ffffffff9092167fffffffffffffffff0000000000000000000000000000000000000000000000009094169390931764010000000073ffffffffffffffffffffffffffffffffffffffff92831602178355604082015193830180547fffffffffffffffffffffffff000000000000000000000000000000000000000090811695831695909517905560609091015160029092018054909316911617905580613b4381615854565b91505061361f565b505073ffffffffffffffffffffffffffffffffffffffff918216600090815260026020526040808220805460017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff009182168117909255939094168252902080549091169091179055505b80613bbf81615854565b915050612f27565b6000613bd281614835565b8582148015613be057508184145b613c46576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45786368616e67653a206c656e6774682064697363726570000000000000000060448201526064016108da565b60005b86811015613fab576000888883818110613c6557613c656157f6565b905060400201803603810190613c7b9190615b39565b805190915063ffffffff16613cec576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f45786368616e67653a2070726f746f636f6c207479706520217365740000000060448201526064016108da565b60005b858584818110613d0157613d016157f6565b9050602002810190613d139190615bbf565b9050811015613ef75760208083015173ffffffffffffffffffffffffffffffffffffffff16600090815260039091526040812090878786818110613d5957613d596157f6565b9050602002810190613d6b9190615bbf565b84818110613d7b57613d7b6157f6565b9050602002016020810190613d909190615528565b73ffffffffffffffffffffffffffffffffffffffff16815260208101919091526040016000205460ff16613ee557613e1b82602001517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff888887818110613df957613df96157f6565b9050602002810190613e0b9190615bbf565b85818110611099576110996157f6565b60208083015173ffffffffffffffffffffffffffffffffffffffff166000908152600390915260408120600191888887818110613e5a57613e5a6157f6565b9050602002810190613e6c9190615bbf565b85818110613e7c57613e7c6157f6565b9050602002016020810190613e919190615528565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169115159190911790555b80613eef81615854565b915050613cef565b508060066000898986818110613f0f57613f0f6157f6565b9050602002016020810190613f249190615528565b73ffffffffffffffffffffffffffffffffffffffff90811682526020808301939093526040909101600020835181549490930151909116640100000000027fffffffffffffffff00000000000000000000000000000000000000000000000090931663ffffffff909216919091179190911790555080613fa381615854565b915050613c49565b5050505050505050565b60008281526001602081905260409091200154613fd181614835565b6114498383614a83565b6000613fe681614835565b50600880547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600061403981614835565b60005b82811015610fb7576005600085858481811061405a5761405a6157f6565b905060200201602081019061406f9190615528565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002080547fffffffffffffffff0000000000000000000000000000000000000000000000001681556001810180547fffffffffffffffffffffffff0000000000000000000000000000000000000000908116909155600290910180549091169055806140fe81615854565b91505061403c565b73ffffffffffffffffffffffffffffffffffffffff163b151590565b60405173ffffffffffffffffffffffffffffffffffffffff80851660248301528316604482015260648101829052610fb79085907f23b872dd00000000000000000000000000000000000000000000000000000000906084015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152614b3e565b73ffffffffffffffffffffffffffffffffffffffff808316600090815260066020908152604080832081518083018352905463ffffffff8116808352640100000000909104861682850152845260079092528220549192909116806142bf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f45786368616e67653a2061646170746572206e6f7420666f756e64000000000060448201526064016108da565b602082015160405173ffffffffffffffffffffffffffffffffffffffff91821660248201529087166044820152606481018590526000906143ba907f73ec962e00000000000000000000000000000000000000000000000000000000906084015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009093169290921790915273ffffffffffffffffffffffffffffffffffffffff841690614c4a565b9050808060200190518101906143d09190615c27565b93505050505b9392505050565b60405173ffffffffffffffffffffffffffffffffffffffff83166024820152604481018290526114499084907fa9059cbb000000000000000000000000000000000000000000000000000000009060640161417c565b73ffffffffffffffffffffffffffffffffffffffff808416600090815260066020908152604080832081518083018352905463ffffffff8116808352640100000000909104861682850152845260079092528220549192909116806144f4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f45786368616e67653a2061646170746572206e6f7420666f756e64000000000060448201526064016108da565b602082015160405173ffffffffffffffffffffffffffffffffffffffff91821660248201529086166044820152606481018590526000906143ba907f660cb8d40000000000000000000000000000000000000000000000000000000090608401614320565b60008061456685856115d9565b90508260005b82518110156146d1576000838281518110614589576145896157f6565b602090810291909101810151805163ffffffff166000908152600790925260409091205490915073ffffffffffffffffffffffffffffffffffffffff168061462d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f45786368616e67653a2061646170746572206e6f7420666f756e64000000000060448201526064016108da565b60208201516040808401516060850151915173ffffffffffffffffffffffffffffffffffffffff9384166024820152908316604482015291166064820152608481018590526000906146a3907f6012856e000000000000000000000000000000000000000000000000000000009060a401614320565b9050808060200190518101906146b99190615c27565b945050505080806146c990615854565b91505061456c565b5095945050505050565b80471015614745576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016108da565b60008273ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d806000811461479f576040519150601f19603f3d011682016040523d82523d6000602084013e6147a4565b606091505b5050905080611449576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016108da565b61483f8133614c6f565b50565b8015806148e257506040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff838116602483015284169063dd62ed3e90604401602060405180830381865afa1580156148bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906148e09190615c27565b155b61496e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e63650000000000000000000060648201526084016108da565b60405173ffffffffffffffffffffffffffffffffffffffff83166024820152604481018290526114499084907f095ea7b3000000000000000000000000000000000000000000000000000000009060640161417c565b600082815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff166114fd57600082815260016020818152604080842073ffffffffffffffffffffffffffffffffffffffff8616808652925280842080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b600082815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16156114fd57600082815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000614ba0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16614d419092919063ffffffff16565b8051909150156114495780806020019051810190614bbe9190615c40565b611449576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016108da565b60606143d68383604051806060016040528060278152602001615dea60279139614d58565b600082815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff166114fd57614cc78173ffffffffffffffffffffffffffffffffffffffff166014614e80565b614cd2836020614e80565b604051602001614ce3929190615c89565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a00000000000000000000000000000000000000000000000000000000082526108da91600401615d0a565b6060614d5084846000856150c3565b949350505050565b606073ffffffffffffffffffffffffffffffffffffffff84163b614dfe576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e7472616374000000000000000000000000000000000000000000000000000060648201526084016108da565b6000808573ffffffffffffffffffffffffffffffffffffffff1685604051614e269190615d5b565b600060405180830381855af49150503d8060008114614e61576040519150601f19603f3d011682016040523d82523d6000602084013e614e66565b606091505b5091509150614e76828286615259565b9695505050505050565b60606000614e8f836002615d77565b614e9a9060026158bc565b67ffffffffffffffff811115614eb257614eb261588d565b6040519080825280601f01601f191660200182016040528015614edc576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110614f1357614f136157f6565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110614f7657614f766157f6565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000614fb2846002615d77565b614fbd9060016158bc565b90505b600181111561505a577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110614ffe57614ffe6157f6565b1a60f81b828281518110615014576150146157f6565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c9361505381615db4565b9050614fc0565b5083156143d6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016108da565b606082471015615155576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016108da565b73ffffffffffffffffffffffffffffffffffffffff85163b6151d3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016108da565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516151fc9190615d5b565b60006040518083038185875af1925050503d8060008114615239576040519150601f19603f3d011682016040523d82523d6000602084013e61523e565b606091505b509150915061524e828286615259565b979650505050505050565b606083156152685750816143d6565b8251156152785782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108da9190615d0a565b508054600082556003029060005260206000209081019061483f91905b808211156153375780547fffffffffffffffff0000000000000000000000000000000000000000000000001681556001810180547fffffffffffffffffffffffff000000000000000000000000000000000000000090811690915560028201805490911690556003016152c9565b5090565b60006020828403121561534d57600080fd5b81357fffffffff00000000000000000000000000000000000000000000000000000000811681146143d657600080fd5b73ffffffffffffffffffffffffffffffffffffffff8116811461483f57600080fd5b600080600080608085870312156153b557600080fd5b84356153c08161537d565b935060208501356153d08161537d565b93969395505050506040820135916060013590565b60008083601f8401126153f757600080fd5b50813567ffffffffffffffff81111561540f57600080fd5b6020830191508360208260051b850101111561542a57600080fd5b9250929050565b6000806020838503121561544457600080fd5b823567ffffffffffffffff81111561545b57600080fd5b615467858286016153e5565b90969095509350505050565b6000806000806040858703121561548957600080fd5b843567ffffffffffffffff808211156154a157600080fd5b6154ad888389016153e5565b909650945060208701359150808211156154c657600080fd5b506154d3878288016153e5565b95989497509550505050565b6000602082840312156154f157600080fd5b5035919050565b6000806040838503121561550b57600080fd5b82359150602083013561551d8161537d565b809150509250929050565b60006020828403121561553a57600080fd5b81356143d68161537d565b6000806040838503121561555857600080fd5b82356155638161537d565b9150602083013561551d8161537d565b602080825282518282018190526000919060409081850190868401855b828110156155eb578151805163ffffffff1685528681015173ffffffffffffffffffffffffffffffffffffffff9081168887015286820151811687870152606091820151169085015260809093019290850190600101615590565b5091979650505050505050565b801515811461483f57600080fd5b60008060008060006060868803121561561e57600080fd5b853567ffffffffffffffff8082111561563657600080fd5b61564289838a016153e5565b9097509550602088013591508082111561565b57600080fd5b50615668888289016153e5565b909450925050604086013561567c816155f8565b809150509295509295909350565b6000806020838503121561569d57600080fd5b823567ffffffffffffffff808211156156b557600080fd5b818501915085601f8301126156c957600080fd5b8135818111156156d857600080fd5b8660208260071b85010111156156ed57600080fd5b60209290920196919550909350505050565b63ffffffff8116811461483f57600080fd5b60006020828403121561572357600080fd5b81356143d6816156ff565b6000806000806000806060878903121561574757600080fd5b863567ffffffffffffffff8082111561575f57600080fd5b818901915089601f83011261577357600080fd5b81358181111561578257600080fd5b8a60208260061b850101111561579757600080fd5b6020928301985096509088013590808211156157b257600080fd5b6157be8a838b016153e5565b909650945060408901359150808211156157d757600080fd5b506157e489828a016153e5565b979a9699509497509295939492505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561588657615886615825565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600082198211156158cf576158cf615825565b500190565b81356158df816156ff565b63ffffffff811690508154817fffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000008216178355602084013561591f8161537d565b77ffffffffffffffffffffffffffffffffffffffff000000008160201b16837fffffffffffffffff00000000000000000000000000000000000000000000000084161717845550505060408201356159768161537d565b6001820180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83161790555060608201356159c78161537d565b6002820180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8316179055505050565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112615a4357600080fd5b83018035915067ffffffffffffffff821115615a5e57600080fd5b6020019150600781901b360382131561542a57600080fd5b600060808284031215615a8857600080fd5b6040516080810181811067ffffffffffffffff82111715615ad2577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040528235615ae0816156ff565b81526020830135615af08161537d565b60208201526040830135615b038161537d565b60408201526060830135615b168161537d565b60608201529392505050565b600082821015615b3457615b34615825565b500390565b600060408284031215615b4b57600080fd5b6040516040810181811067ffffffffffffffff82111715615b95577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040528235615ba3816156ff565b81526020830135615bb38161537d565b60208201529392505050565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112615bf457600080fd5b83018035915067ffffffffffffffff821115615c0f57600080fd5b6020019150600581901b360382131561542a57600080fd5b600060208284031215615c3957600080fd5b5051919050565b600060208284031215615c5257600080fd5b81516143d6816155f8565b60005b83811015615c78578181015183820152602001615c60565b83811115610fb75750506000910152565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351615cc1816017850160208801615c5d565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351615cfe816028840160208801615c5d565b01602801949350505050565b6020815260008251806020840152615d29816040850160208701615c5d565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b60008251615d6d818460208701615c5d565b9190910192915050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615615daf57615daf615825565b500290565b600081615dc357615dc3615825565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff019056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a264697066735822122026fbed6f1b4aca2a492c9d63da117b6f4ce76b7b687c0321baac7f485f69743d64736f6c634300080b0033000000000000000000000000c7061dd515b602f86733fa0a0dbb6d6e6b34aed40000000000000000000000000000000000000000000000000000000000000001
Deployed Bytecode
0x6080604052600436106101d15760003560e01c80638bbb8989116100f7578063b3a2c09711610095578063d547741f11610064578063d547741f14610742578063da058ae314610762578063e6e9d1cf14610782578063f735e634146107a257600080fd5b8063b3a2c0971461069f578063c91f014d146106bf578063ca0fdae014610702578063cfa57daf1461072257600080fd5b8063a217fddf116100d1578063a217fddf146105ab578063af695a20146105c0578063b17b658d146105e0578063b2e59de11461066457600080fd5b80638bbb8989146104bf57806391790cf11461052457806391d148541461055857600080fd5b8063265a9ca61161016f5780635bc4696e1161013e5780635bc4696e146103a85780635f3f0710146104525780636e8811021461047f578063724552461461049f57600080fd5b8063265a9ca6146103185780632f2ff15d14610338578063326705ab1461035857806336568abe1461038857600080fd5b806314671a29116101ab57806314671a2914610255578063170e2c8b146102a75780631e6b208e146102c7578063248a9ca3146102e757600080fd5b806301ffc9a7146101dd5780630ed2fc951461021257806312e63e111461023357600080fd5b366101d857005b600080fd5b3480156101e957600080fd5b506101fd6101f836600461533b565b6107d6565b60405190151581526020015b60405180910390f35b61022561022036600461539f565b61086f565b604051908152602001610209565b34801561023f57600080fd5b5061025361024e366004615431565b610f18565b005b34801561026157600080fd5b506008546102829073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610209565b3480156102b357600080fd5b506102536102c2366004615473565b610fbd565b3480156102d357600080fd5b506102536102e2366004615431565b6111c8565b3480156102f357600080fd5b506102256103023660046154df565b6000908152600160208190526040909120015490565b34801561032457600080fd5b50610253610333366004615473565b61125f565b34801561034457600080fd5b506102536103533660046154f8565b6113a5565b34801561036457600080fd5b506101fd610373366004615528565b60026020526000908152604090205460ff1681565b34801561039457600080fd5b506102536103a33660046154f8565b61144e565b3480156103b457600080fd5b5061040f6103c3366004615528565b60056020526000908152604090208054600182015460029092015463ffffffff82169273ffffffffffffffffffffffffffffffffffffffff640100000000909304831692908116911684565b6040805163ffffffff909516855273ffffffffffffffffffffffffffffffffffffffff938416602086015291831691840191909152166060820152608001610209565b34801561045e57600080fd5b5061047261046d366004615545565b611501565b6040516102099190615573565b34801561048b57600080fd5b5061047261049a366004615545565b6115d9565b3480156104ab57600080fd5b506102536104ba366004615606565b612495565b3480156104cb57600080fd5b506104f37f6012856e0000000000000000000000000000000000000000000000000000000081565b6040517fffffffff000000000000000000000000000000000000000000000000000000009091168152602001610209565b34801561053057600080fd5b506104f37f73ec962e0000000000000000000000000000000000000000000000000000000081565b34801561056457600080fd5b506101fd6105733660046154f8565b600091825260016020908152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b3480156105b757600080fd5b50610225600081565b3480156105cc57600080fd5b506102536105db36600461568a565b612701565b3480156105ec57600080fd5b506106336105fb366004615528565b60066020526000908152604090205463ffffffff811690640100000000900473ffffffffffffffffffffffffffffffffffffffff1682565b6040805163ffffffff909316835273ffffffffffffffffffffffffffffffffffffffff909116602083015201610209565b34801561067057600080fd5b506101fd61067f366004615545565b600360209081526000928352604080842090915290825290205460ff1681565b3480156106ab57600080fd5b506102536106ba366004615473565b612d67565b3480156106cb57600080fd5b506102826106da366004615711565b60076020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b34801561070e57600080fd5b5061025361071d366004615431565b612f19565b34801561072e57600080fd5b5061025361073d36600461572e565b613bc7565b34801561074e57600080fd5b5061025361075d3660046154f8565b613fb5565b34801561076e57600080fd5b5061025361077d366004615528565b613fdb565b34801561078e57600080fd5b5061025361079d366004615431565b61402e565b3480156107ae57600080fd5b506104f37f660cb8d40000000000000000000000000000000000000000000000000000000081565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061086957507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6000600260005414156108e3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b600260005573ffffffffffffffffffffffffffffffffffffffff858116908516141561096b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f45786368616e67653a2066726f6d203d3d20746f00000000000000000000000060448201526064016108da565b73ffffffffffffffffffffffffffffffffffffffff841660009081526006602052604090205463ffffffff1615610a5f576109be73ffffffffffffffffffffffffffffffffffffffff8616333086614122565b60006109cb8686866141fe565b905082811015610a37576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f45786368616e67653a20736c697070616765000000000000000000000000000060448201526064016108da565b610a5873ffffffffffffffffffffffffffffffffffffffff861633836143dd565b9050610f0b565b73ffffffffffffffffffffffffffffffffffffffff851660009081526006602052604090205463ffffffff1615610abf57610ab273ffffffffffffffffffffffffffffffffffffffff8616333086614122565b60006109cb868686614433565b73ffffffffffffffffffffffffffffffffffffffff85161580610b0b575073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ffffffffffffffffffffffffffffffffffffffff8616145b15610cd95773ffffffffffffffffffffffffffffffffffffffff841615801590610b5f575073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ffffffffffffffffffffffffffffffffffffffff851614155b610bc5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f45786368616e67653a2045544820746f2045544800000000000000000000000060448201526064016108da565b348314610c2e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f45786368616e67653a2076616c75652f616d6f756e742064697363726570000060448201526064016108da565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b158015610c9857600080fd5b505af1158015610cac573d6000803e3d6000fd5b5050600854600093506109cb925073ffffffffffffffffffffffffffffffffffffffff1690508686614559565b610cfb73ffffffffffffffffffffffffffffffffffffffff8616333086614122565b73ffffffffffffffffffffffffffffffffffffffff84161580610d47575073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ffffffffffffffffffffffffffffffffffffffff8516145b15610e6e57600854600090610d7490879073ffffffffffffffffffffffffffffffffffffffff1686614559565b905082811015610de0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f45786368616e67653a20736c697070616765000000000000000000000000000060448201526064016108da565b6008546040517f2e1a7d4d0000000000000000000000000000000000000000000000000000000081526004810183905273ffffffffffffffffffffffffffffffffffffffff90911690632e1a7d4d90602401600060405180830381600087803b158015610e4c57600080fd5b505af1158015610e60573d6000803e3d6000fd5b50505050610a5833826146db565b6000610e7b868686614559565b905082811015610ee7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f45786368616e67653a20736c697070616765000000000000000000000000000060448201526064016108da565b610f0873ffffffffffffffffffffffffffffffffffffffff861633836143dd565b90505b6001600055949350505050565b6000610f2381614835565b60005b82811015610fb75760066000858584818110610f4457610f446157f6565b9050602002016020810190610f599190615528565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002080547fffffffffffffffff00000000000000000000000000000000000000000000000016905580610faf81615854565b915050610f26565b50505050565b6000610fc881614835565b838214611031576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45786368616e67653a206c656e6774682064697363726570000000000000000060448201526064016108da565b60005b848110156111c0576110cb848483818110611051576110516157f6565b90506020020160208101906110669190615528565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff888885818110611099576110996157f6565b90506020020160208101906110ae9190615528565b73ffffffffffffffffffffffffffffffffffffffff169190614842565b6001600360008686858181106110e3576110e36157f6565b90506020020160208101906110f89190615528565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000888885818110611146576111466157f6565b905060200201602081019061115b9190615528565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055806111b881615854565b915050611034565b505050505050565b60006111d381614835565b8160005b8181101561125857600760008686848181106111f5576111f56157f6565b905060200201602081019061120a9190615711565b63ffffffff168152602081019190915260400160002080547fffffffffffffffffffffffff00000000000000000000000000000000000000001690558061125081615854565b9150506111d7565b5050505050565b600061126a81614835565b838281146112d4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45786368616e67653a206c656e6774682064697363726570000000000000000060448201526064016108da565b60005b8181101561139c578686828181106112f1576112f16157f6565b90506020020160208101906113069190615528565b6007600087878581811061131c5761131c6157f6565b90506020020160208101906113319190615711565b63ffffffff168152602081019190915260400160002080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff929092169190911790558061139481615854565b9150506112d7565b50505050505050565b600082815260016020819052604090912001546113c181614835565b73ffffffffffffffffffffffffffffffffffffffff82163b61143f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f45786368616e67653a206e6f7420636f6e74726163740000000000000000000060448201526064016108da565b61144983836149c4565b505050565b73ffffffffffffffffffffffffffffffffffffffff811633146114f3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084016108da565b6114fd8282614a83565b5050565b73ffffffffffffffffffffffffffffffffffffffff80831660009081526004602090815260408083209385168352928152828220805484518184028101840190955280855260609493919290919084015b828210156115cd5760008481526020908190206040805160808101825260038602909201805463ffffffff8116845273ffffffffffffffffffffffffffffffffffffffff6401000000009091048116848601526001808301548216938501939093526002909101541660608301529083529092019101611552565b50505050905092915050565b73ffffffffffffffffffffffffffffffffffffffff80831660009081526002602052604080822054928416825290205460609160ff908116911681801561161d5750805b156117675773ffffffffffffffffffffffffffffffffffffffff8086166000908152600460209081526040808320938816835292815282822080548451818402810184019095528085529293929091849084015b828210156116ec5760008481526020908190206040805160808101825260038602909201805463ffffffff8116845273ffffffffffffffffffffffffffffffffffffffff6401000000009091048116848601526001808301548216938501939093526002909101541660608301529083529092019101611671565b505050509050600081511161175d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f45786368616e67653a203121706174682066726f6d206d616a6f7220636f696e60448201526064016108da565b9250610869915050565b811580156117725750805b15611b7f5773ffffffffffffffffffffffffffffffffffffffff8086166000908152600560209081526040918290208251608081018452815463ffffffff8116808352640100000000909104861693820193909352600182015485169381019390935260020154909216606082015290611848576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f45786368616e67653a203221706174682066726f6d20696e70757420636f696e60448201526064016108da565b8473ffffffffffffffffffffffffffffffffffffffff16816060015173ffffffffffffffffffffffffffffffffffffffff16141561191657604080516001808252818301909252600091816020015b6040805160808101825260008082526020808301829052928201819052606082015282527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90920191018161189757905050905081816000815181106118ff576118ff6157f6565b602002602001018190525080945050505050610869565b606081015173ffffffffffffffffffffffffffffffffffffffff9081166000908152600460209081526040808320938916835292815282822080548451818402810184019095528085529293929091849084015b828210156119e55760008481526020908190206040805160808101825260038602909201805463ffffffff8116845273ffffffffffffffffffffffffffffffffffffffff640100000000909104811684860152600180830154821693850193909352600290910154166060830152908352909201910161196a565b5050505090506000815111611a56576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f45786368616e67653a203221706174682066726f6d206d616a6f7220636f696e60448201526064016108da565b600081516001611a6691906158bc565b67ffffffffffffffff811115611a7e57611a7e61588d565b604051908082528060200260200182016040528015611aee57816020015b6040805160808101825260008082526020808301829052928201819052606082015282527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff909201910181611a9c5790505b5090508281600081518110611b0557611b056157f6565b602002602001018190525060005b8251811015611b7257828181518110611b2e57611b2e6157f6565b602002602001015182826001611b4491906158bc565b81518110611b5457611b546157f6565b60200260200101819052508080611b6a90615854565b915050611b13565b5094506108699350505050565b818015611b8a575080155b15611f5b5773ffffffffffffffffffffffffffffffffffffffff8481166000908152600560209081526040808320815160808082018452825463ffffffff80821684526401000000009091048816838701526001840154881683860190815260029094015488166060808501918252865193840187528884529683018890529482018790529401949094528051825186169091529093169092528051909116611c8f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f45786368616e67653a203321706174682066726f6d20696e70757420636f696e60448201526064016108da565b8573ffffffffffffffffffffffffffffffffffffffff16816040015173ffffffffffffffffffffffffffffffffffffffff161415611d0c57604080516001815260c0810182526000918101828152606082018390526080820183905260a0820183905260208201528051909183918391906118ff576118ff6157f6565b73ffffffffffffffffffffffffffffffffffffffff808716600090815260046020908152604080832085820151909416835292815282822080548451818402810184019095528085529293929091849084015b82821015611dda5760008481526020908190206040805160808101825260038602909201805463ffffffff8116845273ffffffffffffffffffffffffffffffffffffffff6401000000009091048116848601526001808301548216938501939093526002909101541660608301529083529092019101611d5f565b5050505090506000815111611e4b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f45786368616e67653a203321706174682066726f6d206d616a6f7220636f696e60448201526064016108da565b600081516001611e5b91906158bc565b67ffffffffffffffff811115611e7357611e7361588d565b604051908082528060200260200182016040528015611ee357816020015b6040805160808101825260008082526020808301829052928201819052606082015282527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff909201910181611e915790505b5090508281835181518110611efa57611efa6157f6565b602002602001018190525060005b8251811015611b7257828181518110611f2357611f236157f6565b6020026020010151828281518110611f3d57611f3d6157f6565b60200260200101819052508080611f5390615854565b915050611f08565b73ffffffffffffffffffffffffffffffffffffffff8581166000908152600560208181526040808420815160808082018452825463ffffffff8082168452640100000000918290048a16848801526001808601548b16858801526002958601548b166060808701919091528f8c168b52988852868a208751808601895281549384168152939092048b16838901528101548a16828701908152940154891681880190815285519283018652888352958201889052938101879052909401859052805183518716909152909416905291825190915063ffffffff1661209b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f45786368616e67653a203421706174682066726f6d20696e70757420636f696e60448201526064016108da565b805163ffffffff16612109576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f45786368616e67653a203421706174682066726f6d206f757420636f696e000060448201526064016108da565b806040015173ffffffffffffffffffffffffffffffffffffffff16826060015173ffffffffffffffffffffffffffffffffffffffff1614156121fc5760408051600280825260608201909252600091816020015b6040805160808101825260008082526020808301829052928201819052606082015282527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90920191018161215d57905050905082816000815181106121c5576121c56157f6565b602002602001018190525081816001815181106121e4576121e46157f6565b60200260200101819052508095505050505050610869565b606082015173ffffffffffffffffffffffffffffffffffffffff908116600090815260046020908152604080832085820151909416835292815282822080548451818402810184019095528085529293929091849084015b828210156122cf5760008481526020908190206040805160808101825260038602909201805463ffffffff8116845273ffffffffffffffffffffffffffffffffffffffff6401000000009091048116848601526001808301548216938501939093526002909101541660608301529083529092019101612254565b5050505090506000815111612340576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f45786368616e67653a203421706174682066726f6d206d616a6f7220636f696e60448201526064016108da565b60008151600261235091906158bc565b67ffffffffffffffff8111156123685761236861588d565b6040519080825280602002602001820160405280156123d857816020015b6040805160808101825260008082526020808301829052928201819052606082015282527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9092019101816123865790505b50905083816000815181106123ef576123ef6157f6565b602002602001018190525082818351600161240a91906158bc565b8151811061241a5761241a6157f6565b602002602001018190525060005b825181101561248757828181518110612443576124436157f6565b60200260200101518282600161245991906158bc565b81518110612469576124696157f6565b6020026020010181905250808061247f90615854565b915050612428565b509550610869945050505050565b60006124a081614835565b848314612509576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45786368616e67653a206c656e6774682064697363726570000000000000000060448201526064016108da565b60005b8581101561139c576004600088888481811061252a5761252a6157f6565b905060200201602081019061253f9190615528565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600086868481811061258d5761258d6157f6565b90506020020160208101906125a29190615528565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006125e891906152ac565b82156126ef57600060026000898985818110612606576126066157f6565b905060200201602081019061261b9190615528565b73ffffffffffffffffffffffffffffffffffffffff1681526020810191909152604001600090812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001692151592909217909155600281878785818110612686576126866157f6565b905060200201602081019061269b9190615528565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169115159190911790555b806126f981615854565b91505061250c565b600061270c81614835565b8160005b818110156112585784848281811061272a5761272a6157f6565b6127409260206080909202019081019150615711565b63ffffffff166127ac576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f45786368616e67653a2070726f746f636f6c207479706520217365740000000060448201526064016108da565b8484828181106127be576127be6157f6565b90506080020160600160208101906127d69190615528565b73ffffffffffffffffffffffffffffffffffffffff168585838181106127fe576127fe6157f6565b90506080020160400160208101906128169190615528565b73ffffffffffffffffffffffffffffffffffffffff161415612894576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f45786368616e67653a2065646765206973206c6f6f700000000000000000000060448201526064016108da565b600360008686848181106128aa576128aa6157f6565b90506080020160200160208101906128c29190615528565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000868684818110612910576129106157f6565b90506080020160400160208101906129289190615528565b73ffffffffffffffffffffffffffffffffffffffff16815260208101919091526040016000205460ff16612ab8576129ce85858381811061296b5761296b6157f6565b90506080020160200160208101906129839190615528565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8787858181106129b6576129b66157f6565b90506080020160400160208101906110ae9190615528565b6001600360008787858181106129e6576129e66157f6565b90506080020160200160208101906129fe9190615528565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000878785818110612a4c57612a4c6157f6565b9050608002016040016020810190612a649190615528565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169115159190911790555b60036000868684818110612ace57612ace6157f6565b9050608002016020016020810190612ae69190615528565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000868684818110612b3457612b346157f6565b9050608002016060016020810190612b4c9190615528565b73ffffffffffffffffffffffffffffffffffffffff16815260208101919091526040016000205460ff16612cdc57612bf2858583818110612b8f57612b8f6157f6565b9050608002016020016020810190612ba79190615528565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff878785818110612bda57612bda6157f6565b90506080020160600160208101906110ae9190615528565b600160036000878785818110612c0a57612c0a6157f6565b9050608002016020016020810190612c229190615528565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000878785818110612c7057612c706157f6565b9050608002016060016020810190612c889190615528565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169115159190911790555b848482818110612cee57612cee6157f6565b90506080020160056000878785818110612d0a57612d0a6157f6565b9050608002016040016020810190612d229190615528565b73ffffffffffffffffffffffffffffffffffffffff1681526020810191909152604001600020612d5282826158d4565b50819050612d5f81615854565b915050612710565b6000612d7281614835565b838214612ddb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45786368616e67653a206c656e6774682064697363726570000000000000000060448201526064016108da565b60005b848110156111c057612e24848483818110612dfb57612dfb6157f6565b9050602002016020810190612e109190615528565b6000888885818110611099576110996157f6565b600060036000868685818110612e3c57612e3c6157f6565b9050602002016020810190612e519190615528565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000888885818110612e9f57612e9f6157f6565b9050602002016020810190612eb49190615528565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001691151591909117905580612f1181615854565b915050612dde565b6000612f2481614835565b60005b82811015610fb7576000848483818110612f4357612f436157f6565b9050602002810190612f559190615a0e565b808060200260200160405190810160405280939291908181526020016000905b82821015612fa157612f9260808302860136819003810190615a76565b81526020019060010190612f75565b50505050509050600081600081518110612fbd57612fbd6157f6565b602002602001015160400151905060008260018451612fdc9190615b22565b81518110612fec57612fec6157f6565b60200260200101516060015190508073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613090576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f45786368616e67653a20726f757465206973206c6f6f7000000000000000000060448201526064016108da565b73ffffffffffffffffffffffffffffffffffffffff808316600090815260046020908152604080832093851683529290522054156131055773ffffffffffffffffffffffffffffffffffffffff80831660009081526004602090815260408083209385168352929052908120613105916152ac565b82600081518110613118576131186157f6565b60200260200101516000015163ffffffff1660001415613194576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f45786368616e67653a2070726f746f636f6c207479706520217365740000000060448201526064016108da565b60036000846000815181106131ab576131ab6157f6565b60200260200101516020015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084600081518110613206576132066157f6565b60209081029190910181015160409081015173ffffffffffffffffffffffffffffffffffffffff16835290820192909252016000205460ff1661339c576132ca83600081518110613259576132596157f6565b6020026020010151602001517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff85600081518110613299576132996157f6565b60200260200101516040015173ffffffffffffffffffffffffffffffffffffffff166148429092919063ffffffff16565b600160036000856000815181106132e3576132e36157f6565b60200260200101516020015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008560008151811061333e5761333e6157f6565b60200260200101516040015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505b826000815181106133af576133af6157f6565b60200260200101516060015173ffffffffffffffffffffffffffffffffffffffff16836000815181106133e4576133e46157f6565b60200260200101516040015173ffffffffffffffffffffffffffffffffffffffff16141561346e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f45786368616e67653a2065646765206973206c6f6f700000000000000000000060448201526064016108da565b73ffffffffffffffffffffffffffffffffffffffff808316600090815260046020908152604080832093851683529290529081208451909185916134b4576134b46157f6565b602090810291909101810151825460018082018555600094855293839020825160039092020180549383015163ffffffff9092167fffffffffffffffff0000000000000000000000000000000000000000000000009094169390931764010000000073ffffffffffffffffffffffffffffffffffffffff92831602178355604082015183850180547fffffffffffffffffffffffff0000000000000000000000000000000000000000908116928416929092179055606090920151600290930180549092169216919091179055835114156135f55773ffffffffffffffffffffffffffffffffffffffff918216600090815260026020526040808220805460017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00918216811790925593909416825290208054909116909117905550613bb5565b60008360008151811061360a5761360a6157f6565b60200260200101516060015190506000600190505b8451811015613b4b578173ffffffffffffffffffffffffffffffffffffffff16858281518110613651576136516157f6565b60200260200101516040015173ffffffffffffffffffffffffffffffffffffffff16146136da576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f45786368616e67653a20726f7574652062726f6b656e0000000000000000000060448201526064016108da565b8481815181106136ec576136ec6157f6565b602002602001015160600151915084818151811061370c5761370c6157f6565b60200260200101516000015163ffffffff1660001415613788576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f45786368616e67653a2070726f746f636f6c207479706520217365740000000060448201526064016108da565b84818151811061379a5761379a6157f6565b60200260200101516060015173ffffffffffffffffffffffffffffffffffffffff168582815181106137ce576137ce6157f6565b60200260200101516040015173ffffffffffffffffffffffffffffffffffffffff161415613858576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f45786368616e67653a2065646765206973206c6f6f700000000000000000000060448201526064016108da565b6003600086838151811061386e5761386e6157f6565b60200260200101516020015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008683815181106138c8576138c86157f6565b60209081029190910181015160409081015173ffffffffffffffffffffffffffffffffffffffff16835290820192909252016000205460ff16613a295761395985828151811061391a5761391a6157f6565b6020026020010151602001517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff878481518110613299576132996157f6565b600160036000878481518110613971576139716157f6565b60200260200101516020015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008784815181106139cb576139cb6157f6565b60200260200101516040015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505b73ffffffffffffffffffffffffffffffffffffffff80851660009081526004602090815260408083209387168352929052208551869083908110613a6f57613a6f6157f6565b602090810291909101810151825460018082018555600094855293839020825160039092020180549383015163ffffffff9092167fffffffffffffffff0000000000000000000000000000000000000000000000009094169390931764010000000073ffffffffffffffffffffffffffffffffffffffff92831602178355604082015193830180547fffffffffffffffffffffffff000000000000000000000000000000000000000090811695831695909517905560609091015160029092018054909316911617905580613b4381615854565b91505061361f565b505073ffffffffffffffffffffffffffffffffffffffff918216600090815260026020526040808220805460017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff009182168117909255939094168252902080549091169091179055505b80613bbf81615854565b915050612f27565b6000613bd281614835565b8582148015613be057508184145b613c46576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45786368616e67653a206c656e6774682064697363726570000000000000000060448201526064016108da565b60005b86811015613fab576000888883818110613c6557613c656157f6565b905060400201803603810190613c7b9190615b39565b805190915063ffffffff16613cec576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f45786368616e67653a2070726f746f636f6c207479706520217365740000000060448201526064016108da565b60005b858584818110613d0157613d016157f6565b9050602002810190613d139190615bbf565b9050811015613ef75760208083015173ffffffffffffffffffffffffffffffffffffffff16600090815260039091526040812090878786818110613d5957613d596157f6565b9050602002810190613d6b9190615bbf565b84818110613d7b57613d7b6157f6565b9050602002016020810190613d909190615528565b73ffffffffffffffffffffffffffffffffffffffff16815260208101919091526040016000205460ff16613ee557613e1b82602001517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff888887818110613df957613df96157f6565b9050602002810190613e0b9190615bbf565b85818110611099576110996157f6565b60208083015173ffffffffffffffffffffffffffffffffffffffff166000908152600390915260408120600191888887818110613e5a57613e5a6157f6565b9050602002810190613e6c9190615bbf565b85818110613e7c57613e7c6157f6565b9050602002016020810190613e919190615528565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169115159190911790555b80613eef81615854565b915050613cef565b508060066000898986818110613f0f57613f0f6157f6565b9050602002016020810190613f249190615528565b73ffffffffffffffffffffffffffffffffffffffff90811682526020808301939093526040909101600020835181549490930151909116640100000000027fffffffffffffffff00000000000000000000000000000000000000000000000090931663ffffffff909216919091179190911790555080613fa381615854565b915050613c49565b5050505050505050565b60008281526001602081905260409091200154613fd181614835565b6114498383614a83565b6000613fe681614835565b50600880547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600061403981614835565b60005b82811015610fb7576005600085858481811061405a5761405a6157f6565b905060200201602081019061406f9190615528565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002080547fffffffffffffffff0000000000000000000000000000000000000000000000001681556001810180547fffffffffffffffffffffffff0000000000000000000000000000000000000000908116909155600290910180549091169055806140fe81615854565b91505061403c565b73ffffffffffffffffffffffffffffffffffffffff163b151590565b60405173ffffffffffffffffffffffffffffffffffffffff80851660248301528316604482015260648101829052610fb79085907f23b872dd00000000000000000000000000000000000000000000000000000000906084015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152614b3e565b73ffffffffffffffffffffffffffffffffffffffff808316600090815260066020908152604080832081518083018352905463ffffffff8116808352640100000000909104861682850152845260079092528220549192909116806142bf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f45786368616e67653a2061646170746572206e6f7420666f756e64000000000060448201526064016108da565b602082015160405173ffffffffffffffffffffffffffffffffffffffff91821660248201529087166044820152606481018590526000906143ba907f73ec962e00000000000000000000000000000000000000000000000000000000906084015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009093169290921790915273ffffffffffffffffffffffffffffffffffffffff841690614c4a565b9050808060200190518101906143d09190615c27565b93505050505b9392505050565b60405173ffffffffffffffffffffffffffffffffffffffff83166024820152604481018290526114499084907fa9059cbb000000000000000000000000000000000000000000000000000000009060640161417c565b73ffffffffffffffffffffffffffffffffffffffff808416600090815260066020908152604080832081518083018352905463ffffffff8116808352640100000000909104861682850152845260079092528220549192909116806144f4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f45786368616e67653a2061646170746572206e6f7420666f756e64000000000060448201526064016108da565b602082015160405173ffffffffffffffffffffffffffffffffffffffff91821660248201529086166044820152606481018590526000906143ba907f660cb8d40000000000000000000000000000000000000000000000000000000090608401614320565b60008061456685856115d9565b90508260005b82518110156146d1576000838281518110614589576145896157f6565b602090810291909101810151805163ffffffff166000908152600790925260409091205490915073ffffffffffffffffffffffffffffffffffffffff168061462d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f45786368616e67653a2061646170746572206e6f7420666f756e64000000000060448201526064016108da565b60208201516040808401516060850151915173ffffffffffffffffffffffffffffffffffffffff9384166024820152908316604482015291166064820152608481018590526000906146a3907f6012856e000000000000000000000000000000000000000000000000000000009060a401614320565b9050808060200190518101906146b99190615c27565b945050505080806146c990615854565b91505061456c565b5095945050505050565b80471015614745576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016108da565b60008273ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d806000811461479f576040519150601f19603f3d011682016040523d82523d6000602084013e6147a4565b606091505b5050905080611449576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016108da565b61483f8133614c6f565b50565b8015806148e257506040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff838116602483015284169063dd62ed3e90604401602060405180830381865afa1580156148bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906148e09190615c27565b155b61496e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e63650000000000000000000060648201526084016108da565b60405173ffffffffffffffffffffffffffffffffffffffff83166024820152604481018290526114499084907f095ea7b3000000000000000000000000000000000000000000000000000000009060640161417c565b600082815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff166114fd57600082815260016020818152604080842073ffffffffffffffffffffffffffffffffffffffff8616808652925280842080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b600082815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16156114fd57600082815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000614ba0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16614d419092919063ffffffff16565b8051909150156114495780806020019051810190614bbe9190615c40565b611449576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016108da565b60606143d68383604051806060016040528060278152602001615dea60279139614d58565b600082815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff166114fd57614cc78173ffffffffffffffffffffffffffffffffffffffff166014614e80565b614cd2836020614e80565b604051602001614ce3929190615c89565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a00000000000000000000000000000000000000000000000000000000082526108da91600401615d0a565b6060614d5084846000856150c3565b949350505050565b606073ffffffffffffffffffffffffffffffffffffffff84163b614dfe576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e7472616374000000000000000000000000000000000000000000000000000060648201526084016108da565b6000808573ffffffffffffffffffffffffffffffffffffffff1685604051614e269190615d5b565b600060405180830381855af49150503d8060008114614e61576040519150601f19603f3d011682016040523d82523d6000602084013e614e66565b606091505b5091509150614e76828286615259565b9695505050505050565b60606000614e8f836002615d77565b614e9a9060026158bc565b67ffffffffffffffff811115614eb257614eb261588d565b6040519080825280601f01601f191660200182016040528015614edc576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110614f1357614f136157f6565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110614f7657614f766157f6565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000614fb2846002615d77565b614fbd9060016158bc565b90505b600181111561505a577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110614ffe57614ffe6157f6565b1a60f81b828281518110615014576150146157f6565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c9361505381615db4565b9050614fc0565b5083156143d6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016108da565b606082471015615155576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016108da565b73ffffffffffffffffffffffffffffffffffffffff85163b6151d3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016108da565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516151fc9190615d5b565b60006040518083038185875af1925050503d8060008114615239576040519150601f19603f3d011682016040523d82523d6000602084013e61523e565b606091505b509150915061524e828286615259565b979650505050505050565b606083156152685750816143d6565b8251156152785782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108da9190615d0a565b508054600082556003029060005260206000209081019061483f91905b808211156153375780547fffffffffffffffff0000000000000000000000000000000000000000000000001681556001810180547fffffffffffffffffffffffff000000000000000000000000000000000000000090811690915560028201805490911690556003016152c9565b5090565b60006020828403121561534d57600080fd5b81357fffffffff00000000000000000000000000000000000000000000000000000000811681146143d657600080fd5b73ffffffffffffffffffffffffffffffffffffffff8116811461483f57600080fd5b600080600080608085870312156153b557600080fd5b84356153c08161537d565b935060208501356153d08161537d565b93969395505050506040820135916060013590565b60008083601f8401126153f757600080fd5b50813567ffffffffffffffff81111561540f57600080fd5b6020830191508360208260051b850101111561542a57600080fd5b9250929050565b6000806020838503121561544457600080fd5b823567ffffffffffffffff81111561545b57600080fd5b615467858286016153e5565b90969095509350505050565b6000806000806040858703121561548957600080fd5b843567ffffffffffffffff808211156154a157600080fd5b6154ad888389016153e5565b909650945060208701359150808211156154c657600080fd5b506154d3878288016153e5565b95989497509550505050565b6000602082840312156154f157600080fd5b5035919050565b6000806040838503121561550b57600080fd5b82359150602083013561551d8161537d565b809150509250929050565b60006020828403121561553a57600080fd5b81356143d68161537d565b6000806040838503121561555857600080fd5b82356155638161537d565b9150602083013561551d8161537d565b602080825282518282018190526000919060409081850190868401855b828110156155eb578151805163ffffffff1685528681015173ffffffffffffffffffffffffffffffffffffffff9081168887015286820151811687870152606091820151169085015260809093019290850190600101615590565b5091979650505050505050565b801515811461483f57600080fd5b60008060008060006060868803121561561e57600080fd5b853567ffffffffffffffff8082111561563657600080fd5b61564289838a016153e5565b9097509550602088013591508082111561565b57600080fd5b50615668888289016153e5565b909450925050604086013561567c816155f8565b809150509295509295909350565b6000806020838503121561569d57600080fd5b823567ffffffffffffffff808211156156b557600080fd5b818501915085601f8301126156c957600080fd5b8135818111156156d857600080fd5b8660208260071b85010111156156ed57600080fd5b60209290920196919550909350505050565b63ffffffff8116811461483f57600080fd5b60006020828403121561572357600080fd5b81356143d6816156ff565b6000806000806000806060878903121561574757600080fd5b863567ffffffffffffffff8082111561575f57600080fd5b818901915089601f83011261577357600080fd5b81358181111561578257600080fd5b8a60208260061b850101111561579757600080fd5b6020928301985096509088013590808211156157b257600080fd5b6157be8a838b016153e5565b909650945060408901359150808211156157d757600080fd5b506157e489828a016153e5565b979a9699509497509295939492505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561588657615886615825565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600082198211156158cf576158cf615825565b500190565b81356158df816156ff565b63ffffffff811690508154817fffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000008216178355602084013561591f8161537d565b77ffffffffffffffffffffffffffffffffffffffff000000008160201b16837fffffffffffffffff00000000000000000000000000000000000000000000000084161717845550505060408201356159768161537d565b6001820180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83161790555060608201356159c78161537d565b6002820180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8316179055505050565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112615a4357600080fd5b83018035915067ffffffffffffffff821115615a5e57600080fd5b6020019150600781901b360382131561542a57600080fd5b600060808284031215615a8857600080fd5b6040516080810181811067ffffffffffffffff82111715615ad2577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040528235615ae0816156ff565b81526020830135615af08161537d565b60208201526040830135615b038161537d565b60408201526060830135615b168161537d565b60608201529392505050565b600082821015615b3457615b34615825565b500390565b600060408284031215615b4b57600080fd5b6040516040810181811067ffffffffffffffff82111715615b95577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040528235615ba3816156ff565b81526020830135615bb38161537d565b60208201529392505050565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112615bf457600080fd5b83018035915067ffffffffffffffff821115615c0f57600080fd5b6020019150600581901b360382131561542a57600080fd5b600060208284031215615c3957600080fd5b5051919050565b600060208284031215615c5257600080fd5b81516143d6816155f8565b60005b83811015615c78578181015183820152602001615c60565b83811115610fb75750506000910152565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351615cc1816017850160208801615c5d565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351615cfe816028840160208801615c5d565b01602801949350505050565b6020815260008251806020840152615d29816040850160208701615c5d565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b60008251615d6d818460208701615c5d565b9190910192915050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615615daf57615daf615825565b500290565b600081615dc357615dc3615825565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff019056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a264697066735822122026fbed6f1b4aca2a492c9d63da117b6f4ce76b7b687c0321baac7f485f69743d64736f6c634300080b0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000c7061dd515b602f86733fa0a0dbb6d6e6b34aed40000000000000000000000000000000000000000000000000000000000000001
-----Decoded View---------------
Arg [0] : gnosis (address): 0xc7061dD515B602F86733Fa0a0dBb6d6E6B34aED4
Arg [1] : isTesting (bool): True
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000c7061dd515b602f86733fa0a0dbb6d6e6b34aed4
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000001
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.