Source Code
More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 489 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Set Approval For... | 21367504 | 205 days ago | IN | 0 ETH | 0.00000005 | ||||
| Set Approval For... | 14385458 | 367 days ago | IN | 0 ETH | 0.00000039 | ||||
| Set Approval For... | 13398362 | 390 days ago | IN | 0 ETH | 0.0000004 | ||||
| Set Approval For... | 13347760 | 391 days ago | IN | 0 ETH | 0.00000018 | ||||
| Transfer From | 12441840 | 412 days ago | IN | 0 ETH | 0.00000006 | ||||
| Set Approval For... | 10887852 | 448 days ago | IN | 0 ETH | 0.00000008 | ||||
| Safe Transfer Fr... | 8326262 | 507 days ago | IN | 0 ETH | 0.00000091 | ||||
| Set Approval For... | 5373210 | 576 days ago | IN | 0 ETH | 0.00000043 | ||||
| Set Approval For... | 5277816 | 578 days ago | IN | 0 ETH | 0.00000025 | ||||
| Set Approval For... | 5258713 | 578 days ago | IN | 0 ETH | 0.00000049 | ||||
| Set Approval For... | 5231253 | 579 days ago | IN | 0 ETH | 0.0000079 | ||||
| Set Approval For... | 5113126 | 582 days ago | IN | 0 ETH | 0.00000053 | ||||
| Set Approval For... | 5006684 | 584 days ago | IN | 0 ETH | 0.0000062 | ||||
| Set Approval For... | 4951927 | 585 days ago | IN | 0 ETH | 0.00001396 | ||||
| Set Approval For... | 4902560 | 587 days ago | IN | 0 ETH | 0.00000476 | ||||
| Set Approval For... | 4843861 | 588 days ago | IN | 0 ETH | 0.00000046 | ||||
| Set Approval For... | 4749300 | 590 days ago | IN | 0 ETH | 0.0000048 | ||||
| Set Approval For... | 4714329 | 591 days ago | IN | 0 ETH | 0.00000049 | ||||
| Set Approval For... | 4625947 | 593 days ago | IN | 0 ETH | 0.00000049 | ||||
| Set Approval For... | 4623829 | 593 days ago | IN | 0 ETH | 0.00000053 | ||||
| Set Approval For... | 4546449 | 595 days ago | IN | 0 ETH | 0.00000002 | ||||
| Set Approval For... | 4459358 | 597 days ago | IN | 0 ETH | 0.00000052 | ||||
| Safe Transfer Fr... | 4448275 | 597 days ago | IN | 0 ETH | 0.00000052 | ||||
| Safe Transfer Fr... | 4448268 | 597 days ago | IN | 0 ETH | 0.00000075 | ||||
| Safe Transfer Fr... | 4403118 | 598 days ago | IN | 0 ETH | 0.00000076 |
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Block | From | To | |||
|---|---|---|---|---|---|---|
| 3498523 | 619 days ago | 6.853 ETH | ||||
| 3498379 | 619 days ago | 0.154 ETH | ||||
| 3498303 | 619 days ago | 0.077 ETH | ||||
| 3497789 | 619 days ago | 0.077 ETH | ||||
| 3497636 | 619 days ago | 0.077 ETH | ||||
| 3497293 | 619 days ago | 0.077 ETH | ||||
| 3497063 | 619 days ago | 0.077 ETH | ||||
| 3496984 | 619 days ago | 0.077 ETH | ||||
| 3496719 | 619 days ago | 0.077 ETH | ||||
| 3496560 | 619 days ago | 0.077 ETH | ||||
| 3495253 | 619 days ago | 0.077 ETH | ||||
| 3494623 | 619 days ago | 0.077 ETH | ||||
| 3494617 | 619 days ago | 0.077 ETH | ||||
| 3494344 | 619 days ago | 0.077 ETH | ||||
| 3494320 | 619 days ago | 0.077 ETH | ||||
| 3491662 | 619 days ago | 0.154 ETH | ||||
| 3491403 | 619 days ago | 0.077 ETH | ||||
| 3491403 | 619 days ago | 0.077 ETH | ||||
| 3490670 | 619 days ago | 0.077 ETH | ||||
| 3490551 | 619 days ago | 0.077 ETH | ||||
| 3490456 | 619 days ago | 0.077 ETH | ||||
| 3489818 | 619 days ago | 0.077 ETH | ||||
| 3488774 | 619 days ago | 0.077 ETH | ||||
| 3487040 | 619 days ago | 0.077 ETH | ||||
| 3485106 | 619 days ago | 0.077 ETH |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
Bag
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.20;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@solmate/tokens/ERC721.sol";
import "./GoodyBag.sol";
contract Bag is ERC721, Ownable {
using Address for address payable;
using Strings for uint256;
uint256 private _nextTokenId;
uint256 private _targetSupply = 100000000e18;
bool public start;
bool public closed;
address public plutocats;
address public goody;
address public thrusterRouter;
uint256 public mintPrice;
uint256 public goodyAmount;
uint256 public mintEnd;
uint256 public lpSize;
mapping(uint256 => bool) private _catsClaimed;
event NewPair(address _pair);
event Minted(address _to, uint256 _amount, string _comment);
constructor(address _owner, address _goody, address _plutocats, address _thrusterRouter, uint256 _duration)
ERC721("GoodyBag", "BAG")
Ownable(_owner)
{
mintPrice = 0.077 ether;
goody = _goody;
goodyAmount = 10000e18;
mintEnd = block.timestamp + _duration;
plutocats = _plutocats;
thrusterRouter = _thrusterRouter;
IBlast(0x4300000000000000000000000000000000000002).configureClaimableGas();
IBlast(0x4300000000000000000000000000000000000002).configureGovernor(_owner);
IBlast(0x2536FE9ab3F511540F2f9e2eC2A805005C3Dd800).configurePointsOperator(_owner);
}
/// contract level metadata
function contractURI() public pure returns (string memory) {
string memory json =
'{"name": "$GOODY Bag","description": "A $GOODY bag for Blast.","external_url": "https://goodybag.wtf","image": "ipfs://QmSyYWju855GDpb92Ywq7ijyiBeQyUehBTndYmQp8SoArC"}';
return string.concat("data:application/json;utf8,", json);
}
/// onchain picasso
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
require(ownerOf(tokenId) != address(0), "URI query for nonexistent token");
string memory tId = tokenId.toString();
string memory name = string.concat('"$GOODY Bag #', tId, '",');
string memory json =
string.concat('{"name":', name, '"image": "ipfs://QmS6y9PhiaPvBC73NnaYahsiSWgYUVg2xLVtZAmbA7jCrG"}');
return string.concat("data:application/json;utf8,", json);
}
/// mint a goody bag!
function mint(uint256 _amount, string calldata _comment, uint256[] calldata _catIds) external payable {
require(start, "Not started");
require(block.timestamp < mintEnd, "Collection closed");
require(_amount > 0, "Amount must be greater than 0");
require(_catIds.length <= _amount, "Using excess cats for claim amount");
// verify cat claims
uint256 discount = _catIds.length;
for (uint256 i = 0; i < _catIds.length; i++) {
require(IPlutocats(plutocats).ownerOf(_catIds[i]) == msg.sender, "Not owner of cat");
require(!_catsClaimed[_catIds[i]], "Cat already claimed");
_catsClaimed[_catIds[i]] = true;
}
address to = msg.sender;
uint256 price = (_amount * mintPrice) - (discount * mintPrice);
require(msg.value >= price, "Insufficient funds");
// send goody bag to minter along with a possible founder reward.
// founders are rewarded the zeroeth and every 10th mint
// whenever a founder reward is minted, eth associated is preserved
// in this contract for use in providing liq
uint256 fndr = 0;
for (uint256 i = 0; i < _amount; i++) {
if (_nextTokenId % 11 == 0) {
// contribute eth to lp
if (price >= mintPrice) {
price -= mintPrice;
}
fndr++;
lpSize++;
_mint(owner(), _nextTokenId++);
}
_mint(to, _nextTokenId++);
}
// mint goody
if (fndr > 0) {
emit Minted(owner(), fndr, "");
IGoody(goody).mint(owner(), goodyAmount * fndr);
}
IGoody(goody).mint(to, goodyAmount * _amount);
payable(owner()).sendValue(price);
emit Minted(to, _amount, _comment);
}
/// returns whether a cat has already been used to claim a mint
function catClaimed(uint256 catId) external view returns (bool) {
return _catsClaimed[catId];
}
/// returns the amount minted
function minted() external view returns (uint256) {
return _nextTokenId;
}
/// enable transferability of goody and create v2 pool. lp is always locked in the contract and
/// can be considered burnt
function close() external {
require(start, "Not started");
require(block.timestamp >= mintEnd, "Collection still minting");
require(!closed, "Collection closed");
closed = true;
// mint additional supply to provide to pool
uint256 ts = IERC20(goody).totalSupply();
if (ts < _targetSupply) {
// target a min supply of 100m. excess sent to pool
IGoody(goody).mint(address(this), _targetSupply - ts);
} else {
// 10% to pool
IGoody(goody).mint(address(this), goodyAmount * lpSize);
}
IERC20(goody).approve(thrusterRouter, type(uint256).max);
IGoody(goody).unpause();
IThrusterRouter01(thrusterRouter).addLiquidityETH{value: address(this).balance}(
goody, IERC20(goody).balanceOf(address(this)), 0, 0, address(this), block.timestamp
);
address factory = IThrusterRouter01(thrusterRouter).factory();
address pair = IThrusterFactory(factory).getPair(IThrusterRouter01(thrusterRouter).WETH(), goody);
emit NewPair(pair);
}
// management + safety fns
// =======================
function unPauseToken() external onlyOwner {
IGoody(goody).unpause();
}
function extend(uint256 _duration) external onlyOwner {
mintEnd += _duration;
}
function startMint() external onlyOwner {
start = true;
}
/// safety fn for disaster recovery can only be called if the collection has not been
/// closed within 1 hour of the mint ending. anyone can call close after the mint ends
/// making this unusable
function recover(uint256 _mintAmount) external onlyOwner {
uint256 safeTime = mintEnd + 1 hours;
require(block.timestamp >= safeTime, "Collection can be closed");
require(!closed, "Collection closed");
closed = true;
IGoody(goody).mint(owner(), _mintAmount);
payable(owner()).sendValue(address(this).balance);
}
/// Can receive ETH.
receive() external payable {}
fallback() external payable {}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the value of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the value of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 value) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the
* allowance mechanism. `value` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 value) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)
pragma solidity ^0.8.20;
import {Context} from "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* The initial owner is set to the address provided by the deployer. This can
* later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
/**
* @dev The caller account is not authorized to perform an operation.
*/
error OwnableUnauthorizedAccount(address account);
/**
* @dev The owner is not a valid owner account. (eg. `address(0)`)
*/
error OwnableInvalidOwner(address owner);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the address provided by the deployer as the initial owner.
*/
constructor(address initialOwner) {
if (initialOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(initialOwner);
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
if (owner() != _msgSender()) {
revert OwnableUnauthorizedAccount(_msgSender());
}
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
if (newOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)
pragma solidity ^0.8.20;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev The ETH balance of the account is not enough to perform the operation.
*/
error AddressInsufficientBalance(address account);
/**
* @dev There's no code at `target` (it is not a contract).
*/
error AddressEmptyCode(address target);
/**
* @dev A call to an address target failed. The target may have reverted.
*/
error FailedInnerCall();
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
if (address(this).balance < amount) {
revert AddressInsufficientBalance(address(this));
}
(bool success, ) = recipient.call{value: amount}("");
if (!success) {
revert FailedInnerCall();
}
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason or custom error, it is bubbled
* up by this function (like regular Solidity function calls). However, if
* the call reverted with no returned reason, this function reverts with a
* {FailedInnerCall} error.
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*/
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
if (address(this).balance < value) {
revert AddressInsufficientBalance(address(this));
}
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
* was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an
* unsuccessful call.
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata
) internal view returns (bytes memory) {
if (!success) {
_revert(returndata);
} else {
// only check if target is a contract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
if (returndata.length == 0 && target.code.length == 0) {
revert AddressEmptyCode(target);
}
return returndata;
}
}
/**
* @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
* revert reason or with a default {FailedInnerCall} error.
*/
function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
if (!success) {
_revert(returndata);
} else {
return returndata;
}
}
/**
* @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.
*/
function _revert(bytes memory returndata) private pure {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert FailedInnerCall();
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol)
pragma solidity ^0.8.20;
import {Math} from "./math/Math.sol";
import {SignedMath} from "./math/SignedMath.sol";
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant HEX_DIGITS = "0123456789abcdef";
uint8 private constant ADDRESS_LENGTH = 20;
/**
* @dev The `value` string doesn't fit in the specified `length`.
*/
error StringsInsufficientHexLength(uint256 value, uint256 length);
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
unchecked {
uint256 length = Math.log10(value) + 1;
string memory buffer = new string(length);
uint256 ptr;
/// @solidity memory-safe-assembly
assembly {
ptr := add(buffer, add(32, length))
}
while (true) {
ptr--;
/// @solidity memory-safe-assembly
assembly {
mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))
}
value /= 10;
if (value == 0) break;
}
return buffer;
}
}
/**
* @dev Converts a `int256` to its ASCII `string` decimal representation.
*/
function toStringSigned(int256 value) internal pure returns (string memory) {
return string.concat(value < 0 ? "-" : "", toString(SignedMath.abs(value)));
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
unchecked {
return toHexString(value, Math.log256(value) + 1);
}
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
uint256 localValue = value;
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = HEX_DIGITS[localValue & 0xf];
localValue >>= 4;
}
if (localValue != 0) {
revert StringsInsufficientHexLength(value, length);
}
return string(buffer);
}
/**
* @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal
* representation.
*/
function toHexString(address addr) internal pure returns (string memory) {
return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);
}
/**
* @dev Returns true if the two strings are equal.
*/
function equal(string memory a, string memory b) internal pure returns (bool) {
return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));
}
}// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;
/// @notice Modern, minimalist, and gas efficient ERC-721 implementation.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC721.sol)
abstract contract ERC721 {
/*//////////////////////////////////////////////////////////////
EVENTS
//////////////////////////////////////////////////////////////*/
event Transfer(address indexed from, address indexed to, uint256 indexed id);
event Approval(address indexed owner, address indexed spender, uint256 indexed id);
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/*//////////////////////////////////////////////////////////////
METADATA STORAGE/LOGIC
//////////////////////////////////////////////////////////////*/
string public name;
string public symbol;
function tokenURI(uint256 id) public view virtual returns (string memory);
/*//////////////////////////////////////////////////////////////
ERC721 BALANCE/OWNER STORAGE
//////////////////////////////////////////////////////////////*/
mapping(uint256 => address) internal _ownerOf;
mapping(address => uint256) internal _balanceOf;
function ownerOf(uint256 id) public view virtual returns (address owner) {
require((owner = _ownerOf[id]) != address(0), "NOT_MINTED");
}
function balanceOf(address owner) public view virtual returns (uint256) {
require(owner != address(0), "ZERO_ADDRESS");
return _balanceOf[owner];
}
/*//////////////////////////////////////////////////////////////
ERC721 APPROVAL STORAGE
//////////////////////////////////////////////////////////////*/
mapping(uint256 => address) public getApproved;
mapping(address => mapping(address => bool)) public isApprovedForAll;
/*//////////////////////////////////////////////////////////////
CONSTRUCTOR
//////////////////////////////////////////////////////////////*/
constructor(string memory _name, string memory _symbol) {
name = _name;
symbol = _symbol;
}
/*//////////////////////////////////////////////////////////////
ERC721 LOGIC
//////////////////////////////////////////////////////////////*/
function approve(address spender, uint256 id) public virtual {
address owner = _ownerOf[id];
require(msg.sender == owner || isApprovedForAll[owner][msg.sender], "NOT_AUTHORIZED");
getApproved[id] = spender;
emit Approval(owner, spender, id);
}
function setApprovalForAll(address operator, bool approved) public virtual {
isApprovedForAll[msg.sender][operator] = approved;
emit ApprovalForAll(msg.sender, operator, approved);
}
function transferFrom(
address from,
address to,
uint256 id
) public virtual {
require(from == _ownerOf[id], "WRONG_FROM");
require(to != address(0), "INVALID_RECIPIENT");
require(
msg.sender == from || isApprovedForAll[from][msg.sender] || msg.sender == getApproved[id],
"NOT_AUTHORIZED"
);
// Underflow of the sender's balance is impossible because we check for
// ownership above and the recipient's balance can't realistically overflow.
unchecked {
_balanceOf[from]--;
_balanceOf[to]++;
}
_ownerOf[id] = to;
delete getApproved[id];
emit Transfer(from, to, id);
}
function safeTransferFrom(
address from,
address to,
uint256 id
) public virtual {
transferFrom(from, to, id);
require(
to.code.length == 0 ||
ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, "") ==
ERC721TokenReceiver.onERC721Received.selector,
"UNSAFE_RECIPIENT"
);
}
function safeTransferFrom(
address from,
address to,
uint256 id,
bytes calldata data
) public virtual {
transferFrom(from, to, id);
require(
to.code.length == 0 ||
ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, data) ==
ERC721TokenReceiver.onERC721Received.selector,
"UNSAFE_RECIPIENT"
);
}
/*//////////////////////////////////////////////////////////////
ERC165 LOGIC
//////////////////////////////////////////////////////////////*/
function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
return
interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165
interfaceId == 0x80ac58cd || // ERC165 Interface ID for ERC721
interfaceId == 0x5b5e139f; // ERC165 Interface ID for ERC721Metadata
}
/*//////////////////////////////////////////////////////////////
INTERNAL MINT/BURN LOGIC
//////////////////////////////////////////////////////////////*/
function _mint(address to, uint256 id) internal virtual {
require(to != address(0), "INVALID_RECIPIENT");
require(_ownerOf[id] == address(0), "ALREADY_MINTED");
// Counter overflow is incredibly unrealistic.
unchecked {
_balanceOf[to]++;
}
_ownerOf[id] = to;
emit Transfer(address(0), to, id);
}
function _burn(uint256 id) internal virtual {
address owner = _ownerOf[id];
require(owner != address(0), "NOT_MINTED");
// Ownership check above ensures no underflow.
unchecked {
_balanceOf[owner]--;
}
delete _ownerOf[id];
delete getApproved[id];
emit Transfer(owner, address(0), id);
}
/*//////////////////////////////////////////////////////////////
INTERNAL SAFE MINT LOGIC
//////////////////////////////////////////////////////////////*/
function _safeMint(address to, uint256 id) internal virtual {
_mint(to, id);
require(
to.code.length == 0 ||
ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, "") ==
ERC721TokenReceiver.onERC721Received.selector,
"UNSAFE_RECIPIENT"
);
}
function _safeMint(
address to,
uint256 id,
bytes memory data
) internal virtual {
_mint(to, id);
require(
to.code.length == 0 ||
ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, data) ==
ERC721TokenReceiver.onERC721Received.selector,
"UNSAFE_RECIPIENT"
);
}
}
/// @notice A generic interface for a contract which properly accepts ERC721 tokens.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC721.sol)
abstract contract ERC721TokenReceiver {
function onERC721Received(
address,
address,
uint256,
bytes calldata
) external virtual returns (bytes4) {
return ERC721TokenReceiver.onERC721Received.selector;
}
}// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.20;
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";
interface IBlast {
function configureClaimableGas() external;
function configureGovernor(address _governor) external;
function configurePointsOperator(address operator) external;
}
interface IThrusterRouter01 {
function WETH() external pure returns (address);
function factory() external pure returns (address);
function addLiquidityETH(
address token,
uint256 amountTokenDesired,
uint256 amountTokenMin,
uint256 amountETHMin,
address to,
uint256 deadline
) external payable returns (uint256 amountToken, uint256 amountETH, uint256 liquidity);
}
interface IThrusterFactory {
function getPair(address tokenA, address tokenB) external view returns (address pair);
}
interface IPlutocats is IERC721, IERC721Enumerable {
struct Contribution {
uint256 amount;
uint256 joinTime;
}
function contributionsOf(uint256 _tokenId) external view returns (Contribution memory);
}
interface IGoody {
function mint(address _to, uint256 _amount) external;
function unpause() external;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)
pragma solidity ^0.8.20;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol)
pragma solidity ^0.8.20;
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library Math {
/**
* @dev Muldiv operation overflow.
*/
error MathOverflowedMulDiv();
enum Rounding {
Floor, // Toward negative infinity
Ceil, // Toward positive infinity
Trunc, // Toward zero
Expand // Away from zero
}
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*/
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 subtraction of two unsigned integers, with an overflow flag.
*/
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.
*/
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.
*/
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.
*/
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 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 towards infinity instead
* of rounding towards zero.
*/
function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
if (b == 0) {
// Guarantee the same behavior as in a regular Solidity division.
return a / b;
}
// (a + b - 1) / b can overflow on addition, so we distribute.
return a == 0 ? 0 : (a - 1) / b + 1;
}
/**
* @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or
* denominator == 0.
* @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by
* Uniswap Labs also under MIT license.
*/
function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
unchecked {
// 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
// use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
// variables such that product = prod1 * 2^256 + prod0.
uint256 prod0 = x * y; // Least significant 256 bits of the product
uint256 prod1; // Most significant 256 bits of the product
assembly {
let mm := mulmod(x, y, not(0))
prod1 := sub(sub(mm, prod0), lt(mm, prod0))
}
// Handle non-overflow cases, 256 by 256 division.
if (prod1 == 0) {
// Solidity will revert if denominator == 0, unlike the div opcode on its own.
// The surrounding unchecked block does not change this fact.
// See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
return prod0 / denominator;
}
// Make sure the result is less than 2^256. Also prevents denominator == 0.
if (denominator <= prod1) {
revert MathOverflowedMulDiv();
}
///////////////////////////////////////////////
// 512 by 256 division.
///////////////////////////////////////////////
// Make division exact by subtracting the remainder from [prod1 prod0].
uint256 remainder;
assembly {
// Compute remainder using mulmod.
remainder := mulmod(x, y, denominator)
// Subtract 256 bit number from 512 bit number.
prod1 := sub(prod1, gt(remainder, prod0))
prod0 := sub(prod0, remainder)
}
// Factor powers of two out of denominator and compute largest power of two divisor of denominator.
// Always >= 1. See https://cs.stackexchange.com/q/138556/92363.
uint256 twos = denominator & (0 - denominator);
assembly {
// Divide denominator by twos.
denominator := div(denominator, twos)
// Divide [prod1 prod0] by twos.
prod0 := div(prod0, twos)
// Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
twos := add(div(sub(0, twos), twos), 1)
}
// Shift in bits from prod1 into prod0.
prod0 |= prod1 * twos;
// Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
// that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
// four bits. That is, denominator * inv = 1 mod 2^4.
uint256 inverse = (3 * denominator) ^ 2;
// Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also
// works in modular arithmetic, doubling the correct bits in each step.
inverse *= 2 - denominator * inverse; // inverse mod 2^8
inverse *= 2 - denominator * inverse; // inverse mod 2^16
inverse *= 2 - denominator * inverse; // inverse mod 2^32
inverse *= 2 - denominator * inverse; // inverse mod 2^64
inverse *= 2 - denominator * inverse; // inverse mod 2^128
inverse *= 2 - denominator * inverse; // inverse mod 2^256
// Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
// This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
// less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
// is no longer required.
result = prod0 * inverse;
return result;
}
}
/**
* @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
*/
function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
uint256 result = mulDiv(x, y, denominator);
if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) {
result += 1;
}
return result;
}
/**
* @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded
* towards zero.
*
* Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
*/
function sqrt(uint256 a) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
// For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
//
// We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
// `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
//
// This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
// → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
// → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
//
// Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
uint256 result = 1 << (log2(a) >> 1);
// At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
// since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
// every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
// into the expected uint128 result.
unchecked {
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
return min(result, a / result);
}
}
/**
* @notice Calculates sqrt(a), following the selected rounding direction.
*/
function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = sqrt(a);
return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0);
}
}
/**
* @dev Return the log in base 2 of a positive value rounded towards zero.
* Returns 0 if given 0.
*/
function log2(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >> 128 > 0) {
value >>= 128;
result += 128;
}
if (value >> 64 > 0) {
value >>= 64;
result += 64;
}
if (value >> 32 > 0) {
value >>= 32;
result += 32;
}
if (value >> 16 > 0) {
value >>= 16;
result += 16;
}
if (value >> 8 > 0) {
value >>= 8;
result += 8;
}
if (value >> 4 > 0) {
value >>= 4;
result += 4;
}
if (value >> 2 > 0) {
value >>= 2;
result += 2;
}
if (value >> 1 > 0) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 2, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log2(value);
return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0);
}
}
/**
* @dev Return the log in base 10 of a positive value rounded towards zero.
* Returns 0 if given 0.
*/
function log10(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >= 10 ** 64) {
value /= 10 ** 64;
result += 64;
}
if (value >= 10 ** 32) {
value /= 10 ** 32;
result += 32;
}
if (value >= 10 ** 16) {
value /= 10 ** 16;
result += 16;
}
if (value >= 10 ** 8) {
value /= 10 ** 8;
result += 8;
}
if (value >= 10 ** 4) {
value /= 10 ** 4;
result += 4;
}
if (value >= 10 ** 2) {
value /= 10 ** 2;
result += 2;
}
if (value >= 10 ** 1) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 10, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log10(value);
return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0);
}
}
/**
* @dev Return the log in base 256 of a positive value rounded towards zero.
* Returns 0 if given 0.
*
* Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
*/
function log256(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >> 128 > 0) {
value >>= 128;
result += 16;
}
if (value >> 64 > 0) {
value >>= 64;
result += 8;
}
if (value >> 32 > 0) {
value >>= 32;
result += 4;
}
if (value >> 16 > 0) {
value >>= 16;
result += 2;
}
if (value >> 8 > 0) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 256, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log256(value);
return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0);
}
}
/**
* @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.
*/
function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {
return uint8(rounding) % 2 == 1;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol)
pragma solidity ^0.8.20;
/**
* @dev Standard signed math utilities missing in the Solidity language.
*/
library SignedMath {
/**
* @dev Returns the largest of two signed numbers.
*/
function max(int256 a, int256 b) internal pure returns (int256) {
return a > b ? a : b;
}
/**
* @dev Returns the smallest of two signed numbers.
*/
function min(int256 a, int256 b) internal pure returns (int256) {
return a < b ? a : b;
}
/**
* @dev Returns the average of two signed numbers without overflow.
* The result is rounded towards zero.
*/
function average(int256 a, int256 b) internal pure returns (int256) {
// Formula from the book "Hacker's Delight"
int256 x = (a & b) + ((a ^ b) >> 1);
return x + (int256(uint256(x) >> 255) & (a ^ b));
}
/**
* @dev Returns the absolute unsigned value of a signed value.
*/
function abs(int256 n) internal pure returns (uint256) {
unchecked {
// must be unchecked in order to support `n = type(int256).min`
return uint256(n >= 0 ? n : -n);
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721.sol)
pragma solidity ^0.8.20;
import {IERC165} from "../../utils/introspection/IERC165.sol";
/**
* @dev Required interface of an ERC721 compliant contract.
*/
interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
*/
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/**
* @dev Returns the number of tokens in ``owner``'s account.
*/
function balanceOf(address owner) external view returns (uint256 balance);
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) external view returns (address owner);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon
* a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external;
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must have been allowed to move this token by either {approve} or
* {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon
* a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(address from, address to, uint256 tokenId) external;
/**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
* or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
* understand this adds an external call which potentially creates a reentrancy vulnerability.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 tokenId) external;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external;
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the address zero.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool approved) external;
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/
function isApprovedForAll(address owner, address operator) external view returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/IERC721Enumerable.sol)
pragma solidity ^0.8.20;
import {IERC721} from "../IERC721.sol";
/**
* @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Enumerable is IERC721 {
/**
* @dev Returns the total amount of tokens stored by the contract.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns a token ID owned by `owner` at a given `index` of its token list.
* Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
*/
function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);
/**
* @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
* Use along with {totalSupply} to enumerate all tokens.
*/
function tokenByIndex(uint256 index) external view returns (uint256);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}{
"remappings": [
"@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
"base64-sol/=lib/base64/",
"@solmate/tokens/=lib/solmate/src/tokens/",
"@/=src/",
"ds-test/=lib/solmate/lib/ds-test/src/",
"erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
"forge-std/=lib/forge-std/src/",
"openzeppelin-contracts/=lib/openzeppelin-contracts/",
"solmate/=lib/solmate/src/"
],
"optimizer": {
"enabled": true,
"runs": 200
},
"metadata": {
"useLiteralContent": false,
"bytecodeHash": "ipfs",
"appendCBOR": true
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"evmVersion": "paris",
"viaIR": false,
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_goody","type":"address"},{"internalType":"address","name":"_plutocats","type":"address"},{"internalType":"address","name":"_thrusterRouter","type":"address"},{"internalType":"uint256","name":"_duration","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AddressInsufficientBalance","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"},{"indexed":false,"internalType":"string","name":"_comment","type":"string"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_pair","type":"address"}],"name":"NewPair","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":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Transfer","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"catId","type":"uint256"}],"name":"catClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"close","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"closed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"_duration","type":"uint256"}],"name":"extend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"goody","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"goodyAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lpSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"string","name":"_comment","type":"string"},{"internalType":"uint256[]","name":"_catIds","type":"uint256[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintEnd","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minted","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":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"plutocats","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"recover","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"start","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"thrusterRouter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unPauseToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]Contract Creation Code
60806040526a52b7d2dcc80cd2e40000006008553480156200002057600080fd5b5060405162002c1438038062002c14833981016040819052620000439162000322565b8460405180604001604052806008815260200167476f6f647942616760c01b8152506040518060400160405280600381526020016242414760e81b81525081600090816200009291906200042e565b506001620000a182826200042e565b5050506001600160a01b038116620000d357604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b620000de81620002b3565b506701118f178fb48000600c55600a80546001600160a01b0319166001600160a01b03861617905569021e19e0c9bab2400000600d55620001208142620004fa565b600e556009805462010000600160b01b031916620100006001600160a01b038681169190910291909117909155600b80546001600160a01b03191691841691909117905560408051634e606c4760e01b8152905173430000000000000000000000000000000000000291634e606c4791600480830192600092919082900301818387803b158015620001b157600080fd5b505af1158015620001c6573d6000803e3d6000fd5b5050604051631d70c8d360e31b81526001600160a01b0388166004820152734300000000000000000000000000000000000002925063eb8646989150602401600060405180830381600087803b1580156200022057600080fd5b505af115801562000235573d6000803e3d6000fd5b50506040516336b91f2b60e01b81526001600160a01b0388166004820152732536fe9ab3f511540f2f9e2ec2a805005c3dd80092506336b91f2b9150602401600060405180830381600087803b1580156200028f57600080fd5b505af1158015620002a4573d6000803e3d6000fd5b50505050505050505062000522565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80516001600160a01b03811681146200031d57600080fd5b919050565b600080600080600060a086880312156200033b57600080fd5b620003468662000305565b9450620003566020870162000305565b9350620003666040870162000305565b9250620003766060870162000305565b9150608086015190509295509295909350565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620003b457607f821691505b602082108103620003d557634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200042957600081815260208120601f850160051c81016020861015620004045750805b601f850160051c820191505b81811015620004255782815560010162000410565b5050505b505050565b81516001600160401b038111156200044a576200044a62000389565b62000462816200045b84546200039f565b84620003db565b602080601f8311600181146200049a5760008415620004815750858301515b600019600386901b1c1916600185901b17855562000425565b600085815260208120601f198616915b82811015620004cb57888601518255948401946001909101908401620004aa565b5085821015620004ea5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b808201808211156200051c57634e487b7160e01b600052601160045260246000fd5b92915050565b6126e280620005326000396000f3fe6080604052600436106101e55760003560e01c806370a0823111610101578063b88d4fde1161009a578063e985e9c51161006c578063e985e9c514610560578063ea2b4ab21461059b578063f2fde38b146105b1578063f3c01617146105d1578063ff2356f1146105f757005b8063b88d4fde146104f1578063be9a655514610511578063c87b56dd1461052b578063e8a3d4851461054b57005b80639714378c116100d35780639714378c1461047c578063988297a61461049c578063a22cb465146104bc578063adf6e486146104dc57005b806370a0823114610414578063715018a6146104345780638da5cb5b1461044957806395d89b411461046757005b80632c4219641161017e5780634f02c420116101505780634f02c42014610397578063597e1fb5146103ac57806360fc48cc146103cb5780636352211e146103de5780636817c76c146103fe57005b80632c4219641461032c57806342842e0e1461034257806343d726d6146103625780634d964dfa1461037757005b80630ca35682116101b75780630ca35682146102b357806323b872dd146102d357806324797db5146102f35780632be095611461031757005b806301ffc9a7146101ee57806306fdde0314610223578063081812fc14610245578063095ea7b31461029357005b366101ec57005b005b3480156101fa57600080fd5b5061020e610209366004611f94565b610627565b60405190151581526020015b60405180910390f35b34801561022f57600080fd5b50610238610679565b60405161021a9190611fdc565b34801561025157600080fd5b5061027b61026036600461200f565b6004602052600090815260409020546001600160a01b031681565b6040516001600160a01b03909116815260200161021a565b34801561029f57600080fd5b506101ec6102ae36600461203d565b610707565b3480156102bf57600080fd5b506101ec6102ce36600461200f565b6107ee565b3480156102df57600080fd5b506101ec6102ee366004612069565b61093d565b3480156102ff57600080fd5b50610309600f5481565b60405190815260200161021a565b34801561032357600080fd5b506101ec610b04565b34801561033857600080fd5b50610309600d5481565b34801561034e57600080fd5b506101ec61035d366004612069565b610b1b565b34801561036e57600080fd5b506101ec610c13565b34801561038357600080fd5b50600a5461027b906001600160a01b031681565b3480156103a357600080fd5b50600754610309565b3480156103b857600080fd5b5060095461020e90610100900460ff1681565b6101ec6103d93660046120f3565b611209565b3480156103ea57600080fd5b5061027b6103f936600461200f565b6117ca565b34801561040a57600080fd5b50610309600c5481565b34801561042057600080fd5b5061030961042f36600461219a565b611821565b34801561044057600080fd5b506101ec611884565b34801561045557600080fd5b506006546001600160a01b031661027b565b34801561047357600080fd5b50610238611898565b34801561048857600080fd5b506101ec61049736600461200f565b6118a5565b3480156104a857600080fd5b50600b5461027b906001600160a01b031681565b3480156104c857600080fd5b506101ec6104d73660046121c5565b6118c7565b3480156104e857600080fd5b506101ec611933565b3480156104fd57600080fd5b506101ec61050c3660046121fe565b6119a5565b34801561051d57600080fd5b5060095461020e9060ff1681565b34801561053757600080fd5b5061023861054636600461200f565b611a8d565b34801561055757600080fd5b50610238611b6f565b34801561056c57600080fd5b5061020e61057b366004612271565b600560209081526000928352604080842090915290825290205460ff1681565b3480156105a757600080fd5b50610309600e5481565b3480156105bd57600080fd5b506101ec6105cc36600461219a565b611bb4565b3480156105dd57600080fd5b5060095461027b906201000090046001600160a01b031681565b34801561060357600080fd5b5061020e61061236600461200f565b60009081526010602052604090205460ff1690565b60006301ffc9a760e01b6001600160e01b03198316148061065857506380ac58cd60e01b6001600160e01b03198316145b806106735750635b5e139f60e01b6001600160e01b03198316145b92915050565b600080546106869061229f565b80601f01602080910402602001604051908101604052809291908181526020018280546106b29061229f565b80156106ff5780601f106106d4576101008083540402835291602001916106ff565b820191906000526020600020905b8154815290600101906020018083116106e257829003601f168201915b505050505081565b6000818152600260205260409020546001600160a01b03163381148061075057506001600160a01b038116600090815260056020908152604080832033845290915290205460ff165b6107925760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064015b60405180910390fd5b60008281526004602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6107f6611bf2565b6000600e54610e1061080891906122ef565b90508042101561085a5760405162461bcd60e51b815260206004820152601860248201527f436f6c6c656374696f6e2063616e20626520636c6f73656400000000000000006044820152606401610789565b600954610100900460ff16156108825760405162461bcd60e51b815260040161078990612302565b6009805461ff001916610100179055600a546001600160a01b03166340c10f196108b46006546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101859052604401600060405180830381600087803b1580156108fc57600080fd5b505af1158015610910573d6000803e3d6000fd5b505050506109394761092a6006546001600160a01b031690565b6001600160a01b031690611c1f565b5050565b6000818152600260205260409020546001600160a01b038481169116146109935760405162461bcd60e51b815260206004820152600a60248201526957524f4e475f46524f4d60b01b6044820152606401610789565b6001600160a01b0382166109dd5760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b6044820152606401610789565b336001600160a01b0384161480610a1757506001600160a01b038316600090815260056020908152604080832033845290915290205460ff165b80610a3857506000818152600460205260409020546001600160a01b031633145b610a755760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b6044820152606401610789565b6001600160a01b0380841660008181526003602090815260408083208054600019019055938616808352848320805460010190558583526002825284832080546001600160a01b03199081168317909155600490925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b610b0c611bf2565b6009805460ff19166001179055565b610b2683838361093d565b6001600160a01b0382163b1580610bcf5750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af1158015610b9f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bc3919061232d565b6001600160e01b031916145b610c0e5760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b6044820152606401610789565b505050565b60095460ff16610c535760405162461bcd60e51b815260206004820152600b60248201526a139bdd081cdd185c9d195960aa1b6044820152606401610789565b600e54421015610ca55760405162461bcd60e51b815260206004820152601860248201527f436f6c6c656374696f6e207374696c6c206d696e74696e6700000000000000006044820152606401610789565b600954610100900460ff1615610ccd5760405162461bcd60e51b815260040161078990612302565b6009805461ff001916610100179055600a54604080516318160ddd60e01b815290516000926001600160a01b0316916318160ddd9160048083019260209291908290030181865afa158015610d26573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d4a919061234a565b9050600854811015610dde57600a546008546001600160a01b03909116906340c10f19903090610d7b908590612363565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015610dc157600080fd5b505af1158015610dd5573d6000803e3d6000fd5b50505050610e64565b600a54600f54600d546001600160a01b03909216916340c10f19913091610e059190612376565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015610e4b57600080fd5b505af1158015610e5f573d6000803e3d6000fd5b505050505b600a54600b5460405163095ea7b360e01b81526001600160a01b039182166004820152600019602482015291169063095ea7b3906044016020604051808303816000875af1158015610eba573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ede919061238d565b50600a60009054906101000a90046001600160a01b03166001600160a01b0316633f4ba83a6040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610f2f57600080fd5b505af1158015610f43573d6000803e3d6000fd5b5050600b54600a546040516370a0823160e01b81523060048201526001600160a01b03928316945063f305d719935047929091169081906370a0823190602401602060405180830381865afa158015610fa0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fc4919061234a565b6040516001600160e01b031960e086901b1681526001600160a01b039092166004830152602482015260006044820181905260648201523060848201524260a482015260c40160606040518083038185885af1158015611028573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061104d91906123aa565b5050506000600b60009054906101000a90046001600160a01b03166001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa1580156110a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110c991906123d8565b90506000816001600160a01b031663e6a43905600b60009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561112f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061115391906123d8565b600a5460405160e084901b6001600160e01b03191681526001600160a01b03928316600482015291166024820152604401602060405180830381865afa1580156111a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111c591906123d8565b6040516001600160a01b03821681529091507ff5bdc103c3e68a20d5f97d2d46792d3fdddfa4efeb6761f8141e6a7b936ca66c9060200160405180910390a1505050565b60095460ff166112495760405162461bcd60e51b815260206004820152600b60248201526a139bdd081cdd185c9d195960aa1b6044820152606401610789565b600e54421061126a5760405162461bcd60e51b815260040161078990612302565b600085116112ba5760405162461bcd60e51b815260206004820152601d60248201527f416d6f756e74206d7573742062652067726561746572207468616e20300000006044820152606401610789565b848111156113155760405162461bcd60e51b815260206004820152602260248201527f5573696e6720657863657373206361747320666f7220636c61696d20616d6f756044820152611b9d60f21b6064820152608401610789565b8060005b828110156114c85760095433906201000090046001600160a01b0316636352211e86868581811061134c5761134c6123f5565b905060200201356040518263ffffffff1660e01b815260040161137191815260200190565b602060405180830381865afa15801561138e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113b291906123d8565b6001600160a01b0316146113fb5760405162461bcd60e51b815260206004820152601060248201526f139bdd081bdddb995c881bd98818d85d60821b6044820152606401610789565b60106000858584818110611411576114116123f5565b602090810292909201358352508101919091526040016000205460ff16156114715760405162461bcd60e51b815260206004820152601360248201527210d85d08185b1c9958591e4818db185a5b5959606a1b6044820152606401610789565b600160106000868685818110611489576114896123f5565b90506020020135815260200190815260200160002060006101000a81548160ff02191690831515021790555080806114c09061240b565b915050611319565b50600c5433906000906114db9084612376565b600c546114e8908a612376565b6114f29190612363565b9050803410156115395760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742066756e647360701b6044820152606401610789565b6000805b898110156115ee57600b6007546115549190612424565b6000036115c657600c54831061157457600c546115719084612363565b92505b8161157e8161240b565b600f805491945090915060006115938361240b565b91905055506115c66115ad6006546001600160a01b031690565b600780549060006115bd8361240b565b91905055611cb6565b600780546115dc9186919060006115bd8361240b565b806115e68161240b565b91505061153d565b5080156116e9577fe7cd4ce7f2a465edc730269a1305e8a48bad821e8fb7e152ec413829c01a53c46116286006546001600160a01b031690565b604080516001600160a01b03909216825260208201849052606090820181905260009082015260800160405180910390a1600a546001600160a01b03166340c10f1961167c6006546001600160a01b031690565b83600d5461168a9190612376565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b1580156116d057600080fd5b505af11580156116e4573d6000803e3d6000fd5b505050505b600a54600d546001600160a01b03909116906340c10f1990859061170e908d90612376565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561175457600080fd5b505af1158015611768573d6000803e3d6000fd5b505050506117828261092a6006546001600160a01b031690565b7fe7cd4ce7f2a465edc730269a1305e8a48bad821e8fb7e152ec413829c01a53c4838a8a8a6040516117b7949392919061246f565b60405180910390a1505050505050505050565b6000818152600260205260409020546001600160a01b03168061181c5760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b6044820152606401610789565b919050565b60006001600160a01b0382166118685760405162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b6044820152606401610789565b506001600160a01b031660009081526003602052604090205490565b61188c611bf2565b6118966000611dc1565b565b600180546106869061229f565b6118ad611bf2565b80600e60008282546118bf91906122ef565b909155505050565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61193b611bf2565b600a60009054906101000a90046001600160a01b03166001600160a01b0316633f4ba83a6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561198b57600080fd5b505af115801561199f573d6000803e3d6000fd5b50505050565b6119b085858561093d565b6001600160a01b0384163b1580611a475750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a02906119f89033908a908990899089906004016124a1565b6020604051808303816000875af1158015611a17573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a3b919061232d565b6001600160e01b031916145b611a865760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b6044820152606401610789565b5050505050565b60606000611a9a836117ca565b6001600160a01b031603611af05760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610789565b6000611afb83611e13565b9050600081604051602001611b1091906124e0565b6040516020818303038152906040529050600081604051602001611b349190612522565b604051602081830303815290604052905080604051602001611b5691906125aa565b6040516020818303038152906040529350505050919050565b606060006040518060e0016040528060a7815260200161260660a79139905080604051602001611b9f91906125aa565b60405160208183030381529060405291505090565b611bbc611bf2565b6001600160a01b038116611be657604051631e4fbdf760e01b815260006004820152602401610789565b611bef81611dc1565b50565b6006546001600160a01b031633146118965760405163118cdaa760e01b8152336004820152602401610789565b80471015611c425760405163cd78605960e01b8152306004820152602401610789565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611c8f576040519150601f19603f3d011682016040523d82523d6000602084013e611c94565b606091505b5050905080610c0e57604051630a12f52160e11b815260040160405180910390fd5b6001600160a01b038216611d005760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b6044820152606401610789565b6000818152600260205260409020546001600160a01b031615611d565760405162461bcd60e51b815260206004820152600e60248201526d1053149150511657d3525395115160921b6044820152606401610789565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60606000611e2083611ea6565b600101905060008167ffffffffffffffff811115611e4057611e406125ef565b6040519080825280601f01601f191660200182016040528015611e6a576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084611e7457509392505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310611ee55772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611f11576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310611f2f57662386f26fc10000830492506010015b6305f5e1008310611f47576305f5e100830492506008015b6127108310611f5b57612710830492506004015b60648310611f6d576064830492506002015b600a83106106735760010192915050565b6001600160e01b031981168114611bef57600080fd5b600060208284031215611fa657600080fd5b8135611fb181611f7e565b9392505050565b60005b83811015611fd3578181015183820152602001611fbb565b50506000910152565b6020815260008251806020840152611ffb816040850160208701611fb8565b601f01601f19169190910160400192915050565b60006020828403121561202157600080fd5b5035919050565b6001600160a01b0381168114611bef57600080fd5b6000806040838503121561205057600080fd5b823561205b81612028565b946020939093013593505050565b60008060006060848603121561207e57600080fd5b833561208981612028565b9250602084013561209981612028565b929592945050506040919091013590565b60008083601f8401126120bc57600080fd5b50813567ffffffffffffffff8111156120d457600080fd5b6020830191508360208285010111156120ec57600080fd5b9250929050565b60008060008060006060868803121561210b57600080fd5b85359450602086013567ffffffffffffffff8082111561212a57600080fd5b61213689838a016120aa565b9096509450604088013591508082111561214f57600080fd5b818801915088601f83011261216357600080fd5b81358181111561217257600080fd5b8960208260051b850101111561218757600080fd5b9699959850939650602001949392505050565b6000602082840312156121ac57600080fd5b8135611fb181612028565b8015158114611bef57600080fd5b600080604083850312156121d857600080fd5b82356121e381612028565b915060208301356121f3816121b7565b809150509250929050565b60008060008060006080868803121561221657600080fd5b853561222181612028565b9450602086013561223181612028565b935060408601359250606086013567ffffffffffffffff81111561225457600080fd5b612260888289016120aa565b969995985093965092949392505050565b6000806040838503121561228457600080fd5b823561228f81612028565b915060208301356121f381612028565b600181811c908216806122b357607f821691505b6020821081036122d357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610673576106736122d9565b60208082526011908201527010dbdb1b1958dd1a5bdb8818db1bdcd959607a1b604082015260600190565b60006020828403121561233f57600080fd5b8151611fb181611f7e565b60006020828403121561235c57600080fd5b5051919050565b81810381811115610673576106736122d9565b8082028115828204841417610673576106736122d9565b60006020828403121561239f57600080fd5b8151611fb1816121b7565b6000806000606084860312156123bf57600080fd5b8351925060208401519150604084015190509250925092565b6000602082840312156123ea57600080fd5b8151611fb181612028565b634e487b7160e01b600052603260045260246000fd5b60006001820161241d5761241d6122d9565b5060010190565b60008261244157634e487b7160e01b600052601260045260246000fd5b500690565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60018060a01b0385168152836020820152606060408201526000612497606083018486612446565b9695505050505050565b6001600160a01b03868116825285166020820152604081018490526080606082018190526000906124d59083018486612446565b979650505050505050565b6c2224474f4f445920426167202360981b8152815160009061250981600d850160208701611fb8565b61088b60f21b600d939091019283015250600f01919050565b673d913730b6b2911d60c11b81528151600090612546816008850160208701611fb8565b7f22696d616765223a2022697066733a2f2f516d5336793950686961507642433760089390910192830152507f334e6e6159616873695357675955566732784c56745a416d6241376a437247226028820152607d60f81b6048820152604901919050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c00000000008152600082516125e281601b850160208701611fb8565b91909101601b0192915050565b634e487b7160e01b600052604160045260246000fdfe7b226e616d65223a202224474f4f445920426167222c226465736372697074696f6e223a2022412024474f4f44592062616720666f7220426c6173742e222c2265787465726e616c5f75726c223a202268747470733a2f2f676f6f64796261672e777466222c22696d616765223a2022697066733a2f2f516d537959576a7538353547447062393259777137696a79694265517955656842546e64596d517038536f417243227da2646970667358221220ac9d7ca466073f5161ba1929e6f44640b3643f7a219231cab2b8e3f7a83683a664736f6c6343000814003300000000000000000000000098f9b2d212719b26e810824290c5c72550487cb40000000000000000000000002f7acab1e2cc551d9423e74c0fd625b957d52efd000000000000000000000000f084962cdc640ed5c7d4e35e52929dac06b60f7c00000000000000000000000098994a9a7a2570367554589189dc9772241650f6000000000000000000000000000000000000000000000000000000000002a300
Deployed Bytecode
0x6080604052600436106101e55760003560e01c806370a0823111610101578063b88d4fde1161009a578063e985e9c51161006c578063e985e9c514610560578063ea2b4ab21461059b578063f2fde38b146105b1578063f3c01617146105d1578063ff2356f1146105f757005b8063b88d4fde146104f1578063be9a655514610511578063c87b56dd1461052b578063e8a3d4851461054b57005b80639714378c116100d35780639714378c1461047c578063988297a61461049c578063a22cb465146104bc578063adf6e486146104dc57005b806370a0823114610414578063715018a6146104345780638da5cb5b1461044957806395d89b411461046757005b80632c4219641161017e5780634f02c420116101505780634f02c42014610397578063597e1fb5146103ac57806360fc48cc146103cb5780636352211e146103de5780636817c76c146103fe57005b80632c4219641461032c57806342842e0e1461034257806343d726d6146103625780634d964dfa1461037757005b80630ca35682116101b75780630ca35682146102b357806323b872dd146102d357806324797db5146102f35780632be095611461031757005b806301ffc9a7146101ee57806306fdde0314610223578063081812fc14610245578063095ea7b31461029357005b366101ec57005b005b3480156101fa57600080fd5b5061020e610209366004611f94565b610627565b60405190151581526020015b60405180910390f35b34801561022f57600080fd5b50610238610679565b60405161021a9190611fdc565b34801561025157600080fd5b5061027b61026036600461200f565b6004602052600090815260409020546001600160a01b031681565b6040516001600160a01b03909116815260200161021a565b34801561029f57600080fd5b506101ec6102ae36600461203d565b610707565b3480156102bf57600080fd5b506101ec6102ce36600461200f565b6107ee565b3480156102df57600080fd5b506101ec6102ee366004612069565b61093d565b3480156102ff57600080fd5b50610309600f5481565b60405190815260200161021a565b34801561032357600080fd5b506101ec610b04565b34801561033857600080fd5b50610309600d5481565b34801561034e57600080fd5b506101ec61035d366004612069565b610b1b565b34801561036e57600080fd5b506101ec610c13565b34801561038357600080fd5b50600a5461027b906001600160a01b031681565b3480156103a357600080fd5b50600754610309565b3480156103b857600080fd5b5060095461020e90610100900460ff1681565b6101ec6103d93660046120f3565b611209565b3480156103ea57600080fd5b5061027b6103f936600461200f565b6117ca565b34801561040a57600080fd5b50610309600c5481565b34801561042057600080fd5b5061030961042f36600461219a565b611821565b34801561044057600080fd5b506101ec611884565b34801561045557600080fd5b506006546001600160a01b031661027b565b34801561047357600080fd5b50610238611898565b34801561048857600080fd5b506101ec61049736600461200f565b6118a5565b3480156104a857600080fd5b50600b5461027b906001600160a01b031681565b3480156104c857600080fd5b506101ec6104d73660046121c5565b6118c7565b3480156104e857600080fd5b506101ec611933565b3480156104fd57600080fd5b506101ec61050c3660046121fe565b6119a5565b34801561051d57600080fd5b5060095461020e9060ff1681565b34801561053757600080fd5b5061023861054636600461200f565b611a8d565b34801561055757600080fd5b50610238611b6f565b34801561056c57600080fd5b5061020e61057b366004612271565b600560209081526000928352604080842090915290825290205460ff1681565b3480156105a757600080fd5b50610309600e5481565b3480156105bd57600080fd5b506101ec6105cc36600461219a565b611bb4565b3480156105dd57600080fd5b5060095461027b906201000090046001600160a01b031681565b34801561060357600080fd5b5061020e61061236600461200f565b60009081526010602052604090205460ff1690565b60006301ffc9a760e01b6001600160e01b03198316148061065857506380ac58cd60e01b6001600160e01b03198316145b806106735750635b5e139f60e01b6001600160e01b03198316145b92915050565b600080546106869061229f565b80601f01602080910402602001604051908101604052809291908181526020018280546106b29061229f565b80156106ff5780601f106106d4576101008083540402835291602001916106ff565b820191906000526020600020905b8154815290600101906020018083116106e257829003601f168201915b505050505081565b6000818152600260205260409020546001600160a01b03163381148061075057506001600160a01b038116600090815260056020908152604080832033845290915290205460ff165b6107925760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064015b60405180910390fd5b60008281526004602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6107f6611bf2565b6000600e54610e1061080891906122ef565b90508042101561085a5760405162461bcd60e51b815260206004820152601860248201527f436f6c6c656374696f6e2063616e20626520636c6f73656400000000000000006044820152606401610789565b600954610100900460ff16156108825760405162461bcd60e51b815260040161078990612302565b6009805461ff001916610100179055600a546001600160a01b03166340c10f196108b46006546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101859052604401600060405180830381600087803b1580156108fc57600080fd5b505af1158015610910573d6000803e3d6000fd5b505050506109394761092a6006546001600160a01b031690565b6001600160a01b031690611c1f565b5050565b6000818152600260205260409020546001600160a01b038481169116146109935760405162461bcd60e51b815260206004820152600a60248201526957524f4e475f46524f4d60b01b6044820152606401610789565b6001600160a01b0382166109dd5760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b6044820152606401610789565b336001600160a01b0384161480610a1757506001600160a01b038316600090815260056020908152604080832033845290915290205460ff165b80610a3857506000818152600460205260409020546001600160a01b031633145b610a755760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b6044820152606401610789565b6001600160a01b0380841660008181526003602090815260408083208054600019019055938616808352848320805460010190558583526002825284832080546001600160a01b03199081168317909155600490925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b610b0c611bf2565b6009805460ff19166001179055565b610b2683838361093d565b6001600160a01b0382163b1580610bcf5750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af1158015610b9f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bc3919061232d565b6001600160e01b031916145b610c0e5760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b6044820152606401610789565b505050565b60095460ff16610c535760405162461bcd60e51b815260206004820152600b60248201526a139bdd081cdd185c9d195960aa1b6044820152606401610789565b600e54421015610ca55760405162461bcd60e51b815260206004820152601860248201527f436f6c6c656374696f6e207374696c6c206d696e74696e6700000000000000006044820152606401610789565b600954610100900460ff1615610ccd5760405162461bcd60e51b815260040161078990612302565b6009805461ff001916610100179055600a54604080516318160ddd60e01b815290516000926001600160a01b0316916318160ddd9160048083019260209291908290030181865afa158015610d26573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d4a919061234a565b9050600854811015610dde57600a546008546001600160a01b03909116906340c10f19903090610d7b908590612363565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015610dc157600080fd5b505af1158015610dd5573d6000803e3d6000fd5b50505050610e64565b600a54600f54600d546001600160a01b03909216916340c10f19913091610e059190612376565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015610e4b57600080fd5b505af1158015610e5f573d6000803e3d6000fd5b505050505b600a54600b5460405163095ea7b360e01b81526001600160a01b039182166004820152600019602482015291169063095ea7b3906044016020604051808303816000875af1158015610eba573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ede919061238d565b50600a60009054906101000a90046001600160a01b03166001600160a01b0316633f4ba83a6040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610f2f57600080fd5b505af1158015610f43573d6000803e3d6000fd5b5050600b54600a546040516370a0823160e01b81523060048201526001600160a01b03928316945063f305d719935047929091169081906370a0823190602401602060405180830381865afa158015610fa0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fc4919061234a565b6040516001600160e01b031960e086901b1681526001600160a01b039092166004830152602482015260006044820181905260648201523060848201524260a482015260c40160606040518083038185885af1158015611028573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061104d91906123aa565b5050506000600b60009054906101000a90046001600160a01b03166001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa1580156110a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110c991906123d8565b90506000816001600160a01b031663e6a43905600b60009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561112f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061115391906123d8565b600a5460405160e084901b6001600160e01b03191681526001600160a01b03928316600482015291166024820152604401602060405180830381865afa1580156111a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111c591906123d8565b6040516001600160a01b03821681529091507ff5bdc103c3e68a20d5f97d2d46792d3fdddfa4efeb6761f8141e6a7b936ca66c9060200160405180910390a1505050565b60095460ff166112495760405162461bcd60e51b815260206004820152600b60248201526a139bdd081cdd185c9d195960aa1b6044820152606401610789565b600e54421061126a5760405162461bcd60e51b815260040161078990612302565b600085116112ba5760405162461bcd60e51b815260206004820152601d60248201527f416d6f756e74206d7573742062652067726561746572207468616e20300000006044820152606401610789565b848111156113155760405162461bcd60e51b815260206004820152602260248201527f5573696e6720657863657373206361747320666f7220636c61696d20616d6f756044820152611b9d60f21b6064820152608401610789565b8060005b828110156114c85760095433906201000090046001600160a01b0316636352211e86868581811061134c5761134c6123f5565b905060200201356040518263ffffffff1660e01b815260040161137191815260200190565b602060405180830381865afa15801561138e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113b291906123d8565b6001600160a01b0316146113fb5760405162461bcd60e51b815260206004820152601060248201526f139bdd081bdddb995c881bd98818d85d60821b6044820152606401610789565b60106000858584818110611411576114116123f5565b602090810292909201358352508101919091526040016000205460ff16156114715760405162461bcd60e51b815260206004820152601360248201527210d85d08185b1c9958591e4818db185a5b5959606a1b6044820152606401610789565b600160106000868685818110611489576114896123f5565b90506020020135815260200190815260200160002060006101000a81548160ff02191690831515021790555080806114c09061240b565b915050611319565b50600c5433906000906114db9084612376565b600c546114e8908a612376565b6114f29190612363565b9050803410156115395760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742066756e647360701b6044820152606401610789565b6000805b898110156115ee57600b6007546115549190612424565b6000036115c657600c54831061157457600c546115719084612363565b92505b8161157e8161240b565b600f805491945090915060006115938361240b565b91905055506115c66115ad6006546001600160a01b031690565b600780549060006115bd8361240b565b91905055611cb6565b600780546115dc9186919060006115bd8361240b565b806115e68161240b565b91505061153d565b5080156116e9577fe7cd4ce7f2a465edc730269a1305e8a48bad821e8fb7e152ec413829c01a53c46116286006546001600160a01b031690565b604080516001600160a01b03909216825260208201849052606090820181905260009082015260800160405180910390a1600a546001600160a01b03166340c10f1961167c6006546001600160a01b031690565b83600d5461168a9190612376565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b1580156116d057600080fd5b505af11580156116e4573d6000803e3d6000fd5b505050505b600a54600d546001600160a01b03909116906340c10f1990859061170e908d90612376565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561175457600080fd5b505af1158015611768573d6000803e3d6000fd5b505050506117828261092a6006546001600160a01b031690565b7fe7cd4ce7f2a465edc730269a1305e8a48bad821e8fb7e152ec413829c01a53c4838a8a8a6040516117b7949392919061246f565b60405180910390a1505050505050505050565b6000818152600260205260409020546001600160a01b03168061181c5760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b6044820152606401610789565b919050565b60006001600160a01b0382166118685760405162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b6044820152606401610789565b506001600160a01b031660009081526003602052604090205490565b61188c611bf2565b6118966000611dc1565b565b600180546106869061229f565b6118ad611bf2565b80600e60008282546118bf91906122ef565b909155505050565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61193b611bf2565b600a60009054906101000a90046001600160a01b03166001600160a01b0316633f4ba83a6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561198b57600080fd5b505af115801561199f573d6000803e3d6000fd5b50505050565b6119b085858561093d565b6001600160a01b0384163b1580611a475750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a02906119f89033908a908990899089906004016124a1565b6020604051808303816000875af1158015611a17573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a3b919061232d565b6001600160e01b031916145b611a865760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b6044820152606401610789565b5050505050565b60606000611a9a836117ca565b6001600160a01b031603611af05760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610789565b6000611afb83611e13565b9050600081604051602001611b1091906124e0565b6040516020818303038152906040529050600081604051602001611b349190612522565b604051602081830303815290604052905080604051602001611b5691906125aa565b6040516020818303038152906040529350505050919050565b606060006040518060e0016040528060a7815260200161260660a79139905080604051602001611b9f91906125aa565b60405160208183030381529060405291505090565b611bbc611bf2565b6001600160a01b038116611be657604051631e4fbdf760e01b815260006004820152602401610789565b611bef81611dc1565b50565b6006546001600160a01b031633146118965760405163118cdaa760e01b8152336004820152602401610789565b80471015611c425760405163cd78605960e01b8152306004820152602401610789565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611c8f576040519150601f19603f3d011682016040523d82523d6000602084013e611c94565b606091505b5050905080610c0e57604051630a12f52160e11b815260040160405180910390fd5b6001600160a01b038216611d005760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b6044820152606401610789565b6000818152600260205260409020546001600160a01b031615611d565760405162461bcd60e51b815260206004820152600e60248201526d1053149150511657d3525395115160921b6044820152606401610789565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60606000611e2083611ea6565b600101905060008167ffffffffffffffff811115611e4057611e406125ef565b6040519080825280601f01601f191660200182016040528015611e6a576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084611e7457509392505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310611ee55772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611f11576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310611f2f57662386f26fc10000830492506010015b6305f5e1008310611f47576305f5e100830492506008015b6127108310611f5b57612710830492506004015b60648310611f6d576064830492506002015b600a83106106735760010192915050565b6001600160e01b031981168114611bef57600080fd5b600060208284031215611fa657600080fd5b8135611fb181611f7e565b9392505050565b60005b83811015611fd3578181015183820152602001611fbb565b50506000910152565b6020815260008251806020840152611ffb816040850160208701611fb8565b601f01601f19169190910160400192915050565b60006020828403121561202157600080fd5b5035919050565b6001600160a01b0381168114611bef57600080fd5b6000806040838503121561205057600080fd5b823561205b81612028565b946020939093013593505050565b60008060006060848603121561207e57600080fd5b833561208981612028565b9250602084013561209981612028565b929592945050506040919091013590565b60008083601f8401126120bc57600080fd5b50813567ffffffffffffffff8111156120d457600080fd5b6020830191508360208285010111156120ec57600080fd5b9250929050565b60008060008060006060868803121561210b57600080fd5b85359450602086013567ffffffffffffffff8082111561212a57600080fd5b61213689838a016120aa565b9096509450604088013591508082111561214f57600080fd5b818801915088601f83011261216357600080fd5b81358181111561217257600080fd5b8960208260051b850101111561218757600080fd5b9699959850939650602001949392505050565b6000602082840312156121ac57600080fd5b8135611fb181612028565b8015158114611bef57600080fd5b600080604083850312156121d857600080fd5b82356121e381612028565b915060208301356121f3816121b7565b809150509250929050565b60008060008060006080868803121561221657600080fd5b853561222181612028565b9450602086013561223181612028565b935060408601359250606086013567ffffffffffffffff81111561225457600080fd5b612260888289016120aa565b969995985093965092949392505050565b6000806040838503121561228457600080fd5b823561228f81612028565b915060208301356121f381612028565b600181811c908216806122b357607f821691505b6020821081036122d357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610673576106736122d9565b60208082526011908201527010dbdb1b1958dd1a5bdb8818db1bdcd959607a1b604082015260600190565b60006020828403121561233f57600080fd5b8151611fb181611f7e565b60006020828403121561235c57600080fd5b5051919050565b81810381811115610673576106736122d9565b8082028115828204841417610673576106736122d9565b60006020828403121561239f57600080fd5b8151611fb1816121b7565b6000806000606084860312156123bf57600080fd5b8351925060208401519150604084015190509250925092565b6000602082840312156123ea57600080fd5b8151611fb181612028565b634e487b7160e01b600052603260045260246000fd5b60006001820161241d5761241d6122d9565b5060010190565b60008261244157634e487b7160e01b600052601260045260246000fd5b500690565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60018060a01b0385168152836020820152606060408201526000612497606083018486612446565b9695505050505050565b6001600160a01b03868116825285166020820152604081018490526080606082018190526000906124d59083018486612446565b979650505050505050565b6c2224474f4f445920426167202360981b8152815160009061250981600d850160208701611fb8565b61088b60f21b600d939091019283015250600f01919050565b673d913730b6b2911d60c11b81528151600090612546816008850160208701611fb8565b7f22696d616765223a2022697066733a2f2f516d5336793950686961507642433760089390910192830152507f334e6e6159616873695357675955566732784c56745a416d6241376a437247226028820152607d60f81b6048820152604901919050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c00000000008152600082516125e281601b850160208701611fb8565b91909101601b0192915050565b634e487b7160e01b600052604160045260246000fdfe7b226e616d65223a202224474f4f445920426167222c226465736372697074696f6e223a2022412024474f4f44592062616720666f7220426c6173742e222c2265787465726e616c5f75726c223a202268747470733a2f2f676f6f64796261672e777466222c22696d616765223a2022697066733a2f2f516d537959576a7538353547447062393259777137696a79694265517955656842546e64596d517038536f417243227da2646970667358221220ac9d7ca466073f5161ba1929e6f44640b3643f7a219231cab2b8e3f7a83683a664736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000098f9b2d212719b26e810824290c5c72550487cb40000000000000000000000002f7acab1e2cc551d9423e74c0fd625b957d52efd000000000000000000000000f084962cdc640ed5c7d4e35e52929dac06b60f7c00000000000000000000000098994a9a7a2570367554589189dc9772241650f6000000000000000000000000000000000000000000000000000000000002a300
-----Decoded View---------------
Arg [0] : _owner (address): 0x98f9B2d212719b26E810824290C5c72550487CB4
Arg [1] : _goody (address): 0x2f7acaB1e2cc551D9423E74c0FD625B957d52efD
Arg [2] : _plutocats (address): 0xF084962cdC640ED5c7d4e35E52929dAC06B60F7C
Arg [3] : _thrusterRouter (address): 0x98994a9A7a2570367554589189dC9772241650f6
Arg [4] : _duration (uint256): 172800
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 00000000000000000000000098f9b2d212719b26e810824290c5c72550487cb4
Arg [1] : 0000000000000000000000002f7acab1e2cc551d9423e74c0fd625b957d52efd
Arg [2] : 000000000000000000000000f084962cdc640ed5c7d4e35e52929dac06b60f7c
Arg [3] : 00000000000000000000000098994a9a7a2570367554589189dc9772241650f6
Arg [4] : 000000000000000000000000000000000000000000000000000000000002a300
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.