ERC-20
Overview
Max Total Supply
40,810,044.446065770939051288 CHEETH
Holders
1,198
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
77,905.674501079666666665 CHEETHValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
CheethV2
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT /* Copyright 2021 Anonymice Licensed under the Anonymice License, Version 1.0 (the “License”); you may not use this code except in compliance with the License. You may obtain a copy of the License at https://doz7mjeufimufl7fa576j6kq5aijrwezk7tvdgvzrfr3d6njqwea.arweave.net/G7P2JJQqGUKv5Qd_5PlQ6BCY2JlX51GauYljsfmphYg Unless required by applicable law or agreed to in writing, code distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/math/Math.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; contract CheethV2 is ERC20Burnable, Ownable { /* _____ _ _ _ / __ \ | | | | | | / \/ |__ ___ ___| |_| |__ | | | '_ \ / _ \/ _ \ __| '_ \ | \__/\ | | | __/ __/ |_| | | | \____/_| |_|\___|\___|\__|_| |_| */ struct StakedMouse { uint256 tokenId; uint256 stakedSince; uint256 cheethEmision; } using EnumerableSet for EnumerableSet.UintSet; uint256 public constant STAKE_LIMIT = 25; address public anonymiceAddress; address public cheethV1Address; //User to staked mice mapping(address => EnumerableSet.UintSet) private stakedMices; //Staked Mouse to timestamp staked mapping(uint256 => uint256) public miceStakeTimes; mapping(uint256 => uint256) public miceClaimTimes; bool public isCheethSwapEnabled; constructor() ERC20("Cheeth", "CHEETH") { isCheethSwapEnabled = true; } function stakeMiceByIds(uint256[] memory _miceIds) external { require( _miceIds.length + stakedMices[msg.sender].length() <= STAKE_LIMIT, "Can only have a max of 25 mice staked!" ); for (uint256 i = 0; i < _miceIds.length; i++) { _stakeMouse(_miceIds[i]); } } function unstakeMiceByIds(uint256[] memory _miceIds) public { for (uint256 i = 0; i < _miceIds.length; i++) { _unstakeMouse(_miceIds[i]); } } function claimRewardsByIds(uint256[] memory _miceIds) external { uint256 runningCheethAllowance; for (uint256 i = 0; i < _miceIds.length; i++) { uint256 thisMouseId = _miceIds[i]; require( stakedMices[msg.sender].contains(thisMouseId), "Can only claim a mice you staked!" ); runningCheethAllowance += getCheethOwedToThisMouse(thisMouseId); miceClaimTimes[thisMouseId] = block.timestamp; } _mint(msg.sender, runningCheethAllowance); } function claimAllRewards() external { uint256 runningCheethAllowance; for (uint256 i = 0; i < stakedMices[msg.sender].length(); i++) { uint256 thisMouseId = stakedMices[msg.sender].at(i); runningCheethAllowance += getCheethOwedToThisMouse(thisMouseId); miceClaimTimes[thisMouseId] = block.timestamp; } _mint(msg.sender, runningCheethAllowance); } function unstakeAll() external { unstakeMiceByIds(stakedMices[msg.sender].values()); } function swapCheethV1ForV2(uint256 _amount) external { require(isCheethSwapEnabled, "CheethV1 swap is disabled!"); ERC20Burnable(cheethV1Address).burnFrom(msg.sender, _amount); _mint(msg.sender, _amount * 100); } function _stakeMouse(uint256 _mouseId) internal onlyMouseOwner(_mouseId) { //Transfer their token IERC721Enumerable(anonymiceAddress).transferFrom( msg.sender, address(this), _mouseId ); // Add the mice to the owner's set stakedMices[msg.sender].add(_mouseId); //Set this mouseId timestamp to now miceStakeTimes[_mouseId] = block.timestamp; miceClaimTimes[_mouseId] = 0; } function _unstakeMouse(uint256 _mouseId) internal onlyMouseStaker(_mouseId) { uint256 cheethOwedToThisMouse = getCheethOwedToThisMouse(_mouseId); _mint(msg.sender, cheethOwedToThisMouse); IERC721(anonymiceAddress).transferFrom( address(this), msg.sender, _mouseId ); stakedMices[msg.sender].remove(_mouseId); } // GETTERS function getStakedMiceData(address _address) external view returns (StakedMouse[] memory) { uint256[] memory ids = stakedMices[_address].values(); StakedMouse[] memory stakedMice = new StakedMouse[](ids.length); for (uint256 index = 0; index < ids.length; index++) { uint256 _mouseId = ids[index]; stakedMice[index] = StakedMouse( _mouseId, miceStakeTimes[_mouseId], getMouseCheethEmission(_mouseId) ); } return stakedMice; } function tokensStaked(address _address) external view returns (uint256[] memory) { return stakedMices[_address].values(); } function stakedMiceQuantity(address _address) external view returns (uint256) { return stakedMices[_address].length(); } function getCheethOwedToThisMouse(uint256 _mouseId) public view returns (uint256) { uint256 elapsedTime = block.timestamp - miceStakeTimes[_mouseId]; uint256 elapsedDays = elapsedTime < 1 days ? 0 : elapsedTime / 1 days; uint256 leftoverSeconds = elapsedTime - elapsedDays * 1 days; if (miceClaimTimes[_mouseId] == 0) { return _calculateCheeth(elapsedDays, leftoverSeconds); } uint256 elapsedTimeSinceClaim = miceClaimTimes[_mouseId] - miceStakeTimes[_mouseId]; uint256 elapsedDaysSinceClaim = elapsedTimeSinceClaim < 1 days ? 0 : elapsedTimeSinceClaim / 1 days; uint256 leftoverSecondsSinceClaim = elapsedTimeSinceClaim - elapsedDaysSinceClaim * 1 days; return _calculateCheeth(elapsedDays, leftoverSeconds) - _calculateCheeth(elapsedDaysSinceClaim, leftoverSecondsSinceClaim); } function getTotalRewardsForUser(address _address) external view returns (uint256) { uint256 runningCheethTotal; uint256[] memory miceIds = stakedMices[_address].values(); for (uint256 i = 0; i < miceIds.length; i++) { runningCheethTotal += getCheethOwedToThisMouse(miceIds[i]); } return runningCheethTotal; } function getMouseCheethEmission(uint256 _mouseId) public view returns (uint256) { uint256 elapsedTime = block.timestamp - miceStakeTimes[_mouseId]; uint256 elapsedDays = elapsedTime < 1 days ? 0 : elapsedTime / 1 days; return _cheethDailyIncrement(elapsedDays); } function _calculateCheeth(uint256 _days, uint256 _leftoverSeconds) internal pure returns (uint256) { uint256 progressiveDays = Math.min(_days, 100); uint256 progressiveReward = progressiveDays == 0 ? 0 : (progressiveDays * (80.2 ether + 0.2 ether * (progressiveDays - 1) + 80.2 ether)) / 2; uint256 dailyIncrement = _cheethDailyIncrement(_days); uint256 leftoverReward = _leftoverSeconds > 0 ? (dailyIncrement * _leftoverSeconds) / 1 days : 0; if (_days <= 100) { return progressiveReward + leftoverReward; } return progressiveReward + (_days - 100) * 100 ether + leftoverReward; } function _cheethDailyIncrement(uint256 _days) internal pure returns (uint256) { return _days > 100 ? 100 ether : 80 ether + _days * 0.2 ether; } // OWNER FUNCTIONS function setAddresses(address _anonymiceAddress, address _cheethV1Address) public onlyOwner { anonymiceAddress = _anonymiceAddress; cheethV1Address = _cheethV1Address; } function setIsCheethSwapEnabled(bool _isCheethSwapEnabled) public onlyOwner { isCheethSwapEnabled = _isCheethSwapEnabled; } // MODIFIERS modifier onlyMouseOwner(uint256 _mouseId) { require( IERC721Enumerable(anonymiceAddress).ownerOf(_mouseId) == msg.sender, "Can only stake mice you own!" ); _; } modifier onlyMouseStaker(uint256 _mouseId) { require( stakedMices[msg.sender].contains(_mouseId), "Can only unstake mice you staked!" ); _; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/ERC20Burnable.sol) pragma solidity ^0.8.0; import "../ERC20.sol"; import "../../../utils/Context.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 ERC20Burnable is Context, ERC20 { /** * @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); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 SafeMath { /** * @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 (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a / b + (a % b == 0 ? 0 : 1); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 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/structs/EnumerableSet.sol) pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { return _values(set._inner); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; assembly { result := store } return result; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.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 ERC20 is Context, IERC20, IERC20Metadata { 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. */ constructor(string memory name_, string memory symbol_) { _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 {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @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/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, 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; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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":"STAKE_LIMIT","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":[],"name":"anonymiceAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"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":[{"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":[],"name":"cheethV1Address","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimAllRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_miceIds","type":"uint256[]"}],"name":"claimRewardsByIds","outputs":[],"stateMutability":"nonpayable","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":"uint256","name":"_mouseId","type":"uint256"}],"name":"getCheethOwedToThisMouse","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mouseId","type":"uint256"}],"name":"getMouseCheethEmission","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getStakedMiceData","outputs":[{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"stakedSince","type":"uint256"},{"internalType":"uint256","name":"cheethEmision","type":"uint256"}],"internalType":"struct CheethV2.StakedMouse[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getTotalRewardsForUser","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":"isCheethSwapEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"miceClaimTimes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"miceStakeTimes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_anonymiceAddress","type":"address"},{"internalType":"address","name":"_cheethV1Address","type":"address"}],"name":"setAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isCheethSwapEnabled","type":"bool"}],"name":"setIsCheethSwapEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_miceIds","type":"uint256[]"}],"name":"stakeMiceByIds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"stakedMiceQuantity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"swapCheethV1ForV2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"tokensStaked","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"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":[],"name":"unstakeAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_miceIds","type":"uint256[]"}],"name":"unstakeMiceByIds","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405180604001604052806006815260200165086d0cacae8d60d31b81525060405180604001604052806006815260200165086908a8aa8960d31b81525081600390805190602001906200006892919062000104565b5080516200007e90600490602084019062000104565b5050506200009b62000095620000ae60201b60201c565b620000b2565b600b805460ff19166001179055620001e7565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200011290620001aa565b90600052602060002090601f01602090048101928262000136576000855562000181565b82601f106200015157805160ff191683800117855562000181565b8280016001018555821562000181579182015b828111156200018157825182559160200191906001019062000164565b506200018f92915062000193565b5090565b5b808211156200018f576000815560010162000194565b600181811c90821680620001bf57607f821691505b60208210811415620001e157634e487b7160e01b600052602260045260246000fd5b50919050565b61206c80620001f76000396000f3fe608060405234801561001057600080fd5b506004361061021c5760003560e01c80636650331211610125578063a457c2d7116100ad578063af9325c01161007c578063af9325c01461049c578063dbe5a23a146104af578063dd62ed3e146104c2578063e714bbd1146104fb578063f2fde38b1461051b57600080fd5b8063a457c2d714610450578063a9059cbb14610463578063ac4756f814610476578063ad003bef1461048957600080fd5b806386759955116100f457806386759955146103e45780638da5cb5b1461040457806390107afe1461041557806393a315e31461042857806395d89b411461044857600080fd5b8063665033121461038d57806370a08231146103a0578063715018a6146103c957806379cc6790146103d157600080fd5b80632a0f6f38116101a8578063395093511161017757806339509351146103345780633ad75aff1461034757806342966c681461035457806346a43d9a1461036757806348840fd01461037a57600080fd5b80632a0f6f38146102ea5780632cf01b55146102fd578063313ce5671461031d57806335322f371461032c57600080fd5b806314716ac8116101ef57806314716ac81461027f57806318160ddd146102aa5780631b8bc058146102bc57806320ca5184146102cf57806323b872dd146102d757600080fd5b80630665b7a81461022157806306fdde0314610236578063095ea7b3146102545780630b83a72714610277575b600080fd5b61023461022f366004611dd4565b61052e565b005b61023e610574565b60405161024b9190611ea9565b60405180910390f35b610267610262366004611ce9565b610606565b604051901515815260200161024b565b61023461061d565b600654610292906001600160a01b031681565b6040516001600160a01b03909116815260200161024b565b6002545b60405190815260200161024b565b6102ae6102ca366004611df4565b6106a2565b6102ae601981565b6102676102e5366004611ca9565b6106f3565b6102346102f8366004611d14565b61079d565b61031061030b366004611c39565b6107ef565b60405161024b9190611e65565b6040516012815260200161024b565b610234610813565b610267610342366004611ce9565b610831565b600b546102679060ff1681565b610234610362366004611df4565b61086d565b6102ae610375366004611c39565b610877565b610234610388366004611df4565b610898565b6102ae61039b366004611c39565b610964565b6102ae6103ae366004611c39565b6001600160a01b031660009081526020819052604090205490565b6102346109ee565b6102346103df366004611ce9565b610a22565b6102ae6103f2366004611df4565b600a6020526000908152604090205481565b6005546001600160a01b0316610292565b610234610423366004611c71565b610aa8565b6102ae610436366004611df4565b60096020526000908152604090205481565b61023e610b00565b61026761045e366004611ce9565b610b0f565b610267610471366004611ce9565b610ba8565b600754610292906001600160a01b031681565b610234610497366004611d14565b610bb5565b6102ae6104aa366004611df4565b610ca7565b6102346104bd366004611d14565b610db7565b6102ae6104d0366004611c71565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61050e610509366004611c39565b610e89565b60405161024b9190611e0c565b610234610529366004611c39565b610fe7565b6005546001600160a01b031633146105615760405162461bcd60e51b815260040161055890611efc565b60405180910390fd5b600b805460ff1916911515919091179055565b60606003805461058390611f9f565b80601f01602080910402602001604051908101604052809291908181526020018280546105af90611f9f565b80156105fc5780601f106105d1576101008083540402835291602001916105fc565b820191906000526020600020905b8154815290600101906020018083116105df57829003601f168201915b5050505050905090565b600061061333848461107f565b5060015b92915050565b6000805b336000908152600860205260409020610639906111a3565b8110156106945733600090815260086020526040812061065990836111ad565b905061066481610ca7565b61066e9084611f31565b6000918252600a602052604090912042905591508061068c81611fda565b915050610621565b5061069f33826111c0565b50565b60008181526009602052604081205481906106bd9042611f88565b905060006201518082106106dd576106d86201518083611f49565b6106e0565b60005b90506106eb8161129f565b949350505050565b60006107008484846112e3565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156107855760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b6064820152608401610558565b610792853385840361107f565b506001949350505050565b60005b81518110156107eb576107d98282815181106107cc57634e487b7160e01b600052603260045260246000fd5b60200260200101516114b3565b806107e381611fda565b9150506107a0565b5050565b6001600160a01b0381166000908152600860205260409020606090610617906115bf565b33600090815260086020526040902061082f906102f8906115bf565b565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610613918590610868908690611f31565b61107f565b61069f33826115cc565b6001600160a01b0381166000908152600860205260408120610617906111a3565b600b5460ff166108ea5760405162461bcd60e51b815260206004820152601a60248201527f436865657468563120737761702069732064697361626c6564210000000000006044820152606401610558565b60075460405163079cc67960e41b8152336004820152602481018390526001600160a01b03909116906379cc679090604401600060405180830381600087803b15801561093657600080fd5b505af115801561094a573d6000803e3d6000fd5b5050505061069f3382606461095f9190611f69565b6111c0565b6001600160a01b038116600090815260086020526040812081908190610989906115bf565b905060005b81518110156109e5576109c78282815181106109ba57634e487b7160e01b600052603260045260246000fd5b6020026020010151610ca7565b6109d19084611f31565b9250806109dd81611fda565b91505061098e565b50909392505050565b6005546001600160a01b03163314610a185760405162461bcd60e51b815260040161055890611efc565b61082f600061171a565b6000610a2e83336104d0565b905081811015610a8c5760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77604482015263616e636560e01b6064820152608401610558565b610a99833384840361107f565b610aa383836115cc565b505050565b6005546001600160a01b03163314610ad25760405162461bcd60e51b815260040161055890611efc565b600680546001600160a01b039384166001600160a01b03199182161790915560078054929093169116179055565b60606004805461058390611f9f565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015610b915760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610558565b610b9e338585840361107f565b5060019392505050565b60006106133384846112e3565b6000805b8251811015610c9c576000838281518110610be457634e487b7160e01b600052603260045260246000fd5b60209081029190910181015133600090815260089092526040909120909150610c0d908261176c565b610c635760405162461bcd60e51b815260206004820152602160248201527f43616e206f6e6c7920636c61696d2061206d69636520796f75207374616b65646044820152602160f81b6064820152608401610558565b610c6c81610ca7565b610c769084611f31565b6000918252600a6020526040909120429055915080610c9481611fda565b915050610bb9565b506107eb33826111c0565b6000818152600960205260408120548190610cc29042611f88565b90506000620151808210610ce257610cdd6201518083611f49565b610ce5565b60005b90506000610cf68262015180611f69565b610d009084611f88565b6000868152600a6020526040902054909150610d2957610d208282611784565b95945050505050565b600085815260096020908152604080832054600a909252822054610d4d9190611f88565b90506000620151808210610d6d57610d686201518083611f49565b610d70565b60005b90506000610d818262015180611f69565b610d8b9084611f88565b9050610d978282611784565b610da18686611784565b610dab9190611f88565b98975050505050505050565b336000908152600860205260409020601990610dd2906111a3565b8251610dde9190611f31565b1115610e3b5760405162461bcd60e51b815260206004820152602660248201527f43616e206f6e6c7920686176652061206d6178206f66203235206d696365207360448201526574616b65642160d01b6064820152608401610558565b60005b81518110156107eb57610e77828281518110610e6a57634e487b7160e01b600052603260045260246000fd5b6020026020010151611891565b80610e8181611fda565b915050610e3e565b6001600160a01b038116600090815260086020526040812060609190610eae906115bf565b90506000815167ffffffffffffffff811115610eda57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610f2f57816020015b610f1c60405180606001604052806000815260200160008152602001600081525090565b815260200190600190039081610ef85790505b50905060005b8251811015610fdf576000838281518110610f6057634e487b7160e01b600052603260045260246000fd5b60200260200101519050604051806060016040528082815260200160096000848152602001908152602001600020548152602001610f9d836106a2565b815250838381518110610fc057634e487b7160e01b600052603260045260246000fd5b6020026020010181905250508080610fd790611fda565b915050610f35565b509392505050565b6005546001600160a01b031633146110115760405162461bcd60e51b815260040161055890611efc565b6001600160a01b0381166110765760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610558565b61069f8161171a565b6001600160a01b0383166110e15760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610558565b6001600160a01b0382166111425760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610558565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000610617825490565b60006111b98383611a0b565b9392505050565b6001600160a01b0382166112165760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610558565b80600260008282546112289190611f31565b90915550506001600160a01b03821660009081526020819052604081208054839290611255908490611f31565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6000606482116112d3576112bb826702c68af0bb140000611f69565b6112ce906804563918244f400000611f31565b610617565b68056bc75e2d6310000092915050565b6001600160a01b0383166113475760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610558565b6001600160a01b0382166113a95760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610558565b6001600160a01b038316600090815260208190526040902054818110156114215760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610558565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611458908490611f31565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516114a491815260200190565b60405180910390a35b50505050565b33600090815260086020526040902081906114ce908261176c565b6115245760405162461bcd60e51b815260206004820152602160248201527f43616e206f6e6c7920756e7374616b65206d69636520796f75207374616b65646044820152602160f81b6064820152608401610558565b600061152f83610ca7565b905061153b33826111c0565b6006546040516323b872dd60e01b8152306004820152336024820152604481018590526001600160a01b03909116906323b872dd90606401600060405180830381600087803b15801561158d57600080fd5b505af11580156115a1573d6000803e3d6000fd5b50503360009081526008602052604090206114ad9250905084611a43565b606060006111b983611a4f565b6001600160a01b03821661162c5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610558565b6001600160a01b038216600090815260208190526040902054818110156116a05760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610558565b6001600160a01b03831660009081526020819052604081208383039055600280548492906116cf908490611f88565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600081815260018301602052604081205415156111b9565b600080611792846064611aab565b9050600081156117fa5760026117a9600184611f88565b6117bb906702c68af0bb140000611f69565b6117ce90680458ffa3150a540000611f31565b6117e190680458ffa3150a540000611f31565b6117eb9084611f69565b6117f59190611f49565b6117fd565b60005b9050600061180a8661129f565b9050600080861161181c576000611834565b6201518061182a8784611f69565b6118349190611f49565b905060648711611853576118488184611f31565b945050505050610617565b8061185f606489611f88565b6118729068056bc75e2d63100000611f69565b61187c9085611f31565b6118869190611f31565b979650505050505050565b6006546040516331a9108f60e11b815260048101839052829133916001600160a01b0390911690636352211e9060240160206040518083038186803b1580156118d957600080fd5b505afa1580156118ed573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119119190611c55565b6001600160a01b0316146119675760405162461bcd60e51b815260206004820152601c60248201527f43616e206f6e6c79207374616b65206d69636520796f75206f776e21000000006044820152606401610558565b6006546040516323b872dd60e01b8152336004820152306024820152604481018490526001600160a01b03909116906323b872dd90606401600060405180830381600087803b1580156119b957600080fd5b505af11580156119cd573d6000803e3d6000fd5b50503360009081526008602052604090206119eb9250905083611ac1565b50506000908152600960209081526040808320429055600a909152812055565b6000826000018281548110611a3057634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905092915050565b60006111b98383611acd565b606081600001805480602002602001604051908101604052809291908181526020018280548015611a9f57602002820191906000526020600020905b815481526020019060010190808311611a8b575b50505050509050919050565b6000818310611aba57816111b9565b5090919050565b60006111b98383611bea565b60008181526001830160205260408120548015611be0576000611af1600183611f88565b8554909150600090611b0590600190611f88565b9050818114611b86576000866000018281548110611b3357634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080876000018481548110611b6457634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255918252600188019052604090208390555b8554869080611ba557634e487b7160e01b600052603160045260246000fd5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610617565b6000915050610617565b6000818152600183016020526040812054611c3157508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610617565b506000610617565b600060208284031215611c4a578081fd5b81356111b981612021565b600060208284031215611c66578081fd5b81516111b981612021565b60008060408385031215611c83578081fd5b8235611c8e81612021565b91506020830135611c9e81612021565b809150509250929050565b600080600060608486031215611cbd578081fd5b8335611cc881612021565b92506020840135611cd881612021565b929592945050506040919091013590565b60008060408385031215611cfb578182fd5b8235611d0681612021565b946020939093013593505050565b60006020808385031215611d26578182fd5b823567ffffffffffffffff80821115611d3d578384fd5b818501915085601f830112611d50578384fd5b813581811115611d6257611d6261200b565b8060051b604051601f19603f83011681018181108582111715611d8757611d8761200b565b604052828152858101935084860182860187018a1015611da5578788fd5b8795505b83861015611dc7578035855260019590950194938601938601611da9565b5098975050505050505050565b600060208284031215611de5578081fd5b813580151581146111b9578182fd5b600060208284031215611e05578081fd5b5035919050565b602080825282518282018190526000919060409081850190868401855b82811015611e585781518051855286810151878601528501518585015260609093019290850190600101611e29565b5091979650505050505050565b6020808252825182820181905260009190848201906040850190845b81811015611e9d57835183529284019291840191600101611e81565b50909695505050505050565b6000602080835283518082850152825b81811015611ed557858101830151858201604001528201611eb9565b81811115611ee65783604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008219821115611f4457611f44611ff5565b500190565b600082611f6457634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615611f8357611f83611ff5565b500290565b600082821015611f9a57611f9a611ff5565b500390565b600181811c90821680611fb357607f821691505b60208210811415611fd457634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415611fee57611fee611ff5565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461069f57600080fdfea2646970667358221220a7370ad7c000a0823f2543a41ff384daae7914d765e7ed8aebb286ea35ff9f5364736f6c63430008040033
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061021c5760003560e01c80636650331211610125578063a457c2d7116100ad578063af9325c01161007c578063af9325c01461049c578063dbe5a23a146104af578063dd62ed3e146104c2578063e714bbd1146104fb578063f2fde38b1461051b57600080fd5b8063a457c2d714610450578063a9059cbb14610463578063ac4756f814610476578063ad003bef1461048957600080fd5b806386759955116100f457806386759955146103e45780638da5cb5b1461040457806390107afe1461041557806393a315e31461042857806395d89b411461044857600080fd5b8063665033121461038d57806370a08231146103a0578063715018a6146103c957806379cc6790146103d157600080fd5b80632a0f6f38116101a8578063395093511161017757806339509351146103345780633ad75aff1461034757806342966c681461035457806346a43d9a1461036757806348840fd01461037a57600080fd5b80632a0f6f38146102ea5780632cf01b55146102fd578063313ce5671461031d57806335322f371461032c57600080fd5b806314716ac8116101ef57806314716ac81461027f57806318160ddd146102aa5780631b8bc058146102bc57806320ca5184146102cf57806323b872dd146102d757600080fd5b80630665b7a81461022157806306fdde0314610236578063095ea7b3146102545780630b83a72714610277575b600080fd5b61023461022f366004611dd4565b61052e565b005b61023e610574565b60405161024b9190611ea9565b60405180910390f35b610267610262366004611ce9565b610606565b604051901515815260200161024b565b61023461061d565b600654610292906001600160a01b031681565b6040516001600160a01b03909116815260200161024b565b6002545b60405190815260200161024b565b6102ae6102ca366004611df4565b6106a2565b6102ae601981565b6102676102e5366004611ca9565b6106f3565b6102346102f8366004611d14565b61079d565b61031061030b366004611c39565b6107ef565b60405161024b9190611e65565b6040516012815260200161024b565b610234610813565b610267610342366004611ce9565b610831565b600b546102679060ff1681565b610234610362366004611df4565b61086d565b6102ae610375366004611c39565b610877565b610234610388366004611df4565b610898565b6102ae61039b366004611c39565b610964565b6102ae6103ae366004611c39565b6001600160a01b031660009081526020819052604090205490565b6102346109ee565b6102346103df366004611ce9565b610a22565b6102ae6103f2366004611df4565b600a6020526000908152604090205481565b6005546001600160a01b0316610292565b610234610423366004611c71565b610aa8565b6102ae610436366004611df4565b60096020526000908152604090205481565b61023e610b00565b61026761045e366004611ce9565b610b0f565b610267610471366004611ce9565b610ba8565b600754610292906001600160a01b031681565b610234610497366004611d14565b610bb5565b6102ae6104aa366004611df4565b610ca7565b6102346104bd366004611d14565b610db7565b6102ae6104d0366004611c71565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61050e610509366004611c39565b610e89565b60405161024b9190611e0c565b610234610529366004611c39565b610fe7565b6005546001600160a01b031633146105615760405162461bcd60e51b815260040161055890611efc565b60405180910390fd5b600b805460ff1916911515919091179055565b60606003805461058390611f9f565b80601f01602080910402602001604051908101604052809291908181526020018280546105af90611f9f565b80156105fc5780601f106105d1576101008083540402835291602001916105fc565b820191906000526020600020905b8154815290600101906020018083116105df57829003601f168201915b5050505050905090565b600061061333848461107f565b5060015b92915050565b6000805b336000908152600860205260409020610639906111a3565b8110156106945733600090815260086020526040812061065990836111ad565b905061066481610ca7565b61066e9084611f31565b6000918252600a602052604090912042905591508061068c81611fda565b915050610621565b5061069f33826111c0565b50565b60008181526009602052604081205481906106bd9042611f88565b905060006201518082106106dd576106d86201518083611f49565b6106e0565b60005b90506106eb8161129f565b949350505050565b60006107008484846112e3565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156107855760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b6064820152608401610558565b610792853385840361107f565b506001949350505050565b60005b81518110156107eb576107d98282815181106107cc57634e487b7160e01b600052603260045260246000fd5b60200260200101516114b3565b806107e381611fda565b9150506107a0565b5050565b6001600160a01b0381166000908152600860205260409020606090610617906115bf565b33600090815260086020526040902061082f906102f8906115bf565b565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610613918590610868908690611f31565b61107f565b61069f33826115cc565b6001600160a01b0381166000908152600860205260408120610617906111a3565b600b5460ff166108ea5760405162461bcd60e51b815260206004820152601a60248201527f436865657468563120737761702069732064697361626c6564210000000000006044820152606401610558565b60075460405163079cc67960e41b8152336004820152602481018390526001600160a01b03909116906379cc679090604401600060405180830381600087803b15801561093657600080fd5b505af115801561094a573d6000803e3d6000fd5b5050505061069f3382606461095f9190611f69565b6111c0565b6001600160a01b038116600090815260086020526040812081908190610989906115bf565b905060005b81518110156109e5576109c78282815181106109ba57634e487b7160e01b600052603260045260246000fd5b6020026020010151610ca7565b6109d19084611f31565b9250806109dd81611fda565b91505061098e565b50909392505050565b6005546001600160a01b03163314610a185760405162461bcd60e51b815260040161055890611efc565b61082f600061171a565b6000610a2e83336104d0565b905081811015610a8c5760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77604482015263616e636560e01b6064820152608401610558565b610a99833384840361107f565b610aa383836115cc565b505050565b6005546001600160a01b03163314610ad25760405162461bcd60e51b815260040161055890611efc565b600680546001600160a01b039384166001600160a01b03199182161790915560078054929093169116179055565b60606004805461058390611f9f565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015610b915760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610558565b610b9e338585840361107f565b5060019392505050565b60006106133384846112e3565b6000805b8251811015610c9c576000838281518110610be457634e487b7160e01b600052603260045260246000fd5b60209081029190910181015133600090815260089092526040909120909150610c0d908261176c565b610c635760405162461bcd60e51b815260206004820152602160248201527f43616e206f6e6c7920636c61696d2061206d69636520796f75207374616b65646044820152602160f81b6064820152608401610558565b610c6c81610ca7565b610c769084611f31565b6000918252600a6020526040909120429055915080610c9481611fda565b915050610bb9565b506107eb33826111c0565b6000818152600960205260408120548190610cc29042611f88565b90506000620151808210610ce257610cdd6201518083611f49565b610ce5565b60005b90506000610cf68262015180611f69565b610d009084611f88565b6000868152600a6020526040902054909150610d2957610d208282611784565b95945050505050565b600085815260096020908152604080832054600a909252822054610d4d9190611f88565b90506000620151808210610d6d57610d686201518083611f49565b610d70565b60005b90506000610d818262015180611f69565b610d8b9084611f88565b9050610d978282611784565b610da18686611784565b610dab9190611f88565b98975050505050505050565b336000908152600860205260409020601990610dd2906111a3565b8251610dde9190611f31565b1115610e3b5760405162461bcd60e51b815260206004820152602660248201527f43616e206f6e6c7920686176652061206d6178206f66203235206d696365207360448201526574616b65642160d01b6064820152608401610558565b60005b81518110156107eb57610e77828281518110610e6a57634e487b7160e01b600052603260045260246000fd5b6020026020010151611891565b80610e8181611fda565b915050610e3e565b6001600160a01b038116600090815260086020526040812060609190610eae906115bf565b90506000815167ffffffffffffffff811115610eda57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610f2f57816020015b610f1c60405180606001604052806000815260200160008152602001600081525090565b815260200190600190039081610ef85790505b50905060005b8251811015610fdf576000838281518110610f6057634e487b7160e01b600052603260045260246000fd5b60200260200101519050604051806060016040528082815260200160096000848152602001908152602001600020548152602001610f9d836106a2565b815250838381518110610fc057634e487b7160e01b600052603260045260246000fd5b6020026020010181905250508080610fd790611fda565b915050610f35565b509392505050565b6005546001600160a01b031633146110115760405162461bcd60e51b815260040161055890611efc565b6001600160a01b0381166110765760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610558565b61069f8161171a565b6001600160a01b0383166110e15760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610558565b6001600160a01b0382166111425760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610558565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000610617825490565b60006111b98383611a0b565b9392505050565b6001600160a01b0382166112165760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610558565b80600260008282546112289190611f31565b90915550506001600160a01b03821660009081526020819052604081208054839290611255908490611f31565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6000606482116112d3576112bb826702c68af0bb140000611f69565b6112ce906804563918244f400000611f31565b610617565b68056bc75e2d6310000092915050565b6001600160a01b0383166113475760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610558565b6001600160a01b0382166113a95760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610558565b6001600160a01b038316600090815260208190526040902054818110156114215760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610558565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611458908490611f31565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516114a491815260200190565b60405180910390a35b50505050565b33600090815260086020526040902081906114ce908261176c565b6115245760405162461bcd60e51b815260206004820152602160248201527f43616e206f6e6c7920756e7374616b65206d69636520796f75207374616b65646044820152602160f81b6064820152608401610558565b600061152f83610ca7565b905061153b33826111c0565b6006546040516323b872dd60e01b8152306004820152336024820152604481018590526001600160a01b03909116906323b872dd90606401600060405180830381600087803b15801561158d57600080fd5b505af11580156115a1573d6000803e3d6000fd5b50503360009081526008602052604090206114ad9250905084611a43565b606060006111b983611a4f565b6001600160a01b03821661162c5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610558565b6001600160a01b038216600090815260208190526040902054818110156116a05760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610558565b6001600160a01b03831660009081526020819052604081208383039055600280548492906116cf908490611f88565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600081815260018301602052604081205415156111b9565b600080611792846064611aab565b9050600081156117fa5760026117a9600184611f88565b6117bb906702c68af0bb140000611f69565b6117ce90680458ffa3150a540000611f31565b6117e190680458ffa3150a540000611f31565b6117eb9084611f69565b6117f59190611f49565b6117fd565b60005b9050600061180a8661129f565b9050600080861161181c576000611834565b6201518061182a8784611f69565b6118349190611f49565b905060648711611853576118488184611f31565b945050505050610617565b8061185f606489611f88565b6118729068056bc75e2d63100000611f69565b61187c9085611f31565b6118869190611f31565b979650505050505050565b6006546040516331a9108f60e11b815260048101839052829133916001600160a01b0390911690636352211e9060240160206040518083038186803b1580156118d957600080fd5b505afa1580156118ed573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119119190611c55565b6001600160a01b0316146119675760405162461bcd60e51b815260206004820152601c60248201527f43616e206f6e6c79207374616b65206d69636520796f75206f776e21000000006044820152606401610558565b6006546040516323b872dd60e01b8152336004820152306024820152604481018490526001600160a01b03909116906323b872dd90606401600060405180830381600087803b1580156119b957600080fd5b505af11580156119cd573d6000803e3d6000fd5b50503360009081526008602052604090206119eb9250905083611ac1565b50506000908152600960209081526040808320429055600a909152812055565b6000826000018281548110611a3057634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905092915050565b60006111b98383611acd565b606081600001805480602002602001604051908101604052809291908181526020018280548015611a9f57602002820191906000526020600020905b815481526020019060010190808311611a8b575b50505050509050919050565b6000818310611aba57816111b9565b5090919050565b60006111b98383611bea565b60008181526001830160205260408120548015611be0576000611af1600183611f88565b8554909150600090611b0590600190611f88565b9050818114611b86576000866000018281548110611b3357634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080876000018481548110611b6457634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255918252600188019052604090208390555b8554869080611ba557634e487b7160e01b600052603160045260246000fd5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610617565b6000915050610617565b6000818152600183016020526040812054611c3157508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610617565b506000610617565b600060208284031215611c4a578081fd5b81356111b981612021565b600060208284031215611c66578081fd5b81516111b981612021565b60008060408385031215611c83578081fd5b8235611c8e81612021565b91506020830135611c9e81612021565b809150509250929050565b600080600060608486031215611cbd578081fd5b8335611cc881612021565b92506020840135611cd881612021565b929592945050506040919091013590565b60008060408385031215611cfb578182fd5b8235611d0681612021565b946020939093013593505050565b60006020808385031215611d26578182fd5b823567ffffffffffffffff80821115611d3d578384fd5b818501915085601f830112611d50578384fd5b813581811115611d6257611d6261200b565b8060051b604051601f19603f83011681018181108582111715611d8757611d8761200b565b604052828152858101935084860182860187018a1015611da5578788fd5b8795505b83861015611dc7578035855260019590950194938601938601611da9565b5098975050505050505050565b600060208284031215611de5578081fd5b813580151581146111b9578182fd5b600060208284031215611e05578081fd5b5035919050565b602080825282518282018190526000919060409081850190868401855b82811015611e585781518051855286810151878601528501518585015260609093019290850190600101611e29565b5091979650505050505050565b6020808252825182820181905260009190848201906040850190845b81811015611e9d57835183529284019291840191600101611e81565b50909695505050505050565b6000602080835283518082850152825b81811015611ed557858101830151858201604001528201611eb9565b81811115611ee65783604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008219821115611f4457611f44611ff5565b500190565b600082611f6457634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615611f8357611f83611ff5565b500290565b600082821015611f9a57611f9a611ff5565b500390565b600181811c90821680611fb357607f821691505b60208210811415611fd457634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415611fee57611fee611ff5565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461069f57600080fdfea2646970667358221220a7370ad7c000a0823f2543a41ff384daae7914d765e7ed8aebb286ea35ff9f5364736f6c63430008040033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.