Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
Latest 25 from a total of 241 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Unstake | 19747876 | 216 days ago | IN | 0 ETH | 0.0007115 | ||||
Unstake | 19380756 | 268 days ago | IN | 0 ETH | 0.00768699 | ||||
Unstake | 19329617 | 275 days ago | IN | 0 ETH | 0.00666188 | ||||
Unstake | 19304984 | 279 days ago | IN | 0 ETH | 0.00305017 | ||||
Unstake | 19142285 | 301 days ago | IN | 0 ETH | 0.00201389 | ||||
Unstake | 19031501 | 317 days ago | IN | 0 ETH | 0.00315277 | ||||
Unstake | 19029556 | 317 days ago | IN | 0 ETH | 0.00427519 | ||||
Unstake | 19019929 | 319 days ago | IN | 0 ETH | 0.00402818 | ||||
Unstake | 18989199 | 323 days ago | IN | 0 ETH | 0.00155243 | ||||
Unstake | 18989137 | 323 days ago | IN | 0 ETH | 0.00138787 | ||||
Unstake | 18989134 | 323 days ago | IN | 0 ETH | 0.00166325 | ||||
Unstake | 18989001 | 323 days ago | IN | 0 ETH | 0.00169597 | ||||
Unstake | 18988997 | 323 days ago | IN | 0 ETH | 0.00165397 | ||||
Unstake | 18988995 | 323 days ago | IN | 0 ETH | 0.00168023 | ||||
Unstake | 18988994 | 323 days ago | IN | 0 ETH | 0.00164438 | ||||
Unstake | 18988991 | 323 days ago | IN | 0 ETH | 0.00172071 | ||||
Unstake | 18988987 | 323 days ago | IN | 0 ETH | 0.00195074 | ||||
Unstake | 18982568 | 324 days ago | IN | 0 ETH | 0.00254126 | ||||
Unstake | 18975247 | 325 days ago | IN | 0 ETH | 0.00224422 | ||||
Unstake | 18975245 | 325 days ago | IN | 0 ETH | 0.00261856 | ||||
Unstake | 18975224 | 325 days ago | IN | 0 ETH | 0.00243013 | ||||
Unstake | 18975199 | 325 days ago | IN | 0 ETH | 0.00228619 | ||||
Unstake | 18968143 | 326 days ago | IN | 0 ETH | 0.00164955 | ||||
Unstake | 18968142 | 326 days ago | IN | 0 ETH | 0.00172087 | ||||
Unstake | 18968141 | 326 days ago | IN | 0 ETH | 0.00206647 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
E4CRangerHolder
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/utils/ERC721Holder.sol"; import "@openzeppelin/contracts/utils/math/Math.sol"; contract E4CRangerHolder is ERC721Holder { address public nft; uint256 public upgradeDuration; mapping(uint256 => address) public originalOwner; mapping(uint256 => bool) public upgraded; mapping(uint256 => uint256) private _accStakingTime; mapping(uint256 => uint256) private _lastStakingTime; event Staked(address indexed user, uint256 tokenId); event Withdrawn(address indexed user, uint256 tokenId); constructor(address _nft, uint256 _upgradeDuration) { nft = _nft; upgradeDuration = _upgradeDuration; } function unstake(uint256 tokenId) external { require(originalOwner[tokenId] != address(0), "The contract doesn't hold the specific token"); require(originalOwner[tokenId] == msg.sender, "You're not the owner"); uint256 stakingDuration = block.timestamp - _lastStakingTime[tokenId]; uint256 accStakingTime = Math.min(_accStakingTime[tokenId] + stakingDuration, upgradeDuration); _accStakingTime[tokenId] = accStakingTime; if (accStakingTime >= upgradeDuration) { upgraded[tokenId] = true; } IERC721(nft).safeTransferFrom(address(this), msg.sender, tokenId); originalOwner[tokenId] = address(0); emit Withdrawn(msg.sender, tokenId); } function totalStakingTime(uint256 tokenId) external view returns (uint256) { if (originalOwner[tokenId] == address(0)) { return _accStakingTime[tokenId]; } return Math.min(block.timestamp - _lastStakingTime[tokenId] + _accStakingTime[tokenId], upgradeDuration); } function onERC721Received( address, address from, uint256 tokenId, bytes memory ) public override returns (bytes4) { require(msg.sender == nft, "Not acceptable NFT"); require(!upgraded[tokenId], "Cannot stake upgraded NFT"); originalOwner[tokenId] = from; _lastStakingTime[tokenId] = block.timestamp; emit Staked(from, tokenId); return this.onERC721Received.selector; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. It the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. // We also know that `k`, the position of the most significant bit, is such that `msb(a) = 2**k`. // This gives `2**k < a <= 2**(k+1)` → `2**(k/2) <= sqrt(a) < 2 ** (k/2+1)`. // Using an algorithm similar to the msb conmputation, we are able to compute `result = 2**(k/2)` which is a // good first aproximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1; uint256 x = a; if (x >> 128 > 0) { x >>= 128; result <<= 64; } if (x >> 64 > 0) { x >>= 64; result <<= 32; } if (x >> 32 > 0) { x >>= 32; result <<= 16; } if (x >> 16 > 0) { x >>= 16; result <<= 8; } if (x >> 8 > 0) { x >>= 8; result <<= 4; } if (x >> 4 > 0) { x >>= 4; result <<= 2; } if (x >> 2 > 0) { result <<= 1; } // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { uint256 result = sqrt(a); if (rounding == Rounding.Up && result * result < a) { result += 1; } return result; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/utils/ERC721Holder.sol) pragma solidity ^0.8.0; import "../IERC721Receiver.sol"; /** * @dev Implementation of the {IERC721Receiver} interface. * * Accepts all token transfers. * Make sure the contract is able to use its token with {IERC721-safeTransferFrom}, {IERC721-approve} or {IERC721-setApprovalForAll}. */ contract ERC721Holder is IERC721Receiver { /** * @dev See {IERC721Receiver-onERC721Received}. * * Always returns `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address, address, uint256, bytes memory ) public virtual override returns (bytes4) { return this.onERC721Received.selector; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
{ "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_nft","type":"address"},{"internalType":"uint256","name":"_upgradeDuration","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[],"name":"nft","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"originalOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"totalStakingTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"upgradeDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"upgraded","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b5060405161080038038061080083398101604081905261002f91610058565b600080546001600160a01b0319166001600160a01b039390931692909217909155600155610092565b6000806040838503121561006b57600080fd5b82516001600160a01b038116811461008257600080fd5b6020939093015192949293505050565b61075f806100a16000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c806347ccca021161005b57806347ccca0214610121578063863abf7914610134578063f4da8a0c1461014b578063f7ea244e1461015e57600080fd5b8063150b7a02146100825780632e17de78146100cb57806340bb154d146100e0575b600080fd5b6100956100903660046105f8565b610191565b6040517fffffffff0000000000000000000000000000000000000000000000000000000090911681526020015b60405180910390f35b6100de6100d93660046106d4565b6102ee565b005b6101096100ee3660046106d4565b6002602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020016100c2565b600054610109906001600160a01b031681565b61013d60015481565b6040519081526020016100c2565b61013d6101593660046106d4565b610545565b61018161016c3660046106d4565b60036020526000908152604090205460ff1681565b60405190151581526020016100c2565b600080546001600160a01b031633146101f15760405162461bcd60e51b815260206004820152601260248201527f4e6f742061636365707461626c65204e4654000000000000000000000000000060448201526064015b60405180910390fd5b60008381526003602052604090205460ff16156102505760405162461bcd60e51b815260206004820152601960248201527f43616e6e6f74207374616b65207570677261646564204e46540000000000000060448201526064016101e8565b6000838152600260209081526040808320805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0389169081179091556005835292819020429055518581527f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d910160405180910390a2507f150b7a0200000000000000000000000000000000000000000000000000000000949350505050565b6000818152600260205260409020546001600160a01b03166103785760405162461bcd60e51b815260206004820152602c60248201527f54686520636f6e747261637420646f65736e277420686f6c642074686520737060448201527f65636966696320746f6b656e000000000000000000000000000000000000000060648201526084016101e8565b6000818152600260205260409020546001600160a01b031633146103de5760405162461bcd60e51b815260206004820152601460248201527f596f75277265206e6f7420746865206f776e657200000000000000000000000060448201526064016101e8565b6000818152600560205260408120546103f79042610703565b6000838152600460205260408120549192509061042190610419908490610716565b6001546105ae565b60008481526004602052604090208190556001549091508110610458576000838152600360205260409020805460ff191660011790555b6000546040517f42842e0e000000000000000000000000000000000000000000000000000000008152306004820152336024820152604481018590526001600160a01b03909116906342842e0e90606401600060405180830381600087803b1580156104c357600080fd5b505af11580156104d7573d6000803e3d6000fd5b50505060008481526002602052604090819020805473ffffffffffffffffffffffffffffffffffffffff19169055513391507f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5906105389086815260200190565b60405180910390a2505050565b6000818152600260205260408120546001600160a01b0316610574575060009081526004602052604090205490565b6000828152600460209081526040808320546005909252909120546105a8919061059e9042610703565b6104199190610716565b92915050565b60008183106105bd57816105bf565b825b9392505050565b80356001600160a01b03811681146105dd57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561060e57600080fd5b610617856105c6565b9350610625602086016105c6565b925060408501359150606085013567ffffffffffffffff8082111561064957600080fd5b818701915087601f83011261065d57600080fd5b81358181111561066f5761066f6105e2565b604051601f8201601f19908116603f01168101908382118183101715610697576106976105e2565b816040528281528a60208487010111156106b057600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000602082840312156106e657600080fd5b5035919050565b634e487b7160e01b600052601160045260246000fd5b818103818111156105a8576105a86106ed565b808201808211156105a8576105a86106ed56fea2646970667358221220c3f3d7812d7964e892966f7d4f1aff7e09a12340dd847fa3519ee1552253978b64736f6c63430008110033000000000000000000000000ba265b93519e6473f34f46ee35f4b23970f41a3f00000000000000000000000000000000000000000000000000000000002e2480
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061007d5760003560e01c806347ccca021161005b57806347ccca0214610121578063863abf7914610134578063f4da8a0c1461014b578063f7ea244e1461015e57600080fd5b8063150b7a02146100825780632e17de78146100cb57806340bb154d146100e0575b600080fd5b6100956100903660046105f8565b610191565b6040517fffffffff0000000000000000000000000000000000000000000000000000000090911681526020015b60405180910390f35b6100de6100d93660046106d4565b6102ee565b005b6101096100ee3660046106d4565b6002602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020016100c2565b600054610109906001600160a01b031681565b61013d60015481565b6040519081526020016100c2565b61013d6101593660046106d4565b610545565b61018161016c3660046106d4565b60036020526000908152604090205460ff1681565b60405190151581526020016100c2565b600080546001600160a01b031633146101f15760405162461bcd60e51b815260206004820152601260248201527f4e6f742061636365707461626c65204e4654000000000000000000000000000060448201526064015b60405180910390fd5b60008381526003602052604090205460ff16156102505760405162461bcd60e51b815260206004820152601960248201527f43616e6e6f74207374616b65207570677261646564204e46540000000000000060448201526064016101e8565b6000838152600260209081526040808320805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0389169081179091556005835292819020429055518581527f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d910160405180910390a2507f150b7a0200000000000000000000000000000000000000000000000000000000949350505050565b6000818152600260205260409020546001600160a01b03166103785760405162461bcd60e51b815260206004820152602c60248201527f54686520636f6e747261637420646f65736e277420686f6c642074686520737060448201527f65636966696320746f6b656e000000000000000000000000000000000000000060648201526084016101e8565b6000818152600260205260409020546001600160a01b031633146103de5760405162461bcd60e51b815260206004820152601460248201527f596f75277265206e6f7420746865206f776e657200000000000000000000000060448201526064016101e8565b6000818152600560205260408120546103f79042610703565b6000838152600460205260408120549192509061042190610419908490610716565b6001546105ae565b60008481526004602052604090208190556001549091508110610458576000838152600360205260409020805460ff191660011790555b6000546040517f42842e0e000000000000000000000000000000000000000000000000000000008152306004820152336024820152604481018590526001600160a01b03909116906342842e0e90606401600060405180830381600087803b1580156104c357600080fd5b505af11580156104d7573d6000803e3d6000fd5b50505060008481526002602052604090819020805473ffffffffffffffffffffffffffffffffffffffff19169055513391507f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5906105389086815260200190565b60405180910390a2505050565b6000818152600260205260408120546001600160a01b0316610574575060009081526004602052604090205490565b6000828152600460209081526040808320546005909252909120546105a8919061059e9042610703565b6104199190610716565b92915050565b60008183106105bd57816105bf565b825b9392505050565b80356001600160a01b03811681146105dd57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561060e57600080fd5b610617856105c6565b9350610625602086016105c6565b925060408501359150606085013567ffffffffffffffff8082111561064957600080fd5b818701915087601f83011261065d57600080fd5b81358181111561066f5761066f6105e2565b604051601f8201601f19908116603f01168101908382118183101715610697576106976105e2565b816040528281528a60208487010111156106b057600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000602082840312156106e657600080fd5b5035919050565b634e487b7160e01b600052601160045260246000fd5b818103818111156105a8576105a86106ed565b808201808211156105a8576105a86106ed56fea2646970667358221220c3f3d7812d7964e892966f7d4f1aff7e09a12340dd847fa3519ee1552253978b64736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000ba265b93519e6473f34f46ee35f4b23970f41a3f00000000000000000000000000000000000000000000000000000000002e2480
-----Decoded View---------------
Arg [0] : _nft (address): 0xbA265B93519E6473F34F46ee35F4B23970F41a3f
Arg [1] : _upgradeDuration (uint256): 3024000
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000ba265b93519e6473f34f46ee35f4b23970f41a3f
Arg [1] : 00000000000000000000000000000000000000000000000000000000002e2480
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.