Overview
ETH Balance
0 ETH
ETH Value
$0.00More Info
Private Name Tags
ContractCreator
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
107556916 | 599 days ago | 0 ETH | ||||
107555098 | 599 days ago | 0 ETH | ||||
107554915 | 599 days ago | 0 ETH | ||||
107554915 | 599 days ago | 0 ETH | ||||
107554882 | 599 days ago | 0 ETH | ||||
107554819 | 599 days ago | 0 ETH | ||||
107554766 | 599 days ago | 0 ETH | ||||
107553279 | 599 days ago | 0 ETH | ||||
107553195 | 599 days ago | 0 ETH | ||||
107552274 | 599 days ago | 0 ETH | ||||
107551389 | 599 days ago | 0 ETH | ||||
107549574 | 599 days ago | 0 ETH | ||||
107547771 | 599 days ago | 0 ETH | ||||
107545787 | 599 days ago | 0 ETH | ||||
107543758 | 599 days ago | 0 ETH | ||||
107541660 | 599 days ago | 0 ETH | ||||
107539762 | 599 days ago | 0 ETH | ||||
107539298 | 599 days ago | 0 ETH | ||||
107537832 | 599 days ago | 0 ETH | ||||
107536299 | 599 days ago | 0 ETH | ||||
107535902 | 599 days ago | 0 ETH | ||||
107534046 | 599 days ago | 0 ETH | ||||
107532222 | 600 days ago | 0 ETH | ||||
107531337 | 600 days ago | 0 ETH | ||||
107531058 | 600 days ago | 0 ETH |
Loading...
Loading
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.
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0xaBc61f92...081749F6D The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
ReaperStrategySonne
Compiler Version
v0.8.11+commit.d7f03943
Contract Source Code (Solidity)
/** *Submitted for verification at optimistic.etherscan.io on 2022-12-21 */ // SPDX-License-Identifier: BUSL-1.1 pragma solidity ^0.8.0; interface IVault { function getPricePerFullShare() external view returns (uint256); } // File contracts/interfaces/IStrategy.sol pragma solidity ^0.8.0; interface IStrategy { //deposits all funds into the farm function deposit() external; //vault only - withdraws funds from the strategy function withdraw(uint256 _amount, address _user) external; //claims rewards, charges fees, and re-deposits; returns caller fee amount. function harvest() external returns (uint256); //returns the balance of all tokens managed by the strategy function balanceOf() external view returns (uint256); //pauses deposits, resets allowances, and withdraws all funds from farm function panic() external; //pauses deposits and resets allowances function pause() external; //unpauses deposits and maxes out allowances again function unpause() external; } // File @openzeppelin/contracts-upgradeable/utils/structs/[email protected] // OpenZeppelin Contracts (last updated v4.7.0) (utils/structs/EnumerableSet.sol) pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. * * [WARNING] * ==== * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure unusable. * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info. * * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an array of EnumerableSet. * ==== */ library EnumerableSetUpgradeable { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastValue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastValue; // Update the index for the moved value set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { return _values(set._inner); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } } // File @openzeppelin/contracts-upgradeable/utils/[email protected] // 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 AddressUpgradeable { /** * @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 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); } } } } // File @openzeppelin/contracts-upgradeable/proxy/utils/[email protected] // OpenZeppelin Contracts (last updated v4.7.0) (proxy/utils/Initializable.sol) pragma solidity ^0.8.2; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in * case an upgrade adds a module that needs to be initialized. * * For example: * * [.hljs-theme-light.nopadding] * ``` * contract MyToken is ERC20Upgradeable { * function initialize() initializer public { * __ERC20_init("MyToken", "MTK"); * } * } * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable { * function initializeV2() reinitializer(2) public { * __ERC20Permit_init("MyToken"); * } * } * ``` * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() { * _disableInitializers(); * } * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. * @custom:oz-retyped-from bool */ uint8 private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Triggered when the contract has been initialized or reinitialized. */ event Initialized(uint8 version); /** * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope, * `onlyInitializing` functions can be used to initialize parent contracts. Equivalent to `reinitializer(1)`. */ modifier initializer() { bool isTopLevelCall = !_initializing; require( (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1), "Initializable: contract is already initialized" ); _initialized = 1; if (isTopLevelCall) { _initializing = true; } _; if (isTopLevelCall) { _initializing = false; emit Initialized(1); } } /** * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be * used to initialize parent contracts. * * `initializer` is equivalent to `reinitializer(1)`, so a reinitializer may be used after the original * initialization step. This is essential to configure modules that are added through upgrades and that require * initialization. * * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in * a contract, executing them in the right order is up to the developer or operator. */ modifier reinitializer(uint8 version) { require(!_initializing && _initialized < version, "Initializable: contract is already initialized"); _initialized = version; _initializing = true; _; _initializing = false; emit Initialized(version); } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} and {reinitializer} modifiers, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } /** * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call. * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized * to any version. It is recommended to use this to lock implementation contracts that are designed to be called * through proxies. */ function _disableInitializers() internal virtual { require(!_initializing, "Initializable: contract is initializing"); if (_initialized < type(uint8).max) { _initialized = type(uint8).max; emit Initialized(type(uint8).max); } } } // File @openzeppelin/contracts-upgradeable/utils/[email protected] // 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 ContextUpgradeable is Initializable { function __Context_init() internal onlyInitializing { } function __Context_init_unchained() internal onlyInitializing { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; } // File @openzeppelin/contracts-upgradeable/access/[email protected] // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControlUpgradeable { /** * @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; } // File @openzeppelin/contracts-upgradeable/utils/[email protected] // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library StringsUpgradeable { 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); } } // File @openzeppelin/contracts-upgradeable/utils/introspection/[email protected] // 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 IERC165Upgradeable { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File @openzeppelin/contracts-upgradeable/utils/introspection/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165Upgradeable is Initializable, IERC165Upgradeable { function __ERC165_init() internal onlyInitializing { } function __ERC165_init_unchained() internal onlyInitializing { } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165Upgradeable).interfaceId; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; } // File @openzeppelin/contracts-upgradeable/access/[email protected] // OpenZeppelin Contracts (last updated v4.7.0) (access/AccessControl.sol) pragma solidity ^0.8.0; /** * @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 AccessControlUpgradeable is Initializable, ContextUpgradeable, IAccessControlUpgradeable, ERC165Upgradeable { function __AccessControl_init() internal onlyInitializing { } function __AccessControl_init_unchained() internal onlyInitializing { } 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(IAccessControlUpgradeable).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 ", StringsUpgradeable.toHexString(uint160(account), 20), " is missing role ", StringsUpgradeable.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()); } } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; } // File @openzeppelin/contracts-upgradeable/access/[email protected] // OpenZeppelin Contracts v4.4.1 (access/IAccessControlEnumerable.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControlEnumerable declared to support ERC165 detection. */ interface IAccessControlEnumerableUpgradeable is IAccessControlUpgradeable { /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) external view returns (address); /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) external view returns (uint256); } // File @openzeppelin/contracts-upgradeable/access/[email protected] // OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControlEnumerable.sol) pragma solidity ^0.8.0; /** * @dev Extension of {AccessControl} that allows enumerating the members of each role. */ abstract contract AccessControlEnumerableUpgradeable is Initializable, IAccessControlEnumerableUpgradeable, AccessControlUpgradeable { function __AccessControlEnumerable_init() internal onlyInitializing { } function __AccessControlEnumerable_init_unchained() internal onlyInitializing { } using EnumerableSetUpgradeable for EnumerableSetUpgradeable.AddressSet; mapping(bytes32 => EnumerableSetUpgradeable.AddressSet) private _roleMembers; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControlEnumerableUpgradeable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) public view virtual override returns (address) { return _roleMembers[role].at(index); } /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) public view virtual override returns (uint256) { return _roleMembers[role].length(); } /** * @dev Overload {_grantRole} to track enumerable memberships */ function _grantRole(bytes32 role, address account) internal virtual override { super._grantRole(role, account); _roleMembers[role].add(account); } /** * @dev Overload {_revokeRole} to track enumerable memberships */ function _revokeRole(bytes32 role, address account) internal virtual override { super._revokeRole(role, account); _roleMembers[role].remove(account); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; } // File @openzeppelin/contracts-upgradeable/security/[email protected] // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract PausableUpgradeable is Initializable, ContextUpgradeable { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ function __Pausable_init() internal onlyInitializing { __Pausable_init_unchained(); } function __Pausable_init_unchained() internal onlyInitializing { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; } // File @openzeppelin/contracts-upgradeable/interfaces/[email protected] // OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol) pragma solidity ^0.8.0; /** * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified * proxy whose upgrades are fully controlled by the current implementation. */ interface IERC1822ProxiableUpgradeable { /** * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation * address. * * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this * function revert if invoked through a proxy. */ function proxiableUUID() external view returns (bytes32); } // File @openzeppelin/contracts-upgradeable/utils/[email protected] // OpenZeppelin Contracts (last updated v4.7.0) (utils/StorageSlot.sol) pragma solidity ^0.8.0; /** * @dev Library for reading and writing primitive types to specific storage slots. * * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts. * This library helps with reading and writing to such slots without the need for inline assembly. * * The functions in this library return Slot structs that contain a `value` member that can be used to read or write. * * Example usage to set ERC1967 implementation slot: * ``` * contract ERC1967 { * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; * * function _getImplementation() internal view returns (address) { * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value; * } * * function _setImplementation(address newImplementation) internal { * require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract"); * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; * } * } * ``` * * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._ */ library StorageSlotUpgradeable { struct AddressSlot { address value; } struct BooleanSlot { bool value; } struct Bytes32Slot { bytes32 value; } struct Uint256Slot { uint256 value; } /** * @dev Returns an `AddressSlot` with member `value` located at `slot`. */ function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `BooleanSlot` with member `value` located at `slot`. */ function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Bytes32Slot` with member `value` located at `slot`. */ function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Uint256Slot` with member `value` located at `slot`. */ function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } } // File @openzeppelin/contracts-upgradeable/proxy/beacon/[email protected] // OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol) pragma solidity ^0.8.0; /** * @dev This is the interface that {BeaconProxy} expects of its beacon. */ interface IBeaconUpgradeable { /** * @dev Must return an address that can be used as a delegate call target. * * {BeaconProxy} will check that this address is a contract. */ function implementation() external view returns (address); } // File @openzeppelin/contracts-upgradeable/proxy/ERC1967/[email protected] // OpenZeppelin Contracts (last updated v4.5.0) (proxy/ERC1967/ERC1967Upgrade.sol) pragma solidity ^0.8.2; /** * @dev This abstract contract provides getters and event emitting update functions for * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots. * * _Available since v4.1._ * * @custom:oz-upgrades-unsafe-allow delegatecall */ abstract contract ERC1967UpgradeUpgradeable is Initializable { function __ERC1967Upgrade_init() internal onlyInitializing { } function __ERC1967Upgrade_init_unchained() internal onlyInitializing { } // This is the keccak-256 hash of "eip1967.proxy.rollback" subtracted by 1 bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143; /** * @dev Storage slot with the address of the current implementation. * This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is * validated in the constructor. */ bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; /** * @dev Emitted when the implementation is upgraded. */ event Upgraded(address indexed implementation); /** * @dev Returns the current implementation address. */ function _getImplementation() internal view returns (address) { return StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value; } /** * @dev Stores a new address in the EIP1967 implementation slot. */ function _setImplementation(address newImplementation) private { require(AddressUpgradeable.isContract(newImplementation), "ERC1967: new implementation is not a contract"); StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; } /** * @dev Perform implementation upgrade * * Emits an {Upgraded} event. */ function _upgradeTo(address newImplementation) internal { _setImplementation(newImplementation); emit Upgraded(newImplementation); } /** * @dev Perform implementation upgrade with additional setup call. * * Emits an {Upgraded} event. */ function _upgradeToAndCall( address newImplementation, bytes memory data, bool forceCall ) internal { _upgradeTo(newImplementation); if (data.length > 0 || forceCall) { _functionDelegateCall(newImplementation, data); } } /** * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call. * * Emits an {Upgraded} event. */ function _upgradeToAndCallUUPS( address newImplementation, bytes memory data, bool forceCall ) internal { // Upgrades from old implementations will perform a rollback test. This test requires the new // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing // this special case will break upgrade paths from old UUPS implementation to new ones. if (StorageSlotUpgradeable.getBooleanSlot(_ROLLBACK_SLOT).value) { _setImplementation(newImplementation); } else { try IERC1822ProxiableUpgradeable(newImplementation).proxiableUUID() returns (bytes32 slot) { require(slot == _IMPLEMENTATION_SLOT, "ERC1967Upgrade: unsupported proxiableUUID"); } catch { revert("ERC1967Upgrade: new implementation is not UUPS"); } _upgradeToAndCall(newImplementation, data, forceCall); } } /** * @dev Storage slot with the admin of the contract. * This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1, and is * validated in the constructor. */ bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103; /** * @dev Emitted when the admin account has changed. */ event AdminChanged(address previousAdmin, address newAdmin); /** * @dev Returns the current admin. */ function _getAdmin() internal view returns (address) { return StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value; } /** * @dev Stores a new address in the EIP1967 admin slot. */ function _setAdmin(address newAdmin) private { require(newAdmin != address(0), "ERC1967: new admin is the zero address"); StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value = newAdmin; } /** * @dev Changes the admin of the proxy. * * Emits an {AdminChanged} event. */ function _changeAdmin(address newAdmin) internal { emit AdminChanged(_getAdmin(), newAdmin); _setAdmin(newAdmin); } /** * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy. * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor. */ bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50; /** * @dev Emitted when the beacon is upgraded. */ event BeaconUpgraded(address indexed beacon); /** * @dev Returns the current beacon. */ function _getBeacon() internal view returns (address) { return StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value; } /** * @dev Stores a new beacon in the EIP1967 beacon slot. */ function _setBeacon(address newBeacon) private { require(AddressUpgradeable.isContract(newBeacon), "ERC1967: new beacon is not a contract"); require( AddressUpgradeable.isContract(IBeaconUpgradeable(newBeacon).implementation()), "ERC1967: beacon implementation is not a contract" ); StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value = newBeacon; } /** * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that). * * Emits a {BeaconUpgraded} event. */ function _upgradeBeaconToAndCall( address newBeacon, bytes memory data, bool forceCall ) internal { _setBeacon(newBeacon); emit BeaconUpgraded(newBeacon); if (data.length > 0 || forceCall) { _functionDelegateCall(IBeaconUpgradeable(newBeacon).implementation(), data); } } /** * @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) private returns (bytes memory) { require(AddressUpgradeable.isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return AddressUpgradeable.verifyCallResult(success, returndata, "Address: low-level delegate call failed"); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; } // File @openzeppelin/contracts-upgradeable/proxy/utils/[email protected] // OpenZeppelin Contracts (last updated v4.5.0) (proxy/utils/UUPSUpgradeable.sol) pragma solidity ^0.8.0; /** * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy. * * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing * `UUPSUpgradeable` with a custom implementation of upgrades. * * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism. * * _Available since v4.1._ */ abstract contract UUPSUpgradeable is Initializable, IERC1822ProxiableUpgradeable, ERC1967UpgradeUpgradeable { function __UUPSUpgradeable_init() internal onlyInitializing { } function __UUPSUpgradeable_init_unchained() internal onlyInitializing { } /// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment address private immutable __self = address(this); /** * @dev Check that the execution is being performed through a delegatecall call and that the execution context is * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to * fail. */ modifier onlyProxy() { require(address(this) != __self, "Function must be called through delegatecall"); require(_getImplementation() == __self, "Function must be called through active proxy"); _; } /** * @dev Check that the execution is not being performed through a delegate call. This allows a function to be * callable on the implementing contract but not through proxies. */ modifier notDelegated() { require(address(this) == __self, "UUPSUpgradeable: must not be called through delegatecall"); _; } /** * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the * implementation. It is used to validate that the this implementation remains valid after an upgrade. * * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier. */ function proxiableUUID() external view virtual override notDelegated returns (bytes32) { return _IMPLEMENTATION_SLOT; } /** * @dev Upgrade the implementation of the proxy to `newImplementation`. * * Calls {_authorizeUpgrade}. * * Emits an {Upgraded} event. */ function upgradeTo(address newImplementation) external virtual onlyProxy { _authorizeUpgrade(newImplementation); _upgradeToAndCallUUPS(newImplementation, new bytes(0), false); } /** * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call * encoded in `data`. * * Calls {_authorizeUpgrade}. * * Emits an {Upgraded} event. */ function upgradeToAndCall(address newImplementation, bytes memory data) external payable virtual onlyProxy { _authorizeUpgrade(newImplementation); _upgradeToAndCallUUPS(newImplementation, data, true); } /** * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by * {upgradeTo} and {upgradeToAndCall}. * * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}. * * ```solidity * function _authorizeUpgrade(address) internal override onlyOwner {} * ``` */ function _authorizeUpgrade(address newImplementation) internal virtual; /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; } // File contracts/abstract/ReaperBaseStrategyv3_1.sol pragma solidity ^0.8.0; abstract contract ReaperBaseStrategyv3_1 is IStrategy, UUPSUpgradeable, AccessControlEnumerableUpgradeable, PausableUpgradeable { using EnumerableSetUpgradeable for EnumerableSetUpgradeable.AddressSet; uint256 public constant PERCENT_DIVISOR = 10_000; uint256 public constant ONE_YEAR = 365 days; uint256 public constant UPGRADE_TIMELOCK = 48 hours; // minimum 48 hours for RF struct Harvest { uint256 timestamp; uint256 vaultSharePrice; } Harvest[] public harvestLog; uint256 public harvestLogCadence; uint256 public lastHarvestTimestamp; uint256 public upgradeProposalTime; /** * Reaper Roles in increasing order of privilege. * {KEEPER} - Stricly permissioned trustless access for off-chain programs or third party keepers. * {STRATEGIST} - Role conferred to authors of the strategy, allows for tweaking non-critical params. * {GUARDIAN} - Multisig requiring 2 signatures for emergency measures such as pausing and panicking. * {ADMIN}- Multisig requiring 3 signatures for unpausing. * * The DEFAULT_ADMIN_ROLE (in-built access control role) will be granted to a multisig requiring 4 * signatures. This role would have upgrading capability, as well as the ability to grant any other * roles. * * Also note that roles are cascading. So any higher privileged role should be able to perform all the functions * of any lower privileged role. */ bytes32 public constant KEEPER = keccak256("KEEPER"); bytes32 public constant STRATEGIST = keccak256("STRATEGIST"); bytes32 public constant GUARDIAN = keccak256("GUARDIAN"); bytes32 public constant ADMIN = keccak256("ADMIN"); bytes32[] private cascadingAccess; /** * @dev Reaper contracts: * {treasury} - Address of the Reaper treasury * {vault} - Address of the vault that controls the strategy's funds. */ address public treasury; address public vault; /** * Fee related constants: * {MAX_FEE} - Maximum fee allowed by the strategy. Hard-capped at 10%. * {MAX_SECURITY_FEE} - Maximum security fee charged on withdrawal to prevent * flash deposit/harvest attacks. */ uint256 public constant MAX_FEE = 1000; uint256 public constant MAX_SECURITY_FEE = 10; /** * @dev Distribution of fees earned, expressed as % of the profit from each harvest. * {totalFee} - divided by 10,000 to determine the % fee. Set to 4.5% by default and * lowered as necessary to provide users with the most competitive APY. * * {securityFee} - Fee taxed when a user withdraws funds. Taken to prevent flash deposit/harvest attacks. * These funds are redistributed to stakers in the pool. */ uint256 public totalFee; uint256 public securityFee; /** * @dev List of addresses we want to take a security fee from on withdraw * as a way to prevent those from sandwich attacking the strategy. */ EnumerableSetUpgradeable.AddressSet private feeOnWithdrawAddresses; /** * {TotalFeeUpdated} Event that is fired each time the total fee is updated. * {FeesUpdated} Event that is fired each time callFee+treasuryFee are updated. * {StratHarvest} Event that is fired each time the strategy gets harvested. */ event TotalFeeUpdated(uint256 newFee); event FeesUpdated(uint256 newCallFee, uint256 newTreasuryFee); event StratHarvest(address indexed harvester); /// @custom:oz-upgrades-unsafe-allow constructor constructor() initializer {} function __ReaperBaseStrategy_init( address _vault, address _treasury, address[] memory _strategists, address[] memory _multisigRoles, address[] memory _keepers ) internal onlyInitializing { __UUPSUpgradeable_init(); __AccessControlEnumerable_init(); __Pausable_init_unchained(); harvestLogCadence = 1 minutes; totalFee = 450; securityFee = 10; vault = _vault; treasury = _treasury; for (uint256 i = 0; i < _strategists.length; i = _uncheckedInc(i)) { _grantRole(STRATEGIST, _strategists[i]); } _grantRole(DEFAULT_ADMIN_ROLE, msg.sender); _grantRole(DEFAULT_ADMIN_ROLE, _multisigRoles[0]); _grantRole(ADMIN, _multisigRoles[1]); _grantRole(GUARDIAN, _multisigRoles[2]); for (uint256 i = 0; i < _keepers.length; i = _uncheckedInc(i)) { _grantRole(KEEPER, _keepers[i]); } cascadingAccess = [DEFAULT_ADMIN_ROLE, ADMIN, GUARDIAN, STRATEGIST, KEEPER]; clearUpgradeCooldown(); harvestLog.push(Harvest({timestamp: block.timestamp, vaultSharePrice: IVault(_vault).getPricePerFullShare()})); } /** * @dev Function that puts the funds to work. * It gets called whenever someone deposits in the strategy's vault contract. * Deposits go through only when the strategy is not paused. */ function deposit() public override whenNotPaused { _deposit(); } /** * @dev Withdraws funds and sends them back to the vault. Can only * be called by the vault. _amount must be valid and security fee * is deducted up-front. */ function withdraw(uint256 _amount, address _user) external override { require(msg.sender == vault); require(_amount != 0); require(_amount <= balanceOf()); if (feeOnWithdrawAddresses.contains(_user) || feeOnWithdrawAddresses.contains(tx.origin)) { uint256 withdrawFee = (_amount * securityFee) / PERCENT_DIVISOR; _amount -= withdrawFee; } _withdraw(_amount); } /** * @dev harvest() function that takes care of logging. Subcontracts should * override _harvestCore() and implement their specific logic in it. */ function harvest() external override whenNotPaused returns (uint256 feeCharged) { _atLeastRole(KEEPER); feeCharged = _harvestCore(); if (block.timestamp >= harvestLog[harvestLog.length - 1].timestamp + harvestLogCadence) { harvestLog.push( Harvest({timestamp: block.timestamp, vaultSharePrice: IVault(vault).getPricePerFullShare()}) ); } lastHarvestTimestamp = block.timestamp; emit StratHarvest(msg.sender); } function harvestLogLength() external view returns (uint256) { return harvestLog.length; } /** * @dev Traverses the harvest log backwards _n items, * and returns the average APR calculated across all the included * log entries. APR is multiplied by PERCENT_DIVISOR to retain precision. */ function averageAPRAcrossLastNHarvests(int256 _n) external view returns (int256) { require(harvestLog.length >= 2); int256 runningAPRSum; int256 numLogsProcessed; for (uint256 i = harvestLog.length - 1; i > 0 && numLogsProcessed < _n; i--) { runningAPRSum += calculateAPRUsingLogs(i - 1, i); numLogsProcessed++; } return runningAPRSum / numLogsProcessed; } /** * @dev Strategists and roles with higher privilege can edit the log cadence. */ function updateHarvestLogCadence(uint256 _newCadenceInSeconds) external { _atLeastRole(STRATEGIST); harvestLogCadence = _newCadenceInSeconds; } /** * @dev Function to calculate the total {want} held by the strat. * It takes into account both the funds in hand, plus the funds in external contracts. */ function balanceOf() public view virtual override returns (uint256); /** * @dev Pauses deposits. Withdraws all funds leaving rewards behind. * Guardian and roles with higher privilege can panic. */ function panic() external override { _atLeastRole(GUARDIAN); _reclaimWant(); pause(); } /** * @dev Pauses the strat. Deposits become disabled but users can still * withdraw. Guardian and roles with higher privilege can pause. */ function pause() public override { _atLeastRole(GUARDIAN); _pause(); } /** * @dev Unpauses the strat. Opens up deposits again and invokes deposit(). * Admin and roles with higher privilege can unpause. */ function unpause() external override { _atLeastRole(ADMIN); _unpause(); deposit(); } /** * @dev updates the total fee, capped at 5%; only DEFAULT_ADMIN_ROLE. */ function updateTotalFee(uint256 _totalFee) external { _atLeastRole(DEFAULT_ADMIN_ROLE); require(_totalFee <= MAX_FEE); totalFee = _totalFee; emit TotalFeeUpdated(totalFee); } function updateSecurityFee(uint256 _securityFee) external { _atLeastRole(DEFAULT_ADMIN_ROLE); require(_securityFee <= MAX_SECURITY_FEE); securityFee = _securityFee; } /** * @dev only DEFAULT_ADMIN_ROLE can update treasury address. */ function updateTreasury(address newTreasury) external { _atLeastRole(DEFAULT_ADMIN_ROLE); treasury = newTreasury; } /** * @dev Project an APR using the vault share price change between harvests at the provided indices. */ function calculateAPRUsingLogs(uint256 _startIndex, uint256 _endIndex) public view returns (int256) { Harvest storage start = harvestLog[_startIndex]; Harvest storage end = harvestLog[_endIndex]; bool increasing = true; if (end.vaultSharePrice < start.vaultSharePrice) { increasing = false; } uint256 unsignedSharePriceChange; if (increasing) { unsignedSharePriceChange = end.vaultSharePrice - start.vaultSharePrice; } else { unsignedSharePriceChange = start.vaultSharePrice - end.vaultSharePrice; } uint256 unsignedPercentageChange = (unsignedSharePriceChange * 1e18) / start.vaultSharePrice; uint256 timeDifference = end.timestamp - start.timestamp; uint256 yearlyUnsignedPercentageChange = (unsignedPercentageChange * ONE_YEAR) / timeDifference; yearlyUnsignedPercentageChange /= 1e14; // restore basis points precision if (increasing) { return int256(yearlyUnsignedPercentageChange); } return -int256(yearlyUnsignedPercentageChange); } function addToFeeOnWithdraw(address _user) external returns (bool) { _atLeastRole(STRATEGIST); return feeOnWithdrawAddresses.add(_user); } function removeFromFeeOnWithdraw(address _user) external returns (bool) { _atLeastRole(GUARDIAN); return feeOnWithdrawAddresses.remove(_user); } function isChargedFeeOnWithdraw(address _user) external view returns (bool) { return feeOnWithdrawAddresses.contains(_user); } /** * @dev This function must be called prior to upgrading the implementation. * It's required to wait UPGRADE_TIMELOCK seconds before executing the upgrade. * Strategists and roles with higher privilege can initiate this cooldown. */ function initiateUpgradeCooldown() external { _atLeastRole(STRATEGIST); upgradeProposalTime = block.timestamp; } /** * @dev This function is called: * - in initialize() * - as part of a successful upgrade * - manually to clear the upgrade cooldown. * Guardian and roles with higher privilege can clear this cooldown. */ function clearUpgradeCooldown() public { _atLeastRole(GUARDIAN); upgradeProposalTime = block.timestamp + (ONE_YEAR * 100); } /** * @dev This function must be overriden simply for access control purposes. * Only DEFAULT_ADMIN_ROLE can upgrade the implementation once the timelock * has passed. */ function _authorizeUpgrade(address) internal override { _atLeastRole(DEFAULT_ADMIN_ROLE); require(upgradeProposalTime + UPGRADE_TIMELOCK < block.timestamp); clearUpgradeCooldown(); } /** * @notice Internal function that checks cascading role privileges. Any higher privileged role * should be able to perform all the functions of any lower privileged role. This is * accomplished using the {cascadingAccess} array that lists all roles from most privileged * to least privileged. * @param role - The role in bytes from the keccak256 hash of the role name */ function _atLeastRole(bytes32 role) internal view { uint256 numRoles = cascadingAccess.length; bool specifiedRoleFound = false; bool senderHighestRoleFound = false; // The specified role must be found in the {cascadingAccess} array. // Also, msg.sender's highest role index <= specified role index. for (uint256 i = 0; i < numRoles; i = _uncheckedInc(i)) { if (!senderHighestRoleFound && hasRole(cascadingAccess[i], msg.sender)) { senderHighestRoleFound = true; } if (role == cascadingAccess[i]) { specifiedRoleFound = true; break; } } require(specifiedRoleFound && senderHighestRoleFound, "Unauthorized access"); } /** * @notice For doing an unchecked increment of an index for gas optimization purposes * @param i - The number to increment * @return The incremented number */ function _uncheckedInc(uint256 i) internal pure returns (uint256) { unchecked { return i + 1; } } /** * @dev subclasses should add their custom deposit logic in this function. */ function _deposit() internal virtual; /** * @dev subclasses should add their custom withdraw logic in this function. * Note that security fee has already been deducted, so it shouldn't be deducted * again within this function. */ function _withdraw(uint256 _amount) internal virtual; /** * @dev subclasses should add their custom harvesting logic in this function * including charging any fees. The amount of fee that is remitted to the * treasury must be returned. */ function _harvestCore() internal virtual returns (uint256); /** * @dev subclasses should add their custom logic to withdraw the principal from * any external contracts in this function. Note that we don't care about rewards, * we just want to reclaim our principal as much as possible, and as quickly as possible. * So keep this function lean. Principal should be left in the strategy and not sent to * the vault. */ function _reclaimWant() internal virtual; } // File contracts/interfaces/IVeloRouter.sol pragma solidity ^0.8.0; interface IRouter { function pairFor( address tokenA, address tokenB, bool stable ) external view returns (address pair); } interface IWETH { function deposit() external payable returns (uint256); function transfer(address to, uint256 value) external returns (bool); function withdraw(uint256) external returns (uint256); } interface IVeloRouter is IRouter { struct route { address from; address to; bool stable; } function factory() external view returns (address); function weth() external view returns (IWETH); function sortTokens(address tokenA, address tokenB) external pure returns (address token0, address token1); function pairFor( address tokenA, address tokenB, bool stable ) external view returns (address pair); function getReserves( address tokenA, address tokenB, bool stable ) external view returns (uint256 reserveA, uint256 reserveB); function getAmountOut( uint256 amountIn, address tokenIn, address tokenOut ) external view returns (uint256 amount, bool stable); function getAmountsOut(uint256 amountIn, route[] memory routes) external view returns (uint256[] memory amounts); function isPair(address pair) external view returns (bool); function quoteAddLiquidity( address tokenA, address tokenB, bool stable, uint256 amountADesired, uint256 amountBDesired ) external view returns ( uint256 amountA, uint256 amountB, uint256 liquidity ); function quoteRemoveLiquidity( address tokenA, address tokenB, bool stable, uint256 liquidity ) external view returns (uint256 amountA, uint256 amountB); function addLiquidity( address tokenA, address tokenB, bool stable, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline ) external returns ( uint256 amountA, uint256 amountB, uint256 liquidity ); function addLiquidityETH( address token, bool stable, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external payable returns ( uint256 amountToken, uint256 amountETH, uint256 liquidity ); function removeLiquidity( address tokenA, address tokenB, bool stable, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline ) external returns (uint256 amountA, uint256 amountB); function removeLiquidityETH( address token, bool stable, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external returns (uint256 amountToken, uint256 amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, bool stable, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint256 amountA, uint256 amountB); function removeLiquidityETHWithPermit( address token, bool stable, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint256 amountToken, uint256 amountETH); function swapExactTokensForTokensSimple( uint256 amountIn, uint256 amountOutMin, address tokenFrom, address tokenTo, bool stable, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapExactTokensForTokens( uint256 amountIn, uint256 amountOutMin, route[] calldata routes, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapExactETHForTokens( uint256 amountOutMin, route[] calldata routes, address to, uint256 deadline ) external payable returns (uint256[] memory amounts); function swapExactTokensForETH( uint256 amountIn, uint256 amountOutMin, route[] calldata routes, address to, uint256 deadline ) external returns (uint256[] memory amounts); function UNSAFE_swapExactTokensForTokens( uint256[] memory amounts, route[] calldata routes, address to, uint256 deadline ) external returns (uint256[] memory); } // File contracts/interfaces/InterestRateModel.sol pragma solidity 0.8.11; interface InterestRateModel { /** * @notice Calculates the current borrow interest rate per block * @param cash The total amount of cash the market has * @param borrows The total amount of borrows the market has outstanding * @param reserves The total amount of reserves the market has * @return The borrow rate per block (as a percentage, and scaled by 1e18) */ function getBorrowRate( uint256 cash, uint256 borrows, uint256 reserves ) external view returns (uint256, uint256); /** * @notice Calculates the current supply interest rate per block * @param cash The total amount of cash the market has * @param borrows The total amount of borrows the market has outstanding * @param reserves The total amount of reserves the market has * @param reserveFactorMantissa The current reserve factor the market has * @return The supply rate per block (as a percentage, and scaled by 1e18) */ function getSupplyRate( uint256 cash, uint256 borrows, uint256 reserves, uint256 reserveFactorMantissa ) external view returns (uint256); } // File contracts/interfaces/CTokenI.sol pragma solidity 0.8.11; interface CTokenI { /*** Market Events ***/ /** * @notice Event emitted when interest is accrued */ event AccrueInterest( uint256 cashPrior, uint256 interestAccumulated, uint256 borrowIndex, uint256 totalBorrows ); /** * @notice Event emitted when tokens are minted */ event Mint(address minter, uint256 mintAmount, uint256 mintTokens); /** * @notice Event emitted when tokens are redeemed */ event Redeem(address redeemer, uint256 redeemAmount, uint256 redeemTokens); /** * @notice Event emitted when underlying is borrowed */ event Borrow( address borrower, uint256 borrowAmount, uint256 accountBorrows, uint256 totalBorrows ); /** * @notice Event emitted when a borrow is repaid */ event RepayBorrow( address payer, address borrower, uint256 repayAmount, uint256 accountBorrows, uint256 totalBorrows ); /** * @notice Event emitted when a borrow is liquidated */ event LiquidateBorrow( address liquidator, address borrower, uint256 repayAmount, address cTokenCollateral, uint256 seizeTokens ); /*** Admin Events ***/ /** * @notice Event emitted when pendingAdmin is changed */ event NewPendingAdmin(address oldPendingAdmin, address newPendingAdmin); /** * @notice Event emitted when pendingAdmin is accepted, which means admin is updated */ event NewAdmin(address oldAdmin, address newAdmin); /** * @notice Event emitted when the reserve factor is changed */ event NewReserveFactor( uint256 oldReserveFactorMantissa, uint256 newReserveFactorMantissa ); /** * @notice Event emitted when the reserves are added */ event ReservesAdded( address benefactor, uint256 addAmount, uint256 newTotalReserves ); /** * @notice Event emitted when the reserves are reduced */ event ReservesReduced( address admin, uint256 reduceAmount, uint256 newTotalReserves ); /** * @notice EIP20 Transfer event */ event Transfer(address indexed from, address indexed to, uint256 amount); /** * @notice EIP20 Approval event */ event Approval( address indexed owner, address indexed spender, uint256 amount ); /** * @notice Failure event */ event Failure(uint256 error, uint256 info, uint256 detail); function transfer(address dst, uint256 amount) external returns (bool); function transferFrom( address src, address dst, uint256 amount ) external returns (bool); function approve(address spender, uint256 amount) external returns (bool); function allowance(address owner, address spender) external view returns (uint256); function balanceOf(address owner) external view returns (uint256); function balanceOfUnderlying(address owner) external returns (uint256); function getAccountSnapshot(address account) external view returns ( uint256, uint256, uint256, uint256 ); function borrowRatePerBlock() external view returns (uint256); function supplyRatePerBlock() external view returns (uint256); function totalBorrowsCurrent() external returns (uint256); function borrowBalanceCurrent(address account) external returns (uint256); function borrowBalanceStored(address account) external view returns (uint256); function exchangeRateCurrent() external returns (uint256); function accrualBlockNumber() external view returns (uint256); function exchangeRateStored() external view returns (uint256); function getCash() external view returns (uint256); function accrueInterest() external returns (uint256); function interestRateModel() external view returns (InterestRateModel); function totalReserves() external view returns (uint256); function reserveFactorMantissa() external view returns (uint256); function seize( address liquidator, address borrower, uint256 seizeTokens ) external returns (uint256); function totalBorrows() external view returns (uint256); function totalSupply() external view returns (uint256); } // File contracts/interfaces/CErc20I.sol pragma solidity 0.8.11; interface CErc20I is CTokenI { function mint(uint256 mintAmount) external returns (uint256); function redeem(uint256 redeemTokens) external returns (uint256); function redeemUnderlying(uint256 redeemAmount) external returns (uint256); function borrow(uint256 borrowAmount) external returns (uint256); function repayBorrow(uint256 repayAmount) external returns (uint256); function repayBorrowBehalf(address borrower, uint256 repayAmount) external returns (uint256); function liquidateBorrow( address borrower, uint256 repayAmount, CTokenI cTokenCollateral ) external returns (uint256); function underlying() external view returns (address); function comptroller() external view returns (address); } // File contracts/interfaces/IComptroller.sol pragma solidity 0.8.11; interface IComptroller { function compAccrued(address user) external view returns (uint256 amount); function claimComp(address holder, CTokenI[] memory _scTokens) external; function claimComp(address holder) external; function enterMarkets(address[] memory _scTokens) external; function pendingComptrollerImplementation() view external returns (address implementation); function markets(address ctoken) external view returns ( bool, uint256, bool ); function compSpeeds(address ctoken) external view returns (uint256); // will be deprecated } // File @openzeppelin/contracts-upgradeable/token/ERC20/[email protected] // 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 IERC20Upgradeable { /** * @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); } // File @openzeppelin/contracts-upgradeable/token/ERC20/extensions/[email protected] // 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 IERC20PermitUpgradeable { /** * @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); } // File @openzeppelin/contracts-upgradeable/token/ERC20/utils/[email protected] // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20Upgradeable { using AddressUpgradeable for address; function safeTransfer( IERC20Upgradeable token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20Upgradeable 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( IERC20Upgradeable 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( IERC20Upgradeable 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( IERC20Upgradeable 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( IERC20PermitUpgradeable 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(IERC20Upgradeable token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // File contracts/ReaperStrategySonne.sol pragma solidity 0.8.11; /** * @dev This strategy will deposit and leverage a token on Sonne to maximize yield by farming reward tokens */ contract ReaperStrategySonne is ReaperBaseStrategyv3_1 { using SafeERC20Upgradeable for IERC20Upgradeable; /** * @dev Tokens Used: * {USDC} - Required for liquidity routing when doing swaps. Also used to charge fees on yield. * {SONNE} - The reward token for farming * {want} - The vault token the strategy is maximizing * {cWant} - The Sonne version of the want token */ address public constant USDC = 0x7F5c764cBc14f9669B88837ca1490cCa17c31607; address public constant SONNE = 0x1DB2466d9F5e10D7090E7152B68d62703a2245F0; address public want; CErc20I public cWant; /** * @dev Third Party Contracts: * {VELO_ROUTER} - the Velodrome router * {comptroller} - Sonne contract to enter market and to claim Sonne tokens */ address public constant VELO_ROUTER = 0xa132DAB612dB5cB9fC9Ac426A0Cc215A3423F9c9; IComptroller public comptroller; /** * @dev Routes we take to swap tokens * {sonneToUsdcRoute} - Route we take to get from {SONNE} into {USDC}. * {usdcToWantRoute} - Route we take to get from {USDC} into {want}. */ address[] public sonneToUsdcRoute; address[] public usdcToWantRoute; /** * @dev Sonne variables * {markets} - Contains the Sonne tokens to farm, used to enter markets and claim Sonne * {MANTISSA} - The unit used by the Compound protocol * {LTV_SAFETY_ZONE} - We will only go up to 98% of max allowed LTV for {targetLTV} */ address[] public markets; uint256 public constant MANTISSA = 1e18; uint256 public constant LTV_SAFETY_ZONE = 0.98 ether; /** * @dev Strategy variables * {targetLTV} - The target loan to value for the strategy where 1 ether = 100% * {allowedLTVDrift} - How much the strategy can deviate from the target ltv where 0.01 ether = 1% * {balanceOfPool} - The total balance deposited into Sonne (supplied - borrowed) * {borrowDepth} - The maximum amount of loops used to leverage and deleverage * {minWantToLeverage} - The minimum amount of want to leverage in a loop * {withdrawSlippageTolerance} - Maximum slippage authorized when withdrawing */ uint256 public targetLTV; uint256 public allowedLTVDrift; uint256 public balanceOfPool; uint256 public borrowDepth; uint256 public minWantToLeverage; uint256 public maxBorrowDepth; uint256 public withdrawSlippageTolerance; /** * @dev Initializes the strategy. Sets parameters, saves routes, and gives allowances. * @notice see documentation for each variable above its respective declaration. */ function initialize( address _vault, address _treasury, address[] memory _strategists, address[] memory _multisigRoles, address[] memory _keepers, address _soWant, uint256 _targetLTV ) public initializer { __ReaperBaseStrategy_init(_vault, _treasury, _strategists, _multisigRoles, _keepers); cWant = CErc20I(_soWant); markets = [_soWant]; comptroller = IComptroller(cWant.comptroller()); want = cWant.underlying(); usdcToWantRoute = [USDC, want]; sonneToUsdcRoute = [SONNE, USDC]; allowedLTVDrift = 0.01 ether; balanceOfPool = 0; borrowDepth = 12; minWantToLeverage = 5; maxBorrowDepth = 15; withdrawSlippageTolerance = 50; comptroller.enterMarkets(markets); setTargetLtv(_targetLTV); } /** * @dev Withdraws funds and sents them back to the vault. * It withdraws {want} from Sonne * The available {want} minus fees is returned to the vault. */ function _withdraw(uint256 _withdrawAmount) internal override doUpdateBalance { uint256 wantBalance = IERC20Upgradeable(want).balanceOf(address(this)); if (_withdrawAmount <= wantBalance) { IERC20Upgradeable(want).safeTransfer(vault, _withdrawAmount); return; } uint256 _ltv = _calculateLTVAfterWithdraw(_withdrawAmount); if (_shouldLeverage(_ltv)) { // Strategy is underleveraged so can withdraw underlying directly _withdrawUnderlyingToVault(_withdrawAmount); _leverMax(); } else if (_shouldDeleverage(_ltv)) { _deleverage(_withdrawAmount); // Strategy has deleveraged to the point where it can withdraw underlying _withdrawUnderlyingToVault(_withdrawAmount); } else { // LTV is in the acceptable range so the underlying can be withdrawn directly _withdrawUnderlyingToVault(_withdrawAmount); } } /** * @dev Calculates the LTV using existing exchange rate, * depends on the cWant being updated to be accurate. * Does not update in order provide a view function for LTV. */ function calculateLTV() external view returns (uint256 ltv) { (, uint256 cWantBalance, uint256 borrowed, uint256 exchangeRate) = cWant.getAccountSnapshot(address(this)); uint256 supplied = (cWantBalance * exchangeRate) / MANTISSA; if (supplied == 0 || borrowed == 0) { return 0; } ltv = (MANTISSA * borrowed) / supplied; } /** * @dev Emergency function to deleverage in case regular deleveraging breaks */ function manualDeleverage(uint256 amount) external doUpdateBalance { _atLeastRole(STRATEGIST); require(cWant.redeemUnderlying(amount) == 0); require(cWant.repayBorrow(amount) == 0); } /** * @dev Emergency function to deleverage in case regular deleveraging breaks */ function manualReleaseWant(uint256 amount) external doUpdateBalance { _atLeastRole(STRATEGIST); require(cWant.redeemUnderlying(amount) == 0); } /** * @dev Sets a new LTV for leveraging. * Should be in units of 1e18 */ function setTargetLtv(uint256 _ltv) public { if (!hasRole(KEEPER, msg.sender)) { _atLeastRole(STRATEGIST); } (, uint256 collateralFactorMantissa, ) = comptroller.markets(address(cWant)); require(collateralFactorMantissa > _ltv + allowedLTVDrift); require(_ltv <= (collateralFactorMantissa * LTV_SAFETY_ZONE) / MANTISSA); targetLTV = _ltv; } /** * @dev Sets a new allowed LTV drift * Should be in units of 1e18 */ function setAllowedLtvDrift(uint256 _drift) external { _atLeastRole(STRATEGIST); (, uint256 collateralFactorMantissa, ) = comptroller.markets(address(cWant)); require(collateralFactorMantissa > targetLTV + _drift); allowedLTVDrift = _drift; } /** * @dev Sets a new borrow depth (how many loops for leveraging+deleveraging) */ function setBorrowDepth(uint8 _borrowDepth) external { _atLeastRole(STRATEGIST); require(_borrowDepth <= maxBorrowDepth); borrowDepth = _borrowDepth; } /** * @dev Sets the minimum want to leverage/deleverage (loop) for */ function setMinWantToLeverage(uint256 _minWantToLeverage) external { _atLeastRole(STRATEGIST); minWantToLeverage = _minWantToLeverage; } /** * @dev Sets the maximum slippage authorized when withdrawing */ function setWithdrawSlippageTolerance(uint256 _withdrawSlippageTolerance) external { _atLeastRole(STRATEGIST); withdrawSlippageTolerance = _withdrawSlippageTolerance; } /** * @dev Sets the swap path to go from {USDC} to {want}. */ function setUsdcToWantRoute(address[] calldata _newUsdcToWantRoute) external { _atLeastRole(STRATEGIST); require(_newUsdcToWantRoute[0] == USDC, 'bad route'); require(_newUsdcToWantRoute[_newUsdcToWantRoute.length - 1] == want, 'bad route'); delete usdcToWantRoute; usdcToWantRoute = _newUsdcToWantRoute; } /** * @dev Function that puts the funds to work. * It gets called whenever someone supplied in the strategy's vault contract. * It supplies {want} Sonne to farm {SONNE} */ function _deposit() internal override doUpdateBalance { uint256 wantBalance = balanceOfWant(); IERC20Upgradeable(want).safeIncreaseAllowance(address(cWant), wantBalance); CErc20I(cWant).mint(wantBalance); uint256 _ltv = _calculateLTV(); if (_shouldLeverage(_ltv)) { _leverMax(); } else if (_shouldDeleverage(_ltv)) { _deleverage(0); } } /** * @dev Calculates the total amount of {want} held by the strategy * which is the balance of want + the total amount supplied to Sonne. */ function balanceOf() public view override returns (uint256) { return balanceOfWant() + balanceOfPool; } /** * @dev Calculates the balance of want held directly by the strategy */ function balanceOfWant() public view returns (uint256) { return IERC20Upgradeable(want).balanceOf(address(this)); } /** * @dev Returns the current position in Sonne. Does not accrue interest * so might not be accurate, but the cWant is usually updated. */ function getCurrentPosition() public view returns (uint256 supplied, uint256 borrowed) { (, uint256 cWantBalance, uint256 borrowBalance, uint256 exchangeRate) = cWant.getAccountSnapshot(address(this)); borrowed = borrowBalance; supplied = (cWantBalance * exchangeRate) / MANTISSA; } /** * @dev Updates the balance. This is the state changing version so it sets * balanceOfPool to the latest value. */ function updateBalance() public { uint256 supplyBalance = CErc20I(cWant).balanceOfUnderlying(address(this)); uint256 borrowBalance = CErc20I(cWant).borrowBalanceCurrent(address(this)); balanceOfPool = supplyBalance - borrowBalance; } /** * @dev Levers the strategy up to the targetLTV */ function _leverMax() internal { uint256 supplied = cWant.balanceOfUnderlying(address(this)); uint256 borrowed = cWant.borrowBalanceStored(address(this)); uint256 realSupply = supplied - borrowed; uint256 newBorrow = _getMaxBorrowFromSupplied(realSupply, targetLTV); uint256 totalAmountToBorrow = newBorrow - borrowed; for (uint8 i = 0; i < borrowDepth && totalAmountToBorrow > minWantToLeverage; i++) { totalAmountToBorrow = totalAmountToBorrow - _leverUpStep(totalAmountToBorrow); } } /** * @dev Does one step of leveraging */ function _leverUpStep(uint256 _withdrawAmount) internal returns (uint256) { if (_withdrawAmount == 0) { return 0; } uint256 supplied = cWant.balanceOfUnderlying(address(this)); uint256 borrowed = cWant.borrowBalanceStored(address(this)); (, uint256 collateralFactorMantissa, ) = comptroller.markets(address(cWant)); uint256 canBorrow = (supplied * collateralFactorMantissa) / MANTISSA; canBorrow -= borrowed; if (canBorrow < _withdrawAmount) { _withdrawAmount = canBorrow; } if (_withdrawAmount > 10) { // borrow available amount CErc20I(cWant).borrow(_withdrawAmount); // deposit available want as collateral uint256 wantBalance = balanceOfWant(); IERC20Upgradeable(want).safeIncreaseAllowance(address(cWant), wantBalance); CErc20I(cWant).mint(wantBalance); } return _withdrawAmount; } /** * @dev Gets the maximum amount allowed to be borrowed for a given collateral factor and amount supplied */ function _getMaxBorrowFromSupplied(uint256 wantSupplied, uint256 collateralFactor) internal pure returns (uint256) { return ((wantSupplied * collateralFactor) / (MANTISSA - collateralFactor)); } /** * @dev Returns if the strategy should leverage with the given ltv level */ function _shouldLeverage(uint256 _ltv) internal view returns (bool) { if (targetLTV >= allowedLTVDrift && _ltv < targetLTV - allowedLTVDrift) { return true; } return false; } /** * @dev Returns if the strategy should deleverage with the given ltv level */ function _shouldDeleverage(uint256 _ltv) internal view returns (bool) { if (_ltv > targetLTV + allowedLTVDrift) { return true; } return false; } /** * @dev This is the state changing calculation of LTV that is more accurate * to be used internally. */ function _calculateLTV() internal returns (uint256 ltv) { uint256 supplied = cWant.balanceOfUnderlying(address(this)); uint256 borrowed = cWant.borrowBalanceStored(address(this)); if (supplied == 0 || borrowed == 0) { return 0; } ltv = (MANTISSA * borrowed) / supplied; } /** * @dev Calculates what the LTV will be after withdrawing */ function _calculateLTVAfterWithdraw(uint256 _withdrawAmount) internal returns (uint256 ltv) { uint256 supplied = cWant.balanceOfUnderlying(address(this)); uint256 borrowed = cWant.borrowBalanceStored(address(this)); supplied = supplied - _withdrawAmount; if (supplied == 0 || borrowed == 0) { return 0; } ltv = (uint256(1e18) * borrowed) / supplied; } /** * @dev Withdraws want to the strat by redeeming the underlying */ function _withdrawUnderlying(uint256 _withdrawAmount) internal { uint256 initialWithdrawAmount = _withdrawAmount; uint256 supplied = cWant.balanceOfUnderlying(address(this)); uint256 borrowed = cWant.borrowBalanceStored(address(this)); uint256 realSupplied = supplied - borrowed; if (realSupplied == 0) { return; } if (_withdrawAmount > realSupplied) { _withdrawAmount = realSupplied; } uint256 tempColla = targetLTV + allowedLTVDrift; uint256 reservedAmount = 0; if (tempColla == 0) { tempColla = 1e15; // 0.001 * 1e18. lower we have issues } reservedAmount = (borrowed * MANTISSA) / tempColla; if (supplied >= reservedAmount) { uint256 redeemable = supplied - reservedAmount; uint256 balance = cWant.balanceOf(address(this)); if (balance > 1) { if (redeemable < _withdrawAmount) { _withdrawAmount = redeemable; } } } uint256 withdrawAmount = _withdrawAmount - 1; if (withdrawAmount < initialWithdrawAmount) { require( withdrawAmount >= (initialWithdrawAmount * (PERCENT_DIVISOR - withdrawSlippageTolerance)) / PERCENT_DIVISOR ); } CErc20I(cWant).redeemUnderlying(withdrawAmount); } /** * @dev Withdraws want to the vault by redeeming the underlying */ function _withdrawUnderlyingToVault(uint256 _withdrawAmount) internal { _withdrawUnderlying(_withdrawAmount); uint256 bal = IERC20Upgradeable(want).balanceOf(address(this)); uint256 finalWithdrawAmount = bal < _withdrawAmount ? bal : _withdrawAmount; IERC20Upgradeable(want).safeTransfer(vault, finalWithdrawAmount); } /** * @dev For a given withdraw amount, figures out the new borrow with the current supply * that will maintain the target LTV */ function _getDesiredBorrow(uint256 _withdrawAmount) internal returns (uint256 position) { //we want to use statechanging for safety uint256 supplied = cWant.balanceOfUnderlying(address(this)); uint256 borrowed = cWant.borrowBalanceStored(address(this)); //When we unwind we end up with the difference between borrow and supply uint256 unwoundSupplied = supplied - borrowed; //we want to see how close to collateral target we are. //So we take our unwound supplied and add or remove the _withdrawAmount we are are adding/removing. //This gives us our desired future undwoundDeposit (desired supply) uint256 desiredSupply = 0; if (_withdrawAmount > unwoundSupplied) { _withdrawAmount = unwoundSupplied; } desiredSupply = unwoundSupplied - _withdrawAmount; //(ds *c)/(1-c) uint256 num = desiredSupply * targetLTV; uint256 den = MANTISSA - targetLTV; uint256 desiredBorrow = num / den; if (desiredBorrow > 1e5) { //stop us going right up to the wire desiredBorrow = desiredBorrow - 1e5; } position = borrowed - desiredBorrow; } /** * @dev For a given withdraw amount, deleverages to a borrow level * that will maintain the target LTV */ function _deleverage(uint256 _withdrawAmount) internal { uint256 newBorrow = _getDesiredBorrow(_withdrawAmount); // //If there is no deficit we dont need to adjust position // //if the position change is tiny do nothing if (newBorrow > minWantToLeverage) { uint256 i = 0; while (newBorrow > minWantToLeverage) { newBorrow = newBorrow - _leverDownStep(newBorrow); i++; //A limit set so we don't run out of gas if (i >= borrowDepth) { break; } } } } /** * @dev Deleverages one step */ function _leverDownStep(uint256 maxDeleverage) internal returns (uint256 deleveragedAmount) { uint256 minAllowedSupply = 0; uint256 supplied = cWant.balanceOfUnderlying(address(this)); uint256 borrowed = cWant.borrowBalanceStored(address(this)); (, uint256 collateralFactorMantissa, ) = comptroller.markets(address(cWant)); //collat ration should never be 0. if it is something is very wrong... but just incase if (collateralFactorMantissa != 0) { minAllowedSupply = (borrowed * MANTISSA) / collateralFactorMantissa; } uint256 maxAllowedDeleverageAmount = supplied - minAllowedSupply; deleveragedAmount = maxAllowedDeleverageAmount; if (deleveragedAmount >= borrowed) { deleveragedAmount = borrowed; } if (deleveragedAmount >= maxDeleverage) { deleveragedAmount = maxDeleverage; } uint256 exchangeRateStored = cWant.exchangeRateStored(); //redeemTokens = redeemAmountIn * 1e18 / exchangeRate. must be more than 0 //a rounding error means we need another small addition if (deleveragedAmount * MANTISSA >= exchangeRateStored && deleveragedAmount > 10) { deleveragedAmount -= 10; // Amount can be slightly off for tokens with less decimals (USDC), so redeem a bit less cWant.redeemUnderlying(deleveragedAmount); //our borrow has been increased by no more than maxDeleverage IERC20Upgradeable(want).safeIncreaseAllowance(address(cWant), deleveragedAmount); cWant.repayBorrow(deleveragedAmount); } } /** * @dev Core function of the strat, in charge of collecting and re-investing rewards. * @notice Assumes the deposit will take care of the TVL rebalancing. * 1. Claims {SONNE} from the comptroller. * 2. Swaps {SONNE} to {USDC}. * 3. Claims fees for the harvest caller and treasury. * 4. Swaps the {USDC} token for {want} * 5. Deposits. */ function _harvestCore() internal override returns (uint256 feeCharged) { _claimRewards(); _swapRewardsToUsdc(); feeCharged = _chargeFees(); _swapToWant(); deposit(); } /** * @dev Core harvest function. * Get rewards from markets entered */ function _claimRewards() internal { CTokenI[] memory tokens = new CTokenI[](1); tokens[0] = cWant; comptroller.claimComp(address(this), tokens); } /// @dev Helper function to swap given a {_path} and an {_amount}. function _swap(address[] memory _path, uint256 _amount) internal { if (_amount != 0) { IVeloRouter router = IVeloRouter(VELO_ROUTER); IVeloRouter.route[] memory routes = new IVeloRouter.route[](_path.length - 1); uint256 prevRouteOutput = _amount; uint256 output; bool useStable; for (uint256 i = 0; i < routes.length; i++) { (output, useStable) = router.getAmountOut(prevRouteOutput, _path[i], _path[i + 1]); routes[i] = IVeloRouter.route({ from: _path[i], to: _path[i + 1], stable: useStable }); prevRouteOutput = output; } IERC20Upgradeable(_path[0]).safeIncreaseAllowance(VELO_ROUTER, _amount); router.swapExactTokensForTokens(_amount, 0, routes, address(this), block.timestamp); } } /** * @dev Core harvest function. * Swaps {SONNE} to {USDC} */ function _swapRewardsToUsdc() internal { uint256 sonneBalance = IERC20Upgradeable(SONNE).balanceOf(address(this)); _swap(sonneToUsdcRoute, sonneBalance); } /** * @dev Core harvest function. * Charges fees based on the amount of USDC gained from reward */ function _chargeFees() internal returns (uint256 feeCharged) { feeCharged = (IERC20Upgradeable(USDC).balanceOf(address(this)) * totalFee) / PERCENT_DIVISOR; if (feeCharged != 0) { IERC20Upgradeable(USDC).safeTransfer(treasury, feeCharged); } } /** * @dev Core harvest function. * Swaps {USDC} for {want} */ function _swapToWant() internal { if (want == USDC) { return; } uint256 usdcBalance = IERC20Upgradeable(USDC).balanceOf(address(this)); if (usdcBalance != 0) { _swap(usdcToWantRoute, usdcBalance); } } /** * @dev Withdraws all funds leaving rewards behind. */ function _reclaimWant() internal override doUpdateBalance { _deleverage(type(uint256).max); _withdrawUnderlying(balanceOfPool); } /** * @dev Helper modifier for functions that need to update the internal balance at the end of their execution. */ modifier doUpdateBalance() { _; updateBalance(); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beacon","type":"address"}],"name":"BeaconUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newCallFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newTreasuryFee","type":"uint256"}],"name":"FeesUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"harvester","type":"address"}],"name":"StratHarvest","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newFee","type":"uint256"}],"name":"TotalFeeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"inputs":[],"name":"ADMIN","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GUARDIAN","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"KEEPER","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LTV_SAFETY_ZONE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MANTISSA","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SECURITY_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ONE_YEAR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERCENT_DIVISOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SONNE","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STRATEGIST","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UPGRADE_TIMELOCK","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"USDC","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VELO_ROUTER","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"addToFeeOnWithdraw","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"allowedLTVDrift","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"int256","name":"_n","type":"int256"}],"name":"averageAPRAcrossLastNHarvests","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceOfPool","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceOfWant","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"borrowDepth","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cWant","outputs":[{"internalType":"contract CErc20I","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startIndex","type":"uint256"},{"internalType":"uint256","name":"_endIndex","type":"uint256"}],"name":"calculateAPRUsingLogs","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"calculateLTV","outputs":[{"internalType":"uint256","name":"ltv","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"clearUpgradeCooldown","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"comptroller","outputs":[{"internalType":"contract IComptroller","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getCurrentPosition","outputs":[{"internalType":"uint256","name":"supplied","type":"uint256"},{"internalType":"uint256","name":"borrowed","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"harvest","outputs":[{"internalType":"uint256","name":"feeCharged","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"harvestLog","outputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"vaultSharePrice","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvestLogCadence","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvestLogLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"_vault","type":"address"},{"internalType":"address","name":"_treasury","type":"address"},{"internalType":"address[]","name":"_strategists","type":"address[]"},{"internalType":"address[]","name":"_multisigRoles","type":"address[]"},{"internalType":"address[]","name":"_keepers","type":"address[]"},{"internalType":"address","name":"_soWant","type":"address"},{"internalType":"uint256","name":"_targetLTV","type":"uint256"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initiateUpgradeCooldown","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"isChargedFeeOnWithdraw","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastHarvestTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"manualDeleverage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"manualReleaseWant","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"markets","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxBorrowDepth","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minWantToLeverage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"panic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxiableUUID","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"removeFromFeeOnWithdraw","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[],"name":"securityFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_drift","type":"uint256"}],"name":"setAllowedLtvDrift","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_borrowDepth","type":"uint8"}],"name":"setBorrowDepth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minWantToLeverage","type":"uint256"}],"name":"setMinWantToLeverage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_ltv","type":"uint256"}],"name":"setTargetLtv","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_newUsdcToWantRoute","type":"address[]"}],"name":"setUsdcToWantRoute","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_withdrawSlippageTolerance","type":"uint256"}],"name":"setWithdrawSlippageTolerance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"sonneToUsdcRoute","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"targetLTV","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"updateBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCadenceInSeconds","type":"uint256"}],"name":"updateHarvestLogCadence","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_securityFee","type":"uint256"}],"name":"updateSecurityFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_totalFee","type":"uint256"}],"name":"updateTotalFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newTreasury","type":"address"}],"name":"updateTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"upgradeProposalTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"usdcToWantRoute","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vault","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"want","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawSlippageTolerance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Deployed Bytecode
0x6080604052600436106104725760003560e01c806365ee33951161024a578063a68530aa11610139578063d09e1263116100b6578063d68e13021161007a578063d68e130214610d0a578063ec90b12214610d21578063f37ae32814610d41578063f4852a8114610d61578063fbfa77cf14610d8157600080fd5b8063d09e126314610c74578063d0e30db014610c94578063d1125fd014610ca9578063d32b960414610cca578063d547741f14610cea57600080fd5b8063bc8ebf6b116100fd578063bc8ebf6b14610bf1578063c191464e14610c08578063c1a3d44c14610c1f578063c599f43414610c34578063ca15c87314610c5457600080fd5b8063a68530aa14610b66578063a9559dd714610b86578063b1283e7714610b9b578063ba6aab8d14610bbb578063bc063e1a14610bdb57600080fd5b8063862a179e116101c7578063908ee91c1161018b578063908ee91c14610ad857806391d1485414610af85780639768431714610b185780639cfdede314610b2f578063a217fddf14610b5157600080fd5b8063862a179e14610a395780638887998514610a5b57806389a3027114610a705780638cf5588214610a985780639010d07c14610ab857600080fd5b806372c95e561161020e57806372c95e56146109c157806374872cf2146109d85780637f51bb1f146109ef57806382b0b17514610a0f5780638456cb5914610a2457600080fd5b806365ee3395146109225780636b053330146109425780637002783914610962578063722713f71461098a578063724c184c1461099f57600080fd5b806332abda9c116103665780634641257d116102e35780635c975abb116102a75780635c975abb146108905780635fe3b567146108a957806361591149146108ca57806361d027b3146108ea578063651eebfe1461090b57600080fd5b80634641257d146108285780634700d3051461083d5780634870dd9a146108525780634f1ef2861461086857806352d1902d1461087b57600080fd5b80633a1fa3061161032a5780633a1fa306146107925780633f4ba83a146107a9578063418f35cc146107be57806344c6ede3146107e85780634551e98f1461080857600080fd5b806332abda9c1461070657806336568abe1461071b5780633659cfe61461073b578063368018251461075b578063396794cd1461077257600080fd5b80631df4ccfc116103f45780632703984c116103b85780632703984c146106725780632a0acc6a1461068e5780632d6f4baa146106b05780632f2ff15d146106c65780633042087c146106e657600080fd5b80631df4ccfc146105dc5780631f1fcd51146105f35780632257a73814610614578063248a9ca31461062b57806325ed32ca1461065b57600080fd5b8063132a13281161043b578063132a13281461052f57806313c6c4751461054f57806316d3bfbb1461056457806319dba7221461057c5780631abc4643146105bc57600080fd5b8062f714ce1461047757806301ffc9a714610499578063037f4004146104ce5780630718d0c3146104f85780631158808614610518575b600080fd5b34801561048357600080fd5b50610497610492366004614d3f565b610da2565b005b3480156104a557600080fd5b506104b96104b4366004614d6f565b610e36565b60405190151581526020015b60405180910390f35b3480156104da57600080fd5b506104ea670d99a8cec7e2000081565b6040519081526020016104c5565b34801561050457600080fd5b50610497610513366004614d99565b610e61565b34801561052457600080fd5b506104ea6101725481565b34801561053b57600080fd5b5061049761054a366004614db2565b610e7e565b34801561055b57600080fd5b506104ea600a81565b34801561057057600080fd5b506104ea6301e1338081565b34801561058857600080fd5b506105a4731db2466d9f5e10d7090e7152b68d62703a2245f081565b6040516001600160a01b0390911681526020016104c5565b3480156105c857600080fd5b506105a46105d7366004614d99565b610fb6565b3480156105e857600080fd5b506104ea6101665481565b3480156105ff57600080fd5b5061016a546105a4906001600160a01b031681565b34801561062057600080fd5b506104ea6101615481565b34801561063757600080fd5b506104ea610646366004614d99565b600090815260c9602052604090206001015490565b34801561066757600080fd5b506104ea6202a30081565b34801561067e57600080fd5b506104ea670de0b6b3a764000081565b34801561069a57600080fd5b506104ea6000805160206157aa83398151915281565b3480156106bc57600080fd5b5061015f546104ea565b3480156106d257600080fd5b506104976106e1366004614d3f565b610fe1565b3480156106f257600080fd5b50610497610701366004614d99565b611006565b34801561071257600080fd5b506104ea61111d565b34801561072757600080fd5b50610497610736366004614d3f565b6111fe565b34801561074757600080fd5b50610497610756366004614e27565b611278565b34801561076757600080fd5b506104ea6101705481565b34801561077e57600080fd5b5061049761078d366004614d99565b611355565b34801561079e57600080fd5b506104ea6101755481565b3480156107b557600080fd5b5061049761139e565b3480156107ca57600080fd5b506107d36113c7565b604080519283526020830191909152016104c5565b3480156107f457600080fd5b506104b9610803366004614e27565b61146f565b34801561081457600080fd5b506105a4610823366004614d99565b61147d565b34801561083457600080fd5b506104ea61148e565b34801561084957600080fd5b506104976115df565b34801561085e57600080fd5b506104ea61271081565b610497610876366004614e8b565b611606565b34801561088757600080fd5b506104ea6116d3565b34801561089c57600080fd5b5061012d5460ff166104b9565b3480156108b557600080fd5b5061016c546105a4906001600160a01b031681565b3480156108d657600080fd5b506104976108e5366004614d99565b611787565b3480156108f657600080fd5b50610164546105a4906001600160a01b031681565b34801561091757600080fd5b506104ea6101625481565b34801561092e57600080fd5b5061049761093d366004614f33565b6117a5565b34801561094e57600080fd5b5061049761095d366004614fee565b6117d8565b34801561096e57600080fd5b506105a473a132dab612db5cb9fc9ac426a0cc215a3423f9c981565b34801561099657600080fd5b506104ea611b6a565b3480156109ab57600080fd5b506104ea60008051602061572383398151915281565b3480156109cd57600080fd5b506104ea6101605481565b3480156109e457600080fd5b506104ea6101745481565b3480156109fb57600080fd5b50610497610a0a366004614e27565b611b87565b348015610a1b57600080fd5b50610497611bb4565b348015610a3057600080fd5b50610497611bd2565b348015610a4557600080fd5b506104ea60008051602061574383398151915281565b348015610a6757600080fd5b50610497611bf1565b348015610a7c57600080fd5b506105a4737f5c764cbc14f9669b88837ca1490cca17c3160781565b348015610aa457600080fd5b506104ea610ab33660046150b6565b611c27565b348015610ac457600080fd5b506105a4610ad33660046150b6565b611d5c565b348015610ae457600080fd5b50610497610af3366004614d99565b611d7b565b348015610b0457600080fd5b506104b9610b13366004614d3f565b611e7b565b348015610b2457600080fd5b506104ea6101735481565b348015610b3b57600080fd5b506104ea6000805160206157ca83398151915281565b348015610b5d57600080fd5b506104ea600081565b348015610b7257600080fd5b506104b9610b81366004614e27565b611ea6565b348015610b9257600080fd5b50610497611ecb565b348015610ba757600080fd5b506105a4610bb6366004614d99565b611fc4565b348015610bc757600080fd5b50610497610bd6366004614d99565b611fd5565b348015610be757600080fd5b506104ea6103e881565b348015610bfd57600080fd5b506104ea6101715481565b348015610c1457600080fd5b506104ea6101765481565b348015610c2b57600080fd5b506104ea611ff2565b348015610c4057600080fd5b506104b9610c4f366004614e27565b612060565b348015610c6057600080fd5b506104ea610c6f366004614d99565b612085565b348015610c8057600080fd5b50610497610c8f366004614d99565b61209c565b348015610ca057600080fd5b5061049761214f565b348015610cb557600080fd5b5061016b546105a4906001600160a01b031681565b348015610cd657600080fd5b50610497610ce5366004614d99565b61215f565b348015610cf657600080fd5b50610497610d05366004614d3f565b6121b4565b348015610d1657600080fd5b506104ea6101675481565b348015610d2d57600080fd5b50610497610d3c366004614d99565b6121d9565b348015610d4d57600080fd5b506107d3610d5c366004614d99565b6121f6565b348015610d6d57600080fd5b506104ea610d7c366004614d99565b612225565b348015610d8d57600080fd5b50610165546105a4906001600160a01b031681565b610165546001600160a01b03163314610dba57600080fd5b81610dc457600080fd5b610dcc611b6a565b821115610dd857600080fd5b610de4610168826122ca565b80610df65750610df6610168326122ca565b15610e295760006127106101675484610e0f91906150ee565b610e199190615123565b9050610e258184615137565b9250505b610e32826122ec565b5050565b60006001600160e01b03198216635a05180f60e01b1480610e5b5750610e5b826123ec565b92915050565b610e786000805160206157ca833981519152612421565b61017455565b610e956000805160206157ca833981519152612421565b737f5c764cbc14f9669b88837ca1490cca17c316078282600081610ebb57610ebb61514e565b9050602002016020810190610ed09190614e27565b6001600160a01b031614610f175760405162461bcd60e51b815260206004820152600960248201526862616420726f75746560b81b60448201526064015b60405180910390fd5b61016a546001600160a01b03168282610f31600182615137565b818110610f4057610f4061514e565b9050602002016020810190610f559190614e27565b6001600160a01b031614610f975760405162461bcd60e51b815260206004820152600960248201526862616420726f75746560b81b6044820152606401610f0e565b610fa461016e6000614bf4565b610fb161016e8383614c12565b505050565b61016e8181548110610fc757600080fd5b6000918252602090912001546001600160a01b0316905081565b600082815260c96020526040902060010154610ffc816124f7565b610fb18383612501565b61101d6000805160206157ca833981519152612421565b61016b5460405163852a12e360e01b8152600481018390526001600160a01b039091169063852a12e3906024016020604051808303816000875af1158015611069573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061108d9190615164565b1561109757600080fd5b61016b5460405163073a938160e11b8152600481018390526001600160a01b0390911690630e752702906024015b6020604051808303816000875af11580156110e4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111089190615164565b1561111257600080fd5b61111a611ecb565b50565b61016b546040516361bfb47160e11b81523060048201526000918291829182916001600160a01b039091169063c37f68e290602401608060405180830381865afa15801561116f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611193919061517d565b935093509350506000670de0b6b3a764000082856111b191906150ee565b6111bb9190615123565b90508015806111c8575082155b156111d857600094505050505090565b806111eb84670de0b6b3a76400006150ee565b6111f59190615123565b94505050505090565b6001600160a01b038116331461126e5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610f0e565b610e328282612523565b306001600160a01b037f0000000000000000000000005d89a4c927d509ef4a636488ee291d396e406d1f1614156112c15760405162461bcd60e51b8152600401610f0e906151b3565b7f0000000000000000000000005d89a4c927d509ef4a636488ee291d396e406d1f6001600160a01b031661130a600080516020615763833981519152546001600160a01b031690565b6001600160a01b0316146113305760405162461bcd60e51b8152600401610f0e906151ff565b61133981612545565b6040805160008082526020820190925261111a91839190612574565b61136c6000805160206157ca833981519152612421565b61016b5460405163852a12e360e01b8152600481018390526001600160a01b039091169063852a12e3906024016110c5565b6113b56000805160206157aa833981519152612421565b6113bd6126df565b6113c561214f565b565b61016b546040516361bfb47160e11b815230600482015260009182918291829182916001600160a01b03169063c37f68e290602401608060405180830381865afa158015611419573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061143d919061517d565b93509350935050819350670de0b6b3a7640000818461145c91906150ee565b6114669190615123565b94505050509091565b6000610e5b610168836122ca565b61016d8181548110610fc757600080fd5b6000611498612732565b6114af600080516020615743833981519152612421565b6114b7612779565b90506101605461015f600161015f805490506114d39190615137565b815481106114e3576114e361514e565b9060005260206000209060020201600001546114ff919061524b565b42106115ac57604080518082018252428152610165548251631df1ee3f60e21b8152925161015f936020808501936001600160a01b0316926377c7b8fc9260048082019392918290030181865afa15801561155e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115829190615164565b90528154600181810184556000938452602093849020835160029093020191825592909101519101555b426101615560405133907f577a37fdb49a88d66684922c6f913df5239b4f214b2b97c53ef8e3bbb2034cb590600090a290565b6115f6600080516020615723833981519152612421565b6115fe6127a5565b6113c5611bd2565b306001600160a01b037f0000000000000000000000005d89a4c927d509ef4a636488ee291d396e406d1f16141561164f5760405162461bcd60e51b8152600401610f0e906151b3565b7f0000000000000000000000005d89a4c927d509ef4a636488ee291d396e406d1f6001600160a01b0316611698600080516020615763833981519152546001600160a01b031690565b6001600160a01b0316146116be5760405162461bcd60e51b8152600401610f0e906151ff565b6116c782612545565b610e3282826001612574565b6000306001600160a01b037f0000000000000000000000005d89a4c927d509ef4a636488ee291d396e406d1f16146117735760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c00000000000000006064820152608401610f0e565b506000805160206157638339815191525b90565b6117916000612421565b600a81111561179f57600080fd5b61016755565b6117bc6000805160206157ca833981519152612421565b610175548160ff1611156117cf57600080fd5b60ff1661017355565b600054610100900460ff16158080156117f85750600054600160ff909116105b806118125750303b158015611812575060005460ff166001145b6118755760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610f0e565b6000805460ff191660011790558015611898576000805461ff0019166101001790555b6118a588888888886127c4565b61016b80546001600160a01b0319166001600160a01b03851690811790915560408051602081019091529081526118e19061016f906001614c75565b5061016b60009054906101000a90046001600160a01b03166001600160a01b0316635fe3b5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015611936573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061195a9190615263565b61016c80546001600160a01b0319166001600160a01b0392831617905561016b5460408051636f307dc360e01b815290519190921691636f307dc39160048083019260209291908290030181865afa1580156119ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119de9190615263565b61016a80546001600160a01b0319166001600160a01b0392909216918217905560408051808201909152737f5c764cbc14f9669b88837ca1490cca17c3160781526020810191909152611a369061016e906002614c75565b5060408051808201909152731db2466d9f5e10d7090e7152b68d62703a2245f08152737f5c764cbc14f9669b88837ca1490cca17c316076020820152611a819061016d906002614c75565b50662386f26fc1000061017155600061017255600c61017355600561017455600f6101755560326101765561016c54604051631853304760e31b81526001600160a01b039091169063c299823890611adf9061016f90600401615280565b600060405180830381600087803b158015611af957600080fd5b505af1158015611b0d573d6000803e3d6000fd5b50505050611b1a82611d7b565b8015611b60576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050505050505050565b600061017254611b78611ff2565b611b82919061524b565b905090565b611b916000612421565b61016480546001600160a01b0319166001600160a01b0392909216919091179055565b611bcb6000805160206157ca833981519152612421565b4261016255565b611be9600080516020615723833981519152612421565b6113c5612a54565b611c08600080516020615723833981519152612421565b611c176301e1338060646150ee565b611c21904261524b565b61016255565b60008061015f8481548110611c3e57611c3e61514e565b90600052602060002090600202019050600061015f8481548110611c6457611c6461514e565b90600052602060002090600202019050600060019050826001015482600101541015611c8e575060005b60008115611cb15783600101548360010154611caa9190615137565b9050611cc8565b82600101548460010154611cc59190615137565b90505b6001840154600090611ce283670de0b6b3a76400006150ee565b611cec9190615123565b85548554919250600091611d009190615137565b9050600081611d136301e13380856150ee565b611d1d9190615123565b9050611d2f655af3107a400082615123565b90508415611d45579650610e5b95505050505050565b611d4e816152d0565b9a9950505050505050505050565b600082815260fb60205260408120611d749083612a92565b9392505050565b611d9360008051602061574383398151915233611e7b565b611dae57611dae6000805160206157ca833981519152612421565b61016c5461016b54604051638e8f294b60e01b81526001600160a01b0391821660048201526000929190911690638e8f294b90602401606060405180830381865afa158015611e01573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e2591906152fd565b509150506101715482611e38919061524b565b8111611e4357600080fd5b670de0b6b3a7640000611e5e670d99a8cec7e20000836150ee565b611e689190615123565b821115611e7457600080fd5b5061017055565b600091825260c9602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6000611ebf6000805160206157ca833981519152612421565b610e5b61016883612a9e565b61016b54604051633af9e66960e01b81523060048201526000916001600160a01b031690633af9e669906024016020604051808303816000875af1158015611f17573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f3b9190615164565b61016b546040516305eff7ef60e21b81523060048201529192506000916001600160a01b03909116906317bfdfbc906024016020604051808303816000875af1158015611f8c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fb09190615164565b9050611fbc8183615137565b610172555050565b61016f8181548110610fc757600080fd5b611fec6000805160206157ca833981519152612421565b61017655565b61016a546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa15801561203c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b829190615164565b6000612079600080516020615723833981519152612421565b610e5b61016883612ab3565b600081815260fb60205260408120610e5b90612ac8565b6120b36000805160206157ca833981519152612421565b61016c5461016b54604051638e8f294b60e01b81526001600160a01b0391821660048201526000929190911690638e8f294b90602401606060405180830381865afa158015612106573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061212a91906152fd565b50915050816101705461213d919061524b565b811161214857600080fd5b5061017155565b612157612732565b6113c5612ad2565b6121696000612421565b6103e881111561217857600080fd5b6101668190556040518181527f2e59d502792bca3d730c472cd3acfbc16d0f9fe6ce0cddbdf0f80830251dfaca9060200160405180910390a150565b600082815260c960205260409020600101546121cf816124f7565b610fb18383612523565b6121f06000805160206157ca833981519152612421565b61016055565b61015f818154811061220757600080fd5b60009182526020909120600290910201805460019091015490915082565b61015f546000906002111561223957600080fd5b6000806000600161015f805490506122519190615137565b90505b60008111801561226357508482125b156122a85761227c612276600183615137565b82611c27565b6122869084615339565b9250816122928161537a565b92505080806122a09061539a565b915050612254565b506122b381836153b1565b949350505050565b6001600160a01b03163b151590565b6001600160a01b03811660009081526001830160205260408120541515611d74565b61016a546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015612336573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061235a9190615164565b9050808211612388576101655461016a54612382916001600160a01b03918216911684612bb8565b50611112565b600061239383612c1b565b905061239e81612d47565b156123b9576123ac83612d84565b6123b4612e30565b6123e2565b6123c281612f90565b156123d9576123d083612fb3565b6123b483612d84565b6123e283612d84565b505061111a611ecb565b60006001600160e01b03198216637965db0b60e01b1480610e5b57506301ffc9a760e01b6001600160e01b0319831614610e5b565b61016354600080805b838110156124a45781158015612463575061246361016382815481106124525761245261514e565b906000526020600020015433611e7b565b1561246d57600191505b61016381815481106124815761248161514e565b906000526020600020015485141561249c57600192506124a4565b60010161242a565b508180156124af5750805b6124f15760405162461bcd60e51b8152602060048201526013602482015272556e617574686f72697a65642061636365737360681b6044820152606401610f0e565b50505050565b61111a813361300f565b61250b8282613073565b600082815260fb60205260409020610fb19082612a9e565b61252d82826130f9565b600082815260fb60205260409020610fb19082612ab3565b61254f6000612421565b426202a30061016254612562919061524b565b1061256c57600080fd5b61111a611bf1565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff16156125a757610fb183613160565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015612601575060408051601f3d908101601f191682019092526125fe91810190615164565b60015b6126645760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b6064820152608401610f0e565b60008051602061576383398151915281146126d35760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b6064820152608401610f0e565b50610fb18383836131fc565b6126e7613221565b61012d805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b61012d5460ff16156113c55760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610f0e565b600061278361326b565b61278b613322565b6127936133ff565b905061279d6134c6565b61178461214f565b6127b0600019612fb3565b6127bc610172546135d1565b6113c5611ecb565b600054610100900460ff166127eb5760405162461bcd60e51b8152600401610f0e906153df565b6127f361388d565b6127fb61388d565b6128036138b4565b603c610160556101c261016655600a6101675561016580546001600160a01b038088166001600160a01b03199283161790925561016480549287169290911691909117905560005b835181101561288d576128856000805160206157ca8339815191528583815181106128785761287861514e565b6020026020010151612501565b60010161284b565b50612899600033612501565b6128b36000801b836000815181106128785761287861514e565b6128d86000805160206157aa833981519152836001815181106128785761287861514e565b6128fd600080516020615723833981519152836002815181106128785761287861514e565b60005b81518110156129355761292d6000805160206157438339815191528383815181106128785761287861514e565b600101612900565b506040805160a081018252600081526000805160206157aa8339815191526020820152600080516020615723833981519152918101919091526000805160206157ca833981519152606082015260008051602061574383398151915260808201526129a590610163906005614cca565b506129ae611bf1565b61015f6040518060400160405280428152602001876001600160a01b03166377c7b8fc6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612a00573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a249190615164565b90528154600181810184556000938452602093849020835160029093020191825592909101519101555050505050565b612a5c612732565b61012d805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586127153390565b6000611d7483836138e8565b6000611d74836001600160a01b038416613912565b6000611d74836001600160a01b038416613961565b6000610e5b825490565b6000612adc611ff2565b61016b5461016a54919250612afe916001600160a01b03908116911683613a54565b61016b5460405163140e25ad60e31b8152600481018390526001600160a01b039091169063a0712d68906024016020604051808303816000875af1158015612b4a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b6e9190615164565b506000612b79613b06565b9050612b8481612d47565b15612b9657612b91612e30565b612bae565b612b9f81612f90565b15612bae57612bae6000612fb3565b50506113c5611ecb565b6040516001600160a01b038316602482015260448101829052610fb190849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152613c2c565b61016b54604051633af9e66960e01b815230600482015260009182916001600160a01b0390911690633af9e669906024016020604051808303816000875af1158015612c6b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c8f9190615164565b61016b546040516395dd919360e01b81523060048201529192506000916001600160a01b03909116906395dd919390602401602060405180830381865afa158015612cde573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d029190615164565b9050612d0e8483615137565b9150811580612d1b575080155b15612d2a575060009392505050565b81612d3d82670de0b6b3a76400006150ee565b6122b39190615123565b6000610171546101705410158015612d6f57506101715461017054612d6c9190615137565b82105b15612d7c57506001919050565b506000919050565b612d8d816135d1565b61016a546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015612dd7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612dfb9190615164565b90506000828210612e0c5782612e0e565b815b6101655461016a54919250610fb1916001600160a01b03908116911683612bb8565b61016b54604051633af9e66960e01b81523060048201526000916001600160a01b031690633af9e669906024016020604051808303816000875af1158015612e7c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ea09190615164565b61016b546040516395dd919360e01b81523060048201529192506000916001600160a01b03909116906395dd919390602401602060405180830381865afa158015612eef573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f139190615164565b90506000612f218284615137565b90506000612f328261017054613cfe565b90506000612f408483615137565b905060005b610173548160ff16108015612f5c57506101745482115b15612f8857612f6a82613d26565b612f749083615137565b915080612f808161542a565b915050612f45565b505050505050565b60006101715461017054612fa4919061524b565b821115612d7c57506001919050565b6000612fbe82613ff1565b905061017454811115610e325760005b61017454821115610fb157612fe282614170565b612fec9083615137565b915080612ff88161544a565b91505061017354811061300a57505050565b612fce565b6130198282611e7b565b610e3257613031816001600160a01b031660146144d0565b61303c8360206144d0565b60405160200161304d92919061548a565b60408051601f198184030181529082905262461bcd60e51b8252610f0e916004016154ff565b61307d8282611e7b565b610e3257600082815260c9602090815260408083206001600160a01b03851684529091529020805460ff191660011790556130b53390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6131038282611e7b565b15610e3257600082815260c9602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6001600160a01b0381163b6131cd5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610f0e565b60008051602061576383398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b6132058361466c565b6000825111806132125750805b15610fb1576124f183836146ac565b61012d5460ff166113c55760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610f0e565b60408051600180825281830190925260009160208083019080368337505061016b5482519293506001600160a01b0316918391506000906132ae576132ae61514e565b6001600160a01b03928316602091820292909201015261016c5460405162e1ed9760e51b8152911690631c3db2e0906132ed9030908590600401615532565b600060405180830381600087803b15801561330757600080fd5b505af115801561331b573d6000803e3d6000fd5b5050505050565b6040516370a0823160e01b8152306004820152600090731db2466d9f5e10d7090e7152b68d62703a2245f0906370a0823190602401602060405180830381865afa158015613374573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133989190615164565b905061111a61016d8054806020026020016040519081016040528092919081815260200182805480156133f457602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116133d6575b5050505050826147a0565b610166546040516370a0823160e01b815230600482015260009161271091737f5c764cbc14f9669b88837ca1490cca17c31607906370a0823190602401602060405180830381865afa158015613459573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061347d9190615164565b61348791906150ee565b6134919190615123565b90508015611784576101645461178490737f5c764cbc14f9669b88837ca1490cca17c31607906001600160a01b031683612bb8565b61016a546001600160a01b0316737f5c764cbc14f9669b88837ca1490cca17c3160714156134f057565b6040516370a0823160e01b8152306004820152600090737f5c764cbc14f9669b88837ca1490cca17c31607906370a0823190602401602060405180830381865afa158015613542573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135669190615164565b9050801561111a5761111a61016e8054806020026020016040519081016040528092919081815260200182805480156133f4576020028201919060005260206000209081546001600160a01b031681526001909101906020018083116133d6575050505050826147a0565b61016b54604051633af9e66960e01b815230600482015282916000916001600160a01b0390911690633af9e669906024016020604051808303816000875af1158015613621573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136459190615164565b61016b546040516395dd919360e01b81523060048201529192506000916001600160a01b03909116906395dd919390602401602060405180830381865afa158015613694573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136b89190615164565b905060006136c68284615137565b9050806136d4575050505050565b808511156136e0578094505b600061017154610170546136f4919061524b565b90506000816137085766038d7ea4c6800091505b8161371b670de0b6b3a7640000866150ee565b6137259190615123565b90508085106137c757600061373a8287615137565b61016b546040516370a0823160e01b81523060048201529192506000916001600160a01b03909116906370a0823190602401602060405180830381865afa158015613789573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137ad9190615164565b905060018111156137c457888210156137c4578198505b50505b60006137d4600189615137565b90508681101561381257612710610176546127106137f29190615137565b6137fc90896150ee565b6138069190615123565b81101561381257600080fd5b61016b5460405163852a12e360e01b8152600481018390526001600160a01b039091169063852a12e3906024016020604051808303816000875af115801561385e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906138829190615164565b505050505050505050565b600054610100900460ff166113c55760405162461bcd60e51b8152600401610f0e906153df565b600054610100900460ff166138db5760405162461bcd60e51b8152600401610f0e906153df565b61012d805460ff19169055565b60008260000182815481106138ff576138ff61514e565b9060005260206000200154905092915050565b600081815260018301602052604081205461395957508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610e5b565b506000610e5b565b60008181526001830160205260408120548015613a4a576000613985600183615137565b855490915060009061399990600190615137565b90508181146139fe5760008660000182815481106139b9576139b961514e565b90600052602060002001549050808760000184815481106139dc576139dc61514e565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080613a0f57613a0f61558e565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610e5b565b6000915050610e5b565b604051636eb1769f60e11b81523060048201526001600160a01b038381166024830152600091839186169063dd62ed3e90604401602060405180830381865afa158015613aa5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613ac99190615164565b613ad3919061524b565b6040516001600160a01b0385166024820152604481018290529091506124f190859063095ea7b360e01b90606401612be4565b61016b54604051633af9e66960e01b815230600482015260009182916001600160a01b0390911690633af9e669906024016020604051808303816000875af1158015613b56573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613b7a9190615164565b61016b546040516395dd919360e01b81523060048201529192506000916001600160a01b03909116906395dd919390602401602060405180830381865afa158015613bc9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613bed9190615164565b9050811580613bfa575080155b15613c085760009250505090565b81613c1b82670de0b6b3a76400006150ee565b613c259190615123565b9250505090565b6000613c81826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316614a7b9092919063ffffffff16565b805190915015610fb15780806020019051810190613c9f91906155a4565b610fb15760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610f0e565b6000613d1282670de0b6b3a7640000615137565b613d1c83856150ee565b611d749190615123565b600081613d3557506000919050565b61016b54604051633af9e66960e01b81523060048201526000916001600160a01b031690633af9e669906024016020604051808303816000875af1158015613d81573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613da59190615164565b61016b546040516395dd919360e01b81523060048201529192506000916001600160a01b03909116906395dd919390602401602060405180830381865afa158015613df4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e189190615164565b61016c5461016b54604051638e8f294b60e01b81526001600160a01b039182166004820152929350600092911690638e8f294b90602401606060405180830381865afa158015613e6c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e9091906152fd565b50915060009050670de0b6b3a7640000613eaa83866150ee565b613eb49190615123565b9050613ec08382615137565b905085811015613ece578095505b600a861115613fe75761016b5460405163317afabb60e21b8152600481018890526001600160a01b039091169063c5ebeaec906024016020604051808303816000875af1158015613f23573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f479190615164565b506000613f52611ff2565b61016b5461016a54919250613f74916001600160a01b03908116911683613a54565b61016b5460405163140e25ad60e31b8152600481018390526001600160a01b039091169063a0712d68906024016020604051808303816000875af1158015613fc0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613fe49190615164565b50505b5093949350505050565b61016b54604051633af9e66960e01b815230600482015260009182916001600160a01b0390911690633af9e669906024016020604051808303816000875af1158015614041573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906140659190615164565b61016b546040516395dd919360e01b81523060048201529192506000916001600160a01b03909116906395dd919390602401602060405180830381865afa1580156140b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906140d89190615164565b905060006140e68284615137565b90506000818611156140f6578195505b6141008683615137565b90506000610170548261411391906150ee565b9050600061017054670de0b6b3a764000061412e9190615137565b9050600061413c8284615123565b9050620186a081111561415957614156620186a082615137565b90505b6141638187615137565b9998505050505050505050565b61016b54604051633af9e66960e01b8152306004820152600091829182916001600160a01b031690633af9e669906024016020604051808303816000875af11580156141c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906141e49190615164565b61016b546040516395dd919360e01b81523060048201529192506000916001600160a01b03909116906395dd919390602401602060405180830381865afa158015614233573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906142579190615164565b61016c5461016b54604051638e8f294b60e01b81526001600160a01b039182166004820152929350600092911690638e8f294b90602401606060405180830381865afa1580156142ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906142cf91906152fd565b5091505080156142f957806142ec670de0b6b3a7640000846150ee565b6142f69190615123565b93505b60006143058585615137565b9050809550828610614315578295505b868610614320578695505b61016b546040805163182df0f560e01b815290516000926001600160a01b03169163182df0f59160048083019260209291908290030181865afa15801561436b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061438f9190615164565b9050806143a4670de0b6b3a7640000896150ee565b101580156143b25750600a87115b156144c5576143c2600a88615137565b61016b5460405163852a12e360e01b8152600481018390529198506001600160a01b03169063852a12e3906024016020604051808303816000875af115801561440f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906144339190615164565b5061016b5461016a54614453916001600160a01b03918216911689613a54565b61016b5460405163073a938160e11b8152600481018990526001600160a01b0390911690630e752702906024016020604051808303816000875af115801561449f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906144c39190615164565b505b505050505050919050565b606060006144df8360026150ee565b6144ea90600261524b565b67ffffffffffffffff81111561450257614502614e44565b6040519080825280601f01601f19166020018201604052801561452c576020820181803683370190505b509050600360fc1b816000815181106145475761454761514e565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106145765761457661514e565b60200101906001600160f81b031916908160001a905350600061459a8460026150ee565b6145a590600161524b565b90505b600181111561461d576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106145d9576145d961514e565b1a60f81b8282815181106145ef576145ef61514e565b60200101906001600160f81b031916908160001a90535060049490941c936146168161539a565b90506145a8565b508315611d745760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610f0e565b61467581613160565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606001600160a01b0383163b6147145760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401610f0e565b600080846001600160a01b03168460405161472f91906155bf565b600060405180830381855af49150503d806000811461476a576040519150601f19603f3d011682016040523d82523d6000602084013e61476f565b606091505b5091509150614797828260405180606001604052806027815260200161578360279139614a8a565b95945050505050565b8015610e3257815173a132dab612db5cb9fc9ac426a0cc215a3423f9c9906000906147cd90600190615137565b67ffffffffffffffff8111156147e5576147e5614e44565b60405190808252806020026020018201604052801561483057816020015b60408051606081018252600080825260208083018290529282015282526000199092019101816148035790505b50905082600080805b84518110156149b257856001600160a01b0316635e1e6325858a84815181106148645761486461514e565b60200260200101518b85600161487a919061524b565b8151811061488a5761488a61514e565b60200260200101516040518463ffffffff1660e01b81526004016148ca939291909283526001600160a01b03918216602084015216604082015260600190565b6040805180830381865afa1580156148e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061490a91906155db565b8093508194505050604051806060016040528089838151811061492f5761492f61514e565b60200260200101516001600160a01b0316815260200189836001614953919061524b565b815181106149635761496361514e565b60200260200101516001600160a01b031681526020018315158152508582815181106149915761499161514e565b602002602001018190525082935080806149aa9061544a565b915050614839565b506149ff73a132dab612db5cb9fc9ac426a0cc215a3423f9c987896000815181106149df576149df61514e565b60200260200101516001600160a01b0316613a549092919063ffffffff16565b604051631e82ecdb60e31b81526001600160a01b0386169063f41766d890614a34908990600090899030904290600401615607565b6000604051808303816000875af1158015614a53573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611b60919081019061569c565b60606122b38484600085614ac3565b60608315614a99575081611d74565b825115614aa95782518084602001fd5b8160405162461bcd60e51b8152600401610f0e91906154ff565b606082471015614b245760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610f0e565b6001600160a01b0385163b614b7b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610f0e565b600080866001600160a01b03168587604051614b9791906155bf565b60006040518083038185875af1925050503d8060008114614bd4576040519150601f19603f3d011682016040523d82523d6000602084013e614bd9565b606091505b5091509150614be9828286614a8a565b979650505050505050565b508054600082559060005260206000209081019061111a9190614d05565b828054828255906000526020600020908101928215614c65579160200282015b82811115614c655781546001600160a01b0319166001600160a01b03843516178255602090920191600190910190614c32565b50614c71929150614d05565b5090565b828054828255906000526020600020908101928215614c65579160200282015b82811115614c6557825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190614c95565b828054828255906000526020600020908101928215614c65579160200282015b82811115614c65578251825591602001919060010190614cea565b5b80821115614c715760008155600101614d06565b6001600160a01b038116811461111a57600080fd5b8035614d3a81614d1a565b919050565b60008060408385031215614d5257600080fd5b823591506020830135614d6481614d1a565b809150509250929050565b600060208284031215614d8157600080fd5b81356001600160e01b031981168114611d7457600080fd5b600060208284031215614dab57600080fd5b5035919050565b60008060208385031215614dc557600080fd5b823567ffffffffffffffff80821115614ddd57600080fd5b818501915085601f830112614df157600080fd5b813581811115614e0057600080fd5b8660208260051b8501011115614e1557600080fd5b60209290920196919550909350505050565b600060208284031215614e3957600080fd5b8135611d7481614d1a565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715614e8357614e83614e44565b604052919050565b60008060408385031215614e9e57600080fd5b8235614ea981614d1a565b915060208381013567ffffffffffffffff80821115614ec757600080fd5b818601915086601f830112614edb57600080fd5b813581811115614eed57614eed614e44565b614eff601f8201601f19168501614e5a565b91508082528784828501011115614f1557600080fd5b80848401858401376000848284010152508093505050509250929050565b600060208284031215614f4557600080fd5b813560ff81168114611d7457600080fd5b600067ffffffffffffffff821115614f7057614f70614e44565b5060051b60200190565b600082601f830112614f8b57600080fd5b81356020614fa0614f9b83614f56565b614e5a565b82815260059290921b84018101918181019086841115614fbf57600080fd5b8286015b84811015614fe3578035614fd681614d1a565b8352918301918301614fc3565b509695505050505050565b600080600080600080600060e0888a03121561500957600080fd5b873561501481614d1a565b9650602088013561502481614d1a565b9550604088013567ffffffffffffffff8082111561504157600080fd5b61504d8b838c01614f7a565b965060608a013591508082111561506357600080fd5b61506f8b838c01614f7a565b955060808a013591508082111561508557600080fd5b506150928a828b01614f7a565b9350506150a160a08901614d2f565b915060c0880135905092959891949750929550565b600080604083850312156150c957600080fd5b50508035926020909101359150565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615615108576151086150d8565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826151325761513261510d565b500490565b600082821015615149576151496150d8565b500390565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561517657600080fd5b5051919050565b6000806000806080858703121561519357600080fd5b505082516020840151604085015160609095015191969095509092509050565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b6000821982111561525e5761525e6150d8565b500190565b60006020828403121561527557600080fd5b8151611d7481614d1a565b6020808252825482820181905260008481528281209092916040850190845b818110156152c45783546001600160a01b03168352600193840193928501920161529f565b50909695505050505050565b6000600160ff1b8214156152e6576152e66150d8565b5060000390565b80518015158114614d3a57600080fd5b60008060006060848603121561531257600080fd5b61531b846152ed565b925060208401519150615330604085016152ed565b90509250925092565b600080821280156001600160ff1b038490038513161561535b5761535b6150d8565b600160ff1b8390038412811615615374576153746150d8565b50500190565b60006001600160ff1b03821415615393576153936150d8565b5060010190565b6000816153a9576153a96150d8565b506000190190565b6000826153c0576153c061510d565b600160ff1b8214600019841416156153da576153da6150d8565b500590565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b600060ff821660ff811415615441576154416150d8565b60010192915050565b6000600019821415615393576153936150d8565b60005b83811015615479578181015183820152602001615461565b838111156124f15750506000910152565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516154c281601785016020880161545e565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516154f381602884016020880161545e565b01602801949350505050565b602081526000825180602084015261551e81604085016020870161545e565b601f01601f19169190910160400192915050565b6001600160a01b038381168252604060208084018290528451918401829052600092858201929091906060860190855b81811015615580578551851683529483019491830191600101615562565b509098975050505050505050565b634e487b7160e01b600052603160045260246000fd5b6000602082840312156155b657600080fd5b611d74826152ed565b600082516155d181846020870161545e565b9190910192915050565b600080604083850312156155ee57600080fd5b825191506155fe602084016152ed565b90509250929050565b600060a0820187835260208781850152604060a08186015282885180855260c087019150838a01945060005b8181101561567057855180516001600160a01b03908116855286820151168685015284015115158484015294840194606090920191600101615633565b50506001600160a01b0388166060870152935061568c92505050565b8260808301529695505050505050565b600060208083850312156156af57600080fd5b825167ffffffffffffffff8111156156c657600080fd5b8301601f810185136156d757600080fd5b80516156e5614f9b82614f56565b81815260059190911b8201830190838101908783111561570457600080fd5b928401925b82841015614be95783518252928401929084019061570956fe8b5b16d04624687fcf0d0228f19993c9157c1ed07b41d8d430fd9100eb099fe871a9859d7dd21b24504a6f306077ffc2d510b4d4b61128e931fe937441ad1836360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564df8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec42b17d0a42cc710456bf9c3efb785dcd0cb93a0ac358113307b5c64b285b516b5ca2646970667358221220d39ae70b3b90088c7652bda62cff448a584a1c69df03e15b5a826c6a0b4421e664736f6c634300080b0033
Deployed Bytecode Sourcemap
109137:23254:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;76024:449;;;;;;;;;;-1:-1:-1;76024:449:0;;;;;:::i;:::-;;:::i;:::-;;48120:225;;;;;;;;;;-1:-1:-1;48120:225:0;;;;;:::i;:::-;;:::i;:::-;;;1065:14:1;;1058:22;1040:41;;1028:2;1013:18;48120:225:0;;;;;;;;110743:52;;;;;;;;;;;;110785:10;110743:52;;;;;1238:25:1;;;1226:2;1211:18;110743:52:0;1092:177:1;116428:159:0;;;;;;;;;;-1:-1:-1;116428:159:0;;;;;:::i;:::-;;:::i;111444:28::-;;;;;;;;;;;;;;;;116958:356;;;;;;;;;;-1:-1:-1;116958:356:0;;;;;:::i;:::-;;:::i;72915:45::-;;;;;;;;;;;;72958:2;72915:45;;70837:43;;;;;;;;;;;;70872:8;70837:43;;109642:74;;;;;;;;;;;;109674:42;109642:74;;;;;-1:-1:-1;;;;;2352:32:1;;;2334:51;;2322:2;2307:18;109642:74:0;2188:203:1;110336:32:0;;;;;;;;;;-1:-1:-1;110336:32:0;;;;;:::i;:::-;;:::i;73425:23::-;;;;;;;;;;;;;;;;109723:19;;;;;;;;;;-1:-1:-1;109723:19:0;;;;-1:-1:-1;;;;;109723:19:0;;;71140:35;;;;;;;;;;;;;;;;41788:131;;;;;;;;;;-1:-1:-1;41788:131:0;;;;;:::i;:::-;41862:7;41889:12;;;:6;:12;;;;;:22;;;;41788:131;70887:51;;;;;;;;;;;;70930:8;70887:51;;110697:39;;;;;;;;;;;;110732:4;110697:39;;72267:50;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;72267:50:0;;77182:103;;;;;;;;;;-1:-1:-1;77260:10:0;:17;77182:103;;42229:147;;;;;;;;;;-1:-1:-1;42229:147:0;;;;;:::i;:::-;;:::i;114648:215::-;;;;;;;;;;-1:-1:-1;114648:215:0;;;;;:::i;:::-;;:::i;114149:391::-;;;;;;;;;;;;;:::i;43373:218::-;;;;;;;;;;-1:-1:-1;43373:218:0;;;;;:::i;:::-;;:::i;68967:200::-;;;;;;;;;;-1:-1:-1;68967:200:0;;;;;:::i;:::-;;:::i;111376:24::-;;;;;;;;;;;;;;;;114971:166;;;;;;;;;;-1:-1:-1;114971:166:0;;;;;:::i;:::-;;:::i;111551:29::-;;;;;;;;;;;;;;;;79238:116;;;;;;;;;;;;;:::i;118645:316::-;;;;;;;;;;;;;:::i;:::-;;;;3509:25:1;;;3565:2;3550:18;;3543:34;;;;3482:18;118645:316:0;3335:248:1;81739:140:0;;;;;;;;;;-1:-1:-1;81739:140:0;;;;;:::i;:::-;;:::i;110296:33::-;;;;;;;;;;-1:-1:-1;110296:33:0;;;;;:::i;:::-;;:::i;76658:516::-;;;;;;;;;;;;;:::i;78679:119::-;;;;;;;;;;;;;:::i;70782:48::-;;;;;;;;;;;;70824:6;70782:48;;69426:225;;;;;;:::i;:::-;;:::i;68645:133::-;;;;;;;;;;;;;:::i;52145:86::-;;;;;;;;;;-1:-1:-1;52216:7:0;;;;52145:86;;110045:31;;;;;;;;;;-1:-1:-1;110045:31:0;;;;-1:-1:-1;;;;;110045:31:0;;;79678:198;;;;;;;;;;-1:-1:-1;79678:198:0;;;;;:::i;:::-;;:::i;72542:23::-;;;;;;;;;;-1:-1:-1;72542:23:0;;;;-1:-1:-1;;;;;72542:23:0;;;71184:34;;;;;;;;;;;;;;;;116150:183;;;;;;;;;;-1:-1:-1;116150:183:0;;;;;:::i;:::-;;:::i;111832:898::-;;;;;;;;;;-1:-1:-1;111832:898:0;;;;;:::i;:::-;;:::i;109958:80::-;;;;;;;;;;;;109996:42;109958:80;;118128:117;;;;;;;;;;;;;:::i;72204:56::-;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;72204:56:0;;71101:32;;;;;;;;;;;;;;;;111512;;;;;;;;;;;;;;;;79968:138;;;;;;;;;;-1:-1:-1;79968:138:0;;;;;:::i;:::-;;:::i;82161:135::-;;;;;;;;;;;;;:::i;78975:93::-;;;;;;;;;;;;;:::i;72078:52::-;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;72078:52:0;;82567:147;;;;;;;;;;;;;:::i;109562:73::-;;;;;;;;;;;;109593:42;109562:73;;80237:1150;;;;;;;;;;-1:-1:-1;80237:1150:0;;;;;:::i;:::-;;:::i;48944:153::-;;;;;;;;;;-1:-1:-1;48944:153:0;;;;;:::i;:::-;;:::i;115242:414::-;;;;;;;;;;-1:-1:-1;115242:414:0;;;;;:::i;:::-;;:::i;40226:147::-;;;;;;;;;;-1:-1:-1;40226:147:0;;;;;:::i;:::-;;:::i;111479:26::-;;;;;;;;;;;;;;;;72137:60;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;72137:60:0;;39320:49;;;;;;;;;;-1:-1:-1;39320:49:0;39365:4;39320:49;;81395:161;;;;;;;;;;-1:-1:-1;81395:161:0;;;;;:::i;:::-;;:::i;119110:265::-;;;;;;;;;;;;;:::i;110666:24::-;;;;;;;;;;-1:-1:-1;110666:24:0;;;;;:::i;:::-;;:::i;116680:191::-;;;;;;;;;;-1:-1:-1;116680:191:0;;;;;:::i;:::-;;:::i;72870:38::-;;;;;;;;;;;;72904:4;72870:38;;111407:30;;;;;;;;;;;;;;;;111587:40;;;;;;;;;;;;;;;;118345:129;;;;;;;;;;;;;:::i;81564:167::-;;;;;;;;;;-1:-1:-1;81564:167:0;;;;;:::i;:::-;;:::i;49271:142::-;;;;;;;;;;-1:-1:-1;49271:142:0;;;;;:::i;:::-;;:::i;115759:283::-;;;;;;;;;;-1:-1:-1;115759:283:0;;;;;:::i;:::-;;:::i;75737:78::-;;;;;;;;;;;;;:::i;109749:20::-;;;;;;;;;;-1:-1:-1;109749:20:0;;;;-1:-1:-1;;;;;109749:20:0;;;79455:215;;;;;;;;;;-1:-1:-1;79455:215:0;;;;;:::i;:::-;;:::i;42669:149::-;;;;;;;;;;-1:-1:-1;42669:149:0;;;;;:::i;:::-;;:::i;73455:26::-;;;;;;;;;;;;;;;;78086:166;;;;;;;;;;-1:-1:-1;78086:166:0;;;;;:::i;:::-;;:::i;71067:27::-;;;;;;;;;;-1:-1:-1;71067:27:0;;;;;:::i;:::-;;:::i;77530:447::-;;;;;;;;;;-1:-1:-1;77530:447:0;;;;;:::i;:::-;;:::i;72572:20::-;;;;;;;;;;-1:-1:-1;72572:20:0;;;;-1:-1:-1;;;;;72572:20:0;;;76024:449;76125:5;;-1:-1:-1;;;;;76125:5:0;76111:10;:19;76103:28;;;;;;76150:12;76142:21;;;;;;76193:11;:9;:11::i;:::-;76182:7;:22;;76174:31;;;;;;76222:38;:22;76254:5;76222:31;:38::i;:::-;:84;;;-1:-1:-1;76264:42:0;:22;76296:9;76264:31;:42::i;:::-;76218:217;;;76323:19;70824:6;76356:11;;76346:7;:21;;;;:::i;:::-;76345:41;;;;:::i;:::-;76323:63;-1:-1:-1;76401:22:0;76323:63;76401:22;;:::i;:::-;;;76308:127;76218:217;76447:18;76457:7;76447:9;:18::i;:::-;76024:449;;:::o;48120:225::-;48205:4;-1:-1:-1;;;;;;48229:68:0;;-1:-1:-1;;;48229:68:0;;:108;;;48301:36;48325:11;48301:23;:36::i;:::-;48222:115;48120:225;-1:-1:-1;;48120:225:0:o;116428:159::-;116506:24;-1:-1:-1;;;;;;;;;;;116506:12:0;:24::i;:::-;116541:17;:38;116428:159::o;116958:356::-;117046:24;-1:-1:-1;;;;;;;;;;;117046:12:0;:24::i;:::-;109593:42;117089:19;;117109:1;117089:22;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;117089:30:0;;117081:52;;;;-1:-1:-1;;;117081:52:0;;9704:2:1;117081:52:0;;;9686:21:1;9743:1;9723:18;;;9716:29;-1:-1:-1;;;9761:18:1;;;9754:39;9810:18;;117081:52:0;;;;;;;;;117207:4;;-1:-1:-1;;;;;117207:4:0;117152:19;;117172:30;117207:4;117152:19;117172:30;:::i;:::-;117152:51;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;117152:59:0;;117144:81;;;;-1:-1:-1;;;117144:81:0;;9704:2:1;117144:81:0;;;9686:21:1;9743:1;9723:18;;;9716:29;-1:-1:-1;;;9761:18:1;;;9754:39;9810:18;;117144:81:0;9502:332:1;117144:81:0;117236:22;117243:15;;117236:22;:::i;:::-;117269:37;:15;117287:19;;117269:37;:::i;:::-;;116958:356;;:::o;110336:32::-;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;110336:32:0;;-1:-1:-1;110336:32:0;:::o;42229:147::-;41862:7;41889:12;;;:6;:12;;;;;:22;;;39811:16;39822:4;39811:10;:16::i;:::-;42343:25:::1;42354:4;42360:7;42343:10;:25::i;114648:215::-:0;114726:24:::1;-1:-1:-1::0;;;;;;;;;;;114726:12:0::1;:24::i;:::-;114769:5;::::0;:30:::1;::::0;-1:-1:-1;;;114769:30:0;;::::1;::::0;::::1;1238:25:1::0;;;-1:-1:-1;;;;;114769:5:0;;::::1;::::0;:22:::1;::::0;1211:18:1;;114769:30:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:35:::0;114761:44:::1;;;::::0;::::1;;114824:5;::::0;:25:::1;::::0;-1:-1:-1;;;114824:25:0;;::::1;::::0;::::1;1238::1::0;;;-1:-1:-1;;;;;114824:5:0;;::::1;::::0;:17:::1;::::0;1211:18:1;;114824:25:0::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:30:::0;114816:39:::1;;;::::0;::::1;;132365:15:::0;:13;:15::i;:::-;114648:215;:::o;114149:391::-;114287:5;;:39;;-1:-1:-1;;;114287:39:0;;114320:4;114287:39;;;2334:51:1;114196:11:0;;;;;;;;-1:-1:-1;;;;;114287:5:0;;;;:24;;2307:18:1;;114287:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;114220:106;;;;;;;114339:16;110732:4;114374:12;114359;:27;;;;:::i;:::-;114358:40;;;;:::i;:::-;114339:59;-1:-1:-1;114415:13:0;;;:30;;-1:-1:-1;114432:13:0;;114415:30;114411:71;;;114469:1;114462:8;;;;;;114149:391;:::o;114411:71::-;114524:8;114501:19;114512:8;110732:4;114501:19;:::i;:::-;114500:32;;;;:::i;:::-;114494:38;;114209:331;;;;114149:391;:::o;43373:218::-;-1:-1:-1;;;;;43469:23:0;;28535:10;43469:23;43461:83;;;;-1:-1:-1;;;43461:83:0;;10603:2:1;43461:83:0;;;10585:21:1;10642:2;10622:18;;;10615:30;10681:34;10661:18;;;10654:62;-1:-1:-1;;;10732:18:1;;;10725:45;10787:19;;43461:83:0;10401:411:1;43461:83:0;43557:26;43569:4;43575:7;43557:11;:26::i;68967:200::-;67508:4;-1:-1:-1;;;;;67517:6:0;67500:23;;;67492:80;;;;-1:-1:-1;;;67492:80:0;;;;;;;:::i;:::-;67615:6;-1:-1:-1;;;;;67591:30:0;:20;-1:-1:-1;;;;;;;;;;;59298:65:0;-1:-1:-1;;;;;59298:65:0;;59218:153;67591:20;-1:-1:-1;;;;;67591:30:0;;67583:87;;;;-1:-1:-1;;;67583:87:0;;;;;;;:::i;:::-;69051:36:::1;69069:17;69051;:36::i;:::-;69139:12;::::0;;69149:1:::1;69139:12:::0;;;::::1;::::0;::::1;::::0;;;69098:61:::1;::::0;69120:17;;69139:12;69098:21:::1;:61::i;114971:166::-:0;115050:24:::1;-1:-1:-1::0;;;;;;;;;;;115050:12:0::1;:24::i;:::-;115093:5;::::0;:30:::1;::::0;-1:-1:-1;;;115093:30:0;;::::1;::::0;::::1;1238:25:1::0;;;-1:-1:-1;;;;;115093:5:0;;::::1;::::0;:22:::1;::::0;1211:18:1;;115093:30:0::1;1092:177:1::0;79238:116:0;79286:19;-1:-1:-1;;;;;;;;;;;79286:12:0;:19::i;:::-;79316:10;:8;:10::i;:::-;79337:9;:7;:9::i;:::-;79238:116::o;118645:316::-;118815:5;;:39;;-1:-1:-1;;;118815:39:0;;118848:4;118815:39;;;2334:51:1;118696:16:0;;;;;;;;;;-1:-1:-1;;;;;118815:5:0;;:24;;2307:18:1;;118815:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;118743:111;;;;;;;118876:13;118865:24;;110732:4;118929:12;118914;:27;;;;:::i;:::-;118913:40;;;;:::i;:::-;118902:51;;118732:229;;;118645:316;;:::o;81739:140::-;81809:4;81833:38;:22;81865:5;81833:31;:38::i;110296:33::-;;;;;;;;;;;;76658:516;76718:18;51750:19;:17;:19::i;:::-;76749:20:::1;-1:-1:-1::0;;;;;;;;;;;76749:12:0::1;:20::i;:::-;76793:14;:12;:14::i;:::-;76780:27;;76889:17;;76843:10;76874:1;76854:10;:17;;;;:21;;;;:::i;:::-;76843:33;;;;;;;;:::i;:::-;;;;;;;;;;;:43;;;:63;;;;:::i;:::-;76824:15;:82;76820:256;;76957:92;::::0;;;;::::1;::::0;;76977:15:::1;76957:92:::0;;77018:5:::1;::::0;77011:36;;-1:-1:-1;;;77011:36:0;;;;76923:10:::1;::::0;76957:92:::1;::::0;;::::1;::::0;-1:-1:-1;;;;;77018:5:0::1;::::0;77011:34:::1;::::0;:36:::1;::::0;;::::1;::::0;76957:92;77011:36;;;;;;77018:5;77011:36:::1;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;76957:92:::0;;76923:141;;::::1;::::0;;::::1;::::0;;-1:-1:-1;76923:141:0;;;::::1;::::0;;;;;;::::1;::::0;;::::1;;::::0;;;;;;::::1;::::0;;::::1;::::0;76820:256:::1;77111:15;77088:20;:38:::0;77142:24:::1;::::0;77155:10:::1;::::0;77142:24:::1;::::0;;;::::1;76658:516:::0;:::o;78679:119::-;78725:22;-1:-1:-1;;;;;;;;;;;78725:12:0;:22::i;:::-;78758:14;:12;:14::i;:::-;78783:7;:5;:7::i;69426:225::-;67508:4;-1:-1:-1;;;;;67517:6:0;67500:23;;;67492:80;;;;-1:-1:-1;;;67492:80:0;;;;;;;:::i;:::-;67615:6;-1:-1:-1;;;;;67591:30:0;:20;-1:-1:-1;;;;;;;;;;;59298:65:0;-1:-1:-1;;;;;59298:65:0;;59218:153;67591:20;-1:-1:-1;;;;;67591:30:0;;67583:87;;;;-1:-1:-1;;;67583:87:0;;;;;;;:::i;:::-;69544:36:::1;69562:17;69544;:36::i;:::-;69591:52;69613:17;69632:4;69638;69591:21;:52::i;68645:133::-:0;68723:7;67953:4;-1:-1:-1;;;;;67962:6:0;67945:23;;67937:92;;;;-1:-1:-1;;;67937:92:0;;11978:2:1;67937:92:0;;;11960:21:1;12017:2;11997:18;;;11990:30;12056:34;12036:18;;;12029:62;12127:26;12107:18;;;12100:54;12171:19;;67937:92:0;11776:420:1;67937:92:0;-1:-1:-1;;;;;;;;;;;;68040:1:0::1;68645:133:::0;:::o;79678:198::-;79747:32;39365:4;79747:12;:32::i;:::-;72958:2;79798:12;:32;;79790:41;;;;;;79842:11;:26;79678:198::o;116150:183::-;116214:24;-1:-1:-1;;;;;;;;;;;116214:12:0;:24::i;:::-;116273:14;;116257:12;:30;;;;116249:39;;;;;;116299:26;;:11;:26;116150:183::o;111832:898::-;24952:19;24975:13;;;;;;24974:14;;25022:34;;;;-1:-1:-1;25040:12:0;;25055:1;25040:12;;;;:16;25022:34;25021:108;;;-1:-1:-1;25101:4:0;15708:19;:23;;;25062:66;;-1:-1:-1;25111:12:0;;;;;:17;25062:66;24999:204;;;;-1:-1:-1;;;24999:204:0;;12403:2:1;24999:204:0;;;12385:21:1;12442:2;12422:18;;;12415:30;12481:34;12461:18;;;12454:62;-1:-1:-1;;;12532:18:1;;;12525:44;12586:19;;24999:204:0;12201:410:1;24999:204:0;25214:12;:16;;-1:-1:-1;;25214:16:0;25229:1;25214:16;;;25241:67;;;;25276:13;:20;;-1:-1:-1;;25276:20:0;;;;;25241:67;112115:84:::1;112141:6;112149:9;112160:12;112174:14;112190:8;112115:25;:84::i;:::-;112210:5;:24:::0;;-1:-1:-1;;;;;;112210:24:0::1;-1:-1:-1::0;;;;;112210:24:0;::::1;::::0;;::::1;::::0;;;112245:19:::1;::::0;;::::1;::::0;::::1;::::0;;;;;;::::1;::::0;:7:::1;::::0;-1:-1:-1;112245:19:0::1;:::i;:::-;;112302:5;;;;;;;;;-1:-1:-1::0;;;;;112302:5:0::1;-1:-1:-1::0;;;;;112302:17:0::1;;:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;112275:11;:47:::0;;-1:-1:-1;;;;;;112275:47:0::1;-1:-1:-1::0;;;;;112275:47:0;;::::1;;::::0;;112340:5:::1;::::0;:18:::1;::::0;;-1:-1:-1;;;112340:18:0;;;;:5;;;::::1;::::0;:16:::1;::::0;:18:::1;::::0;;::::1;::::0;::::1;::::0;;;;;;;;:5;:18:::1;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;112333:4;:25:::0;;-1:-1:-1;;;;;;112333:25:0::1;-1:-1:-1::0;;;;;112333:25:0;;;::::1;::::0;;::::1;::::0;;112369:30:::1;::::0;;;;::::1;::::0;;;109593:42:::1;112369:30:::0;;::::1;::::0;::::1;::::0;;;;::::1;::::0;:15:::1;::::0;:30:::1;;:::i;:::-;-1:-1:-1::0;112410:32:0::1;::::0;;;;::::1;::::0;;;109674:42:::1;112410:32:::0;;109593:42:::1;112410:32;::::0;::::1;::::0;::::1;::::0;:16:::1;::::0;:32:::1;;:::i;:::-;-1:-1:-1::0;112473:10:0::1;112455:15;:28:::0;112510:1:::1;112494:13;:17:::0;112536:2:::1;112522:11;:16:::0;112569:1:::1;112549:17;:21:::0;112598:2:::1;112581:14;:19:::0;112639:2:::1;112611:25;:30:::0;112654:11:::1;::::0;:33:::1;::::0;-1:-1:-1;;;112654:33:0;;-1:-1:-1;;;;;112654:11:0;;::::1;::::0;:24:::1;::::0;:33:::1;::::0;112679:7:::1;::::0;112654:33:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;112698:24;112711:10;112698:12;:24::i;:::-;25334:14:::0;25330:102;;;25381:5;25365:21;;-1:-1:-1;;25365:21:0;;;25406:14;;-1:-1:-1;13710:36:1;;25406:14:0;;13698:2:1;13683:18;25406:14:0;;;;;;;25330:102;24941:498;111832:898;;;;;;;:::o;118128:117::-;118179:7;118224:13;;118206:15;:13;:15::i;:::-;:31;;;;:::i;:::-;118199:38;;118128:117;:::o;79968:138::-;80033:32;39365:4;80033:12;:32::i;:::-;80076:8;:22;;-1:-1:-1;;;;;;80076:22:0;-1:-1:-1;;;;;80076:22:0;;;;;;;;;;79968:138::o;82161:135::-;82216:24;-1:-1:-1;;;;;;;;;;;82216:12:0;:24::i;:::-;82273:15;82251:19;:37;82161:135::o;78975:93::-;79019:22;-1:-1:-1;;;;;;;;;;;79019:12:0;:22::i;:::-;79052:8;:6;:8::i;82567:147::-;82617:22;-1:-1:-1;;;;;;;;;;;82617:12:0;:22::i;:::-;82691:14;70872:8;82702:3;82691:14;:::i;:::-;82672:34;;:15;:34;:::i;:::-;82650:19;:56;82567:147::o;80237:1150::-;80329:6;80348:21;80372:10;80383:11;80372:23;;;;;;;;:::i;:::-;;;;;;;;;;;80348:47;;80406:19;80428:10;80439:9;80428:21;;;;;;;;:::i;:::-;;;;;;;;;;;80406:43;;80460:15;80478:4;80460:22;;80519:5;:21;;;80497:3;:19;;;:43;80493:94;;;-1:-1:-1;80570:5:0;80493:94;80599:32;80646:10;80642:216;;;80722:5;:21;;;80700:3;:19;;;:43;;;;:::i;:::-;80673:70;;80642:216;;;80827:3;:19;;;80803:5;:21;;;:43;;;;:::i;:::-;80776:70;;80642:216;80941:21;;;;80870:32;;80906:31;:24;80933:4;80906:31;:::i;:::-;80905:57;;;;:::i;:::-;81014:15;;80998:13;;80870:92;;-1:-1:-1;80973:22:0;;80998:31;;81014:15;80998:31;:::i;:::-;80973:56;-1:-1:-1;81042:38:0;80973:56;81084:35;70872:8;81084:24;:35;:::i;:::-;81083:54;;;;:::i;:::-;81042:95;-1:-1:-1;81148:38:0;81182:4;81042:95;81148:38;:::i;:::-;;;81237:10;81233:88;;;81278:30;-1:-1:-1;81264:45:0;;-1:-1:-1;;;;;;81264:45:0;81233:88;81340:39;81348:30;81340:39;:::i;:::-;81333:46;80237:1150;-1:-1:-1;;;;;;;;;;80237:1150:0:o;48944:153::-;49034:7;49061:18;;;:12;:18;;;;;:28;;49083:5;49061:21;:28::i;:::-;49054:35;48944:153;-1:-1:-1;;;48944:153:0:o;115242:414::-;115301:27;-1:-1:-1;;;;;;;;;;;115317:10:0;115301:7;:27::i;:::-;115296:85;;115345:24;-1:-1:-1;;;;;;;;;;;115345:12:0;:24::i;:::-;115434:11;;115462:5;;115434:35;;-1:-1:-1;;;115434:35:0;;-1:-1:-1;;;;;115462:5:0;;;115434:35;;;2334:51:1;115396:32:0;;115434:11;;;;;:19;;2307:18:1;;115434:35:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;115393:76;;;;115522:15;;115515:4;:22;;;;:::i;:::-;115488:24;:49;115480:58;;;;;;110732:4;115566:42;110785:10;115566:24;:42;:::i;:::-;115565:55;;;;:::i;:::-;115557:4;:63;;115549:72;;;;;;-1:-1:-1;115632:9:0;:16;115242:414::o;40226:147::-;40312:4;40336:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;40336:29:0;;;;;;;;;;;;;;;40226:147::o;81395:161::-;81456:4;81473:24;-1:-1:-1;;;;;;;;;;;81473:12:0;:24::i;:::-;81515:33;:22;81542:5;81515:26;:33::i;119110:265::-;119185:5;;119177:49;;-1:-1:-1;;;119177:49:0;;119220:4;119177:49;;;2334:51:1;119153:21:0;;-1:-1:-1;;;;;119185:5:0;;119177:34;;2307:18:1;;119177:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;119269:5;;119261:50;;-1:-1:-1;;;119261:50:0;;119305:4;119261:50;;;2334:51:1;119153:73:0;;-1:-1:-1;119237:21:0;;-1:-1:-1;;;;;119269:5:0;;;;119261:35;;2307:18:1;;119261:50:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;119237:74;-1:-1:-1;119338:29:0;119237:74;119338:13;:29;:::i;:::-;119322:13;:45;-1:-1:-1;;119110:265:0:o;110666:24::-;;;;;;;;;;;;116680:191;116774:24;-1:-1:-1;;;;;;;;;;;116774:12:0;:24::i;:::-;116809:25;:54;116680:191::o;118345:129::-;118436:4;;118418:48;;-1:-1:-1;;;118418:48:0;;118460:4;118418:48;;;2334:51:1;118391:7:0;;-1:-1:-1;;;;;118436:4:0;;118418:33;;2307:18:1;;118418:48:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;81564:167::-;81630:4;81647:22;-1:-1:-1;;;;;;;;;;;81647:12:0;:22::i;:::-;81687:36;:22;81717:5;81687:29;:36::i;49271:142::-;49351:7;49378:18;;;:12;:18;;;;;:27;;:25;:27::i;115759:283::-;115823:24;-1:-1:-1;;;;;;;;;;;115823:12:0;:24::i;:::-;115899:11;;115927:5;;115899:35;;-1:-1:-1;;;115899:35:0;;-1:-1:-1;;;;;115927:5:0;;;115899:35;;;2334:51:1;115861:32:0;;115899:11;;;;;:19;;2307:18:1;;115899:35:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;115858:76;;;;115992:6;115980:9;;:18;;;;:::i;:::-;115953:24;:45;115945:54;;;;;;-1:-1:-1;116010:15:0;:24;115759:283::o;75737:78::-;51750:19;:17;:19::i;:::-;75797:10:::1;:8;:10::i;79455:215::-:0;79518:32;39365:4;79518:12;:32::i;:::-;72904:4;79569:9;:20;;79561:29;;;;;;79601:8;:20;;;79637:25;;1238::1;;;79637::0;;1226:2:1;1211:18;79637:25:0;;;;;;;79455:215;:::o;42669:149::-;41862:7;41889:12;;;:6;:12;;;;;:22;;;39811:16;39822:4;39811:10;:16::i;:::-;42784:26:::1;42796:4;42802:7;42784:11;:26::i;78086:166::-:0;78169:24;-1:-1:-1;;;;;;;;;;;78169:12:0;:24::i;:::-;78204:17;:40;78086:166::o;71067:27::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;71067:27:0;:::o;77530:447::-;77630:10;:17;77603:6;;77651:1;-1:-1:-1;77630:22:0;77622:31;;;;;;77666:20;77697:23;77738:9;77770:1;77750:10;:17;;;;:21;;;;:::i;:::-;77738:33;;77733:185;77777:1;77773;:5;:30;;;;;77801:2;77782:16;:21;77773:30;77733:185;;;77842:31;77864:5;77868:1;77864;:5;:::i;:::-;77871:1;77842:21;:31::i;:::-;77825:48;;;;:::i;:::-;;-1:-1:-1;77888:18:0;;;;:::i;:::-;;;;77805:3;;;;;:::i;:::-;;;;77733:185;;;-1:-1:-1;77937:32:0;77953:16;77937:13;:32;:::i;:::-;77930:39;77530:447;-1:-1:-1;;;;77530:447:0:o;15413:326::-;-1:-1:-1;;;;;15708:19:0;;:23;;;15413:326::o;9917:167::-;-1:-1:-1;;;;;10051:23:0;;9997:4;5453:19;;;:12;;;:19;;;;;;:24;;10021:55;5356:129;112924:1012;113053:4:::1;::::0;113035:48:::1;::::0;-1:-1:-1;;;113035:48:0;;113077:4:::1;113035:48;::::0;::::1;2334:51:1::0;113013:19:0::1;::::0;-1:-1:-1;;;;;113053:4:0::1;::::0;113035:33:::1;::::0;2307:18:1;;113035:48:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;113013:70;;113119:11;113100:15;:30;113096:144;;113184:5;::::0;113165:4:::1;::::0;113147:60:::1;::::0;-1:-1:-1;;;;;113165:4:0;;::::1;::::0;113184:5:::1;113191:15:::0;113147:36:::1;:60::i;:::-;113222:7;;;113096:144;113252:12;113267:43;113294:15;113267:26;:43::i;:::-;113252:58;;113327:21;113343:4;113327:15;:21::i;:::-;113323:606;;;113444:43;113471:15;113444:26;:43::i;:::-;113502:11;:9;:11::i;:::-;113323:606;;;113535:23;113553:4;113535:17;:23::i;:::-;113531:398;;;113575:28;113587:15;113575:11;:28::i;:::-;113707:43;113734:15;113707:26;:43::i;113531:398::-;113874:43;113901:15;113874:26;:43::i;:::-;113002:934;;132365:15:::0;:13;:15::i;39919:215::-;40004:4;-1:-1:-1;;;;;;40028:58:0;;-1:-1:-1;;;40028:58:0;;:98;;-1:-1:-1;;;;;;;;;;36732:51:0;;;40090:36;36623:168;83569:799;83649:15;:22;83630:16;;;83924:348;83948:8;83944:1;:12;83924:348;;;84000:22;83999:23;:66;;;;;84026:39;84034:15;84050:1;84034:18;;;;;;;;:::i;:::-;;;;;;;;;84054:10;84026:7;:39::i;:::-;83995:136;;;84111:4;84086:29;;83995:136;84157:15;84173:1;84157:18;;;;;;;;:::i;:::-;;;;;;;;;84149:4;:26;84145:116;;;84217:4;84196:25;;84240:5;;84145:116;84680:1;84676:5;83924:348;;;;84292:18;:44;;;;;84314:22;84292:44;84284:76;;;;-1:-1:-1;;;84284:76:0;;15377:2:1;84284:76:0;;;15359:21:1;15416:2;15396:18;;;15389:30;-1:-1:-1;;;15435:18:1;;;15428:49;15494:18;;84284:76:0;15175:343:1;84284:76:0;83619:749;;;83569:799;:::o;40677:105::-;40744:30;40755:4;28535:10;40744;:30::i;49506:169::-;49594:31;49611:4;49617:7;49594:16;:31::i;:::-;49636:18;;;;:12;:18;;;;;:31;;49659:7;49636:22;:31::i;49769:174::-;49858:32;49876:4;49882:7;49858:17;:32::i;:::-;49901:18;;;;:12;:18;;;;;:34;;49927:7;49901:25;:34::i;82932:214::-;82997:32;39365:4;82997:12;:32::i;:::-;83089:15;70930:8;83048:19;;:38;;;;:::i;:::-;:56;83040:65;;;;;;83116:22;:20;:22::i;60636:992::-;58589:66;61090:59;;;61086:535;;;61166:37;61185:17;61166:18;:37::i;61086:535::-;61269:17;-1:-1:-1;;;;;61240:61:0;;:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;61240:63:0;;;;;;;;-1:-1:-1;;61240:63:0;;;;;;;;;;;;:::i;:::-;;;61236:306;;61470:56;;-1:-1:-1;;;61470:56:0;;15914:2:1;61470:56:0;;;15896:21:1;15953:2;15933:18;;;15926:30;15992:34;15972:18;;;15965:62;-1:-1:-1;;;16043:18:1;;;16036:44;16097:19;;61470:56:0;15712:410:1;61236:306:0;-1:-1:-1;;;;;;;;;;;61354:28:0;;61346:82;;;;-1:-1:-1;;;61346:82:0;;16329:2:1;61346:82:0;;;16311:21:1;16368:2;16348:18;;;16341:30;16407:34;16387:18;;;16380:62;-1:-1:-1;;;16458:18:1;;;16451:39;16507:19;;61346:82:0;16127:405:1;61346:82:0;61304:140;61556:53;61574:17;61593:4;61599:9;61556:17;:53::i;53000:120::-;52009:16;:14;:16::i;:::-;53059:7:::1;:15:::0;;-1:-1:-1;;53059:15:0::1;::::0;;53090:22:::1;28535:10:::0;53099:12:::1;53090:22;::::0;-1:-1:-1;;;;;2352:32:1;;;2334:51;;2322:2;2307:18;53090:22:0::1;;;;;;;53000:120::o:0;52304:108::-;52216:7;;;;52374:9;52366:38;;;;-1:-1:-1;;;52366:38:0;;16739:2:1;52366:38:0;;;16721:21:1;16778:2;16758:18;;;16751:30;-1:-1:-1;;;16797:18:1;;;16790:46;16853:18;;52366:38:0;16537:340:1;129417:217:0;129468:18;129499:15;:13;:15::i;:::-;129525:20;:18;:20::i;:::-;129569:13;:11;:13::i;:::-;129556:26;;129593:13;:11;:13::i;:::-;129617:9;:7;:9::i;132022:152::-;132091:30:::1;-1:-1:-1::0;;132091:11:0::1;:30::i;:::-;132132:34;132152:13;;132132:19;:34::i;:::-;132365:15:::0;:13;:15::i;74254:1247::-;26793:13;;;;;;;26785:69;;;;-1:-1:-1;;;26785:69:0;;;;;;;:::i;:::-;74504:24:::1;:22;:24::i;:::-;74539:32;:30;:32::i;:::-;74582:27;:25;:27::i;:::-;74642:9;74622:17;:29:::0;74673:3:::1;74662:8;:14:::0;74701:2:::1;74687:11;:16:::0;74716:5:::1;:14:::0;;-1:-1:-1;;;;;74716:14:0;;::::1;-1:-1:-1::0;;;;;;74716:14:0;;::::1;;::::0;;;74741:8:::1;:20:::0;;;;::::1;::::0;;;::::1;::::0;;;::::1;::::0;;-1:-1:-1;74774:133:0::1;74798:12;:19;74794:1;:23;74774:133;;;74856:39;-1:-1:-1::0;;;;;;;;;;;74879:12:0::1;74892:1;74879:15;;;;;;;;:::i;:::-;;;;;;;74856:10;:39::i;:::-;84680:1:::0;84676:5;74774:133:::1;;;-1:-1:-1::0;74919:42:0::1;39365:4;74950:10;74919;:42::i;:::-;74972:49;39365:4;74983:18:::0;::::1;75003:14;75018:1;75003:17;;;;;;;;:::i;74972:49::-;75032:36;-1:-1:-1::0;;;;;;;;;;;75050:14:0::1;75065:1;75050:17;;;;;;;;:::i;75032:36::-;75079:39;-1:-1:-1::0;;;;;;;;;;;75100:14:0::1;75115:1;75100:17;;;;;;;;:::i;75079:39::-;75136:9;75131:121;75155:8;:15;75151:1;:19;75131:121;;;75209:31;-1:-1:-1::0;;;;;;;;;;;75228:8:0::1;75237:1;75228:11;;;;;;;;:::i;75209:31::-;84680:1:::0;84676:5;75131:121:::1;;;-1:-1:-1::0;75264:75:0::1;::::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;75264:75:0;;-1:-1:-1;;;;;;;;;;;75264:75:0::1;::::0;::::1;::::0;-1:-1:-1;;;;;;;;;;;75264:75:0;;;;;;;-1:-1:-1;;;;;;;;;;;75264:75:0;;;;-1:-1:-1;;;;;;;;;;;75264:75:0;;;;::::1;::::0;:15:::1;::::0;:75:::1;;:::i;:::-;;75350:22;:20;:22::i;:::-;75383:10;75399:93;;;;;;;;75419:15;75399:93;;;;75460:6;-1:-1:-1::0;;;;;75453:35:0::1;;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;75399:93:::0;;75383:110;;::::1;::::0;;::::1;::::0;;-1:-1:-1;75383:110:0;;;::::1;::::0;;;;;;::::1;::::0;;::::1;;::::0;;;;;;::::1;::::0;;::::1;::::0;-1:-1:-1;;;;;74254:1247:0:o;52741:118::-;51750:19;:17;:19::i;:::-;52801:7:::1;:14:::0;;-1:-1:-1;;52801:14:0::1;52811:4;52801:14;::::0;;52831:20:::1;52838:12;28535:10:::0;;28455:98;10641:158;10715:7;10766:22;10770:3;10782:5;10766:3;:22::i;9345:152::-;9415:4;9439:50;9444:3;-1:-1:-1;;;;;9464:23:0;;9439:4;:50::i;9673:158::-;9746:4;9770:53;9778:3;-1:-1:-1;;;;;9798:23:0;;9770:7;:53::i;10170:117::-;10233:7;10260:19;10268:3;5654:18;;5571:109;117523:432;117588:19:::1;117610:15;:13;:15::i;:::-;117690:5;::::0;117654:4:::1;::::0;117588:37;;-1:-1:-1;117636:74:0::1;::::0;-1:-1:-1;;;;;117654:4:0;;::::1;::::0;117690:5:::1;117588:37:::0;117636:45:::1;:74::i;:::-;117729:5;::::0;117721:32:::1;::::0;-1:-1:-1;;;117721:32:0;;::::1;::::0;::::1;1238:25:1::0;;;-1:-1:-1;;;;;117729:5:0;;::::1;::::0;117721:19:::1;::::0;1211:18:1;;117721:32:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;117764:12;117779:15;:13;:15::i;:::-;117764:30;;117811:21;117827:4;117811:15;:21::i;:::-;117807:141;;;117849:11;:9;:11::i;:::-;117807:141;;;117882:23;117900:4;117882:17;:23::i;:::-;117878:70;;;117922:14;117934:1;117922:11;:14::i;:::-;117577:378;;132365:15:::0;:13;:15::i;105065:222::-;105220:58;;-1:-1:-1;;;;;17486:32:1;;105220:58:0;;;17468:51:1;17535:18;;;17528:34;;;105193:86:0;;105213:5;;-1:-1:-1;;;105243:23:0;17441:18:1;;105220:58:0;;;;-1:-1:-1;;105220:58:0;;;;;;;;;;;;;;-1:-1:-1;;;;;105220:58:0;-1:-1:-1;;;;;;105220:58:0;;;;;;;;;;105193:19;:86::i;122631:425::-;122753:5;;:40;;-1:-1:-1;;;122753:40:0;;122787:4;122753:40;;;2334:51:1;122710:11:0;;;;-1:-1:-1;;;;;122753:5:0;;;;:25;;2307:18:1;;122753:40:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;122823:5;;:40;;-1:-1:-1;;;122823:40:0;;122857:4;122823:40;;;2334:51:1;122734:59:0;;-1:-1:-1;122804:16:0;;-1:-1:-1;;;;;122823:5:0;;;;:25;;2307:18:1;;122823:40:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;122804:59;-1:-1:-1;122885:26:0;122896:15;122885:8;:26;:::i;:::-;122874:37;-1:-1:-1;122928:13:0;;;:30;;-1:-1:-1;122945:13:0;;122928:30;122924:71;;;-1:-1:-1;122982:1:0;;122631:425;-1:-1:-1;;;122631:425:0:o;122924:71::-;123040:8;123012:24;123028:8;123020:4;123012:24;:::i;:::-;123011:37;;;;:::i;121554:219::-;121616:4;121650:15;;121637:9;;:28;;:66;;;;;121688:15;;121676:9;;:27;;;;:::i;:::-;121669:4;:34;121637:66;121633:110;;;-1:-1:-1;121727:4:0;;121554:219;-1:-1:-1;121554:219:0:o;121633:110::-;-1:-1:-1;121760:5:0;;121554:219;-1:-1:-1;121554:219:0:o;124729:359::-;124810:36;124830:15;124810:19;:36::i;:::-;124889:4;;124871:48;;-1:-1:-1;;;124871:48:0;;124913:4;124871:48;;;2334:51:1;124857:11:0;;-1:-1:-1;;;;;124889:4:0;;124871:33;;2307:18:1;;124871:48:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;124857:62;;124930:27;124966:15;124960:3;:21;:45;;124990:15;124960:45;;;124984:3;124960:45;125053:5;;125034:4;;124930:75;;-1:-1:-1;125016:64:0;;-1:-1:-1;;;;;125034:4:0;;;;125053:5;124930:75;125016:36;:64::i;119454:570::-;119514:5;;:40;;-1:-1:-1;;;119514:40:0;;119548:4;119514:40;;;2334:51:1;119495:16:0;;-1:-1:-1;;;;;119514:5:0;;:25;;2307:18:1;;119514:40:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;119584:5;;:40;;-1:-1:-1;;;119584:40:0;;119618:4;119584:40;;;2334:51:1;119495:59:0;;-1:-1:-1;119565:16:0;;-1:-1:-1;;;;;119584:5:0;;;;:25;;2307:18:1;;119584:40:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;119565:59;-1:-1:-1;119637:18:0;119658:19;119565:59;119658:8;:19;:::i;:::-;119637:40;;119688:17;119708:48;119734:10;119746:9;;119708:25;:48::i;:::-;119688:68;-1:-1:-1;119767:27:0;119797:20;119809:8;119688:68;119797:20;:::i;:::-;119767:50;;119835:7;119830:187;119852:11;;119848:1;:15;;;:58;;;;;119889:17;;119867:19;:39;119848:58;119830:187;;;119972:33;119985:19;119972:12;:33::i;:::-;119950:55;;:19;:55;:::i;:::-;119928:77;-1:-1:-1;119908:3:0;;;;:::i;:::-;;;;119830:187;;;;119484:540;;;;;119454:570::o;121879:189::-;121943:4;121983:15;;121971:9;;:27;;;;:::i;:::-;121964:4;:34;121960:78;;;-1:-1:-1;122022:4:0;;121879:189;-1:-1:-1;121879:189:0:o;126639:644::-;126705:17;126725:34;126743:15;126725:17;:34::i;:::-;126705:54;;126913:17;;126901:9;:29;126897:379;;;126947:9;126975:290;126994:17;;126982:9;:29;126975:290;;;127056:25;127071:9;127056:14;:25::i;:::-;127044:37;;:9;:37;:::i;:::-;127032:49;-1:-1:-1;127100:3:0;;;;:::i;:::-;;;;127189:11;;127184:1;:16;127180:70;;117269:37;116958:356;;:::o;127180:70::-;126975:290;;41072:527;41161:22;41169:4;41175:7;41161;:22::i;:::-;41156:436;;41349:52;41388:7;-1:-1:-1;;;;;41349:52:0;41398:2;41349:30;:52::i;:::-;41474:49;41513:4;41520:2;41474:30;:49::i;:::-;41254:292;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;41254:292:0;;;;;;;;;;-1:-1:-1;;;41200:380:0;;;;;;;:::i;44970:238::-;45054:22;45062:4;45068:7;45054;:22::i;:::-;45049:152;;45093:12;;;;:6;:12;;;;;;;;-1:-1:-1;;;;;45093:29:0;;;;;;;;;:36;;-1:-1:-1;;45093:36:0;45125:4;45093:36;;;45176:12;28535:10;;28455:98;45176:12;-1:-1:-1;;;;;45149:40:0;45167:7;-1:-1:-1;;;;;45149:40:0;45161:4;45149:40;;;;;;;;;;44970:238;;:::o;45388:239::-;45472:22;45480:4;45486:7;45472;:22::i;:::-;45468:152;;;45543:5;45511:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;45511:29:0;;;;;;;;;;:37;;-1:-1:-1;;45511:37:0;;;45568:40;28535:10;;45511:12;;45568:40;;45543:5;45568:40;45388:239;;:::o;59467:284::-;-1:-1:-1;;;;;15708:19:0;;;59541:106;;;;-1:-1:-1;;;59541:106:0;;19537:2:1;59541:106:0;;;19519:21:1;19576:2;19556:18;;;19549:30;19615:34;19595:18;;;19588:62;-1:-1:-1;;;19666:18:1;;;19659:43;19719:19;;59541:106:0;19335:409:1;59541:106:0;-1:-1:-1;;;;;;;;;;;59658:85:0;;-1:-1:-1;;;;;;59658:85:0;-1:-1:-1;;;;;59658:85:0;;;;;;;;;;59467:284::o;60160:297::-;60303:29;60314:17;60303:10;:29::i;:::-;60361:1;60347:4;:11;:15;:28;;;;60366:9;60347:28;60343:107;;;60392:46;60414:17;60433:4;60392:21;:46::i;52489:108::-;52216:7;;;;52548:41;;;;-1:-1:-1;;;52548:41:0;;19951:2:1;52548:41:0;;;19933:21:1;19990:2;19970:18;;;19963:30;-1:-1:-1;;;20009:18:1;;;20002:50;20069:18;;52548:41:0;19749:344:1;129737:180:0;129808:16;;;129822:1;129808:16;;;;;;;;;129782:23;;129808:16;;;;;;;;;-1:-1:-1;;129847:5:0;;129835:9;;;;-1:-1:-1;;;;;;129847:5:0;;129835:9;;-1:-1:-1;129847:5:0;;129835:9;;;;:::i;:::-;-1:-1:-1;;;;;129835:17:0;;;:9;;;;;;;;;:17;129865:11;;:44;;-1:-1:-1;;;129865:44:0;;:11;;;:21;;:44;;129895:4;;129902:6;;129865:44;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;129771:146;129737:180::o;130971:178::-;131044:49;;-1:-1:-1;;;131044:49:0;;131087:4;131044:49;;;2334:51:1;131021:20:0;;109674:42;;131044:34;;2307:18:1;;131044:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;131021:72;;131104:37;131110:16;131104:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;131104:37:0;;;;;;;;;;;;;;;;;;;;;131128:12;131104:5;:37::i;131279:288::-;131416:8;;131365:48;;-1:-1:-1;;;131365:48:0;;131407:4;131365:48;;;2334:51:1;131320:18:0;;70824:6;;109593:42;;131365:33;;2307:18:1;;131365:48:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:59;;;;:::i;:::-;131364:79;;;;:::i;:::-;131351:92;-1:-1:-1;131458:15:0;;131454:106;;131527:8;;131490:58;;109593:42;;-1:-1:-1;;;;;131527:8:0;131537:10;131490:36;:58::i;131661:278::-;131708:4;;-1:-1:-1;;;;;131708:4:0;109593:42;131708:12;131704:51;;;131661:278::o;131704:51::-;131789:48;;-1:-1:-1;;;131789:48:0;;131831:4;131789:48;;;2334:51:1;131767:19:0;;109593:42;;131789:33;;2307:18:1;;131789:48:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;131767:70;-1:-1:-1;131852:16:0;;131848:84;;131885:35;131891:15;131885:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;131885:35:0;;;;;;;;;;;;;;;;;;;;131908:11;131885:5;:35::i;123151:1483::-;123302:5;;:40;;-1:-1:-1;;;123302:40:0;;123336:4;123302:40;;;2334:51:1;123257:15:0;;123225:29;;-1:-1:-1;;;;;123302:5:0;;;;:25;;2307:18:1;;123302:40:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;123372:5;;:40;;-1:-1:-1;;;123372:40:0;;123406:4;123372:40;;;2334:51:1;123283:59:0;;-1:-1:-1;123353:16:0;;-1:-1:-1;;;;;123372:5:0;;;;:25;;2307:18:1;;123372:40:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;123353:59;-1:-1:-1;123423:20:0;123446:19;123353:59;123446:8;:19;:::i;:::-;123423:42;-1:-1:-1;123482:17:0;123478:56;;123516:7;;;;123151:1483;:::o;123478:56::-;123568:12;123550:15;:30;123546:93;;;123615:12;123597:30;;123546:93;123651:17;123683:15;;123671:9;;:27;;;;:::i;:::-;123651:47;-1:-1:-1;123711:22:0;123752:14;123748:101;;123795:4;123783:16;;123748:101;123902:9;123879:19;110732:4;123879:8;:19;:::i;:::-;123878:33;;;;:::i;:::-;123861:50;;123938:14;123926:8;:26;123922:338;;123969:18;123990:25;124001:14;123990:8;:25;:::i;:::-;124048:5;;:30;;-1:-1:-1;;;124048:30:0;;124072:4;124048:30;;;2334:51:1;123969:46:0;;-1:-1:-1;124030:15:0;;-1:-1:-1;;;;;124048:5:0;;;;:15;;2307:18:1;;124048:30:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;124030:48;;124107:1;124097:7;:11;124093:156;;;124146:15;124133:10;:28;124129:105;;;124204:10;124186:28;;124129:105;123954:306;;123922:338;124272:22;124297:19;124315:1;124297:15;:19;:::i;:::-;124272:44;;124348:21;124331:14;:38;124327:240;;;70824:6;124495:25;;70824:6;124477:43;;;;:::i;:::-;124452:69;;:21;:69;:::i;:::-;124451:89;;;;:::i;:::-;124412:14;:128;;124386:169;;;;;;124587:5;;124579:47;;-1:-1:-1;;;124579:47:0;;;;;1238:25:1;;;-1:-1:-1;;;;;124587:5:0;;;;124579:31;;1211:18:1;;124579:47:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;123214:1420;;;;;;;123151:1483;:::o;66645:68::-;26793:13;;;;;;;26785:69;;;;-1:-1:-1;;;26785:69:0;;;;;;;:::i;51422:97::-;26793:13;;;;;;;26785:69;;;;-1:-1:-1;;;26785:69:0;;;;;;;:::i;:::-;51496:7:::1;:15:::0;;-1:-1:-1;;51496:15:0::1;::::0;;51422:97::o;6034:120::-;6101:7;6128:3;:11;;6140:5;6128:18;;;;;;;;:::i;:::-;;;;;;;;;6121:25;;6034:120;;;;:::o;3260:414::-;3323:4;5453:19;;;:12;;;:19;;;;;;3340:327;;-1:-1:-1;3383:23:0;;;;;;;;:11;:23;;;;;;;;;;;;;3566:18;;3544:19;;;:12;;;:19;;;;;;:40;;;;3599:11;;3340:327;-1:-1:-1;3650:5:0;3643:12;;3850:1420;3916:4;4055:19;;;:12;;;:19;;;;;;4091:15;;4087:1176;;4466:21;4490:14;4503:1;4490:10;:14;:::i;:::-;4539:18;;4466:38;;-1:-1:-1;4519:17:0;;4539:22;;4560:1;;4539:22;:::i;:::-;4519:42;;4595:13;4582:9;:26;4578:405;;4629:17;4649:3;:11;;4661:9;4649:22;;;;;;;;:::i;:::-;;;;;;;;;4629:42;;4803:9;4774:3;:11;;4786:13;4774:26;;;;;;;;:::i;:::-;;;;;;;;;;;;:38;;;;4888:23;;;:12;;;:23;;;;;:36;;;4578:405;5064:17;;:3;;:17;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;5159:3;:12;;:19;5172:5;5159:19;;;;;;;;;;;5152:26;;;5202:4;5195:11;;;;;;;4087:1176;5246:5;5239:12;;;;;106458:328;106623:39;;-1:-1:-1;;;106623:39:0;;106647:4;106623:39;;;21222:34:1;-1:-1:-1;;;;;21292:15:1;;;21272:18;;;21265:43;106600:20:0;;106665:5;;106623:15;;;;;21157:18:1;;106623:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:47;;;;:::i;:::-;106708:69;;-1:-1:-1;;;;;17486:32:1;;106708:69:0;;;17468:51:1;17535:18;;;17528:34;;;106600:70:0;;-1:-1:-1;106681:97:0;;106701:5;;-1:-1:-1;;;106731:22:0;17441:18:1;;106708:69:0;17294:274:1;122206:336:0;122292:5;;:40;;-1:-1:-1;;;122292:40:0;;122326:4;122292:40;;;2334:51:1;122249:11:0;;;;-1:-1:-1;;;;;122292:5:0;;;;:25;;2307:18:1;;122292:40:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;122362:5;;:40;;-1:-1:-1;;;122362:40:0;;122396:4;122362:40;;;2334:51:1;122273:59:0;;-1:-1:-1;122343:16:0;;-1:-1:-1;;;;;122362:5:0;;;;:25;;2307:18:1;;122362:40:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;122343:59;-1:-1:-1;122419:13:0;;;:30;;-1:-1:-1;122436:13:0;;122419:30;122415:71;;;122473:1;122466:8;;;;122206:336;:::o;122415:71::-;122526:8;122503:19;122514:8;110732:4;122503:19;:::i;:::-;122502:32;;;;:::i;:::-;122496:38;;122262:280;;122206:336;:::o;108198:727::-;108633:23;108659:69;108687:4;108659:69;;;;;;;;;;;;;;;;;108667:5;-1:-1:-1;;;;;108659:27:0;;;:69;;;;;:::i;:::-;108743:17;;108633:95;;-1:-1:-1;108743:21:0;108739:179;;108840:10;108829:30;;;;;;;;;;;;:::i;:::-;108821:85;;;;-1:-1:-1;;;108821:85:0;;21728:2:1;108821:85:0;;;21710:21:1;21767:2;21747:18;;;21740:30;21806:34;21786:18;;;21779:62;-1:-1:-1;;;21857:18:1;;;21850:40;21907:19;;108821:85:0;21526:406:1;121242:208:0;121348:7;121413:27;121424:16;110732:4;121413:27;:::i;:::-;121377:31;121392:16;121377:12;:31;:::i;:::-;121376:65;;;;:::i;120091:1015::-;120156:7;120180:20;120176:61;;-1:-1:-1;120224:1:0;;120091:1015;-1:-1:-1;120091:1015:0:o;120176:61::-;120268:5;;:40;;-1:-1:-1;;;120268:40:0;;120302:4;120268:40;;;2334:51:1;120249:16:0;;-1:-1:-1;;;;;120268:5:0;;:25;;2307:18:1;;120268:40:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;120338:5;;:40;;-1:-1:-1;;;120338:40:0;;120372:4;120338:40;;;2334:51:1;120249:59:0;;-1:-1:-1;120319:16:0;;-1:-1:-1;;;;;120338:5:0;;;;:25;;2307:18:1;;120338:40:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;120430:11;;120458:5;;120430:35;;-1:-1:-1;;;120430:35:0;;-1:-1:-1;;;;;120458:5:0;;;120430:35;;;2334:51:1;120319:59:0;;-1:-1:-1;120392:32:0;;120430:11;;;:19;;2307:18:1;;120430:35:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;120389:76:0;-1:-1:-1;120476:17:0;;-1:-1:-1;110732:4:0;120497:35;120389:76;120497:8;:35;:::i;:::-;120496:48;;;;:::i;:::-;120476:68;-1:-1:-1;120557:21:0;120570:8;120476:68;120557:21;:::i;:::-;;;120607:15;120595:9;:27;120591:87;;;120657:9;120639:27;;120591:87;120712:2;120694:15;:20;120690:374;;;120779:5;;120771:38;;-1:-1:-1;;;120771:38:0;;;;;1238:25:1;;;-1:-1:-1;;;;;120779:5:0;;;;120771:21;;1211:18:1;;120771:38:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;120879:19;120901:15;:13;:15::i;:::-;120985:5;;120949:4;;120879:37;;-1:-1:-1;120931:74:0;;-1:-1:-1;;;;;120949:4:0;;;;120985:5;120879:37;120931:45;:74::i;:::-;121028:5;;121020:32;;-1:-1:-1;;;121020:32:0;;;;;1238:25:1;;;-1:-1:-1;;;;;121028:5:0;;;;121020:19;;1211:18:1;;121020:32:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;120716:348;120690:374;-1:-1:-1;121083:15:0;;120091:1015;-1:-1:-1;;;;120091:1015:0:o;125249:1250::-;125418:5;;:40;;-1:-1:-1;;;125418:40:0;;125452:4;125418:40;;;2334:51:1;125319:16:0;;;;-1:-1:-1;;;;;125418:5:0;;;;:25;;2307:18:1;;125418:40:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;125488:5;;:40;;-1:-1:-1;;;125488:40:0;;125522:4;125488:40;;;2334:51:1;125399:59:0;;-1:-1:-1;125469:16:0;;-1:-1:-1;;;;;125488:5:0;;;;:25;;2307:18:1;;125488:40:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;125469:59;-1:-1:-1;125623:23:0;125649:19;125469:59;125649:8;:19;:::i;:::-;125623:45;;125934:21;125992:15;125974;:33;125970:99;;;126042:15;126024:33;;125970:99;126095:33;126113:15;126095;:33;:::i;:::-;126079:49;;126166:11;126196:9;;126180:13;:25;;;;:::i;:::-;126166:39;;126216:11;126241:9;;110732:4;126230:20;;;;:::i;:::-;126216:34;-1:-1:-1;126263:21:0;126287:9;126216:34;126287:3;:9;:::i;:::-;126263:33;;126327:3;126311:13;:19;126307:137;;;126413:19;126429:3;126413:13;:19;:::i;:::-;126397:35;;126307:137;126467:24;126478:13;126467:8;:24;:::i;:::-;126456:35;125249:1250;-1:-1:-1;;;;;;;;;125249:1250:0:o;127343:1672::-;127504:5;;:40;;-1:-1:-1;;;127504:40:0;;127538:4;127504:40;;;2334:51:1;127408:25:0;;;;;;-1:-1:-1;;;;;127504:5:0;;:25;;2307:18:1;;127504:40:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;127574:5;;:40;;-1:-1:-1;;;127574:40:0;;127608:4;127574:40;;;2334:51:1;127485:59:0;;-1:-1:-1;127555:16:0;;-1:-1:-1;;;;;127574:5:0;;;;:25;;2307:18:1;;127574:40:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;127666:11;;127694:5;;127666:35;;-1:-1:-1;;;127666:35:0;;-1:-1:-1;;;;;127694:5:0;;;127666:35;;;2334:51:1;127555:59:0;;-1:-1:-1;127628:32:0;;127666:11;;;:19;;2307:18:1;;127666:35:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;127625:76:0;-1:-1:-1;;127814:29:0;;127810:129;;127903:24;127880:19;110732:4;127880:8;:19;:::i;:::-;127879:48;;;;:::i;:::-;127860:67;;127810:129;127949:34;127986:27;127997:16;127986:8;:27;:::i;:::-;127949:64;;128046:26;128026:46;;128110:8;128089:17;:29;128085:90;;128155:8;128135:28;;128085:90;128210:13;128189:17;:34;128185:100;;128260:13;128240:33;;128185:100;128324:5;;:26;;;-1:-1:-1;;;128324:26:0;;;;128295;;-1:-1:-1;;;;;128324:5:0;;:24;;:26;;;;;;;;;;;;;;:5;:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;128295:55;-1:-1:-1;128295:55:0;128514:28;110732:4;128514:17;:28;:::i;:::-;:50;;:76;;;;;128588:2;128568:17;:22;128514:76;128510:498;;;128607:23;128628:2;128607:23;;:::i;:::-;128734:5;;:41;;-1:-1:-1;;;128734:41:0;;;;;1238:25:1;;;128607:23:0;;-1:-1:-1;;;;;;128734:5:0;;:22;;1211:18:1;;128734:41:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;128919:5:0;;128883:4;;128865:80;;-1:-1:-1;;;;;128883:4:0;;;;128919:5;128927:17;128865:45;:80::i;:::-;128960:5;;:36;;-1:-1:-1;;;128960:36:0;;;;;1238:25:1;;;-1:-1:-1;;;;;128960:5:0;;;;:17;;1211:18:1;;128960:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;128510:498;127435:1580;;;;;;127343:1672;;;:::o;33823:451::-;33898:13;33924:19;33956:10;33960:6;33956:1;:10;:::i;:::-;:14;;33969:1;33956:14;:::i;:::-;33946:25;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;33946:25:0;;33924:47;;-1:-1:-1;;;33982:6:0;33989:1;33982:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;33982:15:0;;;;;;;;;-1:-1:-1;;;34008:6:0;34015:1;34008:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;34008:15:0;;;;;;;;-1:-1:-1;34039:9:0;34051:10;34055:6;34051:1;:10;:::i;:::-;:14;;34064:1;34051:14;:::i;:::-;34039:26;;34034:135;34071:1;34067;:5;34034:135;;;-1:-1:-1;;;34119:5:0;34127:3;34119:11;34106:25;;;;;;;:::i;:::-;;;;34094:6;34101:1;34094:9;;;;;;;;:::i;:::-;;;;:37;-1:-1:-1;;;;;34094:37:0;;;;;;;;-1:-1:-1;34156:1:0;34146:11;;;;;34074:3;;;:::i;:::-;;;34034:135;;;-1:-1:-1;34187:10:0;;34179:55;;;;-1:-1:-1;;;34179:55:0;;22139:2:1;34179:55:0;;;22121:21:1;;;22158:18;;;22151:30;22217:34;22197:18;;;22190:62;22269:18;;34179:55:0;21937:356:1;59864:155:0;59931:37;59950:17;59931:18;:37::i;:::-;59984:27;;-1:-1:-1;;;;;59984:27:0;;;;;;;;59864:155;:::o;64897:461::-;64980:12;-1:-1:-1;;;;;15708:19:0;;;65005:88;;;;-1:-1:-1;;;65005:88:0;;22500:2:1;65005:88:0;;;22482:21:1;22539:2;22519:18;;;22512:30;22578:34;22558:18;;;22551:62;-1:-1:-1;;;22629:18:1;;;22622:36;22675:19;;65005:88:0;22298:402:1;65005:88:0;65167:12;65181:23;65208:6;-1:-1:-1;;;;;65208:19:0;65228:4;65208:25;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;65166:67;;;;65251:99;65287:7;65296:10;65251:99;;;;;;;;;;;;;;;;;:35;:99::i;:::-;65244:106;64897:461;-1:-1:-1;;;;;64897:461:0:o;129997:880::-;130077:12;;130073:797;;130226:12;;109996:42;;130106:18;;130226:16;;130241:1;;130226:16;:::i;:::-;130202:41;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;130202:41:0;;-1:-1:-1;;130202:41:0;;;;;;;;;;;-1:-1:-1;130166:77:0;-1:-1:-1;130286:7:0;130260:23;;;130366:309;130390:6;:13;130386:1;:17;130366:309;;;130451:6;-1:-1:-1;;;;;130451:19:0;;130471:15;130488:5;130494:1;130488:8;;;;;;;;:::i;:::-;;;;;;;130498:5;130504:1;130508;130504:5;;;;:::i;:::-;130498:12;;;;;;;;:::i;:::-;;;;;;;130451:60;;;;;;;;;;;;;;;;23186:25:1;;;-1:-1:-1;;;;;23285:15:1;;;23280:2;23265:18;;23258:43;23337:15;23332:2;23317:18;;23310:43;23174:2;23159:18;;22984:375;130451:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;130429:82;;;;;;;;130542:74;;;;;;;;130568:5;130574:1;130568:8;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1;;;;;130542:74:0;;;;;130582:5;130588:1;130592;130588:5;;;;:::i;:::-;130582:12;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1;;;;;130542:74:0;;;;;130604:9;130542:74;;;;;130530:6;130537:1;130530:9;;;;;;;;:::i;:::-;;;;;;:86;;;;130653:6;130635:24;;130405:3;;;;;:::i;:::-;;;;130366:309;;;;130689:71;109996:42;130752:7;130707:5;130713:1;130707:8;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1;;;;;130689:49:0;;;:71;;;;;:::i;:::-;130775:83;;-1:-1:-1;;;130775:83:0;;-1:-1:-1;;;;;130775:31:0;;;;;:83;;130807:7;;130816:1;;130819:6;;130835:4;;130842:15;;130775:83;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;130775:83:0;;;;;;;;;;;;:::i;18158:229::-;18295:12;18327:52;18349:6;18357:4;18363:1;18366:12;18327:21;:52::i;20987:762::-;21137:12;21166:7;21162:580;;;-1:-1:-1;21197:10:0;21190:17;;21162:580;21311:17;;:21;21307:424;;21559:10;21553:17;21620:15;21607:10;21603:2;21599:19;21592:44;21307:424;21702:12;21695:20;;-1:-1:-1;;;21695:20:0;;;;;;;;:::i;19278:510::-;19448:12;19506:5;19481:21;:30;;19473:81;;;;-1:-1:-1;;;19473:81:0;;25950:2:1;19473:81:0;;;25932:21:1;25989:2;25969:18;;;25962:30;26028:34;26008:18;;;26001:62;-1:-1:-1;;;26079:18:1;;;26072:36;26125:19;;19473:81:0;25748:402:1;19473:81:0;-1:-1:-1;;;;;15708:19:0;;;19565:60;;;;-1:-1:-1;;;19565:60:0;;26357:2:1;19565:60:0;;;26339:21:1;26396:2;26376:18;;;26369:30;26435:31;26415:18;;;26408:59;26484:18;;19565:60:0;26155:353:1;19565:60:0;19639:12;19653:23;19680:6;-1:-1:-1;;;;;19680:11:0;19699:5;19706:4;19680:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19638:73;;;;19729:51;19746:7;19755:10;19767:12;19729:16;:51::i;:::-;19722:58;19278:510;-1:-1:-1;;;;;;;19278:510:0:o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14:131:1;-1:-1:-1;;;;;89:31:1;;79:42;;69:70;;135:1;132;125:12;150:134;218:20;;247:31;218:20;247:31;:::i;:::-;150:134;;;:::o;289:315::-;357:6;365;418:2;406:9;397:7;393:23;389:32;386:52;;;434:1;431;424:12;386:52;470:9;457:23;447:33;;530:2;519:9;515:18;502:32;543:31;568:5;543:31;:::i;:::-;593:5;583:15;;;289:315;;;;;:::o;609:286::-;667:6;720:2;708:9;699:7;695:23;691:32;688:52;;;736:1;733;726:12;688:52;762:23;;-1:-1:-1;;;;;;814:32:1;;804:43;;794:71;;861:1;858;851:12;1274:180;1333:6;1386:2;1374:9;1365:7;1361:23;1357:32;1354:52;;;1402:1;1399;1392:12;1354:52;-1:-1:-1;1425:23:1;;1274:180;-1:-1:-1;1274:180:1:o;1459:615::-;1545:6;1553;1606:2;1594:9;1585:7;1581:23;1577:32;1574:52;;;1622:1;1619;1612:12;1574:52;1662:9;1649:23;1691:18;1732:2;1724:6;1721:14;1718:34;;;1748:1;1745;1738:12;1718:34;1786:6;1775:9;1771:22;1761:32;;1831:7;1824:4;1820:2;1816:13;1812:27;1802:55;;1853:1;1850;1843:12;1802:55;1893:2;1880:16;1919:2;1911:6;1908:14;1905:34;;;1935:1;1932;1925:12;1905:34;1988:7;1983:2;1973:6;1970:1;1966:14;1962:2;1958:23;1954:32;1951:45;1948:65;;;2009:1;2006;1999:12;1948:65;2040:2;2032:11;;;;;2062:6;;-1:-1:-1;1459:615:1;;-1:-1:-1;;;;1459:615:1:o;3083:247::-;3142:6;3195:2;3183:9;3174:7;3170:23;3166:32;3163:52;;;3211:1;3208;3201:12;3163:52;3250:9;3237:23;3269:31;3294:5;3269:31;:::i;3588:127::-;3649:10;3644:3;3640:20;3637:1;3630:31;3680:4;3677:1;3670:15;3704:4;3701:1;3694:15;3720:275;3791:2;3785:9;3856:2;3837:13;;-1:-1:-1;;3833:27:1;3821:40;;3891:18;3876:34;;3912:22;;;3873:62;3870:88;;;3938:18;;:::i;:::-;3974:2;3967:22;3720:275;;-1:-1:-1;3720:275:1:o;4000:898::-;4077:6;4085;4138:2;4126:9;4117:7;4113:23;4109:32;4106:52;;;4154:1;4151;4144:12;4106:52;4193:9;4180:23;4212:31;4237:5;4212:31;:::i;:::-;4262:5;-1:-1:-1;4286:2:1;4324:18;;;4311:32;4362:18;4392:14;;;4389:34;;;4419:1;4416;4409:12;4389:34;4457:6;4446:9;4442:22;4432:32;;4502:7;4495:4;4491:2;4487:13;4483:27;4473:55;;4524:1;4521;4514:12;4473:55;4560:2;4547:16;4582:2;4578;4575:10;4572:36;;;4588:18;;:::i;:::-;4630:53;4673:2;4654:13;;-1:-1:-1;;4650:27:1;4646:36;;4630:53;:::i;:::-;4617:66;;4706:2;4699:5;4692:17;4746:7;4741:2;4736;4732;4728:11;4724:20;4721:33;4718:53;;;4767:1;4764;4757:12;4718:53;4822:2;4817;4813;4809:11;4804:2;4797:5;4793:14;4780:45;4866:1;4861:2;4856;4849:5;4845:14;4841:23;4834:34;;4887:5;4877:15;;;;;4000:898;;;;;:::o;5132:269::-;5189:6;5242:2;5230:9;5221:7;5217:23;5213:32;5210:52;;;5258:1;5255;5248:12;5210:52;5297:9;5284:23;5347:4;5340:5;5336:16;5329:5;5326:27;5316:55;;5367:1;5364;5357:12;5406:183;5466:4;5499:18;5491:6;5488:30;5485:56;;;5521:18;;:::i;:::-;-1:-1:-1;5566:1:1;5562:14;5578:4;5558:25;;5406:183::o;5594:737::-;5648:5;5701:3;5694:4;5686:6;5682:17;5678:27;5668:55;;5719:1;5716;5709:12;5668:55;5755:6;5742:20;5781:4;5805:60;5821:43;5861:2;5821:43;:::i;:::-;5805:60;:::i;:::-;5899:15;;;5985:1;5981:10;;;;5969:23;;5965:32;;;5930:12;;;;6009:15;;;6006:35;;;6037:1;6034;6027:12;6006:35;6073:2;6065:6;6061:15;6085:217;6101:6;6096:3;6093:15;6085:217;;;6181:3;6168:17;6198:31;6223:5;6198:31;:::i;:::-;6242:18;;6280:12;;;;6118;;6085:217;;;-1:-1:-1;6320:5:1;5594:737;-1:-1:-1;;;;;;5594:737:1:o;6336:1243::-;6524:6;6532;6540;6548;6556;6564;6572;6625:3;6613:9;6604:7;6600:23;6596:33;6593:53;;;6642:1;6639;6632:12;6593:53;6681:9;6668:23;6700:31;6725:5;6700:31;:::i;:::-;6750:5;-1:-1:-1;6807:2:1;6792:18;;6779:32;6820:33;6779:32;6820:33;:::i;:::-;6872:7;-1:-1:-1;6930:2:1;6915:18;;6902:32;6953:18;6983:14;;;6980:34;;;7010:1;7007;7000:12;6980:34;7033:61;7086:7;7077:6;7066:9;7062:22;7033:61;:::i;:::-;7023:71;;7147:2;7136:9;7132:18;7119:32;7103:48;;7176:2;7166:8;7163:16;7160:36;;;7192:1;7189;7182:12;7160:36;7215:63;7270:7;7259:8;7248:9;7244:24;7215:63;:::i;:::-;7205:73;;7331:3;7320:9;7316:19;7303:33;7287:49;;7361:2;7351:8;7348:16;7345:36;;;7377:1;7374;7367:12;7345:36;;7400:63;7455:7;7444:8;7433:9;7429:24;7400:63;:::i;:::-;7390:73;;;7482:39;7516:3;7505:9;7501:19;7482:39;:::i;:::-;7472:49;;7568:3;7557:9;7553:19;7540:33;7530:43;;6336:1243;;;;;;;;;;:::o;7584:248::-;7652:6;7660;7713:2;7701:9;7692:7;7688:23;7684:32;7681:52;;;7729:1;7726;7719:12;7681:52;-1:-1:-1;;7752:23:1;;;7822:2;7807:18;;;7794:32;;-1:-1:-1;7584:248:1:o;8678:127::-;8739:10;8734:3;8730:20;8727:1;8720:31;8770:4;8767:1;8760:15;8794:4;8791:1;8784:15;8810:168;8850:7;8916:1;8912;8908:6;8904:14;8901:1;8898:21;8893:1;8886:9;8879:17;8875:45;8872:71;;;8923:18;;:::i;:::-;-1:-1:-1;8963:9:1;;8810:168::o;8983:127::-;9044:10;9039:3;9035:20;9032:1;9025:31;9075:4;9072:1;9065:15;9099:4;9096:1;9089:15;9115:120;9155:1;9181;9171:35;;9186:18;;:::i;:::-;-1:-1:-1;9220:9:1;;9115:120::o;9240:125::-;9280:4;9308:1;9305;9302:8;9299:34;;;9313:18;;:::i;:::-;-1:-1:-1;9350:9:1;;9240:125::o;9370:127::-;9431:10;9426:3;9422:20;9419:1;9412:31;9462:4;9459:1;9452:15;9486:4;9483:1;9476:15;9839:184;9909:6;9962:2;9950:9;9941:7;9937:23;9933:32;9930:52;;;9978:1;9975;9968:12;9930:52;-1:-1:-1;10001:16:1;;9839:184;-1:-1:-1;9839:184:1:o;10028:368::-;10125:6;10133;10141;10149;10202:3;10190:9;10181:7;10177:23;10173:33;10170:53;;;10219:1;10216;10209:12;10170:53;-1:-1:-1;;10242:16:1;;10298:2;10283:18;;10277:25;10342:2;10327:18;;10321:25;10386:2;10371:18;;;10365:25;10242:16;;10277:25;;-1:-1:-1;10365:25:1;;-1:-1:-1;10028:368:1;-1:-1:-1;10028:368:1:o;10817:408::-;11019:2;11001:21;;;11058:2;11038:18;;;11031:30;11097:34;11092:2;11077:18;;11070:62;-1:-1:-1;;;11163:2:1;11148:18;;11141:42;11215:3;11200:19;;10817:408::o;11230:::-;11432:2;11414:21;;;11471:2;11451:18;;;11444:30;11510:34;11505:2;11490:18;;11483:62;-1:-1:-1;;;11576:2:1;11561:18;;11554:42;11628:3;11613:19;;11230:408::o;11643:128::-;11683:3;11714:1;11710:6;11707:1;11704:13;11701:39;;;11720:18;;:::i;:::-;-1:-1:-1;11756:9:1;;11643:128::o;12616:251::-;12686:6;12739:2;12727:9;12718:7;12714:23;12710:32;12707:52;;;12755:1;12752;12745:12;12707:52;12787:9;12781:16;12806:31;12831:5;12806:31;:::i;12872:681::-;13040:2;13092:21;;;13162:13;;13065:18;;;13184:22;;;13011:4;13249:17;;;13289:16;;;13011:4;;13040:2;13237;13222:18;;;13011:4;13333:194;13347:6;13344:1;13341:13;13333:194;;;13412:13;;-1:-1:-1;;;;;13408:39:1;13396:52;;13444:1;13503:14;;;;13468:12;;;;13362:9;13333:194;;;-1:-1:-1;13544:3:1;;12872:681;-1:-1:-1;;;;;;12872:681:1:o;13757:136::-;13792:3;-1:-1:-1;;;13813:22:1;;13810:48;;;13838:18;;:::i;:::-;-1:-1:-1;13878:1:1;13874:13;;13757:136::o;13898:164::-;13974:13;;14023;;14016:21;14006:32;;13996:60;;14052:1;14049;14042:12;14067:342;14149:6;14157;14165;14218:2;14206:9;14197:7;14193:23;14189:32;14186:52;;;14234:1;14231;14224:12;14186:52;14257:37;14284:9;14257:37;:::i;:::-;14247:47;;14334:2;14323:9;14319:18;14313:25;14303:35;;14357:46;14399:2;14388:9;14384:18;14357:46;:::i;:::-;14347:56;;14067:342;;;;;:::o;14414:265::-;14453:3;14481:9;;;14506:10;;-1:-1:-1;;;;;14525:27:1;;;14518:35;;14502:52;14499:78;;;14557:18;;:::i;:::-;-1:-1:-1;;;14604:19:1;;;14597:27;;14589:36;;14586:62;;;14628:18;;:::i;:::-;-1:-1:-1;;14664:9:1;;14414:265::o;14684:147::-;14722:3;-1:-1:-1;;;;;14743:30:1;;14740:56;;;14776:18;;:::i;:::-;-1:-1:-1;14823:1:1;14812:13;;14684:147::o;14836:136::-;14875:3;14903:5;14893:39;;14912:18;;:::i;:::-;-1:-1:-1;;;14948:18:1;;14836:136::o;14977:193::-;15016:1;15042;15032:35;;15047:18;;:::i;:::-;-1:-1:-1;;;15083:18:1;;-1:-1:-1;;15103:13:1;;15079:38;15076:64;;;15120:18;;:::i;:::-;-1:-1:-1;15154:10:1;;14977:193::o;16882:407::-;17084:2;17066:21;;;17123:2;17103:18;;;17096:30;17162:34;17157:2;17142:18;;17135:62;-1:-1:-1;;;17228:2:1;17213:18;;17206:41;17279:3;17264:19;;16882:407::o;17573:175::-;17610:3;17654:4;17647:5;17643:16;17683:4;17674:7;17671:17;17668:43;;;17691:18;;:::i;:::-;17740:1;17727:15;;17573:175;-1:-1:-1;;17573:175:1:o;17753:135::-;17792:3;-1:-1:-1;;17813:17:1;;17810:43;;;17833:18;;:::i;17893:258::-;17965:1;17975:113;17989:6;17986:1;17983:13;17975:113;;;18065:11;;;18059:18;18046:11;;;18039:39;18011:2;18004:10;17975:113;;;18106:6;18103:1;18100:13;18097:48;;;-1:-1:-1;;18141:1:1;18123:16;;18116:27;17893:258::o;18156:786::-;18567:25;18562:3;18555:38;18537:3;18622:6;18616:13;18638:62;18693:6;18688:2;18683:3;18679:12;18672:4;18664:6;18660:17;18638:62;:::i;:::-;-1:-1:-1;;;18759:2:1;18719:16;;;18751:11;;;18744:40;18809:13;;18831:63;18809:13;18880:2;18872:11;;18865:4;18853:17;;18831:63;:::i;:::-;18914:17;18933:2;18910:26;;18156:786;-1:-1:-1;;;;18156:786:1:o;18947:383::-;19096:2;19085:9;19078:21;19059:4;19128:6;19122:13;19171:6;19166:2;19155:9;19151:18;19144:34;19187:66;19246:6;19241:2;19230:9;19226:18;19221:2;19213:6;19209:15;19187:66;:::i;:::-;19314:2;19293:15;-1:-1:-1;;19289:29:1;19274:45;;;;19321:2;19270:54;;18947:383;-1:-1:-1;;18947:383:1:o;20098:775::-;-1:-1:-1;;;;;20400:15:1;;;20382:34;;20332:2;20435;20453:18;;;20446:30;;;20525:13;;20317:18;;;20547:22;;;20284:4;;20626:15;;;;20354:19;;20435:2;20600;20585:18;;;20284:4;20669:178;20683:6;20680:1;20677:13;20669:178;;;20748:13;;20744:22;;20732:35;;20822:15;;;;20787:12;;;;20705:1;20698:9;20669:178;;;-1:-1:-1;20864:3:1;;20098:775;-1:-1:-1;;;;;;;;20098:775:1:o;20878:127::-;20939:10;20934:3;20930:20;20927:1;20920:31;20970:4;20967:1;20960:15;20994:4;20991:1;20984:15;21319:202;21386:6;21439:2;21427:9;21418:7;21414:23;21410:32;21407:52;;;21455:1;21452;21445:12;21407:52;21478:37;21505:9;21478:37;:::i;22705:274::-;22834:3;22872:6;22866:13;22888:53;22934:6;22929:3;22922:4;22914:6;22910:17;22888:53;:::i;:::-;22957:16;;;;;22705:274;-1:-1:-1;;22705:274:1:o;23364:263::-;23440:6;23448;23501:2;23489:9;23480:7;23476:23;23472:32;23469:52;;;23517:1;23514;23507:12;23469:52;23546:9;23540:16;23530:26;;23575:46;23617:2;23606:9;23602:18;23575:46;:::i;:::-;23565:56;;23364:263;;;;;:::o;23632:1225::-;23940:4;23988:3;23977:9;23973:19;24019:6;24008:9;24001:25;24045:2;24083:6;24078:2;24067:9;24063:18;24056:34;24109:2;24147:3;24142:2;24131:9;24127:18;24120:31;24171:6;24206;24200:13;24237:6;24229;24222:22;24275:3;24264:9;24260:19;24253:26;;24314:2;24306:6;24302:15;24288:29;;24335:1;24345:385;24359:6;24356:1;24353:13;24345:385;;;24418:13;;24502:9;;-1:-1:-1;;;;;24498:18:1;;;24486:31;;24561:11;;;24555:18;24551:27;24537:12;;;24530:49;24633:11;;24627:18;24620:26;24613:34;24599:12;;;24592:56;24705:15;;;;24677:4;24668:14;;;;24471:1;24374:9;24345:385;;;-1:-1:-1;;;;;;;2145:31:1;;24801:4;24786:20;;2133:44;24747:3;-1:-1:-1;24759:48:1;;-1:-1:-1;;;2079:104:1;24759:48;24844:6;24838:3;24827:9;24823:19;24816:35;23632:1225;;;;;;;;:::o;24862:881::-;24957:6;24988:2;25031;25019:9;25010:7;25006:23;25002:32;24999:52;;;25047:1;25044;25037:12;24999:52;25080:9;25074:16;25113:18;25105:6;25102:30;25099:50;;;25145:1;25142;25135:12;25099:50;25168:22;;25221:4;25213:13;;25209:27;-1:-1:-1;25199:55:1;;25250:1;25247;25240:12;25199:55;25279:2;25273:9;25302:60;25318:43;25358:2;25318:43;:::i;25302:60::-;25396:15;;;25478:1;25474:10;;;;25466:19;;25462:28;;;25427:12;;;;25502:19;;;25499:39;;;25534:1;25531;25524:12;25499:39;25558:11;;;;25578:135;25594:6;25589:3;25586:15;25578:135;;;25660:10;;25648:23;;25611:12;;;;25691;;;;25578:135;
Swarm Source
ipfs://d39ae70b3b90088c7652bda62cff448a584a1c69df03e15b5a826c6a0b4421e6
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 35 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.