Source Code
Latest 25 from a total of 739 transactions
| Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Unstake | 50260718 | 3 days ago | IN | 0 MON | 0.02204801 | ||||
| Unstake | 47269793 | 17 days ago | IN | 0 MON | 0.01204236 | ||||
| Unstake | 47269724 | 17 days ago | IN | 0 MON | 0.01462665 | ||||
| Unstake | 47211009 | 18 days ago | IN | 0 MON | 0.01462665 | ||||
| Unstake | 47210937 | 18 days ago | IN | 0 MON | 0.01462665 | ||||
| Unstake | 46083154 | 23 days ago | IN | 0 MON | 0.01462665 | ||||
| Unstake | 45522320 | 25 days ago | IN | 0 MON | 0.01298672 | ||||
| Unstake | 45522281 | 25 days ago | IN | 0 MON | 0.01298672 | ||||
| Unstake | 45494514 | 26 days ago | IN | 0 MON | 0.01462665 | ||||
| Unstake | 45494485 | 26 days ago | IN | 0 MON | 0.01298672 | ||||
| Unstake | 45250485 | 27 days ago | IN | 0 MON | 0.01462665 | ||||
| Unstake | 45250403 | 27 days ago | IN | 0 MON | 0.01462665 | ||||
| Unstake | 45151972 | 27 days ago | IN | 0 MON | 0.01462665 | ||||
| Unstake | 45151932 | 27 days ago | IN | 0 MON | 0.01462665 | ||||
| Unstake | 45141569 | 27 days ago | IN | 0 MON | 0.01462665 | ||||
| Unstake | 45055737 | 28 days ago | IN | 0 MON | 0.01204236 | ||||
| Unstake | 45055712 | 28 days ago | IN | 0 MON | 0.01462665 | ||||
| Unstake | 45025213 | 28 days ago | IN | 0 MON | 0.01462665 | ||||
| Deposit Rewards | 44972901 | 28 days ago | IN | 1 MON | 0.00384723 | ||||
| Withdraw MON | 44951823 | 28 days ago | IN | 0 MON | 0.00616987 | ||||
| Unstake | 44872129 | 28 days ago | IN | 0 MON | 0.01469871 | ||||
| Unstake | 44872028 | 28 days ago | IN | 0 MON | 0.01469871 | ||||
| Unstake | 44823351 | 29 days ago | IN | 0 MON | 0.01462787 | ||||
| Unstake | 44823300 | 29 days ago | IN | 0 MON | 0.01462787 | ||||
| Unstake | 44763970 | 29 days ago | IN | 0 MON | 0.01462665 |
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Block | From | To | |||
|---|---|---|---|---|---|---|
| 50260718 | 3 days ago | 0 MON | ||||
| 47269724 | 17 days ago | 70 wei | ||||
| 47211009 | 18 days ago | 25 wei | ||||
| 47210937 | 18 days ago | 72 wei | ||||
| 46083154 | 23 days ago | 9 wei | ||||
| 45522320 | 25 days ago | 179 wei | ||||
| 45522281 | 25 days ago | 179 wei | ||||
| 45494514 | 26 days ago | 0 MON | ||||
| 45494485 | 26 days ago | 0 MON | ||||
| 45250485 | 27 days ago | 498 wei | ||||
| 45250403 | 27 days ago | 633 wei | ||||
| 45151972 | 27 days ago | 4 wei | ||||
| 45151932 | 27 days ago | 4 wei | ||||
| 45141569 | 27 days ago | 2 wei | ||||
| 45055712 | 28 days ago | 3 wei | ||||
| 45025213 | 28 days ago | 12 wei | ||||
| 44951823 | 28 days ago | 1,044.95018263 MON | ||||
| 44872129 | 28 days ago | 63 wei | ||||
| 44872028 | 28 days ago | 79 wei | ||||
| 44823351 | 29 days ago | 0 MON | ||||
| 44823300 | 29 days ago | 954 wei | ||||
| 44763970 | 29 days ago | 79 wei | ||||
| 44763893 | 29 days ago | 387 wei | ||||
| 44753587 | 29 days ago | 3 wei | ||||
| 44742686 | 29 days ago | 276 wei |
Loading...
Loading
Contract Name:
MonchilStaking
Compiler Version
v0.8.28+commit.7893614a
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/ERC1155/utils/ERC1155Holder.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
contract MonchilStaking is Ownable, ERC1155Holder, ReentrancyGuard {
IERC1155 public immutable monchilNFT;
uint256 public rewardRatePerDay;
uint256 private constant SECONDS_PER_DAY = 24 hours;
struct StakeInfo {
uint256 amount;
uint256 lastClaimTime;
}
mapping(address => mapping(uint256 => StakeInfo)) public userStakes;
mapping(uint256 => bool) public isTokenStakable;
event Staked(address indexed user, uint256 indexed tokenId, uint256 amount);
event Unstaked(address indexed user, uint256 indexed tokenId, uint256 amount);
event RewardPaid(address indexed user, uint256 indexed tokenId, uint256 rewardAmount);
event RewardPoolFunded(address indexed funder, uint256 amount);
constructor(address _monchilNFTAddress, address initialOwner) Ownable(initialOwner) {
monchilNFT = IERC1155(_monchilNFTAddress);
rewardRatePerDay = 0.05 ether;
isTokenStakable[1] = true;
isTokenStakable[2] = true;
}
function stake(uint256 tokenId, uint256 amount) public nonReentrant {
require(isTokenStakable[tokenId], "Staking: This token ID is not stakable");
require(amount > 0, "Staking: Amount must be greater than 0");
StakeInfo storage stakeInfo = userStakes[msg.sender][tokenId];
if (stakeInfo.amount > 0) {
_claimPendingReward(msg.sender, tokenId);
}
stakeInfo.amount += amount;
stakeInfo.lastClaimTime = block.timestamp;
monchilNFT.safeTransferFrom(msg.sender, address(this), tokenId, amount, "");
emit Staked(msg.sender, tokenId, amount);
}
function unstake(uint256 tokenId, uint256 amount) public nonReentrant {
require(isTokenStakable[tokenId], "Staking: Invalid token ID");
require(amount > 0, "Staking: Amount must be greater than 0");
StakeInfo storage stakeInfo = userStakes[msg.sender][tokenId];
require(stakeInfo.amount >= amount, "Staking: Unstake amount exceeds staked balance");
_claimPendingReward(msg.sender, tokenId);
stakeInfo.amount -= amount;
stakeInfo.lastClaimTime = block.timestamp;
monchilNFT.safeTransferFrom(address(this), msg.sender, tokenId, amount, "");
emit Unstaked(msg.sender, tokenId, amount);
}
function claimReward(uint256 tokenId) public nonReentrant {
require(isTokenStakable[tokenId], "Staking: Invalid token ID");
_claimPendingReward(msg.sender, tokenId);
}
function _claimPendingReward(address user, uint256 tokenId) private {
StakeInfo storage stakeInfo = userStakes[user][tokenId];
uint256 pendingRewards = calculatePendingRewards(user, tokenId);
if (pendingRewards > 0) {
stakeInfo.lastClaimTime = block.timestamp;
require(address(this).balance >= pendingRewards, "Staking: Reward pool empty, contact owner");
(bool success, ) = user.call{value: pendingRewards}("");
require(success, "Staking: Failed to send reward ETH");
emit RewardPaid(user, tokenId, pendingRewards);
}
}
function calculatePendingRewards(address user, uint256 tokenId) public view returns (uint256) {
StakeInfo storage stakeInfo = userStakes[user][tokenId];
if (stakeInfo.amount == 0) {
return 0;
}
uint256 timeElapsed = block.timestamp - stakeInfo.lastClaimTime;
return (timeElapsed * rewardRatePerDay * stakeInfo.amount) / SECONDS_PER_DAY;
}
function depositRewards() public payable onlyOwner {
require(msg.value > 0, "Owner: Must deposit more than 0 ETH");
emit RewardPoolFunded(msg.sender, msg.value);
}
function withdrawMON() public onlyOwner nonReentrant {
uint256 balance = address(this).balance;
require(balance > 0, "Owner: No ETH to withdraw");
(bool success, ) = owner().call{value: balance}("");
require(success, "Owner: Failed to withdraw ETH");
}
function setTokenStakable(uint256 tokenId, bool stakable) public onlyOwner {
isTokenStakable[tokenId] = stakable;
}
function setDailyRewardRate(uint256 _dailyRateInWei) public onlyOwner {
rewardRatePerDay = _dailyRateInWei;
}
}// 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/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 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":"_monchilNFTAddress","type":"address"},{"internalType":"address","name":"initialOwner","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":"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":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rewardAmount","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"funder","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardPoolFunded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"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":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Unstaked","type":"event"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"calculatePendingRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"claimReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositRewards","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"isTokenStakable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"monchilNFT","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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardRatePerDay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_dailyRateInWei","type":"uint256"}],"name":"setDailyRewardRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bool","name":"stakable","type":"bool"}],"name":"setTokenStakable","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":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","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":"amount","type":"uint256"},{"internalType":"uint256","name":"lastClaimTime","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawMON","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60a060405234801561000f575f5ffd5b5060405161225438038061225483398181016040528101906100319190610275565b805f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036100a2575f6040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040161009991906102c2565b60405180910390fd5b6100b18161015660201b60201c565b50600180819055508173ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff168152505066b1a2bc2ec50000600281905550600160045f600181526020019081526020015f205f6101000a81548160ff021916908315150217905550600160045f600281526020019081526020015f205f6101000a81548160ff02191690831515021790555050506102db565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6102448261021b565b9050919050565b6102548161023a565b811461025e575f5ffd5b50565b5f8151905061026f8161024b565b92915050565b5f5f6040838503121561028b5761028a610217565b5b5f61029885828601610261565b92505060206102a985828601610261565b9150509250929050565b6102bc8161023a565b82525050565b5f6020820190506102d55f8301846102b3565b92915050565b608051611f536103015f395f818161052e0152818161069901526109ea0152611f535ff3fe608060405260043610610108575f3560e01c806395ccbdab11610094578063ba8880e811610063578063ba8880e81461033b578063bc197c8114610363578063f23a6e611461039f578063f2fde38b146103db578063f322b65f1461040357610108565b806395ccbdab146102725780639e2c8a5b146102ae578063ae169a50146102d6578063b5d5b5fa146102fe57610108565b8063715018a6116100db578063715018a6146101a65780637b0472f0146101bc5780637fc7984d146101e45780638da5cb5b146102205780638df251701461024a57610108565b806301ffc9a71461010c578063152111f714610148578063224d56381461015257806337de060e1461017c575b5f5ffd5b348015610117575f5ffd5b50610132600480360381019061012d919061118b565b610419565b60405161013f91906111d0565b60405180910390f35b610150610492565b005b34801561015d575f5ffd5b5061016661052c565b6040516101739190611263565b60405180910390f35b348015610187575f5ffd5b50610190610550565b60405161019d9190611294565b60405180910390f35b3480156101b1575f5ffd5b506101ba610556565b005b3480156101c7575f5ffd5b506101e260048036038101906101dd91906112d7565b610569565b005b3480156101ef575f5ffd5b5061020a60048036038101906102059190611350565b61077f565b6040516102179190611294565b60405180910390f35b34801561022b575f5ffd5b5061023461082a565b604051610241919061139d565b60405180910390f35b348015610255575f5ffd5b50610270600480360381019061026b91906113b6565b610851565b005b34801561027d575f5ffd5b50610298600480360381019061029391906113b6565b610863565b6040516102a591906111d0565b60405180910390f35b3480156102b9575f5ffd5b506102d460048036038101906102cf91906112d7565b610880565b005b3480156102e1575f5ffd5b506102fc60048036038101906102f791906113b6565b610ad0565b005b348015610309575f5ffd5b50610324600480360381019061031f9190611350565b610b4a565b6040516103329291906113e1565b60405180910390f35b348015610346575f5ffd5b50610361600480360381019061035c9190611432565b610b75565b005b34801561036e575f5ffd5b5061038960048036038101906103849190611670565b610ba9565b604051610396919061174a565b60405180910390f35b3480156103aa575f5ffd5b506103c560048036038101906103c09190611763565b610bbd565b6040516103d2919061174a565b60405180910390f35b3480156103e6575f5ffd5b5061040160048036038101906103fc91906117f6565b610bd1565b005b34801561040e575f5ffd5b50610417610c55565b005b5f7f4e2312e0000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061048b575061048a82610d66565b5b9050919050565b61049a610dcf565b5f34116104dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104d3906118a1565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff167fd3c7d1587d8f93bae0fcfc5a820d2187e755a75ec28a06c20a9da047e1b01eb5346040516105229190611294565b60405180910390a2565b7f000000000000000000000000000000000000000000000000000000000000000081565b60025481565b61055e610dcf565b6105675f610e56565b565b610571610f17565b60045f8381526020019081526020015f205f9054906101000a900460ff166105ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105c59061192f565b60405180910390fd5b5f8111610610576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610607906119bd565b60405180910390fd5b5f60035f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8481526020019081526020015f2090505f815f01541115610675576106743384610f66565b5b81815f015f8282546106879190611a08565b925050819055504281600101819055507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663f242432a333086866040518563ffffffff1660e01b81526004016106f69493929190611a6e565b5f604051808303815f87803b15801561070d575f5ffd5b505af115801561071f573d5f5f3e3d5ffd5b50505050823373ffffffffffffffffffffffffffffffffffffffff167f1449c6dd7851abc30abf37f57715f492010519147cc2652fbc38202c18a6ee908460405161076a9190611294565b60405180910390a35061077b611115565b5050565b5f5f60035f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8481526020019081526020015f2090505f815f0154036107e2575f915050610824565b5f8160010154426107f39190611ac4565b905062015180825f01546002548361080b9190611af7565b6108159190611af7565b61081f9190611b65565b925050505b92915050565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610859610dcf565b8060028190555050565b6004602052805f5260405f205f915054906101000a900460ff1681565b610888610f17565b60045f8381526020019081526020015f205f9054906101000a900460ff166108e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108dc90611bdf565b60405180910390fd5b5f8111610927576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161091e906119bd565b60405180910390fd5b5f60035f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8481526020019081526020015f20905081815f015410156109bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109b390611c6d565b60405180910390fd5b6109c63384610f66565b81815f015f8282546109d89190611ac4565b925050819055504281600101819055507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663f242432a303386866040518563ffffffff1660e01b8152600401610a479493929190611a6e565b5f604051808303815f87803b158015610a5e575f5ffd5b505af1158015610a70573d5f5f3e3d5ffd5b50505050823373ffffffffffffffffffffffffffffffffffffffff167f7fc4727e062e336010f2c282598ef5f14facb3de68cf8195c2f23e1454b2b74e84604051610abb9190611294565b60405180910390a350610acc611115565b5050565b610ad8610f17565b60045f8281526020019081526020015f205f9054906101000a900460ff16610b35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b2c90611bdf565b60405180910390fd5b610b3f3382610f66565b610b47611115565b50565b6003602052815f5260405f20602052805f5260405f205f9150915050805f0154908060010154905082565b610b7d610dcf565b8060045f8481526020019081526020015f205f6101000a81548160ff0219169083151502179055505050565b5f63bc197c8160e01b905095945050505050565b5f63f23a6e6160e01b905095945050505050565b610bd9610dcf565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610c49575f6040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610c40919061139d565b60405180910390fd5b610c5281610e56565b50565b610c5d610dcf565b610c65610f17565b5f4790505f8111610cab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ca290611cd5565b60405180910390fd5b5f610cb461082a565b73ffffffffffffffffffffffffffffffffffffffff1682604051610cd790611d1d565b5f6040518083038185875af1925050503d805f8114610d11576040519150601f19603f3d011682016040523d82523d5f602084013e610d16565b606091505b5050905080610d5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d5190611d7b565b60405180910390fd5b5050610d64611115565b565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b610dd761111e565b73ffffffffffffffffffffffffffffffffffffffff16610df561082a565b73ffffffffffffffffffffffffffffffffffffffff1614610e5457610e1861111e565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610e4b919061139d565b60405180910390fd5b565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600260015403610f5c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5390611de3565b60405180910390fd5b6002600181905550565b5f60035f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8381526020019081526020015f2090505f610fc0848461077f565b90505f81111561110f5742826001018190555080471015611016576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100d90611e71565b60405180910390fd5b5f8473ffffffffffffffffffffffffffffffffffffffff168260405161103b90611d1d565b5f6040518083038185875af1925050503d805f8114611075576040519150601f19603f3d011682016040523d82523d5f602084013e61107a565b606091505b50509050806110be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110b590611eff565b60405180910390fd5b838573ffffffffffffffffffffffffffffffffffffffff167fd6f2c8500df5b44f11e9e48b91ff9f1b9d81bc496d55570c2b1b75bf65243f51846040516111059190611294565b60405180910390a3505b50505050565b60018081905550565b5f33905090565b5f604051905090565b5f5ffd5b5f5ffd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61116a81611136565b8114611174575f5ffd5b50565b5f8135905061118581611161565b92915050565b5f602082840312156111a05761119f61112e565b5b5f6111ad84828501611177565b91505092915050565b5f8115159050919050565b6111ca816111b6565b82525050565b5f6020820190506111e35f8301846111c1565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f819050919050565b5f61122b611226611221846111e9565b611208565b6111e9565b9050919050565b5f61123c82611211565b9050919050565b5f61124d82611232565b9050919050565b61125d81611243565b82525050565b5f6020820190506112765f830184611254565b92915050565b5f819050919050565b61128e8161127c565b82525050565b5f6020820190506112a75f830184611285565b92915050565b6112b68161127c565b81146112c0575f5ffd5b50565b5f813590506112d1816112ad565b92915050565b5f5f604083850312156112ed576112ec61112e565b5b5f6112fa858286016112c3565b925050602061130b858286016112c3565b9150509250929050565b5f61131f826111e9565b9050919050565b61132f81611315565b8114611339575f5ffd5b50565b5f8135905061134a81611326565b92915050565b5f5f604083850312156113665761136561112e565b5b5f6113738582860161133c565b9250506020611384858286016112c3565b9150509250929050565b61139781611315565b82525050565b5f6020820190506113b05f83018461138e565b92915050565b5f602082840312156113cb576113ca61112e565b5b5f6113d8848285016112c3565b91505092915050565b5f6040820190506113f45f830185611285565b6114016020830184611285565b9392505050565b611411816111b6565b811461141b575f5ffd5b50565b5f8135905061142c81611408565b92915050565b5f5f604083850312156114485761144761112e565b5b5f611455858286016112c3565b92505060206114668582860161141e565b9150509250929050565b5f5ffd5b5f601f19601f8301169050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6114ba82611474565b810181811067ffffffffffffffff821117156114d9576114d8611484565b5b80604052505050565b5f6114eb611125565b90506114f782826114b1565b919050565b5f67ffffffffffffffff82111561151657611515611484565b5b602082029050602081019050919050565b5f5ffd5b5f61153d611538846114fc565b6114e2565b905080838252602082019050602084028301858111156115605761155f611527565b5b835b81811015611589578061157588826112c3565b845260208401935050602081019050611562565b5050509392505050565b5f82601f8301126115a7576115a6611470565b5b81356115b784826020860161152b565b91505092915050565b5f5ffd5b5f67ffffffffffffffff8211156115de576115dd611484565b5b6115e782611474565b9050602081019050919050565b828183375f83830152505050565b5f61161461160f846115c4565b6114e2565b9050828152602081018484840111156116305761162f6115c0565b5b61163b8482856115f4565b509392505050565b5f82601f83011261165757611656611470565b5b8135611667848260208601611602565b91505092915050565b5f5f5f5f5f60a086880312156116895761168861112e565b5b5f6116968882890161133c565b95505060206116a78882890161133c565b945050604086013567ffffffffffffffff8111156116c8576116c7611132565b5b6116d488828901611593565b935050606086013567ffffffffffffffff8111156116f5576116f4611132565b5b61170188828901611593565b925050608086013567ffffffffffffffff81111561172257611721611132565b5b61172e88828901611643565b9150509295509295909350565b61174481611136565b82525050565b5f60208201905061175d5f83018461173b565b92915050565b5f5f5f5f5f60a0868803121561177c5761177b61112e565b5b5f6117898882890161133c565b955050602061179a8882890161133c565b94505060406117ab888289016112c3565b93505060606117bc888289016112c3565b925050608086013567ffffffffffffffff8111156117dd576117dc611132565b5b6117e988828901611643565b9150509295509295909350565b5f6020828403121561180b5761180a61112e565b5b5f6118188482850161133c565b91505092915050565b5f82825260208201905092915050565b7f4f776e65723a204d757374206465706f736974206d6f7265207468616e2030205f8201527f4554480000000000000000000000000000000000000000000000000000000000602082015250565b5f61188b602383611821565b915061189682611831565b604082019050919050565b5f6020820190508181035f8301526118b88161187f565b9050919050565b7f5374616b696e673a205468697320746f6b656e204944206973206e6f742073745f8201527f616b61626c650000000000000000000000000000000000000000000000000000602082015250565b5f611919602683611821565b9150611924826118bf565b604082019050919050565b5f6020820190508181035f8301526119468161190d565b9050919050565b7f5374616b696e673a20416d6f756e74206d7573742062652067726561746572205f8201527f7468616e20300000000000000000000000000000000000000000000000000000602082015250565b5f6119a7602683611821565b91506119b28261194d565b604082019050919050565b5f6020820190508181035f8301526119d48161199b565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f611a128261127c565b9150611a1d8361127c565b9250828201905080821115611a3557611a346119db565b5b92915050565b5f82825260208201905092915050565b50565b5f611a595f83611a3b565b9150611a6482611a4b565b5f82019050919050565b5f60a082019050611a815f83018761138e565b611a8e602083018661138e565b611a9b6040830185611285565b611aa86060830184611285565b8181036080830152611ab981611a4e565b905095945050505050565b5f611ace8261127c565b9150611ad98361127c565b9250828203905081811115611af157611af06119db565b5b92915050565b5f611b018261127c565b9150611b0c8361127c565b9250828202611b1a8161127c565b91508282048414831517611b3157611b306119db565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f611b6f8261127c565b9150611b7a8361127c565b925082611b8a57611b89611b38565b5b828204905092915050565b7f5374616b696e673a20496e76616c696420746f6b656e204944000000000000005f82015250565b5f611bc9601983611821565b9150611bd482611b95565b602082019050919050565b5f6020820190508181035f830152611bf681611bbd565b9050919050565b7f5374616b696e673a20556e7374616b6520616d6f756e742065786365656473205f8201527f7374616b65642062616c616e6365000000000000000000000000000000000000602082015250565b5f611c57602e83611821565b9150611c6282611bfd565b604082019050919050565b5f6020820190508181035f830152611c8481611c4b565b9050919050565b7f4f776e65723a204e6f2045544820746f207769746864726177000000000000005f82015250565b5f611cbf601983611821565b9150611cca82611c8b565b602082019050919050565b5f6020820190508181035f830152611cec81611cb3565b9050919050565b5f81905092915050565b5f611d085f83611cf3565b9150611d1382611a4b565b5f82019050919050565b5f611d2782611cfd565b9150819050919050565b7f4f776e65723a204661696c656420746f207769746864726177204554480000005f82015250565b5f611d65601d83611821565b9150611d7082611d31565b602082019050919050565b5f6020820190508181035f830152611d9281611d59565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c005f82015250565b5f611dcd601f83611821565b9150611dd882611d99565b602082019050919050565b5f6020820190508181035f830152611dfa81611dc1565b9050919050565b7f5374616b696e673a2052657761726420706f6f6c20656d7074792c20636f6e745f8201527f616374206f776e65720000000000000000000000000000000000000000000000602082015250565b5f611e5b602983611821565b9150611e6682611e01565b604082019050919050565b5f6020820190508181035f830152611e8881611e4f565b9050919050565b7f5374616b696e673a204661696c656420746f2073656e642072657761726420455f8201527f5448000000000000000000000000000000000000000000000000000000000000602082015250565b5f611ee9602283611821565b9150611ef482611e8f565b604082019050919050565b5f6020820190508181035f830152611f1681611edd565b905091905056fea26469706673582212208ddcc509f5c0a5673e54b4c080916ab4535af6f6196cd1b250715ceaf0e3f0de64736f6c634300081c0033000000000000000000000000c84932efcbeedbcf5b25f41461de3f2b7db8f5eb000000000000000000000000b9f13fbac92b837b42ce2dac2e343e3bd799c773
Deployed Bytecode
0x608060405260043610610108575f3560e01c806395ccbdab11610094578063ba8880e811610063578063ba8880e81461033b578063bc197c8114610363578063f23a6e611461039f578063f2fde38b146103db578063f322b65f1461040357610108565b806395ccbdab146102725780639e2c8a5b146102ae578063ae169a50146102d6578063b5d5b5fa146102fe57610108565b8063715018a6116100db578063715018a6146101a65780637b0472f0146101bc5780637fc7984d146101e45780638da5cb5b146102205780638df251701461024a57610108565b806301ffc9a71461010c578063152111f714610148578063224d56381461015257806337de060e1461017c575b5f5ffd5b348015610117575f5ffd5b50610132600480360381019061012d919061118b565b610419565b60405161013f91906111d0565b60405180910390f35b610150610492565b005b34801561015d575f5ffd5b5061016661052c565b6040516101739190611263565b60405180910390f35b348015610187575f5ffd5b50610190610550565b60405161019d9190611294565b60405180910390f35b3480156101b1575f5ffd5b506101ba610556565b005b3480156101c7575f5ffd5b506101e260048036038101906101dd91906112d7565b610569565b005b3480156101ef575f5ffd5b5061020a60048036038101906102059190611350565b61077f565b6040516102179190611294565b60405180910390f35b34801561022b575f5ffd5b5061023461082a565b604051610241919061139d565b60405180910390f35b348015610255575f5ffd5b50610270600480360381019061026b91906113b6565b610851565b005b34801561027d575f5ffd5b50610298600480360381019061029391906113b6565b610863565b6040516102a591906111d0565b60405180910390f35b3480156102b9575f5ffd5b506102d460048036038101906102cf91906112d7565b610880565b005b3480156102e1575f5ffd5b506102fc60048036038101906102f791906113b6565b610ad0565b005b348015610309575f5ffd5b50610324600480360381019061031f9190611350565b610b4a565b6040516103329291906113e1565b60405180910390f35b348015610346575f5ffd5b50610361600480360381019061035c9190611432565b610b75565b005b34801561036e575f5ffd5b5061038960048036038101906103849190611670565b610ba9565b604051610396919061174a565b60405180910390f35b3480156103aa575f5ffd5b506103c560048036038101906103c09190611763565b610bbd565b6040516103d2919061174a565b60405180910390f35b3480156103e6575f5ffd5b5061040160048036038101906103fc91906117f6565b610bd1565b005b34801561040e575f5ffd5b50610417610c55565b005b5f7f4e2312e0000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061048b575061048a82610d66565b5b9050919050565b61049a610dcf565b5f34116104dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104d3906118a1565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff167fd3c7d1587d8f93bae0fcfc5a820d2187e755a75ec28a06c20a9da047e1b01eb5346040516105229190611294565b60405180910390a2565b7f000000000000000000000000c84932efcbeedbcf5b25f41461de3f2b7db8f5eb81565b60025481565b61055e610dcf565b6105675f610e56565b565b610571610f17565b60045f8381526020019081526020015f205f9054906101000a900460ff166105ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105c59061192f565b60405180910390fd5b5f8111610610576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610607906119bd565b60405180910390fd5b5f60035f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8481526020019081526020015f2090505f815f01541115610675576106743384610f66565b5b81815f015f8282546106879190611a08565b925050819055504281600101819055507f000000000000000000000000c84932efcbeedbcf5b25f41461de3f2b7db8f5eb73ffffffffffffffffffffffffffffffffffffffff1663f242432a333086866040518563ffffffff1660e01b81526004016106f69493929190611a6e565b5f604051808303815f87803b15801561070d575f5ffd5b505af115801561071f573d5f5f3e3d5ffd5b50505050823373ffffffffffffffffffffffffffffffffffffffff167f1449c6dd7851abc30abf37f57715f492010519147cc2652fbc38202c18a6ee908460405161076a9190611294565b60405180910390a35061077b611115565b5050565b5f5f60035f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8481526020019081526020015f2090505f815f0154036107e2575f915050610824565b5f8160010154426107f39190611ac4565b905062015180825f01546002548361080b9190611af7565b6108159190611af7565b61081f9190611b65565b925050505b92915050565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610859610dcf565b8060028190555050565b6004602052805f5260405f205f915054906101000a900460ff1681565b610888610f17565b60045f8381526020019081526020015f205f9054906101000a900460ff166108e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108dc90611bdf565b60405180910390fd5b5f8111610927576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161091e906119bd565b60405180910390fd5b5f60035f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8481526020019081526020015f20905081815f015410156109bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109b390611c6d565b60405180910390fd5b6109c63384610f66565b81815f015f8282546109d89190611ac4565b925050819055504281600101819055507f000000000000000000000000c84932efcbeedbcf5b25f41461de3f2b7db8f5eb73ffffffffffffffffffffffffffffffffffffffff1663f242432a303386866040518563ffffffff1660e01b8152600401610a479493929190611a6e565b5f604051808303815f87803b158015610a5e575f5ffd5b505af1158015610a70573d5f5f3e3d5ffd5b50505050823373ffffffffffffffffffffffffffffffffffffffff167f7fc4727e062e336010f2c282598ef5f14facb3de68cf8195c2f23e1454b2b74e84604051610abb9190611294565b60405180910390a350610acc611115565b5050565b610ad8610f17565b60045f8281526020019081526020015f205f9054906101000a900460ff16610b35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b2c90611bdf565b60405180910390fd5b610b3f3382610f66565b610b47611115565b50565b6003602052815f5260405f20602052805f5260405f205f9150915050805f0154908060010154905082565b610b7d610dcf565b8060045f8481526020019081526020015f205f6101000a81548160ff0219169083151502179055505050565b5f63bc197c8160e01b905095945050505050565b5f63f23a6e6160e01b905095945050505050565b610bd9610dcf565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610c49575f6040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610c40919061139d565b60405180910390fd5b610c5281610e56565b50565b610c5d610dcf565b610c65610f17565b5f4790505f8111610cab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ca290611cd5565b60405180910390fd5b5f610cb461082a565b73ffffffffffffffffffffffffffffffffffffffff1682604051610cd790611d1d565b5f6040518083038185875af1925050503d805f8114610d11576040519150601f19603f3d011682016040523d82523d5f602084013e610d16565b606091505b5050905080610d5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d5190611d7b565b60405180910390fd5b5050610d64611115565b565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b610dd761111e565b73ffffffffffffffffffffffffffffffffffffffff16610df561082a565b73ffffffffffffffffffffffffffffffffffffffff1614610e5457610e1861111e565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610e4b919061139d565b60405180910390fd5b565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600260015403610f5c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5390611de3565b60405180910390fd5b6002600181905550565b5f60035f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8381526020019081526020015f2090505f610fc0848461077f565b90505f81111561110f5742826001018190555080471015611016576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100d90611e71565b60405180910390fd5b5f8473ffffffffffffffffffffffffffffffffffffffff168260405161103b90611d1d565b5f6040518083038185875af1925050503d805f8114611075576040519150601f19603f3d011682016040523d82523d5f602084013e61107a565b606091505b50509050806110be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110b590611eff565b60405180910390fd5b838573ffffffffffffffffffffffffffffffffffffffff167fd6f2c8500df5b44f11e9e48b91ff9f1b9d81bc496d55570c2b1b75bf65243f51846040516111059190611294565b60405180910390a3505b50505050565b60018081905550565b5f33905090565b5f604051905090565b5f5ffd5b5f5ffd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61116a81611136565b8114611174575f5ffd5b50565b5f8135905061118581611161565b92915050565b5f602082840312156111a05761119f61112e565b5b5f6111ad84828501611177565b91505092915050565b5f8115159050919050565b6111ca816111b6565b82525050565b5f6020820190506111e35f8301846111c1565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f819050919050565b5f61122b611226611221846111e9565b611208565b6111e9565b9050919050565b5f61123c82611211565b9050919050565b5f61124d82611232565b9050919050565b61125d81611243565b82525050565b5f6020820190506112765f830184611254565b92915050565b5f819050919050565b61128e8161127c565b82525050565b5f6020820190506112a75f830184611285565b92915050565b6112b68161127c565b81146112c0575f5ffd5b50565b5f813590506112d1816112ad565b92915050565b5f5f604083850312156112ed576112ec61112e565b5b5f6112fa858286016112c3565b925050602061130b858286016112c3565b9150509250929050565b5f61131f826111e9565b9050919050565b61132f81611315565b8114611339575f5ffd5b50565b5f8135905061134a81611326565b92915050565b5f5f604083850312156113665761136561112e565b5b5f6113738582860161133c565b9250506020611384858286016112c3565b9150509250929050565b61139781611315565b82525050565b5f6020820190506113b05f83018461138e565b92915050565b5f602082840312156113cb576113ca61112e565b5b5f6113d8848285016112c3565b91505092915050565b5f6040820190506113f45f830185611285565b6114016020830184611285565b9392505050565b611411816111b6565b811461141b575f5ffd5b50565b5f8135905061142c81611408565b92915050565b5f5f604083850312156114485761144761112e565b5b5f611455858286016112c3565b92505060206114668582860161141e565b9150509250929050565b5f5ffd5b5f601f19601f8301169050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6114ba82611474565b810181811067ffffffffffffffff821117156114d9576114d8611484565b5b80604052505050565b5f6114eb611125565b90506114f782826114b1565b919050565b5f67ffffffffffffffff82111561151657611515611484565b5b602082029050602081019050919050565b5f5ffd5b5f61153d611538846114fc565b6114e2565b905080838252602082019050602084028301858111156115605761155f611527565b5b835b81811015611589578061157588826112c3565b845260208401935050602081019050611562565b5050509392505050565b5f82601f8301126115a7576115a6611470565b5b81356115b784826020860161152b565b91505092915050565b5f5ffd5b5f67ffffffffffffffff8211156115de576115dd611484565b5b6115e782611474565b9050602081019050919050565b828183375f83830152505050565b5f61161461160f846115c4565b6114e2565b9050828152602081018484840111156116305761162f6115c0565b5b61163b8482856115f4565b509392505050565b5f82601f83011261165757611656611470565b5b8135611667848260208601611602565b91505092915050565b5f5f5f5f5f60a086880312156116895761168861112e565b5b5f6116968882890161133c565b95505060206116a78882890161133c565b945050604086013567ffffffffffffffff8111156116c8576116c7611132565b5b6116d488828901611593565b935050606086013567ffffffffffffffff8111156116f5576116f4611132565b5b61170188828901611593565b925050608086013567ffffffffffffffff81111561172257611721611132565b5b61172e88828901611643565b9150509295509295909350565b61174481611136565b82525050565b5f60208201905061175d5f83018461173b565b92915050565b5f5f5f5f5f60a0868803121561177c5761177b61112e565b5b5f6117898882890161133c565b955050602061179a8882890161133c565b94505060406117ab888289016112c3565b93505060606117bc888289016112c3565b925050608086013567ffffffffffffffff8111156117dd576117dc611132565b5b6117e988828901611643565b9150509295509295909350565b5f6020828403121561180b5761180a61112e565b5b5f6118188482850161133c565b91505092915050565b5f82825260208201905092915050565b7f4f776e65723a204d757374206465706f736974206d6f7265207468616e2030205f8201527f4554480000000000000000000000000000000000000000000000000000000000602082015250565b5f61188b602383611821565b915061189682611831565b604082019050919050565b5f6020820190508181035f8301526118b88161187f565b9050919050565b7f5374616b696e673a205468697320746f6b656e204944206973206e6f742073745f8201527f616b61626c650000000000000000000000000000000000000000000000000000602082015250565b5f611919602683611821565b9150611924826118bf565b604082019050919050565b5f6020820190508181035f8301526119468161190d565b9050919050565b7f5374616b696e673a20416d6f756e74206d7573742062652067726561746572205f8201527f7468616e20300000000000000000000000000000000000000000000000000000602082015250565b5f6119a7602683611821565b91506119b28261194d565b604082019050919050565b5f6020820190508181035f8301526119d48161199b565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f611a128261127c565b9150611a1d8361127c565b9250828201905080821115611a3557611a346119db565b5b92915050565b5f82825260208201905092915050565b50565b5f611a595f83611a3b565b9150611a6482611a4b565b5f82019050919050565b5f60a082019050611a815f83018761138e565b611a8e602083018661138e565b611a9b6040830185611285565b611aa86060830184611285565b8181036080830152611ab981611a4e565b905095945050505050565b5f611ace8261127c565b9150611ad98361127c565b9250828203905081811115611af157611af06119db565b5b92915050565b5f611b018261127c565b9150611b0c8361127c565b9250828202611b1a8161127c565b91508282048414831517611b3157611b306119db565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f611b6f8261127c565b9150611b7a8361127c565b925082611b8a57611b89611b38565b5b828204905092915050565b7f5374616b696e673a20496e76616c696420746f6b656e204944000000000000005f82015250565b5f611bc9601983611821565b9150611bd482611b95565b602082019050919050565b5f6020820190508181035f830152611bf681611bbd565b9050919050565b7f5374616b696e673a20556e7374616b6520616d6f756e742065786365656473205f8201527f7374616b65642062616c616e6365000000000000000000000000000000000000602082015250565b5f611c57602e83611821565b9150611c6282611bfd565b604082019050919050565b5f6020820190508181035f830152611c8481611c4b565b9050919050565b7f4f776e65723a204e6f2045544820746f207769746864726177000000000000005f82015250565b5f611cbf601983611821565b9150611cca82611c8b565b602082019050919050565b5f6020820190508181035f830152611cec81611cb3565b9050919050565b5f81905092915050565b5f611d085f83611cf3565b9150611d1382611a4b565b5f82019050919050565b5f611d2782611cfd565b9150819050919050565b7f4f776e65723a204661696c656420746f207769746864726177204554480000005f82015250565b5f611d65601d83611821565b9150611d7082611d31565b602082019050919050565b5f6020820190508181035f830152611d9281611d59565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c005f82015250565b5f611dcd601f83611821565b9150611dd882611d99565b602082019050919050565b5f6020820190508181035f830152611dfa81611dc1565b9050919050565b7f5374616b696e673a2052657761726420706f6f6c20656d7074792c20636f6e745f8201527f616374206f776e65720000000000000000000000000000000000000000000000602082015250565b5f611e5b602983611821565b9150611e6682611e01565b604082019050919050565b5f6020820190508181035f830152611e8881611e4f565b9050919050565b7f5374616b696e673a204661696c656420746f2073656e642072657761726420455f8201527f5448000000000000000000000000000000000000000000000000000000000000602082015250565b5f611ee9602283611821565b9150611ef482611e8f565b604082019050919050565b5f6020820190508181035f830152611f1681611edd565b905091905056fea26469706673582212208ddcc509f5c0a5673e54b4c080916ab4535af6f6196cd1b250715ceaf0e3f0de64736f6c634300081c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000c84932efcbeedbcf5b25f41461de3f2b7db8f5eb000000000000000000000000b9f13fbac92b837b42ce2dac2e343e3bd799c773
-----Decoded View---------------
Arg [0] : _monchilNFTAddress (address): 0xc84932efcBeEdbcf5B25F41461DE3F2b7DB8f5Eb
Arg [1] : initialOwner (address): 0xb9F13fbAC92B837B42Ce2DAC2e343E3bd799c773
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000c84932efcbeedbcf5b25f41461de3f2b7db8f5eb
Arg [1] : 000000000000000000000000b9f13fbac92b837b42ce2dac2e343e3bd799c773
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.02
Net Worth in MON
Token Allocations
MON
100.00%
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|---|---|---|---|---|
| MONAD | 100.00% | $0.017675 | 1 | $0.017675 |
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.