Contract
0x86169239aeeEdefb9A571c952B809F2681c0e209
13
Contract Overview
Balance:
0 ETH
EtherValue:
$0.00
My Name Tag:
Not Available, login to update
Txn Hash | Method |
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
0x874b5cf1753d57d931d63b509020442c151a3f37e40e892d07350b81b4f48fbb | Transfer Ownersh... | 25637564 | 366 days 17 hrs ago | 0x8ca573430fd584065c080ff1d2ea1a8dfb259ae8 | IN | 0x86169239aeeedefb9a571c952b809f2681c0e209 | 0 ETH | 0.000042953241 | |
0x93b6df63a16ba918a6797bea6796245d8a701efc4eccbbb7de2b0ce111412721 | 0x61010060 | 25603897 | 366 days 23 hrs ago | 0x8ca573430fd584065c080ff1d2ea1a8dfb259ae8 | IN | Create: BinaryComboLock | 0 ETH | 0.002913875864 |
[ Download CSV Export ]
Contract Name:
BinaryComboLock
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
Yes with 10000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GNU-GPL v3.0 or later pragma solidity ^0.8.0; import "../../interfaces/IAddressRegistry.sol"; import "../../interfaces/IRevest.sol"; import "../../interfaces/ITokenVault.sol"; import "../../interfaces/IOracleDispatch.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; import "../../utils/SecuredAddressLock.sol"; /** * @title * @dev */ contract BinaryComboLock is SecuredAddressLock, ERC165 { string public metadataURI = "https://revest.mypinata.cloud/ipfs/QmQMVXytJCebqKVbo4iMyU4gRuG5pUAdCKgf5UbZf51tAc"; constructor(address registry) SecuredAddressLock(registry) {} mapping (uint => ComboLock) private locks; struct ComboLock { uint endTime; uint unlockValue; bool unlockRisingEdge; bool isAnd; address asset1; address asset2; address oracle; } using SafeERC20 for IERC20; function supportsInterface(bytes4 interfaceId) public view override(ERC165, IERC165) returns (bool) { return interfaceId == type(IAddressLock).interfaceId || interfaceId == type(IRegistryProvider).interfaceId || super.supportsInterface(interfaceId); } function isUnlockable(uint , uint lockId) public view override returns (bool) { ComboLock memory lock = locks[lockId]; if(lock.isAnd) { return block.timestamp > lock.endTime && getLockMaturity(lockId); } else { // Or return block.timestamp > lock.endTime || getLockMaturity(lockId); } } // Create the lock within that contract DURING minting // Likely will be best-practices to call this AFTER minting, once we know that fnftId is set function createLock(uint, uint lockId, bytes memory arguments) external override onlyRevestController { uint endTime; uint unlockValue; bool unlockRisingEdge; bool isAnd; address asset1; address asset2; address oracleAdd; (endTime, unlockValue, unlockRisingEdge, isAnd, asset1, asset2, oracleAdd) = abi.decode(arguments, (uint, uint, bool, bool, address, address, address)); ComboLock memory combo = ComboLock(endTime, unlockValue, unlockRisingEdge, isAnd, asset1, asset2, oracleAdd); IOracleDispatch oracle = IOracleDispatch(oracleAdd); bool oraclePresent = oracle.getPairHasOracle(asset1, asset2); //If the oracle is not present, attempt to initialize it if(!oraclePresent && oracle.oracleNeedsInitialization(asset1, asset2)) { oraclePresent = oracle.initializeOracle(asset1, asset2); } require(oraclePresent, "E049"); locks[lockId] = combo; } function updateLock(uint, uint lockId, bytes memory ) external override { // For a combo lock, there are no arguments IOracleDispatch oracle = IOracleDispatch(locks[lockId].oracle); oracle.updateOracle(locks[lockId].asset1, locks[lockId].asset2); } function needsUpdate() external pure override returns (bool) { return true; } function getDisplayValues(uint, uint lockId) external view override returns (bytes memory) { ComboLock memory lockDetails = locks[lockId]; IOracleDispatch oracle = IOracleDispatch(locks[lockId].oracle); bool needsUpdateNow = oracle.oracleNeedsUpdates(lockDetails.asset1, lockDetails.asset2); if(needsUpdateNow) { uint twapPrice = oracle.getValueOfAsset(lockDetails.asset1, lockDetails.asset2, lockDetails.unlockRisingEdge); uint instantPrice = oracle.getInstantPrice(lockDetails.asset1, lockDetails.asset2); if(lockDetails.unlockRisingEdge) { needsUpdateNow = instantPrice > lockDetails.unlockValue && twapPrice < lockDetails.unlockValue; } else { needsUpdateNow = instantPrice < lockDetails.unlockValue && twapPrice > lockDetails.unlockValue; } } return abi.encode(lockDetails.endTime, lockDetails.unlockValue, lockDetails.unlockRisingEdge, lockDetails.isAnd, lockDetails.asset1, lockDetails.asset2, lockDetails.oracle, needsUpdateNow); } function setMetadata(string memory _metadataURI) external onlyOwner { metadataURI = _metadataURI; } function getMetadata() external view override returns (string memory) { return metadataURI; } function getValueLockMaturity(uint lockId) internal returns (bool) { if(getLockMaturity(lockId)) { return true; } else { IOracleDispatch oracle = IOracleDispatch(locks[lockId].oracle); return oracle.updateOracle(locks[lockId].asset1, locks[lockId].asset2) && getLockMaturity(lockId); } } function getLockMaturity(uint lockId) internal view returns (bool) { IOracleDispatch oracle = IOracleDispatch(locks[lockId].oracle); // Will not trigger an update bool rising = locks[lockId].unlockRisingEdge; uint currentValue = oracle.getValueOfAsset(locks[lockId].asset1, locks[lockId].asset2, rising); // Perform comparison if (rising) { return currentValue >= locks[lockId].unlockValue; } else { // Only mature if current value less than unlock value return currentValue < locks[lockId].unlockValue; } } }
// SPDX-License-Identifier: GNU-GPL v3.0 or later pragma solidity >=0.8.0; /** * @title Provider interface for Revest FNFTs * @dev * */ interface IAddressRegistry { function initialize( address lock_manager_, address liquidity_, address revest_token_, address token_vault_, address revest_, address fnft_, address metadata_, address admin_, address rewards_ ) external; function getAdmin() external view returns (address); function setAdmin(address admin) external; function getLockManager() external view returns (address); function setLockManager(address manager) external; function getTokenVault() external view returns (address); function setTokenVault(address vault) external; function getRevestFNFT() external view returns (address); function setRevestFNFT(address fnft) external; function getMetadataHandler() external view returns (address); function setMetadataHandler(address metadata) external; function getRevest() external view returns (address); function setRevest(address revest) external; function getDEX(uint index) external view returns (address); function setDex(address dex) external; function getRevestToken() external view returns (address); function setRevestToken(address token) external; function getRewardsHandler() external view returns(address); function setRewardsHandler(address esc) external; function getAddress(bytes32 id) external view returns (address); function getLPs() external view returns (address); function setLPs(address liquidToken) external; }
// SPDX-License-Identifier: GNU-GPL v3.0 or later pragma solidity >=0.8.0; interface IRevest { event FNFTTimeLockMinted( address indexed asset, address indexed from, uint indexed fnftId, uint endTime, uint[] quantities, FNFTConfig fnftConfig ); event FNFTValueLockMinted( address indexed asset, address indexed from, uint indexed fnftId, address compareTo, address oracleDispatch, uint[] quantities, FNFTConfig fnftConfig ); event FNFTAddressLockMinted( address indexed asset, address indexed from, uint indexed fnftId, address trigger, uint[] quantities, FNFTConfig fnftConfig ); event FNFTWithdrawn( address indexed from, uint indexed fnftId, uint indexed quantity ); event FNFTSplit( address indexed from, uint[] indexed newFNFTId, uint[] indexed proportions, uint quantity ); event FNFTUnlocked( address indexed from, uint indexed fnftId ); event FNFTMaturityExtended( address indexed from, uint indexed fnftId, uint indexed newExtendedTime ); event FNFTAddionalDeposited( address indexed from, uint indexed newFNFTId, uint indexed quantity, uint amount ); struct FNFTConfig { address asset; // The token being stored address pipeToContract; // Indicates if FNFT will pipe to another contract uint depositAmount; // How many tokens uint depositMul; // Deposit multiplier uint split; // Number of splits remaining uint depositStopTime; // bool maturityExtension; // Maturity extensions remaining bool isMulti; // bool nontransferrable; // False by default (transferrable) // } // Refers to the global balance for an ERC20, encompassing possibly many FNFTs struct TokenTracker { uint lastBalance; uint lastMul; } enum LockType { DoesNotExist, TimeLock, ValueLock, AddressLock } struct LockParam { address addressLock; uint timeLockExpiry; LockType lockType; ValueLock valueLock; } struct Lock { address addressLock; LockType lockType; ValueLock valueLock; uint timeLockExpiry; uint creationTime; bool unlocked; } struct ValueLock { address asset; address compareTo; address oracle; uint unlockValue; bool unlockRisingEdge; } function mintTimeLock( uint endTime, address[] memory recipients, uint[] memory quantities, IRevest.FNFTConfig memory fnftConfig ) external payable returns (uint); function mintValueLock( address primaryAsset, address compareTo, uint unlockValue, bool unlockRisingEdge, address oracleDispatch, address[] memory recipients, uint[] memory quantities, IRevest.FNFTConfig memory fnftConfig ) external payable returns (uint); function mintAddressLock( address trigger, bytes memory arguments, address[] memory recipients, uint[] memory quantities, IRevest.FNFTConfig memory fnftConfig ) external payable returns (uint); function withdrawFNFT(uint tokenUID, uint quantity) external; function unlockFNFT(uint tokenUID) external; function splitFNFT( uint fnftId, uint[] memory proportions, uint quantity ) external returns (uint[] memory newFNFTIds); function depositAdditionalToFNFT( uint fnftId, uint amount, uint quantity ) external returns (uint); function extendFNFTMaturity( uint fnftId, uint endTime ) external returns (uint); function setFlatWeiFee(uint wethFee) external; function setERC20Fee(uint erc20) external; function getFlatWeiFee() external view returns (uint); function getERC20Fee() external view returns (uint); }
// SPDX-License-Identifier: GNU-GPL v3.0 or later pragma solidity >=0.8.0; import "./IRevest.sol"; interface ITokenVault { function createFNFT( uint fnftId, IRevest.FNFTConfig memory fnftConfig, uint quantity, address from ) external; function withdrawToken( uint fnftId, uint quantity, address user ) external; function depositToken( uint fnftId, uint amount, uint quantity ) external; function cloneFNFTConfig(IRevest.FNFTConfig memory old) external returns (IRevest.FNFTConfig memory); function mapFNFTToToken( uint fnftId, IRevest.FNFTConfig memory fnftConfig ) external; function handleMultipleDeposits( uint fnftId, uint newFNFTId, uint amount ) external; function splitFNFT( uint fnftId, uint[] memory newFNFTIds, uint[] memory proportions, uint quantity ) external; function getFNFT(uint fnftId) external view returns (IRevest.FNFTConfig memory); function getFNFTCurrentValue(uint fnftId) external view returns (uint); function getNontransferable(uint fnftId) external view returns (bool); function getSplitsRemaining(uint fnftId) external view returns (uint); }
// SPDX-License-Identifier: GNU-GPL v3.0 or later pragma solidity >=0.8.0; interface IOracleDispatch { // Attempts to update oracle and returns true if successful. Returns true if update unnecessary function updateOracle(address asset, address compareTo) external returns (bool); // Will return true if oracle does not need to be poked or if poke was successful function pokeOracle(address asset, address compareTo) external returns (bool); // Will return true if oracle already initialized, if oracle has successfully been initialized by this call, // or if oracle does not need to be initialized function initializeOracle(address asset, address compareTo) external returns (bool); // Gets the value of the asset // Oracle = the oracle address in specific. Optional parameter // Inverted pair = whether or not this call represents an inversion of typical type (ERC20 underlying, USDC compareTo) to (USDC underlying, ERC20 compareTo) // Must take inverse of value in this case to get REAL value function getValueOfAsset( address asset, address compareTo, bool risingEdge ) external view returns (uint); // Does this oracle need to be updated prior to our reading the price? // Return false if we are within desired time period // Or if this type of oracle does not require updates function oracleNeedsUpdates(address asset, address compareTo) external view returns (bool); // Does this oracle need to be poked prior to update and withdrawal? function oracleNeedsPoking(address asset, address compareTo) external view returns (bool); function oracleNeedsInitialization(address asset, address compareTo) external view returns (bool); //Only ever called if oracle needs initialization function canOracleBeCreatedForRoute(address asset, address compareTo) external view returns (bool); // How long to wait after poking the oracle before you can update it again and withdraw function getTimePeriodAfterPoke(address asset, address compareTo) external view returns (uint); // Returns a direct reference to the address that the specific contract for this pair is registered at function getOracleForPair(address asset, address compareTo) external view returns (address); // Returns a boolean if this oracle can provide data for the requested pair, used during FNFT creation function getPairHasOracle(address asset, address compareTo) external view returns (bool); //Returns the instantaneous price of asset and the decimals for that price function getInstantPrice(address asset, address compareTo) external view returns (uint); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `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); /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: GNU-GPL v3.0 or later pragma solidity ^0.8.0; import "../interfaces/IAddressLock.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; abstract contract SecuredAddressLock is IAddressLock, Ownable { IAddressRegistry public addressesProvider; constructor(address provider) Ownable() { addressesProvider = IAddressRegistry(provider); } function setAddressRegistry(address registry) external override onlyOwner { addressesProvider = IAddressRegistry(registry); } function getAddressRegistry() external view override returns (address) { return address(addressesProvider); } modifier onlyLockManager() { require(_msgSender() != address(0), "E004"); require(_msgSender() == addressesProvider.getLockManager(), 'E074'); _; } modifier onlyRevestController() { require(_msgSender() != address(0), "E004"); require(_msgSender() == addressesProvider.getRevest(), "E017"); _; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.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 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: GNU-GPL v3.0 or later pragma solidity >=0.8.0; import "./IRegistryProvider.sol"; import '@openzeppelin/contracts/utils/introspection/IERC165.sol'; /** * @title Provider interface for Revest FNFTs * @dev Address locks MUST be non-upgradeable to be considered for trusted status * @author Revest */ interface IAddressLock is IRegistryProvider, IERC165{ /// Creates a lock to the specified lockID /// @param fnftId the fnftId to map this lock to. Not recommended for typical locks, as it will break on splitting /// @param lockId the lockId to map this lock to. Recommended uint for storing references to lock configurations /// @param arguments an abi.encode() bytes array. Allows frontend to encode and pass in an arbitrary set of parameters /// @dev creates a lock for the specified lockId. Will be called during the creation process for address locks when the address /// of a contract implementing this interface is passed in as the "trigger" address for minting an address lock. The bytes /// representing any parameters this lock requires are passed through to this method, where abi.decode must be call on them function createLock(uint fnftId, uint lockId, bytes memory arguments) external; /// Updates a lock at the specified lockId /// @param fnftId the fnftId that can map to a lock config stored in implementing contracts. Not recommended, as it will break on splitting /// @param lockId the lockId that maps to the lock config which should be updated. Recommended for retrieving references to lock configurations /// @param arguments an abi.encode() bytes array. Allows frontend to encode and pass in an arbitrary set of parameters /// @dev updates a lock for the specified lockId. Will be called by the frontend from the information section if an update is requested /// can further accept and decode parameters to use in modifying the lock's config or triggering other actions /// such as triggering an on-chain oracle to update function updateLock(uint fnftId, uint lockId, bytes memory arguments) external; /// Whether or not the lock can be unlocked /// @param fnftId the fnftId that can map to a lock config stored in implementing contracts. Not recommended, as it will break on splitting /// @param lockId the lockId that maps to the lock config which should be updated. Recommended for retrieving references to lock configurations /// @dev this method is called during the unlocking and withdrawal processes by the Revest contract - it is also used by the frontend /// if this method is returning true and someone attempts to unlock or withdraw from an FNFT attached to the requested lock, the request will succeed /// @return whether or not this lock may be unlocked function isUnlockable(uint fnftId, uint lockId) external view returns (bool); /// Provides an encoded bytes arary that represents values this lock wants to display on the info screen /// Info to decode these values is provided in the metadata file /// @param fnftId the fnftId that can map to a lock config stored in implementing contracts. Not recommended, as it will break on splitting /// @param lockId the lockId that maps to the lock config which should be updated. Recommended for retrieving references to lock configurations /// @dev used by the frontend to fetch on-chain data on the state of any given lock /// @return a bytes array that represents the result of calling abi.encode on values which the developer wants to appear on the frontend function getDisplayValues(uint fnftId, uint lockId) external view returns (bytes memory); /// Maps to a URL, typically IPFS-based, that contains information on how to encode and decode paramters sent to and from this lock /// Please see additional documentation for JSON config info /// @dev this method will be called by the frontend only but is crucial to properly implement for proper minting and information workflows /// @return a URL to the JSON file containing this lock's metadata schema function getMetadata() external view returns (string memory); /// Whether or not this lock will need updates and should display the option for them /// @dev this will be called by the frontend to determine if update inputs and buttons should be displayed /// @return whether or not the locks created by this contract will need updates function needsUpdate() external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: GNU-GPL v3.0 or later pragma solidity ^0.8.0; import "../interfaces/IAddressRegistry.sol"; import "../interfaces/ITokenVault.sol"; import "../interfaces/ILockManager.sol"; interface IRegistryProvider { function setAddressRegistry(address revest) external; function getAddressRegistry() external view returns (address); }
// SPDX-License-Identifier: GNU-GPL v3.0 or later pragma solidity >=0.8.0; import "./IRevest.sol"; interface ILockManager { function createLock(uint fnftId, IRevest.LockParam memory lock) external returns (uint); function getLock(uint lockId) external view returns (IRevest.Lock memory); function fnftIdToLockId(uint fnftId) external view returns (uint); function fnftIdToLock(uint fnftId) external view returns (IRevest.Lock memory); function pointFNFTToLock(uint fnftId, uint lockId) external; function lockTypes(uint tokenId) external view returns (IRevest.LockType); function unlockFNFT(uint fnftId, address sender) external returns (bool); function getLockMaturity(uint fnftId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
{ "metadata": { "bytecodeHash": "none", "useLiteralContent": true }, "optimizer": { "enabled": true, "runs": 10000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"registry","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"addressesProvider","outputs":[{"internalType":"contract IAddressRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"lockId","type":"uint256"},{"internalType":"bytes","name":"arguments","type":"bytes"}],"name":"createLock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAddressRegistry","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"lockId","type":"uint256"}],"name":"getDisplayValues","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMetadata","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"lockId","type":"uint256"}],"name":"isUnlockable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metadataURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"needsUpdate","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"registry","type":"address"}],"name":"setAddressRegistry","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_metadataURI","type":"string"}],"name":"setMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"lockId","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"updateLock","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6101006040526051608081815290620019e860a03980516200002a91600291602090910190620000de565b503480156200003857600080fd5b5060405162001a3938038062001a398339810160408190526200005b9162000184565b8062000067336200008e565b600180546001600160a01b0319166001600160a01b039290921691909117905550620001f2565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054620000ec90620001b6565b90600052602060002090601f0160209004810192826200011057600085556200015b565b82601f106200012b57805160ff19168380011785556200015b565b828001600101855582156200015b579182015b828111156200015b5782518255916020019190600101906200013e565b50620001699291506200016d565b5090565b5b808211156200016957600081556001016200016e565b6000602082840312156200019757600080fd5b81516001600160a01b0381168114620001af57600080fd5b9392505050565b600181811c90821680620001cb57607f821691505b602082108103620001ec57634e487b7160e01b600052602260045260246000fd5b50919050565b6117e680620002026000396000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c8063715018a6116100975780638da5cb5b116100665780638da5cb5b146101ee578063a49a1e7d1461020c578063c72c4d101461021f578063f2fde38b1461023f57600080fd5b8063715018a61461018c5780637a5b4f59146101945780637e3c2ad81461019c5780638d9d6705146101af57600080fd5b8063175cec23116100d3578063175cec231461014c5780631c8478161461015f57806327c7812c14610172578063346c94091461018557600080fd5b806301ffc9a7146100fa57806303ee438c14610122578063045c225514610137575b600080fd5b61010d6101083660046113fe565b610252565b60405190151581526020015b60405180910390f35b61012a610337565b60405161011991906114b2565b61014a610145366004611588565b6103c5565b005b61010d61015a3660046115ec565b610490565b61014a61016d366004611588565b610548565b61014a610180366004611630565b610ac8565b600161010d565b61014a610b90565b61012a610c1d565b61012a6101aa3660046115ec565b610caf565b60015473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610119565b60005473ffffffffffffffffffffffffffffffffffffffff166101c9565b61014a61021a36600461164d565b611014565b6001546101c99073ffffffffffffffffffffffffffffffffffffffff1681565b61014a61024d366004611630565b6110ac565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f3f8f47e80000000000000000000000000000000000000000000000000000000014806102e557507fffffffff0000000000000000000000000000000000000000000000000000000082167faa5ae62900000000000000000000000000000000000000000000000000000000145b8061033157507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b600280546103449061169e565b80601f01602080910402602001604051908101604052809291908181526020018280546103709061169e565b80156103bd5780601f10610392576101008083540402835291602001916103bd565b820191906000526020600020905b8154815290600101906020018083116103a057829003601f168201915b505050505081565b6000828152600360208190526040918290206004808201546002830154929093015493517f83d998ae00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff620100009093048316918101919091529281166024840152169081906383d998ae906044016020604051808303816000875af1158015610465573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104899190611706565b5050505050565b6000818152600360208181526040808420815160e08101835281548152600182015493810193909352600281015460ff8082161515938501939093526101008104909216158015606085015273ffffffffffffffffffffffffffffffffffffffff620100009093048316608085015293810154821660a0840152600401541660c0820152906105355780514211801561052d575061052d836111dc565b915050610331565b805142118061052d575061052d836111dc565b336105ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105b19060208082526004908201527f4530303400000000000000000000000000000000000000000000000000000000604082015260600190565b60405180910390fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f97e7d746040518163ffffffff1660e01b8152600401602060405180830381865afa158015610627573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061064b9190611721565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146106e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105b19060208082526004908201527f4530313700000000000000000000000000000000000000000000000000000000604082015260600190565b600080600080600080600087806020019051810190610700919061173e565b6040805160e0810182528881526020810188905286151581830152851515606082015273ffffffffffffffffffffffffffffffffffffffff8581166080830181905285821660a0840181905291851660c0840181905293517f41669cfa00000000000000000000000000000000000000000000000000000000815260048101919091526024810191909152989f50969d50949b5092995090975095509350909183916000916341669cfa90604401602060405180830381865afa1580156107cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ef9190611706565b90508015801561089257506040517ffae160a300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8781166004830152868116602483015283169063fae160a390604401602060405180830381865afa15801561086e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108929190611706565b15610934576040517f3f91c3a500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff87811660048301528681166024830152831690633f91c3a5906044016020604051808303816000875af115801561090d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109319190611706565b90505b8061099d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105b19060208082526004908201527f4530343900000000000000000000000000000000000000000000000000000000604082015260600190565b50506000998a526003602081815260409b8c9020835181559083015160018201559a82015160028c0180546060850151608086015173ffffffffffffffffffffffffffffffffffffffff90811662010000027fffffffffffffffffffff0000000000000000000000000000000000000000ffff921515610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff961515969096167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000090941693909317949094171617905560a0830151918c0180549282167fffffffffffffffffffffffff000000000000000000000000000000000000000093841617905560c0909201516004909b0180549b9092169a1699909917909855505050505050505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610b49576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105b1565b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60005473ffffffffffffffffffffffffffffffffffffffff163314610c11576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105b1565b610c1b60006112f0565b565b606060028054610c2c9061169e565b80601f0160208091040260200160405190810160405280929190818152602001828054610c589061169e565b8015610ca55780601f10610c7a57610100808354040283529160200191610ca5565b820191906000526020600020905b815481529060010190602001808311610c8857829003601f168201915b5050505050905090565b6000818152600360208181526040808420815160e08101835281548152600182015481850152600282015460ff808216151583860152610100820416151560608084019190915273ffffffffffffffffffffffffffffffffffffffff6201000090920482166080840190815284880154831660a08501908152600495860154841660c086018190528b8b529890975251955194517fb1f0ae980000000000000000000000000000000000000000000000000000000081529582169386019390935292909216602484015293909291829063b1f0ae9890604401602060405180830381865afa158015610da5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dc99190611706565b90508015610f7057608083015160a084015160408086015190517f56167a5500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff93841660048201529183166024830152151560448201526000918416906356167a5590606401602060405180830381865afa158015610e5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e8291906117c0565b608085015160a08601516040517fa9afbd8000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff928316600482015290821660248201529192506000919085169063a9afbd8090604401602060405180830381865afa158015610f07573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f2b91906117c0565b9050846040015115610f5457846020015181118015610f4d5750846020015182105b9250610f6d565b846020015181108015610f6a5750846020015182115b92505b50505b826000015183602001518460400151856060015186608001518760a001518860c0015187604051602001610ffa98979695949392919097885260208801969096529315156040870152911515606086015273ffffffffffffffffffffffffffffffffffffffff908116608086015290811660a08501521660c0830152151560e08201526101000190565b604051602081830303815290604052935050505092915050565b60005473ffffffffffffffffffffffffffffffffffffffff163314611095576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105b1565b80516110a8906002906020840190611365565b5050565b60005473ffffffffffffffffffffffffffffffffffffffff16331461112d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105b1565b73ffffffffffffffffffffffffffffffffffffffff81166111d0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016105b1565b6111d9816112f0565b50565b60008181526003602081905260408083206004808201546002830154929094015492517f56167a5500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff620100008404811692820192909252928116602484015260ff909116801515604484015292169190839083906356167a5590606401602060405180830381865afa158015611289573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112ad91906117c0565b905081156112d35760009485526003602052604090942060010154909310159392505050565b600094855260036020526040909420600101549093109392505050565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8280546113719061169e565b90600052602060002090601f01602090048101928261139357600085556113d9565b82601f106113ac57805160ff19168380011785556113d9565b828001600101855582156113d9579182015b828111156113d95782518255916020019190600101906113be565b506113e59291506113e9565b5090565b5b808211156113e557600081556001016113ea565b60006020828403121561141057600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461144057600080fd5b9392505050565b6000815180845260005b8181101561146d57602081850181015186830182015201611451565b8181111561147f576000602083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6020815260006114406020830184611447565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600067ffffffffffffffff8084111561150f5761150f6114c5565b604051601f85017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908282118183101715611555576115556114c5565b8160405280935085815286868601111561156e57600080fd5b858560208301376000602087830101525050509392505050565b60008060006060848603121561159d57600080fd5b8335925060208401359150604084013567ffffffffffffffff8111156115c257600080fd5b8401601f810186136115d357600080fd5b6115e2868235602084016114f4565b9150509250925092565b600080604083850312156115ff57600080fd5b50508035926020909101359150565b73ffffffffffffffffffffffffffffffffffffffff811681146111d957600080fd5b60006020828403121561164257600080fd5b81356114408161160e565b60006020828403121561165f57600080fd5b813567ffffffffffffffff81111561167657600080fd5b8201601f8101841361168757600080fd5b611696848235602084016114f4565b949350505050565b600181811c908216806116b257607f821691505b6020821081036116eb577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b8051801515811461170157600080fd5b919050565b60006020828403121561171857600080fd5b611440826116f1565b60006020828403121561173357600080fd5b81516114408161160e565b600080600080600080600060e0888a03121561175957600080fd5b8751965060208801519550611770604089016116f1565b945061177e606089016116f1565b9350608088015161178e8161160e565b60a089015190935061179f8161160e565b60c08901519092506117b08161160e565b8091505092959891949750929550565b6000602082840312156117d257600080fd5b505191905056fea164736f6c634300080d000a68747470733a2f2f7265766573742e6d7970696e6174612e636c6f75642f697066732f516d514d565879744a436562714b56626f34694d795534675275473570554164434b67663555625a663531744163000000000000000000000000780ce455bc835127182809bc8ff36fffe55bc4b8
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000780ce455bc835127182809bc8ff36fffe55bc4b8
-----Decoded View---------------
Arg [0] : registry (address): 0x780CE455bc835127182809Bc8fF36fFfE55Bc4B8
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000780ce455bc835127182809bc8ff36fffe55bc4b8
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.