Feature Tip: Add private address tag to any address under My Name Tag !
Source Code
Latest 17 from a total of 17 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Claim Rewards | 24270760 | 18 days ago | IN | 0 ETH | 0.00000415 | ||||
| Unstake | 24270751 | 18 days ago | IN | 0 ETH | 0.00000629 | ||||
| Unstake | 24269137 | 18 days ago | IN | 0 ETH | 0.00000617 | ||||
| Claim Rewards | 24269104 | 18 days ago | IN | 0 ETH | 0.00000332 | ||||
| Unstake | 24264656 | 19 days ago | IN | 0 ETH | 0.00000224 | ||||
| Stake | 24264656 | 19 days ago | IN | 0 ETH | 0.00000465 | ||||
| Stake | 24264525 | 19 days ago | IN | 0 ETH | 0.00000889 | ||||
| Stake | 24262293 | 19 days ago | IN | 0 ETH | 0.00000483 | ||||
| Claim Rewards | 24242929 | 22 days ago | IN | 0 ETH | 0.00000364 | ||||
| Stake | 24142003 | 36 days ago | IN | 0 ETH | 0.00004651 | ||||
| Claim Rewards | 24134468 | 37 days ago | IN | 0 ETH | 0.00000421 | ||||
| Renounce Ownersh... | 24127466 | 38 days ago | IN | 0 ETH | 0.00000161 | ||||
| Claim Rewards | 24126688 | 38 days ago | IN | 0 ETH | 0.00000665 | ||||
| Claim Rewards | 24126314 | 38 days ago | IN | 0 ETH | 0.0000097 | ||||
| Stake | 24126240 | 38 days ago | IN | 0 ETH | 0.00004013 | ||||
| Set Reward Rate | 24126219 | 38 days ago | IN | 0 ETH | 0.00000565 | ||||
| Set Paused | 24126148 | 38 days ago | IN | 0 ETH | 0.0000016 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
NFTStaking
Compiler Version
v0.8.22+commit.4fc1097e
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.20;
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC1155/utils/ERC1155Holder.sol";
contract NFTStaking is Ownable, ReentrancyGuard, ERC1155Holder {
// Hardcoded token addresses
IERC1155 public immutable nftCollection;
IERC20 public immutable rewardToken;
// Staking parameters
uint256 public rewardRate = 10 * 10**18; // 10 tokens/day per NFT
uint256 public constant SECONDS_PER_DAY = 86400;
uint256 public totalStaked;
bool public paused = true;
struct Stake {
uint256 tokenId;
uint256 amount;
uint256 stakedAt;
}
mapping(address => Stake[]) public userStakes;
mapping(address => uint256) public rewards;
event Staked(address indexed user, uint256 tokenId, uint256 amount);
event Unstaked(address indexed user, uint256 tokenId, uint256 amount);
event RewardClaimed(address indexed user, uint256 amount);
event EmergencyWithdrawn(address indexed admin, uint256 tokenId, uint256 amount);
event RewardRateChanged(uint256 newRate);
event PauseStatusChanged(bool paused);
constructor(address _nftCollection, address _rewardToken) Ownable(msg.sender) {
// Исправленные проверки
require(_nftCollection != address(0), "NFT: zero address");
require(_rewardToken != address(0), "Token: zero address");
nftCollection = IERC1155(_nftCollection);
rewardToken = IERC20(_rewardToken);
}
function stake(uint256 tokenId, uint256 amount) external nonReentrant whenNotPaused {
require(amount > 0, "Amount > 0");
require(nftCollection.balanceOf(msg.sender, tokenId) >= amount, "Insufficient NFTs");
_updateRewards(msg.sender);
nftCollection.safeTransferFrom(msg.sender, address(this), tokenId, amount, "");
userStakes[msg.sender].push(Stake(tokenId, amount, block.timestamp));
totalStaked += amount;
emit Staked(msg.sender, tokenId, amount);
}
function unstake(uint256 index) external nonReentrant {
require(index < userStakes[msg.sender].length, "Invalid index");
Stake memory stakeInfo = userStakes[msg.sender][index];
_updateRewards(msg.sender);
nftCollection.safeTransferFrom(address(this), msg.sender, stakeInfo.tokenId, stakeInfo.amount, "");
totalStaked -= stakeInfo.amount;
_removeStake(msg.sender, index);
emit Unstaked(msg.sender, stakeInfo.tokenId, stakeInfo.amount);
}
function claimRewards() external nonReentrant {
_updateRewards(msg.sender);
uint256 reward = rewards[msg.sender];
require(reward > 0, "No rewards");
rewards[msg.sender] = 0;
require(rewardToken.transfer(msg.sender, reward), "Transfer failed");
emit RewardClaimed(msg.sender, reward);
}
// Admin functions
function setRewardRate(uint256 newRate) external onlyOwner {
require(newRate > 0, "Rate > 0");
rewardRate = newRate;
emit RewardRateChanged(newRate);
}
function setPaused(bool _paused) external onlyOwner {
paused = _paused;
emit PauseStatusChanged(_paused);
}
function emergencyWithdraw(uint256 tokenId, uint256 amount) external onlyOwner {
require(amount <= nftCollection.balanceOf(address(this), tokenId), "Exceeds balance");
nftCollection.safeTransferFrom(address(this), owner(), tokenId, amount, "");
emit EmergencyWithdrawn(msg.sender, tokenId, amount);
}
// View functions
function pendingRewards(address user) public view returns (uint256) {
uint256 pending = rewards[user];
for (uint256 i = 0; i < userStakes[user].length; i++) {
Stake memory s = userStakes[user][i];
uint256 stakedTime = block.timestamp - s.stakedAt;
pending += (s.amount * stakedTime * rewardRate) / SECONDS_PER_DAY;
}
return pending;
}
function getUserStakes(address user) public view returns (Stake[] memory) {
return userStakes[user];
}
// Internal functions
function _updateRewards(address user) internal {
uint256 newRewards;
Stake[] storage stakes = userStakes[user];
for (uint256 i = 0; i < stakes.length; i++) {
Stake storage s = stakes[i];
uint256 stakedTime = block.timestamp - s.stakedAt;
newRewards += (s.amount * stakedTime * rewardRate) / SECONDS_PER_DAY;
s.stakedAt = block.timestamp;
}
rewards[user] += newRewards;
}
function _removeStake(address user, uint256 index) internal {
Stake[] storage stakes = userStakes[user];
if (index < stakes.length - 1) {
stakes[index] = stakes[stakes.length - 1];
}
stakes.pop();
}
modifier whenNotPaused() {
require(!paused, "Contract paused");
_;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC1155/utils/ERC1155Holder.sol)
pragma solidity ^0.8.20;
import {IERC165, ERC165} from "../../../utils/introspection/ERC165.sol";
import {IERC1155Receiver} from "../IERC1155Receiver.sol";
/**
* @dev Simple implementation of `IERC1155Receiver` that will allow a contract to hold ERC-1155 tokens.
*
* IMPORTANT: When inheriting this contract, you must include a way to use the received tokens, otherwise they will be
* stuck.
*/
abstract contract ERC1155Holder is ERC165, IERC1155Receiver {
/// @inheritdoc IERC165
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
return interfaceId == type(IERC1155Receiver).interfaceId || super.supportsInterface(interfaceId);
}
function onERC1155Received(
address,
address,
uint256,
uint256,
bytes memory
) public virtual override returns (bytes4) {
return this.onERC1155Received.selector;
}
function onERC1155BatchReceived(
address,
address,
uint256[] memory,
uint256[] memory,
bytes memory
) public virtual override returns (bytes4) {
return this.onERC1155BatchReceived.selector;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
_nonReentrantBefore();
_;
_nonReentrantAfter();
}
function _nonReentrantBefore() private {
// On the first call to nonReentrant, _status will be _NOT_ENTERED
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
}
function _nonReentrantAfter() private {
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
/**
* @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
* `nonReentrant` function in the call stack.
*/
function _reentrancyGuardEntered() internal view returns (bool) {
return _status == _ENTERED;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)
pragma solidity ^0.8.20;
import {Context} from "../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.
*
* The initial owner is set to the address provided by the deployer. 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;
/**
* @dev The caller account is not authorized to perform an operation.
*/
error OwnableUnauthorizedAccount(address account);
/**
* @dev The owner is not a valid owner account. (eg. `address(0)`)
*/
error OwnableInvalidOwner(address owner);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the address provided by the deployer as the initial owner.
*/
constructor(address initialOwner) {
if (initialOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(initialOwner);
}
/**
* @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 {
if (owner() != _msgSender()) {
revert OwnableUnauthorizedAccount(_msgSender());
}
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling 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 {
if (newOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_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 (last updated v5.4.0) (token/ERC20/IERC20.sol)
pragma solidity >=0.4.16;
/**
* @dev Interface of the ERC-20 standard as defined in the ERC.
*/
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 value of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the value of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the
* allowance mechanism. `value` 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 value) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC1155/IERC1155.sol)
pragma solidity >=0.6.2;
import {IERC165} from "../../utils/introspection/IERC165.sol";
/**
* @dev Required interface of an ERC-1155 compliant contract, as defined in the
* https://eips.ethereum.org/EIPS/eip-1155[ERC].
*/
interface IERC1155 is IERC165 {
/**
* @dev Emitted when `value` amount of tokens of type `id` are transferred from `from` to `to` by `operator`.
*/
event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);
/**
* @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
* transfers.
*/
event TransferBatch(
address indexed operator,
address indexed from,
address indexed to,
uint256[] ids,
uint256[] values
);
/**
* @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
* `approved`.
*/
event ApprovalForAll(address indexed account, address indexed operator, bool approved);
/**
* @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
*
* If an {URI} event was emitted for `id`, the standard
* https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
* returned by {IERC1155MetadataURI-uri}.
*/
event URI(string value, uint256 indexed id);
/**
* @dev Returns the value of tokens of token type `id` owned by `account`.
*/
function balanceOf(address account, uint256 id) external view returns (uint256);
/**
* @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
*
* Requirements:
*
* - `accounts` and `ids` must have the same length.
*/
function balanceOfBatch(
address[] calldata accounts,
uint256[] calldata ids
) external view returns (uint256[] memory);
/**
* @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
*
* Emits an {ApprovalForAll} event.
*
* Requirements:
*
* - `operator` cannot be the zero address.
*/
function setApprovalForAll(address operator, bool approved) external;
/**
* @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
*
* See {setApprovalForAll}.
*/
function isApprovedForAll(address account, address operator) external view returns (bool);
/**
* @dev Transfers a `value` amount of tokens of type `id` from `from` to `to`.
*
* WARNING: This function can potentially allow a reentrancy attack when transferring tokens
* to an untrusted contract, when invoking {IERC1155Receiver-onERC1155Received} on the receiver.
* Ensure to follow the checks-effects-interactions pattern and consider employing
* reentrancy guards when interacting with untrusted contracts.
*
* Emits a {TransferSingle} event.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}.
* - `from` must have a balance of tokens of type `id` of at least `value` amount.
* - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
* acceptance magic value.
*/
function safeTransferFrom(address from, address to, uint256 id, uint256 value, bytes calldata data) external;
/**
* @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
*
* WARNING: This function can potentially allow a reentrancy attack when transferring tokens
* to an untrusted contract, when invoking {IERC1155Receiver-onERC1155BatchReceived} on the receiver.
* Ensure to follow the checks-effects-interactions pattern and consider employing
* reentrancy guards when interacting with untrusted contracts.
*
* Emits either a {TransferSingle} or a {TransferBatch} event, depending on the length of the array arguments.
*
* Requirements:
*
* - `ids` and `values` must have the same length.
* - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
* acceptance magic value.
*/
function safeBatchTransferFrom(
address from,
address to,
uint256[] calldata ids,
uint256[] calldata values,
bytes calldata data
) external;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC1155/IERC1155Receiver.sol)
pragma solidity >=0.6.2;
import {IERC165} from "../../utils/introspection/IERC165.sol";
/**
* @dev Interface that must be implemented by smart contracts in order to receive
* ERC-1155 token transfers.
*/
interface IERC1155Receiver is IERC165 {
/**
* @dev Handles the receipt of a single ERC-1155 token type. This function is
* called at the end of a `safeTransferFrom` after the balance has been updated.
*
* NOTE: To accept the transfer, this must return
* `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
* (i.e. 0xf23a6e61, or its own function selector).
*
* @param operator The address which initiated the transfer (i.e. msg.sender)
* @param from The address which previously owned the token
* @param id The ID of the token being transferred
* @param value The amount of tokens being transferred
* @param data Additional data with no specified format
* @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
*/
function onERC1155Received(
address operator,
address from,
uint256 id,
uint256 value,
bytes calldata data
) external returns (bytes4);
/**
* @dev Handles the receipt of a multiple ERC-1155 token types. This function
* is called at the end of a `safeBatchTransferFrom` after the balances have
* been updated.
*
* NOTE: To accept the transfer(s), this must return
* `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
* (i.e. 0xbc197c81, or its own function selector).
*
* @param operator The address which initiated the batch transfer (i.e. msg.sender)
* @param from The address which previously owned the token
* @param ids An array containing ids of each token being transferred (order and length must match values array)
* @param values An array containing amounts of each token being transferred (order and length must match ids array)
* @param data Additional data with no specified format
* @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
*/
function onERC1155BatchReceived(
address operator,
address from,
uint256[] calldata ids,
uint256[] calldata values,
bytes calldata data
) external returns (bytes4);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/ERC165.sol)
pragma solidity ^0.8.20;
import {IERC165} from "./IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC-165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*/
abstract contract ERC165 is IERC165 {
/// @inheritdoc IERC165
function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)
pragma solidity >=0.4.16;
/**
* @dev Interface of the ERC-165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[ERC].
*
* 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[ERC 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 v5.0.1) (utils/Context.sol)
pragma solidity ^0.8.20;
/**
* @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;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}{
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"remappings": []
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_nftCollection","type":"address"},{"internalType":"address","name":"_rewardToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"admin","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"paused","type":"bool"}],"name":"PauseStatusChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newRate","type":"uint256"}],"name":"RewardRateChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","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"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Unstaked","type":"event"},{"inputs":[],"name":"SECONDS_PER_DAY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getUserStakes","outputs":[{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"stakedAt","type":"uint256"}],"internalType":"struct NFTStaking.Stake[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftCollection","outputs":[{"internalType":"contract IERC1155","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155Received","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":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"pendingRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_paused","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newRate","type":"uint256"}],"name":"setRewardRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"userStakes","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"stakedAt","type":"uint256"}],"stateMutability":"view","type":"function"}]Contract Creation Code
60c0604052678ac7230489e80000600255600160045f6101000a81548160ff02191690831515021790555034801562000036575f80fd5b5060405162002adb38038062002adb83398181016040528101906200005c919062000361565b335f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603620000d0575f6040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401620000c79190620003b7565b60405180910390fd5b620000e1816200023b60201b60201c565b50600180819055505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036200015a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001519062000430565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603620001cb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001c2906200049e565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff16815250508073ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff16815250505050620004be565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6200032b8262000300565b9050919050565b6200033d816200031f565b811462000348575f80fd5b50565b5f815190506200035b8162000332565b92915050565b5f80604083850312156200037a5762000379620002fc565b5b5f62000389858286016200034b565b92505060206200039c858286016200034b565b9150509250929050565b620003b1816200031f565b82525050565b5f602082019050620003cc5f830184620003a6565b92915050565b5f82825260208201905092915050565b7f4e46543a207a65726f20616464726573730000000000000000000000000000005f82015250565b5f62000418601183620003d2565b91506200042582620003e2565b602082019050919050565b5f6020820190508181035f83015262000449816200040a565b9050919050565b7f546f6b656e3a207a65726f2061646472657373000000000000000000000000005f82015250565b5f62000486601383620003d2565b9150620004938262000450565b602082019050919050565b5f6020820190508181035f830152620004b78162000478565b9050919050565b60805160a0516125d16200050a5f395f8181610b5a015261125601525f8181610517015281816105f2015281816107f201528181610c9f01528181610d770152610e5a01526125d15ff3fe608060405234801561000f575f80fd5b5060043610610140575f3560e01c80637b0472f0116100b65780639e447fc61161007a5780639e447fc61461033c578063b5d5b5fa14610358578063bc197c811461038a578063f23a6e61146103ba578063f2fde38b146103ea578063f7c618c11461040657610140565b80637b0472f0146102965780637b0a47ee146102b2578063817b1cd2146102d0578063842e2981146102ee5780638da5cb5b1461031e57610140565b806331d7a2621161010857806331d7a262146101f8578063372500ab146102285780635c975abb146102325780636588103b14610250578063715018a61461026e57806374f0314f1461027857610140565b806301ffc9a7146101445780630700037d1461017457806316c38b3c146101a45780631f276b6e146101c05780632e17de78146101dc575b5f80fd5b61015e60048036038101906101599190611722565b610424565b60405161016b9190611767565b60405180910390f35b61018e600480360381019061018991906117da565b61049d565b60405161019b919061181d565b60405180910390f35b6101be60048036038101906101b99190611860565b6104b2565b005b6101da60048036038101906101d591906118b5565b61050d565b005b6101f660048036038101906101f191906118f3565b6106d7565b005b610212600480360381019061020d91906117da565b61090c565b60405161021f919061181d565b60405180910390f35b610230610a82565b005b61023a610c8b565b6040516102479190611767565b60405180910390f35b610258610c9d565b6040516102659190611979565b60405180910390f35b610276610cc1565b005b610280610cd4565b60405161028d919061181d565b60405180910390f35b6102b060048036038101906102ab91906118b5565b610cdb565b005b6102ba610ff4565b6040516102c7919061181d565b60405180910390f35b6102d8610ffa565b6040516102e5919061181d565b60405180910390f35b610308600480360381019061030391906117da565b611000565b6040516103159190611a89565b60405180910390f35b6103266110b6565b6040516103339190611ab8565b60405180910390f35b610356600480360381019061035191906118f3565b6110dd565b005b610372600480360381019061036d9190611ad1565b611168565b60405161038193929190611b0f565b60405180910390f35b6103a4600480360381019061039f9190611d44565b6111a8565b6040516103b19190611e1e565b60405180910390f35b6103d460048036038101906103cf9190611e37565b6111bc565b6040516103e19190611e1e565b60405180910390f35b61040460048036038101906103ff91906117da565b6111d0565b005b61040e611254565b60405161041b9190611eea565b60405180910390f35b5f7f4e2312e0000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610496575061049582611278565b5b9050919050565b6006602052805f5260405f205f915090505481565b6104ba6112e1565b8060045f6101000a81548160ff0219169083151502179055507fef37df9624f797913e7585c7f7b5d004ba6704be3c64b0561c157728ccc86985816040516105029190611767565b60405180910390a150565b6105156112e1565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1662fdd58e30846040518363ffffffff1660e01b815260040161056f929190611f03565b602060405180830381865afa15801561058a573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105ae9190611f3e565b8111156105f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105e790611fc3565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663f242432a306106356110b6565b85856040518563ffffffff1660e01b81526004016106569493929190612014565b5f604051808303815f87803b15801561066d575f80fd5b505af115801561067f573d5f803e3d5ffd5b505050503373ffffffffffffffffffffffffffffffffffffffff167fb47853100b79d8afa66237bdb4f7f09d96628ee23aa8aac8a8c21a901c67ddb283836040516106cb92919061206a565b60405180910390a25050565b6106df611368565b60055f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20805490508110610761576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610758906120db565b60405180910390fd5b5f60055f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2082815481106107b1576107b06120f9565b5b905f5260205f2090600302016040518060600160405290815f82015481526020016001820154815260200160028201548152505090506107f0336113b7565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663f242432a3033845f015185602001516040518563ffffffff1660e01b81526004016108569493929190612014565b5f604051808303815f87803b15801561086d575f80fd5b505af115801561087f573d5f803e3d5ffd5b50505050806020015160035f8282546108989190612153565b925050819055506108a933836114e4565b3373ffffffffffffffffffffffffffffffffffffffff167f7fc4727e062e336010f2c282598ef5f14facb3de68cf8195c2f23e1454b2b74e825f015183602001516040516108f892919061206a565b60405180910390a2506109096115eb565b50565b5f8060065f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490505f5b60055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2080549050811015610a78575f60055f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2082815481106109e8576109e76120f9565b5b905f5260205f2090600302016040518060600160405290815f82015481526020016001820154815260200160028201548152505090505f816040015142610a2f9190612153565b905062015180600254828460200151610a489190612186565b610a529190612186565b610a5c91906121f4565b84610a679190612224565b935050508080600101915050610950565b5080915050919050565b610a8a611368565b610a93336113b7565b5f60065f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490505f8111610b16576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b0d906122a1565b60405180910390fd5b5f60065f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401610bb3929190611f03565b6020604051808303815f875af1158015610bcf573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610bf391906122d3565b610c32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c2990612348565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff167f106f923f993c2149d49b4255ff723acafa1f2d94393f561d3eda32ae348f724182604051610c78919061181d565b60405180910390a250610c896115eb565b565b60045f9054906101000a900460ff1681565b7f000000000000000000000000000000000000000000000000000000000000000081565b610cc96112e1565b610cd25f6115f4565b565b6201518081565b610ce3611368565b60045f9054906101000a900460ff1615610d32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d29906123b0565b60405180910390fd5b5f8111610d74576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6b90612418565b60405180910390fd5b807f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1662fdd58e33856040518363ffffffff1660e01b8152600401610dcf929190611f03565b602060405180830381865afa158015610dea573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e0e9190611f3e565b1015610e4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4690612480565b60405180910390fd5b610e58336113b7565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663f242432a333085856040518563ffffffff1660e01b8152600401610eb79493929190612014565b5f604051808303815f87803b158015610ece575f80fd5b505af1158015610ee0573d5f803e3d5ffd5b5050505060055f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20604051806060016040528084815260200183815260200142815250908060018154018082558091505060019003905f5260205f2090600302015f909190919091505f820151815f0155602082015181600101556040820151816002015550508060035f828254610f919190612224565b925050819055503373ffffffffffffffffffffffffffffffffffffffff167f1449c6dd7851abc30abf37f57715f492010519147cc2652fbc38202c18a6ee908383604051610fe092919061206a565b60405180910390a2610ff06115eb565b5050565b60025481565b60035481565b606060055f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20805480602002602001604051908101604052809291908181526020015f905b828210156110ab578382905f5260205f2090600302016040518060600160405290815f8201548152602001600182015481526020016002820154815250508152602001906001019061105e565b505050509050919050565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6110e56112e1565b5f8111611127576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161111e906124e8565b60405180910390fd5b806002819055507f1e3be2efa25bca5bff2215c7b30b31086e703d6aa7d9b9a1f8ba62c5291219ad8160405161115d919061181d565b60405180910390a150565b6005602052815f5260405f208181548110611181575f80fd5b905f5260205f2090600302015f9150915050805f0154908060010154908060020154905083565b5f63bc197c8160e01b905095945050505050565b5f63f23a6e6160e01b905095945050505050565b6111d86112e1565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611248575f6040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040161123f9190611ab8565b60405180910390fd5b611251816115f4565b50565b7f000000000000000000000000000000000000000000000000000000000000000081565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6112e96116b5565b73ffffffffffffffffffffffffffffffffffffffff166113076110b6565b73ffffffffffffffffffffffffffffffffffffffff16146113665761132a6116b5565b6040517f118cdaa700000000000000000000000000000000000000000000000000000000815260040161135d9190611ab8565b60405180910390fd5b565b6002600154036113ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113a490612550565b60405180910390fd5b6002600181905550565b5f8060055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2090505f5b818054905081101561148b575f82828154811061141a576114196120f9565b5b905f5260205f20906003020190505f8160020154426114399190612153565b9050620151806002548284600101546114529190612186565b61145c9190612186565b61146691906121f4565b856114719190612224565b9450428260020181905550505080806001019150506113fa565b508160065f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546114d89190612224565b92505081905550505050565b5f60055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f209050600181805490506115359190612153565b8210156115aa57806001828054905061154e9190612153565b8154811061155f5761155e6120f9565b5b905f5260205f20906003020181838154811061157e5761157d6120f9565b5b905f5260205f2090600302015f820154815f015560018201548160010155600282015481600201559050505b808054806115bb576115ba61256e565b5b600190038181905f5260205f2090600302015f8082015f9055600182015f9055600282015f905550509055505050565b60018081905550565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f33905090565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611701816116cd565b811461170b575f80fd5b50565b5f8135905061171c816116f8565b92915050565b5f60208284031215611737576117366116c5565b5b5f6117448482850161170e565b91505092915050565b5f8115159050919050565b6117618161174d565b82525050565b5f60208201905061177a5f830184611758565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6117a982611780565b9050919050565b6117b98161179f565b81146117c3575f80fd5b50565b5f813590506117d4816117b0565b92915050565b5f602082840312156117ef576117ee6116c5565b5b5f6117fc848285016117c6565b91505092915050565b5f819050919050565b61181781611805565b82525050565b5f6020820190506118305f83018461180e565b92915050565b61183f8161174d565b8114611849575f80fd5b50565b5f8135905061185a81611836565b92915050565b5f60208284031215611875576118746116c5565b5b5f6118828482850161184c565b91505092915050565b61189481611805565b811461189e575f80fd5b50565b5f813590506118af8161188b565b92915050565b5f80604083850312156118cb576118ca6116c5565b5b5f6118d8858286016118a1565b92505060206118e9858286016118a1565b9150509250929050565b5f60208284031215611908576119076116c5565b5b5f611915848285016118a1565b91505092915050565b5f819050919050565b5f61194161193c61193784611780565b61191e565b611780565b9050919050565b5f61195282611927565b9050919050565b5f61196382611948565b9050919050565b61197381611959565b82525050565b5f60208201905061198c5f83018461196a565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b6119c481611805565b82525050565b606082015f8201516119de5f8501826119bb565b5060208201516119f160208501826119bb565b506040820151611a0460408501826119bb565b50505050565b5f611a1583836119ca565b60608301905092915050565b5f602082019050919050565b5f611a3782611992565b611a41818561199c565b9350611a4c836119ac565b805f5b83811015611a7c578151611a638882611a0a565b9750611a6e83611a21565b925050600181019050611a4f565b5085935050505092915050565b5f6020820190508181035f830152611aa18184611a2d565b905092915050565b611ab28161179f565b82525050565b5f602082019050611acb5f830184611aa9565b92915050565b5f8060408385031215611ae757611ae66116c5565b5b5f611af4858286016117c6565b9250506020611b05858286016118a1565b9150509250929050565b5f606082019050611b225f83018661180e565b611b2f602083018561180e565b611b3c604083018461180e565b949350505050565b5f80fd5b5f601f19601f8301169050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b611b8e82611b48565b810181811067ffffffffffffffff82111715611bad57611bac611b58565b5b80604052505050565b5f611bbf6116bc565b9050611bcb8282611b85565b919050565b5f67ffffffffffffffff821115611bea57611be9611b58565b5b602082029050602081019050919050565b5f80fd5b5f611c11611c0c84611bd0565b611bb6565b90508083825260208201905060208402830185811115611c3457611c33611bfb565b5b835b81811015611c5d5780611c4988826118a1565b845260208401935050602081019050611c36565b5050509392505050565b5f82601f830112611c7b57611c7a611b44565b5b8135611c8b848260208601611bff565b91505092915050565b5f80fd5b5f67ffffffffffffffff821115611cb257611cb1611b58565b5b611cbb82611b48565b9050602081019050919050565b828183375f83830152505050565b5f611ce8611ce384611c98565b611bb6565b905082815260208101848484011115611d0457611d03611c94565b5b611d0f848285611cc8565b509392505050565b5f82601f830112611d2b57611d2a611b44565b5b8135611d3b848260208601611cd6565b91505092915050565b5f805f805f60a08688031215611d5d57611d5c6116c5565b5b5f611d6a888289016117c6565b9550506020611d7b888289016117c6565b945050604086013567ffffffffffffffff811115611d9c57611d9b6116c9565b5b611da888828901611c67565b935050606086013567ffffffffffffffff811115611dc957611dc86116c9565b5b611dd588828901611c67565b925050608086013567ffffffffffffffff811115611df657611df56116c9565b5b611e0288828901611d17565b9150509295509295909350565b611e18816116cd565b82525050565b5f602082019050611e315f830184611e0f565b92915050565b5f805f805f60a08688031215611e5057611e4f6116c5565b5b5f611e5d888289016117c6565b9550506020611e6e888289016117c6565b9450506040611e7f888289016118a1565b9350506060611e90888289016118a1565b925050608086013567ffffffffffffffff811115611eb157611eb06116c9565b5b611ebd88828901611d17565b9150509295509295909350565b5f611ed482611948565b9050919050565b611ee481611eca565b82525050565b5f602082019050611efd5f830184611edb565b92915050565b5f604082019050611f165f830185611aa9565b611f23602083018461180e565b9392505050565b5f81519050611f388161188b565b92915050565b5f60208284031215611f5357611f526116c5565b5b5f611f6084828501611f2a565b91505092915050565b5f82825260208201905092915050565b7f457863656564732062616c616e636500000000000000000000000000000000005f82015250565b5f611fad600f83611f69565b9150611fb882611f79565b602082019050919050565b5f6020820190508181035f830152611fda81611fa1565b9050919050565b5f82825260208201905092915050565b50565b5f611fff5f83611fe1565b915061200a82611ff1565b5f82019050919050565b5f60a0820190506120275f830187611aa9565b6120346020830186611aa9565b612041604083018561180e565b61204e606083018461180e565b818103608083015261205f81611ff4565b905095945050505050565b5f60408201905061207d5f83018561180e565b61208a602083018461180e565b9392505050565b7f496e76616c696420696e646578000000000000000000000000000000000000005f82015250565b5f6120c5600d83611f69565b91506120d082612091565b602082019050919050565b5f6020820190508181035f8301526120f2816120b9565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61215d82611805565b915061216883611805565b92508282039050818111156121805761217f612126565b5b92915050565b5f61219082611805565b915061219b83611805565b92508282026121a981611805565b915082820484148315176121c0576121bf612126565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f6121fe82611805565b915061220983611805565b925082612219576122186121c7565b5b828204905092915050565b5f61222e82611805565b915061223983611805565b925082820190508082111561225157612250612126565b5b92915050565b7f4e6f2072657761726473000000000000000000000000000000000000000000005f82015250565b5f61228b600a83611f69565b915061229682612257565b602082019050919050565b5f6020820190508181035f8301526122b88161227f565b9050919050565b5f815190506122cd81611836565b92915050565b5f602082840312156122e8576122e76116c5565b5b5f6122f5848285016122bf565b91505092915050565b7f5472616e73666572206661696c656400000000000000000000000000000000005f82015250565b5f612332600f83611f69565b915061233d826122fe565b602082019050919050565b5f6020820190508181035f83015261235f81612326565b9050919050565b7f436f6e74726163742070617573656400000000000000000000000000000000005f82015250565b5f61239a600f83611f69565b91506123a582612366565b602082019050919050565b5f6020820190508181035f8301526123c78161238e565b9050919050565b7f416d6f756e74203e2030000000000000000000000000000000000000000000005f82015250565b5f612402600a83611f69565b915061240d826123ce565b602082019050919050565b5f6020820190508181035f83015261242f816123f6565b9050919050565b7f496e73756666696369656e74204e4654730000000000000000000000000000005f82015250565b5f61246a601183611f69565b915061247582612436565b602082019050919050565b5f6020820190508181035f8301526124978161245e565b9050919050565b7f52617465203e20300000000000000000000000000000000000000000000000005f82015250565b5f6124d2600883611f69565b91506124dd8261249e565b602082019050919050565b5f6020820190508181035f8301526124ff816124c6565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c005f82015250565b5f61253a601f83611f69565b915061254582612506565b602082019050919050565b5f6020820190508181035f8301526125678161252e565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603160045260245ffdfea26469706673582212209b3143b3af842070bf4090199111153686d7f9320101400f83225a57b88751df64736f6c63430008160033000000000000000000000000c8b2276d2b6814ca79aa81cdeccb6d65a684b5010000000000000000000000008bfb4cedd7776af70e61740ab8d44f8643e55b30
Deployed Bytecode
0x608060405234801561000f575f80fd5b5060043610610140575f3560e01c80637b0472f0116100b65780639e447fc61161007a5780639e447fc61461033c578063b5d5b5fa14610358578063bc197c811461038a578063f23a6e61146103ba578063f2fde38b146103ea578063f7c618c11461040657610140565b80637b0472f0146102965780637b0a47ee146102b2578063817b1cd2146102d0578063842e2981146102ee5780638da5cb5b1461031e57610140565b806331d7a2621161010857806331d7a262146101f8578063372500ab146102285780635c975abb146102325780636588103b14610250578063715018a61461026e57806374f0314f1461027857610140565b806301ffc9a7146101445780630700037d1461017457806316c38b3c146101a45780631f276b6e146101c05780632e17de78146101dc575b5f80fd5b61015e60048036038101906101599190611722565b610424565b60405161016b9190611767565b60405180910390f35b61018e600480360381019061018991906117da565b61049d565b60405161019b919061181d565b60405180910390f35b6101be60048036038101906101b99190611860565b6104b2565b005b6101da60048036038101906101d591906118b5565b61050d565b005b6101f660048036038101906101f191906118f3565b6106d7565b005b610212600480360381019061020d91906117da565b61090c565b60405161021f919061181d565b60405180910390f35b610230610a82565b005b61023a610c8b565b6040516102479190611767565b60405180910390f35b610258610c9d565b6040516102659190611979565b60405180910390f35b610276610cc1565b005b610280610cd4565b60405161028d919061181d565b60405180910390f35b6102b060048036038101906102ab91906118b5565b610cdb565b005b6102ba610ff4565b6040516102c7919061181d565b60405180910390f35b6102d8610ffa565b6040516102e5919061181d565b60405180910390f35b610308600480360381019061030391906117da565b611000565b6040516103159190611a89565b60405180910390f35b6103266110b6565b6040516103339190611ab8565b60405180910390f35b610356600480360381019061035191906118f3565b6110dd565b005b610372600480360381019061036d9190611ad1565b611168565b60405161038193929190611b0f565b60405180910390f35b6103a4600480360381019061039f9190611d44565b6111a8565b6040516103b19190611e1e565b60405180910390f35b6103d460048036038101906103cf9190611e37565b6111bc565b6040516103e19190611e1e565b60405180910390f35b61040460048036038101906103ff91906117da565b6111d0565b005b61040e611254565b60405161041b9190611eea565b60405180910390f35b5f7f4e2312e0000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610496575061049582611278565b5b9050919050565b6006602052805f5260405f205f915090505481565b6104ba6112e1565b8060045f6101000a81548160ff0219169083151502179055507fef37df9624f797913e7585c7f7b5d004ba6704be3c64b0561c157728ccc86985816040516105029190611767565b60405180910390a150565b6105156112e1565b7f000000000000000000000000c8b2276d2b6814ca79aa81cdeccb6d65a684b50173ffffffffffffffffffffffffffffffffffffffff1662fdd58e30846040518363ffffffff1660e01b815260040161056f929190611f03565b602060405180830381865afa15801561058a573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105ae9190611f3e565b8111156105f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105e790611fc3565b60405180910390fd5b7f000000000000000000000000c8b2276d2b6814ca79aa81cdeccb6d65a684b50173ffffffffffffffffffffffffffffffffffffffff1663f242432a306106356110b6565b85856040518563ffffffff1660e01b81526004016106569493929190612014565b5f604051808303815f87803b15801561066d575f80fd5b505af115801561067f573d5f803e3d5ffd5b505050503373ffffffffffffffffffffffffffffffffffffffff167fb47853100b79d8afa66237bdb4f7f09d96628ee23aa8aac8a8c21a901c67ddb283836040516106cb92919061206a565b60405180910390a25050565b6106df611368565b60055f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20805490508110610761576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610758906120db565b60405180910390fd5b5f60055f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2082815481106107b1576107b06120f9565b5b905f5260205f2090600302016040518060600160405290815f82015481526020016001820154815260200160028201548152505090506107f0336113b7565b7f000000000000000000000000c8b2276d2b6814ca79aa81cdeccb6d65a684b50173ffffffffffffffffffffffffffffffffffffffff1663f242432a3033845f015185602001516040518563ffffffff1660e01b81526004016108569493929190612014565b5f604051808303815f87803b15801561086d575f80fd5b505af115801561087f573d5f803e3d5ffd5b50505050806020015160035f8282546108989190612153565b925050819055506108a933836114e4565b3373ffffffffffffffffffffffffffffffffffffffff167f7fc4727e062e336010f2c282598ef5f14facb3de68cf8195c2f23e1454b2b74e825f015183602001516040516108f892919061206a565b60405180910390a2506109096115eb565b50565b5f8060065f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490505f5b60055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2080549050811015610a78575f60055f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2082815481106109e8576109e76120f9565b5b905f5260205f2090600302016040518060600160405290815f82015481526020016001820154815260200160028201548152505090505f816040015142610a2f9190612153565b905062015180600254828460200151610a489190612186565b610a529190612186565b610a5c91906121f4565b84610a679190612224565b935050508080600101915050610950565b5080915050919050565b610a8a611368565b610a93336113b7565b5f60065f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490505f8111610b16576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b0d906122a1565b60405180910390fd5b5f60065f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055507f0000000000000000000000008bfb4cedd7776af70e61740ab8d44f8643e55b3073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401610bb3929190611f03565b6020604051808303815f875af1158015610bcf573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610bf391906122d3565b610c32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c2990612348565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff167f106f923f993c2149d49b4255ff723acafa1f2d94393f561d3eda32ae348f724182604051610c78919061181d565b60405180910390a250610c896115eb565b565b60045f9054906101000a900460ff1681565b7f000000000000000000000000c8b2276d2b6814ca79aa81cdeccb6d65a684b50181565b610cc96112e1565b610cd25f6115f4565b565b6201518081565b610ce3611368565b60045f9054906101000a900460ff1615610d32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d29906123b0565b60405180910390fd5b5f8111610d74576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6b90612418565b60405180910390fd5b807f000000000000000000000000c8b2276d2b6814ca79aa81cdeccb6d65a684b50173ffffffffffffffffffffffffffffffffffffffff1662fdd58e33856040518363ffffffff1660e01b8152600401610dcf929190611f03565b602060405180830381865afa158015610dea573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e0e9190611f3e565b1015610e4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4690612480565b60405180910390fd5b610e58336113b7565b7f000000000000000000000000c8b2276d2b6814ca79aa81cdeccb6d65a684b50173ffffffffffffffffffffffffffffffffffffffff1663f242432a333085856040518563ffffffff1660e01b8152600401610eb79493929190612014565b5f604051808303815f87803b158015610ece575f80fd5b505af1158015610ee0573d5f803e3d5ffd5b5050505060055f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20604051806060016040528084815260200183815260200142815250908060018154018082558091505060019003905f5260205f2090600302015f909190919091505f820151815f0155602082015181600101556040820151816002015550508060035f828254610f919190612224565b925050819055503373ffffffffffffffffffffffffffffffffffffffff167f1449c6dd7851abc30abf37f57715f492010519147cc2652fbc38202c18a6ee908383604051610fe092919061206a565b60405180910390a2610ff06115eb565b5050565b60025481565b60035481565b606060055f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20805480602002602001604051908101604052809291908181526020015f905b828210156110ab578382905f5260205f2090600302016040518060600160405290815f8201548152602001600182015481526020016002820154815250508152602001906001019061105e565b505050509050919050565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6110e56112e1565b5f8111611127576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161111e906124e8565b60405180910390fd5b806002819055507f1e3be2efa25bca5bff2215c7b30b31086e703d6aa7d9b9a1f8ba62c5291219ad8160405161115d919061181d565b60405180910390a150565b6005602052815f5260405f208181548110611181575f80fd5b905f5260205f2090600302015f9150915050805f0154908060010154908060020154905083565b5f63bc197c8160e01b905095945050505050565b5f63f23a6e6160e01b905095945050505050565b6111d86112e1565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611248575f6040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040161123f9190611ab8565b60405180910390fd5b611251816115f4565b50565b7f0000000000000000000000008bfb4cedd7776af70e61740ab8d44f8643e55b3081565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6112e96116b5565b73ffffffffffffffffffffffffffffffffffffffff166113076110b6565b73ffffffffffffffffffffffffffffffffffffffff16146113665761132a6116b5565b6040517f118cdaa700000000000000000000000000000000000000000000000000000000815260040161135d9190611ab8565b60405180910390fd5b565b6002600154036113ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113a490612550565b60405180910390fd5b6002600181905550565b5f8060055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2090505f5b818054905081101561148b575f82828154811061141a576114196120f9565b5b905f5260205f20906003020190505f8160020154426114399190612153565b9050620151806002548284600101546114529190612186565b61145c9190612186565b61146691906121f4565b856114719190612224565b9450428260020181905550505080806001019150506113fa565b508160065f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546114d89190612224565b92505081905550505050565b5f60055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f209050600181805490506115359190612153565b8210156115aa57806001828054905061154e9190612153565b8154811061155f5761155e6120f9565b5b905f5260205f20906003020181838154811061157e5761157d6120f9565b5b905f5260205f2090600302015f820154815f015560018201548160010155600282015481600201559050505b808054806115bb576115ba61256e565b5b600190038181905f5260205f2090600302015f8082015f9055600182015f9055600282015f905550509055505050565b60018081905550565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f33905090565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611701816116cd565b811461170b575f80fd5b50565b5f8135905061171c816116f8565b92915050565b5f60208284031215611737576117366116c5565b5b5f6117448482850161170e565b91505092915050565b5f8115159050919050565b6117618161174d565b82525050565b5f60208201905061177a5f830184611758565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6117a982611780565b9050919050565b6117b98161179f565b81146117c3575f80fd5b50565b5f813590506117d4816117b0565b92915050565b5f602082840312156117ef576117ee6116c5565b5b5f6117fc848285016117c6565b91505092915050565b5f819050919050565b61181781611805565b82525050565b5f6020820190506118305f83018461180e565b92915050565b61183f8161174d565b8114611849575f80fd5b50565b5f8135905061185a81611836565b92915050565b5f60208284031215611875576118746116c5565b5b5f6118828482850161184c565b91505092915050565b61189481611805565b811461189e575f80fd5b50565b5f813590506118af8161188b565b92915050565b5f80604083850312156118cb576118ca6116c5565b5b5f6118d8858286016118a1565b92505060206118e9858286016118a1565b9150509250929050565b5f60208284031215611908576119076116c5565b5b5f611915848285016118a1565b91505092915050565b5f819050919050565b5f61194161193c61193784611780565b61191e565b611780565b9050919050565b5f61195282611927565b9050919050565b5f61196382611948565b9050919050565b61197381611959565b82525050565b5f60208201905061198c5f83018461196a565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b6119c481611805565b82525050565b606082015f8201516119de5f8501826119bb565b5060208201516119f160208501826119bb565b506040820151611a0460408501826119bb565b50505050565b5f611a1583836119ca565b60608301905092915050565b5f602082019050919050565b5f611a3782611992565b611a41818561199c565b9350611a4c836119ac565b805f5b83811015611a7c578151611a638882611a0a565b9750611a6e83611a21565b925050600181019050611a4f565b5085935050505092915050565b5f6020820190508181035f830152611aa18184611a2d565b905092915050565b611ab28161179f565b82525050565b5f602082019050611acb5f830184611aa9565b92915050565b5f8060408385031215611ae757611ae66116c5565b5b5f611af4858286016117c6565b9250506020611b05858286016118a1565b9150509250929050565b5f606082019050611b225f83018661180e565b611b2f602083018561180e565b611b3c604083018461180e565b949350505050565b5f80fd5b5f601f19601f8301169050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b611b8e82611b48565b810181811067ffffffffffffffff82111715611bad57611bac611b58565b5b80604052505050565b5f611bbf6116bc565b9050611bcb8282611b85565b919050565b5f67ffffffffffffffff821115611bea57611be9611b58565b5b602082029050602081019050919050565b5f80fd5b5f611c11611c0c84611bd0565b611bb6565b90508083825260208201905060208402830185811115611c3457611c33611bfb565b5b835b81811015611c5d5780611c4988826118a1565b845260208401935050602081019050611c36565b5050509392505050565b5f82601f830112611c7b57611c7a611b44565b5b8135611c8b848260208601611bff565b91505092915050565b5f80fd5b5f67ffffffffffffffff821115611cb257611cb1611b58565b5b611cbb82611b48565b9050602081019050919050565b828183375f83830152505050565b5f611ce8611ce384611c98565b611bb6565b905082815260208101848484011115611d0457611d03611c94565b5b611d0f848285611cc8565b509392505050565b5f82601f830112611d2b57611d2a611b44565b5b8135611d3b848260208601611cd6565b91505092915050565b5f805f805f60a08688031215611d5d57611d5c6116c5565b5b5f611d6a888289016117c6565b9550506020611d7b888289016117c6565b945050604086013567ffffffffffffffff811115611d9c57611d9b6116c9565b5b611da888828901611c67565b935050606086013567ffffffffffffffff811115611dc957611dc86116c9565b5b611dd588828901611c67565b925050608086013567ffffffffffffffff811115611df657611df56116c9565b5b611e0288828901611d17565b9150509295509295909350565b611e18816116cd565b82525050565b5f602082019050611e315f830184611e0f565b92915050565b5f805f805f60a08688031215611e5057611e4f6116c5565b5b5f611e5d888289016117c6565b9550506020611e6e888289016117c6565b9450506040611e7f888289016118a1565b9350506060611e90888289016118a1565b925050608086013567ffffffffffffffff811115611eb157611eb06116c9565b5b611ebd88828901611d17565b9150509295509295909350565b5f611ed482611948565b9050919050565b611ee481611eca565b82525050565b5f602082019050611efd5f830184611edb565b92915050565b5f604082019050611f165f830185611aa9565b611f23602083018461180e565b9392505050565b5f81519050611f388161188b565b92915050565b5f60208284031215611f5357611f526116c5565b5b5f611f6084828501611f2a565b91505092915050565b5f82825260208201905092915050565b7f457863656564732062616c616e636500000000000000000000000000000000005f82015250565b5f611fad600f83611f69565b9150611fb882611f79565b602082019050919050565b5f6020820190508181035f830152611fda81611fa1565b9050919050565b5f82825260208201905092915050565b50565b5f611fff5f83611fe1565b915061200a82611ff1565b5f82019050919050565b5f60a0820190506120275f830187611aa9565b6120346020830186611aa9565b612041604083018561180e565b61204e606083018461180e565b818103608083015261205f81611ff4565b905095945050505050565b5f60408201905061207d5f83018561180e565b61208a602083018461180e565b9392505050565b7f496e76616c696420696e646578000000000000000000000000000000000000005f82015250565b5f6120c5600d83611f69565b91506120d082612091565b602082019050919050565b5f6020820190508181035f8301526120f2816120b9565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61215d82611805565b915061216883611805565b92508282039050818111156121805761217f612126565b5b92915050565b5f61219082611805565b915061219b83611805565b92508282026121a981611805565b915082820484148315176121c0576121bf612126565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f6121fe82611805565b915061220983611805565b925082612219576122186121c7565b5b828204905092915050565b5f61222e82611805565b915061223983611805565b925082820190508082111561225157612250612126565b5b92915050565b7f4e6f2072657761726473000000000000000000000000000000000000000000005f82015250565b5f61228b600a83611f69565b915061229682612257565b602082019050919050565b5f6020820190508181035f8301526122b88161227f565b9050919050565b5f815190506122cd81611836565b92915050565b5f602082840312156122e8576122e76116c5565b5b5f6122f5848285016122bf565b91505092915050565b7f5472616e73666572206661696c656400000000000000000000000000000000005f82015250565b5f612332600f83611f69565b915061233d826122fe565b602082019050919050565b5f6020820190508181035f83015261235f81612326565b9050919050565b7f436f6e74726163742070617573656400000000000000000000000000000000005f82015250565b5f61239a600f83611f69565b91506123a582612366565b602082019050919050565b5f6020820190508181035f8301526123c78161238e565b9050919050565b7f416d6f756e74203e2030000000000000000000000000000000000000000000005f82015250565b5f612402600a83611f69565b915061240d826123ce565b602082019050919050565b5f6020820190508181035f83015261242f816123f6565b9050919050565b7f496e73756666696369656e74204e4654730000000000000000000000000000005f82015250565b5f61246a601183611f69565b915061247582612436565b602082019050919050565b5f6020820190508181035f8301526124978161245e565b9050919050565b7f52617465203e20300000000000000000000000000000000000000000000000005f82015250565b5f6124d2600883611f69565b91506124dd8261249e565b602082019050919050565b5f6020820190508181035f8301526124ff816124c6565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c005f82015250565b5f61253a601f83611f69565b915061254582612506565b602082019050919050565b5f6020820190508181035f8301526125678161252e565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603160045260245ffdfea26469706673582212209b3143b3af842070bf4090199111153686d7f9320101400f83225a57b88751df64736f6c63430008160033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000c8b2276d2b6814ca79aa81cdeccb6d65a684b5010000000000000000000000008bfb4cedd7776af70e61740ab8d44f8643e55b30
-----Decoded View---------------
Arg [0] : _nftCollection (address): 0xC8b2276d2B6814Ca79AA81cdECCb6D65A684b501
Arg [1] : _rewardToken (address): 0x8BFB4cEdd7776AF70E61740aB8d44F8643E55b30
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000c8b2276d2b6814ca79aa81cdeccb6d65a684b501
Arg [1] : 0000000000000000000000008bfb4cedd7776af70e61740ab8d44f8643e55b30
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
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.