Overview
ETH Balance
ETH Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Swap | 13450078 | 59 days ago | IN | 0.0000049 ETH | 0.00000483 |
Latest 25 internal transactions (View All)
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
13462666 | 59 days ago | 0.0089 ETH | ||||
13462662 | 59 days ago | 0.00678 ETH | ||||
13462660 | 59 days ago | 0 ETH | ||||
13462656 | 59 days ago | 0.007551 ETH | ||||
13462637 | 59 days ago | 0 ETH | ||||
13462617 | 59 days ago | 0.061 ETH | ||||
13462614 | 59 days ago | 0.01084 ETH | ||||
13462598 | 59 days ago | 0 ETH | ||||
13462598 | 59 days ago | 0.0198 ETH | ||||
13462595 | 59 days ago | 0 ETH | ||||
13462588 | 59 days ago | 0.0092 ETH | ||||
13462576 | 59 days ago | 0.0192 ETH | ||||
13462569 | 59 days ago | 0 ETH | ||||
13462564 | 59 days ago | 0 ETH | ||||
13462556 | 59 days ago | 0.002187 ETH | ||||
13462517 | 59 days ago | 0 ETH | ||||
13462508 | 59 days ago | 0 ETH | ||||
13462503 | 59 days ago | 0 ETH | ||||
13462492 | 59 days ago | 0 ETH | ||||
13462452 | 59 days ago | 0.00543349 ETH | ||||
13462436 | 59 days ago | 0 ETH | ||||
13462428 | 59 days ago | 0 ETH | ||||
13462423 | 59 days ago | 0.00091882 ETH | ||||
13462421 | 59 days ago | 0 ETH | ||||
13462412 | 59 days ago | 0 ETH |
Loading...
Loading
Contract Name:
OpenOceanExchange
Compiler Version
v0.8.9+commit.e5eed63a
Contract Source Code (Solidity)
/** *Submitted for verification at lineascan.build/ on 2024-12-13 */ /** *Submitted for verification at basescan.org on 2024-10-25 */ // File: @openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol // SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.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 functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or 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 { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // 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/Initializable.sol // OpenZeppelin Contracts (last updated v4.8.1) (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. * * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a * constructor. * * Emits an {Initialized} event. */ 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. * * 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. * * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer` * cannot be nested. If one is invoked in the context of another, execution will revert. * * 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. * * WARNING: setting the version to 255 will prevent any future reinitialization. * * Emits an {Initialized} event. */ 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. * * Emits an {Initialized} event the first time it is successfully executed. */ function _disableInitializers() internal virtual { require(!_initializing, "Initializable: contract is initializing"); if (_initialized < type(uint8).max) { _initialized = type(uint8).max; emit Initialized(type(uint8).max); } } /** * @dev Returns the highest version that has been initialized. See {reinitializer}. */ function _getInitializedVersion() internal view returns (uint8) { return _initialized; } /** * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}. */ function _isInitializing() internal view returns (bool) { return _initializing; } } // File: @openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol // 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/OwnableUpgradeable.sol // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal onlyInitializing { __Ownable_init_unchained(); } function __Ownable_init_unchained() internal onlyInitializing { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } /** * @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/token/ERC20/IERC20.sol // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); } // File: @openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); } // File: @openzeppelin/contracts/utils/Address.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or 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 { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // 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/token/ERC20/utils/SafeERC20.sol // OpenZeppelin Contracts (last updated v4.8.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 SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // File: @openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol // 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: contracts/interfaces/IOpenOceanCaller.sol pragma solidity ^0.8.0; interface IOpenOceanCaller { struct CallDescription { uint256 target; uint256 gasLimit; uint256 value; bytes data; } function makeCall(CallDescription memory desc) external; function makeCalls(CallDescription[] memory desc) external payable; } // File: contracts/libraries/RevertReasonParser.sol pragma solidity ^0.8.0; library RevertReasonParser { function parse(bytes memory data, string memory prefix) internal pure returns (string memory) { // https://solidity.readthedocs.io/en/latest/control-structures.html#revert // We assume that revert reason is abi-encoded as Error(string) // 68 = 4-byte selector 0x08c379a0 + 32 bytes offset + 32 bytes length if (data.length >= 68 && data[0] == "\x08" && data[1] == "\xc3" && data[2] == "\x79" && data[3] == "\xa0") { string memory reason; // solhint-disable no-inline-assembly assembly { // 68 = 32 bytes data length + 4-byte selector + 32 bytes offset reason := add(data, 68) } /* revert reason is padded up to 32 bytes with ABI encoder: Error(string) also sometimes there is extra 32 bytes of zeros padded in the end: https://github.com/ethereum/solidity/issues/10170 because of that we can't check for equality and instead check that string length + extra 68 bytes is less than overall data length */ require(data.length >= 68 + bytes(reason).length, "Invalid revert reason"); return string(abi.encodePacked(prefix, "Error(", reason, ")")); } // 36 = 4-byte selector 0x4e487b71 + 32 bytes integer else if (data.length == 36 && data[0] == "\x4e" && data[1] == "\x48" && data[2] == "\x7b" && data[3] == "\x71") { uint256 code; // solhint-disable no-inline-assembly assembly { // 36 = 32 bytes data length + 4-byte selector code := mload(add(data, 36)) } return string(abi.encodePacked(prefix, "Panic(", _toHex(code), ")")); } return string(abi.encodePacked(prefix, "Unknown()")); } function _toHex(uint256 value) private pure returns (string memory) { return _toHex(abi.encodePacked(value)); } function _toHex(bytes memory data) private pure returns (string memory) { bytes memory alphabet = "0123456789abcdef"; bytes memory str = new bytes(2 + data.length * 2); str[0] = "0"; str[1] = "x"; for (uint256 i = 0; i < data.length; i++) { str[2 * i + 2] = alphabet[uint8(data[i] >> 4)]; str[2 * i + 3] = alphabet[uint8(data[i] & 0x0f)]; } return string(str); } } // File: @openzeppelin/contracts/utils/math/SafeMath.sol // OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } } // File: contracts/libraries/UniversalERC20.sol pragma solidity ^0.8.0; library UniversalERC20 { using SafeMath for uint256; using SafeERC20 for IERC20; IERC20 internal constant ZERO_ADDRESS = IERC20(0x0000000000000000000000000000000000000000); IERC20 internal constant ETH_ADDRESS = IERC20(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE); IERC20 internal constant MATIC_ADDRESS = IERC20(0x0000000000000000000000000000000000001010); function universalTransfer( IERC20 token, address payable to, uint256 amount ) internal { if (amount > 0) { if (isETH(token)) { (bool result, ) = to.call{value: amount}(""); require(result, "Failed to transfer ETH"); } else { token.safeTransfer(to, amount); } } } function universalApprove( IERC20 token, address to, uint256 amount ) internal { require(!isETH(token), "Approve called on ETH"); if (amount == 0) { token.safeApprove(to, 0); } else { uint256 allowance = token.allowance(address(this), to); if (allowance < amount) { if (allowance > 0) { token.safeApprove(to, 0); } token.safeApprove(to, amount); } } } function universalBalanceOf(IERC20 token, address account) internal view returns (uint256) { if (isETH(token)) { return account.balance; } else { return token.balanceOf(account); } } function isETH(IERC20 token) internal pure returns (bool) { return address(token) == address(ETH_ADDRESS) || address(token) == address(MATIC_ADDRESS) || address(token) == address(ZERO_ADDRESS); } } // File: contracts/libraries/Permitable.sol pragma solidity ^0.8.0; /// @title Interface for DAI-style permits interface IDaiLikePermit { function permit( address holder, address spender, uint256 nonce, uint256 expiry, bool allowed, uint8 v, bytes32 r, bytes32 s ) external; } /// @title SignatureTransfer /// @notice Handles ERC20 token transfers through signature based actions /// @dev Requires user's token approval on the Permit2 contract interface IPermit2 { /// @notice The token and amount details for a transfer signed in the permit transfer signature struct TokenPermissions { // ERC20 token address address token; // the maximum amount that can be spent uint256 amount; } /// @notice The signed permit message for a single token transfer struct PermitTransferFrom { TokenPermissions permitted; // a unique value for every token owner's signature to prevent signature replays uint256 nonce; // deadline on the permit signature uint256 deadline; } /// @notice Specifies the recipient address and amount for batched transfers. /// @dev Recipients and amounts correspond to the index of the signed token permissions array. /// @dev Reverts if the requested amount is greater than the permitted signed amount. struct SignatureTransferDetails { // recipient address address to; // spender requested amount uint256 requestedAmount; } /// @notice A map from token owner address and a caller specified word index to a bitmap. Used to set bits in the bitmap to prevent against signature replay protection /// @dev Uses unordered nonces so that permit messages do not need to be spent in a certain order /// @dev The mapping is indexed first by the token owner, then by an index specified in the nonce /// @dev It returns a uint256 bitmap /// @dev The index, or wordPosition is capped at type(uint248).max function nonceBitmap(address, uint256) external view returns (uint256); /// @notice Transfers a token using a signed permit message /// @dev Reverts if the requested amount is greater than the permitted signed amount /// @param permit The permit data signed over by the owner /// @param owner The owner of the tokens to transfer /// @param transferDetails The spender's requested transfer details for the permitted token /// @param signature The signature to verify function permitTransferFrom( PermitTransferFrom memory permit, SignatureTransferDetails calldata transferDetails, address owner, bytes calldata signature ) external; /// @notice Returns the domain separator for the current chain. /// @dev Uses cached version if chainid and address are unchanged from construction. function DOMAIN_SEPARATOR() external view returns (bytes32); } /// @title Base contract with common permit handling logics contract Permitable { address public permit2; function permit2DomainSeperator() external view returns (bytes32) { return IPermit2(permit2).DOMAIN_SEPARATOR(); } function _permit(address token, bytes calldata permit, bool claim) internal returns (bool) { if (permit.length > 0) { if (permit.length == 32 * 7 || permit.length == 32 * 8) { _permit(token, permit); return false; } else if (claim) { _permit2(permit); return true; } } return false; } function _isPermit2(bytes calldata permit) internal pure returns (bool) { return permit.length == 32 * 11 || permit.length == 32 * 12; } function _permit(address token, bytes calldata permit) private returns (bool success, bytes memory result) { if (permit.length == 32 * 7) { // solhint-disable-next-line avoid-low-level-calls (success, result) = token.call(abi.encodePacked(IERC20Permit.permit.selector, permit)); } else if (permit.length == 32 * 8) { // solhint-disable-next-line avoid-low-level-calls (success, result) = token.call(abi.encodePacked(IDaiLikePermit.permit.selector, permit)); } if (!success) { revert(RevertReasonParser.parse(result, "Permit failed: ")); } } function _permit2(bytes calldata permit) internal returns (bool success, bytes memory result) { // solhint-disable-next-line avoid-low-level-calls (success, result) = permit2.call(abi.encodePacked(IPermit2.permitTransferFrom.selector, permit)); // TODO support batch permit if (!success) { revert(RevertReasonParser.parse(result, "Permit2 failed: ")); } } /// @notice Finds the next valid nonce for a user, starting from 0. /// @param owner The owner of the nonces /// @return nonce The first valid nonce starting from 0 function permit2NextNonce(address owner) external view returns (uint256 nonce) { nonce = _permit2NextNonce(owner, 0, 0); } /// @notice Finds the next valid nonce for a user, after from a given nonce. /// @dev This can be helpful if you're signing multiple nonces in a row and need the next nonce to sign but the start one is still valid. /// @param owner The owner of the nonces /// @param start The nonce to start from /// @return nonce The first valid nonce after the given nonce function permit2NextNonceAfter(address owner, uint256 start) external view returns (uint256 nonce) { uint248 word = uint248(start >> 8); uint8 pos = uint8(start); if (pos == type(uint8).max) { // If the position is 255, we need to move to the next word word++; pos = 0; } else { // Otherwise, we just move to the next position pos++; } nonce = _permit2NextNonce(owner, word, pos); } /// @notice Finds the next valid nonce for a user, starting from a given word and position. /// @param owner The owner of the nonces /// @param word Word to start looking from /// @param pos Position inside the word to start looking from function _permit2NextNonce(address owner, uint248 word, uint8 pos) internal view returns (uint256 nonce) { while (true) { uint256 bitmap = IPermit2(permit2).nonceBitmap(owner, word); // Check if the bitmap is completely full if (bitmap == type(uint256).max) { // If so, move to the next word ++word; pos = 0; continue; } if (pos != 0) { // If the position is not 0, we need to shift the bitmap to ignore the bits before position bitmap = bitmap >> pos; } // Find the first zero bit in the bitmap while (bitmap & 1 == 1) { bitmap = bitmap >> 1; ++pos; } return _permit2NonceFromWordAndPos(word, pos); } } /// @notice Constructs a nonce from a word and a position inside the word /// @param word The word containing the nonce /// @param pos The position of the nonce inside the word /// @return nonce The nonce constructed from the word and position function _permit2NonceFromWordAndPos(uint248 word, uint8 pos) internal pure returns (uint256 nonce) { // The last 248 bits of the word are the nonce bits nonce = uint256(word) << 8; // The first 8 bits of the word are the position inside the word nonce |= pos; } } // File: contracts/OpenOceanExchange.sol pragma solidity ^0.8.0; pragma experimental ABIEncoderV2; contract OpenOceanExchange is OwnableUpgradeable, PausableUpgradeable, Permitable { using SafeMath for uint256; using SafeERC20 for IERC20; using UniversalERC20 for IERC20; uint256 private constant _PARTIAL_FILL = 0x01; uint256 private constant _SHOULD_CLAIM = 0x02; struct SwapDescription { IERC20 srcToken; IERC20 dstToken; address srcReceiver; address dstReceiver; uint256 amount; uint256 minReturnAmount; uint256 guaranteedAmount; uint256 flags; address referrer; bytes permit; } event Swapped( address indexed sender, IERC20 indexed srcToken, IERC20 indexed dstToken, address dstReceiver, uint256 amount, uint256 spentAmount, uint256 returnAmount, uint256 minReturnAmount, uint256 guaranteedAmount, address referrer ); function initialize() public initializer { OwnableUpgradeable.__Ownable_init(); PausableUpgradeable.__Pausable_init(); } function swap( IOpenOceanCaller caller, SwapDescription calldata desc, IOpenOceanCaller.CallDescription[] calldata calls ) external payable whenNotPaused returns (uint256 returnAmount) { require(desc.minReturnAmount > 0, "Min return should not be 0"); require(calls.length > 0, "Call data should exist"); uint256 flags = desc.flags; IERC20 srcToken = desc.srcToken; IERC20 dstToken = desc.dstToken; require(msg.value == (srcToken.isETH() ? desc.amount : 0), "Invalid msg.value"); if (flags & _SHOULD_CLAIM != 0) { require(!srcToken.isETH(), "Claim token is ETH"); _claim(srcToken, desc.srcReceiver, desc.amount, desc.permit); } address dstReceiver = (desc.dstReceiver == address(0)) ? msg.sender : desc.dstReceiver; uint256 initialSrcBalance = (flags & _PARTIAL_FILL != 0) ? srcToken.universalBalanceOf(msg.sender) : 0; uint256 initialDstBalance = dstToken.universalBalanceOf(dstReceiver); caller.makeCalls{value: msg.value}(calls); uint256 spentAmount = desc.amount; returnAmount = dstToken.universalBalanceOf(dstReceiver).sub(initialDstBalance); if (flags & _PARTIAL_FILL != 0) { spentAmount = initialSrcBalance.add(desc.amount).sub(srcToken.universalBalanceOf(msg.sender)); require(returnAmount.mul(desc.amount) >= desc.minReturnAmount.mul(spentAmount), "Return amount is not enough"); } else { require(returnAmount >= desc.minReturnAmount, "Return amount is not enough"); } _emitSwapped(desc, srcToken, dstToken, dstReceiver, spentAmount, returnAmount); } function _emitSwapped( SwapDescription calldata desc, IERC20 srcToken, IERC20 dstToken, address dstReceiver, uint256 spentAmount, uint256 returnAmount ) private { emit Swapped( msg.sender, srcToken, dstToken, dstReceiver, desc.amount, spentAmount, returnAmount, desc.minReturnAmount, desc.guaranteedAmount, desc.referrer ); } function _claim(IERC20 token, address dst, uint256 amount, bytes calldata permit) private { if (!_permit(address(token), permit, true)) { token.safeTransferFrom(msg.sender, dst, amount); } } function rescueFunds(IERC20 token, uint256 amount) external onlyOwner { token.universalTransfer(payable(msg.sender), amount); } function pause() external onlyOwner { _pause(); } function setPermit2(address _permit2) external onlyOwner { permit2 = _permit2; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"contract IERC20","name":"srcToken","type":"address"},{"indexed":true,"internalType":"contract IERC20","name":"dstToken","type":"address"},{"indexed":false,"internalType":"address","name":"dstReceiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"spentAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"returnAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"minReturnAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"guaranteedAmount","type":"uint256"},{"indexed":false,"internalType":"address","name":"referrer","type":"address"}],"name":"Swapped","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":"permit2","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"permit2DomainSeperator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"permit2NextNonce","outputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"}],"name":"permit2NextNonceAfter","outputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"rescueFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_permit2","type":"address"}],"name":"setPermit2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IOpenOceanCaller","name":"caller","type":"address"},{"components":[{"internalType":"contract IERC20","name":"srcToken","type":"address"},{"internalType":"contract IERC20","name":"dstToken","type":"address"},{"internalType":"address","name":"srcReceiver","type":"address"},{"internalType":"address","name":"dstReceiver","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"minReturnAmount","type":"uint256"},{"internalType":"uint256","name":"guaranteedAmount","type":"uint256"},{"internalType":"uint256","name":"flags","type":"uint256"},{"internalType":"address","name":"referrer","type":"address"},{"internalType":"bytes","name":"permit","type":"bytes"}],"internalType":"struct OpenOceanExchange.SwapDescription","name":"desc","type":"tuple"},{"components":[{"internalType":"uint256","name":"target","type":"uint256"},{"internalType":"uint256","name":"gasLimit","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct IOpenOceanCaller.CallDescription[]","name":"calls","type":"tuple[]"}],"name":"swap","outputs":[{"internalType":"uint256","name":"returnAmount","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50611e73806100206000396000f3fe6080604052600436106100c25760003560e01c8063844fb31c1161007f57806390411a321161005957806390411a32146101e9578063be698cfc146101fc578063f2fde38b1461021c578063ff3a920f1461023c57600080fd5b8063844fb31c146101935780638456cb59146101b65780638da5cb5b146101cb57600080fd5b8063101ec30a146100c757806312261ee7146100e95780635c975abb14610126578063715018a61461014957806378e3214f1461015e5780638129fc1c1461017e575b600080fd5b3480156100d357600080fd5b506100e76100e2366004611935565b61025c565b005b3480156100f557600080fd5b50609754610109906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561013257600080fd5b5060655460ff16604051901515815260200161011d565b34801561015557600080fd5b506100e7610286565b34801561016a57600080fd5b506100e7610179366004611952565b61029a565b34801561018a57600080fd5b506100e76102ba565b34801561019f57600080fd5b506101a86103d8565b60405190815260200161011d565b3480156101c257600080fd5b506100e761045a565b3480156101d757600080fd5b506033546001600160a01b0316610109565b6101a86101f736600461197e565b61046a565b34801561020857600080fd5b506101a8610217366004611952565b610832565b34801561022857600080fd5b506100e7610237366004611935565b61087d565b34801561024857600080fd5b506101a8610257366004611935565b6108f3565b610264610907565b609780546001600160a01b0319166001600160a01b0392909216919091179055565b61028e610907565b6102986000610961565b565b6102a2610907565b6102b66001600160a01b03831633836109b3565b5050565b600054610100900460ff16158080156102da5750600054600160ff909116105b806102f45750303b1580156102f4575060005460ff166001145b61035c5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084015b60405180910390fd5b6000805460ff19166001179055801561037f576000805461ff0019166101001790555b610387610a82565b61038f610ab1565b80156103d5576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50565b60975460408051633644e51560e01b815290516000926001600160a01b031691633644e515916004808301926020929190829003018186803b15801561041d57600080fd5b505afa158015610431573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104559190611a2e565b905090565b610462610907565b610298610ae0565b6000610474610b3a565b60008460a00135116104c85760405162461bcd60e51b815260206004820152601a60248201527f4d696e2072657475726e2073686f756c64206e6f7420626520300000000000006044820152606401610353565b8161050e5760405162461bcd60e51b815260206004820152601660248201527510d85b1b0819185d18481cda1bdd5b1908195e1a5cdd60521b6044820152606401610353565b60e084013560006105226020870187611935565b905060006105366040880160208901611935565b905061054a826001600160a01b0316610b80565b61055557600061055b565b86608001355b341461059d5760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964206d73672e76616c756560781b6044820152606401610353565b6002831615610626576105b8826001600160a01b0316610b80565b156105fa5760405162461bcd60e51b8152602060048201526012602482015271086d8c2d2da40e8ded6cadc40d2e6408aa8960731b6044820152606401610353565b6106268261060e60608a0160408b01611935565b60808a01356106216101208c018c611a47565b610bcb565b60008061063960808a0160608b01611935565b6001600160a01b03161461065c576106576080890160608a01611935565b61065e565b335b9050600060018516610671576000610684565b6106846001600160a01b03851633610bf8565b9050600061069b6001600160a01b03851684610bf8565b90508a6001600160a01b031663a8920d2b348b8b6040518463ffffffff1660e01b81526004016106cc929190611ab7565b6000604051808303818588803b1580156106e557600080fd5b505af11580156106f9573d6000803e3d6000fd5b5050505060808b013590506107218261071b6001600160a01b03881687610bf8565b90610c99565b975060018716156107c1576107506107426001600160a01b03881633610bf8565b61071b8560808f0135610ca5565b905061076060a08c013582610cb1565b61076e8960808e0135610cb1565b10156107bc5760405162461bcd60e51b815260206004820152601b60248201527f52657475726e20616d6f756e74206973206e6f7420656e6f75676800000000006044820152606401610353565b610815565b8a60a001358810156108155760405162461bcd60e51b815260206004820152601b60248201527f52657475726e20616d6f756e74206973206e6f7420656e6f75676800000000006044820152606401610353565b6108238b878787858d610cbd565b50505050505050949350505050565b6000600882901c8260ff808216141561085b578161084f81611ba4565b92505060009050610869565b8061086581611bcb565b9150505b610874858383610d6e565b95945050505050565b610885610907565b6001600160a01b0381166108ea5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610353565b6103d581610961565b600061090182600080610d6e565b92915050565b6033546001600160a01b031633146102985760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610353565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8015610a7d576109c283610b80565b15610a69576000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610a14576040519150601f19603f3d011682016040523d82523d6000602084013e610a19565b606091505b5050905080610a635760405162461bcd60e51b815260206004820152601660248201527508cc2d2d8cac840e8de40e8e4c2dce6cccae4408aa8960531b6044820152606401610353565b50505050565b610a7d6001600160a01b0384168383610e64565b505050565b600054610100900460ff16610aa95760405162461bcd60e51b815260040161035390611beb565b610298610ec7565b600054610100900460ff16610ad85760405162461bcd60e51b815260040161035390611beb565b610298610ef7565b610ae8610b3a565b6065805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610b1d3390565b6040516001600160a01b03909116815260200160405180910390a1565b60655460ff16156102985760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610353565b60006001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1480610bb757506001600160a01b038216611010145b806109015750506001600160a01b03161590565b610bd88583836001610f2a565b610bf157610bf16001600160a01b038616338686610f84565b5050505050565b6000610c0383610b80565b15610c1957506001600160a01b03811631610901565b6040516370a0823160e01b81526001600160a01b0383811660048301528416906370a082319060240160206040518083038186803b158015610c5a57600080fd5b505afa158015610c6e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c929190611a2e565b9392505050565b6000610c928284611c36565b6000610c928284611c4d565b6000610c928284611c65565b836001600160a01b0316856001600160a01b0316336001600160a01b03167f76af224a143865a50b41496e1a73622698692c565c1214bc862f18e22d829c5e868a6080013587878d60a001358e60c001358f610100016020810190610d229190611935565b604080516001600160a01b03988916815260208101979097528601949094526060850192909252608084015260a083015290911660c082015260e00160405180910390a4505050505050565b60005b6097546040516313f80ad160e21b81526001600160a01b0386811660048301526001600160f81b03861660248301526000921690634fe02b449060440160206040518083038186803b158015610dc657600080fd5b505afa158015610dda573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dfe9190611a2e565b9050600019811415610e1f57610e1384611ba4565b93506000925050610d71565b60ff831615610e2e5760ff83161c5b8060011660011415610e4d5760011c610e4683611bcb565b9250610e2e565b505060ff811660ff19600884901b16179392505050565b6040516001600160a01b038316602482015260448101829052610a7d90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610fbc565b600054610100900460ff16610eee5760405162461bcd60e51b815260040161035390611beb565b61029833610961565b600054610100900460ff16610f1e5760405162461bcd60e51b815260040161035390611beb565b6065805460ff19169055565b60008215610f785760e0831480610f42575061010083145b15610f5d57610f5285858561108e565b505060009050610f7c565b8115610f7857610f6d8484611214565b505060019050610f7c565b5060005b949350505050565b6040516001600160a01b0380851660248301528316604482015260648101829052610a639085906323b872dd60e01b90608401610e90565b6000611011826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166112e59092919063ffffffff16565b805190915015610a7d578080602001905181019061102f9190611c84565b610a7d5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610353565b6000606060e0831415611129576040516001600160a01b038616906110c29063d505accf60e01b9087908790602001611ca6565b60408051601f19818403018152908290526110dc91611cf6565b6000604051808303816000865af19150503d8060008114611119576040519150601f19603f3d011682016040523d82523d6000602084013e61111e565b606091505b5090925090506111bd565b6101008314156111bd576040516001600160a01b0386169061115a906323f2ebc360e21b9087908790602001611ca6565b60408051601f198184030181529082905261117491611cf6565b6000604051808303816000865af19150503d80600081146111b1576040519150601f19603f3d011682016040523d82523d6000602084013e6111b6565b606091505b5090925090505b8161120c576111f3816040518060400160405280600f81526020016e02832b936b4ba103330b4b632b21d1608d1b8152506112f4565b60405162461bcd60e51b81526004016103539190611d12565b935093915050565b6097546040516000916060916001600160a01b03909116906112459063187945bd60e11b9087908790602001611ca6565b60408051601f198184030181529082905261125f91611cf6565b6000604051808303816000865af19150503d806000811461129c576040519150601f19603f3d011682016040523d82523d6000602084013e6112a1565b606091505b509092509050816112de576111f3816040518060400160405280601081526020016f02832b936b4ba19103330b4b632b21d160851b8152506112f4565b9250929050565b6060610f7c8484600085611560565b6060604483511015801561132d57508260008151811061131657611316611d45565b6020910101516001600160f81b031916600160fb1b145b801561135e57508260018151811061134757611347611d45565b6020910101516001600160f81b03191660c360f81b145b801561138f57508260028151811061137857611378611d45565b6020910101516001600160f81b031916607960f81b145b80156113c05750826003815181106113a9576113a9611d45565b6020910101516001600160f81b031916600560fd1b145b1561144a576044838101805190916113d89190611c4d565b845110156114205760405162461bcd60e51b815260206004820152601560248201527424b73b30b634b2103932bb32b93a103932b0b9b7b760591b6044820152606401610353565b8281604051602001611433929190611d5b565b604051602081830303815290604052915050610901565b8251602414801561148057508260008151811061146957611469611d45565b6020910101516001600160f81b031916602760f91b145b80156114b157508260018151811061149a5761149a611d45565b6020910101516001600160f81b031916600960fb1b145b80156114e25750826002815181106114cb576114cb611d45565b6020910101516001600160f81b031916607b60f81b145b80156115135750826003815181106114fc576114fc611d45565b6020910101516001600160f81b031916607160f81b145b15611538576024830151826115278261163b565b604051602001611433929190611daa565b816040516020016115499190611ddf565b604051602081830303815290604052905092915050565b6060824710156115c15760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610353565b600080866001600160a01b031685876040516115dd9190611cf6565b60006040518083038185875af1925050503d806000811461161a576040519150601f19603f3d011682016040523d82523d6000602084013e61161f565b606091505b509150915061163087838387611667565b979650505050505050565b60606109018260405160200161165391815260200190565b6040516020818303038152906040526116dd565b606083156116d35782516116cc576001600160a01b0385163b6116cc5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610353565b5081610f7c565b610f7c83836118f6565b60408051808201909152601081526f181899199a1a9b1b9c1cb0b131b232b360811b6020820152815160609190600090611718906002611c65565b611723906002611c4d565b67ffffffffffffffff81111561173b5761173b611e0c565b6040519080825280601f01601f191660200182016040528015611765576020820181803683370190505b509050600360fc1b8160008151811061178057611780611d45565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106117af576117af611d45565b60200101906001600160f81b031916908160001a90535060005b84518110156118ee578260048683815181106117e7576117e7611d45565b016020015182516001600160f81b031990911690911c60f81c90811061180f5761180f611d45565b01602001516001600160f81b0319168261182a836002611c65565b611835906002611c4d565b8151811061184557611845611d45565b60200101906001600160f81b031916908160001a9053508285828151811061186f5761186f611d45565b602091010151815160f89190911c600f1690811061188f5761188f611d45565b01602001516001600160f81b031916826118aa836002611c65565b6118b5906003611c4d565b815181106118c5576118c5611d45565b60200101906001600160f81b031916908160001a905350806118e681611e22565b9150506117c9565b509392505050565b8151156119065781518083602001fd5b8060405162461bcd60e51b81526004016103539190611d12565b6001600160a01b03811681146103d557600080fd5b60006020828403121561194757600080fd5b8135610c9281611920565b6000806040838503121561196557600080fd5b823561197081611920565b946020939093013593505050565b6000806000806060858703121561199457600080fd5b843561199f81611920565b9350602085013567ffffffffffffffff808211156119bc57600080fd5b9086019061014082890312156119d157600080fd5b909350604086013590808211156119e757600080fd5b818701915087601f8301126119fb57600080fd5b813581811115611a0a57600080fd5b8860208260051b8501011115611a1f57600080fd5b95989497505060200194505050565b600060208284031215611a4057600080fd5b5051919050565b6000808335601e19843603018112611a5e57600080fd5b83018035915067ffffffffffffffff821115611a7957600080fd5b6020019150368190038213156112de57600080fd5b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60208082528181018390526000906040808401600586901b8501820187855b88811015611b8057878303603f190184528135368b9003607e19018112611afc57600080fd5b8a018035845286810135878501528581013586850152608060608083013536849003601e19018112611b2d57600080fd5b8301803567ffffffffffffffff811115611b4657600080fd5b803603851315611b5557600080fd5b8383890152611b69848901828d8501611a8e565b988b01989750505093880193505050600101611ad6565b509098975050505050505050565b634e487b7160e01b600052601160045260246000fd5b60006001600160f81b0382811680821415611bc157611bc1611b8e565b6001019392505050565b600060ff821660ff811415611be257611be2611b8e565b60010192915050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b600082821015611c4857611c48611b8e565b500390565b60008219821115611c6057611c60611b8e565b500190565b6000816000190483118215151615611c7f57611c7f611b8e565b500290565b600060208284031215611c9657600080fd5b81518015158114610c9257600080fd5b6001600160e01b031984168152818360048301376000910160040190815292915050565b60005b83811015611ce5578181015183820152602001611ccd565b83811115610a635750506000910152565b60008251611d08818460208701611cca565b9190910192915050565b6020815260008251806020840152611d31816040850160208701611cca565b601f01601f19169190910160400192915050565b634e487b7160e01b600052603260045260246000fd5b60008351611d6d818460208801611cca565b6508ae4e4dee4560d31b9083019081528351611d90816006840160208801611cca565b602960f81b60069290910191820152600701949350505050565b60008351611dbc818460208801611cca565b650a0c2dcd2c6560d31b9083019081528351611d90816006840160208801611cca565b60008251611df1818460208701611cca565b68556e6b6e6f776e282960b81b920191825250600901919050565b634e487b7160e01b600052604160045260246000fd5b6000600019821415611e3657611e36611b8e565b506001019056fea2646970667358221220dacba74a1628d8c250721b1e4f919e4a13574dd1b13744b4c068cb54d434b3b064736f6c63430008090033
Deployed Bytecode
0x6080604052600436106100c25760003560e01c8063844fb31c1161007f57806390411a321161005957806390411a32146101e9578063be698cfc146101fc578063f2fde38b1461021c578063ff3a920f1461023c57600080fd5b8063844fb31c146101935780638456cb59146101b65780638da5cb5b146101cb57600080fd5b8063101ec30a146100c757806312261ee7146100e95780635c975abb14610126578063715018a61461014957806378e3214f1461015e5780638129fc1c1461017e575b600080fd5b3480156100d357600080fd5b506100e76100e2366004611935565b61025c565b005b3480156100f557600080fd5b50609754610109906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561013257600080fd5b5060655460ff16604051901515815260200161011d565b34801561015557600080fd5b506100e7610286565b34801561016a57600080fd5b506100e7610179366004611952565b61029a565b34801561018a57600080fd5b506100e76102ba565b34801561019f57600080fd5b506101a86103d8565b60405190815260200161011d565b3480156101c257600080fd5b506100e761045a565b3480156101d757600080fd5b506033546001600160a01b0316610109565b6101a86101f736600461197e565b61046a565b34801561020857600080fd5b506101a8610217366004611952565b610832565b34801561022857600080fd5b506100e7610237366004611935565b61087d565b34801561024857600080fd5b506101a8610257366004611935565b6108f3565b610264610907565b609780546001600160a01b0319166001600160a01b0392909216919091179055565b61028e610907565b6102986000610961565b565b6102a2610907565b6102b66001600160a01b03831633836109b3565b5050565b600054610100900460ff16158080156102da5750600054600160ff909116105b806102f45750303b1580156102f4575060005460ff166001145b61035c5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084015b60405180910390fd5b6000805460ff19166001179055801561037f576000805461ff0019166101001790555b610387610a82565b61038f610ab1565b80156103d5576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50565b60975460408051633644e51560e01b815290516000926001600160a01b031691633644e515916004808301926020929190829003018186803b15801561041d57600080fd5b505afa158015610431573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104559190611a2e565b905090565b610462610907565b610298610ae0565b6000610474610b3a565b60008460a00135116104c85760405162461bcd60e51b815260206004820152601a60248201527f4d696e2072657475726e2073686f756c64206e6f7420626520300000000000006044820152606401610353565b8161050e5760405162461bcd60e51b815260206004820152601660248201527510d85b1b0819185d18481cda1bdd5b1908195e1a5cdd60521b6044820152606401610353565b60e084013560006105226020870187611935565b905060006105366040880160208901611935565b905061054a826001600160a01b0316610b80565b61055557600061055b565b86608001355b341461059d5760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964206d73672e76616c756560781b6044820152606401610353565b6002831615610626576105b8826001600160a01b0316610b80565b156105fa5760405162461bcd60e51b8152602060048201526012602482015271086d8c2d2da40e8ded6cadc40d2e6408aa8960731b6044820152606401610353565b6106268261060e60608a0160408b01611935565b60808a01356106216101208c018c611a47565b610bcb565b60008061063960808a0160608b01611935565b6001600160a01b03161461065c576106576080890160608a01611935565b61065e565b335b9050600060018516610671576000610684565b6106846001600160a01b03851633610bf8565b9050600061069b6001600160a01b03851684610bf8565b90508a6001600160a01b031663a8920d2b348b8b6040518463ffffffff1660e01b81526004016106cc929190611ab7565b6000604051808303818588803b1580156106e557600080fd5b505af11580156106f9573d6000803e3d6000fd5b5050505060808b013590506107218261071b6001600160a01b03881687610bf8565b90610c99565b975060018716156107c1576107506107426001600160a01b03881633610bf8565b61071b8560808f0135610ca5565b905061076060a08c013582610cb1565b61076e8960808e0135610cb1565b10156107bc5760405162461bcd60e51b815260206004820152601b60248201527f52657475726e20616d6f756e74206973206e6f7420656e6f75676800000000006044820152606401610353565b610815565b8a60a001358810156108155760405162461bcd60e51b815260206004820152601b60248201527f52657475726e20616d6f756e74206973206e6f7420656e6f75676800000000006044820152606401610353565b6108238b878787858d610cbd565b50505050505050949350505050565b6000600882901c8260ff808216141561085b578161084f81611ba4565b92505060009050610869565b8061086581611bcb565b9150505b610874858383610d6e565b95945050505050565b610885610907565b6001600160a01b0381166108ea5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610353565b6103d581610961565b600061090182600080610d6e565b92915050565b6033546001600160a01b031633146102985760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610353565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8015610a7d576109c283610b80565b15610a69576000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610a14576040519150601f19603f3d011682016040523d82523d6000602084013e610a19565b606091505b5050905080610a635760405162461bcd60e51b815260206004820152601660248201527508cc2d2d8cac840e8de40e8e4c2dce6cccae4408aa8960531b6044820152606401610353565b50505050565b610a7d6001600160a01b0384168383610e64565b505050565b600054610100900460ff16610aa95760405162461bcd60e51b815260040161035390611beb565b610298610ec7565b600054610100900460ff16610ad85760405162461bcd60e51b815260040161035390611beb565b610298610ef7565b610ae8610b3a565b6065805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610b1d3390565b6040516001600160a01b03909116815260200160405180910390a1565b60655460ff16156102985760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610353565b60006001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1480610bb757506001600160a01b038216611010145b806109015750506001600160a01b03161590565b610bd88583836001610f2a565b610bf157610bf16001600160a01b038616338686610f84565b5050505050565b6000610c0383610b80565b15610c1957506001600160a01b03811631610901565b6040516370a0823160e01b81526001600160a01b0383811660048301528416906370a082319060240160206040518083038186803b158015610c5a57600080fd5b505afa158015610c6e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c929190611a2e565b9392505050565b6000610c928284611c36565b6000610c928284611c4d565b6000610c928284611c65565b836001600160a01b0316856001600160a01b0316336001600160a01b03167f76af224a143865a50b41496e1a73622698692c565c1214bc862f18e22d829c5e868a6080013587878d60a001358e60c001358f610100016020810190610d229190611935565b604080516001600160a01b03988916815260208101979097528601949094526060850192909252608084015260a083015290911660c082015260e00160405180910390a4505050505050565b60005b6097546040516313f80ad160e21b81526001600160a01b0386811660048301526001600160f81b03861660248301526000921690634fe02b449060440160206040518083038186803b158015610dc657600080fd5b505afa158015610dda573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dfe9190611a2e565b9050600019811415610e1f57610e1384611ba4565b93506000925050610d71565b60ff831615610e2e5760ff83161c5b8060011660011415610e4d5760011c610e4683611bcb565b9250610e2e565b505060ff811660ff19600884901b16179392505050565b6040516001600160a01b038316602482015260448101829052610a7d90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610fbc565b600054610100900460ff16610eee5760405162461bcd60e51b815260040161035390611beb565b61029833610961565b600054610100900460ff16610f1e5760405162461bcd60e51b815260040161035390611beb565b6065805460ff19169055565b60008215610f785760e0831480610f42575061010083145b15610f5d57610f5285858561108e565b505060009050610f7c565b8115610f7857610f6d8484611214565b505060019050610f7c565b5060005b949350505050565b6040516001600160a01b0380851660248301528316604482015260648101829052610a639085906323b872dd60e01b90608401610e90565b6000611011826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166112e59092919063ffffffff16565b805190915015610a7d578080602001905181019061102f9190611c84565b610a7d5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610353565b6000606060e0831415611129576040516001600160a01b038616906110c29063d505accf60e01b9087908790602001611ca6565b60408051601f19818403018152908290526110dc91611cf6565b6000604051808303816000865af19150503d8060008114611119576040519150601f19603f3d011682016040523d82523d6000602084013e61111e565b606091505b5090925090506111bd565b6101008314156111bd576040516001600160a01b0386169061115a906323f2ebc360e21b9087908790602001611ca6565b60408051601f198184030181529082905261117491611cf6565b6000604051808303816000865af19150503d80600081146111b1576040519150601f19603f3d011682016040523d82523d6000602084013e6111b6565b606091505b5090925090505b8161120c576111f3816040518060400160405280600f81526020016e02832b936b4ba103330b4b632b21d1608d1b8152506112f4565b60405162461bcd60e51b81526004016103539190611d12565b935093915050565b6097546040516000916060916001600160a01b03909116906112459063187945bd60e11b9087908790602001611ca6565b60408051601f198184030181529082905261125f91611cf6565b6000604051808303816000865af19150503d806000811461129c576040519150601f19603f3d011682016040523d82523d6000602084013e6112a1565b606091505b509092509050816112de576111f3816040518060400160405280601081526020016f02832b936b4ba19103330b4b632b21d160851b8152506112f4565b9250929050565b6060610f7c8484600085611560565b6060604483511015801561132d57508260008151811061131657611316611d45565b6020910101516001600160f81b031916600160fb1b145b801561135e57508260018151811061134757611347611d45565b6020910101516001600160f81b03191660c360f81b145b801561138f57508260028151811061137857611378611d45565b6020910101516001600160f81b031916607960f81b145b80156113c05750826003815181106113a9576113a9611d45565b6020910101516001600160f81b031916600560fd1b145b1561144a576044838101805190916113d89190611c4d565b845110156114205760405162461bcd60e51b815260206004820152601560248201527424b73b30b634b2103932bb32b93a103932b0b9b7b760591b6044820152606401610353565b8281604051602001611433929190611d5b565b604051602081830303815290604052915050610901565b8251602414801561148057508260008151811061146957611469611d45565b6020910101516001600160f81b031916602760f91b145b80156114b157508260018151811061149a5761149a611d45565b6020910101516001600160f81b031916600960fb1b145b80156114e25750826002815181106114cb576114cb611d45565b6020910101516001600160f81b031916607b60f81b145b80156115135750826003815181106114fc576114fc611d45565b6020910101516001600160f81b031916607160f81b145b15611538576024830151826115278261163b565b604051602001611433929190611daa565b816040516020016115499190611ddf565b604051602081830303815290604052905092915050565b6060824710156115c15760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610353565b600080866001600160a01b031685876040516115dd9190611cf6565b60006040518083038185875af1925050503d806000811461161a576040519150601f19603f3d011682016040523d82523d6000602084013e61161f565b606091505b509150915061163087838387611667565b979650505050505050565b60606109018260405160200161165391815260200190565b6040516020818303038152906040526116dd565b606083156116d35782516116cc576001600160a01b0385163b6116cc5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610353565b5081610f7c565b610f7c83836118f6565b60408051808201909152601081526f181899199a1a9b1b9c1cb0b131b232b360811b6020820152815160609190600090611718906002611c65565b611723906002611c4d565b67ffffffffffffffff81111561173b5761173b611e0c565b6040519080825280601f01601f191660200182016040528015611765576020820181803683370190505b509050600360fc1b8160008151811061178057611780611d45565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106117af576117af611d45565b60200101906001600160f81b031916908160001a90535060005b84518110156118ee578260048683815181106117e7576117e7611d45565b016020015182516001600160f81b031990911690911c60f81c90811061180f5761180f611d45565b01602001516001600160f81b0319168261182a836002611c65565b611835906002611c4d565b8151811061184557611845611d45565b60200101906001600160f81b031916908160001a9053508285828151811061186f5761186f611d45565b602091010151815160f89190911c600f1690811061188f5761188f611d45565b01602001516001600160f81b031916826118aa836002611c65565b6118b5906003611c4d565b815181106118c5576118c5611d45565b60200101906001600160f81b031916908160001a905350806118e681611e22565b9150506117c9565b509392505050565b8151156119065781518083602001fd5b8060405162461bcd60e51b81526004016103539190611d12565b6001600160a01b03811681146103d557600080fd5b60006020828403121561194757600080fd5b8135610c9281611920565b6000806040838503121561196557600080fd5b823561197081611920565b946020939093013593505050565b6000806000806060858703121561199457600080fd5b843561199f81611920565b9350602085013567ffffffffffffffff808211156119bc57600080fd5b9086019061014082890312156119d157600080fd5b909350604086013590808211156119e757600080fd5b818701915087601f8301126119fb57600080fd5b813581811115611a0a57600080fd5b8860208260051b8501011115611a1f57600080fd5b95989497505060200194505050565b600060208284031215611a4057600080fd5b5051919050565b6000808335601e19843603018112611a5e57600080fd5b83018035915067ffffffffffffffff821115611a7957600080fd5b6020019150368190038213156112de57600080fd5b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60208082528181018390526000906040808401600586901b8501820187855b88811015611b8057878303603f190184528135368b9003607e19018112611afc57600080fd5b8a018035845286810135878501528581013586850152608060608083013536849003601e19018112611b2d57600080fd5b8301803567ffffffffffffffff811115611b4657600080fd5b803603851315611b5557600080fd5b8383890152611b69848901828d8501611a8e565b988b01989750505093880193505050600101611ad6565b509098975050505050505050565b634e487b7160e01b600052601160045260246000fd5b60006001600160f81b0382811680821415611bc157611bc1611b8e565b6001019392505050565b600060ff821660ff811415611be257611be2611b8e565b60010192915050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b600082821015611c4857611c48611b8e565b500390565b60008219821115611c6057611c60611b8e565b500190565b6000816000190483118215151615611c7f57611c7f611b8e565b500290565b600060208284031215611c9657600080fd5b81518015158114610c9257600080fd5b6001600160e01b031984168152818360048301376000910160040190815292915050565b60005b83811015611ce5578181015183820152602001611ccd565b83811115610a635750506000910152565b60008251611d08818460208701611cca565b9190910192915050565b6020815260008251806020840152611d31816040850160208701611cca565b601f01601f19169190910160400192915050565b634e487b7160e01b600052603260045260246000fd5b60008351611d6d818460208801611cca565b6508ae4e4dee4560d31b9083019081528351611d90816006840160208801611cca565b602960f81b60069290910191820152600701949350505050565b60008351611dbc818460208801611cca565b650a0c2dcd2c6560d31b9083019081528351611d90816006840160208801611cca565b60008251611df1818460208701611cca565b68556e6b6e6f776e282960b81b920191825250600901919050565b634e487b7160e01b600052604160045260246000fd5b6000600019821415611e3657611e36611b8e565b506001019056fea2646970667358221220dacba74a1628d8c250721b1e4f919e4a13574dd1b13744b4c068cb54d434b3b064736f6c63430008090033
Deployed Bytecode Sourcemap
62446:3956:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;66305:94;;;;;;;;;;-1:-1:-1;66305:94:0;;;;;:::i;:::-;;:::i;:::-;;57530:22;;;;;;;;;;-1:-1:-1;57530:22:0;;;;-1:-1:-1;;;;;57530:22:0;;;;;;-1:-1:-1;;;;;566:32:1;;;548:51;;536:2;521:18;57530:22:0;;;;;;;;41106:86;;;;;;;;;;-1:-1:-1;41177:7:0;;;;41106:86;;775:14:1;;768:22;750:41;;738:2;723:18;41106:86:0;610:187:1;18928:103:0;;;;;;;;;;;;;:::i;66085:141::-;;;;;;;;;;-1:-1:-1;66085:141:0;;;;;:::i;:::-;;:::i;63408:143::-;;;;;;;;;;;;;:::i;57561:128::-;;;;;;;;;;;;;:::i;:::-;;;1282:25:1;;;1270:2;1255:18;57561:128:0;1136:177:1;66234:63:0;;;;;;;;;;;;;:::i;18280:87::-;;;;;;;;;;-1:-1:-1;18353:6:0;;-1:-1:-1;;;;;18353:6:0;18280:87;;63559:1739;;;;;;:::i;:::-;;:::i;60074:506::-;;;;;;;;;;-1:-1:-1;60074:506:0;;;;;:::i;:::-;;:::i;19186:201::-;;;;;;;;;;-1:-1:-1;19186:201:0;;;;;:::i;:::-;;:::i;59546:136::-;;;;;;;;;;-1:-1:-1;59546:136:0;;;;;:::i;:::-;;:::i;66305:94::-;18166:13;:11;:13::i;:::-;66373:7:::1;:18:::0;;-1:-1:-1;;;;;;66373:18:0::1;-1:-1:-1::0;;;;;66373:18:0;;;::::1;::::0;;;::::1;::::0;;66305:94::o;18928:103::-;18166:13;:11;:13::i;:::-;18993:30:::1;19020:1;18993:18;:30::i;:::-;18928:103::o:0;66085:141::-;18166:13;:11;:13::i;:::-;66166:52:::1;-1:-1:-1::0;;;;;66166:23:0;::::1;66198:10;66211:6:::0;66166:23:::1;:52::i;:::-;66085:141:::0;;:::o;63408:143::-;12001:19;12024:13;;;;;;12023:14;;12071:34;;;;-1:-1:-1;12089:12:0;;12104:1;12089:12;;;;:16;12071:34;12070:108;;;-1:-1:-1;12150:4:0;1664:19;:23;;;12111:66;;-1:-1:-1;12160:12:0;;;;;:17;12111:66;12048:204;;;;-1:-1:-1;;;12048:204:0;;3110:2:1;12048:204:0;;;3092:21:1;3149:2;3129:18;;;3122:30;3188:34;3168:18;;;3161:62;-1:-1:-1;;;3239:18:1;;;3232:44;3293:19;;12048:204:0;;;;;;;;;12263:12;:16;;-1:-1:-1;;12263:16:0;12278:1;12263:16;;;12290:67;;;;12325:13;:20;;-1:-1:-1;;12325:20:0;;;;;12290:67;63460:35:::1;:33;:35::i;:::-;63506:37;:35;:37::i;:::-;12383:14:::0;12379:102;;;12430:5;12414:21;;-1:-1:-1;;12414:21:0;;;12455:14;;-1:-1:-1;3475:36:1;;12455:14:0;;3463:2:1;3448:18;12455:14:0;;;;;;;12379:102;11990:498;63408:143::o;57561:128::-;57654:7;;57645:36;;;-1:-1:-1;;;57645:36:0;;;;57618:7;;-1:-1:-1;;;;;57654:7:0;;57645:34;;:36;;;;;;;;;;;;;;57654:7;57645:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;57638:43;;57561:128;:::o;66234:63::-;18166:13;:11;:13::i;:::-;66281:8:::1;:6;:8::i;63559:1739::-:0;63754:20;40711:19;:17;:19::i;:::-;63818:1:::1;63795:4;:20;;;:24;63787:63;;;::::0;-1:-1:-1;;;63787:63:0;;3913:2:1;63787:63:0::1;::::0;::::1;3895:21:1::0;3952:2;3932:18;;;3925:30;3991:28;3971:18;;;3964:56;4037:18;;63787:63:0::1;3711:350:1::0;63787:63:0::1;63869:16:::0;63861:51:::1;;;::::0;-1:-1:-1;;;63861:51:0;;4268:2:1;63861:51:0::1;::::0;::::1;4250:21:1::0;4307:2;4287:18;;;4280:30;-1:-1:-1;;;4326:18:1;;;4319:52;4388:18;;63861:51:0::1;4066:346:1::0;63861:51:0::1;63941:10;::::0;::::1;;63925:13;63980;;::::0;::::1;63941:4:::0;63980:13:::1;:::i;:::-;63962:31:::0;-1:-1:-1;64004:15:0::1;64022:13;::::0;;;::::1;::::0;::::1;;:::i;:::-;64004:31;;64070:16;:8;-1:-1:-1::0;;;;;64070:14:0::1;;:16::i;:::-;:34;;64103:1;64070:34;;;64089:4;:11;;;64070:34;64056:9;:49;64048:79;;;::::0;-1:-1:-1;;;64048:79:0;;4885:2:1;64048:79:0::1;::::0;::::1;4867:21:1::0;4924:2;4904:18;;;4897:30;-1:-1:-1;;;4943:18:1;;;4936:47;5000:18;;64048:79:0::1;4683:341:1::0;64048:79:0::1;62734:4;64144:21:::0;::::1;:26:::0;64140:182:::1;;64196:16;:8;-1:-1:-1::0;;;;;64196:14:0::1;;:16::i;:::-;64195:17;64187:48;;;::::0;-1:-1:-1;;;64187:48:0;;5231:2:1;64187:48:0::1;::::0;::::1;5213:21:1::0;5270:2;5250:18;;;5243:30;-1:-1:-1;;;5289:18:1;;;5282:48;5347:18;;64187:48:0::1;5029:342:1::0;64187:48:0::1;64250:60;64257:8:::0;64267:16:::1;::::0;;;::::1;::::0;::::1;;:::i;:::-;64285:11;::::0;::::1;;64298;;::::0;::::1;64285:4:::0;64298:11:::1;:::i;:::-;64250:6;:60::i;:::-;64334:19;::::0;64357:16:::1;::::0;;;::::1;::::0;::::1;;:::i;:::-;-1:-1:-1::0;;;;;64357:30:0::1;;64356:64;;64404:16;::::0;;;::::1;::::0;::::1;;:::i;:::-;64356:64;;;64391:10;64356:64;64334:86:::0;-1:-1:-1;64431:25:0::1;62682:4;64460:21:::0;::::1;64459:74;;64532:1;64459:74;;;64490:39;-1:-1:-1::0;;;;;64490:27:0;::::1;64518:10;64490:27;:39::i;:::-;64431:102:::0;-1:-1:-1;64544:25:0::1;64572:40;-1:-1:-1::0;;;;;64572:27:0;::::1;64600:11:::0;64572:27:::1;:40::i;:::-;64544:68;;64625:6;-1:-1:-1::0;;;;;64625:16:0::1;;64649:9;64660:5;;64625:41;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;;;64701:11:0::1;::::0;::::1;;::::0;-1:-1:-1;64738:63:0::1;64783:17:::0;64738:40:::1;-1:-1:-1::0;;;;;64738:27:0;::::1;64766:11:::0;64738:27:::1;:40::i;:::-;:44:::0;::::1;:63::i;:::-;64723:78:::0;-1:-1:-1;62682:4:0::1;64818:21:::0;::::1;:26:::0;64814:386:::1;;64875:79;64914:39;-1:-1:-1::0;;;;;64914:27:0;::::1;64942:10;64914:27;:39::i;:::-;64875:34;:17:::0;64897:11:::1;::::0;::::1;;64875:21;:34::i;:79::-;64861:93:::0;-1:-1:-1;65010:37:0::1;:20;::::0;::::1;;64861:93:::0;65010:24:::1;:37::i;:::-;64977:29;:12:::0;64994:11:::1;::::0;::::1;;64977:16;:29::i;:::-;:70;;64969:110;;;::::0;-1:-1:-1;;;64969:110:0;;8163:2:1;64969:110:0::1;::::0;::::1;8145:21:1::0;8202:2;8182:18;;;8175:30;8241:29;8221:18;;;8214:57;8288:18;;64969:110:0::1;7961:351:1::0;64969:110:0::1;64814:386;;;65136:4;:20;;;65120:12;:36;;65112:76;;;::::0;-1:-1:-1;;;65112:76:0;;8163:2:1;65112:76:0::1;::::0;::::1;8145:21:1::0;8202:2;8182:18;;;8175:30;8241:29;8221:18;;;8214:57;8288:18;;65112:76:0::1;7961:351:1::0;65112:76:0::1;65212:78;65225:4;65231:8;65241;65251:11;65264;65277:12;65212;:78::i;:::-;63776:1522;;;;;;;63559:1739:::0;;;;;;:::o;60074:506::-;60158:13;60216:1;60207:10;;;:5;60275:15;60268:22;;;;60264:255;;;60380:6;;;;:::i;:::-;;;;60407:1;60401:7;;60264:255;;;60502:5;;;;:::i;:::-;;;;60264:255;60537:35;60555:5;60562:4;60568:3;60537:17;:35::i;:::-;60529:43;60074:506;-1:-1:-1;;;;;60074:506:0:o;19186:201::-;18166:13;:11;:13::i;:::-;-1:-1:-1;;;;;19275:22:0;::::1;19267:73;;;::::0;-1:-1:-1;;;19267:73:0;;9047:2:1;19267:73:0::1;::::0;::::1;9029:21:1::0;9086:2;9066:18;;;9059:30;9125:34;9105:18;;;9098:62;-1:-1:-1;;;9176:18:1;;;9169:36;9222:19;;19267:73:0::1;8845:402:1::0;19267:73:0::1;19351:28;19370:8;19351:18;:28::i;59546:136::-:0;59610:13;59644:30;59662:5;59669:1;59672;59644:17;:30::i;:::-;59636:38;59546:136;-1:-1:-1;;59546:136:0:o;18445:132::-;18353:6;;-1:-1:-1;;;;;18353:6:0;16400:10;18509:23;18501:68;;;;-1:-1:-1;;;18501:68:0;;9454:2:1;18501:68:0;;;9436:21:1;;;9473:18;;;9466:30;9532:34;9512:18;;;9505:62;9584:18;;18501:68:0;9252:356:1;19547:191:0;19640:6;;;-1:-1:-1;;;;;19657:17:0;;;-1:-1:-1;;;;;;19657:17:0;;;;;;;19690:40;;19640:6;;;19657:17;19640:6;;19690:40;;19621:16;;19690:40;19610:128;19547:191;:::o;52910:408::-;53045:10;;53041:270;;53076:12;53082:5;53076;:12::i;:::-;53072:228;;;53110:11;53127:2;-1:-1:-1;;;;;53127:7:0;53142:6;53127:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;53109:44;;;53180:6;53172:41;;;;-1:-1:-1;;;53172:41:0;;10025:2:1;53172:41:0;;;10007:21:1;10064:2;10044:18;;;10037:30;-1:-1:-1;;;10083:18:1;;;10076:52;10145:18;;53172:41:0;9823:346:1;53172:41:0;53090:139;52910:408;;;:::o;53072:228::-;53254:30;-1:-1:-1;;;;;53254:18:0;;53273:2;53277:6;53254:18;:30::i;:::-;52910:408;;;:::o;17823:97::-;14144:13;;;;;;;14136:69;;;;-1:-1:-1;;;14136:69:0;;;;;;;:::i;:::-;17886:26:::1;:24;:26::i;40276:99::-:0;14144:13;;;;;;;14136:69;;;;-1:-1:-1;;;14136:69:0;;;;;;;:::i;:::-;40340:27:::1;:25;:27::i;41702:118::-:0;40711:19;:17;:19::i;:::-;41762:7:::1;:14:::0;;-1:-1:-1;;41762:14:0::1;41772:4;41762:14;::::0;;41792:20:::1;41799:12;16400:10:::0;;16320:98;41799:12:::1;41792:20;::::0;-1:-1:-1;;;;;566:32:1;;;548:51;;536:2;521:18;41792:20:0::1;;;;;;;41702:118::o:0;41265:108::-;41177:7;;;;41335:9;41327:38;;;;-1:-1:-1;;;41327:38:0;;10788:2:1;41327:38:0;;;10770:21:1;10827:2;10807:18;;;10800:30;-1:-1:-1;;;10846:18:1;;;10839:46;10902:18;;41327:38:0;10586:340:1;54132:248:0;54184:4;-1:-1:-1;;;;;54221:38:0;;52760:42;54221:38;;:95;;-1:-1:-1;;;;;;54276:40:0;;52858:42;54276:40;54221:95;:151;;;-1:-1:-1;;;;;;;54333:39:0;;;54132:248::o;65851:226::-;65957:37;65973:5;65981:6;;65989:4;65957:7;:37::i;:::-;65952:118;;66011:47;-1:-1:-1;;;;;66011:22:0;;66034:10;66046:3;66051:6;66011:22;:47::i;:::-;65851:226;;;;;:::o;53884:240::-;53966:7;53990:12;53996:5;53990;:12::i;:::-;53986:131;;;-1:-1:-1;;;;;;54026:15:0;;;54019:22;;53986:131;54081:24;;-1:-1:-1;;;54081:24:0;;-1:-1:-1;;;;;566:32:1;;;54081:24:0;;;548:51:1;54081:15:0;;;;;521:18:1;;54081:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;54074:31;53884:240;-1:-1:-1;;;53884:240:0:o;48651:98::-;48709:7;48736:5;48740:1;48736;:5;:::i;48270:98::-;48328:7;48355:5;48359:1;48355;:5;:::i;49008:98::-;49066:7;49093:5;49097:1;49093;:5;:::i;65306:537::-;65612:8;-1:-1:-1;;;;;65542:293:0;65589:8;-1:-1:-1;;;;;65542:293:0;65564:10;-1:-1:-1;;;;;65542:293:0;;65635:11;65661:4;:11;;;65687;65713:12;65740:4;:20;;;65775:4;:21;;;65811:4;:13;;;;;;;;;;:::i;:::-;65542:293;;;-1:-1:-1;;;;;11927:15:1;;;11909:34;;11974:2;11959:18;;11952:34;;;;12002:18;;11995:34;;;;12060:2;12045:18;;12038:34;;;;12103:3;12088:19;;12081:35;11889:3;12132:19;;12125:35;12197:15;;;12191:3;12176:19;;12169:44;11858:3;11843:19;65542:293:0;;;;;;;65306:537;;;;;;:::o;60846:896::-;60936:13;60962:773;61016:7;;61007:42;;-1:-1:-1;;;61007:42:0;;-1:-1:-1;;;;;12416:32:1;;;61007:42:0;;;12398:51:1;-1:-1:-1;;;;;12485:32:1;;12465:18;;;12458:60;60990:14:0;;61016:7;;61007:29;;12371:18:1;;61007:42:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;60990:59;;-1:-1:-1;;61125:6:0;:27;61121:176;;;61222:6;;;:::i;:::-;;;61253:1;61247:7;;61273:8;;;61121:176;61315:8;;;;61311:180;;61462:13;;;;61311:180;61566:6;61575:1;61566:10;61580:1;61566:15;61559:103;;;61621:1;61611:11;61641:5;;;:::i;:::-;;;61559:103;;;-1:-1:-1;;62297:12:0;;;-1:-1:-1;;62211:1:0;62194:18;;;;62297:12;60846:896;;;;;:::o;35427:211::-;35571:58;;-1:-1:-1;;;;;12721:32:1;;35571:58:0;;;12703:51:1;12770:18;;;12763:34;;;35544:86:0;;35564:5;;-1:-1:-1;;;35594:23:0;12676:18:1;;35571:58:0;;;;-1:-1:-1;;35571:58:0;;;;;;;;;;;;;;-1:-1:-1;;;;;35571:58:0;-1:-1:-1;;;;;;35571:58:0;;;;;;;;;;35544:19;:86::i;17928:113::-;14144:13;;;;;;;14136:69;;;;-1:-1:-1;;;14136:69:0;;;;;;;:::i;:::-;18001:32:::1;16400:10:::0;18001:18:::1;:32::i;40383:97::-:0;14144:13;;;;;;;14136:69;;;;-1:-1:-1;;;14136:69:0;;;;;;;:::i;:::-;40457:7:::1;:15:::0;;-1:-1:-1;;40457:15:0::1;::::0;;40383:97::o;57697:423::-;57782:4;57803:17;;57799:291;;57858:6;57841:23;;;:50;;-1:-1:-1;57885:6:0;57868:23;;57841:50;57837:242;;;57912:22;57920:5;57927:6;;57912:7;:22::i;:::-;;;57960:5;57953:12;;;;57837:242;57991:5;57987:92;;;58017:16;58026:6;;58017:8;:16::i;:::-;;;58059:4;58052:11;;;;57987:92;-1:-1:-1;58107:5:0;57697:423;;;;;;;:::o;35646:248::-;35817:68;;-1:-1:-1;;;;;13066:15:1;;;35817:68:0;;;13048:34:1;13118:15;;13098:18;;;13091:43;13150:18;;;13143:34;;;35790:96:0;;35810:5;;-1:-1:-1;;;35840:27:0;12983:18:1;;35817:68:0;12808:375:1;38494:716:0;38918:23;38944:69;38972:4;38944:69;;;;;;;;;;;;;;;;;38952:5;-1:-1:-1;;;;;38944:27:0;;;:69;;;;;:::i;:::-;39028:17;;38918:95;;-1:-1:-1;39028:21:0;39024:179;;39125:10;39114:30;;;;;;;;;;;;:::i;:::-;39106:85;;;;-1:-1:-1;;;39106:85:0;;13672:2:1;39106:85:0;;;13654:21:1;13711:2;13691:18;;;13684:30;13750:34;13730:18;;;13723:62;-1:-1:-1;;;13801:18:1;;;13794:40;13851:19;;39106:85:0;13470:406:1;58286:655:0;58358:12;58372:19;58425:6;58408:23;;58404:420;;;58543:54;;-1:-1:-1;;;;;58532:10:0;;;58543:54;;-1:-1:-1;;;58560:28:0;58590:6;;;;58543:54;;;:::i;:::-;;;;-1:-1:-1;;58543:54:0;;;;;;;;;;58532:66;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;58512:86:0;;-1:-1:-1;58512:86:0;-1:-1:-1;58404:420:0;;;58637:6;58620:23;;58616:208;;;58755:56;;-1:-1:-1;;;;;58744:10:0;;;58755:56;;-1:-1:-1;;;58772:30:0;58804:6;;;;58755:56;;;:::i;:::-;;;;-1:-1:-1;;58755:56:0;;;;;;;;;;58744:68;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;58724:88:0;;-1:-1:-1;58724:88:0;-1:-1:-1;58616:208:0;58839:7;58834:100;;58870:51;58895:6;58870:51;;;;;;;;;;;;;-1:-1:-1;;;58870:51:0;;;:24;:51::i;:::-;58863:59;;-1:-1:-1;;;58863:59:0;;;;;;;;:::i;58834:100::-;58286:655;;;;;;:::o;58949:409::-;59134:7;;59147:62;;59008:12;;59022:19;;-1:-1:-1;;;;;59134:7:0;;;;59147:62;;-1:-1:-1;;;59164:36:0;59202:6;;;;59147:62;;;:::i;:::-;;;;-1:-1:-1;;59147:62:0;;;;;;;;;;59134:76;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;59114:96:0;;-1:-1:-1;59114:96:0;-1:-1:-1;59114:96:0;59250:101;;59286:52;59311:6;59286:52;;;;;;;;;;;;;-1:-1:-1;;;59286:52:0;;;:24;:52::i;59250:101::-;58949:409;;;;;:::o;29277:229::-;29414:12;29446:52;29468:6;29476:4;29482:1;29485:12;29446:21;:52::i;42897:1893::-;42976:13;43261:2;43246:4;:11;:17;;:38;;;;;43267:4;43272:1;43267:7;;;;;;;;:::i;:::-;;;;;;-1:-1:-1;;;;;;43267:7:0;-1:-1:-1;;;43267:17:0;43246:38;:59;;;;;43288:4;43293:1;43288:7;;;;;;;;:::i;:::-;;;;;;-1:-1:-1;;;;;;43288:7:0;-1:-1:-1;;;43288:17:0;43246:59;:80;;;;;43309:4;43314:1;43309:7;;;;;;;;:::i;:::-;;;;;;-1:-1:-1;;;;;;43309:7:0;-1:-1:-1;;;43309:17:0;43246:80;:101;;;;;43330:4;43335:1;43330:7;;;;;;;;:::i;:::-;;;;;;-1:-1:-1;;;;;;43330:7:0;-1:-1:-1;;;43330:17:0;43246:101;43242:1476;;;43580:2;43570:13;;;44076:20;;43570:13;;44071:25;;44076:20;44071:25;:::i;:::-;44056:4;:11;:40;;44048:74;;;;-1:-1:-1;;;44048:74:0;;15518:2:1;44048:74:0;;;15500:21:1;15557:2;15537:18;;;15530:30;-1:-1:-1;;;15576:18:1;;;15569:51;15637:18;;44048:74:0;15316:345:1;44048:74:0;44168:6;44186;44151:47;;;;;;;;;:::i;:::-;;;;;;;;;;;;;44137:62;;;;;43242:1476;44293:4;:11;44308:2;44293:17;:38;;;;;44314:4;44319:1;44314:7;;;;;;;;:::i;:::-;;;;;;-1:-1:-1;;;;;;44314:7:0;-1:-1:-1;;;44314:17:0;44293:38;:59;;;;;44335:4;44340:1;44335:7;;;;;;;;:::i;:::-;;;;;;-1:-1:-1;;;;;;44335:7:0;-1:-1:-1;;;44335:17:0;44293:59;:80;;;;;44356:4;44361:1;44356:7;;;;;;;;:::i;:::-;;;;;;-1:-1:-1;;;;;;44356:7:0;-1:-1:-1;;;44356:17:0;44293:80;:101;;;;;44377:4;44382:1;44377:7;;;;;;;;:::i;:::-;;;;;;-1:-1:-1;;;;;;44377:7:0;-1:-1:-1;;;44377:17:0;44293:101;44289:429;;;44605:2;44595:13;;44589:20;44669:6;44687:12;44589:20;44687:6;:12::i;:::-;44652:53;;;;;;;;;:::i;44289:429::-;44761:6;44744:37;;;;;;;;:::i;:::-;;;;;;;;;;;;;44730:52;;42897:1893;;;;:::o;30397:455::-;30567:12;30625:5;30600:21;:30;;30592:81;;;;-1:-1:-1;;;30592:81:0;;17876:2:1;30592:81:0;;;17858:21:1;17915:2;17895:18;;;17888:30;17954:34;17934:18;;;17927:62;-1:-1:-1;;;18005:18:1;;;17998:36;18051:19;;30592:81:0;17674:402:1;30592:81:0;30685:12;30699:23;30726:6;-1:-1:-1;;;;;30726:11:0;30745:5;30752:4;30726:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30684:73;;;;30775:69;30802:6;30810:7;30819:10;30831:12;30775:26;:69::i;:::-;30768:76;30397:455;-1:-1:-1;;;;;;;30397:455:0:o;44798:125::-;44851:13;44884:31;44908:5;44891:23;;;;;;18210:19:1;;18254:2;18245:12;;18081:182;44891:23:0;;;;;;;;;;;;;44884:6;:31::i;32970:644::-;33155:12;33184:7;33180:427;;;33212:17;;33208:290;;-1:-1:-1;;;;;1664:19:0;;;33422:60;;;;-1:-1:-1;;;33422:60:0;;18470:2:1;33422:60:0;;;18452:21:1;18509:2;18489:18;;;18482:30;18548:31;18528:18;;;18521:59;18597:18;;33422:60:0;18268:353:1;33422:60:0;-1:-1:-1;33519:10:0;33512:17;;33180:427;33562:33;33570:10;33582:12;33562:7;:33::i;44931:456::-;45014:42;;;;;;;;;;;;-1:-1:-1;;;45014:42:0;;;;45100:11;;44988:13;;45014:42;:21;;45100:15;;45114:1;45100:15;:::i;:::-;45096:19;;:1;:19;:::i;:::-;45086:30;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;45086:30:0;;45067:49;;-1:-1:-1;;;45127:3:0;45131:1;45127:6;;;;;;;;:::i;:::-;;;;:12;-1:-1:-1;;;;;45127:12:0;;;;;;;;;-1:-1:-1;;;45150:3:0;45154:1;45150:6;;;;;;;;:::i;:::-;;;;:12;-1:-1:-1;;;;;45150:12:0;;;;;;;;;45178:9;45173:178;45197:4;:11;45193:1;:15;45173:178;;;45247:8;45273:1;45262:4;45267:1;45262:7;;;;;;;;:::i;:::-;;;;;45247:29;;-1:-1:-1;;;;;;45262:7:0;;;:12;;;:7;45256:19;;45247:29;;;;;;:::i;:::-;;;;;-1:-1:-1;;;;;;45247:29:0;45230:3;45234:5;45238:1;45234;:5;:::i;:::-;:9;;45242:1;45234:9;:::i;:::-;45230:14;;;;;;;;:::i;:::-;;;;:46;-1:-1:-1;;;;;45230:46:0;;;;;;;;;45308:8;45323:4;45328:1;45323:7;;;;;;;;:::i;:::-;;;;;;45308:31;;45323:7;;;;;45333:4;45317:21;;45308:31;;;;;;:::i;:::-;;;;;-1:-1:-1;;;;;;45308:31:0;45291:3;45295:5;45299:1;45295;:5;:::i;:::-;:9;;45303:1;45295:9;:::i;:::-;45291:14;;;;;;;;:::i;:::-;;;;:48;-1:-1:-1;;;;;45291:48:0;;;;;;;;-1:-1:-1;45210:3:0;;;;:::i;:::-;;;;45173:178;;;-1:-1:-1;45375:3:0;44931:456;-1:-1:-1;;;44931:456:0:o;34156:552::-;34317:17;;:21;34313:388;;34549:10;34543:17;34606:15;34593:10;34589:2;34585:19;34578:44;34313:388;34676:12;34669:20;;-1:-1:-1;;;34669:20:0;;;;;;;;:::i;14:131:1:-;-1:-1:-1;;;;;89:31:1;;79:42;;69:70;;135:1;132;125:12;150:247;209:6;262:2;250:9;241:7;237:23;233:32;230:52;;;278:1;275;268:12;230:52;317:9;304:23;336:31;361:5;336:31;:::i;802:329::-;884:6;892;945:2;933:9;924:7;920:23;916:32;913:52;;;961:1;958;951:12;913:52;1000:9;987:23;1019:31;1044:5;1019:31;:::i;:::-;1069:5;1121:2;1106:18;;;;1093:32;;-1:-1:-1;;;802:329:1:o;1318:1083::-;1517:6;1525;1533;1541;1594:2;1582:9;1573:7;1569:23;1565:32;1562:52;;;1610:1;1607;1600:12;1562:52;1649:9;1636:23;1668:31;1693:5;1668:31;:::i;:::-;1718:5;-1:-1:-1;1774:2:1;1759:18;;1746:32;1797:18;1827:14;;;1824:34;;;1854:1;1851;1844:12;1824:34;1877:22;;;;1933:3;1915:16;;;1911:26;1908:46;;;1950:1;1947;1940:12;1908:46;1973:2;;-1:-1:-1;2028:2:1;2013:18;;2000:32;;2044:16;;;2041:36;;;2073:1;2070;2063:12;2041:36;2111:8;2100:9;2096:24;2086:34;;2158:7;2151:4;2147:2;2143:13;2139:27;2129:55;;2180:1;2177;2170:12;2129:55;2220:2;2207:16;2246:2;2238:6;2235:14;2232:34;;;2262:1;2259;2252:12;2232:34;2315:7;2310:2;2300:6;2297:1;2293:14;2289:2;2285:23;2281:32;2278:45;2275:65;;;2336:1;2333;2326:12;2275:65;1318:1083;;;;-1:-1:-1;;2367:2:1;2359:11;;-1:-1:-1;;;1318:1083:1:o;3522:184::-;3592:6;3645:2;3633:9;3624:7;3620:23;3616:32;3613:52;;;3661:1;3658;3651:12;3613:52;-1:-1:-1;3684:16:1;;3522:184;-1:-1:-1;3522:184:1:o;5376:521::-;5453:4;5459:6;5519:11;5506:25;5613:2;5609:7;5598:8;5582:14;5578:29;5574:43;5554:18;5550:68;5540:96;;5632:1;5629;5622:12;5540:96;5659:33;;5711:20;;;-1:-1:-1;5754:18:1;5743:30;;5740:50;;;5786:1;5783;5776:12;5740:50;5819:4;5807:17;;-1:-1:-1;5850:14:1;5846:27;;;5836:38;;5833:58;;;5887:1;5884;5877:12;5902:266;5990:6;5985:3;5978:19;6042:6;6035:5;6028:4;6023:3;6019:14;6006:43;-1:-1:-1;6094:1:1;6069:16;;;6087:4;6065:27;;;6058:38;;;;6150:2;6129:15;;;-1:-1:-1;;6125:29:1;6116:39;;;6112:50;;5902:266::o;6173:1783::-;6422:2;6474:21;;;6447:18;;;6530:22;;;6393:4;;6571:2;6589:18;;;6653:1;6649:14;;;6634:30;;6630:39;;6692:6;6393:4;6726:1201;6740:6;6737:1;6734:13;6726:1201;;;6805:22;;;-1:-1:-1;;6801:36:1;6789:49;;6877:20;;6952:14;6948:27;;;-1:-1:-1;;6944:42:1;6920:67;;6910:95;;7001:1;6998;6991:12;6910:95;7031:31;;7117:19;;7102:35;;7187:14;;;7174:28;7157:15;;;7150:53;7253:14;;;7240:28;7223:15;;;7216:53;7085:4;7292;7350:14;;;7337:28;7422:14;7418:26;;;-1:-1:-1;;7414:40:1;7388:67;;7378:95;;7469:1;7466;7459:12;7378:95;7501:32;;7560:21;;7608:18;7597:30;;7594:50;;;7640:1;7637;7630:12;7594:50;7691:6;7675:14;7671:27;7664:5;7660:39;7657:59;;;7712:1;7709;7702:12;7657:59;7753:2;7748;7740:6;7736:15;7729:27;7779:68;7843:2;7835:6;7831:15;7823:6;7818:2;7809:7;7805:16;7779:68;:::i;:::-;7905:12;;;;7769:78;-1:-1:-1;;;7870:15:1;;;;-1:-1:-1;;;6762:1:1;6755:9;6726:1201;;;-1:-1:-1;7944:6:1;;6173:1783;-1:-1:-1;;;;;;;;6173:1783:1:o;8317:127::-;8378:10;8373:3;8369:20;8366:1;8359:31;8409:4;8406:1;8399:15;8433:4;8430:1;8423:15;8449:211;8488:3;-1:-1:-1;;;;;8559:14:1;;;8585:15;;;8582:41;;;8603:18;;:::i;:::-;8652:1;8639:15;;8449:211;-1:-1:-1;;;8449:211:1:o;8665:175::-;8702:3;8746:4;8739:5;8735:16;8775:4;8766:7;8763:17;8760:43;;;8783:18;;:::i;:::-;8832:1;8819:15;;8665:175;-1:-1:-1;;8665:175:1:o;10174:407::-;10376:2;10358:21;;;10415:2;10395:18;;;10388:30;10454:34;10449:2;10434:18;;10427:62;-1:-1:-1;;;10520:2:1;10505:18;;10498:41;10571:3;10556:19;;10174:407::o;11120:125::-;11160:4;11188:1;11185;11182:8;11179:34;;;11193:18;;:::i;:::-;-1:-1:-1;11230:9:1;;11120:125::o;11250:128::-;11290:3;11321:1;11317:6;11314:1;11311:13;11308:39;;;11327:18;;:::i;:::-;-1:-1:-1;11363:9:1;;11250:128::o;11383:168::-;11423:7;11489:1;11485;11481:6;11477:14;11474:1;11471:21;11466:1;11459:9;11452:17;11448:45;11445:71;;;11496:18;;:::i;:::-;-1:-1:-1;11536:9:1;;11383:168::o;13188:277::-;13255:6;13308:2;13296:9;13287:7;13283:23;13279:32;13276:52;;;13324:1;13321;13314:12;13276:52;13356:9;13350:16;13409:5;13402:13;13395:21;13388:5;13385:32;13375:60;;13431:1;13428;13421:12;13881:368;-1:-1:-1;;;;;;14076:33:1;;14064:46;;14153:6;14145;14141:1;14132:11;;14119:41;14046:3;14183:16;;14201:1;14179:24;14212:13;;;14179:24;13881:368;-1:-1:-1;;13881:368:1:o;14254:258::-;14326:1;14336:113;14350:6;14347:1;14344:13;14336:113;;;14426:11;;;14420:18;14407:11;;;14400:39;14372:2;14365:10;14336:113;;;14467:6;14464:1;14461:13;14458:48;;;-1:-1:-1;;14502:1:1;14484:16;;14477:27;14254:258::o;14517:274::-;14646:3;14684:6;14678:13;14700:53;14746:6;14741:3;14734:4;14726:6;14722:17;14700:53;:::i;:::-;14769:16;;;;;14517:274;-1:-1:-1;;14517:274:1:o;14796:383::-;14945:2;14934:9;14927:21;14908:4;14977:6;14971:13;15020:6;15015:2;15004:9;15000:18;14993:34;15036:66;15095:6;15090:2;15079:9;15075:18;15070:2;15062:6;15058:15;15036:66;:::i;:::-;15163:2;15142:15;-1:-1:-1;;15138:29:1;15123:45;;;;15170:2;15119:54;;14796:383;-1:-1:-1;;14796:383:1:o;15184:127::-;15245:10;15240:3;15236:20;15233:1;15226:31;15276:4;15273:1;15266:15;15300:4;15297:1;15290:15;15666:773;16047:3;16085:6;16079:13;16101:53;16147:6;16142:3;16135:4;16127:6;16123:17;16101:53;:::i;:::-;-1:-1:-1;;;16176:16:1;;;16201:23;;;16249:13;;16271:65;16249:13;16323:1;16312:13;;16305:4;16293:17;;16271:65;:::i;:::-;-1:-1:-1;;;16399:1:1;16355:20;;;;16391:10;;;16384:23;16431:1;16423:10;;15666:773;-1:-1:-1;;;;15666:773:1:o;16444:::-;16825:3;16863:6;16857:13;16879:53;16925:6;16920:3;16913:4;16905:6;16901:17;16879:53;:::i;:::-;-1:-1:-1;;;16954:16:1;;;16979:23;;;17027:13;;17049:65;17027:13;17101:1;17090:13;;17083:4;17071:17;;17049:65;:::i;17222:447::-;17454:3;17492:6;17486:13;17508:53;17554:6;17549:3;17542:4;17534:6;17530:17;17508:53;:::i;:::-;-1:-1:-1;;;17583:16:1;;17608:26;;;-1:-1:-1;17661:1:1;17650:13;;17222:447;-1:-1:-1;17222:447:1:o;18626:127::-;18687:10;18682:3;18678:20;18675:1;18668:31;18718:4;18715:1;18708:15;18742:4;18739:1;18732:15;18758:135;18797:3;-1:-1:-1;;18818:17:1;;18815:43;;;18838:18;;:::i;:::-;-1:-1:-1;18885:1:1;18874:13;;18758:135::o
Swarm Source
ipfs://dacba74a1628d8c250721b1e4f919e4a13574dd1b13744b4c068cb54d434b3b0
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.