More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 1,488 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 16157150 | 717 days ago | IN | 0 ETH | 0.00197776 | ||||
Withdraw | 16024351 | 735 days ago | IN | 0 ETH | 0.00139594 | ||||
Deposit | 15963556 | 744 days ago | IN | 0 ETH | 0.00408281 | ||||
Withdraw | 15879934 | 755 days ago | IN | 0 ETH | 0.00112989 | ||||
Deposit | 15853511 | 759 days ago | IN | 0 ETH | 0.0018141 | ||||
Deposit | 15844720 | 760 days ago | IN | 0 ETH | 0.00217496 | ||||
Withdraw | 15780055 | 769 days ago | IN | 0 ETH | 0.00206346 | ||||
Withdraw | 15763979 | 771 days ago | IN | 0 ETH | 0.00118481 | ||||
Withdraw | 15736393 | 775 days ago | IN | 0 ETH | 0.0012269 | ||||
Withdraw | 15678688 | 783 days ago | IN | 0 ETH | 0.00128724 | ||||
Withdraw | 15613836 | 792 days ago | IN | 0 ETH | 0.00058311 | ||||
Withdraw | 15604238 | 794 days ago | IN | 0 ETH | 0.001198 | ||||
Withdraw | 15589943 | 796 days ago | IN | 0 ETH | 0.0039599 | ||||
Withdraw | 15554465 | 801 days ago | IN | 0 ETH | 0.00137985 | ||||
Withdraw | 15544144 | 802 days ago | IN | 0 ETH | 0.00086719 | ||||
Withdraw | 15522381 | 806 days ago | IN | 0 ETH | 0.00166521 | ||||
Withdraw | 15508736 | 808 days ago | IN | 0 ETH | 0.00087908 | ||||
Withdraw | 15470446 | 814 days ago | IN | 0 ETH | 0.00082649 | ||||
Withdraw | 15463894 | 815 days ago | IN | 0 ETH | 0.00062653 | ||||
Withdraw | 15425060 | 821 days ago | IN | 0 ETH | 0.00081835 | ||||
Withdraw | 15425057 | 821 days ago | IN | 0 ETH | 0.00084617 | ||||
Withdraw | 15420402 | 822 days ago | IN | 0 ETH | 0.00097178 | ||||
Withdraw | 15414886 | 823 days ago | IN | 0 ETH | 0.00093916 | ||||
Withdraw | 15403478 | 825 days ago | IN | 0 ETH | 0.00234484 | ||||
Withdraw | 15402732 | 825 days ago | IN | 0 ETH | 0.00064164 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
MoopyStaking
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT /* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@......@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%%&@@@....@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%%%%%%%%%%%%%%%#((%%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@%%%%%%%%%%@@@@@@@((((((((((%@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@( ((((((((((@@(%%%%%%%%@@ @@(((((((%%@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@ ((((((((((((((%%%%@. @@@ @&(((((%%.@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@ ((((((((((((((%%@.. @&&&&&&@ @(((%%%..@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@ ((((((((((((((@... @&**&&&%,@. @((%%....&@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@ @*(((((((((((((@... @@** &@ @%%......,@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@ ((((((((((((@.... .@* &&@ @&.........@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@ ((((((((((#@.... @ ,,,,,&@ @*.........#@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@ ((((((((((%@.... @@@@@ @*@..........@@@@@@@@@@@@@@@@ @@@@@@@@@@@@( (((((((((((((@@..........@@@@@@%............,%%@@@@@@@@@@@@@@@ @@@@@@@@@@@@@((((((((((((((((((@@#(((((((&@@ /@@@............%%%%&@@@@@@@@@@@@@@ @@@@@@@@@@@@@((((((((((((((((((((((((((((@ ****@@..........%%%%%%@@@@@@@@@@@@@@ @@@@@@@@@@@@@@(((((((((((((((((((((((((((@& ***@........%%%%%%%%@@@@@@@@@@@@@@ @@@@@@@@@@@@@@#(((((((((((((((((((((((((((@ ****@((/...%%%%%%%%%%@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@(((((((((((((#(((((((((((((@ ****@((((((((%%%%%%%%@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@((((((%%%......(((((((((((@ .**@(((((((((((((%%%@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@%%%%.............(((((((((@ ***@((((((((((((((((%@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@%%....%%............((((((((@@&(((((((((((((@@((((@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@%.....@@...............(((((((((((((((((((((@@((((@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@......@@...................(((((((((((((((((@(((((@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@%.....@@................ /((((((((((@((((@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@%%%#...@@........... @@((((@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@%%%%%%%@@... @((((@@@@@@@@@@@@@@@@ */ /**************************************** * @author: 0xlunes * * @team: Moopy * **************************************** * NFT Staking implementation for Moopy * * * * Reward distribution based on * * Masterchef implementation * ****************************************/ pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; // Additional method available for Mooney interface IMooney is IERC20 { function mint(address to, uint256 amount) external; } // Additional methods available for sMoopy interface ISmoopy is IERC721 { function mint(address to, uint256 id) external; function burn(address from, uint256 tokenId) external; } contract MoopyStaking is Ownable { using SafeERC20 for IERC20; // Info of each user. struct UserInfo { uint256 shares; // total Moopies staked uint256 rewardDebt; // amount of Moonies claimed at last update mapping(uint256 => bool) stakedIds; // all tokens staked by the user } // Moopy Contract IERC721 public moopy = IERC721(0xeEE01E9364C2bF5AfF24328FB5bDFb98fF5cEeE3); // Mooney Contract IMooney public mooney = IMooney(0x2A86C73326771795E7f7e6Fd1ea7fdAB993dEc9D); // Smoopy Contract ISmoopy public smoopy = ISmoopy(0x46421dA2579E1151212e11FDf61cCd836254b27D); // Treasury wallet address address public devAddress = 0x1111d7B4976cc9310b15BcB3123395b308451111; // Total Mooney emission per Ethereum block uint256 public rewardsPerBlock = 27550000000000000000; // * 10e18 // Block number when staking rewards starts. uint256 public startBlock = 1659013200; // Update rewards once per block uint256 public lastRewardBlock = startBlock; // Accumulated rewards per Moopy staked uint256 public accRewardsPerShare = 0; // Allows holders to stake Moopy bool public isStakingActive = false; // Details of all stakers mapping(address => UserInfo) public userInfo; event Deposit(address indexed user, uint256[] tokenIds); event Withdraw(address indexed user, uint256[] tokenIds); event EmergencyWithdraw(address indexed user, uint256[] tokenIds); constructor() {} function updatePool() public { if(block.number < lastRewardBlock) { return; } uint256 totalShares = moopy.balanceOf(address(this)); if(totalShares == 0) { lastRewardBlock = block.number; return; } uint256 duration = block.number - lastRewardBlock; uint256 accRewards = rewardsPerBlock * duration; mooney.mint(devAddress, accRewards * 3 / 20); mooney.mint(address(this), accRewards); accRewardsPerShare += accRewards / totalShares; lastRewardBlock = block.number; } function deposit(uint256[] calldata _tokenIds) public { require(isStakingActive, "staking not active"); UserInfo storage user = userInfo[msg.sender]; updatePool(); if (user.shares > 0) { uint256 pending = user.shares * accRewardsPerShare - user.rewardDebt; mooney.transfer(msg.sender, pending); } uint256 length = _tokenIds.length; for(uint256 i = 0; i < length; i++) { moopy.transferFrom(msg.sender, address(this), _tokenIds[i]); user.stakedIds[_tokenIds[i]] = true; smoopy.mint(msg.sender, _tokenIds[i]); } user.shares += length; user.rewardDebt = user.shares * accRewardsPerShare; emit Deposit(msg.sender, _tokenIds); } function withdraw(uint256[] calldata _tokenIds) public { UserInfo storage user = userInfo[msg.sender]; updatePool(); uint256 pending = user.shares * accRewardsPerShare - user.rewardDebt; mooney.transfer(msg.sender, pending); uint256 length = _tokenIds.length; user.shares -= length; user.rewardDebt = user.shares * accRewardsPerShare; for (uint256 i; i < length; i++){ require(user.stakedIds[_tokenIds[i]], "token not staked"); moopy.transferFrom(address(this), msg.sender, _tokenIds[i]); user.stakedIds[_tokenIds[i]] = false; if (smoopy.ownerOf(_tokenIds[i]) != address(0)) { smoopy.burn(smoopy.ownerOf(_tokenIds[i]), _tokenIds[i]); } } emit Withdraw(msg.sender, _tokenIds); } function claimRewards() public { UserInfo storage user = userInfo[msg.sender]; updatePool(); uint256 pending = user.shares * accRewardsPerShare - user.rewardDebt; mooney.transfer(msg.sender, pending); user.rewardDebt = user.shares * accRewardsPerShare; } function emergencyWithdraw(uint256[] memory _tokenIds) public { UserInfo storage user = userInfo[msg.sender]; uint256 length = _tokenIds.length; for (uint256 i; i < length; i++){ require(user.stakedIds[_tokenIds[i]], "token not staked"); moopy.transferFrom(address(this), msg.sender, _tokenIds[i]); user.stakedIds[_tokenIds[i]] = false; } user.shares = 0; user.rewardDebt = 0; emit EmergencyWithdraw(msg.sender, _tokenIds); } // public view function getStakedTokens(address _user) external view returns(uint256[] memory) { UserInfo storage user = userInfo[_user]; require(user.shares > 0, "no staked tokens"); uint256 count; uint256 quantity = user.shares; uint256 length = 5000; uint256[] memory wallet = new uint256[](quantity); for (uint256 i; i < length; i++) { if (user.stakedIds[i]) { wallet[count++] = i; if (count == quantity) break; } } return wallet; } function pendingRewards(address _user) external view returns(uint256) { UserInfo storage user = userInfo[_user]; uint256 totalShares = moopy.balanceOf(address(this)); uint256 _accRewardsPerShare = accRewardsPerShare; if(block.number >= lastRewardBlock && totalShares != 0) { uint256 duration = block.number - lastRewardBlock; uint256 accRewards = rewardsPerBlock * duration; _accRewardsPerShare += accRewards / totalShares; } return user.shares * _accRewardsPerShare - user.rewardDebt; } // only owner function setStartBlock(uint256 _startBlock) public onlyOwner { startBlock = _startBlock; lastRewardBlock = startBlock; } function setRewardsPerBlock(uint256 _rewardsPerBlock) public onlyOwner{ rewardsPerBlock = _rewardsPerBlock; } function setStakingActive() public onlyOwner { isStakingActive = !isStakingActive; } function setMoopy(address _newMoopyAddress) public onlyOwner { moopy = IERC721(_newMoopyAddress); } function setSmoopy(address _newSmoopyAddress) public onlyOwner { smoopy = ISmoopy(_newSmoopyAddress); } function setMooney(address _newMooneyAddress) public onlyOwner { mooney = IMooney(_newMooneyAddress); } function setDevAddr(address _devAddr) public onlyOwner { devAddress = _devAddr; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"accRewardsPerShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getStakedTokens","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isStakingActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastRewardBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mooney","outputs":[{"internalType":"contract IMooney","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"moopy","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"pendingRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardsPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_devAddr","type":"address"}],"name":"setDevAddr","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newMooneyAddress","type":"address"}],"name":"setMooney","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newMoopyAddress","type":"address"}],"name":"setMoopy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardsPerBlock","type":"uint256"}],"name":"setRewardsPerBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newSmoopyAddress","type":"address"}],"name":"setSmoopy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setStakingActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startBlock","type":"uint256"}],"name":"setStartBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"smoopy","outputs":[{"internalType":"contract ISmoopy","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startBlock","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":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"shares","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405273eee01e9364c2bf5aff24328fb5bdfb98ff5ceee3600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550732a86c73326771795e7f7e6fd1ea7fdab993dec9d600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507346421da2579e1151212e11fdf61ccd836254b27d600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550731111d7b4976cc9310b15bcb3123395b308451111600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555068017e554308aa0300006005556362e2885060065560065460075560006008556000600960006101000a81548160ff021916908315150217905550348015620001a057600080fd5b50620001c1620001b5620001c760201b60201c565b620001cf60201b60201c565b62000293565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612b3580620002a36000396000f3fe608060405234801561001057600080fd5b50600436106101a95760003560e01c80636ebb64a2116100f9578063a9f8d18111610097578063e3161ddd11610071578063e3161ddd1461044b578063ec807db114610455578063f2fde38b14610473578063f35e4a6e1461048f576101a9565b8063a9f8d181146103f5578063c1e88ae214610413578063d1941b061461042f576101a9565b8063827aa08f116100d3578063827aa08f146103815780638da5cb5b1461039f578063983d95ce146103bd578063a1003b29146103d9576101a9565b80636ebb64a21461033d578063715018a6146103595780637cbaccd514610363576101a9565b806346ac8ca0116101665780635bdc225c116101405780635bdc225c146102b35780635eeb6710146102d157806361f64457146102ef57806363c28db11461030d576101a9565b806346ac8ca01461025d57806348cd4cb114610279578063598b8e7114610297576101a9565b8063038b05c1146101ae57806307915a08146101b85780631959a002146101d457806331d7a26214610205578063372500ab146102355780633ad10ef61461023f575b600080fd5b6101b66104ab565b005b6101d260048036038101906101cd9190611f91565b610553565b005b6101ee60048036038101906101e99190611f91565b610613565b6040516101fc929190611fd7565b60405180910390f35b61021f600480360381019061021a9190611f91565b610637565b60405161022c9190612000565b60405180910390f35b61023d6107b2565b005b6102476108f0565b604051610254919061202a565b60405180910390f35b61027760048036038101906102729190611f91565b610916565b005b6102816109d6565b60405161028e9190612000565b60405180910390f35b6102b160048036038101906102ac91906120aa565b6109dc565b005b6102bb610da5565b6040516102c89190612156565b60405180910390f35b6102d9610dcb565b6040516102e69190612000565b60405180910390f35b6102f7610dd1565b604051610304919061218c565b60405180910390f35b61032760048036038101906103229190611f91565b610de4565b6040516103349190612265565b60405180910390f35b61035760048036038101906103529190611f91565b610f5c565b005b61036161101c565b005b61036b6110a4565b6040516103789190612000565b60405180910390f35b6103896110aa565b60405161039691906122a8565b60405180910390f35b6103a76110d0565b6040516103b4919061202a565b60405180910390f35b6103d760048036038101906103d291906120aa565b6110f9565b005b6103f360048036038101906103ee91906122ef565b61169b565b005b6103fd611721565b60405161040a9190612000565b60405180910390f35b61042d60048036038101906104289190611f91565b611727565b005b6104496004803603810190610444919061246b565b6117e7565b005b610453611a25565b005b61045d611ca6565b60405161046a91906124d5565b60405180910390f35b61048d60048036038101906104889190611f91565b611ccc565b005b6104a960048036038101906104a491906122ef565b611dc4565b005b6104b3611e53565b73ffffffffffffffffffffffffffffffffffffffff166104d16110d0565b73ffffffffffffffffffffffffffffffffffffffff1614610527576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161051e9061254d565b60405180910390fd5b600960009054906101000a900460ff1615600960006101000a81548160ff021916908315150217905550565b61055b611e53565b73ffffffffffffffffffffffffffffffffffffffff166105796110d0565b73ffffffffffffffffffffffffffffffffffffffff16146105cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105c69061254d565b60405180910390fd5b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600a6020528060005260406000206000915090508060000154908060010154905082565b600080600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016106d8919061202a565b60206040518083038186803b1580156106f057600080fd5b505afa158015610704573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107289190612582565b9050600060085490506007544310158015610744575060008214155b156107895760006007544361075991906125de565b905060008160055461076b9190612612565b90508381610779919061269b565b8361078491906126cc565b925050505b826001015481846000015461079e9190612612565b6107a891906125de565b9350505050919050565b6000600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506107fd611a25565b6000816001015460085483600001546108169190612612565b61082091906125de565b9050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b815260040161087f929190612722565b602060405180830381600087803b15801561089957600080fd5b505af11580156108ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108d19190612777565b5060085482600001546108e49190612612565b82600101819055505050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61091e611e53565b73ffffffffffffffffffffffffffffffffffffffff1661093c6110d0565b73ffffffffffffffffffffffffffffffffffffffff1614610992576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109899061254d565b60405180910390fd5b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60065481565b600960009054906101000a900460ff16610a2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a22906127f0565b60405180910390fd5b6000600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050610a76611a25565b600081600001541115610b5a57600081600101546008548360000154610a9c9190612612565b610aa691906125de565b9050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401610b05929190612722565b602060405180830381600087803b158015610b1f57600080fd5b505af1158015610b33573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b579190612777565b50505b600083839050905060005b81811015610d1957600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330888886818110610bc057610bbf612810565b5b905060200201356040518463ffffffff1660e01b8152600401610be59392919061283f565b600060405180830381600087803b158015610bff57600080fd5b505af1158015610c13573d6000803e3d6000fd5b505050506001836002016000878785818110610c3257610c31612810565b5b90506020020135815260200190815260200160002060006101000a81548160ff021916908315150217905550600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1933878785818110610cb057610caf612810565b5b905060200201356040518363ffffffff1660e01b8152600401610cd4929190612722565b600060405180830381600087803b158015610cee57600080fd5b505af1158015610d02573d6000803e3d6000fd5b505050508080610d1190612876565b915050610b65565b5080826000016000828254610d2e91906126cc565b925050819055506008548260000154610d479190612612565b82600101819055503373ffffffffffffffffffffffffffffffffffffffff167fff409334d2645d660e7cfa41a637aa21f45a79ecb9660a6931aa923bf75577c78585604051610d9792919061292f565b60405180910390a250505050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60055481565b600960009054906101000a900460ff1681565b60606000600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000816000015411610e70576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e679061299f565b60405180910390fd5b600080826000015490506000611388905060008267ffffffffffffffff811115610e9d57610e9c61232d565b5b604051908082528060200260200182016040528015610ecb5781602001602082028036833780820191505090505b50905060005b82811015610f4e5785600201600082815260200190815260200160002060009054906101000a900460ff1615610f3b5780828680610f0e90612876565b975081518110610f2157610f20612810565b5b60200260200101818152505083851415610f3a57610f4e565b5b8080610f4690612876565b915050610ed1565b508095505050505050919050565b610f64611e53565b73ffffffffffffffffffffffffffffffffffffffff16610f826110d0565b73ffffffffffffffffffffffffffffffffffffffff1614610fd8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fcf9061254d565b60405180910390fd5b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611024611e53565b73ffffffffffffffffffffffffffffffffffffffff166110426110d0565b73ffffffffffffffffffffffffffffffffffffffff1614611098576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161108f9061254d565b60405180910390fd5b6110a26000611e5b565b565b60085481565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050611144611a25565b60008160010154600854836000015461115d9190612612565b61116791906125de565b9050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b81526004016111c6929190612722565b602060405180830381600087803b1580156111e057600080fd5b505af11580156111f4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112189190612777565b5060008484905090508083600001600082825461123591906125de565b92505081905550600854836000015461124e9190612612565b836001018190555060005b818110156116435783600201600087878481811061127a57611279612810565b5b90506020020135815260200190815260200160002060009054906101000a900460ff166112dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112d390612a0b565b60405180910390fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd303389898681811061132f5761132e612810565b5b905060200201356040518463ffffffff1660e01b81526004016113549392919061283f565b600060405180830381600087803b15801561136e57600080fd5b505af1158015611382573d6000803e3d6000fd5b5050505060008460020160008888858181106113a1576113a0612810565b5b90506020020135815260200190815260200160002060006101000a81548160ff021916908315150217905550600073ffffffffffffffffffffffffffffffffffffffff16600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e88888581811061143657611435612810565b5b905060200201356040518263ffffffff1660e01b81526004016114599190612000565b60206040518083038186803b15801561147157600080fd5b505afa158015611485573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114a99190612a40565b73ffffffffffffffffffffffffffffffffffffffff161461163057600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639dc29fac600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e89898681811061155357611552612810565b5b905060200201356040518263ffffffff1660e01b81526004016115769190612000565b60206040518083038186803b15801561158e57600080fd5b505afa1580156115a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115c69190612a40565b8888858181106115d9576115d8612810565b5b905060200201356040518363ffffffff1660e01b81526004016115fd929190612722565b600060405180830381600087803b15801561161757600080fd5b505af115801561162b573d6000803e3d6000fd5b505050505b808061163b90612876565b915050611259565b503373ffffffffffffffffffffffffffffffffffffffff167f67e9df8b3c7743c9f1b625ba4f2b4e601206dbd46ed5c33c85a1242e4d23a2d1868660405161168c92919061292f565b60405180910390a25050505050565b6116a3611e53565b73ffffffffffffffffffffffffffffffffffffffff166116c16110d0565b73ffffffffffffffffffffffffffffffffffffffff1614611717576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161170e9061254d565b60405180910390fd5b8060058190555050565b60075481565b61172f611e53565b73ffffffffffffffffffffffffffffffffffffffff1661174d6110d0565b73ffffffffffffffffffffffffffffffffffffffff16146117a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161179a9061254d565b60405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008251905060005b818110156119bd5782600201600085838151811061185457611853612810565b5b6020026020010151815260200190815260200160002060009054906101000a900460ff166118b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118ae90612a0b565b60405180910390fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd303387858151811061190a57611909612810565b5b60200260200101516040518463ffffffff1660e01b81526004016119309392919061283f565b600060405180830381600087803b15801561194a57600080fd5b505af115801561195e573d6000803e3d6000fd5b50505050600083600201600086848151811061197d5761197c612810565b5b6020026020010151815260200190815260200160002060006101000a81548160ff02191690831515021790555080806119b590612876565b915050611833565b5060008260000181905550600082600101819055503373ffffffffffffffffffffffffffffffffffffffff167f1ad6082f7aa3e32095e38fd4c0bf76fa2bb7584e81474cf3519d2dea4081181c84604051611a189190612265565b60405180910390a2505050565b600754431015611a3457611ca4565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611a91919061202a565b60206040518083038186803b158015611aa957600080fd5b505afa158015611abd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ae19190612582565b90506000811415611af9574360078190555050611ca4565b600060075443611b0991906125de565b9050600081600554611b1b9190612612565b9050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f19600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166014600385611b8d9190612612565b611b97919061269b565b6040518363ffffffff1660e01b8152600401611bb4929190612722565b600060405180830381600087803b158015611bce57600080fd5b505af1158015611be2573d6000803e3d6000fd5b50505050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1930836040518363ffffffff1660e01b8152600401611c43929190612722565b600060405180830381600087803b158015611c5d57600080fd5b505af1158015611c71573d6000803e3d6000fd5b505050508281611c81919061269b565b60086000828254611c9291906126cc565b92505081905550436007819055505050505b565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611cd4611e53565b73ffffffffffffffffffffffffffffffffffffffff16611cf26110d0565b73ffffffffffffffffffffffffffffffffffffffff1614611d48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d3f9061254d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611db8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611daf90612adf565b60405180910390fd5b611dc181611e5b565b50565b611dcc611e53565b73ffffffffffffffffffffffffffffffffffffffff16611dea6110d0565b73ffffffffffffffffffffffffffffffffffffffff1614611e40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e379061254d565b60405180910390fd5b8060068190555060065460078190555050565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611f5e82611f33565b9050919050565b611f6e81611f53565b8114611f7957600080fd5b50565b600081359050611f8b81611f65565b92915050565b600060208284031215611fa757611fa6611f29565b5b6000611fb584828501611f7c565b91505092915050565b6000819050919050565b611fd181611fbe565b82525050565b6000604082019050611fec6000830185611fc8565b611ff96020830184611fc8565b9392505050565b60006020820190506120156000830184611fc8565b92915050565b61202481611f53565b82525050565b600060208201905061203f600083018461201b565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f84011261206a57612069612045565b5b8235905067ffffffffffffffff8111156120875761208661204a565b5b6020830191508360208202830111156120a3576120a261204f565b5b9250929050565b600080602083850312156120c1576120c0611f29565b5b600083013567ffffffffffffffff8111156120df576120de611f2e565b5b6120eb85828601612054565b92509250509250929050565b6000819050919050565b600061211c61211761211284611f33565b6120f7565b611f33565b9050919050565b600061212e82612101565b9050919050565b600061214082612123565b9050919050565b61215081612135565b82525050565b600060208201905061216b6000830184612147565b92915050565b60008115159050919050565b61218681612171565b82525050565b60006020820190506121a1600083018461217d565b92915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6121dc81611fbe565b82525050565b60006121ee83836121d3565b60208301905092915050565b6000602082019050919050565b6000612212826121a7565b61221c81856121b2565b9350612227836121c3565b8060005b8381101561225857815161223f88826121e2565b975061224a836121fa565b92505060018101905061222b565b5085935050505092915050565b6000602082019050818103600083015261227f8184612207565b905092915050565b600061229282612123565b9050919050565b6122a281612287565b82525050565b60006020820190506122bd6000830184612299565b92915050565b6122cc81611fbe565b81146122d757600080fd5b50565b6000813590506122e9816122c3565b92915050565b60006020828403121561230557612304611f29565b5b6000612313848285016122da565b91505092915050565b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6123658261231c565b810181811067ffffffffffffffff821117156123845761238361232d565b5b80604052505050565b6000612397611f1f565b90506123a3828261235c565b919050565b600067ffffffffffffffff8211156123c3576123c261232d565b5b602082029050602081019050919050565b60006123e76123e2846123a8565b61238d565b9050808382526020820190506020840283018581111561240a5761240961204f565b5b835b81811015612433578061241f88826122da565b84526020840193505060208101905061240c565b5050509392505050565b600082601f83011261245257612451612045565b5b81356124628482602086016123d4565b91505092915050565b60006020828403121561248157612480611f29565b5b600082013567ffffffffffffffff81111561249f5761249e611f2e565b5b6124ab8482850161243d565b91505092915050565b60006124bf82612123565b9050919050565b6124cf816124b4565b82525050565b60006020820190506124ea60008301846124c6565b92915050565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006125376020836124f0565b915061254282612501565b602082019050919050565b600060208201905081810360008301526125668161252a565b9050919050565b60008151905061257c816122c3565b92915050565b60006020828403121561259857612597611f29565b5b60006125a68482850161256d565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006125e982611fbe565b91506125f483611fbe565b925082821015612607576126066125af565b5b828203905092915050565b600061261d82611fbe565b915061262883611fbe565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612661576126606125af565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006126a682611fbe565b91506126b183611fbe565b9250826126c1576126c061266c565b5b828204905092915050565b60006126d782611fbe565b91506126e283611fbe565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612717576127166125af565b5b828201905092915050565b6000604082019050612737600083018561201b565b6127446020830184611fc8565b9392505050565b61275481612171565b811461275f57600080fd5b50565b6000815190506127718161274b565b92915050565b60006020828403121561278d5761278c611f29565b5b600061279b84828501612762565b91505092915050565b7f7374616b696e67206e6f74206163746976650000000000000000000000000000600082015250565b60006127da6012836124f0565b91506127e5826127a4565b602082019050919050565b60006020820190508181036000830152612809816127cd565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000606082019050612854600083018661201b565b612861602083018561201b565b61286e6040830184611fc8565b949350505050565b600061288182611fbe565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156128b4576128b36125af565b5b600182019050919050565b600080fd5b82818337600083830152505050565b60006128df83856121b2565b93507f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115612912576129116128bf565b5b6020830292506129238385846128c4565b82840190509392505050565b6000602082019050818103600083015261294a8184866128d3565b90509392505050565b7f6e6f207374616b656420746f6b656e7300000000000000000000000000000000600082015250565b60006129896010836124f0565b915061299482612953565b602082019050919050565b600060208201905081810360008301526129b88161297c565b9050919050565b7f746f6b656e206e6f74207374616b656400000000000000000000000000000000600082015250565b60006129f56010836124f0565b9150612a00826129bf565b602082019050919050565b60006020820190508181036000830152612a24816129e8565b9050919050565b600081519050612a3a81611f65565b92915050565b600060208284031215612a5657612a55611f29565b5b6000612a6484828501612a2b565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000612ac96026836124f0565b9150612ad482612a6d565b604082019050919050565b60006020820190508181036000830152612af881612abc565b905091905056fea264697066735822122047fef452bf6f0716161311074d1b761e4b9aea1885f2940454394267cc9a0cfe64736f6c63430008090033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101a95760003560e01c80636ebb64a2116100f9578063a9f8d18111610097578063e3161ddd11610071578063e3161ddd1461044b578063ec807db114610455578063f2fde38b14610473578063f35e4a6e1461048f576101a9565b8063a9f8d181146103f5578063c1e88ae214610413578063d1941b061461042f576101a9565b8063827aa08f116100d3578063827aa08f146103815780638da5cb5b1461039f578063983d95ce146103bd578063a1003b29146103d9576101a9565b80636ebb64a21461033d578063715018a6146103595780637cbaccd514610363576101a9565b806346ac8ca0116101665780635bdc225c116101405780635bdc225c146102b35780635eeb6710146102d157806361f64457146102ef57806363c28db11461030d576101a9565b806346ac8ca01461025d57806348cd4cb114610279578063598b8e7114610297576101a9565b8063038b05c1146101ae57806307915a08146101b85780631959a002146101d457806331d7a26214610205578063372500ab146102355780633ad10ef61461023f575b600080fd5b6101b66104ab565b005b6101d260048036038101906101cd9190611f91565b610553565b005b6101ee60048036038101906101e99190611f91565b610613565b6040516101fc929190611fd7565b60405180910390f35b61021f600480360381019061021a9190611f91565b610637565b60405161022c9190612000565b60405180910390f35b61023d6107b2565b005b6102476108f0565b604051610254919061202a565b60405180910390f35b61027760048036038101906102729190611f91565b610916565b005b6102816109d6565b60405161028e9190612000565b60405180910390f35b6102b160048036038101906102ac91906120aa565b6109dc565b005b6102bb610da5565b6040516102c89190612156565b60405180910390f35b6102d9610dcb565b6040516102e69190612000565b60405180910390f35b6102f7610dd1565b604051610304919061218c565b60405180910390f35b61032760048036038101906103229190611f91565b610de4565b6040516103349190612265565b60405180910390f35b61035760048036038101906103529190611f91565b610f5c565b005b61036161101c565b005b61036b6110a4565b6040516103789190612000565b60405180910390f35b6103896110aa565b60405161039691906122a8565b60405180910390f35b6103a76110d0565b6040516103b4919061202a565b60405180910390f35b6103d760048036038101906103d291906120aa565b6110f9565b005b6103f360048036038101906103ee91906122ef565b61169b565b005b6103fd611721565b60405161040a9190612000565b60405180910390f35b61042d60048036038101906104289190611f91565b611727565b005b6104496004803603810190610444919061246b565b6117e7565b005b610453611a25565b005b61045d611ca6565b60405161046a91906124d5565b60405180910390f35b61048d60048036038101906104889190611f91565b611ccc565b005b6104a960048036038101906104a491906122ef565b611dc4565b005b6104b3611e53565b73ffffffffffffffffffffffffffffffffffffffff166104d16110d0565b73ffffffffffffffffffffffffffffffffffffffff1614610527576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161051e9061254d565b60405180910390fd5b600960009054906101000a900460ff1615600960006101000a81548160ff021916908315150217905550565b61055b611e53565b73ffffffffffffffffffffffffffffffffffffffff166105796110d0565b73ffffffffffffffffffffffffffffffffffffffff16146105cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105c69061254d565b60405180910390fd5b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600a6020528060005260406000206000915090508060000154908060010154905082565b600080600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016106d8919061202a565b60206040518083038186803b1580156106f057600080fd5b505afa158015610704573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107289190612582565b9050600060085490506007544310158015610744575060008214155b156107895760006007544361075991906125de565b905060008160055461076b9190612612565b90508381610779919061269b565b8361078491906126cc565b925050505b826001015481846000015461079e9190612612565b6107a891906125de565b9350505050919050565b6000600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506107fd611a25565b6000816001015460085483600001546108169190612612565b61082091906125de565b9050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b815260040161087f929190612722565b602060405180830381600087803b15801561089957600080fd5b505af11580156108ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108d19190612777565b5060085482600001546108e49190612612565b82600101819055505050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61091e611e53565b73ffffffffffffffffffffffffffffffffffffffff1661093c6110d0565b73ffffffffffffffffffffffffffffffffffffffff1614610992576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109899061254d565b60405180910390fd5b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60065481565b600960009054906101000a900460ff16610a2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a22906127f0565b60405180910390fd5b6000600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050610a76611a25565b600081600001541115610b5a57600081600101546008548360000154610a9c9190612612565b610aa691906125de565b9050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401610b05929190612722565b602060405180830381600087803b158015610b1f57600080fd5b505af1158015610b33573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b579190612777565b50505b600083839050905060005b81811015610d1957600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330888886818110610bc057610bbf612810565b5b905060200201356040518463ffffffff1660e01b8152600401610be59392919061283f565b600060405180830381600087803b158015610bff57600080fd5b505af1158015610c13573d6000803e3d6000fd5b505050506001836002016000878785818110610c3257610c31612810565b5b90506020020135815260200190815260200160002060006101000a81548160ff021916908315150217905550600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1933878785818110610cb057610caf612810565b5b905060200201356040518363ffffffff1660e01b8152600401610cd4929190612722565b600060405180830381600087803b158015610cee57600080fd5b505af1158015610d02573d6000803e3d6000fd5b505050508080610d1190612876565b915050610b65565b5080826000016000828254610d2e91906126cc565b925050819055506008548260000154610d479190612612565b82600101819055503373ffffffffffffffffffffffffffffffffffffffff167fff409334d2645d660e7cfa41a637aa21f45a79ecb9660a6931aa923bf75577c78585604051610d9792919061292f565b60405180910390a250505050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60055481565b600960009054906101000a900460ff1681565b60606000600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000816000015411610e70576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e679061299f565b60405180910390fd5b600080826000015490506000611388905060008267ffffffffffffffff811115610e9d57610e9c61232d565b5b604051908082528060200260200182016040528015610ecb5781602001602082028036833780820191505090505b50905060005b82811015610f4e5785600201600082815260200190815260200160002060009054906101000a900460ff1615610f3b5780828680610f0e90612876565b975081518110610f2157610f20612810565b5b60200260200101818152505083851415610f3a57610f4e565b5b8080610f4690612876565b915050610ed1565b508095505050505050919050565b610f64611e53565b73ffffffffffffffffffffffffffffffffffffffff16610f826110d0565b73ffffffffffffffffffffffffffffffffffffffff1614610fd8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fcf9061254d565b60405180910390fd5b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611024611e53565b73ffffffffffffffffffffffffffffffffffffffff166110426110d0565b73ffffffffffffffffffffffffffffffffffffffff1614611098576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161108f9061254d565b60405180910390fd5b6110a26000611e5b565b565b60085481565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050611144611a25565b60008160010154600854836000015461115d9190612612565b61116791906125de565b9050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b81526004016111c6929190612722565b602060405180830381600087803b1580156111e057600080fd5b505af11580156111f4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112189190612777565b5060008484905090508083600001600082825461123591906125de565b92505081905550600854836000015461124e9190612612565b836001018190555060005b818110156116435783600201600087878481811061127a57611279612810565b5b90506020020135815260200190815260200160002060009054906101000a900460ff166112dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112d390612a0b565b60405180910390fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd303389898681811061132f5761132e612810565b5b905060200201356040518463ffffffff1660e01b81526004016113549392919061283f565b600060405180830381600087803b15801561136e57600080fd5b505af1158015611382573d6000803e3d6000fd5b5050505060008460020160008888858181106113a1576113a0612810565b5b90506020020135815260200190815260200160002060006101000a81548160ff021916908315150217905550600073ffffffffffffffffffffffffffffffffffffffff16600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e88888581811061143657611435612810565b5b905060200201356040518263ffffffff1660e01b81526004016114599190612000565b60206040518083038186803b15801561147157600080fd5b505afa158015611485573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114a99190612a40565b73ffffffffffffffffffffffffffffffffffffffff161461163057600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639dc29fac600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e89898681811061155357611552612810565b5b905060200201356040518263ffffffff1660e01b81526004016115769190612000565b60206040518083038186803b15801561158e57600080fd5b505afa1580156115a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115c69190612a40565b8888858181106115d9576115d8612810565b5b905060200201356040518363ffffffff1660e01b81526004016115fd929190612722565b600060405180830381600087803b15801561161757600080fd5b505af115801561162b573d6000803e3d6000fd5b505050505b808061163b90612876565b915050611259565b503373ffffffffffffffffffffffffffffffffffffffff167f67e9df8b3c7743c9f1b625ba4f2b4e601206dbd46ed5c33c85a1242e4d23a2d1868660405161168c92919061292f565b60405180910390a25050505050565b6116a3611e53565b73ffffffffffffffffffffffffffffffffffffffff166116c16110d0565b73ffffffffffffffffffffffffffffffffffffffff1614611717576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161170e9061254d565b60405180910390fd5b8060058190555050565b60075481565b61172f611e53565b73ffffffffffffffffffffffffffffffffffffffff1661174d6110d0565b73ffffffffffffffffffffffffffffffffffffffff16146117a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161179a9061254d565b60405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008251905060005b818110156119bd5782600201600085838151811061185457611853612810565b5b6020026020010151815260200190815260200160002060009054906101000a900460ff166118b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118ae90612a0b565b60405180910390fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd303387858151811061190a57611909612810565b5b60200260200101516040518463ffffffff1660e01b81526004016119309392919061283f565b600060405180830381600087803b15801561194a57600080fd5b505af115801561195e573d6000803e3d6000fd5b50505050600083600201600086848151811061197d5761197c612810565b5b6020026020010151815260200190815260200160002060006101000a81548160ff02191690831515021790555080806119b590612876565b915050611833565b5060008260000181905550600082600101819055503373ffffffffffffffffffffffffffffffffffffffff167f1ad6082f7aa3e32095e38fd4c0bf76fa2bb7584e81474cf3519d2dea4081181c84604051611a189190612265565b60405180910390a2505050565b600754431015611a3457611ca4565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611a91919061202a565b60206040518083038186803b158015611aa957600080fd5b505afa158015611abd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ae19190612582565b90506000811415611af9574360078190555050611ca4565b600060075443611b0991906125de565b9050600081600554611b1b9190612612565b9050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f19600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166014600385611b8d9190612612565b611b97919061269b565b6040518363ffffffff1660e01b8152600401611bb4929190612722565b600060405180830381600087803b158015611bce57600080fd5b505af1158015611be2573d6000803e3d6000fd5b50505050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1930836040518363ffffffff1660e01b8152600401611c43929190612722565b600060405180830381600087803b158015611c5d57600080fd5b505af1158015611c71573d6000803e3d6000fd5b505050508281611c81919061269b565b60086000828254611c9291906126cc565b92505081905550436007819055505050505b565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611cd4611e53565b73ffffffffffffffffffffffffffffffffffffffff16611cf26110d0565b73ffffffffffffffffffffffffffffffffffffffff1614611d48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d3f9061254d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611db8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611daf90612adf565b60405180910390fd5b611dc181611e5b565b50565b611dcc611e53565b73ffffffffffffffffffffffffffffffffffffffff16611dea6110d0565b73ffffffffffffffffffffffffffffffffffffffff1614611e40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e379061254d565b60405180910390fd5b8060068190555060065460078190555050565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611f5e82611f33565b9050919050565b611f6e81611f53565b8114611f7957600080fd5b50565b600081359050611f8b81611f65565b92915050565b600060208284031215611fa757611fa6611f29565b5b6000611fb584828501611f7c565b91505092915050565b6000819050919050565b611fd181611fbe565b82525050565b6000604082019050611fec6000830185611fc8565b611ff96020830184611fc8565b9392505050565b60006020820190506120156000830184611fc8565b92915050565b61202481611f53565b82525050565b600060208201905061203f600083018461201b565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f84011261206a57612069612045565b5b8235905067ffffffffffffffff8111156120875761208661204a565b5b6020830191508360208202830111156120a3576120a261204f565b5b9250929050565b600080602083850312156120c1576120c0611f29565b5b600083013567ffffffffffffffff8111156120df576120de611f2e565b5b6120eb85828601612054565b92509250509250929050565b6000819050919050565b600061211c61211761211284611f33565b6120f7565b611f33565b9050919050565b600061212e82612101565b9050919050565b600061214082612123565b9050919050565b61215081612135565b82525050565b600060208201905061216b6000830184612147565b92915050565b60008115159050919050565b61218681612171565b82525050565b60006020820190506121a1600083018461217d565b92915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6121dc81611fbe565b82525050565b60006121ee83836121d3565b60208301905092915050565b6000602082019050919050565b6000612212826121a7565b61221c81856121b2565b9350612227836121c3565b8060005b8381101561225857815161223f88826121e2565b975061224a836121fa565b92505060018101905061222b565b5085935050505092915050565b6000602082019050818103600083015261227f8184612207565b905092915050565b600061229282612123565b9050919050565b6122a281612287565b82525050565b60006020820190506122bd6000830184612299565b92915050565b6122cc81611fbe565b81146122d757600080fd5b50565b6000813590506122e9816122c3565b92915050565b60006020828403121561230557612304611f29565b5b6000612313848285016122da565b91505092915050565b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6123658261231c565b810181811067ffffffffffffffff821117156123845761238361232d565b5b80604052505050565b6000612397611f1f565b90506123a3828261235c565b919050565b600067ffffffffffffffff8211156123c3576123c261232d565b5b602082029050602081019050919050565b60006123e76123e2846123a8565b61238d565b9050808382526020820190506020840283018581111561240a5761240961204f565b5b835b81811015612433578061241f88826122da565b84526020840193505060208101905061240c565b5050509392505050565b600082601f83011261245257612451612045565b5b81356124628482602086016123d4565b91505092915050565b60006020828403121561248157612480611f29565b5b600082013567ffffffffffffffff81111561249f5761249e611f2e565b5b6124ab8482850161243d565b91505092915050565b60006124bf82612123565b9050919050565b6124cf816124b4565b82525050565b60006020820190506124ea60008301846124c6565b92915050565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006125376020836124f0565b915061254282612501565b602082019050919050565b600060208201905081810360008301526125668161252a565b9050919050565b60008151905061257c816122c3565b92915050565b60006020828403121561259857612597611f29565b5b60006125a68482850161256d565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006125e982611fbe565b91506125f483611fbe565b925082821015612607576126066125af565b5b828203905092915050565b600061261d82611fbe565b915061262883611fbe565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612661576126606125af565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006126a682611fbe565b91506126b183611fbe565b9250826126c1576126c061266c565b5b828204905092915050565b60006126d782611fbe565b91506126e283611fbe565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612717576127166125af565b5b828201905092915050565b6000604082019050612737600083018561201b565b6127446020830184611fc8565b9392505050565b61275481612171565b811461275f57600080fd5b50565b6000815190506127718161274b565b92915050565b60006020828403121561278d5761278c611f29565b5b600061279b84828501612762565b91505092915050565b7f7374616b696e67206e6f74206163746976650000000000000000000000000000600082015250565b60006127da6012836124f0565b91506127e5826127a4565b602082019050919050565b60006020820190508181036000830152612809816127cd565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000606082019050612854600083018661201b565b612861602083018561201b565b61286e6040830184611fc8565b949350505050565b600061288182611fbe565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156128b4576128b36125af565b5b600182019050919050565b600080fd5b82818337600083830152505050565b60006128df83856121b2565b93507f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115612912576129116128bf565b5b6020830292506129238385846128c4565b82840190509392505050565b6000602082019050818103600083015261294a8184866128d3565b90509392505050565b7f6e6f207374616b656420746f6b656e7300000000000000000000000000000000600082015250565b60006129896010836124f0565b915061299482612953565b602082019050919050565b600060208201905081810360008301526129b88161297c565b9050919050565b7f746f6b656e206e6f74207374616b656400000000000000000000000000000000600082015250565b60006129f56010836124f0565b9150612a00826129bf565b602082019050919050565b60006020820190508181036000830152612a24816129e8565b9050919050565b600081519050612a3a81611f65565b92915050565b600060208284031215612a5657612a55611f29565b5b6000612a6484828501612a2b565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000612ac96026836124f0565b9150612ad482612a6d565b604082019050919050565b60006020820190508181036000830152612af881612abc565b905091905056fea264697066735822122047fef452bf6f0716161311074d1b761e4b9aea1885f2940454394267cc9a0cfe64736f6c63430008090033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.