Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
PoolFactory
Compiler Version
v0.8.11+commit.d7f03943
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: No License /** * @title Vendor Factory Contract * @author 0xTaiga * The legend says that you'r pipi shrinks and boobs get saggy if you fork this contract. */ pragma solidity ^0.8.11; import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; import "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol"; import "@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol"; import "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol"; import "./interfaces/ILendingPool.sol"; import "./interfaces/ILicenseEngine.sol"; import "./interfaces/IFeesManager.sol"; import "./interfaces/IErrors.sol"; contract PoolFactory is IErrors, Initializable, UUPSUpgradeable, PausableUpgradeable, IStructs { /* ========== EVENTS ========== */ event DeployPool( address _poolAddress, address _deployer, uint256 _mintRatio, address _colToken, address _lendToken, uint48 _protocolFee, uint48 _protocolColFee, uint48 _expiry, address[] _borrowers ); /* ========== CONSTANT VARIABLES ========== */ uint256 private constant HUNDRED_PERCENT = 100_0000; /* ========== STATE VARIABLES ========== */ IFeesManager public feesManager; address public poolImplementationAddress; // Current pool implementation address public rollBackImplementation; // The previous pool implementation. Required due to the way LendingPool UUPS upgrades. address public oracle; ILicenseEngine public licenseEngine; address public treasury; uint48 public protocolFee; // 1% = 1000000 Rate that we charge the lenders profits uint48 public protocolColFee; // Percent of defaulted collateral we take from the lenders pool mapping(address => bool) public allowList; // List of tokens allowed to be used in the pool mapping(address => bool) public pools; mapping(address => bool) public pausedPools; bool public allowUpgrade; bool public fullStop; address public firstResponder; address public owner; address private _grantedOwner; /// @custom:oz-upgrades-unsafe-allow constructor constructor() { _disableInitializers(); } /// @notice Initialize the factory /// @param _implementation Implementation of the lending pool /// @param _oracle Oracle address that will be referenced by pools when deciding on whether to allow borrowing. /// @param _feesManager Address of contract that calculates pool fees /// @param _licenseEngine Address of the contract that manages the licenses and discounts /// @param _protocolFee Fee that vendor will take of interest made and defaulted collateral. // Subject to be split in 2 different fees /// @param _treasury Vendor fees will be sent to this address /// @param _allowList Tokens that can be used in new pools. function initialize( address _implementation, address _oracle, address _licenseEngine, address _feesManager, uint48 _protocolFee, uint48 _protocolColFee, address _treasury, address[] calldata _allowList, address _firstResponder ) external initializer { __UUPSUpgradeable_init(); __Pausable_init(); if ( _implementation == address(0) || _oracle == address(0) || _licenseEngine == address(0) || _feesManager == address(0) || _treasury == address(0) || _firstResponder == address(0) ) revert ZeroAddress(); owner = msg.sender; poolImplementationAddress = _implementation; rollBackImplementation = _implementation; oracle = _oracle; licenseEngine = ILicenseEngine(_licenseEngine); feesManager = IFeesManager(_feesManager); protocolFee = _protocolFee; protocolColFee = _protocolColFee; treasury = _treasury; firstResponder = _firstResponder; for (uint256 i = 0; i < _allowList.length; ++i) { allowList[_allowList[i]] = true; } } /// @notice Deploy a new lending pool as a minimal proxy /// @param _mintRatio Mint ratio for the pool. See docs for more info /// @param _colToken Collateral token /// @param _lendToken Token that will be lent out /// @param _feeRate Interest that will be due on expiry by borrowers. /// @param _type Type of interest rate charged by the lender /// @param _expiry Pool's expiration date /// @return Address of the new pool function deployPool( uint256 _mintRatio, address _colToken, address _lendToken, uint48 _feeRate, uint256 _type, uint48 _expiry, address[] calldata _borrowers, uint256 _undercollateralized, uint256 _licenseId ) external whenNotPaused returns (address) { if (!allowList[_lendToken]) revert LendTokenNotSupported(); if (!allowList[_colToken]) revert ColTokenNotSupported(); if (_colToken == _lendToken) revert InvalidTokenPair(); if (_mintRatio == 0) revert MintRatio0(); if (_expiry < block.timestamp + 24 hours) revert InvalidExpiry(); if (_feeRate > HUNDRED_PERCENT) revert FeeTooLarge(); if (_undercollateralized < 0 || _undercollateralized > 1) revert InvalidType(); return _initializePool( UserPoolData( _mintRatio, _colToken, _lendToken, _feeRate, _type, _expiry, _borrowers, _undercollateralized, _licenseId ) ); } /// @notice Internal logic for pool deployment /// @dev UserPoolData is added to bypass the stack limit requirement /// @param poolData All of the user supplied parameters /// @return Address of the new pool function _initializePool(UserPoolData memory poolData) private returns (address) { address lendingPool = address( new ERC1967Proxy(poolImplementationAddress, "") ); (uint48 discountValue, uint48 discountColValue) = licenseDiscount( poolData._licenseId ); uint48 hundredPercent = uint48(HUNDRED_PERCENT); ILendingPool(lendingPool).initialize( Data( msg.sender, poolData._mintRatio, poolData._colToken, poolData._lendToken, poolData._expiry, poolData._borrowers, (protocolFee * (hundredPercent - discountValue)) / hundredPercent, (protocolColFee * (hundredPercent - discountColValue)) / hundredPercent, address(feesManager), oracle, address(this), poolData._undercollateralized ) ); // This emit should come before setting the fee for the graph purposes. emit DeployPool( lendingPool, msg.sender, poolData._mintRatio, poolData._colToken, poolData._lendToken, (protocolFee * (hundredPercent - discountValue)) / hundredPercent, (protocolColFee * (hundredPercent - discountColValue)) / hundredPercent, poolData._expiry, poolData._borrowers ); pools[lendingPool] = true; // Register the pool before setting the fee, since FeeManager is checking if pool created by Factory feesManager.setPoolFees(lendingPool, poolData._feeRate, poolData._type); return lendingPool; } /* ========== SETTERS ========== */ /// @notice Update the lending pool implementation address function setImplementation(address _implementation) external { onlyOwner(); rollBackImplementation = poolImplementationAddress; poolImplementationAddress = _implementation; } /// @notice Update the lending pool downgrade implementation address function setRollbackImplementation(address _implementation) external { onlyOwner(); rollBackImplementation = _implementation; } /// @notice Update the oracle address function setOracle(address _oracle) external { onlyOwner(); oracle = _oracle; } /// @notice Update treasury address function setTreasury(address _treasury) external { onlyOwner(); treasury = _treasury; } /// @notice Update treasury address function setFeesManager(address _feesManager) external { onlyOwner(); feesManager = IFeesManager(_feesManager); } /// @notice Update treasury address function setLicenseEngine(address _licenseEngine) external { onlyOwner(); licenseEngine = ILicenseEngine(_licenseEngine); } /// @notice Update VENDOR fee function setProtocolFee(uint48 _protocolFee) external { onlyOwner(); protocolFee = _protocolFee; } /// @notice Add or remove collateral from the allow list function setCollateralAllowList(address _col, bool _allowed) public { onlyOwner(); allowList[_col] = _allowed; } /// @notice Update the first responder function setFirstResponder(address _newResponder) external { onlyOwner(); firstResponder = _newResponder; } /* ========== UTILITY ========== */ ///@notice Pause the factory contract function setPause(bool _paused) public { onlyOwnerORFirstResponder(); if (_paused) { _pause(); } else { _unpause(); } } /// @notice This function will now accept the license id that pool deployer has provided and will validate it. /// @dev If license is valid and has a valid discount associated with it, then such discount will be returned. /// @param _licenseId Id of the license /// @return Discount amounts for a given license (lendDiscount, colDiscount) as percents function licenseDiscount(uint256 _licenseId) private returns (uint48, uint48) { if ( !licenseEngine.exists(_licenseId) || msg.sender != licenseEngine.ownerOf(_licenseId) ) { return (0, 0); } else { ( uint256 maxCount, uint256 curCount, uint48 discount, uint48 colDiscount, uint48 expiry ) = licenseEngine.licenses(_licenseId); if (block.timestamp < expiry && curCount + 1 <= maxCount) { if (discount > HUNDRED_PERCENT || colDiscount > HUNDRED_PERCENT) revert DiscountTooLarge(); licenseEngine.incrementCurrentPoolCount(_licenseId); return (discount, colDiscount); } } return (0, 0); } ///@notice Pause/unpause all of the pools deployed by this factory function setFullStop(bool _paused) external { onlyOwnerORFirstResponder(); fullStop = _paused; } ///@notice Pause/unpause a specific pool deployed by this factory function setPoolStop(address _pool, bool _paused) external { onlyOwnerORFirstResponder(); pausedPools[_pool] = _paused; } ///@notice Check if specific pool is paused by Vendor function isPaused(address _pool) external view returns (bool) { return fullStop || pausedPools[_pool]; } ///@notice First step in a process of changing the owner function grantOwnership(address newOwner) public virtual { onlyOwner(); _grantedOwner = newOwner; } ///@notice Second step in a process of changing the owner function claimOwnership() public virtual { if (_grantedOwner != msg.sender) revert NotGranted(); owner = _grantedOwner; _grantedOwner = address(0); } /* ========== MODIFIERS ========== */ ///@notice Owner of the factory (Vendor) function onlyOwner() private view { if (msg.sender != owner) revert NotOwner(); } ///@notice Owner or first responder, just in case we have access to one of them faster function onlyOwnerORFirstResponder() private view { if (msg.sender != firstResponder && msg.sender != owner) revert NotAuthorized(); } /* ========== UPGRADES ========== */ ///@notice Contract version for history ///@return Contract version function version() external pure returns (uint256) { return 1; } ///@notice Allows lenders to update the implementation of their pools or extend expiry function setAllowUpgrade(bool _allowed) external { onlyOwner(); allowUpgrade = _allowed; } ///@notice Pre-upgrade checks function _authorizeUpgrade(address newImplementation) internal override whenNotPaused { onlyOwner(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol) pragma solidity ^0.8.0; /** * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified * proxy whose upgrades are fully controlled by the current implementation. */ interface IERC1822ProxiableUpgradeable { /** * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation * address. * * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this * function revert if invoked through a proxy. */ function proxiableUUID() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol) pragma solidity ^0.8.0; /** * @dev This is the interface that {BeaconProxy} expects of its beacon. */ interface IBeaconUpgradeable { /** * @dev Must return an address that can be used as a delegate call target. * * {BeaconProxy} will check that this address is a contract. */ function implementation() external view returns (address); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (proxy/ERC1967/ERC1967Upgrade.sol) pragma solidity ^0.8.2; import "../beacon/IBeaconUpgradeable.sol"; import "../../interfaces/draft-IERC1822Upgradeable.sol"; import "../../utils/AddressUpgradeable.sol"; import "../../utils/StorageSlotUpgradeable.sol"; import "../utils/Initializable.sol"; /** * @dev This abstract contract provides getters and event emitting update functions for * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots. * * _Available since v4.1._ * * @custom:oz-upgrades-unsafe-allow delegatecall */ abstract contract ERC1967UpgradeUpgradeable is Initializable { function __ERC1967Upgrade_init() internal onlyInitializing { } function __ERC1967Upgrade_init_unchained() internal onlyInitializing { } // This is the keccak-256 hash of "eip1967.proxy.rollback" subtracted by 1 bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143; /** * @dev Storage slot with the address of the current implementation. * This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is * validated in the constructor. */ bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; /** * @dev Emitted when the implementation is upgraded. */ event Upgraded(address indexed implementation); /** * @dev Returns the current implementation address. */ function _getImplementation() internal view returns (address) { return StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value; } /** * @dev Stores a new address in the EIP1967 implementation slot. */ function _setImplementation(address newImplementation) private { require(AddressUpgradeable.isContract(newImplementation), "ERC1967: new implementation is not a contract"); StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; } /** * @dev Perform implementation upgrade * * Emits an {Upgraded} event. */ function _upgradeTo(address newImplementation) internal { _setImplementation(newImplementation); emit Upgraded(newImplementation); } /** * @dev Perform implementation upgrade with additional setup call. * * Emits an {Upgraded} event. */ function _upgradeToAndCall( address newImplementation, bytes memory data, bool forceCall ) internal { _upgradeTo(newImplementation); if (data.length > 0 || forceCall) { _functionDelegateCall(newImplementation, data); } } /** * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call. * * Emits an {Upgraded} event. */ function _upgradeToAndCallUUPS( address newImplementation, bytes memory data, bool forceCall ) internal { // Upgrades from old implementations will perform a rollback test. This test requires the new // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing // this special case will break upgrade paths from old UUPS implementation to new ones. if (StorageSlotUpgradeable.getBooleanSlot(_ROLLBACK_SLOT).value) { _setImplementation(newImplementation); } else { try IERC1822ProxiableUpgradeable(newImplementation).proxiableUUID() returns (bytes32 slot) { require(slot == _IMPLEMENTATION_SLOT, "ERC1967Upgrade: unsupported proxiableUUID"); } catch { revert("ERC1967Upgrade: new implementation is not UUPS"); } _upgradeToAndCall(newImplementation, data, forceCall); } } /** * @dev Storage slot with the admin of the contract. * This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1, and is * validated in the constructor. */ bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103; /** * @dev Emitted when the admin account has changed. */ event AdminChanged(address previousAdmin, address newAdmin); /** * @dev Returns the current admin. */ function _getAdmin() internal view returns (address) { return StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value; } /** * @dev Stores a new address in the EIP1967 admin slot. */ function _setAdmin(address newAdmin) private { require(newAdmin != address(0), "ERC1967: new admin is the zero address"); StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value = newAdmin; } /** * @dev Changes the admin of the proxy. * * Emits an {AdminChanged} event. */ function _changeAdmin(address newAdmin) internal { emit AdminChanged(_getAdmin(), newAdmin); _setAdmin(newAdmin); } /** * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy. * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor. */ bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50; /** * @dev Emitted when the beacon is upgraded. */ event BeaconUpgraded(address indexed beacon); /** * @dev Returns the current beacon. */ function _getBeacon() internal view returns (address) { return StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value; } /** * @dev Stores a new beacon in the EIP1967 beacon slot. */ function _setBeacon(address newBeacon) private { require(AddressUpgradeable.isContract(newBeacon), "ERC1967: new beacon is not a contract"); require( AddressUpgradeable.isContract(IBeaconUpgradeable(newBeacon).implementation()), "ERC1967: beacon implementation is not a contract" ); StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value = newBeacon; } /** * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that). * * Emits a {BeaconUpgraded} event. */ function _upgradeBeaconToAndCall( address newBeacon, bytes memory data, bool forceCall ) internal { _setBeacon(newBeacon); emit BeaconUpgraded(newBeacon); if (data.length > 0 || forceCall) { _functionDelegateCall(IBeaconUpgradeable(newBeacon).implementation(), data); } } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function _functionDelegateCall(address target, bytes memory data) private returns (bytes memory) { require(AddressUpgradeable.isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return AddressUpgradeable.verifyCallResult(success, returndata, "Address: low-level delegate call failed"); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (proxy/utils/Initializable.sol) pragma solidity ^0.8.2; import "../../utils/AddressUpgradeable.sol"; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in * case an upgrade adds a module that needs to be initialized. * * For example: * * [.hljs-theme-light.nopadding] * ``` * contract MyToken is ERC20Upgradeable { * function initialize() initializer public { * __ERC20_init("MyToken", "MTK"); * } * } * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable { * function initializeV2() reinitializer(2) public { * __ERC20Permit_init("MyToken"); * } * } * ``` * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() { * _disableInitializers(); * } * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. * @custom:oz-retyped-from bool */ uint8 private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Triggered when the contract has been initialized or reinitialized. */ event Initialized(uint8 version); /** * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope, * `onlyInitializing` functions can be used to initialize parent contracts. Equivalent to `reinitializer(1)`. */ modifier initializer() { bool isTopLevelCall = !_initializing; require( (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1), "Initializable: contract is already initialized" ); _initialized = 1; if (isTopLevelCall) { _initializing = true; } _; if (isTopLevelCall) { _initializing = false; emit Initialized(1); } } /** * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be * used to initialize parent contracts. * * `initializer` is equivalent to `reinitializer(1)`, so a reinitializer may be used after the original * initialization step. This is essential to configure modules that are added through upgrades and that require * initialization. * * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in * a contract, executing them in the right order is up to the developer or operator. */ modifier reinitializer(uint8 version) { require(!_initializing && _initialized < version, "Initializable: contract is already initialized"); _initialized = version; _initializing = true; _; _initializing = false; emit Initialized(version); } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} and {reinitializer} modifiers, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } /** * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call. * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized * to any version. It is recommended to use this to lock implementation contracts that are designed to be called * through proxies. */ function _disableInitializers() internal virtual { require(!_initializing, "Initializable: contract is initializing"); if (_initialized < type(uint8).max) { _initialized = type(uint8).max; emit Initialized(type(uint8).max); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (proxy/utils/UUPSUpgradeable.sol) pragma solidity ^0.8.0; import "../../interfaces/draft-IERC1822Upgradeable.sol"; import "../ERC1967/ERC1967UpgradeUpgradeable.sol"; import "./Initializable.sol"; /** * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy. * * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing * `UUPSUpgradeable` with a custom implementation of upgrades. * * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism. * * _Available since v4.1._ */ abstract contract UUPSUpgradeable is Initializable, IERC1822ProxiableUpgradeable, ERC1967UpgradeUpgradeable { function __UUPSUpgradeable_init() internal onlyInitializing { } function __UUPSUpgradeable_init_unchained() internal onlyInitializing { } /// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment address private immutable __self = address(this); /** * @dev Check that the execution is being performed through a delegatecall call and that the execution context is * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to * fail. */ modifier onlyProxy() { require(address(this) != __self, "Function must be called through delegatecall"); require(_getImplementation() == __self, "Function must be called through active proxy"); _; } /** * @dev Check that the execution is not being performed through a delegate call. This allows a function to be * callable on the implementing contract but not through proxies. */ modifier notDelegated() { require(address(this) == __self, "UUPSUpgradeable: must not be called through delegatecall"); _; } /** * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the * implementation. It is used to validate that the this implementation remains valid after an upgrade. * * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier. */ function proxiableUUID() external view virtual override notDelegated returns (bytes32) { return _IMPLEMENTATION_SLOT; } /** * @dev Upgrade the implementation of the proxy to `newImplementation`. * * Calls {_authorizeUpgrade}. * * Emits an {Upgraded} event. */ function upgradeTo(address newImplementation) external virtual onlyProxy { _authorizeUpgrade(newImplementation); _upgradeToAndCallUUPS(newImplementation, new bytes(0), false); } /** * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call * encoded in `data`. * * Calls {_authorizeUpgrade}. * * Emits an {Upgraded} event. */ function upgradeToAndCall(address newImplementation, bytes memory data) external payable virtual onlyProxy { _authorizeUpgrade(newImplementation); _upgradeToAndCallUUPS(newImplementation, data, true); } /** * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by * {upgradeTo} and {upgradeToAndCall}. * * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}. * * ```solidity * function _authorizeUpgrade(address) internal override onlyOwner {} * ``` */ function _authorizeUpgrade(address newImplementation) internal virtual; /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.sol"; /** * @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; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20Upgradeable.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20MetadataUpgradeable is IERC20Upgradeable { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20Upgradeable { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /** * @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; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/StorageSlot.sol) pragma solidity ^0.8.0; /** * @dev Library for reading and writing primitive types to specific storage slots. * * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts. * This library helps with reading and writing to such slots without the need for inline assembly. * * The functions in this library return Slot structs that contain a `value` member that can be used to read or write. * * Example usage to set ERC1967 implementation slot: * ``` * contract ERC1967 { * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; * * function _getImplementation() internal view returns (address) { * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value; * } * * function _setImplementation(address newImplementation) internal { * require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract"); * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; * } * } * ``` * * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._ */ library StorageSlotUpgradeable { struct AddressSlot { address value; } struct BooleanSlot { bool value; } struct Bytes32Slot { bytes32 value; } struct Uint256Slot { uint256 value; } /** * @dev Returns an `AddressSlot` with member `value` located at `slot`. */ function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `BooleanSlot` with member `value` located at `slot`. */ function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Bytes32Slot` with member `value` located at `slot`. */ function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Uint256Slot` with member `value` located at `slot`. */ function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol) pragma solidity ^0.8.0; /** * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified * proxy whose upgrades are fully controlled by the current implementation. */ interface IERC1822Proxiable { /** * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation * address. * * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this * function revert if invoked through a proxy. */ function proxiableUUID() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol) pragma solidity ^0.8.0; /** * @dev This is the interface that {BeaconProxy} expects of its beacon. */ interface IBeacon { /** * @dev Must return an address that can be used as a delegate call target. * * {BeaconProxy} will check that this address is a contract. */ function implementation() external view returns (address); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (proxy/ERC1967/ERC1967Proxy.sol) pragma solidity ^0.8.0; import "../Proxy.sol"; import "./ERC1967Upgrade.sol"; /** * @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an * implementation address that can be changed. This address is stored in storage in the location specified by * https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn't conflict with the storage layout of the * implementation behind the proxy. */ contract ERC1967Proxy is Proxy, ERC1967Upgrade { /** * @dev Initializes the upgradeable proxy with an initial implementation specified by `_logic`. * * If `_data` is nonempty, it's used as data in a delegate call to `_logic`. This will typically be an encoded * function call, and allows initializing the storage of the proxy like a Solidity constructor. */ constructor(address _logic, bytes memory _data) payable { _upgradeToAndCall(_logic, _data, false); } /** * @dev Returns the current implementation address. */ function _implementation() internal view virtual override returns (address impl) { return ERC1967Upgrade._getImplementation(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (proxy/ERC1967/ERC1967Upgrade.sol) pragma solidity ^0.8.2; import "../beacon/IBeacon.sol"; import "../../interfaces/draft-IERC1822.sol"; import "../../utils/Address.sol"; import "../../utils/StorageSlot.sol"; /** * @dev This abstract contract provides getters and event emitting update functions for * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots. * * _Available since v4.1._ * * @custom:oz-upgrades-unsafe-allow delegatecall */ abstract contract ERC1967Upgrade { // This is the keccak-256 hash of "eip1967.proxy.rollback" subtracted by 1 bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143; /** * @dev Storage slot with the address of the current implementation. * This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is * validated in the constructor. */ bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; /** * @dev Emitted when the implementation is upgraded. */ event Upgraded(address indexed implementation); /** * @dev Returns the current implementation address. */ function _getImplementation() internal view returns (address) { return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value; } /** * @dev Stores a new address in the EIP1967 implementation slot. */ function _setImplementation(address newImplementation) private { require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract"); StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; } /** * @dev Perform implementation upgrade * * Emits an {Upgraded} event. */ function _upgradeTo(address newImplementation) internal { _setImplementation(newImplementation); emit Upgraded(newImplementation); } /** * @dev Perform implementation upgrade with additional setup call. * * Emits an {Upgraded} event. */ function _upgradeToAndCall( address newImplementation, bytes memory data, bool forceCall ) internal { _upgradeTo(newImplementation); if (data.length > 0 || forceCall) { Address.functionDelegateCall(newImplementation, data); } } /** * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call. * * Emits an {Upgraded} event. */ function _upgradeToAndCallUUPS( address newImplementation, bytes memory data, bool forceCall ) internal { // Upgrades from old implementations will perform a rollback test. This test requires the new // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing // this special case will break upgrade paths from old UUPS implementation to new ones. if (StorageSlot.getBooleanSlot(_ROLLBACK_SLOT).value) { _setImplementation(newImplementation); } else { try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) { require(slot == _IMPLEMENTATION_SLOT, "ERC1967Upgrade: unsupported proxiableUUID"); } catch { revert("ERC1967Upgrade: new implementation is not UUPS"); } _upgradeToAndCall(newImplementation, data, forceCall); } } /** * @dev Storage slot with the admin of the contract. * This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1, and is * validated in the constructor. */ bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103; /** * @dev Emitted when the admin account has changed. */ event AdminChanged(address previousAdmin, address newAdmin); /** * @dev Returns the current admin. */ function _getAdmin() internal view returns (address) { return StorageSlot.getAddressSlot(_ADMIN_SLOT).value; } /** * @dev Stores a new address in the EIP1967 admin slot. */ function _setAdmin(address newAdmin) private { require(newAdmin != address(0), "ERC1967: new admin is the zero address"); StorageSlot.getAddressSlot(_ADMIN_SLOT).value = newAdmin; } /** * @dev Changes the admin of the proxy. * * Emits an {AdminChanged} event. */ function _changeAdmin(address newAdmin) internal { emit AdminChanged(_getAdmin(), newAdmin); _setAdmin(newAdmin); } /** * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy. * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor. */ bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50; /** * @dev Emitted when the beacon is upgraded. */ event BeaconUpgraded(address indexed beacon); /** * @dev Returns the current beacon. */ function _getBeacon() internal view returns (address) { return StorageSlot.getAddressSlot(_BEACON_SLOT).value; } /** * @dev Stores a new beacon in the EIP1967 beacon slot. */ function _setBeacon(address newBeacon) private { require(Address.isContract(newBeacon), "ERC1967: new beacon is not a contract"); require( Address.isContract(IBeacon(newBeacon).implementation()), "ERC1967: beacon implementation is not a contract" ); StorageSlot.getAddressSlot(_BEACON_SLOT).value = newBeacon; } /** * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that). * * Emits a {BeaconUpgraded} event. */ function _upgradeBeaconToAndCall( address newBeacon, bytes memory data, bool forceCall ) internal { _setBeacon(newBeacon); emit BeaconUpgraded(newBeacon); if (data.length > 0 || forceCall) { Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (proxy/Proxy.sol) pragma solidity ^0.8.0; /** * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to * be specified by overriding the virtual {_implementation} function. * * Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a * different contract through the {_delegate} function. * * The success and return data of the delegated call will be returned back to the caller of the proxy. */ abstract contract Proxy { /** * @dev Delegates the current call to `implementation`. * * This function does not return to its internal call site, it will return directly to the external caller. */ function _delegate(address implementation) internal virtual { assembly { // Copy msg.data. We take full control of memory in this inline assembly // block because it will not return to Solidity code. We overwrite the // Solidity scratch pad at memory position 0. calldatacopy(0, 0, calldatasize()) // Call the implementation. // out and outsize are 0 because we don't know the size yet. let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0) // Copy the returned data. returndatacopy(0, 0, returndatasize()) switch result // delegatecall returns 0 on error. case 0 { revert(0, returndatasize()) } default { return(0, returndatasize()) } } } /** * @dev This is a virtual function that should be overridden so it returns the address to which the fallback function * and {_fallback} should delegate. */ function _implementation() internal view virtual returns (address); /** * @dev Delegates the current call to the address returned by `_implementation()`. * * This function does not return to its internal call site, it will return directly to the external caller. */ function _fallback() internal virtual { _beforeFallback(); _delegate(_implementation()); } /** * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other * function in the contract matches the call data. */ fallback() external payable virtual { _fallback(); } /** * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if call data * is empty. */ receive() external payable virtual { _fallback(); } /** * @dev Hook that is called before falling back to the implementation. Can happen as part of a manual `_fallback` * call, or as part of the Solidity `fallback` or `receive` functions. * * If overridden should call `super._beforeFallback()`. */ function _beforeFallback() internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/StorageSlot.sol) pragma solidity ^0.8.0; /** * @dev Library for reading and writing primitive types to specific storage slots. * * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts. * This library helps with reading and writing to such slots without the need for inline assembly. * * The functions in this library return Slot structs that contain a `value` member that can be used to read or write. * * Example usage to set ERC1967 implementation slot: * ``` * contract ERC1967 { * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; * * function _getImplementation() internal view returns (address) { * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value; * } * * function _setImplementation(address newImplementation) internal { * require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract"); * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; * } * } * ``` * * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._ */ library StorageSlot { struct AddressSlot { address value; } struct BooleanSlot { bool value; } struct Bytes32Slot { bytes32 value; } struct Uint256Slot { uint256 value; } /** * @dev Returns an `AddressSlot` with member `value` located at `slot`. */ function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `BooleanSlot` with member `value` located at `slot`. */ function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Bytes32Slot` with member `value` located at `slot`. */ function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Uint256Slot` with member `value` located at `slot`. */ function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } }
// SPDX-License-Identifier: No License /** * @title Vendor Lending Pool Implementation * @author 0xTaiga * The legend says that you'r pipi shrinks and boobs get saggy if you fork this contract. */ pragma solidity ^0.8.11; interface IErrors { /* ========== ERRORS ========== */ /// @notice Error for if a mint ratio of 0 is passed in error MintRatio0(); /// @notice Error for if pool is closed error PoolClosed(); /// @notice Error for if pool is active error PoolActive(); /// @notice Error for if price is not valid ex: -1 error NotValidPrice(); /// @notice Error for if not enough liquidity in pool error NotEnoughLiquidity(); /// @notice Error for if balance is insufficient error InsufficientBalance(); /// @notice Error for if address is not a pool error NotAPool(); /// @notice Error for if address is different than lend token error DifferentLendToken(); /// @notice Error for if address is different than collateral token error DifferentColToken(); /// @notice Error for if owner addresses are different error DifferentPoolOwner(); /// @notice Error for if a user has no debt error NoDebt(); /// @notice Error for if user is trying to pay back more than the debt they have error DebtIsLess(); /// @notice Error for if balance is not validated error TransferFailed(); /// @notice Error for if user tries to interract with private pool error PrivatePool(); /// @notice Error for if operations of this pool or potetntially all pools is stopped. error OperationsPaused(); /// @notice Error for if lender paused borrowing. error BorrowingPaused(); /// @notice Error for if Oracle not set. error OracleNotSet(); /// @notice Error for if called by not owner error NotOwner(); /// @notice Error for if illegal upgrade implementation error IllegalImplementation(); /// @notice Error for if upgrades are not allowed at this time error UpgradeNotAllowed(); /// @notice Error for if expiry is wrong error InvalidExpiry(); /// @notice Error if the lender's fee is higher than what UI stated error FeeTooHigh(); /// @notice Error for if address is not the pool factory or the pool owner error NoPermission(); /// @notice Error for if array length is invalid error InvalidType(); /// @notice Error for when the address passed as an argument is a zero address error ZeroAddress(); /// @notice Error for if a mint id is not minted yet error LicenseNotFound(); /// @notice Error for if a discount is too high error InvalidDiscount(); ///@notice Error if not factory is trying to increment the amount of pools deployed by license error NotFactory(); /// @notice Error for if address is not supported as lend token error LendTokenNotSupported(); /// @notice Error for if address is not supported as collateral token error ColTokenNotSupported(); /// @notice Error for if discount coming from license engine is over 100% error DiscountTooLarge(); /// @notice Error for if lender fee is over 100% error FeeTooLarge(); /// @notice Error for when unauthorized user tries to pause the pools or factory error NotAuthorized(); /// @notice Error for when the address that was not granted the permissions is trying to claim the ownership error NotGranted(); /// @notice Error for when the pegs setting on contruction of the oracle failed dur to bad arguments error InvalidParameters(); /// @notice Error for when the token pair selected is not supported error InvalidTokenPair(); /// @notice Error for when chainlink sent the incorrect price error RoundIncomplete(); /// @notice Error for when chainlink sent the incorrect price error StaleAnswer(); /// @notice Error for when the feed address is already set and owner is trying to alter it error FeedAlreadySet(); /// @notice Error for when the pool is not whitelisted for rollover error PoolNotWhitelisted(); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.11; interface IFeesManager { function getFee(address _pool, uint256 _rawPayoutAmount) external view returns (uint256); function setPoolFees( address _pool, uint48 _feeRate, uint256 _type ) external; function getCurrentRate(address _pool) external view returns (uint48); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.11; import {IERC20MetadataUpgradeable as IERC20} from "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol"; import "./IStructs.sol"; interface ILendingPool is IStructs { struct UserReport { uint256 borrowAmount; // total borrowed in lend token uint256 colAmount; // total collateral borrowed uint256 totalFees; // total fees owed at the moment } event Borrow( address borrower, uint256 colDepositAmount, uint256 borrowAmount, uint48 currentFeeRate ); event RollOver(address pool, uint256 colRolled); event Collect(uint256 treasuryLend, uint256 treasuryCol, uint256 lenderLend, uint256 lenderCol); event BalanceChange(address token, bool incoming, uint256 amount); event Repay(address borrower, uint256 colReturned, uint256 repayAmount); event UpdateExpiry(uint48 newExpiry); event AddBorrower(address newBorrower); event Pause(uint256 disabled); function initialize(Data calldata data) external; function undercollateralized() external view returns (uint256); function mintRatio() external view returns (uint256); function lendToken() external view returns (IERC20); function colToken() external view returns (IERC20); function expiry() external view returns (uint48); function borrowOnBehalfOf( address _borrower, uint256 _colDepositAmount, uint256 _rate, uint256 _estimate ) external; function owner() external view returns (address); function isPrivate() external view returns (uint256); function borrowers(address borrower) external view returns (uint256); function disabledBorrow() external view returns (uint256); function collect() external; }
// SPDX-License-Identifier: No License /** * @title Vendor Factory Contract * @author 0xTaiga * The legend says that you'r pipi shrinks and boobs get saggy if you fork this contract. */ pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; interface ILicenseEngine is IERC721, IERC721Enumerable { struct LicenseInfo { uint256 maxPoolCount; // Maximum amount of pools that can be deployed with a license uint256 currentPoolCount; // Current amount of pools created with a license uint48 discount; // Discount on the amount paid to Vendor of interest made on lending uint48 colDiscount; // Discount on the amount paid to Vendor from collateral generated uint48 expiry; // Date when the license expires } function licenses(uint256 id) external view returns ( uint256 maxPoolCount, uint256 currentPoolCount, uint48 discount, uint48 colDiscount, uint48 expiry ); function incrementCurrentPoolCount(uint256 _lic) external; function exists(uint256 _tokenId) external view returns (bool); }
// SPDX-License-Identifier: No-License pragma solidity ^0.8.11; interface IStructs { struct Data { address deployer; uint256 mintRatio; address colToken; address lendToken; uint48 expiry; address[] borrowers; uint48 protocolFee; uint48 protocolColFee; address feesManager; address oracle; address factory; uint256 undercollateralized; } struct UserPoolData { uint256 _mintRatio; address _colToken; address _lendToken; uint48 _feeRate; uint256 _type; uint48 _expiry; address[] _borrowers; uint256 _undercollateralized; uint256 _licenseId; } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"BorrowingPaused","type":"error"},{"inputs":[],"name":"ColTokenNotSupported","type":"error"},{"inputs":[],"name":"DebtIsLess","type":"error"},{"inputs":[],"name":"DifferentColToken","type":"error"},{"inputs":[],"name":"DifferentLendToken","type":"error"},{"inputs":[],"name":"DifferentPoolOwner","type":"error"},{"inputs":[],"name":"DiscountTooLarge","type":"error"},{"inputs":[],"name":"FeeTooHigh","type":"error"},{"inputs":[],"name":"FeeTooLarge","type":"error"},{"inputs":[],"name":"FeedAlreadySet","type":"error"},{"inputs":[],"name":"IllegalImplementation","type":"error"},{"inputs":[],"name":"InsufficientBalance","type":"error"},{"inputs":[],"name":"InvalidDiscount","type":"error"},{"inputs":[],"name":"InvalidExpiry","type":"error"},{"inputs":[],"name":"InvalidParameters","type":"error"},{"inputs":[],"name":"InvalidTokenPair","type":"error"},{"inputs":[],"name":"InvalidType","type":"error"},{"inputs":[],"name":"LendTokenNotSupported","type":"error"},{"inputs":[],"name":"LicenseNotFound","type":"error"},{"inputs":[],"name":"MintRatio0","type":"error"},{"inputs":[],"name":"NoDebt","type":"error"},{"inputs":[],"name":"NoPermission","type":"error"},{"inputs":[],"name":"NotAPool","type":"error"},{"inputs":[],"name":"NotAuthorized","type":"error"},{"inputs":[],"name":"NotEnoughLiquidity","type":"error"},{"inputs":[],"name":"NotFactory","type":"error"},{"inputs":[],"name":"NotGranted","type":"error"},{"inputs":[],"name":"NotOwner","type":"error"},{"inputs":[],"name":"NotValidPrice","type":"error"},{"inputs":[],"name":"OperationsPaused","type":"error"},{"inputs":[],"name":"OracleNotSet","type":"error"},{"inputs":[],"name":"PoolActive","type":"error"},{"inputs":[],"name":"PoolClosed","type":"error"},{"inputs":[],"name":"PoolNotWhitelisted","type":"error"},{"inputs":[],"name":"PrivatePool","type":"error"},{"inputs":[],"name":"RoundIncomplete","type":"error"},{"inputs":[],"name":"StaleAnswer","type":"error"},{"inputs":[],"name":"TransferFailed","type":"error"},{"inputs":[],"name":"UpgradeNotAllowed","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beacon","type":"address"}],"name":"BeaconUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_poolAddress","type":"address"},{"indexed":false,"internalType":"address","name":"_deployer","type":"address"},{"indexed":false,"internalType":"uint256","name":"_mintRatio","type":"uint256"},{"indexed":false,"internalType":"address","name":"_colToken","type":"address"},{"indexed":false,"internalType":"address","name":"_lendToken","type":"address"},{"indexed":false,"internalType":"uint48","name":"_protocolFee","type":"uint48"},{"indexed":false,"internalType":"uint48","name":"_protocolColFee","type":"uint48"},{"indexed":false,"internalType":"uint48","name":"_expiry","type":"uint48"},{"indexed":false,"internalType":"address[]","name":"_borrowers","type":"address[]"}],"name":"DeployPool","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"allowList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allowUpgrade","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintRatio","type":"uint256"},{"internalType":"address","name":"_colToken","type":"address"},{"internalType":"address","name":"_lendToken","type":"address"},{"internalType":"uint48","name":"_feeRate","type":"uint48"},{"internalType":"uint256","name":"_type","type":"uint256"},{"internalType":"uint48","name":"_expiry","type":"uint48"},{"internalType":"address[]","name":"_borrowers","type":"address[]"},{"internalType":"uint256","name":"_undercollateralized","type":"uint256"},{"internalType":"uint256","name":"_licenseId","type":"uint256"}],"name":"deployPool","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feesManager","outputs":[{"internalType":"contract IFeesManager","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"firstResponder","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fullStop","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"grantOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_implementation","type":"address"},{"internalType":"address","name":"_oracle","type":"address"},{"internalType":"address","name":"_licenseEngine","type":"address"},{"internalType":"address","name":"_feesManager","type":"address"},{"internalType":"uint48","name":"_protocolFee","type":"uint48"},{"internalType":"uint48","name":"_protocolColFee","type":"uint48"},{"internalType":"address","name":"_treasury","type":"address"},{"internalType":"address[]","name":"_allowList","type":"address[]"},{"internalType":"address","name":"_firstResponder","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_pool","type":"address"}],"name":"isPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"licenseEngine","outputs":[{"internalType":"contract ILicenseEngine","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oracle","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"pausedPools","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolImplementationAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"pools","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"protocolColFee","outputs":[{"internalType":"uint48","name":"","type":"uint48"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"protocolFee","outputs":[{"internalType":"uint48","name":"","type":"uint48"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxiableUUID","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rollBackImplementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_allowed","type":"bool"}],"name":"setAllowUpgrade","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_col","type":"address"},{"internalType":"bool","name":"_allowed","type":"bool"}],"name":"setCollateralAllowList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feesManager","type":"address"}],"name":"setFeesManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newResponder","type":"address"}],"name":"setFirstResponder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_paused","type":"bool"}],"name":"setFullStop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_implementation","type":"address"}],"name":"setImplementation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_licenseEngine","type":"address"}],"name":"setLicenseEngine","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_oracle","type":"address"}],"name":"setOracle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_paused","type":"bool"}],"name":"setPause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_pool","type":"address"},{"internalType":"bool","name":"_paused","type":"bool"}],"name":"setPoolStop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint48","name":"_protocolFee","type":"uint48"}],"name":"setProtocolFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_implementation","type":"address"}],"name":"setRollbackImplementation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasury","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"}]
Contract Creation Code
60a06040523073ffffffffffffffffffffffffffffffffffffffff1660809073ffffffffffffffffffffffffffffffffffffffff168152503480156200004457600080fd5b50620000556200005b60201b60201c565b62000206565b600060019054906101000a900460ff1615620000ae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620000a590620001a9565b60405180910390fd5b60ff801660008054906101000a900460ff1660ff161015620001205760ff6000806101000a81548160ff021916908360ff1602179055507f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249860ff604051620001179190620001e9565b60405180910390a15b565b600082825260208201905092915050565b7f496e697469616c697a61626c653a20636f6e747261637420697320696e69746960008201527f616c697a696e6700000000000000000000000000000000000000000000000000602082015250565b60006200019160278362000122565b91506200019e8262000133565b604082019050919050565b60006020820190508181036000830152620001c48162000182565b9050919050565b600060ff82169050919050565b620001e381620001cb565b82525050565b6000602082019050620002006000830184620001d8565b92915050565b6080516153856200023e60003960008181610a9301528181610b2501528181610d5b01528181610ded0152610ea601526153856000f3fe6080604052600436106200025a5760003560e01c80637adbf973116200013f578063b0e21e8a11620000bb578063d784d4261162000079578063d784d42614620008b5578063d9da29e814620008e3578063e4210afa1462000911578063f0f442601462000941578063fccfe671146200096f576200025a565b8063b0e21e8a14620007b5578063b1e5552914620007e5578063b56106521462000813578063bedb86fb1462000843578063cdf04c071462000871576200025a565b806399d8db1b116200010957806399d8db1b14620006b7578063a4063dbc14620006e5578063acfd82f21462000729578063af2f4e101462000757578063b087f2e11462000787576200025a565b80637adbf97314620005fb5780637dc0d1d014620006295780638da5cb5b14620006595780638ed5a4991462000689576200025a565b806352d1902d11620001db5780635c975abb11620001995780635c975abb14620004f957806361d027b3146200052957806366891240146200055957806368e380ed14620005895780636f1b362014620005b7576200025a565b806352d1902d14620003f757806354fd4d501462000427578063589e0ac114620004575780635a1be79d14620004875780635b14f18314620004b5576200025a565b80632848aeaf11620002295780632848aeaf146200031d578063327407cb14620003615780633659cfe6146200038f5780634e71e0c814620003bd5780634f1ef28614620003d7576200025a565b806305a9e073146200025f57806315ef4ddc146200028f5780631c89382a14620002bf578063240ffeaf14620002ed575b600080fd5b3480156200026c57600080fd5b50620002776200099d565b60405162000286919062002fda565b60405180910390f35b3480156200029c57600080fd5b50620002a7620009c3565b604051620002b691906200301c565b60405180910390f35b348015620002cc57600080fd5b50620002eb6004803603810190620002e591906200307e565b620009e9565b005b348015620002fa57600080fd5b506200030562000a37565b604051620003149190620030cd565b60405180910390f35b3480156200032a57600080fd5b506200034960048036038101906200034391906200307e565b62000a4a565b604051620003589190620030cd565b60405180910390f35b3480156200036e57600080fd5b506200038d60048036038101906200038791906200311b565b62000a6a565b005b3480156200039c57600080fd5b50620003bb6004803603810190620003b591906200307e565b62000a91565b005b348015620003ca57600080fd5b50620003d562000c2a565b005b620003f56004803603810190620003ef9190620032af565b62000d59565b005b3480156200040457600080fd5b506200040f62000ea2565b6040516200041e919062003330565b60405180910390f35b3480156200043457600080fd5b506200043f62000f5e565b6040516200044e919062003368565b60405180910390f35b3480156200046457600080fd5b506200046f62000f67565b6040516200047e9190620033aa565b60405180910390f35b3480156200049457600080fd5b50620004b36004803603810190620004ad91906200307e565b62000f8d565b005b348015620004c257600080fd5b50620004e16004803603810190620004db91906200307e565b62000fdb565b604051620004f09190620030cd565b60405180910390f35b3480156200050657600080fd5b506200051162001049565b604051620005209190620030cd565b60405180910390f35b3480156200053657600080fd5b506200054162001060565b6040516200055091906200301c565b60405180910390f35b3480156200056657600080fd5b506200057162001086565b6040516200058091906200301c565b60405180910390f35b3480156200059657600080fd5b50620005b56004803603810190620005af9190620033c7565b620010ac565b005b348015620005c457600080fd5b50620005e36004803603810190620005dd9190620034eb565b62001111565b604051620005f291906200301c565b60405180910390f35b3480156200060857600080fd5b506200062760048036038101906200062191906200307e565b62001480565b005b3480156200063657600080fd5b5062000641620014ce565b6040516200065091906200301c565b60405180910390f35b3480156200066657600080fd5b5062000671620014f4565b6040516200068091906200301c565b60405180910390f35b3480156200069657600080fd5b50620006b56004803603810190620006af9190620035ee565b6200151a565b005b348015620006c457600080fd5b50620006e36004803603810190620006dd91906200311b565b62001af4565b005b348015620006f257600080fd5b506200071160048036038101906200070b91906200307e565b62001b1b565b604051620007209190620030cd565b60405180910390f35b3480156200073657600080fd5b506200075560048036038101906200074f91906200307e565b62001b3b565b005b3480156200076457600080fd5b506200076f62001b89565b6040516200077e9190620030cd565b60405180910390f35b3480156200079457600080fd5b50620007b36004803603810190620007ad91906200307e565b62001b9c565b005b348015620007c257600080fd5b50620007cd62001bea565b604051620007dc919062003702565b60405180910390f35b348015620007f257600080fd5b506200081160048036038101906200080b91906200371f565b62001c02565b005b3480156200082057600080fd5b506200082b62001c34565b6040516200083a91906200301c565b60405180910390f35b3480156200085057600080fd5b506200086f60048036038101906200086991906200311b565b62001c5a565b005b3480156200087e57600080fd5b506200089d60048036038101906200089791906200307e565b62001c89565b604051620008ac9190620030cd565b60405180910390f35b348015620008c257600080fd5b50620008e16004803603810190620008db91906200307e565b62001ca9565b005b348015620008f057600080fd5b506200090f6004803603810190620009099190620033c7565b62001d5a565b005b3480156200091e57600080fd5b506200092962001dbf565b60405162000938919062003702565b60405180910390f35b3480156200094e57600080fd5b506200096d60048036038101906200096791906200307e565b62001dd7565b005b3480156200097c57600080fd5b506200099b60048036038101906200099591906200307e565b62001e25565b005b60c960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60ca60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b620009f362001e73565b8060c960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60d260019054906101000a900460ff1681565b60cf6020528060005260406000206000915054906101000a900460ff1681565b62000a7462001e73565b8060d260006101000a81548160ff02191690831515021790555050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff16141562000b23576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000b1a90620037d8565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1662000b6462001efd565b73ffffffffffffffffffffffffffffffffffffffff161462000bbd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000bb49062003870565b60405180910390fd5b62000bc88162001f56565b62000c2781600067ffffffffffffffff81111562000beb5762000bea62003168565b5b6040519080825280601f01601f19166020018201604052801562000c1e5781602001600182028036833780820191505090505b50600062001f6d565b50565b3373ffffffffffffffffffffffffffffffffffffffff1660d460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161462000cb2576040517f33ecac8f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60d460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660d360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600060d460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff16141562000deb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000de290620037d8565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1662000e2c62001efd565b73ffffffffffffffffffffffffffffffffffffffff161462000e85576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000e7c9062003870565b60405180910390fd5b62000e908262001f56565b62000e9e8282600162001f6d565b5050565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff161462000f35576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000f2c9062003908565b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b905090565b60006001905090565b60cd60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b62000f9762001e73565b8060cd60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600060d260019054906101000a900460ff168062001042575060d160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b9050919050565b6000609760009054906101000a900460ff16905090565b60ce60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60d260029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b620010b6620020ec565b8060d160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b60006200111d620021d3565b60cf60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16620011a1576040517fd110c72800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60cf60008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1662001225576040517fed062fa400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8873ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff1614156200128c576040517f8686656d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008b1415620012c8576040517f39e808da00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6201518042620012d9919062003959565b8665ffffffffffff1610156200131b576040517fd36c850000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b620f42408865ffffffffffff16111562001361576040517ffc5bee1200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000831080620013715750600183115b15620013a9576040517fb968846100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b620014706040518061012001604052808d81526020018c73ffffffffffffffffffffffffffffffffffffffff1681526020018b73ffffffffffffffffffffffffffffffffffffffff1681526020018a65ffffffffffff1681526020018981526020018865ffffffffffff168152602001878780806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505081526020018581526020018481525062002222565b90509a9950505050505050505050565b6200148a62001e73565b8060cc60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60cc60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60d360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060019054906101000a900460ff161590508080156200154c5750600160008054906101000a900460ff1660ff16105b806200157d57506200155e30620026a3565b1580156200157c5750600160008054906101000a900460ff1660ff16145b5b620015bf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620015b69062003a2c565b60405180910390fd5b60016000806101000a81548160ff021916908360ff1602179055508015620015fd576001600060016101000a81548160ff0219169083151502179055505b62001607620026c6565b620016116200271a565b600073ffffffffffffffffffffffffffffffffffffffff168b73ffffffffffffffffffffffffffffffffffffffff161480620016795750600073ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff16145b80620016b15750600073ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff16145b80620016e95750600073ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff16145b80620017215750600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16145b80620017595750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b1562001791576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360d360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508a60ca60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508a60cb60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508960cc60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508860cd60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508760c960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508660ce60146101000a81548165ffffffffffff021916908365ffffffffffff1602179055508560ce601a6101000a81548165ffffffffffff021916908365ffffffffffff1602179055508460ce60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508160d260026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060005b8484905081101562001a8a57600160cf600087878581811062001a0e5762001a0d62003a4e565b5b905060200201602081019062001a2591906200307e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508062001a829062003a7d565b9050620019e6565b50801562001ae75760008060016101000a81548160ff0219169083151502179055507f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498600160405162001ade919062003b1b565b60405180910390a15b5050505050505050505050565b62001afe620020ec565b8060d260016101000a81548160ff02191690831515021790555050565b60d06020528060005260406000206000915054906101000a900460ff1681565b62001b4562001e73565b8060d460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60d260009054906101000a900460ff1681565b62001ba662001e73565b8060d260026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60ce60149054906101000a900465ffffffffffff1681565b62001c0c62001e73565b8060ce60146101000a81548165ffffffffffff021916908365ffffffffffff16021790555050565b60cb60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b62001c64620020ec565b801562001c7b5762001c7562002778565b62001c86565b62001c85620027e1565b5b50565b60d16020528060005260406000206000915054906101000a900460ff1681565b62001cb362001e73565b60ca60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660cb60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508060ca60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b62001d6462001e73565b8060cf60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b60ce601a9054906101000a900465ffffffffffff1681565b62001de162001e73565b8060ce60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b62001e2f62001e73565b8060cb60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60d360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161462001efb576040517f30cd747100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b600062001f2d7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b6200284a565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b62001f60620021d3565b62001f6a62001e73565b50565b62001f9b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd914360001b62002854565b60000160009054906101000a900460ff161562001fc35762001fbd836200285e565b620020e7565b8273ffffffffffffffffffffffffffffffffffffffff166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156200202e57506040513d601f19601f820116820180604052508101906200202b919062003b69565b60015b62002070576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620020679062003c11565b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b8114620020d8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620020cf9062003ca9565b60405180910390fd5b50620020e68383836200291e565b5b505050565b60d260029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415801562002199575060d360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614155b15620021d1576040517fea8e4eb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b620021dd62001049565b1562002220576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620022179062003d1b565b60405180910390fd5b565b60008060ca60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051620022569062002f41565b62002262919062003d78565b604051809103906000f0801580156200227f573d6000803e3d6000fd5b5090506000806200229585610100015162002950565b915091506000620f424090508373ffffffffffffffffffffffffffffffffffffffff16630456d8db6040518061018001604052803373ffffffffffffffffffffffffffffffffffffffff16815260200189600001518152602001896020015173ffffffffffffffffffffffffffffffffffffffff168152602001896040015173ffffffffffffffffffffffffffffffffffffffff1681526020018960a0015165ffffffffffff1681526020018960c0015181526020018487866200235a919062003daa565b60ce60149054906101000a900465ffffffffffff166200237b919062003de5565b62002387919062003e5b565b65ffffffffffff168152602001848686620023a3919062003daa565b60ce601a9054906101000a900465ffffffffffff16620023c4919062003de5565b620023d0919062003e5b565b65ffffffffffff16815260200160c960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160cc60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020013073ffffffffffffffffffffffffffffffffffffffff1681526020018960e001518152506040518263ffffffff1660e01b81526004016200249b91906200409f565b600060405180830381600087803b158015620024b657600080fd5b505af1158015620024cb573d6000803e3d6000fd5b505050507f17a6639825270a6a0f6172df6127d5ca0ef5649412ba2ae4225acd2b584425ca8433886000015189602001518a6040015186898862002510919062003daa565b60ce60149054906101000a900465ffffffffffff1662002531919062003de5565b6200253d919062003e5b565b8789896200254c919062003daa565b60ce601a9054906101000a900465ffffffffffff166200256d919062003de5565b62002579919062003e5b565b8d60a001518e60c001516040516200259a999897969594939291906200413e565b60405180910390a1600160d060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555060c960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635ec425c585886060015189608001516040518463ffffffff1660e01b81526004016200266393929190620041e4565b600060405180830381600087803b1580156200267e57600080fd5b505af115801562002693573d6000803e3d6000fd5b5050505083945050505050919050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600060019054906101000a900460ff1662002718576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200270f9062004297565b60405180910390fd5b565b600060019054906101000a900460ff166200276c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620027639062004297565b60405180910390fd5b6200277662002ccf565b565b62002782620021d3565b6001609760006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620027c862002d3e565b604051620027d791906200301c565b60405180910390a1565b620027eb62002d46565b6000609760006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6200283162002d3e565b6040516200284091906200301c565b60405180910390a1565b6000819050919050565b6000819050919050565b6200286981620026a3565b620028ab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620028a2906200432f565b60405180910390fd5b80620028da7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b6200284a565b60000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b620029298362002d94565b600082511180620029375750805b156200294b5762002949838362002de5565b505b505050565b60008060cd60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634f558e79846040518263ffffffff1660e01b8152600401620029b0919062003368565b602060405180830381865afa158015620029ce573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620029f4919062004368565b158062002acd575060cd60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e846040518263ffffffff1660e01b815260040162002a59919062003368565b602060405180830381865afa15801562002a77573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062002a9d9190620043b1565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614155b1562002ae0576000809150915062002cca565b600080600080600060cd60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166333790845896040518263ffffffff1660e01b815260040162002b45919062003368565b60a060405180830381865afa15801562002b63573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062002b89919062004411565b945094509450945094508065ffffffffffff164210801562002bb957508460018562002bb6919062003959565b11155b1562002cbd57620f42408365ffffffffffff16118062002be35750620f42408265ffffffffffff16115b1562002c1b576040517f6730414f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60cd60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166384b574bd896040518263ffffffff1660e01b815260040162002c78919062003368565b600060405180830381600087803b15801562002c9357600080fd5b505af115801562002ca8573d6000803e3d6000fd5b50505050828296509650505050505062002cca565b5050505050600080915091505b915091565b600060019054906101000a900460ff1662002d21576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162002d189062004297565b60405180910390fd5b6000609760006101000a81548160ff021916908315150217905550565b600033905090565b62002d5062001049565b62002d92576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162002d8990620044e9565b60405180910390fd5b565b62002d9f816200285e565b8073ffffffffffffffffffffffffffffffffffffffff167fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b60405160405180910390a250565b606062002df283620026a3565b62002e34576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162002e2b9062004581565b60405180910390fd5b6000808473ffffffffffffffffffffffffffffffffffffffff168460405162002e5e919062004626565b600060405180830381855af49150503d806000811462002e9b576040519150601f19603f3d011682016040523d82523d6000602084013e62002ea0565b606091505b509150915062002ecb8282604051806060016040528060278152602001620053296027913962002ed5565b9250505092915050565b6060831562002ee75782905062002f3a565b60008351111562002efb5782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162002f3191906200468b565b60405180910390fd5b9392505050565b610c7980620046b083390190565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600062002f9a62002f9462002f8e8462002f4f565b62002f6f565b62002f4f565b9050919050565b600062002fae8262002f79565b9050919050565b600062002fc28262002fa1565b9050919050565b62002fd48162002fb5565b82525050565b600060208201905062002ff1600083018462002fc9565b92915050565b6000620030048262002f4f565b9050919050565b620030168162002ff7565b82525050565b60006020820190506200303360008301846200300b565b92915050565b6000604051905090565b600080fd5b600080fd5b620030588162002ff7565b81146200306457600080fd5b50565b60008135905062003078816200304d565b92915050565b60006020828403121562003097576200309662003043565b5b6000620030a78482850162003067565b91505092915050565b60008115159050919050565b620030c781620030b0565b82525050565b6000602082019050620030e46000830184620030bc565b92915050565b620030f581620030b0565b81146200310157600080fd5b50565b6000813590506200311581620030ea565b92915050565b60006020828403121562003134576200313362003043565b5b6000620031448482850162003104565b91505092915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620031a28262003157565b810181811067ffffffffffffffff82111715620031c457620031c362003168565b5b80604052505050565b6000620031d962003039565b9050620031e7828262003197565b919050565b600067ffffffffffffffff8211156200320a576200320962003168565b5b620032158262003157565b9050602081019050919050565b82818337600083830152505050565b6000620032486200324284620031ec565b620031cd565b90508281526020810184848401111562003267576200326662003152565b5b6200327484828562003222565b509392505050565b600082601f8301126200329457620032936200314d565b5b8135620032a684826020860162003231565b91505092915050565b60008060408385031215620032c957620032c862003043565b5b6000620032d98582860162003067565b925050602083013567ffffffffffffffff811115620032fd57620032fc62003048565b5b6200330b858286016200327c565b9150509250929050565b6000819050919050565b6200332a8162003315565b82525050565b60006020820190506200334760008301846200331f565b92915050565b6000819050919050565b62003362816200334d565b82525050565b60006020820190506200337f600083018462003357565b92915050565b6000620033928262002fa1565b9050919050565b620033a48162003385565b82525050565b6000602082019050620033c1600083018462003399565b92915050565b60008060408385031215620033e157620033e062003043565b5b6000620033f18582860162003067565b9250506020620034048582860162003104565b9150509250929050565b62003419816200334d565b81146200342557600080fd5b50565b60008135905062003439816200340e565b92915050565b600065ffffffffffff82169050919050565b6200345c816200343f565b81146200346857600080fd5b50565b6000813590506200347c8162003451565b92915050565b600080fd5b600080fd5b60008083601f840112620034a557620034a46200314d565b5b8235905067ffffffffffffffff811115620034c557620034c462003482565b5b602083019150836020820283011115620034e457620034e362003487565b5b9250929050565b6000806000806000806000806000806101208b8d03121562003512576200351162003043565b5b6000620035228d828e0162003428565b9a50506020620035358d828e0162003067565b9950506040620035488d828e0162003067565b98505060606200355b8d828e016200346b565b97505060806200356e8d828e0162003428565b96505060a0620035818d828e016200346b565b95505060c08b013567ffffffffffffffff811115620035a557620035a462003048565b5b620035b38d828e016200348c565b945094505060e0620035c88d828e0162003428565b925050610100620035dc8d828e0162003428565b9150509295989b9194979a5092959850565b6000806000806000806000806000806101208b8d03121562003615576200361462003043565b5b6000620036258d828e0162003067565b9a50506020620036388d828e0162003067565b99505060406200364b8d828e0162003067565b98505060606200365e8d828e0162003067565b9750506080620036718d828e016200346b565b96505060a0620036848d828e016200346b565b95505060c0620036978d828e0162003067565b94505060e08b013567ffffffffffffffff811115620036bb57620036ba62003048565b5b620036c98d828e016200348c565b9350935050610100620036df8d828e0162003067565b9150509295989b9194979a5092959850565b620036fc816200343f565b82525050565b6000602082019050620037196000830184620036f1565b92915050565b60006020828403121562003738576200373762003043565b5b600062003748848285016200346b565b91505092915050565b600082825260208201905092915050565b7f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060008201527f64656c656761746563616c6c0000000000000000000000000000000000000000602082015250565b6000620037c0602c8362003751565b9150620037cd8262003762565b604082019050919050565b60006020820190508181036000830152620037f381620037b1565b9050919050565b7f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060008201527f6163746976652070726f78790000000000000000000000000000000000000000602082015250565b600062003858602c8362003751565b91506200386582620037fa565b604082019050919050565b600060208201905081810360008301526200388b8162003849565b9050919050565b7f555550535570677261646561626c653a206d757374206e6f742062652063616c60008201527f6c6564207468726f7567682064656c656761746563616c6c0000000000000000602082015250565b6000620038f060388362003751565b9150620038fd8262003892565b604082019050919050565b600060208201905081810360008301526200392381620038e1565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600062003966826200334d565b915062003973836200334d565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115620039ab57620039aa6200392a565b5b828201905092915050565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b600062003a14602e8362003751565b915062003a2182620039b6565b604082019050919050565b6000602082019050818103600083015262003a478162003a05565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600062003a8a826200334d565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141562003ac05762003abf6200392a565b5b600182019050919050565b6000819050919050565b600060ff82169050919050565b600062003b0362003afd62003af78462003acb565b62002f6f565b62003ad5565b9050919050565b62003b158162003ae2565b82525050565b600060208201905062003b32600083018462003b0a565b92915050565b62003b438162003315565b811462003b4f57600080fd5b50565b60008151905062003b638162003b38565b92915050565b60006020828403121562003b825762003b8162003043565b5b600062003b928482850162003b52565b91505092915050565b7f45524331393637557067726164653a206e657720696d706c656d656e7461746960008201527f6f6e206973206e6f742055555053000000000000000000000000000000000000602082015250565b600062003bf9602e8362003751565b915062003c068262003b9b565b604082019050919050565b6000602082019050818103600083015262003c2c8162003bea565b9050919050565b7f45524331393637557067726164653a20756e737570706f727465642070726f7860008201527f6961626c65555549440000000000000000000000000000000000000000000000602082015250565b600062003c9160298362003751565b915062003c9e8262003c33565b604082019050919050565b6000602082019050818103600083015262003cc48162003c82565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b600062003d0360108362003751565b915062003d108262003ccb565b602082019050919050565b6000602082019050818103600083015262003d368162003cf4565b9050919050565b600082825260208201905092915050565b50565b600062003d6060008362003d3d565b915062003d6d8262003d4e565b600082019050919050565b600060408201905062003d8f60008301846200300b565b818103602083015262003da28162003d51565b905092915050565b600062003db7826200343f565b915062003dc4836200343f565b92508282101562003dda5762003dd96200392a565b5b828203905092915050565b600062003df2826200343f565b915062003dff836200343f565b92508165ffffffffffff048311821515161562003e215762003e206200392a565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600062003e68826200343f565b915062003e75836200343f565b92508262003e885762003e8762003e2c565b5b828204905092915050565b62003e9e8162002ff7565b82525050565b62003eaf816200334d565b82525050565b62003ec0816200343f565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600062003f00838362003e93565b60208301905092915050565b6000602082019050919050565b600062003f268262003ec6565b62003f32818562003ed1565b935062003f3f8362003ee2565b8060005b8381101562003f7657815162003f5a888262003ef2565b975062003f678362003f0c565b92505060018101905062003f43565b5085935050505092915050565b60006101808301600083015162003f9e600086018262003e93565b50602083015162003fb3602086018262003ea4565b50604083015162003fc8604086018262003e93565b50606083015162003fdd606086018262003e93565b50608083015162003ff2608086018262003eb5565b5060a083015184820360a08601526200400c828262003f19565b91505060c08301516200402360c086018262003eb5565b5060e08301516200403860e086018262003eb5565b506101008301516200404f61010086018262003e93565b506101208301516200406661012086018262003e93565b506101408301516200407d61014086018262003e93565b506101608301516200409461016086018262003ea4565b508091505092915050565b60006020820190508181036000830152620040bb818462003f83565b905092915050565b600082825260208201905092915050565b6000620040e18262003ec6565b620040ed8185620040c3565b9350620040fa8362003ee2565b8060005b838110156200413157815162004115888262003ef2565b9750620041228362003f0c565b925050600181019050620040fe565b5085935050505092915050565b60006101208201905062004156600083018c6200300b565b62004165602083018b6200300b565b62004174604083018a62003357565b6200418360608301896200300b565b6200419260808301886200300b565b620041a160a0830187620036f1565b620041b060c0830186620036f1565b620041bf60e0830185620036f1565b818103610100830152620041d48184620040d4565b90509a9950505050505050505050565b6000606082019050620041fb60008301866200300b565b6200420a6020830185620036f1565b62004219604083018462003357565b949350505050565b7f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960008201527f6e697469616c697a696e67000000000000000000000000000000000000000000602082015250565b60006200427f602b8362003751565b91506200428c8262004221565b604082019050919050565b60006020820190508181036000830152620042b28162004270565b9050919050565b7f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60008201527f6f74206120636f6e747261637400000000000000000000000000000000000000602082015250565b600062004317602d8362003751565b91506200432482620042b9565b604082019050919050565b600060208201905081810360008301526200434a8162004308565b9050919050565b6000815190506200436281620030ea565b92915050565b60006020828403121562004381576200438062003043565b5b6000620043918482850162004351565b91505092915050565b600081519050620043ab816200304d565b92915050565b600060208284031215620043ca57620043c962003043565b5b6000620043da848285016200439a565b91505092915050565b600081519050620043f4816200340e565b92915050565b6000815190506200440b8162003451565b92915050565b600080600080600060a0868803121562004430576200442f62003043565b5b60006200444088828901620043e3565b95505060206200445388828901620043e3565b94505060406200446688828901620043fa565b93505060606200447988828901620043fa565b92505060806200448c88828901620043fa565b9150509295509295909350565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000620044d160148362003751565b9150620044de8262004499565b602082019050919050565b600060208201905081810360008301526200450481620044c2565b9050919050565b7f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60008201527f6e74726163740000000000000000000000000000000000000000000000000000602082015250565b60006200456960268362003751565b915062004576826200450b565b604082019050919050565b600060208201905081810360008301526200459c816200455a565b9050919050565b600081519050919050565b600081905092915050565b60005b83811015620045d9578082015181840152602081019050620045bc565b83811115620045e9576000848401525b50505050565b6000620045fc82620045a3565b620046088185620045ae565b93506200461a818560208601620045b9565b80840191505092915050565b6000620046348284620045ef565b915081905092915050565b600081519050919050565b600062004657826200463f565b62004663818562003751565b935062004675818560208601620045b9565b620046808162003157565b840191505092915050565b60006020820190508181036000830152620046a781846200464a565b90509291505056fe608060405260405162000c7938038062000c7983398181016040528101906200002991906200056a565b6200003d828260006200004560201b60201c565b5050620007e7565b62000056836200008860201b60201c565b600082511180620000645750805b156200008357620000818383620000df60201b620000371760201c565b505b505050565b62000099816200011560201b60201c565b8073ffffffffffffffffffffffffffffffffffffffff167fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b60405160405180910390a250565b60606200010d838360405180606001604052806027815260200162000c5260279139620001eb60201b60201c565b905092915050565b6200012b81620002cf60201b620000641760201c565b6200016d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001649062000657565b60405180910390fd5b80620001a77f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b620002f260201b620000871760201c565b60000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6060620001fe84620002cf60201b60201c565b62000240576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200023790620006ef565b60405180910390fd5b6000808573ffffffffffffffffffffffffffffffffffffffff16856040516200026a91906200075e565b600060405180830381855af49150503d8060008114620002a7576040519150601f19603f3d011682016040523d82523d6000602084013e620002ac565b606091505b5091509150620002c4828286620002fc60201b60201c565b925050509392505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000819050919050565b606083156200030e5782905062000361565b600083511115620003225782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620003589190620007c3565b60405180910390fd5b9392505050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620003a9826200037c565b9050919050565b620003bb816200039c565b8114620003c757600080fd5b50565b600081519050620003db81620003b0565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200043682620003eb565b810181811067ffffffffffffffff82111715620004585762000457620003fc565b5b80604052505050565b60006200046d62000368565b90506200047b82826200042b565b919050565b600067ffffffffffffffff8211156200049e576200049d620003fc565b5b620004a982620003eb565b9050602081019050919050565b60005b83811015620004d6578082015181840152602081019050620004b9565b83811115620004e6576000848401525b50505050565b600062000503620004fd8462000480565b62000461565b905082815260208101848484011115620005225762000521620003e6565b5b6200052f848285620004b6565b509392505050565b600082601f8301126200054f576200054e620003e1565b5b815162000561848260208601620004ec565b91505092915050565b6000806040838503121562000584576200058362000372565b5b60006200059485828601620003ca565b925050602083015167ffffffffffffffff811115620005b857620005b762000377565b5b620005c68582860162000537565b9150509250929050565b600082825260208201905092915050565b7f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60008201527f6f74206120636f6e747261637400000000000000000000000000000000000000602082015250565b60006200063f602d83620005d0565b91506200064c82620005e1565b604082019050919050565b60006020820190508181036000830152620006728162000630565b9050919050565b7f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60008201527f6e74726163740000000000000000000000000000000000000000000000000000602082015250565b6000620006d7602683620005d0565b9150620006e48262000679565b604082019050919050565b600060208201905081810360008301526200070a81620006c8565b9050919050565b600081519050919050565b600081905092915050565b6000620007348262000711565b6200074081856200071c565b935062000752818560208601620004b6565b80840191505092915050565b60006200076c828462000727565b915081905092915050565b600081519050919050565b60006200078f8262000777565b6200079b8185620005d0565b9350620007ad818560208601620004b6565b620007b881620003eb565b840191505092915050565b60006020820190508181036000830152620007df818462000782565b905092915050565b61045b80620007f76000396000f3fe6080604052366100135761001161001d565b005b61001b61001d565b005b610025610091565b610035610030610093565b6100a2565b565b606061005c83836040518060600160405280602781526020016103ff602791396100c8565b905092915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000819050919050565b565b600061009d610195565b905090565b3660008037600080366000845af43d6000803e80600081146100c3573d6000f35b3d6000fd5b60606100d384610064565b610112576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610109906102d6565b60405180910390fd5b6000808573ffffffffffffffffffffffffffffffffffffffff168560405161013a9190610370565b600060405180830381855af49150503d8060008114610175576040519150601f19603f3d011682016040523d82523d6000602084013e61017a565b606091505b509150915061018a8282866101ec565b925050509392505050565b60006101c37f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b610087565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606083156101fc5782905061024c565b60008351111561020f5782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161024391906103dc565b60405180910390fd5b9392505050565b600082825260208201905092915050565b7f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60008201527f6e74726163740000000000000000000000000000000000000000000000000000602082015250565b60006102c0602683610253565b91506102cb82610264565b604082019050919050565b600060208201905081810360008301526102ef816102b3565b9050919050565b600081519050919050565b600081905092915050565b60005b8381101561032a57808201518184015260208101905061030f565b83811115610339576000848401525b50505050565b600061034a826102f6565b6103548185610301565b935061036481856020860161030c565b80840191505092915050565b600061037c828461033f565b915081905092915050565b600081519050919050565b6000601f19601f8301169050919050565b60006103ae82610387565b6103b88185610253565b93506103c881856020860161030c565b6103d181610392565b840191505092915050565b600060208201905081810360008301526103f681846103a3565b90509291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220b747b55ec68e87c26e26d05be27fee54922335ec140d25203bd1f41ff7e53ce164736f6c634300080b0033416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220d790d06e335a10dec0a4a851b3aa46131f938b489341a35c39befa503912ee1464736f6c634300080b0033
Deployed Bytecode
0x6080604052600436106200025a5760003560e01c80637adbf973116200013f578063b0e21e8a11620000bb578063d784d4261162000079578063d784d42614620008b5578063d9da29e814620008e3578063e4210afa1462000911578063f0f442601462000941578063fccfe671146200096f576200025a565b8063b0e21e8a14620007b5578063b1e5552914620007e5578063b56106521462000813578063bedb86fb1462000843578063cdf04c071462000871576200025a565b806399d8db1b116200010957806399d8db1b14620006b7578063a4063dbc14620006e5578063acfd82f21462000729578063af2f4e101462000757578063b087f2e11462000787576200025a565b80637adbf97314620005fb5780637dc0d1d014620006295780638da5cb5b14620006595780638ed5a4991462000689576200025a565b806352d1902d11620001db5780635c975abb11620001995780635c975abb14620004f957806361d027b3146200052957806366891240146200055957806368e380ed14620005895780636f1b362014620005b7576200025a565b806352d1902d14620003f757806354fd4d501462000427578063589e0ac114620004575780635a1be79d14620004875780635b14f18314620004b5576200025a565b80632848aeaf11620002295780632848aeaf146200031d578063327407cb14620003615780633659cfe6146200038f5780634e71e0c814620003bd5780634f1ef28614620003d7576200025a565b806305a9e073146200025f57806315ef4ddc146200028f5780631c89382a14620002bf578063240ffeaf14620002ed575b600080fd5b3480156200026c57600080fd5b50620002776200099d565b60405162000286919062002fda565b60405180910390f35b3480156200029c57600080fd5b50620002a7620009c3565b604051620002b691906200301c565b60405180910390f35b348015620002cc57600080fd5b50620002eb6004803603810190620002e591906200307e565b620009e9565b005b348015620002fa57600080fd5b506200030562000a37565b604051620003149190620030cd565b60405180910390f35b3480156200032a57600080fd5b506200034960048036038101906200034391906200307e565b62000a4a565b604051620003589190620030cd565b60405180910390f35b3480156200036e57600080fd5b506200038d60048036038101906200038791906200311b565b62000a6a565b005b3480156200039c57600080fd5b50620003bb6004803603810190620003b591906200307e565b62000a91565b005b348015620003ca57600080fd5b50620003d562000c2a565b005b620003f56004803603810190620003ef9190620032af565b62000d59565b005b3480156200040457600080fd5b506200040f62000ea2565b6040516200041e919062003330565b60405180910390f35b3480156200043457600080fd5b506200043f62000f5e565b6040516200044e919062003368565b60405180910390f35b3480156200046457600080fd5b506200046f62000f67565b6040516200047e9190620033aa565b60405180910390f35b3480156200049457600080fd5b50620004b36004803603810190620004ad91906200307e565b62000f8d565b005b348015620004c257600080fd5b50620004e16004803603810190620004db91906200307e565b62000fdb565b604051620004f09190620030cd565b60405180910390f35b3480156200050657600080fd5b506200051162001049565b604051620005209190620030cd565b60405180910390f35b3480156200053657600080fd5b506200054162001060565b6040516200055091906200301c565b60405180910390f35b3480156200056657600080fd5b506200057162001086565b6040516200058091906200301c565b60405180910390f35b3480156200059657600080fd5b50620005b56004803603810190620005af9190620033c7565b620010ac565b005b348015620005c457600080fd5b50620005e36004803603810190620005dd9190620034eb565b62001111565b604051620005f291906200301c565b60405180910390f35b3480156200060857600080fd5b506200062760048036038101906200062191906200307e565b62001480565b005b3480156200063657600080fd5b5062000641620014ce565b6040516200065091906200301c565b60405180910390f35b3480156200066657600080fd5b5062000671620014f4565b6040516200068091906200301c565b60405180910390f35b3480156200069657600080fd5b50620006b56004803603810190620006af9190620035ee565b6200151a565b005b348015620006c457600080fd5b50620006e36004803603810190620006dd91906200311b565b62001af4565b005b348015620006f257600080fd5b506200071160048036038101906200070b91906200307e565b62001b1b565b604051620007209190620030cd565b60405180910390f35b3480156200073657600080fd5b506200075560048036038101906200074f91906200307e565b62001b3b565b005b3480156200076457600080fd5b506200076f62001b89565b6040516200077e9190620030cd565b60405180910390f35b3480156200079457600080fd5b50620007b36004803603810190620007ad91906200307e565b62001b9c565b005b348015620007c257600080fd5b50620007cd62001bea565b604051620007dc919062003702565b60405180910390f35b348015620007f257600080fd5b506200081160048036038101906200080b91906200371f565b62001c02565b005b3480156200082057600080fd5b506200082b62001c34565b6040516200083a91906200301c565b60405180910390f35b3480156200085057600080fd5b506200086f60048036038101906200086991906200311b565b62001c5a565b005b3480156200087e57600080fd5b506200089d60048036038101906200089791906200307e565b62001c89565b604051620008ac9190620030cd565b60405180910390f35b348015620008c257600080fd5b50620008e16004803603810190620008db91906200307e565b62001ca9565b005b348015620008f057600080fd5b506200090f6004803603810190620009099190620033c7565b62001d5a565b005b3480156200091e57600080fd5b506200092962001dbf565b60405162000938919062003702565b60405180910390f35b3480156200094e57600080fd5b506200096d60048036038101906200096791906200307e565b62001dd7565b005b3480156200097c57600080fd5b506200099b60048036038101906200099591906200307e565b62001e25565b005b60c960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60ca60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b620009f362001e73565b8060c960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60d260019054906101000a900460ff1681565b60cf6020528060005260406000206000915054906101000a900460ff1681565b62000a7462001e73565b8060d260006101000a81548160ff02191690831515021790555050565b7f000000000000000000000000bfc606bdd9ae52c4aa786cc4ff74abccbc07b64c73ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff16141562000b23576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000b1a90620037d8565b60405180910390fd5b7f000000000000000000000000bfc606bdd9ae52c4aa786cc4ff74abccbc07b64c73ffffffffffffffffffffffffffffffffffffffff1662000b6462001efd565b73ffffffffffffffffffffffffffffffffffffffff161462000bbd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000bb49062003870565b60405180910390fd5b62000bc88162001f56565b62000c2781600067ffffffffffffffff81111562000beb5762000bea62003168565b5b6040519080825280601f01601f19166020018201604052801562000c1e5781602001600182028036833780820191505090505b50600062001f6d565b50565b3373ffffffffffffffffffffffffffffffffffffffff1660d460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161462000cb2576040517f33ecac8f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60d460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660d360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600060d460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b7f000000000000000000000000bfc606bdd9ae52c4aa786cc4ff74abccbc07b64c73ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff16141562000deb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000de290620037d8565b60405180910390fd5b7f000000000000000000000000bfc606bdd9ae52c4aa786cc4ff74abccbc07b64c73ffffffffffffffffffffffffffffffffffffffff1662000e2c62001efd565b73ffffffffffffffffffffffffffffffffffffffff161462000e85576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000e7c9062003870565b60405180910390fd5b62000e908262001f56565b62000e9e8282600162001f6d565b5050565b60007f000000000000000000000000bfc606bdd9ae52c4aa786cc4ff74abccbc07b64c73ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff161462000f35576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000f2c9062003908565b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b905090565b60006001905090565b60cd60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b62000f9762001e73565b8060cd60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600060d260019054906101000a900460ff168062001042575060d160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b9050919050565b6000609760009054906101000a900460ff16905090565b60ce60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60d260029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b620010b6620020ec565b8060d160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b60006200111d620021d3565b60cf60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16620011a1576040517fd110c72800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60cf60008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1662001225576040517fed062fa400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8873ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff1614156200128c576040517f8686656d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008b1415620012c8576040517f39e808da00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6201518042620012d9919062003959565b8665ffffffffffff1610156200131b576040517fd36c850000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b620f42408865ffffffffffff16111562001361576040517ffc5bee1200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000831080620013715750600183115b15620013a9576040517fb968846100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b620014706040518061012001604052808d81526020018c73ffffffffffffffffffffffffffffffffffffffff1681526020018b73ffffffffffffffffffffffffffffffffffffffff1681526020018a65ffffffffffff1681526020018981526020018865ffffffffffff168152602001878780806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505081526020018581526020018481525062002222565b90509a9950505050505050505050565b6200148a62001e73565b8060cc60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60cc60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60d360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060019054906101000a900460ff161590508080156200154c5750600160008054906101000a900460ff1660ff16105b806200157d57506200155e30620026a3565b1580156200157c5750600160008054906101000a900460ff1660ff16145b5b620015bf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620015b69062003a2c565b60405180910390fd5b60016000806101000a81548160ff021916908360ff1602179055508015620015fd576001600060016101000a81548160ff0219169083151502179055505b62001607620026c6565b620016116200271a565b600073ffffffffffffffffffffffffffffffffffffffff168b73ffffffffffffffffffffffffffffffffffffffff161480620016795750600073ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff16145b80620016b15750600073ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff16145b80620016e95750600073ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff16145b80620017215750600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16145b80620017595750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b1562001791576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360d360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508a60ca60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508a60cb60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508960cc60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508860cd60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508760c960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508660ce60146101000a81548165ffffffffffff021916908365ffffffffffff1602179055508560ce601a6101000a81548165ffffffffffff021916908365ffffffffffff1602179055508460ce60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508160d260026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060005b8484905081101562001a8a57600160cf600087878581811062001a0e5762001a0d62003a4e565b5b905060200201602081019062001a2591906200307e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508062001a829062003a7d565b9050620019e6565b50801562001ae75760008060016101000a81548160ff0219169083151502179055507f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498600160405162001ade919062003b1b565b60405180910390a15b5050505050505050505050565b62001afe620020ec565b8060d260016101000a81548160ff02191690831515021790555050565b60d06020528060005260406000206000915054906101000a900460ff1681565b62001b4562001e73565b8060d460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60d260009054906101000a900460ff1681565b62001ba662001e73565b8060d260026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60ce60149054906101000a900465ffffffffffff1681565b62001c0c62001e73565b8060ce60146101000a81548165ffffffffffff021916908365ffffffffffff16021790555050565b60cb60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b62001c64620020ec565b801562001c7b5762001c7562002778565b62001c86565b62001c85620027e1565b5b50565b60d16020528060005260406000206000915054906101000a900460ff1681565b62001cb362001e73565b60ca60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660cb60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508060ca60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b62001d6462001e73565b8060cf60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b60ce601a9054906101000a900465ffffffffffff1681565b62001de162001e73565b8060ce60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b62001e2f62001e73565b8060cb60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60d360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161462001efb576040517f30cd747100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b600062001f2d7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b6200284a565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b62001f60620021d3565b62001f6a62001e73565b50565b62001f9b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd914360001b62002854565b60000160009054906101000a900460ff161562001fc35762001fbd836200285e565b620020e7565b8273ffffffffffffffffffffffffffffffffffffffff166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156200202e57506040513d601f19601f820116820180604052508101906200202b919062003b69565b60015b62002070576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620020679062003c11565b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b8114620020d8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620020cf9062003ca9565b60405180910390fd5b50620020e68383836200291e565b5b505050565b60d260029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415801562002199575060d360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614155b15620021d1576040517fea8e4eb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b620021dd62001049565b1562002220576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620022179062003d1b565b60405180910390fd5b565b60008060ca60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051620022569062002f41565b62002262919062003d78565b604051809103906000f0801580156200227f573d6000803e3d6000fd5b5090506000806200229585610100015162002950565b915091506000620f424090508373ffffffffffffffffffffffffffffffffffffffff16630456d8db6040518061018001604052803373ffffffffffffffffffffffffffffffffffffffff16815260200189600001518152602001896020015173ffffffffffffffffffffffffffffffffffffffff168152602001896040015173ffffffffffffffffffffffffffffffffffffffff1681526020018960a0015165ffffffffffff1681526020018960c0015181526020018487866200235a919062003daa565b60ce60149054906101000a900465ffffffffffff166200237b919062003de5565b62002387919062003e5b565b65ffffffffffff168152602001848686620023a3919062003daa565b60ce601a9054906101000a900465ffffffffffff16620023c4919062003de5565b620023d0919062003e5b565b65ffffffffffff16815260200160c960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160cc60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020013073ffffffffffffffffffffffffffffffffffffffff1681526020018960e001518152506040518263ffffffff1660e01b81526004016200249b91906200409f565b600060405180830381600087803b158015620024b657600080fd5b505af1158015620024cb573d6000803e3d6000fd5b505050507f17a6639825270a6a0f6172df6127d5ca0ef5649412ba2ae4225acd2b584425ca8433886000015189602001518a6040015186898862002510919062003daa565b60ce60149054906101000a900465ffffffffffff1662002531919062003de5565b6200253d919062003e5b565b8789896200254c919062003daa565b60ce601a9054906101000a900465ffffffffffff166200256d919062003de5565b62002579919062003e5b565b8d60a001518e60c001516040516200259a999897969594939291906200413e565b60405180910390a1600160d060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555060c960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635ec425c585886060015189608001516040518463ffffffff1660e01b81526004016200266393929190620041e4565b600060405180830381600087803b1580156200267e57600080fd5b505af115801562002693573d6000803e3d6000fd5b5050505083945050505050919050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600060019054906101000a900460ff1662002718576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200270f9062004297565b60405180910390fd5b565b600060019054906101000a900460ff166200276c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620027639062004297565b60405180910390fd5b6200277662002ccf565b565b62002782620021d3565b6001609760006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620027c862002d3e565b604051620027d791906200301c565b60405180910390a1565b620027eb62002d46565b6000609760006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6200283162002d3e565b6040516200284091906200301c565b60405180910390a1565b6000819050919050565b6000819050919050565b6200286981620026a3565b620028ab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620028a2906200432f565b60405180910390fd5b80620028da7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b6200284a565b60000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b620029298362002d94565b600082511180620029375750805b156200294b5762002949838362002de5565b505b505050565b60008060cd60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634f558e79846040518263ffffffff1660e01b8152600401620029b0919062003368565b602060405180830381865afa158015620029ce573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620029f4919062004368565b158062002acd575060cd60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e846040518263ffffffff1660e01b815260040162002a59919062003368565b602060405180830381865afa15801562002a77573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062002a9d9190620043b1565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614155b1562002ae0576000809150915062002cca565b600080600080600060cd60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166333790845896040518263ffffffff1660e01b815260040162002b45919062003368565b60a060405180830381865afa15801562002b63573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062002b89919062004411565b945094509450945094508065ffffffffffff164210801562002bb957508460018562002bb6919062003959565b11155b1562002cbd57620f42408365ffffffffffff16118062002be35750620f42408265ffffffffffff16115b1562002c1b576040517f6730414f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60cd60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166384b574bd896040518263ffffffff1660e01b815260040162002c78919062003368565b600060405180830381600087803b15801562002c9357600080fd5b505af115801562002ca8573d6000803e3d6000fd5b50505050828296509650505050505062002cca565b5050505050600080915091505b915091565b600060019054906101000a900460ff1662002d21576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162002d189062004297565b60405180910390fd5b6000609760006101000a81548160ff021916908315150217905550565b600033905090565b62002d5062001049565b62002d92576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162002d8990620044e9565b60405180910390fd5b565b62002d9f816200285e565b8073ffffffffffffffffffffffffffffffffffffffff167fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b60405160405180910390a250565b606062002df283620026a3565b62002e34576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162002e2b9062004581565b60405180910390fd5b6000808473ffffffffffffffffffffffffffffffffffffffff168460405162002e5e919062004626565b600060405180830381855af49150503d806000811462002e9b576040519150601f19603f3d011682016040523d82523d6000602084013e62002ea0565b606091505b509150915062002ecb8282604051806060016040528060278152602001620053296027913962002ed5565b9250505092915050565b6060831562002ee75782905062002f3a565b60008351111562002efb5782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162002f3191906200468b565b60405180910390fd5b9392505050565b610c7980620046b083390190565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600062002f9a62002f9462002f8e8462002f4f565b62002f6f565b62002f4f565b9050919050565b600062002fae8262002f79565b9050919050565b600062002fc28262002fa1565b9050919050565b62002fd48162002fb5565b82525050565b600060208201905062002ff1600083018462002fc9565b92915050565b6000620030048262002f4f565b9050919050565b620030168162002ff7565b82525050565b60006020820190506200303360008301846200300b565b92915050565b6000604051905090565b600080fd5b600080fd5b620030588162002ff7565b81146200306457600080fd5b50565b60008135905062003078816200304d565b92915050565b60006020828403121562003097576200309662003043565b5b6000620030a78482850162003067565b91505092915050565b60008115159050919050565b620030c781620030b0565b82525050565b6000602082019050620030e46000830184620030bc565b92915050565b620030f581620030b0565b81146200310157600080fd5b50565b6000813590506200311581620030ea565b92915050565b60006020828403121562003134576200313362003043565b5b6000620031448482850162003104565b91505092915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620031a28262003157565b810181811067ffffffffffffffff82111715620031c457620031c362003168565b5b80604052505050565b6000620031d962003039565b9050620031e7828262003197565b919050565b600067ffffffffffffffff8211156200320a576200320962003168565b5b620032158262003157565b9050602081019050919050565b82818337600083830152505050565b6000620032486200324284620031ec565b620031cd565b90508281526020810184848401111562003267576200326662003152565b5b6200327484828562003222565b509392505050565b600082601f8301126200329457620032936200314d565b5b8135620032a684826020860162003231565b91505092915050565b60008060408385031215620032c957620032c862003043565b5b6000620032d98582860162003067565b925050602083013567ffffffffffffffff811115620032fd57620032fc62003048565b5b6200330b858286016200327c565b9150509250929050565b6000819050919050565b6200332a8162003315565b82525050565b60006020820190506200334760008301846200331f565b92915050565b6000819050919050565b62003362816200334d565b82525050565b60006020820190506200337f600083018462003357565b92915050565b6000620033928262002fa1565b9050919050565b620033a48162003385565b82525050565b6000602082019050620033c1600083018462003399565b92915050565b60008060408385031215620033e157620033e062003043565b5b6000620033f18582860162003067565b9250506020620034048582860162003104565b9150509250929050565b62003419816200334d565b81146200342557600080fd5b50565b60008135905062003439816200340e565b92915050565b600065ffffffffffff82169050919050565b6200345c816200343f565b81146200346857600080fd5b50565b6000813590506200347c8162003451565b92915050565b600080fd5b600080fd5b60008083601f840112620034a557620034a46200314d565b5b8235905067ffffffffffffffff811115620034c557620034c462003482565b5b602083019150836020820283011115620034e457620034e362003487565b5b9250929050565b6000806000806000806000806000806101208b8d03121562003512576200351162003043565b5b6000620035228d828e0162003428565b9a50506020620035358d828e0162003067565b9950506040620035488d828e0162003067565b98505060606200355b8d828e016200346b565b97505060806200356e8d828e0162003428565b96505060a0620035818d828e016200346b565b95505060c08b013567ffffffffffffffff811115620035a557620035a462003048565b5b620035b38d828e016200348c565b945094505060e0620035c88d828e0162003428565b925050610100620035dc8d828e0162003428565b9150509295989b9194979a5092959850565b6000806000806000806000806000806101208b8d03121562003615576200361462003043565b5b6000620036258d828e0162003067565b9a50506020620036388d828e0162003067565b99505060406200364b8d828e0162003067565b98505060606200365e8d828e0162003067565b9750506080620036718d828e016200346b565b96505060a0620036848d828e016200346b565b95505060c0620036978d828e0162003067565b94505060e08b013567ffffffffffffffff811115620036bb57620036ba62003048565b5b620036c98d828e016200348c565b9350935050610100620036df8d828e0162003067565b9150509295989b9194979a5092959850565b620036fc816200343f565b82525050565b6000602082019050620037196000830184620036f1565b92915050565b60006020828403121562003738576200373762003043565b5b600062003748848285016200346b565b91505092915050565b600082825260208201905092915050565b7f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060008201527f64656c656761746563616c6c0000000000000000000000000000000000000000602082015250565b6000620037c0602c8362003751565b9150620037cd8262003762565b604082019050919050565b60006020820190508181036000830152620037f381620037b1565b9050919050565b7f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060008201527f6163746976652070726f78790000000000000000000000000000000000000000602082015250565b600062003858602c8362003751565b91506200386582620037fa565b604082019050919050565b600060208201905081810360008301526200388b8162003849565b9050919050565b7f555550535570677261646561626c653a206d757374206e6f742062652063616c60008201527f6c6564207468726f7567682064656c656761746563616c6c0000000000000000602082015250565b6000620038f060388362003751565b9150620038fd8262003892565b604082019050919050565b600060208201905081810360008301526200392381620038e1565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600062003966826200334d565b915062003973836200334d565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115620039ab57620039aa6200392a565b5b828201905092915050565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b600062003a14602e8362003751565b915062003a2182620039b6565b604082019050919050565b6000602082019050818103600083015262003a478162003a05565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600062003a8a826200334d565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141562003ac05762003abf6200392a565b5b600182019050919050565b6000819050919050565b600060ff82169050919050565b600062003b0362003afd62003af78462003acb565b62002f6f565b62003ad5565b9050919050565b62003b158162003ae2565b82525050565b600060208201905062003b32600083018462003b0a565b92915050565b62003b438162003315565b811462003b4f57600080fd5b50565b60008151905062003b638162003b38565b92915050565b60006020828403121562003b825762003b8162003043565b5b600062003b928482850162003b52565b91505092915050565b7f45524331393637557067726164653a206e657720696d706c656d656e7461746960008201527f6f6e206973206e6f742055555053000000000000000000000000000000000000602082015250565b600062003bf9602e8362003751565b915062003c068262003b9b565b604082019050919050565b6000602082019050818103600083015262003c2c8162003bea565b9050919050565b7f45524331393637557067726164653a20756e737570706f727465642070726f7860008201527f6961626c65555549440000000000000000000000000000000000000000000000602082015250565b600062003c9160298362003751565b915062003c9e8262003c33565b604082019050919050565b6000602082019050818103600083015262003cc48162003c82565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b600062003d0360108362003751565b915062003d108262003ccb565b602082019050919050565b6000602082019050818103600083015262003d368162003cf4565b9050919050565b600082825260208201905092915050565b50565b600062003d6060008362003d3d565b915062003d6d8262003d4e565b600082019050919050565b600060408201905062003d8f60008301846200300b565b818103602083015262003da28162003d51565b905092915050565b600062003db7826200343f565b915062003dc4836200343f565b92508282101562003dda5762003dd96200392a565b5b828203905092915050565b600062003df2826200343f565b915062003dff836200343f565b92508165ffffffffffff048311821515161562003e215762003e206200392a565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600062003e68826200343f565b915062003e75836200343f565b92508262003e885762003e8762003e2c565b5b828204905092915050565b62003e9e8162002ff7565b82525050565b62003eaf816200334d565b82525050565b62003ec0816200343f565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600062003f00838362003e93565b60208301905092915050565b6000602082019050919050565b600062003f268262003ec6565b62003f32818562003ed1565b935062003f3f8362003ee2565b8060005b8381101562003f7657815162003f5a888262003ef2565b975062003f678362003f0c565b92505060018101905062003f43565b5085935050505092915050565b60006101808301600083015162003f9e600086018262003e93565b50602083015162003fb3602086018262003ea4565b50604083015162003fc8604086018262003e93565b50606083015162003fdd606086018262003e93565b50608083015162003ff2608086018262003eb5565b5060a083015184820360a08601526200400c828262003f19565b91505060c08301516200402360c086018262003eb5565b5060e08301516200403860e086018262003eb5565b506101008301516200404f61010086018262003e93565b506101208301516200406661012086018262003e93565b506101408301516200407d61014086018262003e93565b506101608301516200409461016086018262003ea4565b508091505092915050565b60006020820190508181036000830152620040bb818462003f83565b905092915050565b600082825260208201905092915050565b6000620040e18262003ec6565b620040ed8185620040c3565b9350620040fa8362003ee2565b8060005b838110156200413157815162004115888262003ef2565b9750620041228362003f0c565b925050600181019050620040fe565b5085935050505092915050565b60006101208201905062004156600083018c6200300b565b62004165602083018b6200300b565b62004174604083018a62003357565b6200418360608301896200300b565b6200419260808301886200300b565b620041a160a0830187620036f1565b620041b060c0830186620036f1565b620041bf60e0830185620036f1565b818103610100830152620041d48184620040d4565b90509a9950505050505050505050565b6000606082019050620041fb60008301866200300b565b6200420a6020830185620036f1565b62004219604083018462003357565b949350505050565b7f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960008201527f6e697469616c697a696e67000000000000000000000000000000000000000000602082015250565b60006200427f602b8362003751565b91506200428c8262004221565b604082019050919050565b60006020820190508181036000830152620042b28162004270565b9050919050565b7f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60008201527f6f74206120636f6e747261637400000000000000000000000000000000000000602082015250565b600062004317602d8362003751565b91506200432482620042b9565b604082019050919050565b600060208201905081810360008301526200434a8162004308565b9050919050565b6000815190506200436281620030ea565b92915050565b60006020828403121562004381576200438062003043565b5b6000620043918482850162004351565b91505092915050565b600081519050620043ab816200304d565b92915050565b600060208284031215620043ca57620043c962003043565b5b6000620043da848285016200439a565b91505092915050565b600081519050620043f4816200340e565b92915050565b6000815190506200440b8162003451565b92915050565b600080600080600060a0868803121562004430576200442f62003043565b5b60006200444088828901620043e3565b95505060206200445388828901620043e3565b94505060406200446688828901620043fa565b93505060606200447988828901620043fa565b92505060806200448c88828901620043fa565b9150509295509295909350565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000620044d160148362003751565b9150620044de8262004499565b602082019050919050565b600060208201905081810360008301526200450481620044c2565b9050919050565b7f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60008201527f6e74726163740000000000000000000000000000000000000000000000000000602082015250565b60006200456960268362003751565b915062004576826200450b565b604082019050919050565b600060208201905081810360008301526200459c816200455a565b9050919050565b600081519050919050565b600081905092915050565b60005b83811015620045d9578082015181840152602081019050620045bc565b83811115620045e9576000848401525b50505050565b6000620045fc82620045a3565b620046088185620045ae565b93506200461a818560208601620045b9565b80840191505092915050565b6000620046348284620045ef565b915081905092915050565b600081519050919050565b600062004657826200463f565b62004663818562003751565b935062004675818560208601620045b9565b620046808162003157565b840191505092915050565b60006020820190508181036000830152620046a781846200464a565b90509291505056fe608060405260405162000c7938038062000c7983398181016040528101906200002991906200056a565b6200003d828260006200004560201b60201c565b5050620007e7565b62000056836200008860201b60201c565b600082511180620000645750805b156200008357620000818383620000df60201b620000371760201c565b505b505050565b62000099816200011560201b60201c565b8073ffffffffffffffffffffffffffffffffffffffff167fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b60405160405180910390a250565b60606200010d838360405180606001604052806027815260200162000c5260279139620001eb60201b60201c565b905092915050565b6200012b81620002cf60201b620000641760201c565b6200016d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001649062000657565b60405180910390fd5b80620001a77f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b620002f260201b620000871760201c565b60000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6060620001fe84620002cf60201b60201c565b62000240576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200023790620006ef565b60405180910390fd5b6000808573ffffffffffffffffffffffffffffffffffffffff16856040516200026a91906200075e565b600060405180830381855af49150503d8060008114620002a7576040519150601f19603f3d011682016040523d82523d6000602084013e620002ac565b606091505b5091509150620002c4828286620002fc60201b60201c565b925050509392505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000819050919050565b606083156200030e5782905062000361565b600083511115620003225782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620003589190620007c3565b60405180910390fd5b9392505050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620003a9826200037c565b9050919050565b620003bb816200039c565b8114620003c757600080fd5b50565b600081519050620003db81620003b0565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200043682620003eb565b810181811067ffffffffffffffff82111715620004585762000457620003fc565b5b80604052505050565b60006200046d62000368565b90506200047b82826200042b565b919050565b600067ffffffffffffffff8211156200049e576200049d620003fc565b5b620004a982620003eb565b9050602081019050919050565b60005b83811015620004d6578082015181840152602081019050620004b9565b83811115620004e6576000848401525b50505050565b600062000503620004fd8462000480565b62000461565b905082815260208101848484011115620005225762000521620003e6565b5b6200052f848285620004b6565b509392505050565b600082601f8301126200054f576200054e620003e1565b5b815162000561848260208601620004ec565b91505092915050565b6000806040838503121562000584576200058362000372565b5b60006200059485828601620003ca565b925050602083015167ffffffffffffffff811115620005b857620005b762000377565b5b620005c68582860162000537565b9150509250929050565b600082825260208201905092915050565b7f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60008201527f6f74206120636f6e747261637400000000000000000000000000000000000000602082015250565b60006200063f602d83620005d0565b91506200064c82620005e1565b604082019050919050565b60006020820190508181036000830152620006728162000630565b9050919050565b7f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60008201527f6e74726163740000000000000000000000000000000000000000000000000000602082015250565b6000620006d7602683620005d0565b9150620006e48262000679565b604082019050919050565b600060208201905081810360008301526200070a81620006c8565b9050919050565b600081519050919050565b600081905092915050565b6000620007348262000711565b6200074081856200071c565b935062000752818560208601620004b6565b80840191505092915050565b60006200076c828462000727565b915081905092915050565b600081519050919050565b60006200078f8262000777565b6200079b8185620005d0565b9350620007ad818560208601620004b6565b620007b881620003eb565b840191505092915050565b60006020820190508181036000830152620007df818462000782565b905092915050565b61045b80620007f76000396000f3fe6080604052366100135761001161001d565b005b61001b61001d565b005b610025610091565b610035610030610093565b6100a2565b565b606061005c83836040518060600160405280602781526020016103ff602791396100c8565b905092915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000819050919050565b565b600061009d610195565b905090565b3660008037600080366000845af43d6000803e80600081146100c3573d6000f35b3d6000fd5b60606100d384610064565b610112576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610109906102d6565b60405180910390fd5b6000808573ffffffffffffffffffffffffffffffffffffffff168560405161013a9190610370565b600060405180830381855af49150503d8060008114610175576040519150601f19603f3d011682016040523d82523d6000602084013e61017a565b606091505b509150915061018a8282866101ec565b925050509392505050565b60006101c37f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b610087565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606083156101fc5782905061024c565b60008351111561020f5782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161024391906103dc565b60405180910390fd5b9392505050565b600082825260208201905092915050565b7f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60008201527f6e74726163740000000000000000000000000000000000000000000000000000602082015250565b60006102c0602683610253565b91506102cb82610264565b604082019050919050565b600060208201905081810360008301526102ef816102b3565b9050919050565b600081519050919050565b600081905092915050565b60005b8381101561032a57808201518184015260208101905061030f565b83811115610339576000848401525b50505050565b600061034a826102f6565b6103548185610301565b935061036481856020860161030c565b80840191505092915050565b600061037c828461033f565b915081905092915050565b600081519050919050565b6000601f19601f8301169050919050565b60006103ae82610387565b6103b88185610253565b93506103c881856020860161030c565b6103d181610392565b840191505092915050565b600060208201905081810360008301526103f681846103a3565b90509291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220b747b55ec68e87c26e26d05be27fee54922335ec140d25203bd1f41ff7e53ce164736f6c634300080b0033416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220d790d06e335a10dec0a4a851b3aa46131f938b489341a35c39befa503912ee1464736f6c634300080b0033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
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.