Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
YohToken
Compiler Version
v0.8.10+commit.fc410830
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.10; import "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20BurnableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/math/SafeMathUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/IERC721EnumerableUpgradeable.sol"; contract YohToken is ERC20BurnableUpgradeable, OwnableUpgradeable { using SafeMathUpgradeable for uint256; uint256 public MAX_WALLET_STAKED; // 175 / 100 = 75% uint256 public MAX_MULTIPLIER; address nullAddress; address public yokaiAddress; address public yokaiOracle; //Mapping of yokai to timestamp mapping(uint256 => uint256) internal tokenIdToTimeStamp; //Mapping of yokai to staker mapping(uint256 => address) internal tokenIdToStaker; //Mapping of staker to yokai mapping(address => uint256[]) internal stakerToTokenIds; address public boostAddress; address public oracleVerification; uint256 public claimNonce; bool public pauseClaim; mapping(address => bool) public pauseAddress; // Initializer function (replaces constructor) function initialize() public initializer { __ERC20_init("Yoh Token", "YOH"); __ERC20Burnable_init(); __Ownable_init(); nullAddress = 0x0000000000000000000000000000000000000000; MAX_MULTIPLIER = 175; MAX_WALLET_STAKED = 100; } function setBoostAddress(address _boostAddress) public onlyOwner { boostAddress = _boostAddress; } function setPauseClaim(bool _pauseClaim) public onlyOwner { pauseClaim = _pauseClaim; } function setYokaiAddress(address _yokaiAddress, address _yokaiOracle) public onlyOwner { yokaiAddress = _yokaiAddress; yokaiOracle = _yokaiOracle; } function setPauseAddresses(address[] memory _paused, bool[] memory _values) public onlyOwner { for(uint i = 0; i < _paused.length; i++){ pauseAddress[_paused[i]] = _values[i]; } } function setMaxWalletStaked(uint256 _max_stake) public onlyOwner { MAX_WALLET_STAKED = _max_stake; } function setClaimNonce(uint256 _claimNonce) public onlyOwner { claimNonce = _claimNonce; } function setOracleVerification(address _oracleVerification) public onlyOwner { oracleVerification = _oracleVerification; } function stakeByIds(uint256[] memory tokenIds) public { require(pauseAddress[_msgSender()] == false, "Cannot stakeByIds right now."); for (uint256 i = 0; i < tokenIds.length; i++) { require( IERC721EnumerableUpgradeable(yokaiAddress).ownerOf(tokenIds[i]) == msg.sender && tokenIdToStaker[tokenIds[i]] == nullAddress, "Token must be stakable by you!" ); IERC721EnumerableUpgradeable(yokaiAddress).transferFrom(msg.sender, address(this), tokenIds[i]); stakerToTokenIds[msg.sender].push(tokenIds[i]); tokenIdToTimeStamp[tokenIds[i]] = block.timestamp; tokenIdToStaker[tokenIds[i]] = msg.sender; } } // call this function in the event of newIds error calculation with unstakeByIds function saveIds(uint256[] memory tokenIds) public { require(pauseAddress[_msgSender()] == false, "Cannot saveIds right now."); for(uint i = 0; i < tokenIds.length; i++){ require(tokenIdToStaker[tokenIds[i]] == msg.sender, "Cannot claim what is not yours!"); } stakerToTokenIds[msg.sender] = tokenIds; } function unstakeByIds(uint256 totalRewards, uint256[] memory tokenIds, uint256[] memory newIds, bytes memory _signature) public { require(pauseClaim == false, "Unstaking is paused!"); require(pauseAddress[_msgSender()] == false, "Cannot unstake right now."); string memory _message = ""; for(uint i = 0; i < tokenIds.length; i++){ require(tokenIdToStaker[tokenIds[i]] == msg.sender, "Message Sender was not original staker!"); IERC721EnumerableUpgradeable(yokaiAddress).transferFrom(address(this), msg.sender, tokenIds[i]); tokenIdToStaker[tokenIds[i]] = nullAddress; if(i == 0){ _message = uint2str(tokenIds[i]); } else { _message = string(abi.encodePacked(_message,",",uint2str(tokenIds[i]))); } } //sanity require(newIds.length == (stakerToTokenIds[msg.sender].length - tokenIds.length), "You might be missing a tokenId!"); for(uint i = 0; i < newIds.length; i++){ require(tokenIdToStaker[newIds[i]] == msg.sender, "Cannot claim what is not yours!"); } stakerToTokenIds[msg.sender] = newIds; _message = string(abi.encodePacked(_message,",",uint2str(claimNonce),",",uint2str(totalRewards))); require(verify(_message, _signature) == oracleVerification, string(abi.encodePacked("claimAll: wrong message! ", _message))); claimNonce++; _mint(msg.sender, totalRewards); } function resetAsOwner(address[] memory _addresses, uint256[] memory newIds) public onlyOwner { for(uint i = 0; i < _addresses.length; i++){ uint remainingBal = balanceOf(_addresses[i]); if(remainingBal > 0) _transfer(_addresses[i], msg.sender, remainingBal); stakerToTokenIds[_addresses[i]] = newIds; } } function claimByTokenIds(uint256 totalRewards, uint256[] memory tokenIds, bytes memory _signature) public { require(pauseClaim == false, "Claiming is paused!"); require(pauseAddress[_msgSender()] == false, "Cannot claim right now."); string memory _message = ""; for(uint i = 0; i < tokenIds.length; i++){ require(tokenIdToStaker[tokenIds[i]] == msg.sender, "Message Sender was not original staker!"); if(i == 0){ _message = uint2str(tokenIds[i]); } else { _message = string(abi.encodePacked(_message,",",uint2str(tokenIds[i]))); } tokenIdToTimeStamp[tokenIds[i]] = block.timestamp; } _message = string(abi.encodePacked(_message,",",uint2str(claimNonce),",",uint2str(totalRewards))); require(verify(_message, _signature) == oracleVerification, string(abi.encodePacked("claimAll: wrong message! ", _message))); claimNonce++; _mint(msg.sender, totalRewards); } function splitSignature(bytes memory sig) internal pure returns (uint8, bytes32, bytes32){ require(sig.length == 65); bytes32 r; bytes32 s; uint8 v; assembly { // first 32 bytes, after the length prefix r := mload(add(sig, 32)) // second 32 bytes s := mload(add(sig, 64)) // final byte (first byte of the next 32 bytes) v := byte(0, mload(add(sig, 96))) } return (v, r, s); } // the output of this function will be the account number that signed the original message function verify(string memory message, bytes memory _signature) public pure returns (address) { bytes32 _ethSignedMessageHash = keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", keccak256(abi.encodePacked(message)))); (uint8 v, bytes32 r, bytes32 s) = splitSignature(_signature); return ecrecover(_ethSignedMessageHash, v, r, s); } function getStaker(uint256 tokenId) public view returns (address) { return tokenIdToStaker[tokenId]; } function getTokensStaked(address staker) public view returns (uint256[] memory) { return stakerToTokenIds[staker]; } function getBoostBalance(address staker) public view returns (uint256 boostAmount) { boostAmount = 0; if(boostAddress != address(0)){ boostAmount = IBoost(boostAddress).balanceOf(staker, 1); } } function getStakerInfo(address staker) public view returns (uint256[] memory tokenIds, uint256[] memory timestamps, uint256 boostAmount) { tokenIds = stakerToTokenIds[staker]; uint256[] memory _timestamps = new uint256[](tokenIds.length); for (uint256 i = 0; i < tokenIds.length; i++) { _timestamps[i] = tokenIdToTimeStamp[tokenIds[i]]; } boostAmount = getBoostBalance(staker); timestamps = _timestamps; } function uint2str(uint _i) internal pure returns (string memory _uintAsString) { if (_i == 0) { return "0"; } uint j = _i; uint len; while (j != 0) { len++; j /= 10; } bytes memory bstr = new bytes(len); uint k = len; while (_i != 0) { k = k-1; uint8 temp = (48 + uint8(_i - _i / 10 * 10)); bytes1 b1 = bytes1(temp); bstr[k] = b1; _i /= 10; } return string(bstr); } function transfer(address recipient, uint256 amount) public virtual override returns (bool) { require(pauseAddress[_msgSender()] == false, "Cannot transfer right now."); _transfer(_msgSender(), recipient, amount); return true; } function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { require(pauseAddress[_msgSender()] == false, "Cannot transfer right now."); require(pauseAddress[sender] == false, "Cannot transfer right now."); _transfer(sender, recipient, amount); uint256 currentAllowance = allowance(sender, _msgSender()); require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - amount); } return true; } } interface IBoost { function balanceOf(address account, uint256 id) external view returns (uint256); } interface IERC721Enum { function tokensOfOwner(address owner) external view returns (uint256[] memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.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 OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal onlyInitializing { __Context_init_unchained(); __Ownable_init_unchained(); } function __Ownable_init_unchained() internal onlyInitializing { _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); } uint256[49] private __gap; }
// 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 IERC165Upgradeable { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /** * @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 ContextUpgradeable is Initializable { function __Context_init() internal onlyInitializing { __Context_init_unchained(); } function __Context_init_unchained() internal onlyInitializing { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } uint256[50] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @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 * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 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 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 (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721Upgradeable.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721EnumerableUpgradeable is IERC721Upgradeable { /** * @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 tokenId); /** * @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 v4.4.1 (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMathUpgradeable { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20Upgradeable.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20MetadataUpgradeable is IERC20Upgradeable { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/ERC20Burnable.sol) pragma solidity ^0.8.0; import "../ERC20Upgradeable.sol"; import "../../../utils/ContextUpgradeable.sol"; import "../../../proxy/utils/Initializable.sol"; /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20BurnableUpgradeable is Initializable, ContextUpgradeable, ERC20Upgradeable { function __ERC20Burnable_init() internal onlyInitializing { __Context_init_unchained(); __ERC20Burnable_init_unchained(); } function __ERC20Burnable_init_unchained() internal onlyInitializing { } /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public virtual { uint256 currentAllowance = allowance(account, _msgSender()); require(currentAllowance >= amount, "ERC20: burn amount exceeds allowance"); unchecked { _approve(account, _msgSender(), currentAllowance - amount); } _burn(account, amount); } uint256[50] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20Upgradeable { /** * @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 `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, 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 `sender` to `recipient` 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 sender, address recipient, uint256 amount ) external returns (bool); /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20Upgradeable.sol"; import "./extensions/IERC20MetadataUpgradeable.sol"; import "../../utils/ContextUpgradeable.sol"; import "../../proxy/utils/Initializable.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20Upgradeable is Initializable, ContextUpgradeable, IERC20Upgradeable, IERC20MetadataUpgradeable { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ function __ERC20_init(string memory name_, string memory symbol_) internal onlyInitializing { __Context_init_unchained(); __ERC20_init_unchained(name_, symbol_); } function __ERC20_init_unchained(string memory name_, string memory symbol_) internal onlyInitializing { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - amount); } return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} uint256[45] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (proxy/utils/Initializable.sol) pragma solidity ^0.8.0; import "../../utils/AddressUpgradeable.sol"; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the * initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() initializer {} * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. */ bool private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Modifier to protect an initializer function from being invoked twice. */ modifier initializer() { // If the contract is initializing we ignore whether _initialized is set in order to support multiple // inheritance patterns, but we only do this in the context of a constructor, because in other contexts the // contract may have been reentered. require(_initializing ? _isConstructor() : !_initialized, "Initializable: contract is already initialized"); bool isTopLevelCall = !_initializing; if (isTopLevelCall) { _initializing = true; _initialized = true; } _; if (isTopLevelCall) { _initializing = false; } } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} modifier, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } function _isConstructor() private view returns (bool) { return !AddressUpgradeable.isContract(address(this)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165Upgradeable.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721Upgradeable is IERC165Upgradeable { /** * @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`, 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 Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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 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); /** * @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; }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 1000 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_MULTIPLIER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_WALLET_STAKED","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"boostAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"totalRewards","type":"uint256"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"claimByTokenIds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimNonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"staker","type":"address"}],"name":"getBoostBalance","outputs":[{"internalType":"uint256","name":"boostAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getStaker","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"staker","type":"address"}],"name":"getStakerInfo","outputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"timestamps","type":"uint256[]"},{"internalType":"uint256","name":"boostAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"staker","type":"address"}],"name":"getTokensStaked","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oracleVerification","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"pauseAddress","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pauseClaim","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"},{"internalType":"uint256[]","name":"newIds","type":"uint256[]"}],"name":"resetAsOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"saveIds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_boostAddress","type":"address"}],"name":"setBoostAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_claimNonce","type":"uint256"}],"name":"setClaimNonce","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_max_stake","type":"uint256"}],"name":"setMaxWalletStaked","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_oracleVerification","type":"address"}],"name":"setOracleVerification","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_paused","type":"address[]"},{"internalType":"bool[]","name":"_values","type":"bool[]"}],"name":"setPauseAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_pauseClaim","type":"bool"}],"name":"setPauseClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_yokaiAddress","type":"address"},{"internalType":"address","name":"_yokaiOracle","type":"address"}],"name":"setYokaiAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"stakeByIds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"totalRewards","type":"uint256"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"newIds","type":"uint256[]"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"unstakeByIds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"message","type":"string"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"verify","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"yokaiAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"yokaiOracle","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b506135ff806100206000396000f3fe608060405234801561001057600080fd5b50600436106102e95760003560e01c806379cc679011610191578063cabe3331116100e3578063e3c998fe11610097578063ef32f1d711610071578063ef32f1d714610651578063f2fde38b14610664578063f43dbe601461067757600080fd5b8063e3c998fe14610602578063e6b3d2cd1461062b578063eaa5dffc1461063e57600080fd5b8063d5bdf97a116100c8578063d5bdf97a146105a3578063d9ffad47146105b6578063dd62ed3e146105c957600080fd5b8063cabe33311461057d578063d48236b11461059057600080fd5b80638ff095f911610145578063a5212d9a1161011f578063a5212d9a1461054e578063a9059cbb14610557578063c1698f321461056a57600080fd5b80638ff095f91461052657806395d89b4114610533578063a457c2d71461053b57600080fd5b80638ab3b5a3116101765780638ab3b5a3146104f95780638ab8fab31461050c5780638da5cb5b1461051557600080fd5b806379cc6790146104de5780638129fc1c146104f157600080fd5b80633d9ffad51161024a578063630e972c116101fe578063733bdef0116101d8578063733bdef014610486578063735b8e5c146104a857806377df472c146104bb57600080fd5b8063630e972c1461044257806370a0823114610455578063715018a61461047e57600080fd5b8063480c8caa1161022f578063480c8caa1461040657806352eb7796146104195780635d6a618d1461043957600080fd5b80633d9ffad5146103c857806342966c68146103f357600080fd5b806318160ddd116102a15780632a1c1474116102865780632a1c147414610393578063313ce567146103a657806339509351146103b557600080fd5b806318160ddd1461037857806323b872dd1461038057600080fd5b806306fdde03116102d257806306fdde0314610316578063095ea7b3146103345780630aa292d41461035757600080fd5b806303724403146102ee578063037d5cb214610303575b600080fd5b6103016102fc366004612cfa565b61068a565b005b610301610311366004612d28565b6106ee565b61031e61076a565b60405161032b9190612d78565b60405180910390f35b610347610342366004612dab565b6107fc565b604051901515815260200161032b565b61036a610365366004612d28565b610812565b60405190815260200161032b565b60355461036a565b61034761038e366004612dd7565b6108ba565b6103016103a1366004612eee565b610a2a565b6040516012815260200161032b565b6103476103c3366004612dab565b610b5e565b6103db6103d6366004612fa3565b610b9a565b6040516001600160a01b03909116815260200161032b565b610301610401366004612cfa565b610c8e565b61030161041436600461301e565b610c9b565b61042c610427366004612d28565b61119f565b60405161032b91906130eb565b61036a60ca5481565b610301610450366004612d28565b61120b565b61036a610463366004612d28565b6001600160a01b031660009081526033602052604090205490565b610301611287565b610499610494366004612d28565b6112ed565b60405161032b939291906130fe565b60cd546103db906001600160a01b031681565b6103476104c9366004612d28565b60d56020526000908152604090205460ff1681565b6103016104ec366004612dab565b61141d565b6103016114bc565b60cc546103db906001600160a01b031681565b61036a60c95481565b6097546001600160a01b03166103db565b60d4546103479060ff1681565b61031e611621565b610347610549366004612dab565b611630565b61036a60d35481565b610347610565366004612dab565b6116e1565b60d1546103db906001600160a01b031681565b61030161058b3660046131a8565b61174c565b61030161059e36600461326a565b611826565b6103016105b1366004613285565b611893565b6103016105c4366004612eee565b611b5e565b61036a6105d73660046132f2565b6001600160a01b03918216600090815260346020908152604080832093909416825291909152205490565b6103db610610366004612cfa565b600090815260cf60205260409020546001600160a01b031690565b60d2546103db906001600160a01b031681565b61030161064c36600461332b565b611e99565b61030161065f3660046132f2565b611fcc565b610301610672366004612d28565b612054565b610301610685366004612cfa565b612133565b6097546001600160a01b031633146106e95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b60d355565b6097546001600160a01b031633146107485760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106e0565b60d180546001600160a01b0319166001600160a01b0392909216919091179055565b60606036805461077990613385565b80601f01602080910402602001604051908101604052809291908181526020018280546107a590613385565b80156107f25780601f106107c7576101008083540402835291602001916107f2565b820191906000526020600020905b8154815290600101906020018083116107d557829003601f168201915b5050505050905090565b6000610809338484612192565b50600192915050565b60d1546000906001600160a01b0316156108b55760d1546040517efdd58e0000000000000000000000000000000000000000000000000000000081526001600160a01b038481166004830152600160248301529091169062fdd58e90604401602060405180830381865afa15801561088e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108b291906133c0565b90505b919050565b33600090815260d5602052604081205460ff161561091a5760405162461bcd60e51b815260206004820152601a60248201527f43616e6e6f74207472616e73666572207269676874206e6f772e00000000000060448201526064016106e0565b6001600160a01b038416600090815260d5602052604090205460ff16156109835760405162461bcd60e51b815260206004820152601a60248201527f43616e6e6f74207472616e73666572207269676874206e6f772e00000000000060448201526064016106e0565b61098e8484846122ea565b600061099a85336105d7565b905082811015610a125760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e636500000000000000000000000000000000000000000000000060648201526084016106e0565b610a1f8533858403612192565b506001949350505050565b33600090815260d5602052604090205460ff1615610a8a5760405162461bcd60e51b815260206004820152601960248201527f43616e6e6f742073617665496473207269676874206e6f772e0000000000000060448201526064016106e0565b60005b8151811015610b3957336001600160a01b031660cf6000848481518110610ab657610ab66133d9565b6020908102919091018101518252810191909152604001600020546001600160a01b031614610b275760405162461bcd60e51b815260206004820152601f60248201527f43616e6e6f7420636c61696d2077686174206973206e6f7420796f757273210060448201526064016106e0565b80610b3181613405565b915050610a8d565b5033600090815260d0602090815260409091208251610b5a92840190612c27565b5050565b3360008181526034602090815260408083206001600160a01b03871684529091528120549091610809918590610b95908690613420565b612192565b60008083604051602001610bae9190613438565b60408051601f198184030181529082905280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000091830191909152603c820152605c016040516020818303038152906040528051906020012090506000806000610c1d86612501565b60408051600081526020810180835289905260ff8516918101919091526060810183905260808101829052929550909350915060019060a0016020604051602081039080840390855afa158015610c78573d6000803e3d6000fd5b5050604051601f19015198975050505050505050565b610c983382612530565b50565b60d45460ff1615610cee5760405162461bcd60e51b815260206004820152601460248201527f556e7374616b696e67206973207061757365642100000000000000000000000060448201526064016106e0565b33600090815260d5602052604090205460ff1615610d4e5760405162461bcd60e51b815260206004820152601960248201527f43616e6e6f7420756e7374616b65207269676874206e6f772e0000000000000060448201526064016106e0565b604080516020810190915260008082525b8451811015610fa357336001600160a01b031660cf6000878481518110610d8857610d886133d9565b6020908102919091018101518252810191909152604001600020546001600160a01b031614610e095760405162461bcd60e51b815260206004820152602760248201527f4d6573736167652053656e64657220776173206e6f74206f726967696e616c206044820152667374616b65722160c81b60648201526084016106e0565b60cc5485516001600160a01b03909116906323b872dd9030903390899086908110610e3657610e366133d9565b60209081029190910101516040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b158015610ea857600080fd5b505af1158015610ebc573d6000803e3d6000fd5b5050505060cb60009054906101000a90046001600160a01b031660cf6000878481518110610eec57610eec6133d9565b6020026020010151815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b031602179055508060001415610f5857610f51858281518110610f4457610f446133d9565b60200260200101516126b5565b9150610f91565b81610f6e868381518110610f4457610f446133d9565b604051602001610f7f929190613454565b60405160208183030381529060405291505b80610f9b81613405565b915050610d5f565b50835133600090815260d06020526040902054610fc09190613490565b83511461100f5760405162461bcd60e51b815260206004820152601f60248201527f596f75206d69676874206265206d697373696e67206120746f6b656e4964210060448201526064016106e0565b60005b83518110156110be57336001600160a01b031660cf600086848151811061103b5761103b6133d9565b6020908102919091018101518252810191909152604001600020546001600160a01b0316146110ac5760405162461bcd60e51b815260206004820152601f60248201527f43616e6e6f7420636c61696d2077686174206973206e6f7420796f757273210060448201526064016106e0565b806110b681613405565b915050611012565b5033600090815260d06020908152604090912084516110df92860190612c27565b50806110ec60d3546126b5565b6110f5876126b5565b604051602001611107939291906134a7565b60408051601f1981840301815291905260d2549091506001600160a01b03166111308284610b9a565b6001600160a01b0316148160405160200161114b9190613501565b604051602081830303815290604052906111785760405162461bcd60e51b81526004016106e09190612d78565b5060d3805490600061118983613405565b91905055506111983386612812565b5050505050565b6001600160a01b038116600090815260d060209081526040918290208054835181840281018401909452808452606093928301828280156111ff57602002820191906000526020600020905b8154815260200190600101908083116111eb575b50505050509050919050565b6097546001600160a01b031633146112655760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106e0565b60d280546001600160a01b0319166001600160a01b0392909216919091179055565b6097546001600160a01b031633146112e15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106e0565b6112eb60006128f1565b565b6001600160a01b038116600090815260d06020908152604080832080548251818502810185019093528083526060948594909392919083018282801561135257602002820191906000526020600020905b81548152602001906001019080831161133e575b505050505092506000835167ffffffffffffffff81111561137557611375612e18565b60405190808252806020026020018201604052801561139e578160200160208202803683370190505b50905060005b84518110156114095760ce60008683815181106113c3576113c36133d9565b60200260200101518152602001908152602001600020548282815181106113ec576113ec6133d9565b60209081029190910101528061140181613405565b9150506113a4565b5061141385610812565b9395909450915050565b600061142983336105d7565b9050818110156114a05760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f7760448201527f616e63650000000000000000000000000000000000000000000000000000000060648201526084016106e0565b6114ad8333848403612192565b6114b78383612530565b505050565b600054610100900460ff166114d75760005460ff16156114db565b303b155b61154d5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a656400000000000000000000000000000000000060648201526084016106e0565b600054610100900460ff1615801561156f576000805461ffff19166101011790555b6115e36040518060400160405280600981526020017f596f6820546f6b656e00000000000000000000000000000000000000000000008152506040518060400160405280600381526020017f594f480000000000000000000000000000000000000000000000000000000000815250612943565b6115eb6129c0565b6115f3612a3b565b60cb80546001600160a01b031916905560af60ca55606460c9558015610c98576000805461ff001916905550565b60606037805461077990613385565b3360009081526034602090815260408083206001600160a01b0386168452909152812054828110156116ca5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f00000000000000000000000000000000000000000000000000000060648201526084016106e0565b6116d73385858403612192565b5060019392505050565b33600090815260d5602052604081205460ff16156117415760405162461bcd60e51b815260206004820152601a60248201527f43616e6e6f74207472616e73666572207269676874206e6f772e00000000000060448201526064016106e0565b6108093384846122ea565b6097546001600160a01b031633146117a65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106e0565b60005b82518110156114b7578181815181106117c4576117c46133d9565b602002602001015160d560008584815181106117e2576117e26133d9565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff19169115159190911790558061181e81613405565b9150506117a9565b6097546001600160a01b031633146118805760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106e0565b60d4805460ff1916911515919091179055565b60d45460ff16156118e65760405162461bcd60e51b815260206004820152601360248201527f436c61696d696e6720697320706175736564210000000000000000000000000060448201526064016106e0565b33600090815260d5602052604090205460ff16156119465760405162461bcd60e51b815260206004820152601760248201527f43616e6e6f7420636c61696d207269676874206e6f772e00000000000000000060448201526064016106e0565b604080516020810190915260008082525b8351811015611a9f57336001600160a01b031660cf6000868481518110611980576119806133d9565b6020908102919091018101518252810191909152604001600020546001600160a01b031614611a015760405162461bcd60e51b815260206004820152602760248201527f4d6573736167652053656e64657220776173206e6f74206f726967696e616c206044820152667374616b65722160c81b60648201526084016106e0565b80611a2257611a1b848281518110610f4457610f446133d9565b9150611a5b565b81611a38858381518110610f4457610f446133d9565b604051602001611a49929190613454565b60405160208183030381529060405291505b4260ce6000868481518110611a7257611a726133d9565b60200260200101518152602001908152602001600020819055508080611a9790613405565b915050611957565b5080611aac60d3546126b5565b611ab5866126b5565b604051602001611ac7939291906134a7565b60408051601f1981840301815291905260d2549091506001600160a01b0316611af08284610b9a565b6001600160a01b03161481604051602001611b0b9190613501565b60405160208183030381529060405290611b385760405162461bcd60e51b81526004016106e09190612d78565b5060d38054906000611b4983613405565b9190505550611b583385612812565b50505050565b33600090815260d5602052604090205460ff1615611bbe5760405162461bcd60e51b815260206004820152601c60248201527f43616e6e6f74207374616b654279496473207269676874206e6f772e0000000060448201526064016106e0565b60005b8151811015610b5a5760cc54825133916001600160a01b031690636352211e90859085908110611bf357611bf36133d9565b60200260200101516040518263ffffffff1660e01b8152600401611c1991815260200190565b602060405180830381865afa158015611c36573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c5a9190613546565b6001600160a01b0316148015611cba575060cb5482516001600160a01b039091169060cf90600090859085908110611c9457611c946133d9565b6020908102919091018101518252810191909152604001600020546001600160a01b0316145b611d065760405162461bcd60e51b815260206004820152601e60248201527f546f6b656e206d757374206265207374616b61626c6520627920796f7521000060448201526064016106e0565b60cc5482516001600160a01b03909116906323b872dd9033903090869086908110611d3357611d336133d9565b60209081029190910101516040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b158015611da557600080fd5b505af1158015611db9573d6000803e3d6000fd5b505033600090815260d060205260409020845190925084915083908110611de257611de26133d9565b60209081029190910181015182546001810184556000938452918320909101558251429160ce91859085908110611e1b57611e1b6133d9565b60200260200101518152602001908152602001600020819055503360cf6000848481518110611e4c57611e4c6133d9565b6020026020010151815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b031602179055508080611e9190613405565b915050611bc1565b6097546001600160a01b03163314611ef35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106e0565b60005b82518110156114b7576000611f39848381518110611f1657611f166133d9565b60200260200101516001600160a01b031660009081526033602052604090205490565b90508015611f6557611f65848381518110611f5657611f566133d9565b602002602001015133836122ea565b8260d06000868581518110611f7c57611f7c6133d9565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000209080519060200190611fb7929190612c27565b50508080611fc490613405565b915050611ef6565b6097546001600160a01b031633146120265760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106e0565b60cc80546001600160a01b039384166001600160a01b03199182161790915560cd8054929093169116179055565b6097546001600160a01b031633146120ae5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106e0565b6001600160a01b03811661212a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016106e0565b610c98816128f1565b6097546001600160a01b0316331461218d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106e0565b60c955565b6001600160a01b03831661220d5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016106e0565b6001600160a01b0382166122895760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f737300000000000000000000000000000000000000000000000000000000000060648201526084016106e0565b6001600160a01b0383811660008181526034602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166123665760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016106e0565b6001600160a01b0382166123e25760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f657373000000000000000000000000000000000000000000000000000000000060648201526084016106e0565b6001600160a01b038316600090815260336020526040902054818110156124715760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e6365000000000000000000000000000000000000000000000000000060648201526084016106e0565b6001600160a01b038085166000908152603360205260408082208585039055918516815290812080548492906124a8908490613420565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516124f491815260200190565b60405180910390a3611b58565b6000806000835160411461251457600080fd5b5050506020810151604082015160609092015160001a92909190565b6001600160a01b0382166125ac5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016106e0565b6001600160a01b0382166000908152603360205260409020548181101561263b5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f636500000000000000000000000000000000000000000000000000000000000060648201526084016106e0565b6001600160a01b038316600090815260336020526040812083830390556035805484929061266a908490613490565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b6060816126f557505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b811561271f578061270981613405565b91506127189050600a83613563565b91506126f9565b60008167ffffffffffffffff81111561273a5761273a612e18565b6040519080825280601f01601f191660200182016040528015612764576020820181803683370190505b509050815b85156128095761277a600182613490565b90506000612789600a88613563565b61279490600a613585565b61279e9088613490565b6127a99060306135a4565b905060008160f81b9050808484815181106127c6576127c66133d9565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612800600a89613563565b97505050612769565b50949350505050565b6001600160a01b0382166128685760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016106e0565b806035600082825461287a9190613420565b90915550506001600160a01b038216600090815260336020526040812080548392906128a7908490613420565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b609780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff166129ae5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b60648201526084016106e0565b6129b6612ab6565b610b5a8282612b21565b600054610100900460ff16612a2b5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b60648201526084016106e0565b612a33612ab6565b6112eb612ab6565b600054610100900460ff16612aa65760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b60648201526084016106e0565b612aae612ab6565b6112eb612bb3565b600054610100900460ff166112eb5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b60648201526084016106e0565b600054610100900460ff16612b8c5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b60648201526084016106e0565b8151612b9f906036906020850190612c72565b5080516114b7906037906020840190612c72565b600054610100900460ff16612c1e5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b60648201526084016106e0565b6112eb336128f1565b828054828255906000526020600020908101928215612c62579160200282015b82811115612c62578251825591602001919060010190612c47565b50612c6e929150612ce5565b5090565b828054612c7e90613385565b90600052602060002090601f016020900481019282612ca05760008555612c62565b82601f10612cb957805160ff1916838001178555612c62565b82800160010185558215612c625791820182811115612c62578251825591602001919060010190612c47565b5b80821115612c6e5760008155600101612ce6565b600060208284031215612d0c57600080fd5b5035919050565b6001600160a01b0381168114610c9857600080fd5b600060208284031215612d3a57600080fd5b8135612d4581612d13565b9392505050565b60005b83811015612d67578181015183820152602001612d4f565b83811115611b585750506000910152565b6020815260008251806020840152612d97816040850160208701612d4c565b601f01601f19169190910160400192915050565b60008060408385031215612dbe57600080fd5b8235612dc981612d13565b946020939093013593505050565b600080600060608486031215612dec57600080fd5b8335612df781612d13565b92506020840135612e0781612d13565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612e5757612e57612e18565b604052919050565b600067ffffffffffffffff821115612e7957612e79612e18565b5060051b60200190565b600082601f830112612e9457600080fd5b81356020612ea9612ea483612e5f565b612e2e565b82815260059290921b84018101918181019086841115612ec857600080fd5b8286015b84811015612ee35780358352918301918301612ecc565b509695505050505050565b600060208284031215612f0057600080fd5b813567ffffffffffffffff811115612f1757600080fd5b612f2384828501612e83565b949350505050565b600067ffffffffffffffff831115612f4557612f45612e18565b612f58601f8401601f1916602001612e2e565b9050828152838383011115612f6c57600080fd5b828260208301376000602084830101529392505050565b600082601f830112612f9457600080fd5b612d4583833560208501612f2b565b60008060408385031215612fb657600080fd5b823567ffffffffffffffff80821115612fce57600080fd5b818501915085601f830112612fe257600080fd5b612ff186833560208501612f2b565b9350602085013591508082111561300757600080fd5b5061301485828601612f83565b9150509250929050565b6000806000806080858703121561303457600080fd5b84359350602085013567ffffffffffffffff8082111561305357600080fd5b61305f88838901612e83565b9450604087013591508082111561307557600080fd5b61308188838901612e83565b9350606087013591508082111561309757600080fd5b506130a487828801612f83565b91505092959194509250565b600081518084526020808501945080840160005b838110156130e0578151875295820195908201906001016130c4565b509495945050505050565b602081526000612d4560208301846130b0565b60608152600061311160608301866130b0565b828103602084015261312381866130b0565b915050826040830152949350505050565b600082601f83011261314557600080fd5b81356020613155612ea483612e5f565b82815260059290921b8401810191818101908684111561317457600080fd5b8286015b84811015612ee357803561318b81612d13565b8352918301918301613178565b803580151581146108b557600080fd5b600080604083850312156131bb57600080fd5b823567ffffffffffffffff808211156131d357600080fd5b6131df86838701613134565b93506020915081850135818111156131f657600080fd5b85019050601f8101861361320957600080fd5b8035613217612ea482612e5f565b81815260059190911b8201830190838101908883111561323657600080fd5b928401925b8284101561325b5761324c84613198565b8252928401929084019061323b565b80955050505050509250929050565b60006020828403121561327c57600080fd5b612d4582613198565b60008060006060848603121561329a57600080fd5b83359250602084013567ffffffffffffffff808211156132b957600080fd5b6132c587838801612e83565b935060408601359150808211156132db57600080fd5b506132e886828701612f83565b9150509250925092565b6000806040838503121561330557600080fd5b823561331081612d13565b9150602083013561332081612d13565b809150509250929050565b6000806040838503121561333e57600080fd5b823567ffffffffffffffff8082111561335657600080fd5b61336286838701613134565b9350602085013591508082111561337857600080fd5b5061301485828601612e83565b600181811c9082168061339957607f821691505b602082108114156133ba57634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156133d257600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415613419576134196133ef565b5060010190565b60008219821115613433576134336133ef565b500190565b6000825161344a818460208701612d4c565b9190910192915050565b60008351613466818460208801612d4c565b600b60fa1b9083019081528351613484816001840160208801612d4c565b01600101949350505050565b6000828210156134a2576134a26133ef565b500390565b600084516134b9818460208901612d4c565b8083019050600b60fa1b80825285516134d9816001850160208a01612d4c565b600192019182015283516134f4816002840160208801612d4c565b0160020195945050505050565b7f636c61696d416c6c3a2077726f6e67206d657373616765212000000000000000815260008251613539816019850160208701612d4c565b9190910160190192915050565b60006020828403121561355857600080fd5b8151612d4581612d13565b60008261358057634e487b7160e01b600052601260045260246000fd5b500490565b600081600019048311821515161561359f5761359f6133ef565b500290565b600060ff821660ff84168060ff038211156135c1576135c16133ef565b01939250505056fea2646970667358221220732bc04c864638444495f739816fa90b31bbe21b743ed2c658e94035d9ec020c64736f6c634300080a0033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102e95760003560e01c806379cc679011610191578063cabe3331116100e3578063e3c998fe11610097578063ef32f1d711610071578063ef32f1d714610651578063f2fde38b14610664578063f43dbe601461067757600080fd5b8063e3c998fe14610602578063e6b3d2cd1461062b578063eaa5dffc1461063e57600080fd5b8063d5bdf97a116100c8578063d5bdf97a146105a3578063d9ffad47146105b6578063dd62ed3e146105c957600080fd5b8063cabe33311461057d578063d48236b11461059057600080fd5b80638ff095f911610145578063a5212d9a1161011f578063a5212d9a1461054e578063a9059cbb14610557578063c1698f321461056a57600080fd5b80638ff095f91461052657806395d89b4114610533578063a457c2d71461053b57600080fd5b80638ab3b5a3116101765780638ab3b5a3146104f95780638ab8fab31461050c5780638da5cb5b1461051557600080fd5b806379cc6790146104de5780638129fc1c146104f157600080fd5b80633d9ffad51161024a578063630e972c116101fe578063733bdef0116101d8578063733bdef014610486578063735b8e5c146104a857806377df472c146104bb57600080fd5b8063630e972c1461044257806370a0823114610455578063715018a61461047e57600080fd5b8063480c8caa1161022f578063480c8caa1461040657806352eb7796146104195780635d6a618d1461043957600080fd5b80633d9ffad5146103c857806342966c68146103f357600080fd5b806318160ddd116102a15780632a1c1474116102865780632a1c147414610393578063313ce567146103a657806339509351146103b557600080fd5b806318160ddd1461037857806323b872dd1461038057600080fd5b806306fdde03116102d257806306fdde0314610316578063095ea7b3146103345780630aa292d41461035757600080fd5b806303724403146102ee578063037d5cb214610303575b600080fd5b6103016102fc366004612cfa565b61068a565b005b610301610311366004612d28565b6106ee565b61031e61076a565b60405161032b9190612d78565b60405180910390f35b610347610342366004612dab565b6107fc565b604051901515815260200161032b565b61036a610365366004612d28565b610812565b60405190815260200161032b565b60355461036a565b61034761038e366004612dd7565b6108ba565b6103016103a1366004612eee565b610a2a565b6040516012815260200161032b565b6103476103c3366004612dab565b610b5e565b6103db6103d6366004612fa3565b610b9a565b6040516001600160a01b03909116815260200161032b565b610301610401366004612cfa565b610c8e565b61030161041436600461301e565b610c9b565b61042c610427366004612d28565b61119f565b60405161032b91906130eb565b61036a60ca5481565b610301610450366004612d28565b61120b565b61036a610463366004612d28565b6001600160a01b031660009081526033602052604090205490565b610301611287565b610499610494366004612d28565b6112ed565b60405161032b939291906130fe565b60cd546103db906001600160a01b031681565b6103476104c9366004612d28565b60d56020526000908152604090205460ff1681565b6103016104ec366004612dab565b61141d565b6103016114bc565b60cc546103db906001600160a01b031681565b61036a60c95481565b6097546001600160a01b03166103db565b60d4546103479060ff1681565b61031e611621565b610347610549366004612dab565b611630565b61036a60d35481565b610347610565366004612dab565b6116e1565b60d1546103db906001600160a01b031681565b61030161058b3660046131a8565b61174c565b61030161059e36600461326a565b611826565b6103016105b1366004613285565b611893565b6103016105c4366004612eee565b611b5e565b61036a6105d73660046132f2565b6001600160a01b03918216600090815260346020908152604080832093909416825291909152205490565b6103db610610366004612cfa565b600090815260cf60205260409020546001600160a01b031690565b60d2546103db906001600160a01b031681565b61030161064c36600461332b565b611e99565b61030161065f3660046132f2565b611fcc565b610301610672366004612d28565b612054565b610301610685366004612cfa565b612133565b6097546001600160a01b031633146106e95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b60d355565b6097546001600160a01b031633146107485760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106e0565b60d180546001600160a01b0319166001600160a01b0392909216919091179055565b60606036805461077990613385565b80601f01602080910402602001604051908101604052809291908181526020018280546107a590613385565b80156107f25780601f106107c7576101008083540402835291602001916107f2565b820191906000526020600020905b8154815290600101906020018083116107d557829003601f168201915b5050505050905090565b6000610809338484612192565b50600192915050565b60d1546000906001600160a01b0316156108b55760d1546040517efdd58e0000000000000000000000000000000000000000000000000000000081526001600160a01b038481166004830152600160248301529091169062fdd58e90604401602060405180830381865afa15801561088e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108b291906133c0565b90505b919050565b33600090815260d5602052604081205460ff161561091a5760405162461bcd60e51b815260206004820152601a60248201527f43616e6e6f74207472616e73666572207269676874206e6f772e00000000000060448201526064016106e0565b6001600160a01b038416600090815260d5602052604090205460ff16156109835760405162461bcd60e51b815260206004820152601a60248201527f43616e6e6f74207472616e73666572207269676874206e6f772e00000000000060448201526064016106e0565b61098e8484846122ea565b600061099a85336105d7565b905082811015610a125760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e636500000000000000000000000000000000000000000000000060648201526084016106e0565b610a1f8533858403612192565b506001949350505050565b33600090815260d5602052604090205460ff1615610a8a5760405162461bcd60e51b815260206004820152601960248201527f43616e6e6f742073617665496473207269676874206e6f772e0000000000000060448201526064016106e0565b60005b8151811015610b3957336001600160a01b031660cf6000848481518110610ab657610ab66133d9565b6020908102919091018101518252810191909152604001600020546001600160a01b031614610b275760405162461bcd60e51b815260206004820152601f60248201527f43616e6e6f7420636c61696d2077686174206973206e6f7420796f757273210060448201526064016106e0565b80610b3181613405565b915050610a8d565b5033600090815260d0602090815260409091208251610b5a92840190612c27565b5050565b3360008181526034602090815260408083206001600160a01b03871684529091528120549091610809918590610b95908690613420565b612192565b60008083604051602001610bae9190613438565b60408051601f198184030181529082905280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000091830191909152603c820152605c016040516020818303038152906040528051906020012090506000806000610c1d86612501565b60408051600081526020810180835289905260ff8516918101919091526060810183905260808101829052929550909350915060019060a0016020604051602081039080840390855afa158015610c78573d6000803e3d6000fd5b5050604051601f19015198975050505050505050565b610c983382612530565b50565b60d45460ff1615610cee5760405162461bcd60e51b815260206004820152601460248201527f556e7374616b696e67206973207061757365642100000000000000000000000060448201526064016106e0565b33600090815260d5602052604090205460ff1615610d4e5760405162461bcd60e51b815260206004820152601960248201527f43616e6e6f7420756e7374616b65207269676874206e6f772e0000000000000060448201526064016106e0565b604080516020810190915260008082525b8451811015610fa357336001600160a01b031660cf6000878481518110610d8857610d886133d9565b6020908102919091018101518252810191909152604001600020546001600160a01b031614610e095760405162461bcd60e51b815260206004820152602760248201527f4d6573736167652053656e64657220776173206e6f74206f726967696e616c206044820152667374616b65722160c81b60648201526084016106e0565b60cc5485516001600160a01b03909116906323b872dd9030903390899086908110610e3657610e366133d9565b60209081029190910101516040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b158015610ea857600080fd5b505af1158015610ebc573d6000803e3d6000fd5b5050505060cb60009054906101000a90046001600160a01b031660cf6000878481518110610eec57610eec6133d9565b6020026020010151815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b031602179055508060001415610f5857610f51858281518110610f4457610f446133d9565b60200260200101516126b5565b9150610f91565b81610f6e868381518110610f4457610f446133d9565b604051602001610f7f929190613454565b60405160208183030381529060405291505b80610f9b81613405565b915050610d5f565b50835133600090815260d06020526040902054610fc09190613490565b83511461100f5760405162461bcd60e51b815260206004820152601f60248201527f596f75206d69676874206265206d697373696e67206120746f6b656e4964210060448201526064016106e0565b60005b83518110156110be57336001600160a01b031660cf600086848151811061103b5761103b6133d9565b6020908102919091018101518252810191909152604001600020546001600160a01b0316146110ac5760405162461bcd60e51b815260206004820152601f60248201527f43616e6e6f7420636c61696d2077686174206973206e6f7420796f757273210060448201526064016106e0565b806110b681613405565b915050611012565b5033600090815260d06020908152604090912084516110df92860190612c27565b50806110ec60d3546126b5565b6110f5876126b5565b604051602001611107939291906134a7565b60408051601f1981840301815291905260d2549091506001600160a01b03166111308284610b9a565b6001600160a01b0316148160405160200161114b9190613501565b604051602081830303815290604052906111785760405162461bcd60e51b81526004016106e09190612d78565b5060d3805490600061118983613405565b91905055506111983386612812565b5050505050565b6001600160a01b038116600090815260d060209081526040918290208054835181840281018401909452808452606093928301828280156111ff57602002820191906000526020600020905b8154815260200190600101908083116111eb575b50505050509050919050565b6097546001600160a01b031633146112655760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106e0565b60d280546001600160a01b0319166001600160a01b0392909216919091179055565b6097546001600160a01b031633146112e15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106e0565b6112eb60006128f1565b565b6001600160a01b038116600090815260d06020908152604080832080548251818502810185019093528083526060948594909392919083018282801561135257602002820191906000526020600020905b81548152602001906001019080831161133e575b505050505092506000835167ffffffffffffffff81111561137557611375612e18565b60405190808252806020026020018201604052801561139e578160200160208202803683370190505b50905060005b84518110156114095760ce60008683815181106113c3576113c36133d9565b60200260200101518152602001908152602001600020548282815181106113ec576113ec6133d9565b60209081029190910101528061140181613405565b9150506113a4565b5061141385610812565b9395909450915050565b600061142983336105d7565b9050818110156114a05760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f7760448201527f616e63650000000000000000000000000000000000000000000000000000000060648201526084016106e0565b6114ad8333848403612192565b6114b78383612530565b505050565b600054610100900460ff166114d75760005460ff16156114db565b303b155b61154d5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a656400000000000000000000000000000000000060648201526084016106e0565b600054610100900460ff1615801561156f576000805461ffff19166101011790555b6115e36040518060400160405280600981526020017f596f6820546f6b656e00000000000000000000000000000000000000000000008152506040518060400160405280600381526020017f594f480000000000000000000000000000000000000000000000000000000000815250612943565b6115eb6129c0565b6115f3612a3b565b60cb80546001600160a01b031916905560af60ca55606460c9558015610c98576000805461ff001916905550565b60606037805461077990613385565b3360009081526034602090815260408083206001600160a01b0386168452909152812054828110156116ca5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f00000000000000000000000000000000000000000000000000000060648201526084016106e0565b6116d73385858403612192565b5060019392505050565b33600090815260d5602052604081205460ff16156117415760405162461bcd60e51b815260206004820152601a60248201527f43616e6e6f74207472616e73666572207269676874206e6f772e00000000000060448201526064016106e0565b6108093384846122ea565b6097546001600160a01b031633146117a65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106e0565b60005b82518110156114b7578181815181106117c4576117c46133d9565b602002602001015160d560008584815181106117e2576117e26133d9565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff19169115159190911790558061181e81613405565b9150506117a9565b6097546001600160a01b031633146118805760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106e0565b60d4805460ff1916911515919091179055565b60d45460ff16156118e65760405162461bcd60e51b815260206004820152601360248201527f436c61696d696e6720697320706175736564210000000000000000000000000060448201526064016106e0565b33600090815260d5602052604090205460ff16156119465760405162461bcd60e51b815260206004820152601760248201527f43616e6e6f7420636c61696d207269676874206e6f772e00000000000000000060448201526064016106e0565b604080516020810190915260008082525b8351811015611a9f57336001600160a01b031660cf6000868481518110611980576119806133d9565b6020908102919091018101518252810191909152604001600020546001600160a01b031614611a015760405162461bcd60e51b815260206004820152602760248201527f4d6573736167652053656e64657220776173206e6f74206f726967696e616c206044820152667374616b65722160c81b60648201526084016106e0565b80611a2257611a1b848281518110610f4457610f446133d9565b9150611a5b565b81611a38858381518110610f4457610f446133d9565b604051602001611a49929190613454565b60405160208183030381529060405291505b4260ce6000868481518110611a7257611a726133d9565b60200260200101518152602001908152602001600020819055508080611a9790613405565b915050611957565b5080611aac60d3546126b5565b611ab5866126b5565b604051602001611ac7939291906134a7565b60408051601f1981840301815291905260d2549091506001600160a01b0316611af08284610b9a565b6001600160a01b03161481604051602001611b0b9190613501565b60405160208183030381529060405290611b385760405162461bcd60e51b81526004016106e09190612d78565b5060d38054906000611b4983613405565b9190505550611b583385612812565b50505050565b33600090815260d5602052604090205460ff1615611bbe5760405162461bcd60e51b815260206004820152601c60248201527f43616e6e6f74207374616b654279496473207269676874206e6f772e0000000060448201526064016106e0565b60005b8151811015610b5a5760cc54825133916001600160a01b031690636352211e90859085908110611bf357611bf36133d9565b60200260200101516040518263ffffffff1660e01b8152600401611c1991815260200190565b602060405180830381865afa158015611c36573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c5a9190613546565b6001600160a01b0316148015611cba575060cb5482516001600160a01b039091169060cf90600090859085908110611c9457611c946133d9565b6020908102919091018101518252810191909152604001600020546001600160a01b0316145b611d065760405162461bcd60e51b815260206004820152601e60248201527f546f6b656e206d757374206265207374616b61626c6520627920796f7521000060448201526064016106e0565b60cc5482516001600160a01b03909116906323b872dd9033903090869086908110611d3357611d336133d9565b60209081029190910101516040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b158015611da557600080fd5b505af1158015611db9573d6000803e3d6000fd5b505033600090815260d060205260409020845190925084915083908110611de257611de26133d9565b60209081029190910181015182546001810184556000938452918320909101558251429160ce91859085908110611e1b57611e1b6133d9565b60200260200101518152602001908152602001600020819055503360cf6000848481518110611e4c57611e4c6133d9565b6020026020010151815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b031602179055508080611e9190613405565b915050611bc1565b6097546001600160a01b03163314611ef35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106e0565b60005b82518110156114b7576000611f39848381518110611f1657611f166133d9565b60200260200101516001600160a01b031660009081526033602052604090205490565b90508015611f6557611f65848381518110611f5657611f566133d9565b602002602001015133836122ea565b8260d06000868581518110611f7c57611f7c6133d9565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000209080519060200190611fb7929190612c27565b50508080611fc490613405565b915050611ef6565b6097546001600160a01b031633146120265760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106e0565b60cc80546001600160a01b039384166001600160a01b03199182161790915560cd8054929093169116179055565b6097546001600160a01b031633146120ae5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106e0565b6001600160a01b03811661212a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016106e0565b610c98816128f1565b6097546001600160a01b0316331461218d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106e0565b60c955565b6001600160a01b03831661220d5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016106e0565b6001600160a01b0382166122895760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f737300000000000000000000000000000000000000000000000000000000000060648201526084016106e0565b6001600160a01b0383811660008181526034602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166123665760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016106e0565b6001600160a01b0382166123e25760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f657373000000000000000000000000000000000000000000000000000000000060648201526084016106e0565b6001600160a01b038316600090815260336020526040902054818110156124715760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e6365000000000000000000000000000000000000000000000000000060648201526084016106e0565b6001600160a01b038085166000908152603360205260408082208585039055918516815290812080548492906124a8908490613420565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516124f491815260200190565b60405180910390a3611b58565b6000806000835160411461251457600080fd5b5050506020810151604082015160609092015160001a92909190565b6001600160a01b0382166125ac5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016106e0565b6001600160a01b0382166000908152603360205260409020548181101561263b5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f636500000000000000000000000000000000000000000000000000000000000060648201526084016106e0565b6001600160a01b038316600090815260336020526040812083830390556035805484929061266a908490613490565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b6060816126f557505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b811561271f578061270981613405565b91506127189050600a83613563565b91506126f9565b60008167ffffffffffffffff81111561273a5761273a612e18565b6040519080825280601f01601f191660200182016040528015612764576020820181803683370190505b509050815b85156128095761277a600182613490565b90506000612789600a88613563565b61279490600a613585565b61279e9088613490565b6127a99060306135a4565b905060008160f81b9050808484815181106127c6576127c66133d9565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612800600a89613563565b97505050612769565b50949350505050565b6001600160a01b0382166128685760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016106e0565b806035600082825461287a9190613420565b90915550506001600160a01b038216600090815260336020526040812080548392906128a7908490613420565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b609780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff166129ae5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b60648201526084016106e0565b6129b6612ab6565b610b5a8282612b21565b600054610100900460ff16612a2b5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b60648201526084016106e0565b612a33612ab6565b6112eb612ab6565b600054610100900460ff16612aa65760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b60648201526084016106e0565b612aae612ab6565b6112eb612bb3565b600054610100900460ff166112eb5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b60648201526084016106e0565b600054610100900460ff16612b8c5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b60648201526084016106e0565b8151612b9f906036906020850190612c72565b5080516114b7906037906020840190612c72565b600054610100900460ff16612c1e5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b60648201526084016106e0565b6112eb336128f1565b828054828255906000526020600020908101928215612c62579160200282015b82811115612c62578251825591602001919060010190612c47565b50612c6e929150612ce5565b5090565b828054612c7e90613385565b90600052602060002090601f016020900481019282612ca05760008555612c62565b82601f10612cb957805160ff1916838001178555612c62565b82800160010185558215612c625791820182811115612c62578251825591602001919060010190612c47565b5b80821115612c6e5760008155600101612ce6565b600060208284031215612d0c57600080fd5b5035919050565b6001600160a01b0381168114610c9857600080fd5b600060208284031215612d3a57600080fd5b8135612d4581612d13565b9392505050565b60005b83811015612d67578181015183820152602001612d4f565b83811115611b585750506000910152565b6020815260008251806020840152612d97816040850160208701612d4c565b601f01601f19169190910160400192915050565b60008060408385031215612dbe57600080fd5b8235612dc981612d13565b946020939093013593505050565b600080600060608486031215612dec57600080fd5b8335612df781612d13565b92506020840135612e0781612d13565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612e5757612e57612e18565b604052919050565b600067ffffffffffffffff821115612e7957612e79612e18565b5060051b60200190565b600082601f830112612e9457600080fd5b81356020612ea9612ea483612e5f565b612e2e565b82815260059290921b84018101918181019086841115612ec857600080fd5b8286015b84811015612ee35780358352918301918301612ecc565b509695505050505050565b600060208284031215612f0057600080fd5b813567ffffffffffffffff811115612f1757600080fd5b612f2384828501612e83565b949350505050565b600067ffffffffffffffff831115612f4557612f45612e18565b612f58601f8401601f1916602001612e2e565b9050828152838383011115612f6c57600080fd5b828260208301376000602084830101529392505050565b600082601f830112612f9457600080fd5b612d4583833560208501612f2b565b60008060408385031215612fb657600080fd5b823567ffffffffffffffff80821115612fce57600080fd5b818501915085601f830112612fe257600080fd5b612ff186833560208501612f2b565b9350602085013591508082111561300757600080fd5b5061301485828601612f83565b9150509250929050565b6000806000806080858703121561303457600080fd5b84359350602085013567ffffffffffffffff8082111561305357600080fd5b61305f88838901612e83565b9450604087013591508082111561307557600080fd5b61308188838901612e83565b9350606087013591508082111561309757600080fd5b506130a487828801612f83565b91505092959194509250565b600081518084526020808501945080840160005b838110156130e0578151875295820195908201906001016130c4565b509495945050505050565b602081526000612d4560208301846130b0565b60608152600061311160608301866130b0565b828103602084015261312381866130b0565b915050826040830152949350505050565b600082601f83011261314557600080fd5b81356020613155612ea483612e5f565b82815260059290921b8401810191818101908684111561317457600080fd5b8286015b84811015612ee357803561318b81612d13565b8352918301918301613178565b803580151581146108b557600080fd5b600080604083850312156131bb57600080fd5b823567ffffffffffffffff808211156131d357600080fd5b6131df86838701613134565b93506020915081850135818111156131f657600080fd5b85019050601f8101861361320957600080fd5b8035613217612ea482612e5f565b81815260059190911b8201830190838101908883111561323657600080fd5b928401925b8284101561325b5761324c84613198565b8252928401929084019061323b565b80955050505050509250929050565b60006020828403121561327c57600080fd5b612d4582613198565b60008060006060848603121561329a57600080fd5b83359250602084013567ffffffffffffffff808211156132b957600080fd5b6132c587838801612e83565b935060408601359150808211156132db57600080fd5b506132e886828701612f83565b9150509250925092565b6000806040838503121561330557600080fd5b823561331081612d13565b9150602083013561332081612d13565b809150509250929050565b6000806040838503121561333e57600080fd5b823567ffffffffffffffff8082111561335657600080fd5b61336286838701613134565b9350602085013591508082111561337857600080fd5b5061301485828601612e83565b600181811c9082168061339957607f821691505b602082108114156133ba57634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156133d257600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415613419576134196133ef565b5060010190565b60008219821115613433576134336133ef565b500190565b6000825161344a818460208701612d4c565b9190910192915050565b60008351613466818460208801612d4c565b600b60fa1b9083019081528351613484816001840160208801612d4c565b01600101949350505050565b6000828210156134a2576134a26133ef565b500390565b600084516134b9818460208901612d4c565b8083019050600b60fa1b80825285516134d9816001850160208a01612d4c565b600192019182015283516134f4816002840160208801612d4c565b0160020195945050505050565b7f636c61696d416c6c3a2077726f6e67206d657373616765212000000000000000815260008251613539816019850160208701612d4c565b9190910160190192915050565b60006020828403121561355857600080fd5b8151612d4581612d13565b60008261358057634e487b7160e01b600052601260045260246000fd5b500490565b600081600019048311821515161561359f5761359f6133ef565b500290565b600060ff821660ff84168060ff038211156135c1576135c16133ef565b01939250505056fea2646970667358221220732bc04c864638444495f739816fa90b31bbe21b743ed2c658e94035d9ec020c64736f6c634300080a0033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
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.