Source Code
Latest 25 from a total of 212 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Multicall | 17534748 | 297 days ago | IN | 0 ETH | 0.00000032 | ||||
| Multicall | 17534735 | 297 days ago | IN | 0 ETH | 0.00000027 | ||||
| Claim | 17534731 | 297 days ago | IN | 0 ETH | 0.00000009 | ||||
| Claim | 17523628 | 297 days ago | IN | 0 ETH | 0 | ||||
| Claim | 17523615 | 297 days ago | IN | 0 ETH | 0 | ||||
| Multicall | 17239756 | 304 days ago | IN | 0 ETH | 0 | ||||
| Multicall | 17239749 | 304 days ago | IN | 0 ETH | 0 | ||||
| Claim | 17239686 | 304 days ago | IN | 0 ETH | 0 | ||||
| Withdraw | 15366477 | 347 days ago | IN | 0 ETH | 0.00000223 | ||||
| Multicall | 15286149 | 349 days ago | IN | 0 ETH | 0.0000006 | ||||
| Claim | 14554776 | 366 days ago | IN | 0 ETH | 0.00000007 | ||||
| Claim | 14445022 | 368 days ago | IN | 0 ETH | 0.00000224 | ||||
| Claim | 13970422 | 379 days ago | IN | 0 ETH | 0.00000004 | ||||
| Multicall | 13519011 | 390 days ago | IN | 0 ETH | 0.00000092 | ||||
| Claim | 13518965 | 390 days ago | IN | 0 ETH | 0.00000033 | ||||
| Multicall | 13339101 | 394 days ago | IN | 0 ETH | 0.00000733 | ||||
| Multicall | 13339052 | 394 days ago | IN | 0 ETH | 0.00001088 | ||||
| Claim | 13059907 | 400 days ago | IN | 0 ETH | 0.00000015 | ||||
| Claim | 12987267 | 402 days ago | IN | 0 ETH | 0.00000004 | ||||
| Claim | 12863183 | 405 days ago | IN | 0 ETH | 0.00000008 | ||||
| Claim | 12554225 | 412 days ago | IN | 0 ETH | 0.0000002 | ||||
| Multicall | 12510198 | 413 days ago | IN | 0 ETH | 0.00000098 | ||||
| Multicall | 12510177 | 413 days ago | IN | 0 ETH | 0.00000087 | ||||
| Claim | 12432391 | 415 days ago | IN | 0 ETH | 0.00000058 | ||||
| Multicall | 12354261 | 417 days ago | IN | 0 ETH | 0.00000071 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Cross-Chain Transactions
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x38C24F42...3aC029BB7 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
PassStaking
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 1 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
// Compatible with OpenZeppelin Contracts ^5.0.0
pragma solidity ^0.8.20;
import "@openzeppelin/contracts/utils/Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/utils/Multicall.sol";
import "../interface/IMonoPass.sol";
import "../interface/IMUSD.sol";
contract PassStaking is
Pausable,
Ownable,
ReentrancyGuard,
IERC721Receiver,
Multicall
{
using EnumerableSet for EnumerableSet.UintSet;
IMonoPass public monoPass;
IMUSD public musd;
uint256 public lockTime;
// Accrued token per share
uint256 public accTokenPerShare;
uint256 public endTime;
uint256 public startTime;
// The block number of the last pool update
uint256 public lastRewardTime;
uint256 public rewardPerSecond;
// The precision factor
uint256 public PRECISION_FACTOR = 10 ** 12;
uint256 public totalStaked;
mapping(address => uint256) public claimed;
// Info of each user that stakes tokens (stakedToken)
mapping(address => UserInfo) public userInfo;
mapping(address => EnumerableSet.UintSet) private ownPassId;
mapping(uint256 => uint256) public depositTime;
event Deposit(address indexed user, uint256 passId);
event Withdraw(address indexed user, uint256 passId);
event Claim(address indexed user, uint256 amount);
struct UserInfo {
uint256 amount; // How many staked tokens the user has provided
uint256 rewardDebt; // Reward debt
}
constructor(
address _monoPass,
address _musd,
uint256 _rewardPerSecond,
uint256 _startTime,
uint256 _endTime,
uint256 _lockTime
) Ownable(msg.sender) {
monoPass = IMonoPass(_monoPass);
musd = IMUSD(_musd);
rewardPerSecond = _rewardPerSecond;
startTime = _startTime;
endTime = _endTime;
lastRewardTime = startTime;
lockTime = _lockTime;
}
function deposit(uint256 _passId) external whenNotPaused {
UserInfo storage user = userInfo[msg.sender];
_updatePool();
if (user.amount > 0) {
uint256 pending = (user.amount * accTokenPerShare) /
PRECISION_FACTOR -
user.rewardDebt;
if (pending > 0) {
musd.transfer(address(msg.sender), pending);
claimed[msg.sender] = claimed[msg.sender] + pending;
emit Claim(msg.sender, pending);
}
}
user.amount = user.amount + 1;
monoPass.safeTransferFrom(
address(msg.sender),
address(this),
_passId,
""
);
totalStaked = totalStaked + 1;
ownPassId[msg.sender].add(_passId);
depositTime[_passId] = block.timestamp;
user.rewardDebt = (user.amount * accTokenPerShare) / PRECISION_FACTOR;
emit Deposit(msg.sender, _passId);
}
function withdraw(uint256 _passId) external whenNotPaused {
require(
ownPassId[msg.sender].contains(_passId),
"User does not own this pass"
);
require(depositTime[_passId] + lockTime < block.timestamp, "Locked");
UserInfo storage user = userInfo[msg.sender];
_updatePool();
uint256 pending = (user.amount * accTokenPerShare) /
PRECISION_FACTOR -
user.rewardDebt;
user.amount = user.amount - 1;
monoPass.safeTransferFrom((address(this)), msg.sender, _passId, "");
totalStaked = totalStaked - 1;
ownPassId[msg.sender].remove(_passId);
delete depositTime[_passId];
if (pending > 0) {
musd.transfer(address(msg.sender), pending);
claimed[msg.sender] = claimed[msg.sender] + pending;
emit Claim(msg.sender, pending);
}
user.rewardDebt = (user.amount * accTokenPerShare) / PRECISION_FACTOR;
emit Withdraw(msg.sender, _passId);
}
function claim() external whenNotPaused {
UserInfo storage user = userInfo[msg.sender];
_updatePool();
uint256 pending = (user.amount * accTokenPerShare) /
PRECISION_FACTOR -
user.rewardDebt;
if (pending > 0) {
musd.transfer(address(msg.sender), pending);
claimed[msg.sender] = claimed[msg.sender] + pending;
emit Claim(msg.sender, pending);
}
user.rewardDebt = (user.amount * accTokenPerShare) / PRECISION_FACTOR;
}
function _updatePool() internal {
if (block.timestamp <= lastRewardTime) {
return;
}
if (totalStaked == 0) {
lastRewardTime = block.timestamp;
return;
}
uint256 multiplier = _getMultiplier(lastRewardTime, block.timestamp);
uint256 reward = multiplier * rewardPerSecond;
accTokenPerShare =
accTokenPerShare +
(reward * PRECISION_FACTOR) /
totalStaked;
lastRewardTime = block.timestamp;
}
function stopReward() external onlyOwner {
endTime = block.timestamp;
}
function updaterewardPerSecond(
uint256 _rewardPerSecond
) external onlyOwner {
require(block.timestamp < startTime, "Pool has started");
rewardPerSecond = _rewardPerSecond;
// emit NewrewardPerSecond(_rewardPerSecond);
}
function updateStartAndEndBlocks(
uint256 _startTime,
uint256 _endTime
) external onlyOwner {
require(block.timestamp < startTime, "Pool has started");
require(
_startTime < _endTime,
"New startTime must be lower than new endBlock"
);
require(
block.timestamp < _startTime,
"New startTime must be higher than current block"
);
startTime = _startTime;
endTime = _endTime;
// Set the lastRewardTime as the startTime
lastRewardTime = startTime;
// emit NewStartAndEndBlocks(_startTime, _endTime);
}
function pendingReward(address _user) external view returns (uint256) {
UserInfo storage user = userInfo[_user];
if (block.timestamp > lastRewardTime && totalStaked != 0) {
uint256 multiplier = _getMultiplier(
lastRewardTime,
block.timestamp
);
uint256 reward = multiplier * rewardPerSecond;
uint256 adjustedTokenPerShare = accTokenPerShare +
(reward * PRECISION_FACTOR) /
totalStaked;
return
(user.amount * adjustedTokenPerShare) /
PRECISION_FACTOR -
user.rewardDebt;
} else {
return
(user.amount * accTokenPerShare) /
PRECISION_FACTOR -
user.rewardDebt;
}
}
/*
* @notice Return reward multiplier over the given _from to _to timestamp.
* @param _from: time to start
* @param _to: time to finish
*/
function _getMultiplier(
uint256 _from,
uint256 _to
) internal view returns (uint256) {
if (_to <= endTime) {
return _to - _from;
} else if (_from >= endTime) {
return 0;
} else {
return endTime - _from;
}
}
function setLockTime(uint256 _lockTime) external onlyOwner {
lockTime = _lockTime;
}
function getPassOwned(
address _user
) external view returns (uint256[] memory, uint256[] memory) {
uint256[] memory passIds = new uint256[](ownPassId[_user].length());
uint256[] memory depositTimes = new uint256[](
ownPassId[_user].length()
);
for (uint256 i = 0; i < ownPassId[_user].length(); i++) {
passIds[i] = ownPassId[_user].at(i);
depositTimes[i] = depositTime[passIds[i]];
}
return (passIds, depositTimes);
}
function pause() public onlyOwner {
_pause();
}
function unpause() public onlyOwner {
_unpause();
}
function emergencyWithdraw(address token) external onlyOwner {
if (token == address(0)) {
payable(msg.sender).transfer(address(this).balance);
} else {
IERC20(token).transfer(
msg.sender,
IERC20(token).balanceOf(address(this))
);
}
}
function emergencyWithdrawNFT(
address account,
uint256 amount
) external onlyOwner {
for (uint256 i = 0; i < amount; i++) {
monoPass.safeTransferFrom(
address(this),
account,
monoPass.tokenOfOwnerByIndex(address(this), 0)
);
}
}
/*
* @dev Handles the receipt of a multiple ERC1155 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 onERC721Received(
address operator,
address,
uint256,
bytes calldata
) external returns (bytes4) {
if (operator == address(this) && msg.sender == address(monoPass)) {
return
bytes4(
keccak256("onERC721Received(address,address,uint256,bytes)")
);
}
return "";
}
}// 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.0.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the 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.0.0) (token/ERC721/extensions/IERC721Enumerable.sol)
pragma solidity ^0.8.20;
import {IERC721} from "../IERC721.sol";
/**
* @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Enumerable is IERC721 {
/**
* @dev Returns the total amount of tokens stored by the contract.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns a token ID owned by `owner` at a given `index` of its token list.
* Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
*/
function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);
/**
* @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
* Use along with {totalSupply} to enumerate all tokens.
*/
function tokenByIndex(uint256 index) external view returns (uint256);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721.sol)
pragma solidity ^0.8.20;
import {IERC165} from "../../utils/introspection/IERC165.sol";
/**
* @dev Required interface of an ERC721 compliant contract.
*/
interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
*/
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/**
* @dev Returns the number of tokens in ``owner``'s account.
*/
function balanceOf(address owner) external view returns (uint256 balance);
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) external view returns (address owner);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon
* a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external;
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must have been allowed to move this token by either {approve} or
* {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon
* a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(address from, address to, uint256 tokenId) external;
/**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
* or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
* understand this adds an external call which potentially creates a reentrancy vulnerability.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 tokenId) external;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external;
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the address zero.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool approved) external;
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/
function isApprovedForAll(address owner, address operator) external view returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721Receiver.sol)
pragma solidity ^0.8.20;
/**
* @title ERC721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC721 asset contracts.
*/
interface IERC721Receiver {
/**
* @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
* by `operator` from `from`, this function is called.
*
* It must return its Solidity selector to confirm the token transfer.
* If any other value is returned or the interface is not implemented by the recipient, the transfer will be
* reverted.
*
* The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
*/
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)
pragma solidity ^0.8.20;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev The ETH balance of the account is not enough to perform the operation.
*/
error AddressInsufficientBalance(address account);
/**
* @dev There's no code at `target` (it is not a contract).
*/
error AddressEmptyCode(address target);
/**
* @dev A call to an address target failed. The target may have reverted.
*/
error FailedInnerCall();
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
if (address(this).balance < amount) {
revert AddressInsufficientBalance(address(this));
}
(bool success, ) = recipient.call{value: amount}("");
if (!success) {
revert FailedInnerCall();
}
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason or custom error, it is bubbled
* up by this function (like regular Solidity function calls). However, if
* the call reverted with no returned reason, this function reverts with a
* {FailedInnerCall} error.
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*/
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
if (address(this).balance < value) {
revert AddressInsufficientBalance(address(this));
}
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
* was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an
* unsuccessful call.
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata
) internal view returns (bytes memory) {
if (!success) {
_revert(returndata);
} else {
// only check if target is a contract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
if (returndata.length == 0 && target.code.length == 0) {
revert AddressEmptyCode(target);
}
return returndata;
}
}
/**
* @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
* revert reason or with a default {FailedInnerCall} error.
*/
function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
if (!success) {
_revert(returndata);
} else {
return returndata;
}
}
/**
* @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.
*/
function _revert(bytes memory returndata) private pure {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert FailedInnerCall();
}
}
}// 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;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Multicall.sol)
pragma solidity ^0.8.20;
import {Address} from "./Address.sol";
import {Context} from "./Context.sol";
/**
* @dev Provides a function to batch together multiple calls in a single external call.
*
* Consider any assumption about calldata validation performed by the sender may be violated if it's not especially
* careful about sending transactions invoking {multicall}. For example, a relay address that filters function
* selectors won't filter calls nested within a {multicall} operation.
*
* NOTE: Since 5.0.1 and 4.9.4, this contract identifies non-canonical contexts (i.e. `msg.sender` is not {_msgSender}).
* If a non-canonical context is identified, the following self `delegatecall` appends the last bytes of `msg.data`
* to the subcall. This makes it safe to use with {ERC2771Context}. Contexts that don't affect the resolution of
* {_msgSender} are not propagated to subcalls.
*/
abstract contract Multicall is Context {
/**
* @dev Receives and executes a batch of function calls on this contract.
* @custom:oz-upgrades-unsafe-allow-reachable delegatecall
*/
function multicall(bytes[] calldata data) external virtual returns (bytes[] memory results) {
bytes memory context = msg.sender == _msgSender()
? new bytes(0)
: msg.data[msg.data.length - _contextSuffixLength():];
results = new bytes[](data.length);
for (uint256 i = 0; i < data.length; i++) {
results[i] = Address.functionDelegateCall(address(this), bytes.concat(data[i], context));
}
return results;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Pausable.sol)
pragma solidity ^0.8.20;
import {Context} from "../utils/Context.sol";
/**
* @dev Contract module which allows children to implement an emergency stop
* mechanism that can be triggered by an authorized account.
*
* This module is used through inheritance. It will make available the
* modifiers `whenNotPaused` and `whenPaused`, which can be applied to
* the functions of your contract. Note that they will not be pausable by
* simply including this module, only once the modifiers are put in place.
*/
abstract contract Pausable is Context {
bool private _paused;
/**
* @dev Emitted when the pause is triggered by `account`.
*/
event Paused(address account);
/**
* @dev Emitted when the pause is lifted by `account`.
*/
event Unpaused(address account);
/**
* @dev The operation failed because the contract is paused.
*/
error EnforcedPause();
/**
* @dev The operation failed because the contract is not paused.
*/
error ExpectedPause();
/**
* @dev Initializes the contract in unpaused state.
*/
constructor() {
_paused = false;
}
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*
* Requirements:
*
* - The contract must not be paused.
*/
modifier whenNotPaused() {
_requireNotPaused();
_;
}
/**
* @dev Modifier to make a function callable only when the contract is paused.
*
* Requirements:
*
* - The contract must be paused.
*/
modifier whenPaused() {
_requirePaused();
_;
}
/**
* @dev Returns true if the contract is paused, and false otherwise.
*/
function paused() public view virtual returns (bool) {
return _paused;
}
/**
* @dev Throws if the contract is paused.
*/
function _requireNotPaused() internal view virtual {
if (paused()) {
revert EnforcedPause();
}
}
/**
* @dev Throws if the contract is not paused.
*/
function _requirePaused() internal view virtual {
if (!paused()) {
revert ExpectedPause();
}
}
/**
* @dev Triggers stopped state.
*
* Requirements:
*
* - The contract must not be paused.
*/
function _pause() internal virtual whenNotPaused {
_paused = true;
emit Paused(_msgSender());
}
/**
* @dev Returns to normal state.
*
* Requirements:
*
* - The contract must be paused.
*/
function _unpause() internal virtual whenPaused {
_paused = false;
emit Unpaused(_msgSender());
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/ReentrancyGuard.sol)
pragma solidity ^0.8.20;
/**
* @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;
/**
* @dev Unauthorized reentrant call.
*/
error ReentrancyGuardReentrantCall();
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
if (_status == ENTERED) {
revert ReentrancyGuardReentrantCall();
}
// 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) (utils/structs/EnumerableSet.sol)
// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.
pragma solidity ^0.8.20;
/**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are made on the ordering.
*
* ```solidity
* contract Example {
* // Add the library methods
* using EnumerableSet for EnumerableSet.AddressSet;
*
* // Declare a set state variable
* EnumerableSet.AddressSet private mySet;
* }
* ```
*
* As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
* and `uint256` (`UintSet`) are supported.
*
* [WARNING]
* ====
* Trying to delete such a structure from storage will likely result in data corruption, rendering the structure
* unusable.
* See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.
*
* In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an
* array of EnumerableSet.
* ====
*/
library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are just wrappers around the
// underlying Set.
// This means that we can only create new EnumerableSets for types that fit
// in bytes32.
struct Set {
// Storage of set values
bytes32[] _values;
// Position is the index of the value in the `values` array plus 1.
// Position 0 is used to mean a value is not in the set.
mapping(bytes32 value => uint256) _positions;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function _add(Set storage set, bytes32 value) private returns (bool) {
if (!_contains(set, value)) {
set._values.push(value);
// The value is stored at length-1, but we add 1 to all indexes
// and use 0 as a sentinel value
set._positions[value] = set._values.length;
return true;
} else {
return false;
}
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function _remove(Set storage set, bytes32 value) private returns (bool) {
// We cache the value's position to prevent multiple reads from the same storage slot
uint256 position = set._positions[value];
if (position != 0) {
// Equivalent to contains(set, value)
// To delete an element from the _values array in O(1), we swap the element to delete with the last one in
// the array, and then remove the last element (sometimes called as 'swap and pop').
// This modifies the order of the array, as noted in {at}.
uint256 valueIndex = position - 1;
uint256 lastIndex = set._values.length - 1;
if (valueIndex != lastIndex) {
bytes32 lastValue = set._values[lastIndex];
// Move the lastValue to the index where the value to delete is
set._values[valueIndex] = lastValue;
// Update the tracked position of the lastValue (that was just moved)
set._positions[lastValue] = position;
}
// Delete the slot where the moved value was stored
set._values.pop();
// Delete the tracked position for the deleted slot
delete set._positions[value];
return true;
} else {
return false;
}
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function _contains(Set storage set, bytes32 value) private view returns (bool) {
return set._positions[value] != 0;
}
/**
* @dev Returns the number of values on the set. O(1).
*/
function _length(Set storage set) private view returns (uint256) {
return set._values.length;
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function _at(Set storage set, uint256 index) private view returns (bytes32) {
return set._values[index];
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function _values(Set storage set) private view returns (bytes32[] memory) {
return set._values;
}
// Bytes32Set
struct Bytes32Set {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
return _add(set._inner, value);
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
return _remove(set._inner, value);
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
return _contains(set._inner, value);
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(Bytes32Set storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
return _at(set._inner, index);
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
bytes32[] memory store = _values(set._inner);
bytes32[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}
return result;
}
// AddressSet
struct AddressSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(AddressSet storage set, address value) internal returns (bool) {
return _add(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(AddressSet storage set, address value) internal returns (bool) {
return _remove(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(AddressSet storage set, address value) internal view returns (bool) {
return _contains(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(AddressSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(AddressSet storage set, uint256 index) internal view returns (address) {
return address(uint160(uint256(_at(set._inner, index))));
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(AddressSet storage set) internal view returns (address[] memory) {
bytes32[] memory store = _values(set._inner);
address[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}
return result;
}
// UintSet
struct UintSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(UintSet storage set, uint256 value) internal returns (bool) {
return _add(set._inner, bytes32(value));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(UintSet storage set, uint256 value) internal returns (bool) {
return _remove(set._inner, bytes32(value));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(UintSet storage set, uint256 value) internal view returns (bool) {
return _contains(set._inner, bytes32(value));
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(UintSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(UintSet storage set, uint256 index) internal view returns (uint256) {
return uint256(_at(set._inner, index));
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(UintSet storage set) internal view returns (uint256[] memory) {
bytes32[] memory store = _values(set._inner);
uint256[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}
return result;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";
interface IMonoPass is IERC721, IERC721Enumerable {
function safeMint(address to) external;
function burn(uint256 tokenId) external;
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
interface IMUSD is IERC20 {
function getPrice() external view returns (uint256 price);
function deposit(uint256 amount) external;
}{
"optimizer": {
"enabled": true,
"runs": 1
},
"evmVersion": "paris",
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_monoPass","type":"address"},{"internalType":"address","name":"_musd","type":"address"},{"internalType":"uint256","name":"_rewardPerSecond","type":"uint256"},{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_endTime","type":"uint256"},{"internalType":"uint256","name":"_lockTime","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[],"name":"EnforcedPause","type":"error"},{"inputs":[],"name":"ExpectedPause","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"passId","type":"uint256"}],"name":"Deposit","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":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"passId","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"PRECISION_FACTOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"accTokenPerShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_passId","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"depositTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"emergencyWithdrawNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getPassOwned","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastRewardTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"monoPass","outputs":[{"internalType":"contract IMonoPass","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes[]","name":"data","type":"bytes[]"}],"name":"multicall","outputs":[{"internalType":"bytes[]","name":"results","type":"bytes[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"musd","outputs":[{"internalType":"contract IMUSD","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"pendingReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardPerSecond","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_lockTime","type":"uint256"}],"name":"setLockTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stopReward","outputs":[],"stateMutability":"nonpayable","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":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_endTime","type":"uint256"}],"name":"updateStartAndEndBlocks","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardPerSecond","type":"uint256"}],"name":"updaterewardPerSecond","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_passId","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
0x608060405264e8d4a51000600a553480156200001a57600080fd5b5060405162001db538038062001db58339810160408190526200003d9162000144565b6000805460ff1916905533806200006e57604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b6200007981620000ce565b5060018055600280546001600160a01b039788166001600160a01b03199182161790915560038054969097169516949094179094556009919091556007819055600692909255600891909155600455620001a1565b600080546001600160a01b03838116610100818102610100600160a81b0319851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b80516001600160a01b03811681146200013f57600080fd5b919050565b60008060008060008060c087890312156200015e57600080fd5b620001698762000127565b9550620001796020880162000127565b945060408701519350606087015192506080870151915060a087015190509295509295509295565b611c0480620001b16000396000f3fe608060405234801561001057600080fd5b50600436106101805760003560e01c80630d66808714610185578063150b7a02146101a15780631959a002146101cd5780632e1a7d4d146102095780633197cbb61461021e5780633f4ba83a146102275780633ff2fa711461022f5780634e71d92d1461024f5780635c975abb146102575780636ff1c9bc1461026d578063715018a61461028057806378e979251461028857806380dc067214610291578063817b1cd2146102995780638456cb59146102a25780638da5cb5b146102aa5780638f10369a146102bf5780638f662915146102c8578063922b8079146102d15780639231cf74146102e45780639513997f146102ed5780639db9d6d614610300578063ac9650d814610321578063ae04d45d14610341578063b6b55f2514610354578063c884ef8314610367578063cab666d014610387578063ccd34cd51461039a578063ce29882a146103a3578063d1226809146103b6578063f2fde38b146103c9578063f40f0f52146103dc575b600080fd5b61018e60045481565b6040519081526020015b60405180910390f35b6101b46101af3660046116fd565b6103ef565b6040516001600160e01b03199091168152602001610198565b6101f46101db366004611797565b600d602052600090815260409020805460019091015482565b60408051928352602083019190915201610198565b61021c6102173660046117b2565b61044c565b005b61018e60065481565b61021c610739565b61018e61023d3660046117b2565b600f6020526000908152604090205481565b61021c61074b565b60005460ff166040519015158152602001610198565b61021c61027b366004611797565b610898565b61021c6109b8565b61018e60075481565b61021c6109ca565b61018e600b5481565b61021c6109d8565b6102b26109e8565b60405161019891906117cb565b61018e60095481565b61018e60055481565b61021c6102df3660046117df565b6109fc565b61018e60085481565b61021c6102fb366004611809565b610b0e565b61031361030e366004611797565b610c10565b604051610198929190611866565b61033461032f36600461188b565b610db1565b6040516101989190611923565b61021c61034f3660046117b2565b610ea4565b61021c6103623660046117b2565b610eb1565b61018e610375366004611797565b600c6020526000908152604090205481565b6003546102b2906001600160a01b031681565b61018e600a5481565b61021c6103b13660046117b2565b6110eb565b6002546102b2906001600160a01b031681565b61021c6103d7366004611797565b611119565b61018e6103ea366004611797565b611154565b60006001600160a01b0386163014801561041357506002546001600160a01b031633145b1561043f57507f150b7a023d4804d13e8c85fb27262cb750cf6ba9f9dd3bb30d90f482ceeb4b1f610443565b5060005b95945050505050565b610454611239565b336000908152600e6020526040902061046d908261125d565b6104bc5760405162461bcd60e51b815260206004820152601b60248201527a5573657220646f6573206e6f74206f776e2074686973207061737360281b60448201526064015b60405180910390fd5b6004546000828152600f602052604090205442916104d9916119b3565b1061050f5760405162461bcd60e51b8152602060048201526006602482015265131bd8dad95960d21b60448201526064016104b3565b336000908152600d60205260409020610526611269565b60008160010154600a54600554846000015461054291906119c6565b61054c91906119dd565b61055691906119ff565b8254909150610567906001906119ff565b8255600254604051635c46a7ef60e11b81526001600160a01b039091169063b88d4fde9061059d90309033908890600401611a12565b600060405180830381600087803b1580156105b757600080fd5b505af11580156105cb573d6000803e3d6000fd5b505050506001600b546105de91906119ff565b600b55336000908152600e602052604090206105fa90846112d9565b506000838152600f602052604081205580156106de5760035460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb906106429033908590600401611a45565b6020604051808303816000875af1158015610661573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106859190611a5e565b50336000908152600c60205260409020546106a19082906119b3565b336000818152600c602052604090819020929092559051600080516020611baf833981519152906106d59084815260200190565b60405180910390a25b600a5460055483546106f091906119c6565b6106fa91906119dd565b600183015560405183815233907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a94243649060200160405180910390a2505050565b6107416112e5565b610749611317565b565b610753611239565b336000908152600d6020526040902061076a611269565b60008160010154600a54600554846000015461078691906119c6565b61079091906119dd565b61079a91906119ff565b905080156108705760035460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb906107d49033908590600401611a45565b6020604051808303816000875af11580156107f3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108179190611a5e565b50336000908152600c60205260409020546108339082906119b3565b336000818152600c602052604090819020929092559051600080516020611baf833981519152906108679084815260200190565b60405180910390a25b600a54600554835461088291906119c6565b61088c91906119dd565b82600101819055505050565b6108a06112e5565b6001600160a01b0381166108de5760405133904780156108fc02916000818181858888f193505050501580156108da573d6000803e3d6000fd5b5050565b6040516370a0823160e01b81526001600160a01b0382169063a9059cbb90339083906370a08231906109149030906004016117cb565b602060405180830381865afa158015610931573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109559190611a80565b6040518363ffffffff1660e01b8152600401610972929190611a45565b6020604051808303816000875af1158015610991573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108da9190611a5e565b50565b6109c06112e5565b6107496000611363565b6109d26112e5565b42600655565b6109e06112e5565b6107496113bc565b60005461010090046001600160a01b031690565b610a046112e5565b60005b81811015610b0957600254604051632f745c5960e01b81526001600160a01b03909116906342842e0e90309086908490632f745c5990610a4e908590600090600401611a45565b602060405180830381865afa158015610a6b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a8f9190611a80565b6040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b158015610ade57600080fd5b505af1158015610af2573d6000803e3d6000fd5b505050508080610b0190611a99565b915050610a07565b505050565b610b166112e5565b6007544210610b375760405162461bcd60e51b81526004016104b390611ab2565b808210610b9c5760405162461bcd60e51b815260206004820152602d60248201527f4e657720737461727454696d65206d757374206265206c6f776572207468616e60448201526c206e657720656e64426c6f636b60981b60648201526084016104b3565b814210610c035760405162461bcd60e51b815260206004820152602f60248201527f4e657720737461727454696d65206d757374206265206869676865722074686160448201526e6e2063757272656e7420626c6f636b60881b60648201526084016104b3565b6007829055600655600855565b6001600160a01b0381166000908152600e602052604081206060918291610c36906113f9565b6001600160401b03811115610c4d57610c4d611adc565b604051908082528060200260200182016040528015610c76578160200160208202803683370190505b506001600160a01b0385166000908152600e6020526040812091925090610c9c906113f9565b6001600160401b03811115610cb357610cb3611adc565b604051908082528060200260200182016040528015610cdc578160200160208202803683370190505b50905060005b6001600160a01b0386166000908152600e60205260409020610d03906113f9565b811015610da6576001600160a01b0386166000908152600e60205260409020610d2c9082611403565b838281518110610d3e57610d3e611af2565b602002602001018181525050600f6000848381518110610d6057610d60611af2565b6020026020010151815260200190815260200160002054828281518110610d8957610d89611af2565b602090810291909101015280610d9e81611a99565b915050610ce2565b509094909350915050565b604080516000815260208101909152606090826001600160401b03811115610ddb57610ddb611adc565b604051908082528060200260200182016040528015610e0e57816020015b6060815260200190600190039081610df95790505b50915060005b83811015610e9b57610e6b30868684818110610e3257610e32611af2565b9050602002810190610e449190611b08565b85604051602001610e5793929190611b55565b60405160208183030381529060405261140f565b838281518110610e7d57610e7d611af2565b60200260200101819052508080610e9390611a99565b915050610e14565b50505b92915050565b610eac6112e5565b600455565b610eb9611239565b336000908152600d60205260409020610ed0611269565b805415610fdf5760008160010154600a546005548460000154610ef391906119c6565b610efd91906119dd565b610f0791906119ff565b90508015610fdd5760035460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb90610f419033908590600401611a45565b6020604051808303816000875af1158015610f60573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f849190611a5e565b50336000908152600c6020526040902054610fa09082906119b3565b336000818152600c602052604090819020929092559051600080516020611baf83398151915290610fd49084815260200190565b60405180910390a25b505b8054610fec9060016119b3565b8155600254604051635c46a7ef60e11b81526001600160a01b039091169063b88d4fde9061102290339030908790600401611a12565b600060405180830381600087803b15801561103c57600080fd5b505af1158015611050573d6000803e3d6000fd5b50505050600b54600161106391906119b3565b600b55336000908152600e6020526040902061107f908361147c565b506000828152600f60205260409020429055600a5460055482546110a391906119c6565b6110ad91906119dd565b600182015560405182815233907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9060200160405180910390a25050565b6110f36112e5565b60075442106111145760405162461bcd60e51b81526004016104b390611ab2565b600955565b6111216112e5565b6001600160a01b03811661114b576000604051631e4fbdf760e01b81526004016104b391906117cb565b6109b581611363565b6001600160a01b0381166000908152600d602052604081206008544211801561117e5750600b5415155b1561120757600061119160085442611488565b90506000600954826111a391906119c6565b90506000600b54600a54836111b891906119c6565b6111c291906119dd565b6005546111cf91906119b3565b90508360010154600a548286600001546111e991906119c6565b6111f391906119dd565b6111fd91906119ff565b9695505050505050565b6001810154600a54600554835461121e91906119c6565b61122891906119dd565b61123291906119ff565b9392505050565b60005460ff16156107495760405163d93c066560e01b815260040160405180910390fd5b600061123283836114c3565b600854421161127457565b600b546000036112845742600855565b600061129260085442611488565b90506000600954826112a491906119c6565b9050600b54600a54826112b791906119c6565b6112c191906119dd565b6005546112ce91906119b3565b600555505042600855565b600061123283836114db565b336112ee6109e8565b6001600160a01b031614610749573360405163118cdaa760e01b81526004016104b391906117cb565b61131f6115ce565b6000805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b60405161135991906117cb565b60405180910390a1565b600080546001600160a01b03838116610100818102610100600160a81b0319851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b6113c4611239565b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861134c3390565b6000610e9e825490565b600061123283836115f1565b6060600080846001600160a01b03168460405161142c9190611b7c565b600060405180830381855af49150503d8060008114611467576040519150601f19603f3d011682016040523d82523d6000602084013e61146c565b606091505b509150915061044385838361161b565b6000611232838361166e565b600060065482116114a45761149d83836119ff565b9050610e9e565b60065483106114b557506000610e9e565b8260065461149d91906119ff565b60009081526001919091016020526040902054151590565b600081815260018301602052604081205480156115c45760006114ff6001836119ff565b8554909150600090611513906001906119ff565b905080821461157857600086600001828154811061153357611533611af2565b906000526020600020015490508087600001848154811061155657611556611af2565b6000918252602080832090910192909255918252600188019052604090208390555b855486908061158957611589611b98565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610e9e565b6000915050610e9e565b60005460ff1661074957604051638dfc202b60e01b815260040160405180910390fd5b600082600001828154811061160857611608611af2565b9060005260206000200154905092915050565b6060826116305761162b826116b8565b611232565b815115801561164757506001600160a01b0384163b155b156116675783604051639996b31560e01b81526004016104b391906117cb565b5092915050565b600061167a83836114c3565b6116b057508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610e9e565b506000610e9e565b8051156116c85780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b80356001600160a01b03811681146116f857600080fd5b919050565b60008060008060006080868803121561171557600080fd5b61171e866116e1565b945061172c602087016116e1565b93506040860135925060608601356001600160401b038082111561174f57600080fd5b818801915088601f83011261176357600080fd5b81358181111561177257600080fd5b89602082850101111561178457600080fd5b9699959850939650602001949392505050565b6000602082840312156117a957600080fd5b611232826116e1565b6000602082840312156117c457600080fd5b5035919050565b6001600160a01b0391909116815260200190565b600080604083850312156117f257600080fd5b6117fb836116e1565b946020939093013593505050565b6000806040838503121561181c57600080fd5b50508035926020909101359150565b600081518084526020808501945080840160005b8381101561185b5781518752958201959082019060010161183f565b509495945050505050565b604081526000611879604083018561182b565b8281036020840152610443818561182b565b6000806020838503121561189e57600080fd5b82356001600160401b03808211156118b557600080fd5b818501915085601f8301126118c957600080fd5b8135818111156118d857600080fd5b8660208260051b85010111156118ed57600080fd5b60209290920196919550909350505050565b60005b8381101561191a578181015183820152602001611902565b50506000910152565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b8281101561199057878503603f1901845281518051808752611971818989018a85016118ff565b601f01601f19169590950186019450928501929085019060010161194a565b5092979650505050505050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610e9e57610e9e61199d565b8082028115828204841417610e9e57610e9e61199d565b6000826119fa57634e487b7160e01b600052601260045260246000fd5b500490565b81810381811115610e9e57610e9e61199d565b6001600160a01b039384168152919092166020820152604081019190915260806060820181905260009082015260a00190565b6001600160a01b03929092168252602082015260400190565b600060208284031215611a7057600080fd5b8151801515811461123257600080fd5b600060208284031215611a9257600080fd5b5051919050565b600060018201611aab57611aab61199d565b5060010190565b60208082526010908201526f141bdbdb081a185cc81cdd185c9d195960821b604082015260600190565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6000808335601e19843603018112611b1f57600080fd5b8301803591506001600160401b03821115611b3957600080fd5b602001915036819003821315611b4e57600080fd5b9250929050565b828482376000838201600081528351611b728183602088016118ff565b0195945050505050565b60008251611b8e8184602087016118ff565b9190910192915050565b634e487b7160e01b600052603160045260246000fdfe47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d4a26469706673582212202b78514e8f4f3c71520b5a6fbffe7ca2aed4f30d24c6d8d1d68c61dc8593cce064736f6c63430008140033000000000000000000000000e8a6a24cd6586d69b4d0e414917c07dd1d4cebb5000000000000000000000000837fe561e9c5dfa73f607fda679295dbc2be5e4000000000000000000000000000000000000000000000000000000bb2389697f20000000000000000000000000000000000000000000000000000000066b9b3870000000000000000000000000000000000000000000000000000000067a7018700000000000000000000000000000000000000000000000000000000000d2f00
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101805760003560e01c80630d66808714610185578063150b7a02146101a15780631959a002146101cd5780632e1a7d4d146102095780633197cbb61461021e5780633f4ba83a146102275780633ff2fa711461022f5780634e71d92d1461024f5780635c975abb146102575780636ff1c9bc1461026d578063715018a61461028057806378e979251461028857806380dc067214610291578063817b1cd2146102995780638456cb59146102a25780638da5cb5b146102aa5780638f10369a146102bf5780638f662915146102c8578063922b8079146102d15780639231cf74146102e45780639513997f146102ed5780639db9d6d614610300578063ac9650d814610321578063ae04d45d14610341578063b6b55f2514610354578063c884ef8314610367578063cab666d014610387578063ccd34cd51461039a578063ce29882a146103a3578063d1226809146103b6578063f2fde38b146103c9578063f40f0f52146103dc575b600080fd5b61018e60045481565b6040519081526020015b60405180910390f35b6101b46101af3660046116fd565b6103ef565b6040516001600160e01b03199091168152602001610198565b6101f46101db366004611797565b600d602052600090815260409020805460019091015482565b60408051928352602083019190915201610198565b61021c6102173660046117b2565b61044c565b005b61018e60065481565b61021c610739565b61018e61023d3660046117b2565b600f6020526000908152604090205481565b61021c61074b565b60005460ff166040519015158152602001610198565b61021c61027b366004611797565b610898565b61021c6109b8565b61018e60075481565b61021c6109ca565b61018e600b5481565b61021c6109d8565b6102b26109e8565b60405161019891906117cb565b61018e60095481565b61018e60055481565b61021c6102df3660046117df565b6109fc565b61018e60085481565b61021c6102fb366004611809565b610b0e565b61031361030e366004611797565b610c10565b604051610198929190611866565b61033461032f36600461188b565b610db1565b6040516101989190611923565b61021c61034f3660046117b2565b610ea4565b61021c6103623660046117b2565b610eb1565b61018e610375366004611797565b600c6020526000908152604090205481565b6003546102b2906001600160a01b031681565b61018e600a5481565b61021c6103b13660046117b2565b6110eb565b6002546102b2906001600160a01b031681565b61021c6103d7366004611797565b611119565b61018e6103ea366004611797565b611154565b60006001600160a01b0386163014801561041357506002546001600160a01b031633145b1561043f57507f150b7a023d4804d13e8c85fb27262cb750cf6ba9f9dd3bb30d90f482ceeb4b1f610443565b5060005b95945050505050565b610454611239565b336000908152600e6020526040902061046d908261125d565b6104bc5760405162461bcd60e51b815260206004820152601b60248201527a5573657220646f6573206e6f74206f776e2074686973207061737360281b60448201526064015b60405180910390fd5b6004546000828152600f602052604090205442916104d9916119b3565b1061050f5760405162461bcd60e51b8152602060048201526006602482015265131bd8dad95960d21b60448201526064016104b3565b336000908152600d60205260409020610526611269565b60008160010154600a54600554846000015461054291906119c6565b61054c91906119dd565b61055691906119ff565b8254909150610567906001906119ff565b8255600254604051635c46a7ef60e11b81526001600160a01b039091169063b88d4fde9061059d90309033908890600401611a12565b600060405180830381600087803b1580156105b757600080fd5b505af11580156105cb573d6000803e3d6000fd5b505050506001600b546105de91906119ff565b600b55336000908152600e602052604090206105fa90846112d9565b506000838152600f602052604081205580156106de5760035460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb906106429033908590600401611a45565b6020604051808303816000875af1158015610661573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106859190611a5e565b50336000908152600c60205260409020546106a19082906119b3565b336000818152600c602052604090819020929092559051600080516020611baf833981519152906106d59084815260200190565b60405180910390a25b600a5460055483546106f091906119c6565b6106fa91906119dd565b600183015560405183815233907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a94243649060200160405180910390a2505050565b6107416112e5565b610749611317565b565b610753611239565b336000908152600d6020526040902061076a611269565b60008160010154600a54600554846000015461078691906119c6565b61079091906119dd565b61079a91906119ff565b905080156108705760035460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb906107d49033908590600401611a45565b6020604051808303816000875af11580156107f3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108179190611a5e565b50336000908152600c60205260409020546108339082906119b3565b336000818152600c602052604090819020929092559051600080516020611baf833981519152906108679084815260200190565b60405180910390a25b600a54600554835461088291906119c6565b61088c91906119dd565b82600101819055505050565b6108a06112e5565b6001600160a01b0381166108de5760405133904780156108fc02916000818181858888f193505050501580156108da573d6000803e3d6000fd5b5050565b6040516370a0823160e01b81526001600160a01b0382169063a9059cbb90339083906370a08231906109149030906004016117cb565b602060405180830381865afa158015610931573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109559190611a80565b6040518363ffffffff1660e01b8152600401610972929190611a45565b6020604051808303816000875af1158015610991573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108da9190611a5e565b50565b6109c06112e5565b6107496000611363565b6109d26112e5565b42600655565b6109e06112e5565b6107496113bc565b60005461010090046001600160a01b031690565b610a046112e5565b60005b81811015610b0957600254604051632f745c5960e01b81526001600160a01b03909116906342842e0e90309086908490632f745c5990610a4e908590600090600401611a45565b602060405180830381865afa158015610a6b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a8f9190611a80565b6040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b158015610ade57600080fd5b505af1158015610af2573d6000803e3d6000fd5b505050508080610b0190611a99565b915050610a07565b505050565b610b166112e5565b6007544210610b375760405162461bcd60e51b81526004016104b390611ab2565b808210610b9c5760405162461bcd60e51b815260206004820152602d60248201527f4e657720737461727454696d65206d757374206265206c6f776572207468616e60448201526c206e657720656e64426c6f636b60981b60648201526084016104b3565b814210610c035760405162461bcd60e51b815260206004820152602f60248201527f4e657720737461727454696d65206d757374206265206869676865722074686160448201526e6e2063757272656e7420626c6f636b60881b60648201526084016104b3565b6007829055600655600855565b6001600160a01b0381166000908152600e602052604081206060918291610c36906113f9565b6001600160401b03811115610c4d57610c4d611adc565b604051908082528060200260200182016040528015610c76578160200160208202803683370190505b506001600160a01b0385166000908152600e6020526040812091925090610c9c906113f9565b6001600160401b03811115610cb357610cb3611adc565b604051908082528060200260200182016040528015610cdc578160200160208202803683370190505b50905060005b6001600160a01b0386166000908152600e60205260409020610d03906113f9565b811015610da6576001600160a01b0386166000908152600e60205260409020610d2c9082611403565b838281518110610d3e57610d3e611af2565b602002602001018181525050600f6000848381518110610d6057610d60611af2565b6020026020010151815260200190815260200160002054828281518110610d8957610d89611af2565b602090810291909101015280610d9e81611a99565b915050610ce2565b509094909350915050565b604080516000815260208101909152606090826001600160401b03811115610ddb57610ddb611adc565b604051908082528060200260200182016040528015610e0e57816020015b6060815260200190600190039081610df95790505b50915060005b83811015610e9b57610e6b30868684818110610e3257610e32611af2565b9050602002810190610e449190611b08565b85604051602001610e5793929190611b55565b60405160208183030381529060405261140f565b838281518110610e7d57610e7d611af2565b60200260200101819052508080610e9390611a99565b915050610e14565b50505b92915050565b610eac6112e5565b600455565b610eb9611239565b336000908152600d60205260409020610ed0611269565b805415610fdf5760008160010154600a546005548460000154610ef391906119c6565b610efd91906119dd565b610f0791906119ff565b90508015610fdd5760035460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb90610f419033908590600401611a45565b6020604051808303816000875af1158015610f60573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f849190611a5e565b50336000908152600c6020526040902054610fa09082906119b3565b336000818152600c602052604090819020929092559051600080516020611baf83398151915290610fd49084815260200190565b60405180910390a25b505b8054610fec9060016119b3565b8155600254604051635c46a7ef60e11b81526001600160a01b039091169063b88d4fde9061102290339030908790600401611a12565b600060405180830381600087803b15801561103c57600080fd5b505af1158015611050573d6000803e3d6000fd5b50505050600b54600161106391906119b3565b600b55336000908152600e6020526040902061107f908361147c565b506000828152600f60205260409020429055600a5460055482546110a391906119c6565b6110ad91906119dd565b600182015560405182815233907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9060200160405180910390a25050565b6110f36112e5565b60075442106111145760405162461bcd60e51b81526004016104b390611ab2565b600955565b6111216112e5565b6001600160a01b03811661114b576000604051631e4fbdf760e01b81526004016104b391906117cb565b6109b581611363565b6001600160a01b0381166000908152600d602052604081206008544211801561117e5750600b5415155b1561120757600061119160085442611488565b90506000600954826111a391906119c6565b90506000600b54600a54836111b891906119c6565b6111c291906119dd565b6005546111cf91906119b3565b90508360010154600a548286600001546111e991906119c6565b6111f391906119dd565b6111fd91906119ff565b9695505050505050565b6001810154600a54600554835461121e91906119c6565b61122891906119dd565b61123291906119ff565b9392505050565b60005460ff16156107495760405163d93c066560e01b815260040160405180910390fd5b600061123283836114c3565b600854421161127457565b600b546000036112845742600855565b600061129260085442611488565b90506000600954826112a491906119c6565b9050600b54600a54826112b791906119c6565b6112c191906119dd565b6005546112ce91906119b3565b600555505042600855565b600061123283836114db565b336112ee6109e8565b6001600160a01b031614610749573360405163118cdaa760e01b81526004016104b391906117cb565b61131f6115ce565b6000805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b60405161135991906117cb565b60405180910390a1565b600080546001600160a01b03838116610100818102610100600160a81b0319851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b6113c4611239565b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861134c3390565b6000610e9e825490565b600061123283836115f1565b6060600080846001600160a01b03168460405161142c9190611b7c565b600060405180830381855af49150503d8060008114611467576040519150601f19603f3d011682016040523d82523d6000602084013e61146c565b606091505b509150915061044385838361161b565b6000611232838361166e565b600060065482116114a45761149d83836119ff565b9050610e9e565b60065483106114b557506000610e9e565b8260065461149d91906119ff565b60009081526001919091016020526040902054151590565b600081815260018301602052604081205480156115c45760006114ff6001836119ff565b8554909150600090611513906001906119ff565b905080821461157857600086600001828154811061153357611533611af2565b906000526020600020015490508087600001848154811061155657611556611af2565b6000918252602080832090910192909255918252600188019052604090208390555b855486908061158957611589611b98565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610e9e565b6000915050610e9e565b60005460ff1661074957604051638dfc202b60e01b815260040160405180910390fd5b600082600001828154811061160857611608611af2565b9060005260206000200154905092915050565b6060826116305761162b826116b8565b611232565b815115801561164757506001600160a01b0384163b155b156116675783604051639996b31560e01b81526004016104b391906117cb565b5092915050565b600061167a83836114c3565b6116b057508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610e9e565b506000610e9e565b8051156116c85780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b80356001600160a01b03811681146116f857600080fd5b919050565b60008060008060006080868803121561171557600080fd5b61171e866116e1565b945061172c602087016116e1565b93506040860135925060608601356001600160401b038082111561174f57600080fd5b818801915088601f83011261176357600080fd5b81358181111561177257600080fd5b89602082850101111561178457600080fd5b9699959850939650602001949392505050565b6000602082840312156117a957600080fd5b611232826116e1565b6000602082840312156117c457600080fd5b5035919050565b6001600160a01b0391909116815260200190565b600080604083850312156117f257600080fd5b6117fb836116e1565b946020939093013593505050565b6000806040838503121561181c57600080fd5b50508035926020909101359150565b600081518084526020808501945080840160005b8381101561185b5781518752958201959082019060010161183f565b509495945050505050565b604081526000611879604083018561182b565b8281036020840152610443818561182b565b6000806020838503121561189e57600080fd5b82356001600160401b03808211156118b557600080fd5b818501915085601f8301126118c957600080fd5b8135818111156118d857600080fd5b8660208260051b85010111156118ed57600080fd5b60209290920196919550909350505050565b60005b8381101561191a578181015183820152602001611902565b50506000910152565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b8281101561199057878503603f1901845281518051808752611971818989018a85016118ff565b601f01601f19169590950186019450928501929085019060010161194a565b5092979650505050505050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610e9e57610e9e61199d565b8082028115828204841417610e9e57610e9e61199d565b6000826119fa57634e487b7160e01b600052601260045260246000fd5b500490565b81810381811115610e9e57610e9e61199d565b6001600160a01b039384168152919092166020820152604081019190915260806060820181905260009082015260a00190565b6001600160a01b03929092168252602082015260400190565b600060208284031215611a7057600080fd5b8151801515811461123257600080fd5b600060208284031215611a9257600080fd5b5051919050565b600060018201611aab57611aab61199d565b5060010190565b60208082526010908201526f141bdbdb081a185cc81cdd185c9d195960821b604082015260600190565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6000808335601e19843603018112611b1f57600080fd5b8301803591506001600160401b03821115611b3957600080fd5b602001915036819003821315611b4e57600080fd5b9250929050565b828482376000838201600081528351611b728183602088016118ff565b0195945050505050565b60008251611b8e8184602087016118ff565b9190910192915050565b634e487b7160e01b600052603160045260246000fdfe47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d4a26469706673582212202b78514e8f4f3c71520b5a6fbffe7ca2aed4f30d24c6d8d1d68c61dc8593cce064736f6c63430008140033
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 35 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.