Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 28,226 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Claim | 15364896 | 870 days ago | IN | 0 ETH | 0.00213516 | ||||
Claim | 15260040 | 886 days ago | IN | 0 ETH | 0.00046833 | ||||
Withdraw | 15182504 | 898 days ago | IN | 0 ETH | 0.00050309 | ||||
Withdraw | 15182504 | 898 days ago | IN | 0 ETH | 0.00050309 | ||||
Set Pool | 15182159 | 898 days ago | IN | 0 ETH | 0.00067139 | ||||
Set Pool | 15182158 | 898 days ago | IN | 0 ETH | 0.00072872 | ||||
Set Pool | 15182156 | 898 days ago | IN | 0 ETH | 0.00076159 | ||||
Set Pool | 15182156 | 898 days ago | IN | 0 ETH | 0.000671 | ||||
Claim | 15182050 | 898 days ago | IN | 0 ETH | 0.00245803 | ||||
Withdraw | 15182050 | 898 days ago | IN | 0 ETH | 0.00294594 | ||||
Claim | 15182044 | 898 days ago | IN | 0 ETH | 0.00254308 | ||||
Withdraw | 15182044 | 898 days ago | IN | 0 ETH | 0.00304786 | ||||
Withdraw | 15182007 | 898 days ago | IN | 0 ETH | 0.00767607 | ||||
Withdraw | 15181945 | 898 days ago | IN | 0 ETH | 0.01218587 | ||||
Claim | 15181939 | 898 days ago | IN | 0 ETH | 0.00313504 | ||||
Withdraw | 15181921 | 898 days ago | IN | 0 ETH | 0.00304697 | ||||
Withdraw | 15181893 | 898 days ago | IN | 0 ETH | 0.00601677 | ||||
Claim | 15181892 | 898 days ago | IN | 0 ETH | 0.00495348 | ||||
Claim | 15181863 | 898 days ago | IN | 0 ETH | 0.00341374 | ||||
Withdraw | 15181822 | 898 days ago | IN | 0 ETH | 0.00279811 | ||||
Withdraw | 15181816 | 898 days ago | IN | 0 ETH | 0.00321549 | ||||
Withdraw | 15181786 | 898 days ago | IN | 0 ETH | 0.01064725 | ||||
Withdraw | 15181779 | 898 days ago | IN | 0 ETH | 0.0031601 | ||||
Withdraw | 15181777 | 898 days ago | IN | 0 ETH | 0.00342413 | ||||
Claim | 15181752 | 898 days ago | IN | 0 ETH | 0.00146035 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
ImpostorsStaker
Compiler Version
v0.8.11+commit.d7f03943
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0-only pragma solidity ^0.8.11; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "../interfaces/ITiny721.sol"; /* It saves bytecode to revert on custom errors instead of using require statements. We are just declaring these errors for reverting with upon various conditions later in this contract. */ error CannotAddPoolWithInvalidId(); error CannotStakeAfterDeadline(); error CannotStakeInactivePool(); error CannotStakeUnownedItem(); error CannotStakeTimeLockedItem(); error CannotWithdrawUnownedItem(); error CannotWithdrawTimeLockedItem(); error CannotWithdrawUnstakedItem(); error SweepingTransferFailed(); error EmptyTokenIdsArray(); /** @title A simple staking contract for transfer-locking `Tiny721` items in exchange for tokens. @author Tim Clancy @author Rostislav Khlebnikov @author 0xthrpw This staking contract disburses tokens from its internal reservoir to those who stake `Tiny721` items, at a fixed rate of token per item independent of the number of items staked. It supports defining multiple time-locked pools with different rates. March 7th, 2022. */ contract ImpostorsStaker is Ownable, ReentrancyGuard { using SafeERC20 for IERC20; /// The name of this Staker. string public name; /// The token to disburse. address public immutable token; /** This struct is used to define information regarding a particular pool that the user may choose to stake their items against. @param item The address of the item contract that is allowed to be staked in this pool. @param lockedTokensPerSecond The amount of token that each item staked in this pool earns each second while it is locked during the `lockDuration`. @param unlockedTokensPerSecond The amount of token that each item staked in this pool earns each second while it is unlocked and available for withdrawal. @param lockDuration The amount of time in seconds wherein this pool requires that the asset remain time-locked and unavailable to withdraw. Once the item has been staked for `lockDuration` seconds, the item may be withdrawn from the pool and the number of tokens earned changes to the `unlockedTokensPerSecond` rate. @param deadline Determines the time after which no more stakes are accepted */ struct Pool { address item; uint256 lockedTokensPerSecond; uint256 unlockedTokensPerSecond; uint256 lockDuration; uint256 deadline; } /// A mapping with to look up information for each specific pool. mapping ( uint256 => Pool ) public pools; /** This struct is used to define information surrounding the status of a particular item in this staking contract. @param stakedPool The ID of the pool where this item is currently staked. An ID of zero indicates that the item is not staked to any pool. @param stakedAt The time when this item was last staked in the pool. This is used to control earning rates due to time-locking in a pool. @param tokenClaimed The number of tokens claimed by this item so far. This is used to support partial claiming of earned tokens during a pool's full `_lockDuration`. */ struct ItemStatus { uint256 stakedPool; uint256 stakedAt; uint256 tokenClaimed; } /** A double mapping relating a `Tiny721` item address and the ID of a specific token to details about its status in the pool where it is currently staked. */ mapping ( address => mapping ( uint256 => ItemStatus )) public itemStatuses; /** This struct is used to define information regarding a particular caller's position in a particular pool. @param stakedItems An array of all token IDs staked by a caller in this particular position. @param tokenPaid The value of the caller's total earning that has been paid out in this position. */ struct Position { uint256[] stakedItems; uint256 tokenPaid; } /** A double mapping relating a particular pool ID to and the address of a caller to information about the caller's `Position` in that pool. */ mapping ( uint256 => mapping ( address => Position )) public positions; /// The total amount of the disbursed `token` ever emitted by this Staker. uint256 public totalTokenDisbursed; /** An event tracking a claim of tokens for some pools from this staker. @param timestamp The block timestamp when this event was emitted. @param caller The caller who triggered the claim. @param poolIds The array of pool IDs where tokens were claimed from. @param amount The amount of `token` claimed by the `caller` in this event. */ event Claim ( uint256 timestamp, address indexed caller, uint256[] poolIds, uint256 amount ); /** An event tracking a staking of the specified `tokenIds` into a specific pool of this staker. @param timestamp The block timestamp when this event was emitted. @param caller The caller who triggered the claim. @param poolId The ID of the pool that tokens were staked into. @param item The address of the item smart contract with the token IDs specified in `tokenIds`. @param tokenIds The IDs of the tokens staked into this pool. */ event Stake ( uint256 timestamp, address indexed caller, uint256 poolId, address indexed item, uint256[] tokenIds ); /** An event tracking a withdrawal of the specified `tokenIds` from a specific pool of this staker. @param timestamp The block timestamp when this event was emitted. @param caller The caller who triggered the claim. @param poolId The ID of the pool that tokens were withdrawn from. @param item The address of the item smart contract with the token IDs specified in `tokenIds`. @param tokenIds The IDs of the tokens withdrawn from this pool. */ event Withdraw ( uint256 timestamp, address indexed caller, uint256 poolId, address indexed item, uint256[] tokenIds ); /** Construct a new Staker by providing it a name and the token to disburse. @param _name The name of the Staker contract. @param _token The token to reward stakers in this contract with. */ constructor ( string memory _name, address _token ) { name = _name; token = _token; } function getPosition(uint256 _id, address _addr) public view returns (uint256[] memory, uint256){ Position memory p = positions[_id][_addr]; return (p.stakedItems, p.tokenPaid); } function getItemsPosition(uint256 _id, address _addr) public view returns (uint256[] memory){ Position memory p = positions[_id][_addr]; return p.stakedItems; } /** Allow the contract owner to add a new staking `Pool` to the Staker or overwrite the configuration of an existing one. @param _id The ID of the `Pool` to add or update. @param _item The address of the item contract that is staked in this pool. @param _lockedTokensPerSecond The amount of token that each item staked in this pool earns each second while it is locked during the `lockDuration`. @param _unlockedTokensPerSecond The amount of token that each item staked in this pool earns each second while it is unlocked and available for withdrawal. @param _lockDuration The amount of time in seconds where this pool requires that the asset remain time-locked and unavailable to withdraw. Once the item has been staked for `lockDuration` seconds, the item may be withdrawn from the pool and the number of tokens earned changes to the `unlockedTokensPerSecond` rate. @param _deadline The timestamp stakes must be created by, any stakes to pool that are attempted after this timestamp will revert. */ function setPool ( uint256 _id, address _item, uint256 _lockedTokensPerSecond, uint256 _unlockedTokensPerSecond, uint256 _lockDuration, uint256 _deadline ) external onlyOwner { // There may be no pool with ID of 0. if (_id < 1) { revert CannotAddPoolWithInvalidId(); } // Update the `Pool` being tracked in the `pools` mapping. pools[_id].item = _item; pools[_id].lockedTokensPerSecond = _lockedTokensPerSecond; pools[_id].unlockedTokensPerSecond = _unlockedTokensPerSecond; pools[_id].lockDuration = _lockDuration; pools[_id].deadline = _deadline; } /** Claim all of the caller's pending tokens from the specified pools. @param _poolIds The IDs of the pools to claim pending token rewards from. */ function claim ( uint256[] memory _poolIds ) public nonReentrant { uint256 totalClaimAmount; for (uint256 poolIndex; poolIndex < _poolIds.length; ++poolIndex) { uint256 poolId = _poolIds[poolIndex]; Pool storage pool = pools[poolId]; Position storage position = positions[poolId][_msgSender()]; /* Iterate through each item that the caller has staked into this pool. If the caller has staked assets, transfer any accrued balance to them. */ for (uint256 i; i < position.stakedItems.length; ++i) { uint256 stakedItemId = position.stakedItems[i]; /* Retrieve the status of each staked item and calculate the total amount that has been earned by each staked item in this pool. */ ItemStatus storage status = itemStatuses[pool.item][stakedItemId]; uint256 lockEnds = status.stakedAt + pool.lockDuration; uint256 totalEarnings; // We are within the unlocked period for this item. if (block.timestamp > lockEnds) { totalEarnings = pool.lockDuration * pool.lockedTokensPerSecond; totalEarnings += (block.timestamp - lockEnds) * pool.unlockedTokensPerSecond; // We are within the time-locked period for this item. } else { totalEarnings = (block.timestamp - status.stakedAt) * pool.lockedTokensPerSecond; } // Subtract any previously-claimed amount from the total amount earned. uint256 tokenClaimed = status.tokenClaimed; uint256 unclaimedReward = totalEarnings - tokenClaimed; // Update the number of tokens claimed by this item in its present pool. status.tokenClaimed = totalEarnings; // Update the amount historically claimed by the caller in this pool. position.tokenPaid = position.tokenPaid + unclaimedReward; // Transfer the unclaimed reward to the user. totalClaimAmount = totalClaimAmount + unclaimedReward; } } // Update the total amount of token disbursed by this contract. totalTokenDisbursed = totalTokenDisbursed + totalClaimAmount; IERC20(token).safeTransfer( _msgSender(), totalClaimAmount ); // Emit an event. emit Claim(block.timestamp, _msgSender(), _poolIds, totalClaimAmount); } /** View to retrieve current pending rewards for a user @param _poolIds the pools we are inquiring about @param _user the address of the account being queried */ function pendingClaims ( uint256[] memory _poolIds, address _user ) external view returns (uint256 totalClaimAmount) { for (uint256 poolIndex; poolIndex < _poolIds.length; ++poolIndex) { uint256 poolId = _poolIds[poolIndex]; Pool storage pool = pools[poolId]; Position storage position = positions[poolId][_user]; /* Iterate through each item that the caller has staked into this pool. */ for (uint256 i = 0; i < position.stakedItems.length; ++i) { uint256 stakedItemId = position.stakedItems[i]; /* Retrieve the status of each staked item and calculate the total amount that has been earned by each staked item in this pool. */ ItemStatus storage status = itemStatuses[pool.item][stakedItemId]; uint256 lockEnds = status.stakedAt + pool.lockDuration; bool itemUnlocked = block.timestamp > lockEnds; uint256 totalEarnings; // We are within the unlocked period for this item. if (itemUnlocked) { totalEarnings = pool.lockDuration * pool.lockedTokensPerSecond; uint256 flexibleDuration = block.timestamp - lockEnds; totalEarnings += flexibleDuration * pool.unlockedTokensPerSecond; // We are within the time-locked period for this item. } else { uint256 stakeDuration = block.timestamp - status.stakedAt; totalEarnings = stakeDuration * pool.lockedTokensPerSecond; } // Subtract any previously-claimed amount from the total amount earned. totalClaimAmount = totalClaimAmount + totalEarnings - status.tokenClaimed; } } return totalClaimAmount; } /** This private helper function converts a number into a single-element array. @param _element The element to convert to an array. @return The array containing the single `_element`. */ function _asSingletonArray ( uint256 _element ) private pure returns (uint256[] memory) { uint256[] memory array = new uint256[](1); array[0] = _element; return array; } /** Lock some particular token IDs from some particular contract addresses into some particular `Pool` of this Staker. @param _poolId The ID of the `Pool` to stake items in. @param _tokenIds An array of token IDs corresponding to specific tokens in the item contract from `Pool` with the ID of `_poolId`. */ function stake ( uint256 _poolId, uint256[] calldata _tokenIds ) external { if (_tokenIds.length == 0) { revert EmptyTokenIdsArray(); } Pool storage pool = pools[_poolId]; // Reject stakes for inactive pools. if (pool.lockedTokensPerSecond < 1) { revert CannotStakeInactivePool(); } // Enforce a deadline on pool entry. if (block.timestamp > pool.deadline) { revert CannotStakeAfterDeadline(); } // Claim pending tokens. claim(_asSingletonArray(_poolId)); // Stake the caller's items by locking transfer of that item. ITiny721 item = ITiny721(pool.item); for (uint256 i; i < _tokenIds.length; ++i) { uint256 tokenId = _tokenIds[i]; // Verify that the caller owns the token being locked. if (item.ownerOf(tokenId) != _msgSender()) { revert CannotStakeUnownedItem(); } /* Retrieve the status of each item to see if it is new to the pool, new to the staker, or unlocked. In short, we verify that the item is able to be staked into this pool. */ ItemStatus storage status = itemStatuses[pool.item][tokenId]; uint256 lockEnds = status.stakedAt + pool.lockDuration; bool itemUnlocked = block.timestamp > lockEnds; /* Reject requests trying to stake an item that has not completed its lock duration. This prevents callers from double-dipping by staking the same item to multiple pools. */ if (!itemUnlocked) { revert CannotStakeTimeLockedItem(); } /* We allow the caller to re-lock their item into a pool without having to withdraw it first if it has completed its time lock. To accomodate this, we must reset storage regarding the status of the item being staked. */ status.stakedPool = _poolId; status.stakedAt = block.timestamp; status.tokenClaimed = 0; /* Update the caller's staked items to add each new item ID to the caller's array of staked token IDs if it is not already present as a staked item. */ Position storage position = positions[_poolId][_msgSender()]; // Check each token ID to see if it is already present as a staked ID. bool alreadyStaked = false; for ( uint256 stakedIndex; stakedIndex < position.stakedItems.length; ++stakedIndex ) { uint256 stakedId = position.stakedItems[stakedIndex]; if (tokenId == stakedId) { alreadyStaked = true; break; } } // If this is truly a newly-staked item, add it to the array. if (!alreadyStaked) { position.stakedItems.push(tokenId); } /* If the item beingstaked is not already transfer-locked, then lock any transfers of the item that has been staked. */ if (!item.transferLocks(tokenId)) { item.lockTransfer(tokenId, true); } } // Emit an event. emit Stake(block.timestamp, _msgSender(), _poolId, pool.item, _tokenIds); } /** Unlock some particular token IDs from some particular contract addresses from some particular `Pool` of this Staker. @param _poolId The ID of the `Pool` to unstake items from. @param _tokenIds An array of token IDs corresponding to specific tokens in the item contract from `Pool` with the ID of `_poolId` that are to be unstaked. */ function withdraw ( uint256 _poolId, uint256[] calldata _tokenIds ) external { Pool storage pool = pools[_poolId]; Position storage position = positions[_poolId][_msgSender()]; // Claim pending tokens. claim(_asSingletonArray(_poolId)); // Withdraw the caller's items by unlocking transfer of that item. ITiny721 item = ITiny721(pool.item); for (uint256 i = 0; i < _tokenIds.length; ++i ) { uint256 tokenId = _tokenIds[i]; // Verify that the caller owns the token being unlocked. if (item.ownerOf(tokenId) != _msgSender()) { revert CannotWithdrawUnownedItem(); } // Verify that any time lock on withdrawing the item has completed. ItemStatus storage status = itemStatuses[pool.item][tokenId]; uint256 lockEnds = status.stakedAt + pool.lockDuration; bool itemUnlocked = block.timestamp > lockEnds; if (!itemUnlocked) { revert CannotWithdrawTimeLockedItem(); } /* Verify that the item was actually staked in this pool. This check prevents withdrawing an item from a different pool by using the time-lock of this pool. */ if (_poolId != status.stakedPool) { revert CannotWithdrawUnstakedItem(); } // Clear storage mapping now that the item is unlocked. status.stakedPool = 0; status.stakedAt = 0; status.tokenClaimed = 0; // Check each token ID to find its index. for ( uint256 stakedIndex; stakedIndex < position.stakedItems.length; ++stakedIndex ) { uint256 stakedId = position.stakedItems[stakedIndex]; if (tokenId == stakedId) { // Remove the element at the matching index. for ( uint256 r = stakedIndex; r < position.stakedItems.length - 1; ++r ) { position.stakedItems[r] = position.stakedItems[r + 1]; } position.stakedItems.pop(); break; } } // Unlock transfers of the item. item.lockTransfer(tokenId, false); } // Emit an event. emit Withdraw(block.timestamp, _msgSender(), _poolId, pool.item, _tokenIds); } /** Allow the owner to sweep either Ether or a particular ERC-20 token from the contract and send it to another address. This allows the owner of the shop to withdraw their funds after the sale is completed. @param _token The token to sweep the balance from; if a zero address is sent then the contract's balance of Ether will be swept. @param _amount The amount of token to sweep. @param _destination The address to send the swept tokens to. */ function sweep ( address _token, address _destination, uint256 _amount ) external onlyOwner { // A zero address means we should attempt to sweep Ether. if (_token == address(0)) { (bool success, ) = payable(_destination).call{ value: _amount }(""); if (!success) { revert SweepingTransferFailed(); } // Otherwise, we should try to sweep an ERC-20 token. } else { IERC20(_token).safeTransfer(_destination, _amount); } } }
// 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: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// 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: GPL-3.0 pragma solidity ^0.8.11; /** @title A minimalistic, gas-efficient ERC-721 implementation forked from the `Super721` ERC-721 implementation used by SuperFarm. @author Tim Clancy @author 0xthrpw @author Qazawat Zirak @author Rostislav Khlebnikov Compared to the original `Super721` implementation that this contract forked from, this is a very pared-down contract that includes simple delegated minting and transfer locks. This contract includes the gas efficiency techniques graciously shared with the world in the specific ERC-721 implementation by Chiru Labs that is being called "ERC-721A" (https://github.com/chiru-labs/ERC721A). We have validated this contract against their test cases. February 8th, 2022. */ interface ITiny721 { /** Return whether or not the transfer of a particular token ID `_id` is locked. @param _id The ID of the token to check the lock status of. @return Whether or not the particular token ID `_id` has transfers locked. */ function transferLocks ( uint256 _id ) external returns (bool); /** Provided with an address parameter, this function returns the number of all tokens in this collection that are owned by the specified address. @param _owner The address of the account for which we are checking balances */ function balanceOf ( address _owner ) external returns ( uint256 ); /** Return the address that holds a particular token ID. @param _id The token ID to check for the holding address of. @return The address that holds the token with ID of `_id`. */ function ownerOf ( uint256 _id ) external returns (address); /** This function allows permissioned minters of this contract to mint one or more tokens dictated by the `_amount` parameter. Any minted tokens are sent to the `_recipient` address. Note that tokens are always minted sequentially starting at one. That is, the list of token IDs is always increasing and looks like [ 1, 2, 3... ]. Also note that per our use cases the intended recipient of these minted items will always be externally-owned accounts and not other contracts. As a result there is no safety check on whether or not the mint destination can actually correctly handle an ERC-721 token. @param _recipient The recipient of the tokens being minted. @param _amount The amount of tokens to mint. */ function mint_Qgo ( address _recipient, uint256 _amount ) external; /** This function allows an administrative caller to lock the transfer of particular token IDs. This is designed for a non-escrow staking contract that comes later to lock a user's NFT while still letting them keep it in their wallet. @param _id The ID of the token to lock. @param _locked The status of the lock; true to lock, false to unlock. */ function lockTransfer ( uint256 _id, bool _locked ) external; }
// 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: 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": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"address","name":"_token","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"CannotAddPoolWithInvalidId","type":"error"},{"inputs":[],"name":"CannotStakeAfterDeadline","type":"error"},{"inputs":[],"name":"CannotStakeInactivePool","type":"error"},{"inputs":[],"name":"CannotStakeTimeLockedItem","type":"error"},{"inputs":[],"name":"CannotStakeUnownedItem","type":"error"},{"inputs":[],"name":"CannotWithdrawTimeLockedItem","type":"error"},{"inputs":[],"name":"CannotWithdrawUnownedItem","type":"error"},{"inputs":[],"name":"CannotWithdrawUnstakedItem","type":"error"},{"inputs":[],"name":"EmptyTokenIdsArray","type":"error"},{"inputs":[],"name":"SweepingTransferFailed","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"poolIds","type":"uint256[]"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"uint256","name":"poolId","type":"uint256"},{"indexed":true,"internalType":"address","name":"item","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"Stake","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"uint256","name":"poolId","type":"uint256"},{"indexed":true,"internalType":"address","name":"item","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"uint256[]","name":"_poolIds","type":"uint256[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"address","name":"_addr","type":"address"}],"name":"getItemsPosition","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"address","name":"_addr","type":"address"}],"name":"getPosition","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"itemStatuses","outputs":[{"internalType":"uint256","name":"stakedPool","type":"uint256"},{"internalType":"uint256","name":"stakedAt","type":"uint256"},{"internalType":"uint256","name":"tokenClaimed","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_poolIds","type":"uint256[]"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingClaims","outputs":[{"internalType":"uint256","name":"totalClaimAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"pools","outputs":[{"internalType":"address","name":"item","type":"address"},{"internalType":"uint256","name":"lockedTokensPerSecond","type":"uint256"},{"internalType":"uint256","name":"unlockedTokensPerSecond","type":"uint256"},{"internalType":"uint256","name":"lockDuration","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"positions","outputs":[{"internalType":"uint256","name":"tokenPaid","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"address","name":"_item","type":"address"},{"internalType":"uint256","name":"_lockedTokensPerSecond","type":"uint256"},{"internalType":"uint256","name":"_unlockedTokensPerSecond","type":"uint256"},{"internalType":"uint256","name":"_lockDuration","type":"uint256"},{"internalType":"uint256","name":"_deadline","type":"uint256"}],"name":"setPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_poolId","type":"uint256"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_destination","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"sweep","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalTokenDisbursed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_poolId","type":"uint256"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040523480156200001157600080fd5b5060405162001e1538038062001e15833981016040819052620000349162000195565b6200003f336200006c565b60018055815162000058906002906020850190620000bc565b506001600160a01b031660805250620002c3565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054620000ca9062000286565b90600052602060002090601f016020900481019282620000ee576000855562000139565b82601f106200010957805160ff191683800117855562000139565b8280016001018555821562000139579182015b82811115620001395782518255916020019190600101906200011c565b50620001479291506200014b565b5090565b5b808211156200014757600081556001016200014c565b634e487b7160e01b600052604160045260246000fd5b80516001600160a01b03811681146200019057600080fd5b919050565b60008060408385031215620001a957600080fd5b82516001600160401b0380821115620001c157600080fd5b818501915085601f830112620001d657600080fd5b815181811115620001eb57620001eb62000162565b604051601f8201601f19908116603f0116810190838211818310171562000216576200021662000162565b816040528281526020935088848487010111156200023357600080fd5b600091505b8282101562000257578482018401518183018501529083019062000238565b82821115620002695760008484830101525b95506200027b91505085820162000178565b925050509250929050565b600181811c908216806200029b57607f821691505b60208210811415620002bd57634e487b7160e01b600052602260045260246000fd5b50919050565b608051611b2f620002e66000396000818161033c0152610d880152611b2f6000f3fe608060405234801561001057600080fd5b506004361061010b5760003560e01c80637ec9ce19116100a2578063bffd20c111610071578063bffd20c1146102b5578063d29f541d146102d5578063e684d718146102f6578063f2fde38b14610324578063fc0c546a1461033757600080fd5b80637ec9ce19146101f05780638da5cb5b14610203578063ac4afa3814610228578063b00fb4c8146102a257600080fd5b80635915d806116100de5780635915d806146101af57806362c06767146101c25780636ba4c138146101d5578063715018a6146101e857600080fd5b806306fdde031461011057806316f605571461012e5780631c64669f14610143578063560c84cd1461015a575b600080fd5b61011861035e565b604051610125919061158a565b60405180910390f35b61014161013c3660046115bd565b6103ec565b005b61014c60065481565b604051908152602001610125565b610194610168366004611651565b600460209081526000928352604080842090915290825290208054600182015460029092015490919083565b60408051938452602084019290925290820152606001610125565b6101416101bd3660046115bd565b610775565b6101416101d036600461167d565b610ab9565b6101416101e3366004611764565b610b8d565b610141610e04565b6101416101fe3660046117a1565b610e3a565b6000546001600160a01b03165b6040516001600160a01b039091168152602001610125565b6102706102363660046117f1565b6003602081905260009182526040909120805460018201546002830154938301546004909301546001600160a01b03909216939092909185565b604080516001600160a01b0390961686526020860194909452928401919091526060830152608082015260a001610125565b61014c6102b036600461180a565b610ed2565b6102c86102c336600461185c565b611058565b60405161012591906118bc565b6102e86102e336600461185c565b6110e7565b6040516101259291906118cf565b61014c61030436600461185c565b600560209081526000928352604080842090915290825290206001015481565b6101416103323660046118f1565b611181565b6102107f000000000000000000000000000000000000000000000000000000000000000081565b6002805461036b9061190e565b80601f01602080910402602001604051908101604052809291908181526020018280546103979061190e565b80156103e45780601f106103b9576101008083540402835291602001916103e4565b820191906000526020600020905b8154815290600101906020018083116103c757829003601f168201915b505050505081565b8061040a57604051637a859aaf60e01b815260040160405180910390fd5b6000838152600360205260409020600180820154101561043d57604051635ea4411760e11b815260040160405180910390fd5b806004015442111561046257604051633b302fdd60e11b815260040160405180910390fd5b61046e6101e38561121c565b80546001600160a01b031660005b8381101561071b57600085858381811061049857610498611949565b9050602002013590506104a83390565b6040516331a9108f60e11b8152600481018390526001600160a01b0391821691851690636352211e906024016020604051808303816000875af11580156104f3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610517919061195f565b6001600160a01b03161461053e57604051632bdd3e5560e21b815260040160405180910390fd5b83546001600160a01b031660009081526004602090815260408083208484529091528120600386015460018201549192916105799190611992565b90504281108061059b5760405162441e9d60e11b815260040160405180910390fd5b8983554260018401556000600284018190558a8152600560209081526040808320338452909152812090805b82548110156106175760008360000182815481106105e7576105e7611949565b9060005260206000200154905080881415610606576001925050610617565b50610610816119aa565b90506105c7565b5080610633578154600181018355600083815260209020018690555b604051638c47a50760e01b8152600481018790526001600160a01b03891690638c47a507906024016020604051808303816000875af115801561067a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061069e91906119c5565b61070457604051630ced5c9d60e21b815260048101879052600160248201526001600160a01b038916906333b5727490604401600060405180830381600087803b1580156106eb57600080fd5b505af11580156106ff573d6000803e3d6000fd5b505050505b50505050505080610714906119aa565b905061047c565b5081546001600160a01b0316336001600160a01b03167fa032c0d2b94dd73eb241892ff3ff49fb048c9fb8ecdf25e8906bd55966b6c26b4288888860405161076694939291906119e7565b60405180910390a35050505050565b6000838152600360209081526040808320600583528184203385529092529091206107a26101e38661121c565b81546001600160a01b031660005b84811015610a5e5760008686838181106107cc576107cc611949565b9050602002013590506107dc3390565b6040516331a9108f60e11b8152600481018390526001600160a01b0391821691851690636352211e906024016020604051808303816000875af1158015610827573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061084b919061195f565b6001600160a01b031614610872576040516318d47ac160e01b815260040160405180910390fd5b84546001600160a01b031660009081526004602090815260408083208484529091528120600387015460018201549192916108ad9190611992565b9050428110806108cf576040516298188f60e21b815260040160405180910390fd5b82548b146108f057604051632396e93160e01b815260040160405180910390fd5b600080845560018401819055600284018190555b87548110156109e757600088600001828154811061092457610924611949565b90600052602060002001549050808614156109d657815b895461094990600190611a33565b8110156109a8578961095c826001611992565b8154811061096c5761096c611949565b90600052602060002001548a600001828154811061098c5761098c611949565b6000918252602090912001556109a1816119aa565b905061093b565b5088548990806109ba576109ba611a4a565b60019003818190600052602060002001600090559055506109e7565b506109e0816119aa565b9050610904565b50604051630ced5c9d60e21b815260048101859052600060248201526001600160a01b038716906333b5727490604401600060405180830381600087803b158015610a3157600080fd5b505af1158015610a45573d6000803e3d6000fd5b505050505050505080610a57906119aa565b90506107b0565b5082546001600160a01b0316336001600160a01b03167fa214592ee5e81e612729694699288c6acf212f7c5fc3726ab1b478ec5d1f85fc42898989604051610aa994939291906119e7565b60405180910390a3505050505050565b6000546001600160a01b03163314610aec5760405162461bcd60e51b8152600401610ae390611a60565b60405180910390fd5b6001600160a01b038316610b74576000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610b47576040519150601f19603f3d011682016040523d82523d6000602084013e610b4c565b606091505b5050905080610b6e57604051639081276360e01b815260040160405180910390fd5b50505050565b610b886001600160a01b0384168383611267565b505050565b60026001541415610be05760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610ae3565b60026001556000805b8251811015610d71576000838281518110610c0657610c06611949565b60209081029190910181015160008181526003835260408082206005855281832033845290945281209193505b8154811015610d5c576000826000018281548110610c5357610c53611949565b600091825260208083209091015486546001600160a01b0316835260048252604080842082855290925290822060038701546001820154929450909291610c9a9190611992565b9050600081421115610ce75786600101548760030154610cba9190611a95565b6002880154909150610ccc8342611a33565b610cd69190611a95565b610ce09082611992565b9050610d09565b8660010154836001015442610cfc9190611a33565b610d069190611a95565b90505b60028301546000610d1a8284611a33565b600286018490556001890154909150610d34908290611992565b6001890155610d43818d611992565b9b5050505050505080610d55906119aa565b9050610c33565b5050505080610d6a906119aa565b9050610be9565b5080600654610d809190611992565b600655610db77f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03163383611267565b336001600160a01b03167ff47cf8020f2879f0970ddb5138d470e9fa871830ea0e6f067c7cc25a314e3c06428484604051610df493929190611ab4565b60405180910390a2505060018055565b6000546001600160a01b03163314610e2e5760405162461bcd60e51b8152600401610ae390611a60565b610e3860006112b9565b565b6000546001600160a01b03163314610e645760405162461bcd60e51b8152600401610ae390611a60565b6001861015610e865760405163aa38182560e01b815260040160405180910390fd5b600095865260036020819052604090962080546001600160a01b0319166001600160a01b0396909616959095178555600185019390935560028401919091559282019290925560040155565b6000805b8351811015611051576000848281518110610ef357610ef3611949565b6020908102919091018101516000818152600383526040808220600585528183206001600160a01b038a16845290945281209193505b815481101561103c576000826000018281548110610f4957610f49611949565b600091825260208083209091015486546001600160a01b0316835260048252604080842082855290925290822060038701546001820154929450909291610f909190611992565b905042811060008115610fe35787600101548860030154610fb19190611a95565b90506000610fbf8442611a33565b9050886002015481610fd19190611a95565b610fdb9083611992565b91505061100b565b6000846001015442610ff59190611a33565b90508860010154816110079190611a95565b9150505b600284015461101a828d611992565b6110249190611a33565b9a50505050505080611035906119aa565b9050610f29565b505050508061104a906119aa565b9050610ed6565b5092915050565b60008281526005602090815260408083206001600160a01b0385168452825280832081518154938402810160609081018452928101848152929493909283918390838801828280156110c957602002820191906000526020600020905b8154815260200190600101908083116110b5575b50505091835250506001919091015460209091015251949350505050565b60008281526005602090815260408083206001600160a01b03851684528252808320815181549384028101606090810184529281018481529294938493919291839183908389018282801561115b57602002820191906000526020600020905b815481526020019060010190808311611147575b505050918352505060019190910154602091820152815191015190969095509350505050565b6000546001600160a01b031633146111ab5760405162461bcd60e51b8152600401610ae390611a60565b6001600160a01b0381166112105760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610ae3565b611219816112b9565b50565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061125657611256611949565b602090810291909101015292915050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610b88908490611309565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600061135e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166113db9092919063ffffffff16565b805190915015610b88578080602001905181019061137c91906119c5565b610b885760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610ae3565b60606113ea84846000856113f4565b90505b9392505050565b6060824710156114555760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610ae3565b6001600160a01b0385163b6114ac5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610ae3565b600080866001600160a01b031685876040516114c89190611add565b60006040518083038185875af1925050503d8060008114611505576040519150601f19603f3d011682016040523d82523d6000602084013e61150a565b606091505b509150915061151a828286611525565b979650505050505050565b606083156115345750816113ed565b8251156115445782518084602001fd5b8160405162461bcd60e51b8152600401610ae3919061158a565b60005b83811015611579578181015183820152602001611561565b83811115610b6e5750506000910152565b60208152600082518060208401526115a981604085016020870161155e565b601f01601f19169190910160400192915050565b6000806000604084860312156115d257600080fd5b83359250602084013567ffffffffffffffff808211156115f157600080fd5b818601915086601f83011261160557600080fd5b81358181111561161457600080fd5b8760208260051b850101111561162957600080fd5b6020830194508093505050509250925092565b6001600160a01b038116811461121957600080fd5b6000806040838503121561166457600080fd5b823561166f8161163c565b946020939093013593505050565b60008060006060848603121561169257600080fd5b833561169d8161163c565b925060208401356116ad8161163c565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126116e557600080fd5b8135602067ffffffffffffffff80831115611702576117026116be565b8260051b604051601f19603f83011681018181108482111715611727576117276116be565b60405293845285810183019383810192508785111561174557600080fd5b83870191505b8482101561151a5781358352918301919083019061174b565b60006020828403121561177657600080fd5b813567ffffffffffffffff81111561178d57600080fd5b611799848285016116d4565b949350505050565b60008060008060008060c087890312156117ba57600080fd5b8635955060208701356117cc8161163c565b95989597505050506040840135936060810135936080820135935060a0909101359150565b60006020828403121561180357600080fd5b5035919050565b6000806040838503121561181d57600080fd5b823567ffffffffffffffff81111561183457600080fd5b611840858286016116d4565b92505060208301356118518161163c565b809150509250929050565b6000806040838503121561186f57600080fd5b8235915060208301356118518161163c565b600081518084526020808501945080840160005b838110156118b157815187529582019590820190600101611895565b509495945050505050565b6020815260006113ed6020830184611881565b6040815260006118e26040830185611881565b90508260208301529392505050565b60006020828403121561190357600080fd5b81356113ed8161163c565b600181811c9082168061192257607f821691505b6020821081141561194357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561197157600080fd5b81516113ed8161163c565b634e487b7160e01b600052601160045260246000fd5b600082198211156119a5576119a561197c565b500190565b60006000198214156119be576119be61197c565b5060010190565b6000602082840312156119d757600080fd5b815180151581146113ed57600080fd5b84815260208101849052606060408201819052810182905260006001600160fb1b03831115611a1557600080fd5b8260051b808560808501376000920160800191825250949350505050565b600082821015611a4557611a4561197c565b500390565b634e487b7160e01b600052603160045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000816000190483118215151615611aaf57611aaf61197c565b500290565b838152606060208201526000611acd6060830185611881565b9050826040830152949350505050565b60008251611aef81846020870161155e565b919091019291505056fea2646970667358221220432eeeb3a70783cc382aae4d1db2cad60b8718b83dc99b90cec1cad46741309364736f6c634300080b0033000000000000000000000000000000000000000000000000000000000000004000000000000000000000000095392f142af1c12f6e39897ff9b09c599666b50c0000000000000000000000000000000000000000000000000000000000000010496d706f73746f7273205374616b657200000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061010b5760003560e01c80637ec9ce19116100a2578063bffd20c111610071578063bffd20c1146102b5578063d29f541d146102d5578063e684d718146102f6578063f2fde38b14610324578063fc0c546a1461033757600080fd5b80637ec9ce19146101f05780638da5cb5b14610203578063ac4afa3814610228578063b00fb4c8146102a257600080fd5b80635915d806116100de5780635915d806146101af57806362c06767146101c25780636ba4c138146101d5578063715018a6146101e857600080fd5b806306fdde031461011057806316f605571461012e5780631c64669f14610143578063560c84cd1461015a575b600080fd5b61011861035e565b604051610125919061158a565b60405180910390f35b61014161013c3660046115bd565b6103ec565b005b61014c60065481565b604051908152602001610125565b610194610168366004611651565b600460209081526000928352604080842090915290825290208054600182015460029092015490919083565b60408051938452602084019290925290820152606001610125565b6101416101bd3660046115bd565b610775565b6101416101d036600461167d565b610ab9565b6101416101e3366004611764565b610b8d565b610141610e04565b6101416101fe3660046117a1565b610e3a565b6000546001600160a01b03165b6040516001600160a01b039091168152602001610125565b6102706102363660046117f1565b6003602081905260009182526040909120805460018201546002830154938301546004909301546001600160a01b03909216939092909185565b604080516001600160a01b0390961686526020860194909452928401919091526060830152608082015260a001610125565b61014c6102b036600461180a565b610ed2565b6102c86102c336600461185c565b611058565b60405161012591906118bc565b6102e86102e336600461185c565b6110e7565b6040516101259291906118cf565b61014c61030436600461185c565b600560209081526000928352604080842090915290825290206001015481565b6101416103323660046118f1565b611181565b6102107f00000000000000000000000095392f142af1c12f6e39897ff9b09c599666b50c81565b6002805461036b9061190e565b80601f01602080910402602001604051908101604052809291908181526020018280546103979061190e565b80156103e45780601f106103b9576101008083540402835291602001916103e4565b820191906000526020600020905b8154815290600101906020018083116103c757829003601f168201915b505050505081565b8061040a57604051637a859aaf60e01b815260040160405180910390fd5b6000838152600360205260409020600180820154101561043d57604051635ea4411760e11b815260040160405180910390fd5b806004015442111561046257604051633b302fdd60e11b815260040160405180910390fd5b61046e6101e38561121c565b80546001600160a01b031660005b8381101561071b57600085858381811061049857610498611949565b9050602002013590506104a83390565b6040516331a9108f60e11b8152600481018390526001600160a01b0391821691851690636352211e906024016020604051808303816000875af11580156104f3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610517919061195f565b6001600160a01b03161461053e57604051632bdd3e5560e21b815260040160405180910390fd5b83546001600160a01b031660009081526004602090815260408083208484529091528120600386015460018201549192916105799190611992565b90504281108061059b5760405162441e9d60e11b815260040160405180910390fd5b8983554260018401556000600284018190558a8152600560209081526040808320338452909152812090805b82548110156106175760008360000182815481106105e7576105e7611949565b9060005260206000200154905080881415610606576001925050610617565b50610610816119aa565b90506105c7565b5080610633578154600181018355600083815260209020018690555b604051638c47a50760e01b8152600481018790526001600160a01b03891690638c47a507906024016020604051808303816000875af115801561067a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061069e91906119c5565b61070457604051630ced5c9d60e21b815260048101879052600160248201526001600160a01b038916906333b5727490604401600060405180830381600087803b1580156106eb57600080fd5b505af11580156106ff573d6000803e3d6000fd5b505050505b50505050505080610714906119aa565b905061047c565b5081546001600160a01b0316336001600160a01b03167fa032c0d2b94dd73eb241892ff3ff49fb048c9fb8ecdf25e8906bd55966b6c26b4288888860405161076694939291906119e7565b60405180910390a35050505050565b6000838152600360209081526040808320600583528184203385529092529091206107a26101e38661121c565b81546001600160a01b031660005b84811015610a5e5760008686838181106107cc576107cc611949565b9050602002013590506107dc3390565b6040516331a9108f60e11b8152600481018390526001600160a01b0391821691851690636352211e906024016020604051808303816000875af1158015610827573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061084b919061195f565b6001600160a01b031614610872576040516318d47ac160e01b815260040160405180910390fd5b84546001600160a01b031660009081526004602090815260408083208484529091528120600387015460018201549192916108ad9190611992565b9050428110806108cf576040516298188f60e21b815260040160405180910390fd5b82548b146108f057604051632396e93160e01b815260040160405180910390fd5b600080845560018401819055600284018190555b87548110156109e757600088600001828154811061092457610924611949565b90600052602060002001549050808614156109d657815b895461094990600190611a33565b8110156109a8578961095c826001611992565b8154811061096c5761096c611949565b90600052602060002001548a600001828154811061098c5761098c611949565b6000918252602090912001556109a1816119aa565b905061093b565b5088548990806109ba576109ba611a4a565b60019003818190600052602060002001600090559055506109e7565b506109e0816119aa565b9050610904565b50604051630ced5c9d60e21b815260048101859052600060248201526001600160a01b038716906333b5727490604401600060405180830381600087803b158015610a3157600080fd5b505af1158015610a45573d6000803e3d6000fd5b505050505050505080610a57906119aa565b90506107b0565b5082546001600160a01b0316336001600160a01b03167fa214592ee5e81e612729694699288c6acf212f7c5fc3726ab1b478ec5d1f85fc42898989604051610aa994939291906119e7565b60405180910390a3505050505050565b6000546001600160a01b03163314610aec5760405162461bcd60e51b8152600401610ae390611a60565b60405180910390fd5b6001600160a01b038316610b74576000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610b47576040519150601f19603f3d011682016040523d82523d6000602084013e610b4c565b606091505b5050905080610b6e57604051639081276360e01b815260040160405180910390fd5b50505050565b610b886001600160a01b0384168383611267565b505050565b60026001541415610be05760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610ae3565b60026001556000805b8251811015610d71576000838281518110610c0657610c06611949565b60209081029190910181015160008181526003835260408082206005855281832033845290945281209193505b8154811015610d5c576000826000018281548110610c5357610c53611949565b600091825260208083209091015486546001600160a01b0316835260048252604080842082855290925290822060038701546001820154929450909291610c9a9190611992565b9050600081421115610ce75786600101548760030154610cba9190611a95565b6002880154909150610ccc8342611a33565b610cd69190611a95565b610ce09082611992565b9050610d09565b8660010154836001015442610cfc9190611a33565b610d069190611a95565b90505b60028301546000610d1a8284611a33565b600286018490556001890154909150610d34908290611992565b6001890155610d43818d611992565b9b5050505050505080610d55906119aa565b9050610c33565b5050505080610d6a906119aa565b9050610be9565b5080600654610d809190611992565b600655610db77f00000000000000000000000095392f142af1c12f6e39897ff9b09c599666b50c6001600160a01b03163383611267565b336001600160a01b03167ff47cf8020f2879f0970ddb5138d470e9fa871830ea0e6f067c7cc25a314e3c06428484604051610df493929190611ab4565b60405180910390a2505060018055565b6000546001600160a01b03163314610e2e5760405162461bcd60e51b8152600401610ae390611a60565b610e3860006112b9565b565b6000546001600160a01b03163314610e645760405162461bcd60e51b8152600401610ae390611a60565b6001861015610e865760405163aa38182560e01b815260040160405180910390fd5b600095865260036020819052604090962080546001600160a01b0319166001600160a01b0396909616959095178555600185019390935560028401919091559282019290925560040155565b6000805b8351811015611051576000848281518110610ef357610ef3611949565b6020908102919091018101516000818152600383526040808220600585528183206001600160a01b038a16845290945281209193505b815481101561103c576000826000018281548110610f4957610f49611949565b600091825260208083209091015486546001600160a01b0316835260048252604080842082855290925290822060038701546001820154929450909291610f909190611992565b905042811060008115610fe35787600101548860030154610fb19190611a95565b90506000610fbf8442611a33565b9050886002015481610fd19190611a95565b610fdb9083611992565b91505061100b565b6000846001015442610ff59190611a33565b90508860010154816110079190611a95565b9150505b600284015461101a828d611992565b6110249190611a33565b9a50505050505080611035906119aa565b9050610f29565b505050508061104a906119aa565b9050610ed6565b5092915050565b60008281526005602090815260408083206001600160a01b0385168452825280832081518154938402810160609081018452928101848152929493909283918390838801828280156110c957602002820191906000526020600020905b8154815260200190600101908083116110b5575b50505091835250506001919091015460209091015251949350505050565b60008281526005602090815260408083206001600160a01b03851684528252808320815181549384028101606090810184529281018481529294938493919291839183908389018282801561115b57602002820191906000526020600020905b815481526020019060010190808311611147575b505050918352505060019190910154602091820152815191015190969095509350505050565b6000546001600160a01b031633146111ab5760405162461bcd60e51b8152600401610ae390611a60565b6001600160a01b0381166112105760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610ae3565b611219816112b9565b50565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061125657611256611949565b602090810291909101015292915050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610b88908490611309565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600061135e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166113db9092919063ffffffff16565b805190915015610b88578080602001905181019061137c91906119c5565b610b885760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610ae3565b60606113ea84846000856113f4565b90505b9392505050565b6060824710156114555760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610ae3565b6001600160a01b0385163b6114ac5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610ae3565b600080866001600160a01b031685876040516114c89190611add565b60006040518083038185875af1925050503d8060008114611505576040519150601f19603f3d011682016040523d82523d6000602084013e61150a565b606091505b509150915061151a828286611525565b979650505050505050565b606083156115345750816113ed565b8251156115445782518084602001fd5b8160405162461bcd60e51b8152600401610ae3919061158a565b60005b83811015611579578181015183820152602001611561565b83811115610b6e5750506000910152565b60208152600082518060208401526115a981604085016020870161155e565b601f01601f19169190910160400192915050565b6000806000604084860312156115d257600080fd5b83359250602084013567ffffffffffffffff808211156115f157600080fd5b818601915086601f83011261160557600080fd5b81358181111561161457600080fd5b8760208260051b850101111561162957600080fd5b6020830194508093505050509250925092565b6001600160a01b038116811461121957600080fd5b6000806040838503121561166457600080fd5b823561166f8161163c565b946020939093013593505050565b60008060006060848603121561169257600080fd5b833561169d8161163c565b925060208401356116ad8161163c565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126116e557600080fd5b8135602067ffffffffffffffff80831115611702576117026116be565b8260051b604051601f19603f83011681018181108482111715611727576117276116be565b60405293845285810183019383810192508785111561174557600080fd5b83870191505b8482101561151a5781358352918301919083019061174b565b60006020828403121561177657600080fd5b813567ffffffffffffffff81111561178d57600080fd5b611799848285016116d4565b949350505050565b60008060008060008060c087890312156117ba57600080fd5b8635955060208701356117cc8161163c565b95989597505050506040840135936060810135936080820135935060a0909101359150565b60006020828403121561180357600080fd5b5035919050565b6000806040838503121561181d57600080fd5b823567ffffffffffffffff81111561183457600080fd5b611840858286016116d4565b92505060208301356118518161163c565b809150509250929050565b6000806040838503121561186f57600080fd5b8235915060208301356118518161163c565b600081518084526020808501945080840160005b838110156118b157815187529582019590820190600101611895565b509495945050505050565b6020815260006113ed6020830184611881565b6040815260006118e26040830185611881565b90508260208301529392505050565b60006020828403121561190357600080fd5b81356113ed8161163c565b600181811c9082168061192257607f821691505b6020821081141561194357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561197157600080fd5b81516113ed8161163c565b634e487b7160e01b600052601160045260246000fd5b600082198211156119a5576119a561197c565b500190565b60006000198214156119be576119be61197c565b5060010190565b6000602082840312156119d757600080fd5b815180151581146113ed57600080fd5b84815260208101849052606060408201819052810182905260006001600160fb1b03831115611a1557600080fd5b8260051b808560808501376000920160800191825250949350505050565b600082821015611a4557611a4561197c565b500390565b634e487b7160e01b600052603160045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000816000190483118215151615611aaf57611aaf61197c565b500290565b838152606060208201526000611acd6060830185611881565b9050826040830152949350505050565b60008251611aef81846020870161155e565b919091019291505056fea2646970667358221220432eeeb3a70783cc382aae4d1db2cad60b8718b83dc99b90cec1cad46741309364736f6c634300080b0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000004000000000000000000000000095392f142af1c12f6e39897ff9b09c599666b50c0000000000000000000000000000000000000000000000000000000000000010496d706f73746f7273205374616b657200000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): Impostors Staker
Arg [1] : _token (address): 0x95392f142Af1c12F6e39897Ff9B09c599666B50c
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 00000000000000000000000095392f142af1c12f6e39897ff9b09c599666b50c
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000010
Arg [3] : 496d706f73746f7273205374616b657200000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $0.012697 | 1,167,514.3681 | $14,823.8 |
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.