Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 254 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Stake | 17955112 | 557 days ago | IN | 0 ETH | 0.00183467 | ||||
Unstake Batch | 17718721 | 590 days ago | IN | 0 ETH | 0.00318858 | ||||
Claim Rewards | 17718713 | 590 days ago | IN | 0 ETH | 0.00083958 | ||||
Claim Rewards | 17718701 | 590 days ago | IN | 0 ETH | 0.00080024 | ||||
Unstake | 17339894 | 643 days ago | IN | 0 ETH | 0.00326071 | ||||
Claim Rewards | 17339890 | 643 days ago | IN | 0 ETH | 0.00227899 | ||||
Unstake | 17014052 | 689 days ago | IN | 0 ETH | 0.00178614 | ||||
Unstake | 16504381 | 761 days ago | IN | 0 ETH | 0.0017743 | ||||
Unstake | 16435912 | 770 days ago | IN | 0 ETH | 0.00348099 | ||||
Unstake Batch | 16417017 | 773 days ago | IN | 0 ETH | 0.00210685 | ||||
Unstake | 16393582 | 776 days ago | IN | 0 ETH | 0.0034836 | ||||
Claim Rewards | 16341875 | 783 days ago | IN | 0 ETH | 0.00122837 | ||||
Unstake | 16290030 | 791 days ago | IN | 0 ETH | 0.00173618 | ||||
Claim Rewards | 16290015 | 791 days ago | IN | 0 ETH | 0.00114375 | ||||
Stake | 16289110 | 791 days ago | IN | 0 ETH | 0.00181903 | ||||
Stake | 16289072 | 791 days ago | IN | 0 ETH | 0.00236358 | ||||
Claim Rewards | 16242139 | 797 days ago | IN | 0 ETH | 0.00125086 | ||||
Unstake Batch | 16229016 | 799 days ago | IN | 0 ETH | 0.00375452 | ||||
Claim Rewards | 16228973 | 799 days ago | IN | 0 ETH | 0.00082787 | ||||
Stake | 16178738 | 806 days ago | IN | 0 ETH | 0.00295851 | ||||
Claim Rewards | 16178727 | 806 days ago | IN | 0 ETH | 0.00143327 | ||||
Claim Rewards | 16178723 | 806 days ago | IN | 0 ETH | 0.00194678 | ||||
Stake Batch | 16172849 | 807 days ago | IN | 0 ETH | 0.00336109 | ||||
Unstake | 16168279 | 808 days ago | IN | 0 ETH | 0.00180719 | ||||
Unstake | 16165235 | 808 days ago | IN | 0 ETH | 0.00179614 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
Staking
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
No with 200 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/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/token/ERC721/utils/ERC721Holder.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; interface IRewardToken is IERC20 { function mint(address to, uint256 amount) external; } error Staking__AlreadyInitialized(); error Staking__NotStarted(); error Staking__NotOwner(); error Staking__NotTokenOwner(); error Staking__NoRewardsToClaim(); contract Staking is Ownable, ERC721Holder { using SafeERC20 for IRewardToken; uint256 public stakedTotal; uint256 public stakingStartTime; // rewards rate in WEI uint256 private rewardsPerHour = 1 ether; // interfaces for nft and rewards conttracts IERC721 public immutable nft; IRewardToken public immutable rewardsToken; struct Staker { uint256[] tokenIds; uint256 rewardsReleased; uint256 timeOfLastUpdate; uint256 unclaimedRewards; } // map Staker to address mapping(address => Staker) public stakers; // map token id to owners mapping(uint256 => address) public tokenOwner; bool initialised; // Events event Staked(address indexed owner, uint256 tokenId, uint256 timestamp); event Unstaked(address indexed owner, uint256 tokenId, uint256 timestamp); event RewardPaid(address indexed user, uint256 reward); event ClaimableStatusUpdated(bool status); constructor(IERC721 _nft, IRewardToken _rewardsToken) { nft = _nft; rewardsToken = _rewardsToken; } function getStakeInitStatus() public view returns (bool) { return initialised; } function initStaking() public onlyOwner { if (initialised) { revert Staking__AlreadyInitialized(); } stakingStartTime = block.timestamp; initialised = true; } function getRewardsHourlyRate() public view returns (uint256) { return rewardsPerHour; } // tokens staked by particular address function getStakedTokens(address _user) public view returns (uint256[] memory tokenIds) { return stakers[_user].tokenIds; } function stake(uint256 tokenId) public { _stake(msg.sender, tokenId); } function stakeBatch(uint256[] memory tokenIds) public { for (uint256 i = 0; i < tokenIds.length; i++) { _stake(msg.sender, tokenIds[i]); } } function _stake(address _user, uint256 _tokenId) internal { if (!initialised) { revert Staking__NotStarted(); } Staker storage staker = stakers[_user]; if (nft.ownerOf(_tokenId) != msg.sender) { revert Staking__NotTokenOwner(); } staker.tokenIds.push(_tokenId); tokenOwner[_tokenId] = _user; nft.safeTransferFrom(_user, address(this), _tokenId); emit Staked(_user, _tokenId, block.timestamp); staker.timeOfLastUpdate = block.timestamp; stakedTotal++; } function unstake(uint256 _tokenId) public { claimRewards(msg.sender); _unstake(msg.sender, _tokenId); } function unstakeBatch(uint256[] memory tokenIds) public { claimRewards(msg.sender); for (uint256 i = 0; i < tokenIds.length; i++) { if (tokenOwner[tokenIds[i]] == msg.sender) { _unstake(msg.sender, tokenIds[i]); } } } function _unstake(address _user, uint256 _tokenId) internal { if (tokenOwner[_tokenId] != _user) { revert Staking__NotOwner(); } Staker storage staker = stakers[_user]; // find index of token in users staked tokens uint tokenIndex; for (uint i = 0; i < staker.tokenIds.length; i++) { if (staker.tokenIds[i] == _tokenId) { tokenIndex = i; break; } } // remove from list of the address' staked tokens for (uint i = tokenIndex; i < staker.tokenIds.length - 1; i++) { staker.tokenIds[i] = staker.tokenIds[i + 1]; } staker.tokenIds.pop(); delete tokenOwner[_tokenId]; nft.safeTransferFrom(address(this), _user, _tokenId); emit Unstaked(_user, _tokenId, block.timestamp); staker.timeOfLastUpdate = block.timestamp; stakedTotal--; } // Calculate rewards for the msg.sender, check if there are any rewards // claim, set unclaimedRewards to 0 and transfer the ERC20 Reward token // to the user. function claimRewards(address _user) public { uint256 rewards = calculateRewards(_user) + stakers[_user].unclaimedRewards; if (rewards <= 0) { revert Staking__NoRewardsToClaim(); } stakers[_user].rewardsReleased += stakers[_user].unclaimedRewards; stakers[_user].unclaimedRewards = 0; stakers[_user].timeOfLastUpdate = block.timestamp; rewardsToken.safeTransfer(_user, rewards); emit RewardPaid(_user, rewards); } // Calculate rewards for param _stakerAddress by calculating the time passed // since last update in hours and mulitplying it to ERC721 Tokens Staked // and rewardsPerHour. function calculateRewards(address _stakerAddress) internal view returns (uint256 _rewards) { // calculate based on no of staked, and time passed return ((( ((block.timestamp - stakers[_stakerAddress].timeOfLastUpdate) * stakers[_stakerAddress].tokenIds.length) ) * rewardsPerHour) / 3600); } function getTotalRewards(address _user) external view returns (uint256) { uint256 rewards = calculateRewards(_user) + stakers[_user].unclaimedRewards; return rewards; } function getTotalStaked() external view returns (uint256) { return stakedTotal; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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); /** * @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); }
// 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 (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/draft-IERC20Permit.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)); } } function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 (last updated v4.7.0) (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 Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { 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 (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 v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// 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); }
// 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; } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"contract IERC721","name":"_nft","type":"address"},{"internalType":"contract IRewardToken","name":"_rewardsToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"Staking__AlreadyInitialized","type":"error"},{"inputs":[],"name":"Staking__NoRewardsToClaim","type":"error"},{"inputs":[],"name":"Staking__NotOwner","type":"error"},{"inputs":[],"name":"Staking__NotStarted","type":"error"},{"inputs":[],"name":"Staking__NotTokenOwner","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"status","type":"bool"}],"name":"ClaimableStatusUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"Unstaked","type":"event"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"claimRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getRewardsHourlyRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getStakeInitStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getStakedTokens","outputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getTotalRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initStaking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"nft","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardsToken","outputs":[{"internalType":"contract IRewardToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"stakeBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakedTotal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"stakers","outputs":[{"internalType":"uint256","name":"rewardsReleased","type":"uint256"},{"internalType":"uint256","name":"timeOfLastUpdate","type":"uint256"},{"internalType":"uint256","name":"unclaimedRewards","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"unstakeBatch","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c0604052670de0b6b3a76400006003553480156200001d57600080fd5b506040516200267c3803806200267c8339818101604052810190620000439190620001d3565b6200006362000057620000d960201b60201c565b620000e160201b60201c565b8173ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b815250508073ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b815250505050620002af565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081519050620001b6816200027b565b92915050565b600081519050620001cd8162000295565b92915050565b60008060408385031215620001ed57620001ec62000276565b5b6000620001fd85828601620001a5565b92505060206200021085828601620001bc565b9150509250929050565b6000620002278262000256565b9050919050565b60006200023b826200021a565b9050919050565b60006200024f826200021a565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600080fd5b62000286816200022e565b81146200029257600080fd5b50565b620002a08162000242565b8114620002ac57600080fd5b50565b60805160601c60a05160601c612385620002f7600039600081816106a301526109620152600081816104f801528181610b3501528181610ca8015261108a01526123856000f3fe608060405234801561001057600080fd5b50600436106101375760003560e01c8063715018a6116100b8578063d1af0c7d1161007c578063d1af0c7d1461032c578063d66692a71461034a578063e64a21f314610368578063ef5cfb8c14610384578063f2fde38b146103a0578063f3006b0d146103bc57610137565b8063715018a6146102ac5780638da5cb5b146102b65780639168ae72146102d4578063a694fc3a14610306578063b4efa66d1461032257610137565b80632e17de78116100ff5780632e17de78146102065780633e63c6f01461022257806347ccca021461024057806363c28db11461025e5780636abfd1831461028e57610137565b80630917e7761461013c578063150b7a021461015a5780631caaa4871461018a578063230f436d146101ba5780632bcf161c146101d6575b600080fd5b6101446103da565b6040516101519190611c97565b60405180910390f35b610174600480360381019061016f9190611797565b6103e4565b6040516101819190611b84565b60405180910390f35b6101a4600480360381019061019f9190611890565b6103f8565b6040516101b19190611acc565b60405180910390f35b6101d460048036038101906101cf919061181a565b61042b565b005b6101f060048036038101906101eb919061173d565b610472565b6040516101fd9190611c97565b60405180910390f35b610220600480360381019061021b9190611890565b6104d6565b005b61022a6104ec565b6040516102379190611c97565b60405180910390f35b6102486104f6565b6040516102559190611b9f565b60405180910390f35b6102786004803603810190610273919061173d565b61051a565b6040516102859190611b47565b60405180910390f35b6102966105b4565b6040516102a39190611c97565b60405180910390f35b6102b46105ba565b005b6102be6105ce565b6040516102cb9190611acc565b60405180910390f35b6102ee60048036038101906102e9919061173d565b6105f7565b6040516102fd93929190611cdb565b60405180910390f35b610320600480360381019061031b9190611890565b610621565b005b61032a61062e565b005b6103346106a1565b6040516103419190611bba565b60405180910390f35b6103526106c5565b60405161035f9190611c97565b60405180910390f35b610382600480360381019061037d919061181a565b6106cb565b005b61039e6004803603810190610399919061173d565b61079d565b005b6103ba60048036038101906103b5919061173d565b6109f8565b005b6103c4610a7c565b6040516103d19190611b69565b60405180910390f35b6000600154905090565b600063150b7a0260e01b9050949350505050565b60056020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60005b815181101561046e5761045b3383838151811061044e5761044d612143565b5b6020026020010151610a93565b80806104669061206d565b91505061042e565b5050565b600080600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600301546104c184610dab565b6104cb9190611dff565b905080915050919050565b6104df3361079d565b6104e93382610e6c565b50565b6000600354905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b6060600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000018054806020026020016040519081016040528092919081815260200182805480156105a857602002820191906000526020600020905b815481526020019060010190808311610594575b50505050509050919050565b60025481565b6105c261118e565b6105cc600061120c565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60046020528060005260406000206000915090508060010154908060020154908060030154905083565b61062b3382610a93565b50565b61063661118e565b600660009054906101000a900460ff161561067d576040517f91222bf800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b426002819055506001600660006101000a81548160ff021916908315150217905550565b7f000000000000000000000000000000000000000000000000000000000000000081565b60015481565b6106d43361079d565b60005b8151811015610799573373ffffffffffffffffffffffffffffffffffffffff166005600084848151811061070e5761070d612143565b5b6020026020010151815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610786576107853383838151811061077857610777612143565b5b6020026020010151610e6c565b5b80806107919061206d565b9150506106d7565b5050565b6000600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600301546107eb83610dab565b6107f59190611dff565b905060008111610831576040517fc71e759c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060030154600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010160008282546108c59190611dff565b925050819055506000600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206003018190555042600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600201819055506109a682827f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166112d09092919063ffffffff16565b8173ffffffffffffffffffffffffffffffffffffffff167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486826040516109ec9190611c97565b60405180910390a25050565b610a0061118e565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610a70576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a6790611bf7565b60405180910390fd5b610a798161120c565b50565b6000600660009054906101000a900460ff16905090565b600660009054906101000a900460ff16610ad9576040517fc5cdb61600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090503373ffffffffffffffffffffffffffffffffffffffff167f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16636352211e846040518263ffffffff1660e01b8152600401610b8c9190611c97565b60206040518083038186803b158015610ba457600080fd5b505afa158015610bb8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bdc919061176a565b73ffffffffffffffffffffffffffffffffffffffff1614610c29576040517ff8b769cc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600001829080600181540180825580915050600190039060005260206000200160009091909190915055826005600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166342842e0e8430856040518463ffffffff1660e01b8152600401610d0393929190611ae7565b600060405180830381600087803b158015610d1d57600080fd5b505af1158015610d31573d6000803e3d6000fd5b505050508273ffffffffffffffffffffffffffffffffffffffff167f1449c6dd7851abc30abf37f57715f492010519147cc2652fbc38202c18a6ee908342604051610d7d929190611cb2565b60405180910390a242816002018190555060016000815480929190610da19061206d565b9190505550505050565b6000610e10600354600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000180549050600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206002015442610e479190611ee0565b610e519190611e86565b610e5b9190611e86565b610e659190611e55565b9050919050565b8173ffffffffffffffffffffffffffffffffffffffff166005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610f04576040517f58ecabc500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600080600090505b8260000180549050811015610fa15783836000018281548110610f7557610f74612143565b5b90600052602060002001541415610f8e57809150610fa1565b8080610f999061206d565b915050610f4f565b5060008190505b60018360000180549050610fbc9190611ee0565b8110156110275782600001600182610fd49190611dff565b81548110610fe557610fe4612143565b5b906000526020600020015483600001828154811061100657611005612143565b5b9060005260206000200181905550808061101f9061206d565b915050610fa8565b508160000180548061103c5761103b612114565b5b600190038181906000526020600020016000905590556005600084815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690557f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166342842e0e3086866040518463ffffffff1660e01b81526004016110e593929190611ae7565b600060405180830381600087803b1580156110ff57600080fd5b505af1158015611113573d6000803e3d6000fd5b505050508373ffffffffffffffffffffffffffffffffffffffff167f7fc4727e062e336010f2c282598ef5f14facb3de68cf8195c2f23e1454b2b74e844260405161115f929190611cb2565b60405180910390a24282600201819055506001600081548092919061118390612012565b919050555050505050565b611196611356565b73ffffffffffffffffffffffffffffffffffffffff166111b46105ce565b73ffffffffffffffffffffffffffffffffffffffff161461120a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120190611c37565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6113518363a9059cbb60e01b84846040516024016112ef929190611b1e565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061135e565b505050565b600033905090565b60006113c0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166114259092919063ffffffff16565b905060008151111561142057808060200190518101906113e09190611863565b61141f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141690611c77565b60405180910390fd5b5b505050565b6060611434848460008561143d565b90509392505050565b606082471015611482576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161147990611c17565b60405180910390fd5b61148b85611551565b6114ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114c190611c57565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516114f39190611ab5565b60006040518083038185875af1925050503d8060008114611530576040519150601f19603f3d011682016040523d82523d6000602084013e611535565b606091505b5091509150611545828286611574565b92505050949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60608315611584578290506115d4565b6000835111156115975782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115cb9190611bd5565b60405180910390fd5b9392505050565b60006115ee6115e984611d37565b611d12565b90508083825260208201905082856020860282011115611611576116106121a6565b5b60005b8581101561164157816116278882611728565b845260208401935060208301925050600181019050611614565b5050509392505050565b600061165e61165984611d63565b611d12565b90508281526020810184848401111561167a576116796121ab565b5b611685848285611fd0565b509392505050565b60008135905061169c8161230a565b92915050565b6000815190506116b18161230a565b92915050565b600082601f8301126116cc576116cb6121a1565b5b81356116dc8482602086016115db565b91505092915050565b6000815190506116f481612321565b92915050565b600082601f83011261170f5761170e6121a1565b5b813561171f84826020860161164b565b91505092915050565b60008135905061173781612338565b92915050565b600060208284031215611753576117526121b5565b5b60006117618482850161168d565b91505092915050565b6000602082840312156117805761177f6121b5565b5b600061178e848285016116a2565b91505092915050565b600080600080608085870312156117b1576117b06121b5565b5b60006117bf8782880161168d565b94505060206117d08782880161168d565b93505060406117e187828801611728565b925050606085013567ffffffffffffffff811115611802576118016121b0565b5b61180e878288016116fa565b91505092959194509250565b6000602082840312156118305761182f6121b5565b5b600082013567ffffffffffffffff81111561184e5761184d6121b0565b5b61185a848285016116b7565b91505092915050565b600060208284031215611879576118786121b5565b5b6000611887848285016116e5565b91505092915050565b6000602082840312156118a6576118a56121b5565b5b60006118b484828501611728565b91505092915050565b60006118c98383611a97565b60208301905092915050565b6118de81611f14565b82525050565b60006118ef82611da4565b6118f98185611dd2565b935061190483611d94565b8060005b8381101561193557815161191c88826118bd565b975061192783611dc5565b925050600181019050611908565b5085935050505092915050565b61194b81611f26565b82525050565b61195a81611f32565b82525050565b600061196b82611daf565b6119758185611de3565b9350611985818560208601611fdf565b80840191505092915050565b61199a81611f88565b82525050565b6119a981611f9a565b82525050565b60006119ba82611dba565b6119c48185611dee565b93506119d4818560208601611fdf565b6119dd816121ba565b840191505092915050565b60006119f5602683611dee565b9150611a00826121cb565b604082019050919050565b6000611a18602683611dee565b9150611a238261221a565b604082019050919050565b6000611a3b602083611dee565b9150611a4682612269565b602082019050919050565b6000611a5e601d83611dee565b9150611a6982612292565b602082019050919050565b6000611a81602a83611dee565b9150611a8c826122bb565b604082019050919050565b611aa081611f7e565b82525050565b611aaf81611f7e565b82525050565b6000611ac18284611960565b915081905092915050565b6000602082019050611ae160008301846118d5565b92915050565b6000606082019050611afc60008301866118d5565b611b0960208301856118d5565b611b166040830184611aa6565b949350505050565b6000604082019050611b3360008301856118d5565b611b406020830184611aa6565b9392505050565b60006020820190508181036000830152611b6181846118e4565b905092915050565b6000602082019050611b7e6000830184611942565b92915050565b6000602082019050611b996000830184611951565b92915050565b6000602082019050611bb46000830184611991565b92915050565b6000602082019050611bcf60008301846119a0565b92915050565b60006020820190508181036000830152611bef81846119af565b905092915050565b60006020820190508181036000830152611c10816119e8565b9050919050565b60006020820190508181036000830152611c3081611a0b565b9050919050565b60006020820190508181036000830152611c5081611a2e565b9050919050565b60006020820190508181036000830152611c7081611a51565b9050919050565b60006020820190508181036000830152611c9081611a74565b9050919050565b6000602082019050611cac6000830184611aa6565b92915050565b6000604082019050611cc76000830185611aa6565b611cd46020830184611aa6565b9392505050565b6000606082019050611cf06000830186611aa6565b611cfd6020830185611aa6565b611d0a6040830184611aa6565b949350505050565b6000611d1c611d2d565b9050611d28828261203c565b919050565b6000604051905090565b600067ffffffffffffffff821115611d5257611d51612172565b5b602082029050602081019050919050565b600067ffffffffffffffff821115611d7e57611d7d612172565b5b611d87826121ba565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b6000611e0a82611f7e565b9150611e1583611f7e565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115611e4a57611e496120b6565b5b828201905092915050565b6000611e6082611f7e565b9150611e6b83611f7e565b925082611e7b57611e7a6120e5565b5b828204905092915050565b6000611e9182611f7e565b9150611e9c83611f7e565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615611ed557611ed46120b6565b5b828202905092915050565b6000611eeb82611f7e565b9150611ef683611f7e565b925082821015611f0957611f086120b6565b5b828203905092915050565b6000611f1f82611f5e565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000611f9382611fac565b9050919050565b6000611fa582611fac565b9050919050565b6000611fb782611fbe565b9050919050565b6000611fc982611f5e565b9050919050565b82818337600083830152505050565b60005b83811015611ffd578082015181840152602081019050611fe2565b8381111561200c576000848401525b50505050565b600061201d82611f7e565b91506000821415612031576120306120b6565b5b600182039050919050565b612045826121ba565b810181811067ffffffffffffffff8211171561206457612063612172565b5b80604052505050565b600061207882611f7e565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156120ab576120aa6120b6565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b61231381611f14565b811461231e57600080fd5b50565b61232a81611f26565b811461233557600080fd5b50565b61234181611f7e565b811461234c57600080fd5b5056fea2646970667358221220b208f8838f4671b09271dec0835bf67f4cc2e5c1f58ae50cce5ee1c2666e7f0164736f6c6343000807003300000000000000000000000073f1780cb2b5ce961601fdf6a9b002082bb82b4d00000000000000000000000065779771af5a99058c70c2c2c7ddbda35cfe3783
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101375760003560e01c8063715018a6116100b8578063d1af0c7d1161007c578063d1af0c7d1461032c578063d66692a71461034a578063e64a21f314610368578063ef5cfb8c14610384578063f2fde38b146103a0578063f3006b0d146103bc57610137565b8063715018a6146102ac5780638da5cb5b146102b65780639168ae72146102d4578063a694fc3a14610306578063b4efa66d1461032257610137565b80632e17de78116100ff5780632e17de78146102065780633e63c6f01461022257806347ccca021461024057806363c28db11461025e5780636abfd1831461028e57610137565b80630917e7761461013c578063150b7a021461015a5780631caaa4871461018a578063230f436d146101ba5780632bcf161c146101d6575b600080fd5b6101446103da565b6040516101519190611c97565b60405180910390f35b610174600480360381019061016f9190611797565b6103e4565b6040516101819190611b84565b60405180910390f35b6101a4600480360381019061019f9190611890565b6103f8565b6040516101b19190611acc565b60405180910390f35b6101d460048036038101906101cf919061181a565b61042b565b005b6101f060048036038101906101eb919061173d565b610472565b6040516101fd9190611c97565b60405180910390f35b610220600480360381019061021b9190611890565b6104d6565b005b61022a6104ec565b6040516102379190611c97565b60405180910390f35b6102486104f6565b6040516102559190611b9f565b60405180910390f35b6102786004803603810190610273919061173d565b61051a565b6040516102859190611b47565b60405180910390f35b6102966105b4565b6040516102a39190611c97565b60405180910390f35b6102b46105ba565b005b6102be6105ce565b6040516102cb9190611acc565b60405180910390f35b6102ee60048036038101906102e9919061173d565b6105f7565b6040516102fd93929190611cdb565b60405180910390f35b610320600480360381019061031b9190611890565b610621565b005b61032a61062e565b005b6103346106a1565b6040516103419190611bba565b60405180910390f35b6103526106c5565b60405161035f9190611c97565b60405180910390f35b610382600480360381019061037d919061181a565b6106cb565b005b61039e6004803603810190610399919061173d565b61079d565b005b6103ba60048036038101906103b5919061173d565b6109f8565b005b6103c4610a7c565b6040516103d19190611b69565b60405180910390f35b6000600154905090565b600063150b7a0260e01b9050949350505050565b60056020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60005b815181101561046e5761045b3383838151811061044e5761044d612143565b5b6020026020010151610a93565b80806104669061206d565b91505061042e565b5050565b600080600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600301546104c184610dab565b6104cb9190611dff565b905080915050919050565b6104df3361079d565b6104e93382610e6c565b50565b6000600354905090565b7f00000000000000000000000073f1780cb2b5ce961601fdf6a9b002082bb82b4d81565b6060600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000018054806020026020016040519081016040528092919081815260200182805480156105a857602002820191906000526020600020905b815481526020019060010190808311610594575b50505050509050919050565b60025481565b6105c261118e565b6105cc600061120c565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60046020528060005260406000206000915090508060010154908060020154908060030154905083565b61062b3382610a93565b50565b61063661118e565b600660009054906101000a900460ff161561067d576040517f91222bf800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b426002819055506001600660006101000a81548160ff021916908315150217905550565b7f00000000000000000000000065779771af5a99058c70c2c2c7ddbda35cfe378381565b60015481565b6106d43361079d565b60005b8151811015610799573373ffffffffffffffffffffffffffffffffffffffff166005600084848151811061070e5761070d612143565b5b6020026020010151815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610786576107853383838151811061077857610777612143565b5b6020026020010151610e6c565b5b80806107919061206d565b9150506106d7565b5050565b6000600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600301546107eb83610dab565b6107f59190611dff565b905060008111610831576040517fc71e759c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060030154600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010160008282546108c59190611dff565b925050819055506000600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206003018190555042600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600201819055506109a682827f00000000000000000000000065779771af5a99058c70c2c2c7ddbda35cfe378373ffffffffffffffffffffffffffffffffffffffff166112d09092919063ffffffff16565b8173ffffffffffffffffffffffffffffffffffffffff167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486826040516109ec9190611c97565b60405180910390a25050565b610a0061118e565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610a70576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a6790611bf7565b60405180910390fd5b610a798161120c565b50565b6000600660009054906101000a900460ff16905090565b600660009054906101000a900460ff16610ad9576040517fc5cdb61600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090503373ffffffffffffffffffffffffffffffffffffffff167f00000000000000000000000073f1780cb2b5ce961601fdf6a9b002082bb82b4d73ffffffffffffffffffffffffffffffffffffffff16636352211e846040518263ffffffff1660e01b8152600401610b8c9190611c97565b60206040518083038186803b158015610ba457600080fd5b505afa158015610bb8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bdc919061176a565b73ffffffffffffffffffffffffffffffffffffffff1614610c29576040517ff8b769cc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600001829080600181540180825580915050600190039060005260206000200160009091909190915055826005600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f00000000000000000000000073f1780cb2b5ce961601fdf6a9b002082bb82b4d73ffffffffffffffffffffffffffffffffffffffff166342842e0e8430856040518463ffffffff1660e01b8152600401610d0393929190611ae7565b600060405180830381600087803b158015610d1d57600080fd5b505af1158015610d31573d6000803e3d6000fd5b505050508273ffffffffffffffffffffffffffffffffffffffff167f1449c6dd7851abc30abf37f57715f492010519147cc2652fbc38202c18a6ee908342604051610d7d929190611cb2565b60405180910390a242816002018190555060016000815480929190610da19061206d565b9190505550505050565b6000610e10600354600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000180549050600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206002015442610e479190611ee0565b610e519190611e86565b610e5b9190611e86565b610e659190611e55565b9050919050565b8173ffffffffffffffffffffffffffffffffffffffff166005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610f04576040517f58ecabc500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600080600090505b8260000180549050811015610fa15783836000018281548110610f7557610f74612143565b5b90600052602060002001541415610f8e57809150610fa1565b8080610f999061206d565b915050610f4f565b5060008190505b60018360000180549050610fbc9190611ee0565b8110156110275782600001600182610fd49190611dff565b81548110610fe557610fe4612143565b5b906000526020600020015483600001828154811061100657611005612143565b5b9060005260206000200181905550808061101f9061206d565b915050610fa8565b508160000180548061103c5761103b612114565b5b600190038181906000526020600020016000905590556005600084815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690557f00000000000000000000000073f1780cb2b5ce961601fdf6a9b002082bb82b4d73ffffffffffffffffffffffffffffffffffffffff166342842e0e3086866040518463ffffffff1660e01b81526004016110e593929190611ae7565b600060405180830381600087803b1580156110ff57600080fd5b505af1158015611113573d6000803e3d6000fd5b505050508373ffffffffffffffffffffffffffffffffffffffff167f7fc4727e062e336010f2c282598ef5f14facb3de68cf8195c2f23e1454b2b74e844260405161115f929190611cb2565b60405180910390a24282600201819055506001600081548092919061118390612012565b919050555050505050565b611196611356565b73ffffffffffffffffffffffffffffffffffffffff166111b46105ce565b73ffffffffffffffffffffffffffffffffffffffff161461120a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120190611c37565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6113518363a9059cbb60e01b84846040516024016112ef929190611b1e565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061135e565b505050565b600033905090565b60006113c0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166114259092919063ffffffff16565b905060008151111561142057808060200190518101906113e09190611863565b61141f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141690611c77565b60405180910390fd5b5b505050565b6060611434848460008561143d565b90509392505050565b606082471015611482576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161147990611c17565b60405180910390fd5b61148b85611551565b6114ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114c190611c57565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516114f39190611ab5565b60006040518083038185875af1925050503d8060008114611530576040519150601f19603f3d011682016040523d82523d6000602084013e611535565b606091505b5091509150611545828286611574565b92505050949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60608315611584578290506115d4565b6000835111156115975782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115cb9190611bd5565b60405180910390fd5b9392505050565b60006115ee6115e984611d37565b611d12565b90508083825260208201905082856020860282011115611611576116106121a6565b5b60005b8581101561164157816116278882611728565b845260208401935060208301925050600181019050611614565b5050509392505050565b600061165e61165984611d63565b611d12565b90508281526020810184848401111561167a576116796121ab565b5b611685848285611fd0565b509392505050565b60008135905061169c8161230a565b92915050565b6000815190506116b18161230a565b92915050565b600082601f8301126116cc576116cb6121a1565b5b81356116dc8482602086016115db565b91505092915050565b6000815190506116f481612321565b92915050565b600082601f83011261170f5761170e6121a1565b5b813561171f84826020860161164b565b91505092915050565b60008135905061173781612338565b92915050565b600060208284031215611753576117526121b5565b5b60006117618482850161168d565b91505092915050565b6000602082840312156117805761177f6121b5565b5b600061178e848285016116a2565b91505092915050565b600080600080608085870312156117b1576117b06121b5565b5b60006117bf8782880161168d565b94505060206117d08782880161168d565b93505060406117e187828801611728565b925050606085013567ffffffffffffffff811115611802576118016121b0565b5b61180e878288016116fa565b91505092959194509250565b6000602082840312156118305761182f6121b5565b5b600082013567ffffffffffffffff81111561184e5761184d6121b0565b5b61185a848285016116b7565b91505092915050565b600060208284031215611879576118786121b5565b5b6000611887848285016116e5565b91505092915050565b6000602082840312156118a6576118a56121b5565b5b60006118b484828501611728565b91505092915050565b60006118c98383611a97565b60208301905092915050565b6118de81611f14565b82525050565b60006118ef82611da4565b6118f98185611dd2565b935061190483611d94565b8060005b8381101561193557815161191c88826118bd565b975061192783611dc5565b925050600181019050611908565b5085935050505092915050565b61194b81611f26565b82525050565b61195a81611f32565b82525050565b600061196b82611daf565b6119758185611de3565b9350611985818560208601611fdf565b80840191505092915050565b61199a81611f88565b82525050565b6119a981611f9a565b82525050565b60006119ba82611dba565b6119c48185611dee565b93506119d4818560208601611fdf565b6119dd816121ba565b840191505092915050565b60006119f5602683611dee565b9150611a00826121cb565b604082019050919050565b6000611a18602683611dee565b9150611a238261221a565b604082019050919050565b6000611a3b602083611dee565b9150611a4682612269565b602082019050919050565b6000611a5e601d83611dee565b9150611a6982612292565b602082019050919050565b6000611a81602a83611dee565b9150611a8c826122bb565b604082019050919050565b611aa081611f7e565b82525050565b611aaf81611f7e565b82525050565b6000611ac18284611960565b915081905092915050565b6000602082019050611ae160008301846118d5565b92915050565b6000606082019050611afc60008301866118d5565b611b0960208301856118d5565b611b166040830184611aa6565b949350505050565b6000604082019050611b3360008301856118d5565b611b406020830184611aa6565b9392505050565b60006020820190508181036000830152611b6181846118e4565b905092915050565b6000602082019050611b7e6000830184611942565b92915050565b6000602082019050611b996000830184611951565b92915050565b6000602082019050611bb46000830184611991565b92915050565b6000602082019050611bcf60008301846119a0565b92915050565b60006020820190508181036000830152611bef81846119af565b905092915050565b60006020820190508181036000830152611c10816119e8565b9050919050565b60006020820190508181036000830152611c3081611a0b565b9050919050565b60006020820190508181036000830152611c5081611a2e565b9050919050565b60006020820190508181036000830152611c7081611a51565b9050919050565b60006020820190508181036000830152611c9081611a74565b9050919050565b6000602082019050611cac6000830184611aa6565b92915050565b6000604082019050611cc76000830185611aa6565b611cd46020830184611aa6565b9392505050565b6000606082019050611cf06000830186611aa6565b611cfd6020830185611aa6565b611d0a6040830184611aa6565b949350505050565b6000611d1c611d2d565b9050611d28828261203c565b919050565b6000604051905090565b600067ffffffffffffffff821115611d5257611d51612172565b5b602082029050602081019050919050565b600067ffffffffffffffff821115611d7e57611d7d612172565b5b611d87826121ba565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b6000611e0a82611f7e565b9150611e1583611f7e565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115611e4a57611e496120b6565b5b828201905092915050565b6000611e6082611f7e565b9150611e6b83611f7e565b925082611e7b57611e7a6120e5565b5b828204905092915050565b6000611e9182611f7e565b9150611e9c83611f7e565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615611ed557611ed46120b6565b5b828202905092915050565b6000611eeb82611f7e565b9150611ef683611f7e565b925082821015611f0957611f086120b6565b5b828203905092915050565b6000611f1f82611f5e565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000611f9382611fac565b9050919050565b6000611fa582611fac565b9050919050565b6000611fb782611fbe565b9050919050565b6000611fc982611f5e565b9050919050565b82818337600083830152505050565b60005b83811015611ffd578082015181840152602081019050611fe2565b8381111561200c576000848401525b50505050565b600061201d82611f7e565b91506000821415612031576120306120b6565b5b600182039050919050565b612045826121ba565b810181811067ffffffffffffffff8211171561206457612063612172565b5b80604052505050565b600061207882611f7e565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156120ab576120aa6120b6565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b61231381611f14565b811461231e57600080fd5b50565b61232a81611f26565b811461233557600080fd5b50565b61234181611f7e565b811461234c57600080fd5b5056fea2646970667358221220b208f8838f4671b09271dec0835bf67f4cc2e5c1f58ae50cce5ee1c2666e7f0164736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000073f1780cb2b5ce961601fdf6a9b002082bb82b4d00000000000000000000000065779771af5a99058c70c2c2c7ddbda35cfe3783
-----Decoded View---------------
Arg [0] : _nft (address): 0x73F1780cB2b5cE961601fdf6a9B002082bb82b4d
Arg [1] : _rewardsToken (address): 0x65779771af5A99058C70C2c2C7ddBDA35CFE3783
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000073f1780cb2b5ce961601fdf6a9b002082bb82b4d
Arg [1] : 00000000000000000000000065779771af5a99058c70c2c2c7ddbda35cfe3783
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 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.