More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 1,091 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Stake Basic Toke... | 21472346 | 33 days ago | IN | 0 ETH | 0.00423597 | ||||
Stake Basic Toke... | 21418036 | 40 days ago | IN | 0 ETH | 0.00830741 | ||||
Stake Basic Toke... | 21097891 | 85 days ago | IN | 0 ETH | 0.00203755 | ||||
Stake Basic Toke... | 21097887 | 85 days ago | IN | 0 ETH | 0.00191298 | ||||
Stake Basic Toke... | 21097883 | 85 days ago | IN | 0 ETH | 0.00180371 | ||||
Stake LP Tokens | 21097535 | 85 days ago | IN | 0 ETH | 0.00196436 | ||||
Stake LP Tokens | 21097527 | 85 days ago | IN | 0 ETH | 0.00212469 | ||||
Stake LP Tokens | 21097518 | 85 days ago | IN | 0 ETH | 0.00208188 | ||||
Stake LP Tokens | 21097312 | 85 days ago | IN | 0 ETH | 0.00291732 | ||||
Stake LP Tokens | 21097261 | 85 days ago | IN | 0 ETH | 0.002796 | ||||
Stake Basic Toke... | 20987474 | 100 days ago | IN | 0 ETH | 0.01066285 | ||||
Stake Basic Toke... | 20897468 | 113 days ago | IN | 0 ETH | 0.00158491 | ||||
Stake Basic Toke... | 20855996 | 119 days ago | IN | 0 ETH | 0.00337064 | ||||
Stake Basic Toke... | 20778578 | 130 days ago | IN | 0 ETH | 0.01151741 | ||||
Update Lock | 20774116 | 130 days ago | IN | 0 ETH | 0.00150123 | ||||
Stake Basic Toke... | 20763601 | 132 days ago | IN | 0 ETH | 0.01171508 | ||||
Update Lock | 20761113 | 132 days ago | IN | 0 ETH | 0.00027775 | ||||
Update Lock | 20757718 | 133 days ago | IN | 0 ETH | 0.00033725 | ||||
Update Lock | 20757014 | 133 days ago | IN | 0 ETH | 0.00026397 | ||||
Update Lock | 20753402 | 133 days ago | IN | 0 ETH | 0.0002052 | ||||
Update Lock | 20733804 | 136 days ago | IN | 0 ETH | 0.00056052 | ||||
Update Lock | 20729511 | 136 days ago | IN | 0 ETH | 0.00089819 | ||||
Stake Basic Toke... | 20723178 | 137 days ago | IN | 0 ETH | 0.00554863 | ||||
Update Lock | 20717152 | 138 days ago | IN | 0 ETH | 0.00065912 | ||||
Update Lock | 20710914 | 139 days ago | IN | 0 ETH | 0.00016909 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
Staking
Compiler Version
v0.8.9+commit.e5eed63a
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 "@openzeppelin/contracts/access/Ownable.sol"; import "../../interfaces/IOutputReceiver.sol"; import "../../interfaces/IOutputReceiverV2.sol"; import "../../interfaces/IOutputReceiverV3.sol"; import "../../interfaces/IRevest.sol"; import "../../interfaces/IAddressRegistry.sol"; import "../../interfaces/IRewardsHandler.sol"; import "../../interfaces/IFNFTHandler.sol"; import "../../interfaces/IAddressLock.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; contract Staking is Ownable, IOutputReceiverV3, ERC165, IAddressLock { using SafeERC20 for IERC20; address private revestAddress; address public lpAddress; address public rewardsHandlerAddress; address public addressRegistry; address public oldStakingContract; uint public previousStakingIDCutoff; bool public additionalEnabled; uint private constant ONE_DAY = 86400; uint private constant WINDOW_ONE = ONE_DAY; uint private constant WINDOW_THREE = ONE_DAY*5; uint private constant WINDOW_SIX = ONE_DAY*9; uint private constant WINDOW_TWELVE = ONE_DAY*14; uint private constant MAX_INT = 2**256 - 1; // For tracking if a given contract has approval for token mapping (address => mapping (address => bool)) private approvedContracts; address internal immutable WETH; uint[4] internal interestRates = [4, 13, 27, 56]; string public customMetadataUrl = "https://revest.mypinata.cloud/ipfs/QmdaJso83dhA5My9gz3ewXBxoWveo95utJJqY99ZSGEpRc"; string public addressMetadataUrl = "https://revest.mypinata.cloud/ipfs/QmWUyvkGFtFRXWxneojvAfBMy8QpewSvwQMQAkAUV42A91"; event StakedRevest(uint indexed timePeriod, bool indexed isBasic, uint indexed amount, uint fnftId); struct StakingData { uint timePeriod; uint dateLockedFrom; uint amount; } // fnftId -> timePeriods mapping(uint => StakingData) public stakingConfigs; constructor( address revestAddress_, address lpAddress_, address rewardsHandlerAddress_, address addressRegistry_, address wrappedEth_ ) { revestAddress = revestAddress_; lpAddress = lpAddress_; addressRegistry = addressRegistry_; rewardsHandlerAddress = rewardsHandlerAddress_; WETH = wrappedEth_; previousStakingIDCutoff = IFNFTHandler(IAddressRegistry(addressRegistry).getRevestFNFT()).getNextId() - 1; address revest = address(getRevest()); IERC20(lpAddress).approve(revest, MAX_INT); IERC20(revestAddress).approve(revest, MAX_INT); approvedContracts[revest][lpAddress] = true; approvedContracts[revest][revestAddress] = true; } function supportsInterface(bytes4 interfaceId) public view override (ERC165, IERC165) returns (bool) { return ( interfaceId == type(IOutputReceiver).interfaceId || interfaceId == type(IAddressLock).interfaceId || interfaceId == type(IOutputReceiverV2).interfaceId || interfaceId == type(IOutputReceiverV3).interfaceId || super.supportsInterface(interfaceId) ); } function stakeBasicTokens(uint amount, uint monthsMaturity) public returns (uint) { return _stake(revestAddress, amount, monthsMaturity); } function stakeLPTokens(uint amount, uint monthsMaturity) public returns (uint) { return _stake(lpAddress, amount, monthsMaturity); } function claimRewards(uint fnftId) external { // Check to make sure user owns the fnftId require(IFNFTHandler(getRegistry().getRevestFNFT()).getBalance(_msgSender(), fnftId) == 1, 'E061'); // Receive rewards IRewardsHandler(rewardsHandlerAddress).claimRewards(fnftId, _msgSender()); } /// /// Address Lock Features /// function updateLock(uint fnftId, uint, bytes memory) external override { require(IFNFTHandler(getRegistry().getRevestFNFT()).getBalance(_msgSender(), fnftId) == 1, 'E061'); // Receive rewards IRewardsHandler(rewardsHandlerAddress).claimRewards(fnftId, _msgSender()); } // This function not utilized function createLock(uint, uint, bytes memory) external pure override { return; } /// /// Output Recevier Functions /// function receiveRevestOutput( uint fnftId, address asset, address payable owner, uint quantity ) external override { address vault = getRegistry().getTokenVault(); require(_msgSender() == vault, "E016"); require(quantity == 1, 'ONLY SINGULAR'); // Strictly limit access require(fnftId <= previousStakingIDCutoff || stakingConfigs[fnftId].timePeriod > 0, 'Nonexistent!'); uint totalQuantity = getValue(fnftId); IRewardsHandler(rewardsHandlerAddress).claimRewards(fnftId, owner); if (asset == revestAddress) { IRewardsHandler(rewardsHandlerAddress).updateBasicShares(fnftId, 0); } else if (asset == lpAddress) { IRewardsHandler(rewardsHandlerAddress).updateLPShares(fnftId, 0); } else { require(false, "E072"); } IERC20(asset).safeTransfer(owner, totalQuantity); emit WithdrawERC20OutputReceiver(_msgSender(), asset, totalQuantity, fnftId, ''); } function handleTimelockExtensions(uint fnftId, uint expiration, address caller) external override {} function handleAdditionalDeposit(uint fnftId, uint amountToDeposit, uint quantity, address caller) external override { require(_msgSender() == getRegistry().getRevest(), "E016"); require(quantity == 1); require(additionalEnabled, 'Not allowed!'); _depositAdditionalToStake(fnftId, amountToDeposit, caller); } function handleSplitOperation(uint fnftId, uint[] memory proportions, uint quantity, address caller) external override {} // Future proofing for secondary callbacks during withdrawal // Could just use triggerOutputReceiverUpdate and call withdrawal function // But deliberately using reentry is poor form and reminds me too much of OAuth 2.0 function receiveSecondaryCallback( uint fnftId, address payable owner, uint quantity, IRevest.FNFTConfig memory config, bytes memory args ) external payable override {} // Allows for similar function to address lock, updating state while still locked // Called by the user directly function triggerOutputReceiverUpdate( uint fnftId, bytes memory args ) external override {} // This function should only ever be called when a split or additional deposit has occurred function handleFNFTRemaps(uint, uint[] memory, address, bool) external pure override { revert(); } function _stake(address stakeToken, uint amount, uint monthsMaturity) private returns (uint){ require (stakeToken == lpAddress || stakeToken == revestAddress, "E079"); require(monthsMaturity == 1 || monthsMaturity == 3 || monthsMaturity == 6 || monthsMaturity == 12, 'E055'); IERC20(stakeToken).safeTransferFrom(msg.sender, address(this), amount); IRevest.FNFTConfig memory fnftConfig; fnftConfig.asset = stakeToken; fnftConfig.depositAmount = amount; fnftConfig.isMulti = true; fnftConfig.pipeToContract = address(this); address[] memory recipients = new address[](1); recipients[0] = _msgSender(); uint[] memory quantities = new uint[](1); quantities[0] = 1; address revest = getRegistry().getRevest(); if(!approvedContracts[revest][stakeToken]){ IERC20(stakeToken).approve(revest, MAX_INT); approvedContracts[revest][stakeToken] = true; } uint fnftId = IRevest(revest).mintAddressLock(address(this), '', recipients, quantities, fnftConfig); uint interestRate = getInterestRate(monthsMaturity); uint allocPoint = amount * interestRate; StakingData memory cfg = StakingData(monthsMaturity, block.timestamp, amount); stakingConfigs[fnftId] = cfg; if(stakeToken == lpAddress) { IRewardsHandler(rewardsHandlerAddress).updateLPShares(fnftId, allocPoint); } else if (stakeToken == revestAddress) { IRewardsHandler(rewardsHandlerAddress).updateBasicShares(fnftId, allocPoint); } emit StakedRevest(monthsMaturity, stakeToken == revestAddress, amount, fnftId); emit DepositERC20OutputReceiver(_msgSender(), stakeToken, amount, fnftId, ''); return fnftId; } function _depositAdditionalToStake(uint fnftId, uint amount, address caller) private { //Prevent unauthorized access require(IFNFTHandler(getRegistry().getRevestFNFT()).getBalance(caller, fnftId) == 1, 'E061'); require(fnftId > previousStakingIDCutoff, 'E080'); uint time = stakingConfigs[fnftId].timePeriod; require(time > 0, 'E078'); address asset = ITokenVault(getRegistry().getTokenVault()).getFNFT(fnftId).asset; require(asset == revestAddress || asset == lpAddress, 'E079'); //Claim rewards owed IRewardsHandler(rewardsHandlerAddress).claimRewards(fnftId, _msgSender()); //Write new, extended unlock date stakingConfigs[fnftId].dateLockedFrom = block.timestamp; stakingConfigs[fnftId].amount = stakingConfigs[fnftId].amount + amount; //Retreive current allocation points – WETH and RVST implicitly have identical alloc points uint oldAllocPoints = IRewardsHandler(rewardsHandlerAddress).getAllocPoint(fnftId, revestAddress, asset == revestAddress); uint allocPoints = amount * getInterestRate(time) + oldAllocPoints; if(asset == revestAddress) { IRewardsHandler(rewardsHandlerAddress).updateBasicShares(fnftId, allocPoints); } else if (asset == lpAddress) { IRewardsHandler(rewardsHandlerAddress).updateLPShares(fnftId, allocPoints); } emit DepositERC20OutputReceiver(_msgSender(), asset, amount, fnftId, ''); } /// /// VIEW FUNCTIONS /// /// Custom view function function getInterestRate(uint months) public view returns (uint) { if (months <= 1) { return interestRates[0]; } else if (months <= 3) { return interestRates[1]; } else if (months <= 6) { return interestRates[2]; } else { return interestRates[3]; } } function getRevest() private view returns (IRevest) { return IRevest(getRegistry().getRevest()); } function getRegistry() public view returns (IAddressRegistry) { return IAddressRegistry(addressRegistry); } function getWindow(uint timePeriod) public pure returns (uint window) { if(timePeriod == 1) { window = WINDOW_ONE; } if(timePeriod == 3) { window = WINDOW_THREE; } if(timePeriod == 6) { window = WINDOW_SIX; } if(timePeriod == 12) { window = WINDOW_TWELVE; } } /// ADDRESS REGISTRY VIEW FUNCTIONS /// Does the address lock need an update? function needsUpdate() external pure override returns (bool) { return true; } /// Get the metadata URL for an address lock function getMetadata() external view override returns (string memory) { return addressMetadataUrl; } /// Can the stake be unlocked? function isUnlockable(uint fnftId, uint) external view override returns (bool) { if(fnftId <= previousStakingIDCutoff) { return Staking(oldStakingContract).isUnlockable(fnftId, 0); } uint timePeriod = stakingConfigs[fnftId].timePeriod; uint depositTime = stakingConfigs[fnftId].dateLockedFrom; uint window = getWindow(timePeriod); bool mature = block.timestamp - depositTime > (timePeriod * 30 * ONE_DAY); bool window_open = (block.timestamp - depositTime) % (timePeriod * 30 * ONE_DAY) < window; return mature && window_open; } // Retrieve encoded data on the state of the stake for the address lock component function getDisplayValues(uint fnftId, uint) external view override returns (bytes memory) { if(fnftId <= previousStakingIDCutoff) { return IAddressLock(oldStakingContract).getDisplayValues(fnftId, 0); } uint allocPoints; { uint revestTokenAlloc = IRewardsHandler(rewardsHandlerAddress).getAllocPoint(fnftId, revestAddress, true); uint lpTokenAlloc = IRewardsHandler(rewardsHandlerAddress).getAllocPoint(fnftId, revestAddress, false); allocPoints = revestTokenAlloc > 0 ? revestTokenAlloc : lpTokenAlloc; } uint timePeriod = stakingConfigs[fnftId].timePeriod; return abi.encode(allocPoints, timePeriod); } /// OUTPUT RECEVIER VIEW FUNCTIONS function getCustomMetadata(uint fnftId) external view override returns (string memory) { if(fnftId <= previousStakingIDCutoff) { return Staking(oldStakingContract).getCustomMetadata(fnftId); } else { return customMetadataUrl; } } function getOutputDisplayValues(uint fnftId) external view override returns (bytes memory) { if(fnftId <= previousStakingIDCutoff) { return IOutputReceiver(oldStakingContract).getOutputDisplayValues(fnftId); } bool isRevestToken; { // Will be zero if this is an LP stake uint revestTokenAlloc = IRewardsHandler(rewardsHandlerAddress).getAllocPoint(fnftId, revestAddress, true); uint wethTokenAlloc = IRewardsHandler(rewardsHandlerAddress).getAllocPoint(fnftId, WETH, true); isRevestToken = revestTokenAlloc > 0 || wethTokenAlloc > 0; } uint revestRewards = IRewardsHandler(rewardsHandlerAddress).getRewards(fnftId, revestAddress); uint wethRewards = IRewardsHandler(rewardsHandlerAddress).getRewards(fnftId, WETH); uint timePeriod = stakingConfigs[fnftId].timePeriod; uint nextUnlock = block.timestamp + ((timePeriod * 30 days) - ((block.timestamp - stakingConfigs[fnftId].dateLockedFrom) % (timePeriod * 30 days))); //This parameter has been modified for new stakes return abi.encode(revestRewards, wethRewards, timePeriod, stakingConfigs[fnftId].dateLockedFrom, isRevestToken ? revestAddress : lpAddress, nextUnlock); } function getAddressRegistry() external view override returns (address) { return addressRegistry; } function getValue(uint fnftId) public view override returns (uint) { if(fnftId <= previousStakingIDCutoff) { return ITokenVault(getRegistry().getTokenVault()).getFNFT(fnftId).depositAmount; } else { return stakingConfigs[fnftId].amount; } } function getAsset(uint fnftId) external view override returns (address) { return ITokenVault(getRegistry().getTokenVault()).getFNFT(fnftId).asset; } /// /// ADMIN FUNCTIONS /// // Allows us to set a new output receiver metadata URL function setCustomMetadata(string memory _customMetadataUrl) external onlyOwner { customMetadataUrl = _customMetadataUrl; } function setLPAddress(address lpAddress_) external onlyOwner { lpAddress = lpAddress_; } function setAddressRegistry(address addressRegistry_) external override onlyOwner { addressRegistry = addressRegistry_; } // Set a new metadata url for address lock function setMetadata(string memory _addressMetadataUrl) external onlyOwner { addressMetadataUrl = _addressMetadataUrl; } // What contract will handle staking rewards function setRewardsHandler(address _handler) external onlyOwner { rewardsHandlerAddress = _handler; } function setCutoff(uint cutoff) external onlyOwner { previousStakingIDCutoff = cutoff; } function setOldStaking(address stake) external onlyOwner { oldStakingContract = stake; } function setAdditionalDepositsEnabled(bool enabled) external onlyOwner { additionalEnabled = enabled; } }
// 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 "./IRegistryProvider.sol"; import '@openzeppelin/contracts/utils/introspection/IERC165.sol'; /** * @title Provider interface for Revest FNFTs */ interface IOutputReceiver is IRegistryProvider, IERC165 { function receiveRevestOutput( uint fnftId, address asset, address payable owner, uint quantity ) external; function getCustomMetadata(uint fnftId) external view returns (string memory); function getValue(uint fnftId) external view returns (uint); function getAsset(uint fnftId) external view returns (address); function getOutputDisplayValues(uint fnftId) external view returns (bytes memory); }
// SPDX-License-Identifier: GNU-GPL v3.0 or later pragma solidity >=0.8.0; import "./IOutputReceiver.sol"; import "./IRevest.sol"; import '@openzeppelin/contracts/utils/introspection/IERC165.sol'; /** * @title Provider interface for Revest FNFTs */ interface IOutputReceiverV2 is IOutputReceiver { // Future proofing for secondary callbacks during withdrawal // Could just use triggerOutputReceiverUpdate and call withdrawal function // But deliberately using reentry is poor form and reminds me too much of OAuth 2.0 function receiveSecondaryCallback( uint fnftId, address payable owner, uint quantity, IRevest.FNFTConfig memory config, bytes memory args ) external payable; // Allows for similar function to address lock, updating state while still locked // Called by the user directly function triggerOutputReceiverUpdate( uint fnftId, bytes memory args ) external; // This function should only ever be called when a split or additional deposit has occurred function handleFNFTRemaps(uint fnftId, uint[] memory newFNFTIds, address caller, bool cleanup) external; }
// SPDX-License-Identifier: GNU-GPL v3.0 or later pragma solidity >=0.8.0; import "./IOutputReceiverV2.sol"; /** * @title Provider interface for Revest FNFTs */ interface IOutputReceiverV3 is IOutputReceiverV2 { event DepositERC20OutputReceiver(address indexed mintTo, address indexed token, uint amountTokens, uint indexed fnftId, bytes extraData); event DepositERC721OutputReceiver(address indexed mintTo, address indexed token, uint[] tokenIds, uint indexed fnftId, bytes extraData); event DepositERC1155OutputReceiver(address indexed mintTo, address indexed token, uint tokenId, uint amountTokens, uint indexed fnftId, bytes extraData); event WithdrawERC20OutputReceiver(address indexed caller, address indexed token, uint amountTokens, uint indexed fnftId, bytes extraData); event WithdrawERC721OutputReceiver(address indexed caller, address indexed token, uint[] tokenIds, uint indexed fnftId, bytes extraData); event WithdrawERC1155OutputReceiver(address indexed caller, address indexed token, uint tokenId, uint amountTokens, uint indexed fnftId, bytes extraData); function handleTimelockExtensions(uint fnftId, uint expiration, address caller) external; function handleAdditionalDeposit(uint fnftId, uint amountToDeposit, uint quantity, address caller) external; function handleSplitOperation(uint fnftId, uint[] memory proportions, uint quantity, address caller) 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; /** * @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 IRewardsHandler { struct UserBalance { uint allocPoint; // Allocation points uint lastMul; } function receiveFee(address token, uint amount) external; function updateLPShares(uint fnftId, uint newShares) external; function updateBasicShares(uint fnftId, uint newShares) external; function getAllocPoint(uint fnftId, address token, bool isBasic) external view returns (uint); function claimRewards(uint fnftId, address caller) external returns (uint); function setStakingContract(address stake) external; function getRewards(uint fnftId, address token) external view returns (uint); }
// SPDX-License-Identifier: GNU-GPL v3.0 or later pragma solidity >=0.8.0; interface IFNFTHandler { function mint(address account, uint id, uint amount, bytes memory data) external; function mintBatchRec(address[] memory recipients, uint[] memory quantities, uint id, uint newSupply, bytes memory data) external; function mintBatch(address to, uint[] memory ids, uint[] memory amounts, bytes memory data) external; function setURI(string memory newuri) external; function burn(address account, uint id, uint amount) external; function burnBatch(address account, uint[] memory ids, uint[] memory amounts) external; function getBalance(address tokenHolder, uint id) external view returns (uint); function getSupply(uint fnftId) external view returns (uint); function getNextId() external view returns (uint); }
// 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 (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: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: 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: 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 "./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; 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 (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); } } } }
{ "optimizer": { "enabled": true, "runs": 10000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"revestAddress_","type":"address"},{"internalType":"address","name":"lpAddress_","type":"address"},{"internalType":"address","name":"rewardsHandlerAddress_","type":"address"},{"internalType":"address","name":"addressRegistry_","type":"address"},{"internalType":"address","name":"wrappedEth_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"mintTo","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountTokens","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"fnftId","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"extraData","type":"bytes"}],"name":"DepositERC1155OutputReceiver","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"mintTo","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountTokens","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"fnftId","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"extraData","type":"bytes"}],"name":"DepositERC20OutputReceiver","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"mintTo","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"indexed":true,"internalType":"uint256","name":"fnftId","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"extraData","type":"bytes"}],"name":"DepositERC721OutputReceiver","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"timePeriod","type":"uint256"},{"indexed":true,"internalType":"bool","name":"isBasic","type":"bool"},{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"fnftId","type":"uint256"}],"name":"StakedRevest","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountTokens","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"fnftId","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"extraData","type":"bytes"}],"name":"WithdrawERC1155OutputReceiver","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountTokens","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"fnftId","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"extraData","type":"bytes"}],"name":"WithdrawERC20OutputReceiver","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"indexed":true,"internalType":"uint256","name":"fnftId","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"extraData","type":"bytes"}],"name":"WithdrawERC721OutputReceiver","type":"event"},{"inputs":[],"name":"additionalEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"addressMetadataUrl","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"addressRegistry","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"fnftId","type":"uint256"}],"name":"claimRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"createLock","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"customMetadataUrl","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAddressRegistry","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"fnftId","type":"uint256"}],"name":"getAsset","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"fnftId","type":"uint256"}],"name":"getCustomMetadata","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"fnftId","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"getDisplayValues","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"months","type":"uint256"}],"name":"getInterestRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMetadata","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"fnftId","type":"uint256"}],"name":"getOutputDisplayValues","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRegistry","outputs":[{"internalType":"contract IAddressRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"fnftId","type":"uint256"}],"name":"getValue","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"timePeriod","type":"uint256"}],"name":"getWindow","outputs":[{"internalType":"uint256","name":"window","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"fnftId","type":"uint256"},{"internalType":"uint256","name":"amountToDeposit","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"address","name":"caller","type":"address"}],"name":"handleAdditionalDeposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"address","name":"","type":"address"},{"internalType":"bool","name":"","type":"bool"}],"name":"handleFNFTRemaps","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"fnftId","type":"uint256"},{"internalType":"uint256[]","name":"proportions","type":"uint256[]"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"address","name":"caller","type":"address"}],"name":"handleSplitOperation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"fnftId","type":"uint256"},{"internalType":"uint256","name":"expiration","type":"uint256"},{"internalType":"address","name":"caller","type":"address"}],"name":"handleTimelockExtensions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"fnftId","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"isUnlockable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lpAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"needsUpdate","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"oldStakingContract","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":"previousStakingIDCutoff","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"fnftId","type":"uint256"},{"internalType":"address","name":"asset","type":"address"},{"internalType":"address payable","name":"owner","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"receiveRevestOutput","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"fnftId","type":"uint256"},{"internalType":"address payable","name":"owner","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"components":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"address","name":"pipeToContract","type":"address"},{"internalType":"uint256","name":"depositAmount","type":"uint256"},{"internalType":"uint256","name":"depositMul","type":"uint256"},{"internalType":"uint256","name":"split","type":"uint256"},{"internalType":"uint256","name":"depositStopTime","type":"uint256"},{"internalType":"bool","name":"maturityExtension","type":"bool"},{"internalType":"bool","name":"isMulti","type":"bool"},{"internalType":"bool","name":"nontransferrable","type":"bool"}],"internalType":"struct IRevest.FNFTConfig","name":"config","type":"tuple"},{"internalType":"bytes","name":"args","type":"bytes"}],"name":"receiveSecondaryCallback","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardsHandlerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"enabled","type":"bool"}],"name":"setAdditionalDepositsEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addressRegistry_","type":"address"}],"name":"setAddressRegistry","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_customMetadataUrl","type":"string"}],"name":"setCustomMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"cutoff","type":"uint256"}],"name":"setCutoff","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"lpAddress_","type":"address"}],"name":"setLPAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_addressMetadataUrl","type":"string"}],"name":"setMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"stake","type":"address"}],"name":"setOldStaking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_handler","type":"address"}],"name":"setRewardsHandler","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"monthsMaturity","type":"uint256"}],"name":"stakeBasicTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"monthsMaturity","type":"uint256"}],"name":"stakeLPTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"stakingConfigs","outputs":[{"internalType":"uint256","name":"timePeriod","type":"uint256"},{"internalType":"uint256","name":"dateLockedFrom","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","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":"fnftId","type":"uint256"},{"internalType":"bytes","name":"args","type":"bytes"}],"name":"triggerOutputReceiverUpdate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"fnftId","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"updateLock","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
610120604052600460a0818152600d60c052601b60e0526038610100526200002b916009919062000463565b50604051806080016040528060518152602001620049d36051913980516200005c91600d91602090910190620004ab565b50604051806080016040528060518152602001620049826051913980516200008d91600e91602090910190620004ab565b503480156200009b57600080fd5b5060405162004a2438038062004a24833981016040819052620000be916200055c565b620000c93362000385565b600180546001600160a01b038088166001600160a01b03199283161783556002805488831690841617905560048054868316908416811782556003805489851695169490941790935590841660805260408051636acf14b760e11b8152905163d59e296e92828101926020929190829003018186803b1580156200014c57600080fd5b505afa15801562000161573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001879190620005cc565b6001600160a01b031663bc9683266040518163ffffffff1660e01b815260040160206040518083038186803b158015620001c057600080fd5b505afa158015620001d5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001fb9190620005f1565b6200020791906200060b565b600655600062000216620003d5565b60025460405163095ea7b360e01b81526001600160a01b038084166004830152600019602483015292935091169063095ea7b390604401602060405180830381600087803b1580156200026857600080fd5b505af11580156200027d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002a3919062000631565b5060015460405163095ea7b360e01b81526001600160a01b03838116600483015260001960248301529091169063095ea7b390604401602060405180830381600087803b158015620002f457600080fd5b505af115801562000309573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200032f919062000631565b506001600160a01b039081166000908152600860209081526040808320600254851684529091528082208054600160ff199182168117909255815490941683529120805490921617905550620006929350505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000620003ea6004546001600160a01b031690565b6001600160a01b031663f97e7d746040518163ffffffff1660e01b815260040160206040518083038186803b1580156200042357600080fd5b505afa15801562000438573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200045e9190620005cc565b905090565b826004810192821562000499579160200282015b8281111562000499578251829060ff1690559160200191906001019062000477565b50620004a792915062000528565b5090565b828054620004b99062000655565b90600052602060002090601f016020900481019282620004dd576000855562000499565b82601f10620004f857805160ff191683800117855562000499565b8280016001018555821562000499579182015b82811115620004995782518255916020019190600101906200050b565b5b80821115620004a7576000815560010162000529565b80516001600160a01b03811681146200055757600080fd5b919050565b600080600080600060a086880312156200057557600080fd5b62000580866200053f565b945062000590602087016200053f565b9350620005a0604087016200053f565b9250620005b0606087016200053f565b9150620005c0608087016200053f565b90509295509295909350565b600060208284031215620005df57600080fd5b620005ea826200053f565b9392505050565b6000602082840312156200060457600080fd5b5051919050565b6000828210156200062c57634e487b7160e01b600052601160045260246000fd5b500390565b6000602082840312156200064457600080fd5b81518015158114620005ea57600080fd5b600181811c908216806200066a57607f821691505b602082108114156200068c57634e487b7160e01b600052602260045260246000fd5b50919050565b6080516142cd620006b560003960008181611bd10152611d5201526142cd6000f3fe6080604052600436106102f25760003560e01c806376da63f31161018f5780639b4dc8cc116100e1578063d7bf91101161008a578063f2fde38b11610064578063f2fde38b1461083e578063f3ad65f41461085e578063f48fe0501461087e57600080fd5b8063d7bf9110146107de578063e59dd90d146107fe578063eac8f5b81461081e57600080fd5b8063aca1c665116100bb578063aca1c6651461077f578063b38221ff1461079f578063d2551412146107bf57600080fd5b80639b4dc8cc1461071f578063a24bc8f91461073f578063a49a1e7d1461075f57600080fd5b80637f30dac2116101435780638ecacb1b1161011d5780638ecacb1b14610692578063907b0013146106b257806390a50d51146106c857600080fd5b80637f30dac21461065a5780638d9d67051461050d5780638da5cb5b1461067457600080fd5b80637a351a1d116101745780637a351a1d146106055780637a5b4f59146106255780637e3c2ad81461063a57600080fd5b806376da63f3146105c4578063798e54ac146105e557600080fd5b8063270a091e116102485780635ab1bd53116101fc57806365973040116101d6578063659730401461057a5780636abdc4b41461058f578063715018a6146105af57600080fd5b80635ab1bd531461050d5780635c0c8d751461053f578063644bf7d81461055f57600080fd5b80632add8d1b1161022d5780632add8d1b146104b95780632ee70dc3146104d9578063346c9409146104f957600080fd5b8063270a091e1461047957806327c7812c1461049957600080fd5b80630ff4c916116102aa578063175cec2311610284578063175cec231461041e5780631c8478161461043e5780631d1457211461045957600080fd5b80630ff4c916146103be5780631355f7ab146103de57806316f49e8a146103fe57600080fd5b80630787508e116102db5780630787508e1461034e5780630962ef79146103705780630c196a741461039057600080fd5b806301ffc9a7146102f7578063045c22551461032c575b600080fd5b34801561030357600080fd5b5061031761031236600461381a565b610893565b60405190151581526020015b60405180910390f35b34801561033857600080fd5b5061034c61034736600461396c565b610a10565b005b34801561035a57600080fd5b50610363610c35565b6040516103239190613a14565b34801561037c57600080fd5b5061034c61038b366004613a27565b610cc3565b34801561039c57600080fd5b506103b06103ab366004613a27565b610edf565b604051908152602001610323565b3480156103ca57600080fd5b506103b06103d9366004613a27565b610f26565b3480156103ea57600080fd5b5061034c6103f9366004613a60565b505050565b34801561040a57600080fd5b50610363610419366004613a27565b61104b565b34801561042a57600080fd5b50610317610439366004613a99565b611182565b34801561044a57600080fd5b5061034c6103f936600461396c565b34801561046557600080fd5b5061034c610474366004613abb565b6112c4565b34801561048557600080fd5b506103b0610494366004613a99565b61140c565b3480156104a557600080fd5b5061034c6104b4366004613afc565b61142d565b3480156104c557600080fd5b5061034c6104d4366004613b19565b6114c1565b3480156104e557600080fd5b506103b06104f4366004613a27565b61152e565b34801561050557600080fd5b506001610317565b34801561051957600080fd5b506004546001600160a01b03165b6040516001600160a01b039091168152602001610323565b34801561054b57600080fd5b5061034c61055a366004613b7b565b61158a565b34801561056b57600080fd5b5061034c6102f2366004613c0d565b34801561058657600080fd5b50610363611615565b34801561059b57600080fd5b5061034c6105aa366004613afc565b611622565b3480156105bb57600080fd5b5061034c6116b6565b3480156105d057600080fd5b5061034c6105df366004613c6e565b50505050565b3480156105f157600080fd5b50600354610527906001600160a01b031681565b34801561061157600080fd5b5061034c610620366004613afc565b61171c565b34801561063157600080fd5b506103636117b0565b34801561064657600080fd5b50610363610655366004613a99565b611842565b34801561066657600080fd5b506007546103179060ff1681565b34801561068057600080fd5b506000546001600160a01b0316610527565b34801561069e57600080fd5b506103636106ad366004613a27565b611a95565b3480156106be57600080fd5b506103b060065481565b3480156106d457600080fd5b506107046106e3366004613a27565b600f6020526000908152604090208054600182015460029092015490919083565b60408051938452602084019290925290820152606001610323565b34801561072b57600080fd5b50600254610527906001600160a01b031681565b34801561074b57600080fd5b506103b061075a366004613a99565b611ed2565b34801561076b57600080fd5b5061034c61077a366004613b19565b611eec565b34801561078b57600080fd5b5061034c61079a366004613cc6565b611f59565b3480156107ab57600080fd5b5061034c6107ba366004613afc565b612364565b3480156107cb57600080fd5b5061034c6107da366004613d0e565b5050565b3480156107ea57600080fd5b5061034c6107f9366004613a27565b6123f8565b34801561080a57600080fd5b50600554610527906001600160a01b031681565b34801561082a57600080fd5b50610527610839366004613a27565b612457565b34801561084a57600080fd5b5061034c610859366004613afc565b612560565b34801561086a57600080fd5b50600454610527906001600160a01b031681565b61034c61088c366004613d55565b5050505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167fd1a3af5a00000000000000000000000000000000000000000000000000000000148061092657507fffffffff0000000000000000000000000000000000000000000000000000000082167f3f8f47e800000000000000000000000000000000000000000000000000000000145b8061097257507fffffffff0000000000000000000000000000000000000000000000000000000082167f4291039a00000000000000000000000000000000000000000000000000000000145b806109be57507fffffffff0000000000000000000000000000000000000000000000000000000082167f789bc37900000000000000000000000000000000000000000000000000000000145b80610a0a57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6004546001600160a01b03166001600160a01b031663d59e296e6040518163ffffffff1660e01b815260040160206040518083038186803b158015610a5457600080fd5b505afa158015610a68573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a8c9190613e84565b6001600160a01b0316632b04e840336040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b0390911660048201526024810186905260440160206040518083038186803b158015610af957600080fd5b505afa158015610b0d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b319190613ea1565b600114610b8b5760405162461bcd60e51b8152600401610b829060208082526004908201527f4530363100000000000000000000000000000000000000000000000000000000604082015260600190565b60405180910390fd5b6003546001600160a01b0316636c7b69cb84336040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815260048101929092526001600160a01b03166024820152604401602060405180830381600087803b158015610bfd57600080fd5b505af1158015610c11573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105df9190613ea1565b600e8054610c4290613eba565b80601f0160208091040260200160405190810160405280929190818152602001828054610c6e90613eba565b8015610cbb5780601f10610c9057610100808354040283529160200191610cbb565b820191906000526020600020905b815481529060010190602001808311610c9e57829003601f168201915b505050505081565b6004546001600160a01b03166001600160a01b031663d59e296e6040518163ffffffff1660e01b815260040160206040518083038186803b158015610d0757600080fd5b505afa158015610d1b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d3f9190613e84565b6001600160a01b0316632b04e840336040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b0390911660048201526024810184905260440160206040518083038186803b158015610dac57600080fd5b505afa158015610dc0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610de49190613ea1565b600114610e355760405162461bcd60e51b8152600401610b829060208082526004908201527f4530363100000000000000000000000000000000000000000000000000000000604082015260600190565b6003546001600160a01b0316636c7b69cb82336040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815260048101929092526001600160a01b03166024820152604401602060405180830381600087803b158015610ea757600080fd5b505af1158015610ebb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107da9190613ea1565b600060018211610ef657600960005b015492915050565b60038211610f075760096001610eee565b60068211610f185760096002610eee565b60096003610eee565b919050565b60006006548211611035576004546001600160a01b03166001600160a01b03166354f2f7af6040518163ffffffff1660e01b815260040160206040518083038186803b158015610f7557600080fd5b505afa158015610f89573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fad9190613e84565b6001600160a01b031663522f9b37836040518263ffffffff1660e01b8152600401610fda91815260200190565b6101206040518083038186803b158015610ff357600080fd5b505afa158015611007573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061102b9190613f48565b6040015192915050565b506000908152600f602052604090206002015490565b606060065482116110f0576005546040517f16f49e8a000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b03909116906316f49e8a906024015b60006040518083038186803b1580156110b457600080fd5b505afa1580156110c8573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610a0a9190810190614012565b600d80546110fd90613eba565b80601f016020809104026020016040519081016040528092919081815260200182805461112990613eba565b80156111765780601f1061114b57610100808354040283529160200191611176565b820191906000526020600020905b81548152906001019060200180831161115957829003601f168201915b50505050509050919050565b60006006548311611230576005546040517f175cec2300000000000000000000000000000000000000000000000000000000815260048101859052600060248201526001600160a01b039091169063175cec239060440160206040518083038186803b1580156111f157600080fd5b505afa158015611205573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611229919061405b565b9050610a0a565b6000838152600f60205260408120805460019091015490916112518361152e565b905060006201518061126485601e6140a7565b61126e91906140a7565b61127884426140e4565b1190506000826201518061128d87601e6140a7565b61129791906140a7565b6112a186426140e4565b6112ab91906140fb565b1090508180156112b85750805b98975050505050505050565b6004546001600160a01b03166001600160a01b031663f97e7d746040518163ffffffff1660e01b815260040160206040518083038186803b15801561130857600080fd5b505afa15801561131c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113409190613e84565b6001600160a01b0316336001600160a01b0316146113a25760405162461bcd60e51b8152600401610b829060208082526004908201527f4530313600000000000000000000000000000000000000000000000000000000604082015260600190565b816001146113af57600080fd5b60075460ff166114015760405162461bcd60e51b815260206004820152600c60248201527f4e6f7420616c6c6f7765642100000000000000000000000000000000000000006044820152606401610b82565b6105df848483612642565b600154600090611426906001600160a01b03168484612d1f565b9392505050565b6000546001600160a01b031633146114875760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b82565b600480547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6000546001600160a01b0316331461151b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b82565b80516107da90600d906020840190613781565b6000816001141561153f5750620151805b8160031415611559576115566201518060056140a7565b90505b8160061415611573576115706201518060096140a7565b90505b81600c1415610f2157610a0a62015180600e6140a7565b6000546001600160a01b031633146115e45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b82565b600780547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b600d8054610c4290613eba565b6000546001600160a01b0316331461167c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b82565b600580547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6000546001600160a01b031633146117105760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b82565b61171a60006133a2565b565b6000546001600160a01b031633146117765760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b82565b600280547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6060600e80546117bf90613eba565b80601f01602080910402602001604051908101604052809291908181526020018280546117eb90613eba565b80156118385780601f1061180d57610100808354040283529160200191611838565b820191906000526020600020905b81548152906001019060200180831161181b57829003601f168201915b5050505050905090565b606060065483116118ed576005546040517f7e3c2ad800000000000000000000000000000000000000000000000000000000815260048101859052600060248201526001600160a01b0390911690637e3c2ad89060440160006040518083038186803b1580156118b157600080fd5b505afa1580156118c5573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526112299190810190614012565b600354600180546040517f352152ff000000000000000000000000000000000000000000000000000000008152600481018790526001600160a01b0391821660248201526044810192909252600092839291169063352152ff9060640160206040518083038186803b15801561196257600080fd5b505afa158015611976573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061199a9190613ea1565b6003546001546040517f352152ff000000000000000000000000000000000000000000000000000000008152600481018990526001600160a01b03918216602482015260006044820181905293945091169063352152ff9060640160206040518083038186803b158015611a0d57600080fd5b505afa158015611a21573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a459190613ea1565b905060008211611a555780611a57565b815b6000968752600f6020908152604097889020548851918201929092528088019190915286518082038801815260609091019096525093949350505050565b60606006548211611aea576005546040517f8ecacb1b000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b0390911690638ecacb1b9060240161109c565b600354600180546040517f352152ff000000000000000000000000000000000000000000000000000000008152600481018690526001600160a01b0391821660248201526044810192909252600092839291169063352152ff9060640160206040518083038186803b158015611b5f57600080fd5b505afa158015611b73573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b979190613ea1565b6003546040517f352152ff000000000000000000000000000000000000000000000000000000008152600481018790526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166024830152600160448301529293506000929091169063352152ff9060640160206040518083038186803b158015611c2957600080fd5b505afa158015611c3d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c619190613ea1565b90506000821180611c725750600081115b6003546001546040517f29d21a00000000000000000000000000000000000000000000000000000000008152600481018990526001600160a01b039182166024820152929550600094501691506329d21a009060440160206040518083038186803b158015611ce057600080fd5b505afa158015611cf4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d189190613ea1565b6003546040517f29d21a00000000000000000000000000000000000000000000000000000000008152600481018790526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166024830152929350600092909116906329d21a009060440160206040518083038186803b158015611da357600080fd5b505afa158015611db7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ddb9190613ea1565b6000868152600f6020526040812054919250611dfa8262278d006140a7565b6000888152600f6020526040902060010154611e1690426140e4565b611e2091906140fb565b611e2d8362278d006140a7565b611e3791906140e4565b611e419042614136565b9050838383600f60008b81526020019081526020016000206001015488611e73576002546001600160a01b0316611e80565b6001546001600160a01b03165b604080516020810196909652850193909352606084019190915260808301526001600160a01b031660a082015260c0810182905260e00160405160208183030381529060405295505050505050919050565b600254600090611426906001600160a01b03168484612d1f565b6000546001600160a01b03163314611f465760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b82565b80516107da90600e906020840190613781565b6000611f6d6004546001600160a01b031690565b6001600160a01b03166354f2f7af6040518163ffffffff1660e01b815260040160206040518083038186803b158015611fa557600080fd5b505afa158015611fb9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fdd9190613e84565b9050336001600160a01b038216146120395760405162461bcd60e51b8152600401610b829060208082526004908201527f4530313600000000000000000000000000000000000000000000000000000000604082015260600190565b816001146120895760405162461bcd60e51b815260206004820152600d60248201527f4f4e4c592053494e47554c4152000000000000000000000000000000000000006044820152606401610b82565b600654851115806120a757506000858152600f602052604090205415155b6120f35760405162461bcd60e51b815260206004820152600c60248201527f4e6f6e6578697374656e742100000000000000000000000000000000000000006044820152606401610b82565b60006120fe86610f26565b6003546040517f6c7b69cb000000000000000000000000000000000000000000000000000000008152600481018990526001600160a01b038781166024830152929350911690636c7b69cb90604401602060405180830381600087803b15801561216757600080fd5b505af115801561217b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061219f9190613ea1565b506001546001600160a01b038681169116141561223a576003546040517f7af3a86f00000000000000000000000000000000000000000000000000000000815260048101889052600060248201526001600160a01b0390911690637af3a86f906044015b600060405180830381600087803b15801561221d57600080fd5b505af1158015612231573d6000803e3d6000fd5b505050506122eb565b6002546001600160a01b03868116911614156122a1576003546040517f6112032800000000000000000000000000000000000000000000000000000000815260048101889052600060248201526001600160a01b0390911690636112032890604401612203565b60405162461bcd60e51b8152600401610b829060208082526004908201527f4530373200000000000000000000000000000000000000000000000000000000604082015260600190565b6122ff6001600160a01b038616858361340a565b856001600160a01b038616336001600160a01b03167ff2b6e7f64080f438239b56473f2cd92b33165c88688fd898e1d99082bd0eb9548460405161235491815260406020820181905260009082015260600190565b60405180910390a4505050505050565b6000546001600160a01b031633146123be5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b82565b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6000546001600160a01b031633146124525760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b82565b600655565b600061246b6004546001600160a01b031690565b6001600160a01b03166354f2f7af6040518163ffffffff1660e01b815260040160206040518083038186803b1580156124a357600080fd5b505afa1580156124b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124db9190613e84565b6001600160a01b031663522f9b37836040518263ffffffff1660e01b815260040161250891815260200190565b6101206040518083038186803b15801561252157600080fd5b505afa158015612535573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125599190613f48565b5192915050565b6000546001600160a01b031633146125ba5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b82565b6001600160a01b0381166126365760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b82565b61263f816133a2565b50565b6004546001600160a01b03166001600160a01b031663d59e296e6040518163ffffffff1660e01b815260040160206040518083038186803b15801561268657600080fd5b505afa15801561269a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126be9190613e84565b6040517f2b04e8400000000000000000000000000000000000000000000000000000000081526001600160a01b038381166004830152602482018690529190911690632b04e8409060440160206040518083038186803b15801561272157600080fd5b505afa158015612735573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127599190613ea1565b6001146127aa5760405162461bcd60e51b8152600401610b829060208082526004908201527f4530363100000000000000000000000000000000000000000000000000000000604082015260600190565b60065483116127fd5760405162461bcd60e51b8152600401610b829060208082526004908201527f4530383000000000000000000000000000000000000000000000000000000000604082015260600190565b6000838152600f60205260409020548061285b5760405162461bcd60e51b8152600401610b829060208082526004908201527f4530373800000000000000000000000000000000000000000000000000000000604082015260600190565b600061286f6004546001600160a01b031690565b6001600160a01b03166354f2f7af6040518163ffffffff1660e01b815260040160206040518083038186803b1580156128a757600080fd5b505afa1580156128bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128df9190613e84565b6001600160a01b031663522f9b37866040518263ffffffff1660e01b815260040161290c91815260200190565b6101206040518083038186803b15801561292557600080fd5b505afa158015612939573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061295d9190613f48565b516001549091506001600160a01b038083169116148061298a57506002546001600160a01b038281169116145b6129d85760405162461bcd60e51b8152600401610b829060208082526004908201527f4530373900000000000000000000000000000000000000000000000000000000604082015260600190565b6003546001600160a01b0316636c7b69cb86336040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815260048101929092526001600160a01b03166024820152604401602060405180830381600087803b158015612a4a57600080fd5b505af1158015612a5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a829190613ea1565b506000858152600f6020526040902042600182015560020154612aa6908590614136565b6000868152600f60205260408082206002019290925560035460015492517f352152ff000000000000000000000000000000000000000000000000000000008152600481018990526001600160a01b03938416602482018190528585161460448201529192169063352152ff9060640160206040518083038186803b158015612b2e57600080fd5b505afa158015612b42573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b669190613ea1565b9050600081612b7485610edf565b612b7e90886140a7565b612b889190614136565b6001549091506001600160a01b0384811691161415612c24576003546040517f7af3a86f00000000000000000000000000000000000000000000000000000000815260048101899052602481018390526001600160a01b0390911690637af3a86f90604401600060405180830381600087803b158015612c0757600080fd5b505af1158015612c1b573d6000803e3d6000fd5b50505050612cb9565b6002546001600160a01b0384811691161415612cb9576003546040517f6112032800000000000000000000000000000000000000000000000000000000815260048101899052602481018390526001600160a01b0390911690636112032890604401600060405180830381600087803b158015612ca057600080fd5b505af1158015612cb4573d6000803e3d6000fd5b505050505b866001600160a01b038416336001600160a01b03167f5bed1f834b92cc21cec09497afa47d36952b8a037e988eca6e9ecffeb497b22789604051612d0e91815260406020820181905260009082015260600190565b60405180910390a450505050505050565b6002546000906001600160a01b0385811691161480612d4b57506001546001600160a01b038581169116145b612d995760405162461bcd60e51b8152600401610b829060208082526004908201527f4530373900000000000000000000000000000000000000000000000000000000604082015260600190565b8160011480612da85750816003145b80612db35750816006145b80612dbe575081600c145b612e0c5760405162461bcd60e51b8152600401610b829060208082526004908201527f4530353500000000000000000000000000000000000000000000000000000000604082015260600190565b612e216001600160a01b0385163330866134b3565b60408051610120810182526000606082018190526080820181905260a0820181905260c0820181905261010082018190526001600160a01b0387168252818301869052600160e083018190523060208401528351818152808501909452919290918160200160208202803683370190505090503381600081518110612ea857612ea8613f0e565b6001600160a01b039290921660209283029190910190910152604080516001808252818301909252600091816020016020820280368337019050509050600181600081518110612efa57612efa613f0e565b6020026020010181815250506000612f1a6004546001600160a01b031690565b6001600160a01b031663f97e7d746040518163ffffffff1660e01b815260040160206040518083038186803b158015612f5257600080fd5b505afa158015612f66573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f8a9190613e84565b6001600160a01b038082166000908152600860209081526040808320938d168352929052205490915060ff166130c4576040517f095ea7b30000000000000000000000000000000000000000000000000000000081526001600160a01b0382811660048301527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff602483015289169063095ea7b390604401602060405180830381600087803b15801561303c57600080fd5b505af1158015613050573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613074919061405b565b506001600160a01b038082166000908152600860209081526040808320938c1683529290522080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790555b6040517f02e236bc0000000000000000000000000000000000000000000000000000000081526000906001600160a01b038316906302e236bc90613112903090889088908b906004016141c4565b602060405180830381600087803b15801561312c57600080fd5b505af1158015613140573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131649190613ea1565b9050600061317188610edf565b9050600061317f828b6140a7565b604080516060810182528b81524260208083019182528284018f81526000898152600f909252939020825181559051600182015591516002928301559054919250906001600160a01b038d811691161415613257576003546040517f6112032800000000000000000000000000000000000000000000000000000000815260048101869052602481018490526001600160a01b0390911690636112032890604401600060405180830381600087803b15801561323a57600080fd5b505af115801561324e573d6000803e3d6000fd5b505050506132ec565b6001546001600160a01b038d8116911614156132ec576003546040517f7af3a86f00000000000000000000000000000000000000000000000000000000815260048101869052602481018490526001600160a01b0390911690637af3a86f90604401600060405180830381600087803b1580156132d357600080fd5b505af11580156132e7573d6000803e3d6000fd5b505050505b6001546040518581528c916001600160a01b038f8116911614908c907f293550fb329a6232032e6a883f1173a8c25a2639cf0209858586df3d000c9fb59060200160405180910390a4836001600160a01b038d16336001600160a01b03167f5bed1f834b92cc21cec09497afa47d36952b8a037e988eca6e9ecffeb497b2278e60405161338a91815260406020820181905260009082015260600190565b60405180910390a450919a9950505050505050505050565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b0383166024820152604481018290526103f99084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152613504565b6040516001600160a01b03808516602483015283166044820152606481018290526105df9085907f23b872dd000000000000000000000000000000000000000000000000000000009060840161344f565b6000613559826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166135e99092919063ffffffff16565b8051909150156103f95780806020019051810190613577919061405b565b6103f95760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610b82565b60606135f88484600085613600565b949350505050565b6060824710156136785760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610b82565b6001600160a01b0385163b6136cf5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610b82565b600080866001600160a01b031685876040516136eb919061427b565b60006040518083038185875af1925050503d8060008114613728576040519150601f19603f3d011682016040523d82523d6000602084013e61372d565b606091505b509150915061373d828286613748565b979650505050505050565b60608315613757575081611426565b8251156137675782518084602001fd5b8160405162461bcd60e51b8152600401610b829190613a14565b82805461378d90613eba565b90600052602060002090601f0160209004810192826137af57600085556137f5565b82601f106137c857805160ff19168380011785556137f5565b828001600101855582156137f5579182015b828111156137f55782518255916020019190600101906137da565b50613801929150613805565b5090565b5b808211156138015760008155600101613806565b60006020828403121561382c57600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461142657600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051610120810167ffffffffffffffff811182821017156138af576138af61385c565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156138de576138de61385c565b604052919050565b600067ffffffffffffffff8211156139005761390061385c565b50601f01601f191660200190565b600061392161391c846138e6565b6138b5565b905082815283838301111561393557600080fd5b828260208301376000602084830101529392505050565b600082601f83011261395d57600080fd5b6114268383356020850161390e565b60008060006060848603121561398157600080fd5b8335925060208401359150604084013567ffffffffffffffff8111156139a657600080fd5b6139b28682870161394c565b9150509250925092565b60005b838110156139d75781810151838201526020016139bf565b838111156105df5750506000910152565b60008151808452613a008160208601602086016139bc565b601f01601f19169290920160200192915050565b60208152600061142660208301846139e8565b600060208284031215613a3957600080fd5b5035919050565b6001600160a01b038116811461263f57600080fd5b8035610f2181613a40565b600080600060608486031215613a7557600080fd5b83359250602084013591506040840135613a8e81613a40565b809150509250925092565b60008060408385031215613aac57600080fd5b50508035926020909101359150565b60008060008060808587031215613ad157600080fd5b8435935060208501359250604085013591506060850135613af181613a40565b939692955090935050565b600060208284031215613b0e57600080fd5b813561142681613a40565b600060208284031215613b2b57600080fd5b813567ffffffffffffffff811115613b4257600080fd5b8201601f81018413613b5357600080fd5b6135f88482356020840161390e565b801515811461263f57600080fd5b8035610f2181613b62565b600060208284031215613b8d57600080fd5b813561142681613b62565b600082601f830112613ba957600080fd5b8135602067ffffffffffffffff821115613bc557613bc561385c565b8160051b613bd48282016138b5565b9283528481018201928281019087851115613bee57600080fd5b83870192505b8483101561373d57823582529183019190830190613bf4565b60008060008060808587031215613c2357600080fd5b84359350602085013567ffffffffffffffff811115613c4157600080fd5b613c4d87828801613b98565b9350506040850135613c5e81613a40565b91506060850135613af181613b62565b60008060008060808587031215613c8457600080fd5b84359350602085013567ffffffffffffffff811115613ca257600080fd5b613cae87828801613b98565b935050604085013591506060850135613af181613a40565b60008060008060808587031215613cdc57600080fd5b843593506020850135613cee81613a40565b92506040850135613cfe81613a40565b9396929550929360600135925050565b60008060408385031215613d2157600080fd5b82359150602083013567ffffffffffffffff811115613d3f57600080fd5b613d4b8582860161394c565b9150509250929050565b60008060008060008587036101a0811215613d6f57600080fd5b863595506020870135613d8181613a40565b9450604087013593506101207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa08201811315613dbc57600080fd5b613dc461388b565b9150613dd260608901613a55565b8252613de060808901613a55565b602083015260a0880135604083015260c0880135606083015260e088013560808301526101008089013560a0840152613e1a828a01613b70565b60c0840152613e2c6101408a01613b70565b60e0840152613e3e6101608a01613b70565b9083015250915061018086013567ffffffffffffffff811115613e6057600080fd5b613e6c8882890161394c565b9150509295509295909350565b8051610f2181613a40565b600060208284031215613e9657600080fd5b815161142681613a40565b600060208284031215613eb357600080fd5b5051919050565b600181811c90821680613ece57607f821691505b60208210811415613f08577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b8051610f2181613b62565b60006101208284031215613f5b57600080fd5b613f6361388b565b613f6c83613e79565b8152613f7a60208401613e79565b602082015260408301516040820152606083015160608201526080830151608082015260a083015160a0820152613fb360c08401613f3d565b60c0820152613fc460e08401613f3d565b60e0820152610100613fd7818501613f3d565b908201529392505050565b6000613ff061391c846138e6565b905082815283838301111561400457600080fd5b6114268360208301846139bc565b60006020828403121561402457600080fd5b815167ffffffffffffffff81111561403b57600080fd5b8201601f8101841361404c57600080fd5b6135f884825160208401613fe2565b60006020828403121561406d57600080fd5b815161142681613b62565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156140df576140df614078565b500290565b6000828210156140f6576140f6614078565b500390565b600082614131577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500690565b6000821982111561414957614149614078565b500190565b6001600160a01b038082511683528060208301511660208401525060408101516040830152606081015160608301526080810151608083015260a081015160a083015260c0810151151560c083015260e08101516141b060e084018215159052565b5061010081810151801515848301526105df565b60006101a06001600160a01b038088168452602082818601526000838601526101c0925082850183604087015280935088518082526101e087019450828a01915060005b81811015614226578251851686529483019491830191600101614208565b50505084830360608601528651808452818801938201925060005b8181101561425d57845184529382019392820192600101614241565b5050508092505050614272608083018461414e565b95945050505050565b6000825161428d8184602087016139bc565b919091019291505056fea2646970667358221220014ed9cf649bec8504fd69d028168807432d38892c22edf221b6381b0a08614664736f6c6343000809003368747470733a2f2f7265766573742e6d7970696e6174612e636c6f75642f697066732f516d575579766b47467446525857786e656f6a764166424d793851706577537677514d51416b415556343241393168747470733a2f2f7265766573742e6d7970696e6174612e636c6f75642f697066732f516d64614a736f3833646841354d7939677a3365775842786f5776656f393575744a4a715939395a534745705263000000000000000000000000120a3879da835a5af037bb2d1456bebd6b54d4ba0000000000000000000000006490828bd87be38279a36f029f3b9af8b4e14b49000000000000000000000000a4e7f2a1edb5ad886baa09fb258f8aca7c934ba6000000000000000000000000d721a90dd7e010c8c5e022cc0100c55ac78e0fc4000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Deployed Bytecode
0x6080604052600436106102f25760003560e01c806376da63f31161018f5780639b4dc8cc116100e1578063d7bf91101161008a578063f2fde38b11610064578063f2fde38b1461083e578063f3ad65f41461085e578063f48fe0501461087e57600080fd5b8063d7bf9110146107de578063e59dd90d146107fe578063eac8f5b81461081e57600080fd5b8063aca1c665116100bb578063aca1c6651461077f578063b38221ff1461079f578063d2551412146107bf57600080fd5b80639b4dc8cc1461071f578063a24bc8f91461073f578063a49a1e7d1461075f57600080fd5b80637f30dac2116101435780638ecacb1b1161011d5780638ecacb1b14610692578063907b0013146106b257806390a50d51146106c857600080fd5b80637f30dac21461065a5780638d9d67051461050d5780638da5cb5b1461067457600080fd5b80637a351a1d116101745780637a351a1d146106055780637a5b4f59146106255780637e3c2ad81461063a57600080fd5b806376da63f3146105c4578063798e54ac146105e557600080fd5b8063270a091e116102485780635ab1bd53116101fc57806365973040116101d6578063659730401461057a5780636abdc4b41461058f578063715018a6146105af57600080fd5b80635ab1bd531461050d5780635c0c8d751461053f578063644bf7d81461055f57600080fd5b80632add8d1b1161022d5780632add8d1b146104b95780632ee70dc3146104d9578063346c9409146104f957600080fd5b8063270a091e1461047957806327c7812c1461049957600080fd5b80630ff4c916116102aa578063175cec2311610284578063175cec231461041e5780631c8478161461043e5780631d1457211461045957600080fd5b80630ff4c916146103be5780631355f7ab146103de57806316f49e8a146103fe57600080fd5b80630787508e116102db5780630787508e1461034e5780630962ef79146103705780630c196a741461039057600080fd5b806301ffc9a7146102f7578063045c22551461032c575b600080fd5b34801561030357600080fd5b5061031761031236600461381a565b610893565b60405190151581526020015b60405180910390f35b34801561033857600080fd5b5061034c61034736600461396c565b610a10565b005b34801561035a57600080fd5b50610363610c35565b6040516103239190613a14565b34801561037c57600080fd5b5061034c61038b366004613a27565b610cc3565b34801561039c57600080fd5b506103b06103ab366004613a27565b610edf565b604051908152602001610323565b3480156103ca57600080fd5b506103b06103d9366004613a27565b610f26565b3480156103ea57600080fd5b5061034c6103f9366004613a60565b505050565b34801561040a57600080fd5b50610363610419366004613a27565b61104b565b34801561042a57600080fd5b50610317610439366004613a99565b611182565b34801561044a57600080fd5b5061034c6103f936600461396c565b34801561046557600080fd5b5061034c610474366004613abb565b6112c4565b34801561048557600080fd5b506103b0610494366004613a99565b61140c565b3480156104a557600080fd5b5061034c6104b4366004613afc565b61142d565b3480156104c557600080fd5b5061034c6104d4366004613b19565b6114c1565b3480156104e557600080fd5b506103b06104f4366004613a27565b61152e565b34801561050557600080fd5b506001610317565b34801561051957600080fd5b506004546001600160a01b03165b6040516001600160a01b039091168152602001610323565b34801561054b57600080fd5b5061034c61055a366004613b7b565b61158a565b34801561056b57600080fd5b5061034c6102f2366004613c0d565b34801561058657600080fd5b50610363611615565b34801561059b57600080fd5b5061034c6105aa366004613afc565b611622565b3480156105bb57600080fd5b5061034c6116b6565b3480156105d057600080fd5b5061034c6105df366004613c6e565b50505050565b3480156105f157600080fd5b50600354610527906001600160a01b031681565b34801561061157600080fd5b5061034c610620366004613afc565b61171c565b34801561063157600080fd5b506103636117b0565b34801561064657600080fd5b50610363610655366004613a99565b611842565b34801561066657600080fd5b506007546103179060ff1681565b34801561068057600080fd5b506000546001600160a01b0316610527565b34801561069e57600080fd5b506103636106ad366004613a27565b611a95565b3480156106be57600080fd5b506103b060065481565b3480156106d457600080fd5b506107046106e3366004613a27565b600f6020526000908152604090208054600182015460029092015490919083565b60408051938452602084019290925290820152606001610323565b34801561072b57600080fd5b50600254610527906001600160a01b031681565b34801561074b57600080fd5b506103b061075a366004613a99565b611ed2565b34801561076b57600080fd5b5061034c61077a366004613b19565b611eec565b34801561078b57600080fd5b5061034c61079a366004613cc6565b611f59565b3480156107ab57600080fd5b5061034c6107ba366004613afc565b612364565b3480156107cb57600080fd5b5061034c6107da366004613d0e565b5050565b3480156107ea57600080fd5b5061034c6107f9366004613a27565b6123f8565b34801561080a57600080fd5b50600554610527906001600160a01b031681565b34801561082a57600080fd5b50610527610839366004613a27565b612457565b34801561084a57600080fd5b5061034c610859366004613afc565b612560565b34801561086a57600080fd5b50600454610527906001600160a01b031681565b61034c61088c366004613d55565b5050505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167fd1a3af5a00000000000000000000000000000000000000000000000000000000148061092657507fffffffff0000000000000000000000000000000000000000000000000000000082167f3f8f47e800000000000000000000000000000000000000000000000000000000145b8061097257507fffffffff0000000000000000000000000000000000000000000000000000000082167f4291039a00000000000000000000000000000000000000000000000000000000145b806109be57507fffffffff0000000000000000000000000000000000000000000000000000000082167f789bc37900000000000000000000000000000000000000000000000000000000145b80610a0a57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6004546001600160a01b03166001600160a01b031663d59e296e6040518163ffffffff1660e01b815260040160206040518083038186803b158015610a5457600080fd5b505afa158015610a68573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a8c9190613e84565b6001600160a01b0316632b04e840336040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b0390911660048201526024810186905260440160206040518083038186803b158015610af957600080fd5b505afa158015610b0d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b319190613ea1565b600114610b8b5760405162461bcd60e51b8152600401610b829060208082526004908201527f4530363100000000000000000000000000000000000000000000000000000000604082015260600190565b60405180910390fd5b6003546001600160a01b0316636c7b69cb84336040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815260048101929092526001600160a01b03166024820152604401602060405180830381600087803b158015610bfd57600080fd5b505af1158015610c11573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105df9190613ea1565b600e8054610c4290613eba565b80601f0160208091040260200160405190810160405280929190818152602001828054610c6e90613eba565b8015610cbb5780601f10610c9057610100808354040283529160200191610cbb565b820191906000526020600020905b815481529060010190602001808311610c9e57829003601f168201915b505050505081565b6004546001600160a01b03166001600160a01b031663d59e296e6040518163ffffffff1660e01b815260040160206040518083038186803b158015610d0757600080fd5b505afa158015610d1b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d3f9190613e84565b6001600160a01b0316632b04e840336040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b0390911660048201526024810184905260440160206040518083038186803b158015610dac57600080fd5b505afa158015610dc0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610de49190613ea1565b600114610e355760405162461bcd60e51b8152600401610b829060208082526004908201527f4530363100000000000000000000000000000000000000000000000000000000604082015260600190565b6003546001600160a01b0316636c7b69cb82336040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815260048101929092526001600160a01b03166024820152604401602060405180830381600087803b158015610ea757600080fd5b505af1158015610ebb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107da9190613ea1565b600060018211610ef657600960005b015492915050565b60038211610f075760096001610eee565b60068211610f185760096002610eee565b60096003610eee565b919050565b60006006548211611035576004546001600160a01b03166001600160a01b03166354f2f7af6040518163ffffffff1660e01b815260040160206040518083038186803b158015610f7557600080fd5b505afa158015610f89573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fad9190613e84565b6001600160a01b031663522f9b37836040518263ffffffff1660e01b8152600401610fda91815260200190565b6101206040518083038186803b158015610ff357600080fd5b505afa158015611007573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061102b9190613f48565b6040015192915050565b506000908152600f602052604090206002015490565b606060065482116110f0576005546040517f16f49e8a000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b03909116906316f49e8a906024015b60006040518083038186803b1580156110b457600080fd5b505afa1580156110c8573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610a0a9190810190614012565b600d80546110fd90613eba565b80601f016020809104026020016040519081016040528092919081815260200182805461112990613eba565b80156111765780601f1061114b57610100808354040283529160200191611176565b820191906000526020600020905b81548152906001019060200180831161115957829003601f168201915b50505050509050919050565b60006006548311611230576005546040517f175cec2300000000000000000000000000000000000000000000000000000000815260048101859052600060248201526001600160a01b039091169063175cec239060440160206040518083038186803b1580156111f157600080fd5b505afa158015611205573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611229919061405b565b9050610a0a565b6000838152600f60205260408120805460019091015490916112518361152e565b905060006201518061126485601e6140a7565b61126e91906140a7565b61127884426140e4565b1190506000826201518061128d87601e6140a7565b61129791906140a7565b6112a186426140e4565b6112ab91906140fb565b1090508180156112b85750805b98975050505050505050565b6004546001600160a01b03166001600160a01b031663f97e7d746040518163ffffffff1660e01b815260040160206040518083038186803b15801561130857600080fd5b505afa15801561131c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113409190613e84565b6001600160a01b0316336001600160a01b0316146113a25760405162461bcd60e51b8152600401610b829060208082526004908201527f4530313600000000000000000000000000000000000000000000000000000000604082015260600190565b816001146113af57600080fd5b60075460ff166114015760405162461bcd60e51b815260206004820152600c60248201527f4e6f7420616c6c6f7765642100000000000000000000000000000000000000006044820152606401610b82565b6105df848483612642565b600154600090611426906001600160a01b03168484612d1f565b9392505050565b6000546001600160a01b031633146114875760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b82565b600480547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6000546001600160a01b0316331461151b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b82565b80516107da90600d906020840190613781565b6000816001141561153f5750620151805b8160031415611559576115566201518060056140a7565b90505b8160061415611573576115706201518060096140a7565b90505b81600c1415610f2157610a0a62015180600e6140a7565b6000546001600160a01b031633146115e45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b82565b600780547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b600d8054610c4290613eba565b6000546001600160a01b0316331461167c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b82565b600580547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6000546001600160a01b031633146117105760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b82565b61171a60006133a2565b565b6000546001600160a01b031633146117765760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b82565b600280547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6060600e80546117bf90613eba565b80601f01602080910402602001604051908101604052809291908181526020018280546117eb90613eba565b80156118385780601f1061180d57610100808354040283529160200191611838565b820191906000526020600020905b81548152906001019060200180831161181b57829003601f168201915b5050505050905090565b606060065483116118ed576005546040517f7e3c2ad800000000000000000000000000000000000000000000000000000000815260048101859052600060248201526001600160a01b0390911690637e3c2ad89060440160006040518083038186803b1580156118b157600080fd5b505afa1580156118c5573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526112299190810190614012565b600354600180546040517f352152ff000000000000000000000000000000000000000000000000000000008152600481018790526001600160a01b0391821660248201526044810192909252600092839291169063352152ff9060640160206040518083038186803b15801561196257600080fd5b505afa158015611976573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061199a9190613ea1565b6003546001546040517f352152ff000000000000000000000000000000000000000000000000000000008152600481018990526001600160a01b03918216602482015260006044820181905293945091169063352152ff9060640160206040518083038186803b158015611a0d57600080fd5b505afa158015611a21573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a459190613ea1565b905060008211611a555780611a57565b815b6000968752600f6020908152604097889020548851918201929092528088019190915286518082038801815260609091019096525093949350505050565b60606006548211611aea576005546040517f8ecacb1b000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b0390911690638ecacb1b9060240161109c565b600354600180546040517f352152ff000000000000000000000000000000000000000000000000000000008152600481018690526001600160a01b0391821660248201526044810192909252600092839291169063352152ff9060640160206040518083038186803b158015611b5f57600080fd5b505afa158015611b73573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b979190613ea1565b6003546040517f352152ff000000000000000000000000000000000000000000000000000000008152600481018790526001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281166024830152600160448301529293506000929091169063352152ff9060640160206040518083038186803b158015611c2957600080fd5b505afa158015611c3d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c619190613ea1565b90506000821180611c725750600081115b6003546001546040517f29d21a00000000000000000000000000000000000000000000000000000000008152600481018990526001600160a01b039182166024820152929550600094501691506329d21a009060440160206040518083038186803b158015611ce057600080fd5b505afa158015611cf4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d189190613ea1565b6003546040517f29d21a00000000000000000000000000000000000000000000000000000000008152600481018790526001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281166024830152929350600092909116906329d21a009060440160206040518083038186803b158015611da357600080fd5b505afa158015611db7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ddb9190613ea1565b6000868152600f6020526040812054919250611dfa8262278d006140a7565b6000888152600f6020526040902060010154611e1690426140e4565b611e2091906140fb565b611e2d8362278d006140a7565b611e3791906140e4565b611e419042614136565b9050838383600f60008b81526020019081526020016000206001015488611e73576002546001600160a01b0316611e80565b6001546001600160a01b03165b604080516020810196909652850193909352606084019190915260808301526001600160a01b031660a082015260c0810182905260e00160405160208183030381529060405295505050505050919050565b600254600090611426906001600160a01b03168484612d1f565b6000546001600160a01b03163314611f465760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b82565b80516107da90600e906020840190613781565b6000611f6d6004546001600160a01b031690565b6001600160a01b03166354f2f7af6040518163ffffffff1660e01b815260040160206040518083038186803b158015611fa557600080fd5b505afa158015611fb9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fdd9190613e84565b9050336001600160a01b038216146120395760405162461bcd60e51b8152600401610b829060208082526004908201527f4530313600000000000000000000000000000000000000000000000000000000604082015260600190565b816001146120895760405162461bcd60e51b815260206004820152600d60248201527f4f4e4c592053494e47554c4152000000000000000000000000000000000000006044820152606401610b82565b600654851115806120a757506000858152600f602052604090205415155b6120f35760405162461bcd60e51b815260206004820152600c60248201527f4e6f6e6578697374656e742100000000000000000000000000000000000000006044820152606401610b82565b60006120fe86610f26565b6003546040517f6c7b69cb000000000000000000000000000000000000000000000000000000008152600481018990526001600160a01b038781166024830152929350911690636c7b69cb90604401602060405180830381600087803b15801561216757600080fd5b505af115801561217b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061219f9190613ea1565b506001546001600160a01b038681169116141561223a576003546040517f7af3a86f00000000000000000000000000000000000000000000000000000000815260048101889052600060248201526001600160a01b0390911690637af3a86f906044015b600060405180830381600087803b15801561221d57600080fd5b505af1158015612231573d6000803e3d6000fd5b505050506122eb565b6002546001600160a01b03868116911614156122a1576003546040517f6112032800000000000000000000000000000000000000000000000000000000815260048101889052600060248201526001600160a01b0390911690636112032890604401612203565b60405162461bcd60e51b8152600401610b829060208082526004908201527f4530373200000000000000000000000000000000000000000000000000000000604082015260600190565b6122ff6001600160a01b038616858361340a565b856001600160a01b038616336001600160a01b03167ff2b6e7f64080f438239b56473f2cd92b33165c88688fd898e1d99082bd0eb9548460405161235491815260406020820181905260009082015260600190565b60405180910390a4505050505050565b6000546001600160a01b031633146123be5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b82565b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6000546001600160a01b031633146124525760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b82565b600655565b600061246b6004546001600160a01b031690565b6001600160a01b03166354f2f7af6040518163ffffffff1660e01b815260040160206040518083038186803b1580156124a357600080fd5b505afa1580156124b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124db9190613e84565b6001600160a01b031663522f9b37836040518263ffffffff1660e01b815260040161250891815260200190565b6101206040518083038186803b15801561252157600080fd5b505afa158015612535573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125599190613f48565b5192915050565b6000546001600160a01b031633146125ba5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b82565b6001600160a01b0381166126365760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b82565b61263f816133a2565b50565b6004546001600160a01b03166001600160a01b031663d59e296e6040518163ffffffff1660e01b815260040160206040518083038186803b15801561268657600080fd5b505afa15801561269a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126be9190613e84565b6040517f2b04e8400000000000000000000000000000000000000000000000000000000081526001600160a01b038381166004830152602482018690529190911690632b04e8409060440160206040518083038186803b15801561272157600080fd5b505afa158015612735573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127599190613ea1565b6001146127aa5760405162461bcd60e51b8152600401610b829060208082526004908201527f4530363100000000000000000000000000000000000000000000000000000000604082015260600190565b60065483116127fd5760405162461bcd60e51b8152600401610b829060208082526004908201527f4530383000000000000000000000000000000000000000000000000000000000604082015260600190565b6000838152600f60205260409020548061285b5760405162461bcd60e51b8152600401610b829060208082526004908201527f4530373800000000000000000000000000000000000000000000000000000000604082015260600190565b600061286f6004546001600160a01b031690565b6001600160a01b03166354f2f7af6040518163ffffffff1660e01b815260040160206040518083038186803b1580156128a757600080fd5b505afa1580156128bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128df9190613e84565b6001600160a01b031663522f9b37866040518263ffffffff1660e01b815260040161290c91815260200190565b6101206040518083038186803b15801561292557600080fd5b505afa158015612939573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061295d9190613f48565b516001549091506001600160a01b038083169116148061298a57506002546001600160a01b038281169116145b6129d85760405162461bcd60e51b8152600401610b829060208082526004908201527f4530373900000000000000000000000000000000000000000000000000000000604082015260600190565b6003546001600160a01b0316636c7b69cb86336040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815260048101929092526001600160a01b03166024820152604401602060405180830381600087803b158015612a4a57600080fd5b505af1158015612a5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a829190613ea1565b506000858152600f6020526040902042600182015560020154612aa6908590614136565b6000868152600f60205260408082206002019290925560035460015492517f352152ff000000000000000000000000000000000000000000000000000000008152600481018990526001600160a01b03938416602482018190528585161460448201529192169063352152ff9060640160206040518083038186803b158015612b2e57600080fd5b505afa158015612b42573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b669190613ea1565b9050600081612b7485610edf565b612b7e90886140a7565b612b889190614136565b6001549091506001600160a01b0384811691161415612c24576003546040517f7af3a86f00000000000000000000000000000000000000000000000000000000815260048101899052602481018390526001600160a01b0390911690637af3a86f90604401600060405180830381600087803b158015612c0757600080fd5b505af1158015612c1b573d6000803e3d6000fd5b50505050612cb9565b6002546001600160a01b0384811691161415612cb9576003546040517f6112032800000000000000000000000000000000000000000000000000000000815260048101899052602481018390526001600160a01b0390911690636112032890604401600060405180830381600087803b158015612ca057600080fd5b505af1158015612cb4573d6000803e3d6000fd5b505050505b866001600160a01b038416336001600160a01b03167f5bed1f834b92cc21cec09497afa47d36952b8a037e988eca6e9ecffeb497b22789604051612d0e91815260406020820181905260009082015260600190565b60405180910390a450505050505050565b6002546000906001600160a01b0385811691161480612d4b57506001546001600160a01b038581169116145b612d995760405162461bcd60e51b8152600401610b829060208082526004908201527f4530373900000000000000000000000000000000000000000000000000000000604082015260600190565b8160011480612da85750816003145b80612db35750816006145b80612dbe575081600c145b612e0c5760405162461bcd60e51b8152600401610b829060208082526004908201527f4530353500000000000000000000000000000000000000000000000000000000604082015260600190565b612e216001600160a01b0385163330866134b3565b60408051610120810182526000606082018190526080820181905260a0820181905260c0820181905261010082018190526001600160a01b0387168252818301869052600160e083018190523060208401528351818152808501909452919290918160200160208202803683370190505090503381600081518110612ea857612ea8613f0e565b6001600160a01b039290921660209283029190910190910152604080516001808252818301909252600091816020016020820280368337019050509050600181600081518110612efa57612efa613f0e565b6020026020010181815250506000612f1a6004546001600160a01b031690565b6001600160a01b031663f97e7d746040518163ffffffff1660e01b815260040160206040518083038186803b158015612f5257600080fd5b505afa158015612f66573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f8a9190613e84565b6001600160a01b038082166000908152600860209081526040808320938d168352929052205490915060ff166130c4576040517f095ea7b30000000000000000000000000000000000000000000000000000000081526001600160a01b0382811660048301527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff602483015289169063095ea7b390604401602060405180830381600087803b15801561303c57600080fd5b505af1158015613050573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613074919061405b565b506001600160a01b038082166000908152600860209081526040808320938c1683529290522080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790555b6040517f02e236bc0000000000000000000000000000000000000000000000000000000081526000906001600160a01b038316906302e236bc90613112903090889088908b906004016141c4565b602060405180830381600087803b15801561312c57600080fd5b505af1158015613140573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131649190613ea1565b9050600061317188610edf565b9050600061317f828b6140a7565b604080516060810182528b81524260208083019182528284018f81526000898152600f909252939020825181559051600182015591516002928301559054919250906001600160a01b038d811691161415613257576003546040517f6112032800000000000000000000000000000000000000000000000000000000815260048101869052602481018490526001600160a01b0390911690636112032890604401600060405180830381600087803b15801561323a57600080fd5b505af115801561324e573d6000803e3d6000fd5b505050506132ec565b6001546001600160a01b038d8116911614156132ec576003546040517f7af3a86f00000000000000000000000000000000000000000000000000000000815260048101869052602481018490526001600160a01b0390911690637af3a86f90604401600060405180830381600087803b1580156132d357600080fd5b505af11580156132e7573d6000803e3d6000fd5b505050505b6001546040518581528c916001600160a01b038f8116911614908c907f293550fb329a6232032e6a883f1173a8c25a2639cf0209858586df3d000c9fb59060200160405180910390a4836001600160a01b038d16336001600160a01b03167f5bed1f834b92cc21cec09497afa47d36952b8a037e988eca6e9ecffeb497b2278e60405161338a91815260406020820181905260009082015260600190565b60405180910390a450919a9950505050505050505050565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b0383166024820152604481018290526103f99084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152613504565b6040516001600160a01b03808516602483015283166044820152606481018290526105df9085907f23b872dd000000000000000000000000000000000000000000000000000000009060840161344f565b6000613559826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166135e99092919063ffffffff16565b8051909150156103f95780806020019051810190613577919061405b565b6103f95760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610b82565b60606135f88484600085613600565b949350505050565b6060824710156136785760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610b82565b6001600160a01b0385163b6136cf5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610b82565b600080866001600160a01b031685876040516136eb919061427b565b60006040518083038185875af1925050503d8060008114613728576040519150601f19603f3d011682016040523d82523d6000602084013e61372d565b606091505b509150915061373d828286613748565b979650505050505050565b60608315613757575081611426565b8251156137675782518084602001fd5b8160405162461bcd60e51b8152600401610b829190613a14565b82805461378d90613eba565b90600052602060002090601f0160209004810192826137af57600085556137f5565b82601f106137c857805160ff19168380011785556137f5565b828001600101855582156137f5579182015b828111156137f55782518255916020019190600101906137da565b50613801929150613805565b5090565b5b808211156138015760008155600101613806565b60006020828403121561382c57600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461142657600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051610120810167ffffffffffffffff811182821017156138af576138af61385c565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156138de576138de61385c565b604052919050565b600067ffffffffffffffff8211156139005761390061385c565b50601f01601f191660200190565b600061392161391c846138e6565b6138b5565b905082815283838301111561393557600080fd5b828260208301376000602084830101529392505050565b600082601f83011261395d57600080fd5b6114268383356020850161390e565b60008060006060848603121561398157600080fd5b8335925060208401359150604084013567ffffffffffffffff8111156139a657600080fd5b6139b28682870161394c565b9150509250925092565b60005b838110156139d75781810151838201526020016139bf565b838111156105df5750506000910152565b60008151808452613a008160208601602086016139bc565b601f01601f19169290920160200192915050565b60208152600061142660208301846139e8565b600060208284031215613a3957600080fd5b5035919050565b6001600160a01b038116811461263f57600080fd5b8035610f2181613a40565b600080600060608486031215613a7557600080fd5b83359250602084013591506040840135613a8e81613a40565b809150509250925092565b60008060408385031215613aac57600080fd5b50508035926020909101359150565b60008060008060808587031215613ad157600080fd5b8435935060208501359250604085013591506060850135613af181613a40565b939692955090935050565b600060208284031215613b0e57600080fd5b813561142681613a40565b600060208284031215613b2b57600080fd5b813567ffffffffffffffff811115613b4257600080fd5b8201601f81018413613b5357600080fd5b6135f88482356020840161390e565b801515811461263f57600080fd5b8035610f2181613b62565b600060208284031215613b8d57600080fd5b813561142681613b62565b600082601f830112613ba957600080fd5b8135602067ffffffffffffffff821115613bc557613bc561385c565b8160051b613bd48282016138b5565b9283528481018201928281019087851115613bee57600080fd5b83870192505b8483101561373d57823582529183019190830190613bf4565b60008060008060808587031215613c2357600080fd5b84359350602085013567ffffffffffffffff811115613c4157600080fd5b613c4d87828801613b98565b9350506040850135613c5e81613a40565b91506060850135613af181613b62565b60008060008060808587031215613c8457600080fd5b84359350602085013567ffffffffffffffff811115613ca257600080fd5b613cae87828801613b98565b935050604085013591506060850135613af181613a40565b60008060008060808587031215613cdc57600080fd5b843593506020850135613cee81613a40565b92506040850135613cfe81613a40565b9396929550929360600135925050565b60008060408385031215613d2157600080fd5b82359150602083013567ffffffffffffffff811115613d3f57600080fd5b613d4b8582860161394c565b9150509250929050565b60008060008060008587036101a0811215613d6f57600080fd5b863595506020870135613d8181613a40565b9450604087013593506101207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa08201811315613dbc57600080fd5b613dc461388b565b9150613dd260608901613a55565b8252613de060808901613a55565b602083015260a0880135604083015260c0880135606083015260e088013560808301526101008089013560a0840152613e1a828a01613b70565b60c0840152613e2c6101408a01613b70565b60e0840152613e3e6101608a01613b70565b9083015250915061018086013567ffffffffffffffff811115613e6057600080fd5b613e6c8882890161394c565b9150509295509295909350565b8051610f2181613a40565b600060208284031215613e9657600080fd5b815161142681613a40565b600060208284031215613eb357600080fd5b5051919050565b600181811c90821680613ece57607f821691505b60208210811415613f08577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b8051610f2181613b62565b60006101208284031215613f5b57600080fd5b613f6361388b565b613f6c83613e79565b8152613f7a60208401613e79565b602082015260408301516040820152606083015160608201526080830151608082015260a083015160a0820152613fb360c08401613f3d565b60c0820152613fc460e08401613f3d565b60e0820152610100613fd7818501613f3d565b908201529392505050565b6000613ff061391c846138e6565b905082815283838301111561400457600080fd5b6114268360208301846139bc565b60006020828403121561402457600080fd5b815167ffffffffffffffff81111561403b57600080fd5b8201601f8101841361404c57600080fd5b6135f884825160208401613fe2565b60006020828403121561406d57600080fd5b815161142681613b62565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156140df576140df614078565b500290565b6000828210156140f6576140f6614078565b500390565b600082614131577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500690565b6000821982111561414957614149614078565b500190565b6001600160a01b038082511683528060208301511660208401525060408101516040830152606081015160608301526080810151608083015260a081015160a083015260c0810151151560c083015260e08101516141b060e084018215159052565b5061010081810151801515848301526105df565b60006101a06001600160a01b038088168452602082818601526000838601526101c0925082850183604087015280935088518082526101e087019450828a01915060005b81811015614226578251851686529483019491830191600101614208565b50505084830360608601528651808452818801938201925060005b8181101561425d57845184529382019392820192600101614241565b5050508092505050614272608083018461414e565b95945050505050565b6000825161428d8184602087016139bc565b919091019291505056fea2646970667358221220014ed9cf649bec8504fd69d028168807432d38892c22edf221b6381b0a08614664736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000120a3879da835a5af037bb2d1456bebd6b54d4ba0000000000000000000000006490828bd87be38279a36f029f3b9af8b4e14b49000000000000000000000000a4e7f2a1edb5ad886baa09fb258f8aca7c934ba6000000000000000000000000d721a90dd7e010c8c5e022cc0100c55ac78e0fc4000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
-----Decoded View---------------
Arg [0] : revestAddress_ (address): 0x120a3879da835A5aF037bB2d1456beBd6B54d4bA
Arg [1] : lpAddress_ (address): 0x6490828Bd87Be38279A36F029f3b9Af8b4E14B49
Arg [2] : rewardsHandlerAddress_ (address): 0xA4E7f2a1EDB5AD886baA09Fb258F8ACA7c934ba6
Arg [3] : addressRegistry_ (address): 0xD721A90dd7e010c8C5E022cc0100c55aC78E0FC4
Arg [4] : wrappedEth_ (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 000000000000000000000000120a3879da835a5af037bb2d1456bebd6b54d4ba
Arg [1] : 0000000000000000000000006490828bd87be38279a36f029f3b9af8b4e14b49
Arg [2] : 000000000000000000000000a4e7f2a1edb5ad886baa09fb258f8aca7c934ba6
Arg [3] : 000000000000000000000000d721a90dd7e010c8c5e022cc0100c55ac78e0fc4
Arg [4] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $0.999824 | 0.3048 | $0.3047 |
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.