ERC-20
Overview
Max Total Supply
21,282,036.093333333367088493 STACK
Holders
2,460
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
669.599999999999990016 STACKValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
StakedToadz
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 10 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT 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/token/ERC721/extensions/IERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import '@openzeppelin/contracts/utils/math/Math.sol'; import "./IStakedToadz.sol"; contract StakedToadz is ERC20Burnable, Ownable, IERC721Receiver, ReentrancyGuard { using EnumerableSet for EnumerableSet.UintSet; //addresses address nullAddress = 0x0000000000000000000000000000000000000000; address public stackedToadzAddress; //uint256's uint256 public expiration; //rate governs how often you receive $STACK uint256 public rate; // mappings mapping(address => EnumerableSet.UintSet) private _deposits; mapping(address => mapping(uint256 => uint256)) public _depositBlocks; constructor( address _stackedToadz, uint256 _rate, uint256 _expiration ) ERC20("StackToken", "STACK") { stackedToadzAddress = _stackedToadz; rate = _rate; expiration = block.number + _expiration; } /* TOKEN STUFF */ uint256 public teamMintValue; mapping(address => bool) private whitelist; function setWhitelist(address[] calldata minters) external onlyOwner { for (uint256 i; i < minters.length; i++) { whitelist[minters[i]] = true; } whitelist[address(this)] = true; } function mint(address account, uint256 amount) external { require(whitelist[msg.sender], 'GET OUT YOU NOT WHITELISTED, SER.'); _mint(account, amount); } function teamMint(address account, uint256 amount) external onlyOwner { require((totalSupply() + amount) / (teamMintValue + amount) >= 10,'TOO MUCH STACK'); _mint(account, amount); teamMintValue += amount; } /* UNSTACKED FARM MECHANICS */ //alter rate and expiration of the unstacked toad farm. function setRateExpiration(uint256 _rate, uint256 _expiration) public onlyOwner() { rate = _rate; expiration = _expiration; } //check deposit amount. function depositsOf(address account) external view returns (uint256[] memory) { EnumerableSet.UintSet storage depositSet = _deposits[account]; uint256[] memory tokenIds = new uint256[] (depositSet.length()); for (uint256 i; i<depositSet.length(); i++) { tokenIds[i] = depositSet.at(i); } return tokenIds; } //reward amount by address/tokenIds[] function calculateRewards(address account, uint256[] memory tokenIds) public view returns (uint256[] memory rewards) { rewards = new uint256[](tokenIds.length); for (uint256 i; i < tokenIds.length; i++) { uint256 tokenId = tokenIds[i]; rewards[i] = rate * (_deposits[account].contains(tokenId) ? 1 : 0) * (Math.min(block.number, expiration) - _depositBlocks[account][tokenId]); } return rewards; } //reward claim function function claimRewards(uint256[] calldata tokenIds) public { uint256 reward; uint256 block = Math.min(block.number, expiration); uint256[] memory rewards = calculateRewards(msg.sender, tokenIds); for (uint256 i; i < tokenIds.length; i++) { reward += rewards[i]; _depositBlocks[msg.sender][tokenIds[i]] = block; } if (reward > 0) { _mint(msg.sender, reward); } } //deposit function. function deposit(uint256[] calldata tokenIds) external { claimRewards(tokenIds); for (uint256 i; i < tokenIds.length; i++) { IERC721(stackedToadzAddress).safeTransferFrom( msg.sender, address(this), tokenIds[i], '' ); _deposits[msg.sender].add(tokenIds[i]); } } //withdrawal function. function withdraw(uint256[] calldata tokenIds) external nonReentrant() { claimRewards(tokenIds); for (uint256 i; i < tokenIds.length; i++) { require( _deposits[msg.sender].contains(tokenIds[i]), 'Staking: token not deposited' ); _deposits[msg.sender].remove(tokenIds[i]); IERC721(stackedToadzAddress).safeTransferFrom( address(this), msg.sender, tokenIds[i], '' ); } } function onERC721Received( address, address, uint256, bytes calldata ) external pure override returns (bytes4) { return IERC721Receiver.onERC721Received.selector; } }
// SPDX-License-Identifier: MIT 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 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() { _setOwner(_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 { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT 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 no longer needed starting with Solidity 0.8. 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 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 pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT 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 pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT 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 pragma solidity ^0.8.0; import '@openzeppelin/contracts/token/ERC20/IERC20.sol'; interface IStakedToadz is IERC20 { function mint(address account, uint256 amount) external; }
// SPDX-License-Identifier: MIT 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 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 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 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 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 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": 10 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_stackedToadz","type":"address"},{"internalType":"uint256","name":"_rate","type":"uint256"},{"internalType":"uint256","name":"_expiration","type":"uint256"}],"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":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"_depositBlocks","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":[{"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":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"calculateRewards","outputs":[{"internalType":"uint256[]","name":"rewards","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"claimRewards","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":"tokenIds","type":"uint256[]"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"depositsOf","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"expiration","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":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rate","type":"uint256"},{"internalType":"uint256","name":"_expiration","type":"uint256"}],"name":"setRateExpiration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"minters","type":"address[]"}],"name":"setWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stackedToadzAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"teamMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"teamMintValue","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":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052600780546001600160a01b03191690553480156200002157600080fd5b5060405162001f9238038062001f92833981016040819052620000449162000200565b604080518082018252600a81526929ba30b1b5aa37b5b2b760b11b602080830191825283518085019094526005845264535441434b60d81b90840152815191929162000093916003916200015a565b508051620000a99060049060208401906200015a565b505050620000c6620000c06200010460201b60201c565b62000108565b6001600655600880546001600160a01b0319166001600160a01b038516179055600a829055620000f7814362000243565b60095550620002a5915050565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001689062000268565b90600052602060002090601f0160209004810192826200018c5760008555620001d7565b82601f10620001a757805160ff1916838001178555620001d7565b82800160010185558215620001d7579182015b82811115620001d7578251825591602001919060010190620001ba565b50620001e5929150620001e9565b5090565b5b80821115620001e55760008155600101620001ea565b60008060006060848603121562000215578283fd5b83516001600160a01b03811681146200022c578384fd5b602085015160409095015190969495509392505050565b600082198211156200026357634e487b7160e01b81526011600452602481fd5b500190565b600181811c908216806200027d57607f821691505b602082108114156200029f57634e487b7160e01b600052602260045260246000fd5b50919050565b611cdd80620002b56000396000f3fe608060405234801561001057600080fd5b50600436106101755760003560e01c8063068c526f1461017a57806306fdde03146101a3578063095ea7b3146101b8578063150b7a02146101db57806318160ddd1461021357806323b872dd146102255780632c4e722e14610238578063313ce56714610241578063395093511461025057806340c10f191461026357806342966c68146102785780634665096d1461028b578063598b8e71146102945780635eac6239146102a75780636c152700146102ba57806370a08231146102cd578063715018a6146102f657806379cc6790146102fe5780637a58cc2b146103115780638353b6bb1461033c5780638da5cb5b1461034557806395d89b411461034d578063983d95ce14610355578063a457c2d714610368578063a9059cbb1461037b578063add5a4fa1461038e578063b343ae14146103a1578063dd62ed3e146103cc578063e3a9db1a14610405578063f2fde38b14610418578063f42176481461042b575b600080fd5b61018d610188366004611925565b61043e565b60405161019a9190611acb565b60405180910390f35b6101ab6105a8565b60405161019a9190611b0f565b6101cb6101c63660046119f7565b61063a565b604051901515815260200161019a565b6101fa6101e9366004611890565b630a85bd0160e11b95945050505050565b6040516001600160e01b0319909116815260200161019a565b6002545b60405190815260200161019a565b6101cb610233366004611855565b610650565b610217600a5481565b6040516012815260200161019a565b6101cb61025e3660046119f7565b6106ff565b6102766102713660046119f7565b61073b565b005b610276610286366004611a5f565b6107b2565b61021760095481565b6102766102a2366004611a20565b6107bf565b6102766102b5366004611a20565b6108b7565b6102766102c8366004611a77565b6109c0565b6102176102db366004611809565b6001600160a01b031660009081526020819052604090205490565b6102766109fa565b61027661030c3660046119f7565b610a35565b600854610324906001600160a01b031681565b6040516001600160a01b03909116815260200161019a565b610217600d5481565b610324610ab6565b6101ab610ac5565b610276610363366004611a20565b610ad4565b6101cb6103763660046119f7565b610cb6565b6101cb6103893660046119f7565b610d4f565b61027661039c3660046119f7565b610d5c565b6102176103af3660046119f7565b600c60209081526000928352604080842090915290825290205481565b6102176103da366004611823565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61018d610413366004611809565b610e1d565b610276610426366004611809565b610ef4565b610276610439366004611a20565b610f91565b606081516001600160401b0381111561046757634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610490578160200160208202803683370190505b50905060005b82518110156105a05760008382815181106104c157634e487b7160e01b600052603260045260246000fd5b60200260200101519050600c6000866001600160a01b03166001600160a01b0316815260200190815260200160002060008281526020019081526020016000205461050e4360095461105f565b6105189190611bee565b6001600160a01b0386166000908152600b6020526040902061053a9083611077565b610545576000610548565b60015b60ff16600a546105589190611bcf565b6105629190611bcf565b83838151811061058257634e487b7160e01b600052603260045260246000fd5b6020908102919091010152508061059881611c40565b915050610496565b505b92915050565b6060600380546105b790611c05565b80601f01602080910402602001604051908101604052809291908181526020018280546105e390611c05565b80156106305780601f1061060557610100808354040283529160200191610630565b820191906000526020600020905b81548152906001019060200180831161061357829003601f168201915b5050505050905090565b6000610647338484611083565b50600192915050565b600061065d8484846111a7565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156106e75760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6106f48533858403611083565b506001949350505050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610647918590610736908690611b97565b611083565b336000908152600e602052604090205460ff166107a45760405162461bcd60e51b815260206004820152602160248201527f474554204f555420594f55204e4f542057484954454c49535445442c205345526044820152601760f91b60648201526084016106de565b6107ae8282611364565b5050565b6107bc3382611431565b50565b6107c982826108b7565b60005b818110156108b2576008546001600160a01b031663b88d4fde333086868681811061080757634e487b7160e01b600052603260045260246000fd5b905060200201356040518463ffffffff1660e01b815260040161082c93929190611a98565b600060405180830381600087803b15801561084657600080fd5b505af115801561085a573d6000803e3d6000fd5b5050505061089f83838381811061088157634e487b7160e01b600052603260045260246000fd5b336000908152600b602090815260409091209391020135905061156d565b50806108aa81611c40565b9150506107cc565b505050565b6000806108c64360095461105f565b905060006109073386868080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061043e92505050565b905060005b848110156109a85781818151811061093457634e487b7160e01b600052603260045260246000fd5b6020026020010151846109479190611b97565b336000908152600c6020526040812091955084919088888581811061097c57634e487b7160e01b600052603260045260246000fd5b9050602002013581526020019081526020016000208190555080806109a090611c40565b91505061090c565b5082156109b9576109b93384611364565b5050505050565b336109c9610ab6565b6001600160a01b0316146109ef5760405162461bcd60e51b81526004016106de90611b62565b600a91909155600955565b33610a03610ab6565b6001600160a01b031614610a295760405162461bcd60e51b81526004016106de90611b62565b610a336000611579565b565b6000610a4183336103da565b905081811015610a9f5760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77604482015263616e636560e01b60648201526084016106de565b610aac8333848403611083565b6108b28383611431565b6005546001600160a01b031690565b6060600480546105b790611c05565b60026006541415610b275760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016106de565b6002600655610b3682826108b7565b60005b81811015610cac57610b82838383818110610b6457634e487b7160e01b600052603260045260246000fd5b336000908152600b6020908152604090912093910201359050611077565b610bcd5760405162461bcd60e51b815260206004820152601c60248201527b14dd185ada5b99ce881d1bdad95b881b9bdd0819195c1bdcda5d195960221b60448201526064016106de565b610c0e838383818110610bf057634e487b7160e01b600052603260045260246000fd5b336000908152600b60209081526040909120939102013590506115cb565b506008546001600160a01b031663b88d4fde3033868686818110610c4257634e487b7160e01b600052603260045260246000fd5b905060200201356040518463ffffffff1660e01b8152600401610c6793929190611a98565b600060405180830381600087803b158015610c8157600080fd5b505af1158015610c95573d6000803e3d6000fd5b505050508080610ca490611c40565b915050610b39565b5050600160065550565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015610d385760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016106de565b610d453385858403611083565b5060019392505050565b60006106473384846111a7565b33610d65610ab6565b6001600160a01b031614610d8b5760405162461bcd60e51b81526004016106de90611b62565b600a81600d54610d9b9190611b97565b82610da560025490565b610daf9190611b97565b610db99190611baf565b1015610df85760405162461bcd60e51b815260206004820152600e60248201526d544f4f204d55434820535441434b60901b60448201526064016106de565b610e028282611364565b80600d6000828254610e149190611b97565b90915550505050565b6001600160a01b0381166000908152600b60205260408120606091610e41826115d7565b6001600160401b03811115610e6657634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610e8f578160200160208202803683370190505b50905060005b610e9e836115d7565b811015610eec57610eaf83826115e1565b828281518110610ecf57634e487b7160e01b600052603260045260246000fd5b602090810291909101015280610ee481611c40565b915050610e95565b509392505050565b33610efd610ab6565b6001600160a01b031614610f235760405162461bcd60e51b81526004016106de90611b62565b6001600160a01b038116610f885760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106de565b6107bc81611579565b33610f9a610ab6565b6001600160a01b031614610fc05760405162461bcd60e51b81526004016106de90611b62565b60005b81811015611040576001600e6000858585818110610ff157634e487b7160e01b600052603260045260246000fd5b90506020020160208101906110069190611809565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061103881611c40565b915050610fc3565b5050306000908152600e60205260409020805460ff1916600117905550565b600081831061106e5781611070565b825b9392505050565b600061107083836115ed565b6001600160a01b0383166110e55760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016106de565b6001600160a01b0382166111465760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016106de565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b03831661120b5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016106de565b6001600160a01b03821661126d5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016106de565b6001600160a01b038316600090815260208190526040902054818110156112e55760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016106de565b6001600160a01b0380851660009081526020819052604080822085850390559185168152908120805484929061131c908490611b97565b92505081905550826001600160a01b0316846001600160a01b0316600080516020611c888339815191528460405161135691815260200190565b60405180910390a350505050565b6001600160a01b0382166113ba5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016106de565b80600260008282546113cc9190611b97565b90915550506001600160a01b038216600090815260208190526040812080548392906113f9908490611b97565b90915550506040518181526001600160a01b03831690600090600080516020611c888339815191529060200160405180910390a35050565b6001600160a01b0382166114915760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016106de565b6001600160a01b038216600090815260208190526040902054818110156115055760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016106de565b6001600160a01b0383166000908152602081905260408120838303905560028054849290611534908490611bee565b90915550506040518281526000906001600160a01b03851690600080516020611c888339815191529060200160405180910390a3505050565b60006110708383611605565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000611070838361164f565b60006105a2825490565b6000611070838361176c565b60009081526001919091016020526040902054151590565b600061161183836115ed565b611647575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556105a2565b5060006105a2565b60008181526001830160205260408120548015611762576000611673600183611bee565b855490915060009061168790600190611bee565b90508181146117085760008660000182815481106116b557634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050808760000184815481106116e657634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255918252600188019052604090208390555b855486908061172757634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506105a2565b60009150506105a2565b600082600001828154811061179157634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905092915050565b80356001600160a01b03811681146117bb57600080fd5b919050565b60008083601f8401126117d1578081fd5b5081356001600160401b038111156117e7578182fd5b6020830191508360208260051b850101111561180257600080fd5b9250929050565b60006020828403121561181a578081fd5b611070826117a4565b60008060408385031215611835578081fd5b61183e836117a4565b915061184c602084016117a4565b90509250929050565b600080600060608486031215611869578081fd5b611872846117a4565b9250611880602085016117a4565b9150604084013590509250925092565b6000806000806000608086880312156118a7578081fd5b6118b0866117a4565b94506118be602087016117a4565b93506040860135925060608601356001600160401b03808211156118e0578283fd5b818801915088601f8301126118f3578283fd5b813581811115611901578384fd5b896020828501011115611912578384fd5b9699959850939650602001949392505050565b60008060408385031215611937578182fd5b611940836117a4565b91506020838101356001600160401b038082111561195c578384fd5b818601915086601f83011261196f578384fd5b81358181111561198157611981611c71565b8060051b604051601f19603f830116810181811085821117156119a6576119a6611c71565b604052828152858101935084860182860187018b10156119c4578788fd5b8795505b838610156119e65780358552600195909501949386019386016119c8565b508096505050505050509250929050565b60008060408385031215611a09578182fd5b611a12836117a4565b946020939093013593505050565b60008060208385031215611a32578182fd5b82356001600160401b03811115611a47578283fd5b611a53858286016117c0565b90969095509350505050565b600060208284031215611a70578081fd5b5035919050565b60008060408385031215611a89578182fd5b50508035926020909101359150565b6001600160a01b039384168152919092166020820152604081019190915260806060820181905260009082015260a00190565b6020808252825182820181905260009190848201906040850190845b81811015611b0357835183529284019291840191600101611ae7565b50909695505050505050565b6000602080835283518082850152825b81811015611b3b57858101830151858201604001528201611b1f565b81811115611b4c5783604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008219821115611baa57611baa611c5b565b500190565b600082611bca57634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615611be957611be9611c5b565b500290565b600082821015611c0057611c00611c5b565b500390565b600181811c90821680611c1957607f821691505b60208210811415611c3a57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415611c5457611c54611c5b565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220ce8dafa37100b87b5b844ed6065fcd5e3fa8b503c4a0a5ef9dcaf7a11d8d5aef64736f6c63430008040033000000000000000000000000099a16f0414cb0cc0555d5f1f8140166462d39ff0000000000000000000000000000000000000000000000000002f5e989501555000000000000000000000000000000000000000000000000000000000036ee80
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101755760003560e01c8063068c526f1461017a57806306fdde03146101a3578063095ea7b3146101b8578063150b7a02146101db57806318160ddd1461021357806323b872dd146102255780632c4e722e14610238578063313ce56714610241578063395093511461025057806340c10f191461026357806342966c68146102785780634665096d1461028b578063598b8e71146102945780635eac6239146102a75780636c152700146102ba57806370a08231146102cd578063715018a6146102f657806379cc6790146102fe5780637a58cc2b146103115780638353b6bb1461033c5780638da5cb5b1461034557806395d89b411461034d578063983d95ce14610355578063a457c2d714610368578063a9059cbb1461037b578063add5a4fa1461038e578063b343ae14146103a1578063dd62ed3e146103cc578063e3a9db1a14610405578063f2fde38b14610418578063f42176481461042b575b600080fd5b61018d610188366004611925565b61043e565b60405161019a9190611acb565b60405180910390f35b6101ab6105a8565b60405161019a9190611b0f565b6101cb6101c63660046119f7565b61063a565b604051901515815260200161019a565b6101fa6101e9366004611890565b630a85bd0160e11b95945050505050565b6040516001600160e01b0319909116815260200161019a565b6002545b60405190815260200161019a565b6101cb610233366004611855565b610650565b610217600a5481565b6040516012815260200161019a565b6101cb61025e3660046119f7565b6106ff565b6102766102713660046119f7565b61073b565b005b610276610286366004611a5f565b6107b2565b61021760095481565b6102766102a2366004611a20565b6107bf565b6102766102b5366004611a20565b6108b7565b6102766102c8366004611a77565b6109c0565b6102176102db366004611809565b6001600160a01b031660009081526020819052604090205490565b6102766109fa565b61027661030c3660046119f7565b610a35565b600854610324906001600160a01b031681565b6040516001600160a01b03909116815260200161019a565b610217600d5481565b610324610ab6565b6101ab610ac5565b610276610363366004611a20565b610ad4565b6101cb6103763660046119f7565b610cb6565b6101cb6103893660046119f7565b610d4f565b61027661039c3660046119f7565b610d5c565b6102176103af3660046119f7565b600c60209081526000928352604080842090915290825290205481565b6102176103da366004611823565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61018d610413366004611809565b610e1d565b610276610426366004611809565b610ef4565b610276610439366004611a20565b610f91565b606081516001600160401b0381111561046757634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610490578160200160208202803683370190505b50905060005b82518110156105a05760008382815181106104c157634e487b7160e01b600052603260045260246000fd5b60200260200101519050600c6000866001600160a01b03166001600160a01b0316815260200190815260200160002060008281526020019081526020016000205461050e4360095461105f565b6105189190611bee565b6001600160a01b0386166000908152600b6020526040902061053a9083611077565b610545576000610548565b60015b60ff16600a546105589190611bcf565b6105629190611bcf565b83838151811061058257634e487b7160e01b600052603260045260246000fd5b6020908102919091010152508061059881611c40565b915050610496565b505b92915050565b6060600380546105b790611c05565b80601f01602080910402602001604051908101604052809291908181526020018280546105e390611c05565b80156106305780601f1061060557610100808354040283529160200191610630565b820191906000526020600020905b81548152906001019060200180831161061357829003601f168201915b5050505050905090565b6000610647338484611083565b50600192915050565b600061065d8484846111a7565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156106e75760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6106f48533858403611083565b506001949350505050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610647918590610736908690611b97565b611083565b336000908152600e602052604090205460ff166107a45760405162461bcd60e51b815260206004820152602160248201527f474554204f555420594f55204e4f542057484954454c49535445442c205345526044820152601760f91b60648201526084016106de565b6107ae8282611364565b5050565b6107bc3382611431565b50565b6107c982826108b7565b60005b818110156108b2576008546001600160a01b031663b88d4fde333086868681811061080757634e487b7160e01b600052603260045260246000fd5b905060200201356040518463ffffffff1660e01b815260040161082c93929190611a98565b600060405180830381600087803b15801561084657600080fd5b505af115801561085a573d6000803e3d6000fd5b5050505061089f83838381811061088157634e487b7160e01b600052603260045260246000fd5b336000908152600b602090815260409091209391020135905061156d565b50806108aa81611c40565b9150506107cc565b505050565b6000806108c64360095461105f565b905060006109073386868080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061043e92505050565b905060005b848110156109a85781818151811061093457634e487b7160e01b600052603260045260246000fd5b6020026020010151846109479190611b97565b336000908152600c6020526040812091955084919088888581811061097c57634e487b7160e01b600052603260045260246000fd5b9050602002013581526020019081526020016000208190555080806109a090611c40565b91505061090c565b5082156109b9576109b93384611364565b5050505050565b336109c9610ab6565b6001600160a01b0316146109ef5760405162461bcd60e51b81526004016106de90611b62565b600a91909155600955565b33610a03610ab6565b6001600160a01b031614610a295760405162461bcd60e51b81526004016106de90611b62565b610a336000611579565b565b6000610a4183336103da565b905081811015610a9f5760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77604482015263616e636560e01b60648201526084016106de565b610aac8333848403611083565b6108b28383611431565b6005546001600160a01b031690565b6060600480546105b790611c05565b60026006541415610b275760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016106de565b6002600655610b3682826108b7565b60005b81811015610cac57610b82838383818110610b6457634e487b7160e01b600052603260045260246000fd5b336000908152600b6020908152604090912093910201359050611077565b610bcd5760405162461bcd60e51b815260206004820152601c60248201527b14dd185ada5b99ce881d1bdad95b881b9bdd0819195c1bdcda5d195960221b60448201526064016106de565b610c0e838383818110610bf057634e487b7160e01b600052603260045260246000fd5b336000908152600b60209081526040909120939102013590506115cb565b506008546001600160a01b031663b88d4fde3033868686818110610c4257634e487b7160e01b600052603260045260246000fd5b905060200201356040518463ffffffff1660e01b8152600401610c6793929190611a98565b600060405180830381600087803b158015610c8157600080fd5b505af1158015610c95573d6000803e3d6000fd5b505050508080610ca490611c40565b915050610b39565b5050600160065550565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015610d385760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016106de565b610d453385858403611083565b5060019392505050565b60006106473384846111a7565b33610d65610ab6565b6001600160a01b031614610d8b5760405162461bcd60e51b81526004016106de90611b62565b600a81600d54610d9b9190611b97565b82610da560025490565b610daf9190611b97565b610db99190611baf565b1015610df85760405162461bcd60e51b815260206004820152600e60248201526d544f4f204d55434820535441434b60901b60448201526064016106de565b610e028282611364565b80600d6000828254610e149190611b97565b90915550505050565b6001600160a01b0381166000908152600b60205260408120606091610e41826115d7565b6001600160401b03811115610e6657634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610e8f578160200160208202803683370190505b50905060005b610e9e836115d7565b811015610eec57610eaf83826115e1565b828281518110610ecf57634e487b7160e01b600052603260045260246000fd5b602090810291909101015280610ee481611c40565b915050610e95565b509392505050565b33610efd610ab6565b6001600160a01b031614610f235760405162461bcd60e51b81526004016106de90611b62565b6001600160a01b038116610f885760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106de565b6107bc81611579565b33610f9a610ab6565b6001600160a01b031614610fc05760405162461bcd60e51b81526004016106de90611b62565b60005b81811015611040576001600e6000858585818110610ff157634e487b7160e01b600052603260045260246000fd5b90506020020160208101906110069190611809565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061103881611c40565b915050610fc3565b5050306000908152600e60205260409020805460ff1916600117905550565b600081831061106e5781611070565b825b9392505050565b600061107083836115ed565b6001600160a01b0383166110e55760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016106de565b6001600160a01b0382166111465760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016106de565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b03831661120b5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016106de565b6001600160a01b03821661126d5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016106de565b6001600160a01b038316600090815260208190526040902054818110156112e55760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016106de565b6001600160a01b0380851660009081526020819052604080822085850390559185168152908120805484929061131c908490611b97565b92505081905550826001600160a01b0316846001600160a01b0316600080516020611c888339815191528460405161135691815260200190565b60405180910390a350505050565b6001600160a01b0382166113ba5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016106de565b80600260008282546113cc9190611b97565b90915550506001600160a01b038216600090815260208190526040812080548392906113f9908490611b97565b90915550506040518181526001600160a01b03831690600090600080516020611c888339815191529060200160405180910390a35050565b6001600160a01b0382166114915760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016106de565b6001600160a01b038216600090815260208190526040902054818110156115055760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016106de565b6001600160a01b0383166000908152602081905260408120838303905560028054849290611534908490611bee565b90915550506040518281526000906001600160a01b03851690600080516020611c888339815191529060200160405180910390a3505050565b60006110708383611605565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000611070838361164f565b60006105a2825490565b6000611070838361176c565b60009081526001919091016020526040902054151590565b600061161183836115ed565b611647575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556105a2565b5060006105a2565b60008181526001830160205260408120548015611762576000611673600183611bee565b855490915060009061168790600190611bee565b90508181146117085760008660000182815481106116b557634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050808760000184815481106116e657634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255918252600188019052604090208390555b855486908061172757634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506105a2565b60009150506105a2565b600082600001828154811061179157634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905092915050565b80356001600160a01b03811681146117bb57600080fd5b919050565b60008083601f8401126117d1578081fd5b5081356001600160401b038111156117e7578182fd5b6020830191508360208260051b850101111561180257600080fd5b9250929050565b60006020828403121561181a578081fd5b611070826117a4565b60008060408385031215611835578081fd5b61183e836117a4565b915061184c602084016117a4565b90509250929050565b600080600060608486031215611869578081fd5b611872846117a4565b9250611880602085016117a4565b9150604084013590509250925092565b6000806000806000608086880312156118a7578081fd5b6118b0866117a4565b94506118be602087016117a4565b93506040860135925060608601356001600160401b03808211156118e0578283fd5b818801915088601f8301126118f3578283fd5b813581811115611901578384fd5b896020828501011115611912578384fd5b9699959850939650602001949392505050565b60008060408385031215611937578182fd5b611940836117a4565b91506020838101356001600160401b038082111561195c578384fd5b818601915086601f83011261196f578384fd5b81358181111561198157611981611c71565b8060051b604051601f19603f830116810181811085821117156119a6576119a6611c71565b604052828152858101935084860182860187018b10156119c4578788fd5b8795505b838610156119e65780358552600195909501949386019386016119c8565b508096505050505050509250929050565b60008060408385031215611a09578182fd5b611a12836117a4565b946020939093013593505050565b60008060208385031215611a32578182fd5b82356001600160401b03811115611a47578283fd5b611a53858286016117c0565b90969095509350505050565b600060208284031215611a70578081fd5b5035919050565b60008060408385031215611a89578182fd5b50508035926020909101359150565b6001600160a01b039384168152919092166020820152604081019190915260806060820181905260009082015260a00190565b6020808252825182820181905260009190848201906040850190845b81811015611b0357835183529284019291840191600101611ae7565b50909695505050505050565b6000602080835283518082850152825b81811015611b3b57858101830151858201604001528201611b1f565b81811115611b4c5783604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008219821115611baa57611baa611c5b565b500190565b600082611bca57634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615611be957611be9611c5b565b500290565b600082821015611c0057611c00611c5b565b500390565b600181811c90821680611c1957607f821691505b60208210811415611c3a57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415611c5457611c54611c5b565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220ce8dafa37100b87b5b844ed6065fcd5e3fa8b503c4a0a5ef9dcaf7a11d8d5aef64736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000099a16f0414cb0cc0555d5f1f8140166462d39ff0000000000000000000000000000000000000000000000000002f5e989501555000000000000000000000000000000000000000000000000000000000036ee80
-----Decoded View---------------
Arg [0] : _stackedToadz (address): 0x099A16F0414CB0Cc0555d5f1f8140166462D39Ff
Arg [1] : _rate (uint256): 833333333333333
Arg [2] : _expiration (uint256): 3600000
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000099a16f0414cb0cc0555d5f1f8140166462d39ff
Arg [1] : 0000000000000000000000000000000000000000000000000002f5e989501555
Arg [2] : 000000000000000000000000000000000000000000000000000000000036ee80
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.