More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 901 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Unstake Multiple | 21801216 | 10 days ago | IN | 0 ETH | 0.0005895 | ||||
Unstake Multiple | 21577432 | 41 days ago | IN | 0 ETH | 0.00479659 | ||||
Unstake Multiple | 21577427 | 41 days ago | IN | 0 ETH | 0.00419052 | ||||
Unstake Multiple | 21577423 | 41 days ago | IN | 0 ETH | 0.00408491 | ||||
Unstake Multiple | 21577418 | 41 days ago | IN | 0 ETH | 0.00420817 | ||||
Unstake Multiple | 21577412 | 41 days ago | IN | 0 ETH | 0.00423859 | ||||
Unstake Multiple | 21568565 | 42 days ago | IN | 0 ETH | 0.00590667 | ||||
Collect Rewards | 21568562 | 42 days ago | IN | 0 ETH | 0.00739953 | ||||
Unstake Multiple | 21553862 | 44 days ago | IN | 0 ETH | 0.00182503 | ||||
Unstake Multiple | 21553859 | 44 days ago | IN | 0 ETH | 0.0059543 | ||||
Unstake Multiple | 21553855 | 44 days ago | IN | 0 ETH | 0.00547986 | ||||
Unstake Multiple | 21553851 | 44 days ago | IN | 0 ETH | 0.00484728 | ||||
Collect Rewards | 21553843 | 44 days ago | IN | 0 ETH | 0.00299185 | ||||
Collect Rewards | 21453139 | 58 days ago | IN | 0 ETH | 0.00054449 | ||||
Collect Rewards | 21453139 | 58 days ago | IN | 0 ETH | 0.00053776 | ||||
Collect Rewards | 21453139 | 58 days ago | IN | 0 ETH | 0.0009614 | ||||
Unstake Multiple | 21330156 | 76 days ago | IN | 0 ETH | 0.00807987 | ||||
Unstake Multiple | 21330111 | 76 days ago | IN | 0 ETH | 0.00982702 | ||||
Collect Rewards | 21172651 | 98 days ago | IN | 0 ETH | 0.0048446 | ||||
Unstake | 21111180 | 106 days ago | IN | 0 ETH | 0.00061071 | ||||
Collect Rewards | 21111178 | 106 days ago | IN | 0 ETH | 0.00043654 | ||||
Collect Rewards | 20642747 | 172 days ago | IN | 0 ETH | 0.00019792 | ||||
Collect Rewards | 20642746 | 172 days ago | IN | 0 ETH | 0.00017769 | ||||
Collect Rewards | 20642742 | 172 days ago | IN | 0 ETH | 0.00016907 | ||||
Collect Rewards | 20251274 | 226 days ago | IN | 0 ETH | 0.00007582 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
21568562 | 42 days ago | 0.07784983 ETH | ||||
21553843 | 44 days ago | 0.06697992 ETH | ||||
21453139 | 58 days ago | 0.01784792 ETH | ||||
21172651 | 98 days ago | 0.0553638 ETH | ||||
21111178 | 106 days ago | 0.00790911 ETH | ||||
20642747 | 172 days ago | 0.0051049 ETH | ||||
20642746 | 172 days ago | 0.00790911 ETH | ||||
20642742 | 172 days ago | 0.00790911 ETH | ||||
20251274 | 226 days ago | 0.01581822 ETH | ||||
20227134 | 230 days ago | 0.00255245 ETH | ||||
20191483 | 235 days ago | 0.00608908 ETH | ||||
19958966 | 267 days ago | 0.00790911 ETH | ||||
19701479 | 303 days ago | 0.03163645 ETH | ||||
19597539 | 318 days ago | 0.00790911 ETH | ||||
19417590 | 343 days ago | 0.02372734 ETH | ||||
19059168 | 393 days ago | 0.00608908 ETH | ||||
18833635 | 425 days ago | 0.00127622 ETH | ||||
18748569 | 437 days ago | 0.01148604 ETH | ||||
18573366 | 461 days ago | 0.01836888 ETH | ||||
18488401 | 473 days ago | 0.07784983 ETH | ||||
18488329 | 473 days ago | 0.00765736 ETH | ||||
18439284 | 480 days ago | 0.00811877 ETH | ||||
18436585 | 480 days ago | 0.00790911 ETH | ||||
18404016 | 485 days ago | 0.00127622 ETH | ||||
18397054 | 486 days ago | 0.0099388 ETH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
StrangeStaking
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 2200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // ( ˘▽˘)っ♨ cooked by @nftchef // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // ++++++++++++++++++++++++++++++++*%%?*+++++++++++++++++++++++++++++++++ // +++++++++++++++++++++++++*??*+++?%%%%*++++*??*++++++++++++++++++++++++ // ++++++++++++++++++++++++*S%%%+++?%%%%*+++*%%%%++++++++++++++++++++++++ // ++++++++++++++++++++++++*S%%S?++?S%%S*+++?%%%?++++++++++++++++++++++++ // +++++++++++++++++++++++++SS%S?++*S%%%?+++S%%S?++??*+++++++++++++++++++ // +++++++++++++++++++++++++%%%%%++?S%%%%++?S%%S*+?%%S+++++++++++++++++++ // +++++++++++++++++++++++++%%%%S*+?S%%%%++%%%%%++%%%S+++++++++++++++++++ // +++++++++++++++++++++++++*S%%%?+?S%%%%++S%%%%++S%%S+++++++++++++++++++ // ++++++++++++++++++++++++++%%%%S+?S%%%%+*S%%%?+*S%%S+++++++++++++++++++ // ++++++++++++++++++++++++++%%%%S*?S%%%S+%%%%%*+%%%S%+++++++++++++++++++ // +++++++++++++++*???*++++++%%%%%?%S%%%S?S%%%S*?S%%S?+++++++++++++++++++ // +++++++++++++++%%%%%*+++++?S%%%%%%%%%%%%%%%S?S%%%S++++++++++++++++++++ // +++++++++++++++*S%%%%*++++?S%%%%%%%%%%%%%%%%%%%%S?++++++++++++++++++++ // ++++++++++++++++?S%%%?++++%S%%%%%%%%S%%%%%%%%%%%S*++++++++++++++++++++ // +++++++++++++++++SS%%%?*+*S%%%%%%%%%%%%%%%%%%%%%%+++++++++++++++++++++ // +++++++++++++++++*SS%%%%%SS%%%%%%%%%%%%%%%%%%%%%%+++++++++++++++++++++ // ++++++++++++++++++*%S%%%%%%%%%%%%%%%%%%%%%%%%%%%?+++++++++++++++++++++ // ++++++++++++++++++++%S%%%%%%%%%%%%%%%%%%%%%%%%%S?+++++++++++++++++++++ // +++++++++++++++++++++SS%%%%%%%%%%%S%%%%%%%%%%%%S*+++++++++++++++++++++ // +++++++++++++++++++++*SS%%%%%%%%%%%%%%%%%%%%%%%S*+++++++++++++++++++++ // ++++++++++++++++++++++*SS%%%%%%%%%%%%%%%%%%%%%%%++++++++++++++++++++++ // ++++++++++++++++++++++++?SS%%%%%%%%%%%%%%%%%%%S?++++++++++++++++++++++ // ++++++++++++++++++++++++++%S%%%%%%%%%%%%%%%%%S?+++++++++++++++++++++++ // +++++++++++++++++++++++++++*%S%%%%%SH%%%%%%%S?++++++++++++++++++++++++ // ++++++++++++++++++++++++++++?S%%%%%%%%%%%%%%S*++++++++++++++++++++++++ // ++++++++++++++++++++++++++++*S%%%%%%%%%%%%%%S*++++++++++++++++++++++++ // ++++++++++++++++++++++++++++*S%%%%%%%%%%%%%%S*++++++++++++++++++++++++ // ++++++++++++++++++++++++++++*S%%%%%%%%%%%%%%S*++++++++++++++++++++++++ // ++++++++++++++++++++++++++++*S%%%NFTCHEF%%%%S+++++++++++++++++++++++++ // ++++++++++++++++++++++++++++?S%%%%%%%%%%%%%%%+++++++++++++++++++++++++ // ++++++++++++++++++++++++++++?S%%%%%%%%%%%%%S%+++++++++++++++++++++++++ // ++++++++++++++++++++++++++++?S%%%%%%%%%%%%%S%+++++++++++++++++++++++++ pragma solidity ^0.8.2; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; contract StrangeStaking is Pausable, Ownable, ReentrancyGuard { IERC721 public StrangeHandsNFT; struct Stake { address owner; uint256 timestamp; } struct Cycle { uint256 timestamp; uint256 shares; uint256 reward; // wei } uint256 public totalStaked; uint256 public MAX_UNSTAKE = 20; uint256 QUALIFICATION = 30 days; // maintain the last deposit cycle state uint256 public LAST_CYCLE_TIME; uint256 public LAST_CYCLE_SHARES; uint256[] public stakedTokens; // maps tokenID to Stake details mapping(uint256 => Stake) public stakes; mapping(address => uint256[]) public owned; mapping(address => uint256) public redeemedRewards; mapping(address => uint256) public allocatedRewards; // track owned array, token order mapping(uint256 => uint256) public index; // Array index tracker for all staked tokens mapping(uint256 => uint256) public stakedTokenIndex; // all reward cycles tracked over time Cycle[] rewardCycles; constructor(address _strange) { StrangeHandsNFT = IERC721(_strange); } modifier isApprovedForAll() { require( StrangeHandsNFT.isApprovedForAll(msg.sender, address(this)), "ERC721: transfer caller is not owner nor approved" ); _; } /** * @notice This is what you're here for d=(´▽`)=b. * @param tokenIds array of tokens owned by caller, to be staked. */ function stake(uint256[] calldata tokenIds) external isApprovedForAll whenNotPaused { for (uint256 i = 0; i < tokenIds.length; i++) { require( StrangeHandsNFT.ownerOf(tokenIds[i]) == msg.sender, "Caller is not token owner" ); } uint256[] storage ownedTokens = owned[msg.sender]; for (uint256 i = 0; i < tokenIds.length; i++) { index[tokenIds[i]] = ownedTokens.length; ownedTokens.push(tokenIds[i]); // updates global arr of all stakedTokens stakedTokenIndex[tokenIds[i]] = stakedTokens.length; stakedTokens.push(tokenIds[i]); // create a Stake stakes[tokenIds[i]] = Stake(msg.sender, block.timestamp); StrangeHandsNFT.transferFrom( msg.sender, address(this), tokenIds[i] ); } totalStaked += tokenIds.length; } /** * @notice unstake a single token. May only be called by the owner of * the token * @param tokenId token to unstake. */ function unstake(uint256 tokenId) public nonReentrant { require( stakes[tokenId].owner == msg.sender, "Caller is not token owner" ); _unstake(tokenId); totalStaked--; } /** * @notice convenience function for calling unstake for multiple arrays in a * single transaction. * @param tokenIds array of token id's */ function unstakeMultiple(uint256[] calldata tokenIds) external nonReentrant { require( tokenIds.length <= MAX_UNSTAKE, "Exceeds maximum number to unstake at once" ); for (uint256 i = 0; i < tokenIds.length; i++) { require( stakes[tokenIds[i]].owner == msg.sender, "Caller is not token owner" ); } for (uint256 i = 0; i < tokenIds.length; i++) { _unstake(tokenIds[i]); } totalStaked -= tokenIds.length; } /** * @notice Retrieves the token ID's owned by _address that are staked * @param _address owner wallet address. */ function getOwned(address _address) public view returns (uint256[] memory) { return owned[_address]; } /** * @notice convenience view function to get the number of total staked tokens * owned by a given wallet * @param _address owner wallet address */ function getOwnedCount(address _address) public view returns (uint256) { return owned[_address].length; } /** * @notice determins which tokens owned by an owner are considered * "qualified" for any cycle. * @param _address adress to lookup qualified tokens. * @return qualifed array of booleans that map to the index order of owned tokens */ function getAllQualified(address _address) external view returns (bool[] memory) { bool[] memory qualified = new bool[](owned[_address].length); for (uint256 nft = 0; nft < owned[_address].length; nft++) { for (uint256 cycle = 0; cycle < rewardCycles.length; cycle++) { if ( stakes[owned[_address][nft]].timestamp + QUALIFICATION <= rewardCycles[cycle].timestamp ) { qualified[nft] = true; } else { qualified[nft] = false; } } } return qualified; } /** * @notice get all tokenId's that are currently staked. * @dev Can also be used to get the number of staked tokens. * Does not a 'sorted' order. Sort offchain if needed. * @return tokens array of all staked tokens */ function getStakedTokens() public view returns (uint256[] memory) { return stakedTokens; } function pendingBalance(address _address) public view returns (uint256 claim) { // ... calculate qualified tokens for (uint256 nft = 0; nft < owned[_address].length; nft++) { claim += tokenValue(owned[_address][nft]); } // then, subtract claimed claim -= redeemedRewards[_address]; // then, add saved claim += allocatedRewards[_address]; } function collectRewards() external payable nonReentrant { uint256 claim = pendingBalance(msg.sender); require(claim > 0, "No rewards available"); (bool sent, bytes memory data) = msg.sender.call{value: claim}(""); require(sent, "Failed to send Ether"); redeemedRewards[msg.sender] += claim; allocatedRewards[msg.sender] = 0; } function tokenValue(uint256 _tokenId) internal view returns (uint256 claim) { // check every cycle for qualification & rewards. accumulate it- for (uint256 cycle = 0; cycle < rewardCycles.length; cycle++) { if ( stakes[_tokenId].timestamp + QUALIFICATION <= rewardCycles[cycle].timestamp ) { // accumlate gross, current staked total wei claim += rewardCycles[cycle].reward; } } } function _unstake(uint256 tokenId) private { uint256[] storage ownedTokens = owned[msg.sender]; // get and store unclaimed rewards earned for the token allocatedRewards[msg.sender] += tokenValue(tokenId); // swap and pop to remove token from index ownedTokens[index[tokenId]] = ownedTokens[ownedTokens.length - 1]; index[ownedTokens[ownedTokens.length - 1]] = index[tokenId]; ownedTokens.pop(); // set token to "unowned" stakes[tokenId] = Stake(address(0), 0); // remove the tokenID from stakedTokens stakedTokens[stakedTokenIndex[tokenId]] = stakedTokens[ stakedTokens.length - 1 ]; // swap the the index mapping for staked tokenId's stakedTokenIndex[ stakedTokens[stakedTokens.length - 1] ] = stakedTokenIndex[tokenId]; stakedTokens.pop(); // finally, send the token back to the owners wallet. StrangeHandsNFT.transferFrom(address(this), msg.sender, tokenId); } function snapshotAllQualified() public view returns (uint256) { // calculates all qualified tokens (gas intensive) when called // on-chain. only used when dopositing, so it's ok. uint256 totalShares; for (uint256 i = 0; i < stakedTokens.length; i++) { if ( stakes[stakedTokens[i]].timestamp + QUALIFICATION <= LAST_CYCLE_TIME ) { totalShares++; } } return totalShares; } function depositCycle() external payable onlyOwner { LAST_CYCLE_TIME = block.timestamp; LAST_CYCLE_SHARES = snapshotAllQualified(); require(LAST_CYCLE_SHARES > 0, "No qualified shares"); // add a new cycle to the contract state. forever. rewardCycles.push( Cycle( block.timestamp, LAST_CYCLE_SHARES, msg.value / LAST_CYCLE_SHARES ) ); } /** * @dev Set the timespan required to consider tokens "qualified" * @param _time length of time in seconds */ function setQualificationPeriod(uint256 _time) external onlyOwner { QUALIFICATION = _time; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT 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 pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT 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 make 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 pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT 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() { _setOwner(_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 { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 2200 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_strange","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"LAST_CYCLE_SHARES","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LAST_CYCLE_TIME","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_UNSTAKE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"StrangeHandsNFT","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"allocatedRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collectRewards","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"depositCycle","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getAllQualified","outputs":[{"internalType":"bool[]","name":"","type":"bool[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getOwned","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getOwnedCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getStakedTokens","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"index","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"owned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"pendingBalance","outputs":[{"internalType":"uint256","name":"claim","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"redeemedRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_time","type":"uint256"}],"name":"setQualificationPeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"snapshotAllQualified","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"stakedTokenIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"stakedTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"stakes","outputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"timestamp","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStaked","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":"tokenId","type":"uint256"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"unstakeMultiple","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052601460045562278d0060055534801561001c57600080fd5b5060405162001d1d38038062001d1d83398101604081905261003d916100d2565b6000805460ff1916905561005033610079565b60018055600280546001600160a01b0319166001600160a01b0392909216919091179055610102565b600080546001600160a01b03838116610100818102610100600160a81b0319851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b6000602082840312156100e457600080fd5b81516001600160a01b03811681146100fb57600080fd5b9392505050565b611c0b80620001126000396000f3fe6080604052600436106101b75760003560e01c80637c688597116100ec578063c25c42401161008a578063e2ed3f1e11610064578063e2ed3f1e14610512578063ea81d0e614610528578063f1346ada14610555578063f2fde38b1461057557600080fd5b8063c25c424014610466578063d5a44f8614610493578063d6ab2534146104f257600080fd5b8063979eaed2116100c6578063979eaed2146103ee578063a0a51e8c14610403578063a8f15c5a14610419578063c07885551461044657600080fd5b80637c68859714610381578063817b1cd2146103a15780638da5cb5b146103b757600080fd5b80633736f85d116101595780635c975abb116101335780635c975abb1461032157806365b5e52f1461034457806370bb45b314610364578063715018a61461036c57600080fd5b80633736f85d146102b45780634c2801f9146102d45780635ac317171461030157600080fd5b8063102610f011610195578063102610f0146102295780632e17de7814610231578063335932fc1461025157806334ee87221461027e57600080fd5b806306bcc564146101bc5780630e469a7c146101e55780630fbf0a9314610207575b600080fd5b3480156101c857600080fd5b506101d260075481565b6040519081526020015b60405180910390f35b3480156101f157600080fd5b506101fa610595565b6040516101dc9190611aad565b34801561021357600080fd5b506102276102223660046119b7565b6105ed565b005b610227610a9b565b34801561023d57600080fd5b5061022761024c366004611a4e565b610bb9565b34801561025d57600080fd5b506101d261026c366004611a4e565b600d6020526000908152604090205481565b34801561028a57600080fd5b506101d261029936600461194a565b6001600160a01b03166000908152600a602052604090205490565b3480156102c057600080fd5b506101d26102cf36600461194a565b610c9c565b3480156102e057600080fd5b506101d26102ef36600461194a565b600b6020526000908152604090205481565b34801561030d57600080fd5b5061022761031c3660046119b7565b610d6d565b34801561032d57600080fd5b5060005460ff1660405190151581526020016101dc565b34801561035057600080fd5b506101d261035f36600461198b565b610f43565b610227610f74565b34801561037857600080fd5b50610227611101565b34801561038d57600080fd5b506101fa61039c36600461194a565b61116d565b3480156103ad57600080fd5b506101d260035481565b3480156103c357600080fd5b5060005461010090046001600160a01b03165b6040516001600160a01b0390911681526020016101dc565b3480156103fa57600080fd5b506101d26111d9565b34801561040f57600080fd5b506101d260045481565b34801561042557600080fd5b506101d2610434366004611a4e565b600e6020526000908152604090205481565b34801561045257600080fd5b506101d2610461366004611a4e565b611258565b34801561047257600080fd5b506101d261048136600461194a565b600c6020526000908152604090205481565b34801561049f57600080fd5b506104d36104ae366004611a4e565b600960205260009081526040902080546001909101546001600160a01b039091169082565b604080516001600160a01b0390931683526020830191909152016101dc565b3480156104fe57600080fd5b506002546103d6906001600160a01b031681565b34801561051e57600080fd5b506101d260065481565b34801561053457600080fd5b5061054861054336600461194a565b611279565b6040516101dc9190611a67565b34801561056157600080fd5b50610227610570366004611a4e565b611412565b34801561058157600080fd5b5061022761059036600461194a565b611477565b606060088054806020026020016040519081016040528092919081815260200182805480156105e357602002820191906000526020600020905b8154815260200190600101908083116105cf575b5050505050905090565b6002546040517fe985e9c50000000000000000000000000000000000000000000000000000000081523360048201523060248201526001600160a01b039091169063e985e9c59060440160206040518083038186803b15801561064f57600080fd5b505afa158015610663573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106879190611a2c565b6106fe5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084015b60405180910390fd5b60005460ff16156107515760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016106f5565b60005b8181101561085e5760025433906001600160a01b0316636352211e85858581811061078157610781611b94565b905060200201356040518263ffffffff1660e01b81526004016107a691815260200190565b60206040518083038186803b1580156107be57600080fd5b505afa1580156107d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107f6919061196e565b6001600160a01b03161461084c5760405162461bcd60e51b815260206004820152601960248201527f43616c6c6572206973206e6f7420746f6b656e206f776e65720000000000000060448201526064016106f5565b8061085681611b4d565b915050610754565b50336000908152600a60205260408120905b82811015610a7b578154600d600086868581811061089057610890611b94565b90506020020135815260200190815260200160002081905550818484838181106108bc576108bc611b94565b835460018101855560009485526020808620920293909301359201919091555060085490600e908686858181106108f5576108f5611b94565b90506020020135815260200190815260200160002081905550600884848381811061092257610922611b94565b8354600181018555600094855260208086209281029490940135910155506040805180820190915233815242918101919091529060099086868581811061096b5761096b611b94565b6020908102929092013583525081810192909252604001600020825181547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b039182161782559290910151600190910155600254166323b872dd33308787868181106109e1576109e1611b94565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b158015610a5057600080fd5b505af1158015610a64573d6000803e3d6000fd5b505050508080610a7390611b4d565b915050610870565b508282905060036000828254610a919190611ae5565b9091555050505050565b6000546001600160a01b03610100909104163314610afb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106f5565b42600655610b076111d9565b6007819055610b585760405162461bcd60e51b815260206004820152601360248201527f4e6f207175616c6966696564207368617265730000000000000000000000000060448201526064016106f5565b600f6040518060600160405280428152602001600754815260200160075434610b819190611afd565b905281546001818101845560009384526020938490208351600390930201918255928201519281019290925560400151600290910155565b60026001541415610c0c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016106f5565b60026001556000818152600960205260409020546001600160a01b03163314610c775760405162461bcd60e51b815260206004820152601960248201527f43616c6c6572206973206e6f7420746f6b656e206f776e65720000000000000060448201526064016106f5565b610c808161155f565b60038054906000610c9083611b36565b90915550506001805550565b6000805b6001600160a01b0383166000908152600a6020526040902054811015610d1d576001600160a01b0383166000908152600a602052604090208054610cff919083908110610cef57610cef611b94565b9060005260206000200154611839565b610d099083611ae5565b915080610d1581611b4d565b915050610ca0565b506001600160a01b0382166000908152600b6020526040902054610d419082611b1f565b6001600160a01b0383166000908152600c6020526040902054909150610d679082611ae5565b92915050565b60026001541415610dc05760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016106f5565b6002600155600454811115610e3d5760405162461bcd60e51b815260206004820152602960248201527f45786365656473206d6178696d756d206e756d62657220746f20756e7374616b60448201527f65206174206f6e6365000000000000000000000000000000000000000000000060648201526084016106f5565b60005b81811015610ee1573360096000858585818110610e5f57610e5f611b94565b60209081029290920135835250810191909152604001600020546001600160a01b031614610ecf5760405162461bcd60e51b815260206004820152601960248201527f43616c6c6572206973206e6f7420746f6b656e206f776e65720000000000000060448201526064016106f5565b80610ed981611b4d565b915050610e40565b5060005b81811015610f2057610f0e838383818110610f0257610f02611b94565b9050602002013561155f565b80610f1881611b4d565b915050610ee5565b508181905060036000828254610f369190611b1f565b9091555050600180555050565b600a6020528160005260406000208181548110610f5f57600080fd5b90600052602060002001600091509150505481565b60026001541415610fc75760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016106f5565b60026001556000610fd733610c9c565b9050600081116110295760405162461bcd60e51b815260206004820152601460248201527f4e6f207265776172647320617661696c61626c6500000000000000000000000060448201526064016106f5565b6040516000908190339084908381818185875af1925050503d806000811461106d576040519150601f19603f3d011682016040523d82523d6000602084013e611072565b606091505b5091509150816110c45760405162461bcd60e51b815260206004820152601460248201527f4661696c656420746f2073656e6420457468657200000000000000000000000060448201526064016106f5565b336000908152600b6020526040812080548592906110e3908490611ae5565b9091555050336000908152600c602052604081205550506001805550565b6000546001600160a01b036101009091041633146111615760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106f5565b61116b60006118da565b565b6001600160a01b0381166000908152600a60209081526040918290208054835181840281018401909452808452606093928301828280156111cd57602002820191906000526020600020905b8154815260200190600101908083116111b9575b50505050509050919050565b60008060005b60085481101561125257600654600554600960006008858154811061120657611206611b94565b906000526020600020015481526020019081526020016000206001015461122d9190611ae5565b11611240578161123c81611b4d565b9250505b8061124a81611b4d565b9150506111df565b50919050565b6008818154811061126857600080fd5b600091825260209091200154905081565b6001600160a01b0381166000908152600a60205260408120546060919067ffffffffffffffff8111156112ae576112ae611baa565b6040519080825280602002602001820160405280156112d7578160200160208202803683370190505b50905060005b6001600160a01b0384166000908152600a602052604090205481101561140b5760005b600f548110156113f857600f818154811061131d5761131d611b94565b90600052602060002090600302016000015460055460096000600a60008a6001600160a01b03166001600160a01b03168152602001908152602001600020868154811061136c5761136c611b94565b90600052602060002001548152602001908152602001600020600101546113939190611ae5565b116113c15760018383815181106113ac576113ac611b94565b911515602092830291909101909101526113e6565b60008383815181106113d5576113d5611b94565b911515602092830291909101909101525b806113f081611b4d565b915050611300565b508061140381611b4d565b9150506112dd565b5092915050565b6000546001600160a01b036101009091041633146114725760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106f5565b600555565b6000546001600160a01b036101009091041633146114d75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106f5565b6001600160a01b0381166115535760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016106f5565b61155c816118da565b50565b336000908152600a6020526040902061157782611839565b336000908152600c602052604081208054909190611596908490611ae5565b9091555050805481906115ab90600190611b1f565b815481106115bb576115bb611b94565b906000526020600020015481600d600085815260200190815260200160002054815481106115eb576115eb611b94565b9060005260206000200181905550600d600083815260200190815260200160002054600d600083600185805490506116239190611b1f565b8154811061163357611633611b94565b90600052602060002001548152602001908152602001600020819055508080548061166057611660611b7e565b60008281526020808220600019908401810183905590920190925560408051808201825283815280830184815286855260099093529220915182547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03909116178255516001918201556008805490916116e191611b1f565b815481106116f1576116f1611b94565b90600052602060002001546008600e6000858152602001908152602001600020548154811061172257611722611b94565b9060005260206000200181905550600e600083815260200190815260200160002054600e60006008600160088054905061175c9190611b1f565b8154811061176c5761176c611b94565b9060005260206000200154815260200190815260200160002081905550600880548061179a5761179a611b7e565b6000828152602081206000199083018101919091550190556002546040517f23b872dd000000000000000000000000000000000000000000000000000000008152306004820152336024820152604481018490526001600160a01b03909116906323b872dd90606401600060405180830381600087803b15801561181d57600080fd5b505af1158015611831573d6000803e3d6000fd5b505050505050565b6000805b600f5481101561125257600f818154811061185a5761185a611b94565b90600052602060002090600302016000015460055460096000868152602001908152602001600020600101546118909190611ae5565b116118c857600f81815481106118a8576118a8611b94565b906000526020600020906003020160020154826118c59190611ae5565b91505b806118d281611b4d565b91505061183d565b600080546001600160a01b038381166101008181027fffffffffffffffffffffff0000000000000000000000000000000000000000ff851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b60006020828403121561195c57600080fd5b813561196781611bc0565b9392505050565b60006020828403121561198057600080fd5b815161196781611bc0565b6000806040838503121561199e57600080fd5b82356119a981611bc0565b946020939093013593505050565b600080602083850312156119ca57600080fd5b823567ffffffffffffffff808211156119e257600080fd5b818501915085601f8301126119f657600080fd5b813581811115611a0557600080fd5b8660208260051b8501011115611a1a57600080fd5b60209290920196919550909350505050565b600060208284031215611a3e57600080fd5b8151801515811461196757600080fd5b600060208284031215611a6057600080fd5b5035919050565b6020808252825182820181905260009190848201906040850190845b81811015611aa1578351151583529284019291840191600101611a83565b50909695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015611aa157835183529284019291840191600101611ac9565b60008219821115611af857611af8611b68565b500190565b600082611b1a57634e487b7160e01b600052601260045260246000fd5b500490565b600082821015611b3157611b31611b68565b500390565b600081611b4557611b45611b68565b506000190190565b6000600019821415611b6157611b61611b68565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461155c57600080fdfea2646970667358221220af1d0c978c00d09eaac797c34d98657bbe04533f192b14b8e29a99bd73bcc84364736f6c63430008070033000000000000000000000000ee669e0afa6de7f4bb2bff3e1e549274ad21a5dd
Deployed Bytecode
0x6080604052600436106101b75760003560e01c80637c688597116100ec578063c25c42401161008a578063e2ed3f1e11610064578063e2ed3f1e14610512578063ea81d0e614610528578063f1346ada14610555578063f2fde38b1461057557600080fd5b8063c25c424014610466578063d5a44f8614610493578063d6ab2534146104f257600080fd5b8063979eaed2116100c6578063979eaed2146103ee578063a0a51e8c14610403578063a8f15c5a14610419578063c07885551461044657600080fd5b80637c68859714610381578063817b1cd2146103a15780638da5cb5b146103b757600080fd5b80633736f85d116101595780635c975abb116101335780635c975abb1461032157806365b5e52f1461034457806370bb45b314610364578063715018a61461036c57600080fd5b80633736f85d146102b45780634c2801f9146102d45780635ac317171461030157600080fd5b8063102610f011610195578063102610f0146102295780632e17de7814610231578063335932fc1461025157806334ee87221461027e57600080fd5b806306bcc564146101bc5780630e469a7c146101e55780630fbf0a9314610207575b600080fd5b3480156101c857600080fd5b506101d260075481565b6040519081526020015b60405180910390f35b3480156101f157600080fd5b506101fa610595565b6040516101dc9190611aad565b34801561021357600080fd5b506102276102223660046119b7565b6105ed565b005b610227610a9b565b34801561023d57600080fd5b5061022761024c366004611a4e565b610bb9565b34801561025d57600080fd5b506101d261026c366004611a4e565b600d6020526000908152604090205481565b34801561028a57600080fd5b506101d261029936600461194a565b6001600160a01b03166000908152600a602052604090205490565b3480156102c057600080fd5b506101d26102cf36600461194a565b610c9c565b3480156102e057600080fd5b506101d26102ef36600461194a565b600b6020526000908152604090205481565b34801561030d57600080fd5b5061022761031c3660046119b7565b610d6d565b34801561032d57600080fd5b5060005460ff1660405190151581526020016101dc565b34801561035057600080fd5b506101d261035f36600461198b565b610f43565b610227610f74565b34801561037857600080fd5b50610227611101565b34801561038d57600080fd5b506101fa61039c36600461194a565b61116d565b3480156103ad57600080fd5b506101d260035481565b3480156103c357600080fd5b5060005461010090046001600160a01b03165b6040516001600160a01b0390911681526020016101dc565b3480156103fa57600080fd5b506101d26111d9565b34801561040f57600080fd5b506101d260045481565b34801561042557600080fd5b506101d2610434366004611a4e565b600e6020526000908152604090205481565b34801561045257600080fd5b506101d2610461366004611a4e565b611258565b34801561047257600080fd5b506101d261048136600461194a565b600c6020526000908152604090205481565b34801561049f57600080fd5b506104d36104ae366004611a4e565b600960205260009081526040902080546001909101546001600160a01b039091169082565b604080516001600160a01b0390931683526020830191909152016101dc565b3480156104fe57600080fd5b506002546103d6906001600160a01b031681565b34801561051e57600080fd5b506101d260065481565b34801561053457600080fd5b5061054861054336600461194a565b611279565b6040516101dc9190611a67565b34801561056157600080fd5b50610227610570366004611a4e565b611412565b34801561058157600080fd5b5061022761059036600461194a565b611477565b606060088054806020026020016040519081016040528092919081815260200182805480156105e357602002820191906000526020600020905b8154815260200190600101908083116105cf575b5050505050905090565b6002546040517fe985e9c50000000000000000000000000000000000000000000000000000000081523360048201523060248201526001600160a01b039091169063e985e9c59060440160206040518083038186803b15801561064f57600080fd5b505afa158015610663573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106879190611a2c565b6106fe5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084015b60405180910390fd5b60005460ff16156107515760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016106f5565b60005b8181101561085e5760025433906001600160a01b0316636352211e85858581811061078157610781611b94565b905060200201356040518263ffffffff1660e01b81526004016107a691815260200190565b60206040518083038186803b1580156107be57600080fd5b505afa1580156107d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107f6919061196e565b6001600160a01b03161461084c5760405162461bcd60e51b815260206004820152601960248201527f43616c6c6572206973206e6f7420746f6b656e206f776e65720000000000000060448201526064016106f5565b8061085681611b4d565b915050610754565b50336000908152600a60205260408120905b82811015610a7b578154600d600086868581811061089057610890611b94565b90506020020135815260200190815260200160002081905550818484838181106108bc576108bc611b94565b835460018101855560009485526020808620920293909301359201919091555060085490600e908686858181106108f5576108f5611b94565b90506020020135815260200190815260200160002081905550600884848381811061092257610922611b94565b8354600181018555600094855260208086209281029490940135910155506040805180820190915233815242918101919091529060099086868581811061096b5761096b611b94565b6020908102929092013583525081810192909252604001600020825181547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b039182161782559290910151600190910155600254166323b872dd33308787868181106109e1576109e1611b94565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b158015610a5057600080fd5b505af1158015610a64573d6000803e3d6000fd5b505050508080610a7390611b4d565b915050610870565b508282905060036000828254610a919190611ae5565b9091555050505050565b6000546001600160a01b03610100909104163314610afb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106f5565b42600655610b076111d9565b6007819055610b585760405162461bcd60e51b815260206004820152601360248201527f4e6f207175616c6966696564207368617265730000000000000000000000000060448201526064016106f5565b600f6040518060600160405280428152602001600754815260200160075434610b819190611afd565b905281546001818101845560009384526020938490208351600390930201918255928201519281019290925560400151600290910155565b60026001541415610c0c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016106f5565b60026001556000818152600960205260409020546001600160a01b03163314610c775760405162461bcd60e51b815260206004820152601960248201527f43616c6c6572206973206e6f7420746f6b656e206f776e65720000000000000060448201526064016106f5565b610c808161155f565b60038054906000610c9083611b36565b90915550506001805550565b6000805b6001600160a01b0383166000908152600a6020526040902054811015610d1d576001600160a01b0383166000908152600a602052604090208054610cff919083908110610cef57610cef611b94565b9060005260206000200154611839565b610d099083611ae5565b915080610d1581611b4d565b915050610ca0565b506001600160a01b0382166000908152600b6020526040902054610d419082611b1f565b6001600160a01b0383166000908152600c6020526040902054909150610d679082611ae5565b92915050565b60026001541415610dc05760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016106f5565b6002600155600454811115610e3d5760405162461bcd60e51b815260206004820152602960248201527f45786365656473206d6178696d756d206e756d62657220746f20756e7374616b60448201527f65206174206f6e6365000000000000000000000000000000000000000000000060648201526084016106f5565b60005b81811015610ee1573360096000858585818110610e5f57610e5f611b94565b60209081029290920135835250810191909152604001600020546001600160a01b031614610ecf5760405162461bcd60e51b815260206004820152601960248201527f43616c6c6572206973206e6f7420746f6b656e206f776e65720000000000000060448201526064016106f5565b80610ed981611b4d565b915050610e40565b5060005b81811015610f2057610f0e838383818110610f0257610f02611b94565b9050602002013561155f565b80610f1881611b4d565b915050610ee5565b508181905060036000828254610f369190611b1f565b9091555050600180555050565b600a6020528160005260406000208181548110610f5f57600080fd5b90600052602060002001600091509150505481565b60026001541415610fc75760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016106f5565b60026001556000610fd733610c9c565b9050600081116110295760405162461bcd60e51b815260206004820152601460248201527f4e6f207265776172647320617661696c61626c6500000000000000000000000060448201526064016106f5565b6040516000908190339084908381818185875af1925050503d806000811461106d576040519150601f19603f3d011682016040523d82523d6000602084013e611072565b606091505b5091509150816110c45760405162461bcd60e51b815260206004820152601460248201527f4661696c656420746f2073656e6420457468657200000000000000000000000060448201526064016106f5565b336000908152600b6020526040812080548592906110e3908490611ae5565b9091555050336000908152600c602052604081205550506001805550565b6000546001600160a01b036101009091041633146111615760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106f5565b61116b60006118da565b565b6001600160a01b0381166000908152600a60209081526040918290208054835181840281018401909452808452606093928301828280156111cd57602002820191906000526020600020905b8154815260200190600101908083116111b9575b50505050509050919050565b60008060005b60085481101561125257600654600554600960006008858154811061120657611206611b94565b906000526020600020015481526020019081526020016000206001015461122d9190611ae5565b11611240578161123c81611b4d565b9250505b8061124a81611b4d565b9150506111df565b50919050565b6008818154811061126857600080fd5b600091825260209091200154905081565b6001600160a01b0381166000908152600a60205260408120546060919067ffffffffffffffff8111156112ae576112ae611baa565b6040519080825280602002602001820160405280156112d7578160200160208202803683370190505b50905060005b6001600160a01b0384166000908152600a602052604090205481101561140b5760005b600f548110156113f857600f818154811061131d5761131d611b94565b90600052602060002090600302016000015460055460096000600a60008a6001600160a01b03166001600160a01b03168152602001908152602001600020868154811061136c5761136c611b94565b90600052602060002001548152602001908152602001600020600101546113939190611ae5565b116113c15760018383815181106113ac576113ac611b94565b911515602092830291909101909101526113e6565b60008383815181106113d5576113d5611b94565b911515602092830291909101909101525b806113f081611b4d565b915050611300565b508061140381611b4d565b9150506112dd565b5092915050565b6000546001600160a01b036101009091041633146114725760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106f5565b600555565b6000546001600160a01b036101009091041633146114d75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106f5565b6001600160a01b0381166115535760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016106f5565b61155c816118da565b50565b336000908152600a6020526040902061157782611839565b336000908152600c602052604081208054909190611596908490611ae5565b9091555050805481906115ab90600190611b1f565b815481106115bb576115bb611b94565b906000526020600020015481600d600085815260200190815260200160002054815481106115eb576115eb611b94565b9060005260206000200181905550600d600083815260200190815260200160002054600d600083600185805490506116239190611b1f565b8154811061163357611633611b94565b90600052602060002001548152602001908152602001600020819055508080548061166057611660611b7e565b60008281526020808220600019908401810183905590920190925560408051808201825283815280830184815286855260099093529220915182547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03909116178255516001918201556008805490916116e191611b1f565b815481106116f1576116f1611b94565b90600052602060002001546008600e6000858152602001908152602001600020548154811061172257611722611b94565b9060005260206000200181905550600e600083815260200190815260200160002054600e60006008600160088054905061175c9190611b1f565b8154811061176c5761176c611b94565b9060005260206000200154815260200190815260200160002081905550600880548061179a5761179a611b7e565b6000828152602081206000199083018101919091550190556002546040517f23b872dd000000000000000000000000000000000000000000000000000000008152306004820152336024820152604481018490526001600160a01b03909116906323b872dd90606401600060405180830381600087803b15801561181d57600080fd5b505af1158015611831573d6000803e3d6000fd5b505050505050565b6000805b600f5481101561125257600f818154811061185a5761185a611b94565b90600052602060002090600302016000015460055460096000868152602001908152602001600020600101546118909190611ae5565b116118c857600f81815481106118a8576118a8611b94565b906000526020600020906003020160020154826118c59190611ae5565b91505b806118d281611b4d565b91505061183d565b600080546001600160a01b038381166101008181027fffffffffffffffffffffff0000000000000000000000000000000000000000ff851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b60006020828403121561195c57600080fd5b813561196781611bc0565b9392505050565b60006020828403121561198057600080fd5b815161196781611bc0565b6000806040838503121561199e57600080fd5b82356119a981611bc0565b946020939093013593505050565b600080602083850312156119ca57600080fd5b823567ffffffffffffffff808211156119e257600080fd5b818501915085601f8301126119f657600080fd5b813581811115611a0557600080fd5b8660208260051b8501011115611a1a57600080fd5b60209290920196919550909350505050565b600060208284031215611a3e57600080fd5b8151801515811461196757600080fd5b600060208284031215611a6057600080fd5b5035919050565b6020808252825182820181905260009190848201906040850190845b81811015611aa1578351151583529284019291840191600101611a83565b50909695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015611aa157835183529284019291840191600101611ac9565b60008219821115611af857611af8611b68565b500190565b600082611b1a57634e487b7160e01b600052601260045260246000fd5b500490565b600082821015611b3157611b31611b68565b500390565b600081611b4557611b45611b68565b506000190190565b6000600019821415611b6157611b61611b68565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461155c57600080fdfea2646970667358221220af1d0c978c00d09eaac797c34d98657bbe04533f192b14b8e29a99bd73bcc84364736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000ee669e0afa6de7f4bb2bff3e1e549274ad21a5dd
-----Decoded View---------------
Arg [0] : _strange (address): 0xEe669E0aFA6de7f4BB2bFF3e1E549274AD21A5dD
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000ee669e0afa6de7f4bb2bff3e1e549274ad21a5dd
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $2,640.35 | 3.8018 | $10,038.18 |
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.