ERC-721
Overview
Max Total Supply
5,636 BASYC-0
Holders
1,201
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 BASYC-0Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
MythDivisionBAYCComicFirstIssue
Compiler Version
v0.8.6+commit.11564f7e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/finance/PaymentSplitter.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "./MythDivisionExclusiveAccess.sol"; contract MythDivisionBAYCComicFirstIssue is ERC721, Pausable, Ownable, PaymentSplitter, MythDivisionExclusiveAccess { using SafeMath for uint256; using Strings for uint256; uint256 public MAX_SUPPLY = 5636; uint256 public MAX_PRESALE_COUNT = 1500; uint256 _startingReservedCount = 136; uint256 _reservedCount = _startingReservedCount; uint8 _maxPurchaseCount = 15; uint256 _totalSupply = 0; uint256 _mintPrice = 0.01 ether; string _baseURIValue = "ipfs://QmccVkoBJkxxz2ZcJjWZQk8azDzWPh8xpbVesSFVPgWZCh/"; uint256 _saleStart; ERC721 private boredApesContract; mapping(uint256 => uint256) _tokenVariantMap; constructor( uint256 saleStart_, address[] memory payees, uint256[] memory paymentShares, address openseaStorefrontAddress, address boredApesAddress, uint256[] memory openseaMythDivisionTokens ) ERC721("Bored Ape Seeking Yacht Club Issue #0", "BASYC-0") PaymentSplitter(payees, paymentShares) MythDivisionExclusiveAccess(openseaStorefrontAddress) { _saleStart = saleStart_; boredApesContract = ERC721(boredApesAddress); for (uint256 i = 0; i < openseaMythDivisionTokens.length; i++) { addMythDivisionOpenSeaToken(openseaMythDivisionTokens[i]); } addEligibleERC721Contract(boredApesAddress); } function totalSupply() public view returns (uint256) { return _totalSupply; } function _baseURI() internal view override returns (string memory) { return _baseURIValue; } function pause() public onlyOwner { _pause(); } function unpause() public onlyOwner { _unpause(); } function saleStart() public view returns (uint256) { return _saleStart; } function presaleStart() public view returns (uint256) { return _saleStart - 3600; } function setSaleStart(uint256 saleStart_) public onlyOwner { _saleStart = saleStart_; } function saleHasStarted() public view returns (bool) { return _saleStart <= block.timestamp; } function presaleHasStarted() public view returns (bool) { return presaleStart() <= block.timestamp; } function reservedCount() public view returns (uint256) { return _reservedCount; } function baseURI() public view returns (string memory) { return _baseURI(); } function setBaseURI(string memory newBase) public onlyOwner { _baseURIValue = newBase; } function tokenURI(uint256 tokenId) public view override(ERC721) returns (string memory) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); string memory base = _baseURI(); return string( abi.encodePacked(base, _tokenVariantMap[tokenId].toString()) ); } function maxPurchaseCount() public view returns (uint256) { return _maxPurchaseCount; } function setMaxPurchaseCount(uint8 count) public onlyOwner { _maxPurchaseCount = count; } function baseMintPrice() public view returns (uint256) { return _mintPrice; } function mintPrice(uint256 numberOfTokens) public view returns (uint256) { return _mintPrice.mul(numberOfTokens); } function canAccessPresale() public view returns (bool) { return hasMythDivisionExclusiveAccess(msg.sender); } modifier mintCountMeetsSupply(uint256 numberOfTokens) { require( _totalSupply.add(_reservedCount).add(numberOfTokens) <= MAX_SUPPLY, "Purchase would exceed max supply" ); _; } modifier mintCountMeetsPresaleSupply(uint256 numberOfTokens) { require( _totalSupply.add(numberOfTokens).add(_reservedCount) <= MAX_PRESALE_COUNT.add(_startingReservedCount), "Presale has sold out. Please wait for primary sale to begin." ); _; } modifier doesNotExceedMaxPurchaseCount(uint256 numberOfTokens) { require( numberOfTokens <= _maxPurchaseCount, "Cannot mint more than 10 tokens at a time" ); _; } modifier validatePurchasePrice(uint256 numberOfTokens) { require( mintPrice(numberOfTokens) == msg.value, "Ether value sent is not correct" ); _; } function _mintTokens( uint256 numberOfTokens, address to, bool forReserves ) internal { uint256 seed = uint256( keccak256( abi.encodePacked( block.difficulty, block.timestamp, block.number, msg.sender ) ) ); bool ownsBoredApes = !forReserves && boredApesContract.balanceOf(to) > 0; for (uint256 i = 0; i < numberOfTokens; i++) { _totalSupply += 1; uint256 tokenId = _totalSupply; uint256 rand = _randomVariantIndex(seed, tokenId); uint8 variant; if (ownsBoredApes) { if (rand < 10) { variant = 3; } else if (rand < 20) { variant = 2; } else { variant = 1; } } else { if (rand < 5) { variant = 3; } else if (rand < 10) { variant = 2; } else { variant = 1; } } _tokenVariantMap[tokenId] = variant; _safeMint(to, tokenId); } } function _randomVariantIndex(uint256 seed, uint256 tokenId) internal view virtual returns (uint256) { return uint256(keccak256(abi.encodePacked(seed, tokenId))) % 200; } function mintPresale(uint16 numberOfTokens) public payable mintCountMeetsPresaleSupply(numberOfTokens) mintCountMeetsSupply(numberOfTokens) whenNotPaused doesNotExceedMaxPurchaseCount(numberOfTokens) validatePurchasePrice(numberOfTokens) { require(presaleHasStarted(), "Presale has not started yet"); require(canAccessPresale(), "Account does not own MythDivision tokens"); _mintTokens(numberOfTokens, msg.sender, false); } function mintTokens(uint256 numberOfTokens) public payable mintCountMeetsSupply(numberOfTokens) whenNotPaused doesNotExceedMaxPurchaseCount(numberOfTokens) validatePurchasePrice(numberOfTokens) { require(saleHasStarted(), "Sale has not started yet"); _mintTokens(numberOfTokens, msg.sender, false); } function mintReserved(uint256 numberOfTokens, address to) public onlyOwner { uint256 initialSupply = _totalSupply; require( numberOfTokens <= _reservedCount, "Would exceed reserved supply" ); require( numberOfTokens.add(initialSupply) <= MAX_SUPPLY, "Would exceed reserved supply" ); _reservedCount = _reservedCount.sub(numberOfTokens); _mintTokens(numberOfTokens, to, true); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @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. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Address.sol"; import "../utils/Context.sol"; import "../utils/math/SafeMath.sol"; /** * @title PaymentSplitter * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware * that the Ether will be split in this way, since it is handled transparently by the contract. * * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim * an amount proportional to the percentage of total shares they were assigned. * * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release} * function. */ contract PaymentSplitter is Context { event PayeeAdded(address account, uint256 shares); event PaymentReleased(address to, uint256 amount); event PaymentReceived(address from, uint256 amount); uint256 private _totalShares; uint256 private _totalReleased; mapping(address => uint256) private _shares; mapping(address => uint256) private _released; address[] private _payees; /** * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at * the matching position in the `shares` array. * * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no * duplicates in `payees`. */ constructor(address[] memory payees, uint256[] memory shares_) payable { require(payees.length == shares_.length, "PaymentSplitter: payees and shares length mismatch"); require(payees.length > 0, "PaymentSplitter: no payees"); for (uint256 i = 0; i < payees.length; i++) { _addPayee(payees[i], shares_[i]); } } /** * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the * reliability of the events, and not the actual splitting of Ether. * * To learn more about this see the Solidity documentation for * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback * functions]. */ receive() external payable virtual { emit PaymentReceived(_msgSender(), msg.value); } /** * @dev Getter for the total shares held by payees. */ function totalShares() public view returns (uint256) { return _totalShares; } /** * @dev Getter for the total amount of Ether already released. */ function totalReleased() public view returns (uint256) { return _totalReleased; } /** * @dev Getter for the amount of shares held by an account. */ function shares(address account) public view returns (uint256) { return _shares[account]; } /** * @dev Getter for the amount of Ether already released to a payee. */ function released(address account) public view returns (uint256) { return _released[account]; } /** * @dev Getter for the address of the payee number `index`. */ function payee(uint256 index) public view returns (address) { return _payees[index]; } /** * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the * total shares and their previous withdrawals. */ function release(address payable account) public virtual { require(_shares[account] > 0, "PaymentSplitter: account has no shares"); uint256 totalReceived = address(this).balance + _totalReleased; uint256 payment = (totalReceived * _shares[account]) / _totalShares - _released[account]; require(payment != 0, "PaymentSplitter: account is not due payment"); _released[account] = _released[account] + payment; _totalReleased = _totalReleased + payment; Address.sendValue(account, payment); emit PaymentReleased(account, payment); } /** * @dev Add a new payee to the contract. * @param account The address of the payee to add. * @param shares_ The number of shares owned by the payee. */ function _addPayee(address account, uint256 shares_) private { require(account != address(0), "PaymentSplitter: account is the zero address"); require(shares_ > 0, "PaymentSplitter: shares are 0"); require(_shares[account] == 0, "PaymentSplitter: account already has shares"); _payees.push(account); _shares[account] = shares_; _totalShares = _totalShares + shares_; emit PayeeAdded(account, shares_); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; abstract contract OpenSeaStorefront { function balanceOf(address owner, uint256 cardId) external view virtual returns (uint256 balance); } contract MythDivisionExclusiveAccess is Ownable { using SafeMath for uint256; OpenSeaStorefront private opensea; uint256[] _mythDivisionOpenseaTokens; mapping(uint256 => uint256) private _mythDivisionOpenseaTokensIndex; address[] _eligibleERC721Contracts; mapping(address => uint256) private _eligibleERC721ContractsIndex; constructor(address osStorefront) { opensea = OpenSeaStorefront(osStorefront); } function addMythDivisionOpenSeaToken(uint256 tokenId) public onlyOwner { if ( _mythDivisionOpenseaTokens.length > 0 && _mythDivisionOpenseaTokensIndex[tokenId] == 0 ) { require( tokenId != _mythDivisionOpenseaTokens[0], "Already present in the list" ); } _mythDivisionOpenseaTokensIndex[tokenId] = _mythDivisionOpenseaTokens .length; _mythDivisionOpenseaTokens.push(tokenId); } function removeMythDivisionOpenSeaToken(uint256 tokenId) public onlyOwner { if (_mythDivisionOpenseaTokensIndex[tokenId] == 0) { require( tokenId == _mythDivisionOpenseaTokens[0], "Does not exist in the list" ); } // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _mythDivisionOpenseaTokens.length - 1; uint256 tokenIndex = _mythDivisionOpenseaTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _mythDivisionOpenseaTokens[lastTokenIndex]; _mythDivisionOpenseaTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _mythDivisionOpenseaTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _mythDivisionOpenseaTokensIndex[tokenId]; _mythDivisionOpenseaTokens.pop(); } function mythDivisionOpenSeaTokens() public view returns (uint256[] memory) { return _mythDivisionOpenseaTokens; } function balanceOfOpenseaTokens(address owner) public view returns (uint256) { uint256 total = 0; for (uint256 i; i < _mythDivisionOpenseaTokens.length; i++) { total += opensea.balanceOf(owner, _mythDivisionOpenseaTokens[i]); } return total; } function isOpenseaTokenHolder(address owner) public view returns (bool) { for (uint256 i; i < _mythDivisionOpenseaTokens.length; i++) { if (opensea.balanceOf(owner, _mythDivisionOpenseaTokens[i]) > 0) { return true; } } return false; } function addEligibleERC721Contract(address addr) public onlyOwner { if ( _eligibleERC721Contracts.length > 0 && _eligibleERC721ContractsIndex[addr] == 0 ) { require( addr != _eligibleERC721Contracts[0], "Already present in the list" ); } _eligibleERC721ContractsIndex[addr] = _eligibleERC721Contracts.length; _eligibleERC721Contracts.push(addr); } function removeEligibleERC721Contract(address addr) public onlyOwner { if (_eligibleERC721ContractsIndex[addr] == 0) { require( addr == _eligibleERC721Contracts[0], "Does not exist in the list" ); } // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _eligibleERC721Contracts.length - 1; uint256 tokenIndex = _eligibleERC721ContractsIndex[addr]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) address lastAddress = _eligibleERC721Contracts[lastTokenIndex]; _eligibleERC721Contracts[tokenIndex] = lastAddress; // Move the last token to the slot of the to-delete token _eligibleERC721ContractsIndex[lastAddress] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _eligibleERC721ContractsIndex[addr]; _eligibleERC721Contracts.pop(); } function eligibleERC721Contracts() public view returns (address[] memory) { return _eligibleERC721Contracts; } function balanceOfEligibleERC721ContractTokens(address owner) public view returns (uint256) { uint256 total = 0; for (uint256 i; i < _eligibleERC721Contracts.length; i++) { total += ERC721(_eligibleERC721Contracts[i]).balanceOf(owner); } return total; } function isEligibleERC721TokenHolder(address owner) public view returns (bool) { for (uint256 i; i < _eligibleERC721Contracts.length; i++) { if (ERC721(_eligibleERC721Contracts[i]).balanceOf(owner) > 0) { return true; } } return false; } function balanceOfMythDivisionExclusiveAccessTokens(address owner) public view virtual returns (uint256) { return balanceOfOpenseaTokens(owner).add( balanceOfEligibleERC721ContractTokens(owner) ); } function hasMythDivisionExclusiveAccess(address owner) public view returns (bool) { return isOpenseaTokenHolder(owner) || isEligibleERC721TokenHolder(owner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) private pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { 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_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"saleStart_","type":"uint256"},{"internalType":"address[]","name":"payees","type":"address[]"},{"internalType":"uint256[]","name":"paymentShares","type":"uint256[]"},{"internalType":"address","name":"openseaStorefrontAddress","type":"address"},{"internalType":"address","name":"boredApesAddress","type":"address"},{"internalType":"uint256[]","name":"openseaMythDivisionTokens","type":"uint256[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","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":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","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":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"MAX_PRESALE_COUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"addEligibleERC721Contract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"addMythDivisionOpenSeaToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","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":"address","name":"owner","type":"address"}],"name":"balanceOfEligibleERC721ContractTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOfMythDivisionExclusiveAccessTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOfOpenseaTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"canAccessPresale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"eligibleERC721Contracts","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"hasMythDivisionExclusiveAccess","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"isEligibleERC721TokenHolder","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"isOpenseaTokenHolder","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPurchaseCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"numberOfTokens","type":"uint16"}],"name":"mintPresale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"mintReserved","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mintTokens","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mythDivisionOpenSeaTokens","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":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleHasStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"removeEligibleERC721Contract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"removeMythDivisionOpenSeaToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reservedCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","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":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleHasStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"saleStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBase","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"count","type":"uint8"}],"name":"setMaxPurchaseCount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"saleStart_","type":"uint256"}],"name":"setSaleStart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","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":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6116046011556105dc601255608860138190556014556015805460ff1916600f1790556000601655662386f26fc1000060175560e06040526036608081815290620041a260a03980516200005c91601891602090910190620007b4565b503480156200006a57600080fd5b506040516200421d3803806200421d8339810160408190526200008d91620008f1565b828585604051806060016040528060258152602001620041d86025913960405180604001604052806007815260200166042415359432d360cc1b8152508160009080519060200190620000e2929190620007b4565b508051620000f8906001906020840190620007b4565b50506006805460ff19169055506200011033620002e0565b8051825114620001825760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b6000825111620001d55760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f20706179656573000000000000604482015260640162000179565b60005b825181101562000241576200022c838281518110620001fb57620001fb62000b04565b602002602001015183838151811062000218576200021862000b04565b60200260200101516200033a60201b60201c565b80620002388162000ad0565b915050620001d8565b5050600c80546001600160a01b03199081166001600160a01b03948516179091556019899055601a8054909116928516929092179091555060005b8151811015620002c857620002b38282815181106200029f576200029f62000b04565b60200260200101516200052860201b60201c565b80620002bf8162000ad0565b9150506200027c565b50620002d48262000654565b50505050505062000b30565b600680546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620003a75760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b606482015260840162000179565b60008111620003f95760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a20736861726573206172652030000000604482015260640162000179565b6001600160a01b03821660009081526009602052604090205415620004755760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b606482015260840162000179565b600b8054600181019091557f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db90180546001600160a01b0319166001600160a01b0384169081179091556000908152600960205260409020819055600754620004df90829062000a78565b600755604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b6006546001600160a01b03610100909104163314620005795760405162461bcd60e51b81526020600482018190526024820152600080516020620041fd833981519152604482015260640162000179565b600d54158015906200059757506000818152600e6020526040902054155b156200061057600d600081548110620005b457620005b462000b04565b9060005260206000200154811415620006105760405162461bcd60e51b815260206004820152601b60248201527f416c72656164792070726573656e7420696e20746865206c6973740000000000604482015260640162000179565b600d80546000838152600e60205260408120829055600182018355919091527fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb50155565b6006546001600160a01b03610100909104163314620006a55760405162461bcd60e51b81526020600482018190526024820152600080516020620041fd833981519152604482015260640162000179565b600f5415801590620006cd57506001600160a01b038116600090815260106020526040902054155b156200075357600f600081548110620006ea57620006ea62000b04565b6000918252602090912001546001600160a01b0382811691161415620007535760405162461bcd60e51b815260206004820152601b60248201527f416c72656164792070726573656e7420696e20746865206c6973740000000000604482015260640162000179565b600f80546001600160a01b039092166000818152601060205260408120849055600184018355919091527f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac80290910180546001600160a01b0319169091179055565b828054620007c29062000a93565b90600052602060002090601f016020900481019282620007e6576000855562000831565b82601f106200080157805160ff191683800117855562000831565b8280016001018555821562000831579182015b828111156200083157825182559160200191906001019062000814565b506200083f92915062000843565b5090565b5b808211156200083f576000815560010162000844565b80516001600160a01b03811681146200087257600080fd5b919050565b600082601f8301126200088957600080fd5b81516020620008a26200089c8362000a52565b62000a1f565b80838252828201915082860187848660051b8901011115620008c357600080fd5b60005b85811015620008e457815184529284019290840190600101620008c6565b5090979650505050505050565b60008060008060008060c087890312156200090b57600080fd5b8651602080890151919750906001600160401b03808211156200092d57600080fd5b818a0191508a601f8301126200094257600080fd5b8151620009536200089c8262000a52565b8082825285820191508585018e878560051b88010111156200097457600080fd5b600095505b83861015620009a2576200098d816200085a565b83526001959095019491860191860162000979565b5060408d0151909a509450505080831115620009bd57600080fd5b620009cb8b848c0162000877565b9650620009db60608b016200085a565b9550620009eb60808b016200085a565b945060a08a015192508083111562000a0257600080fd5b505062000a1289828a0162000877565b9150509295509295509295565b604051601f8201601f191681016001600160401b038111828210171562000a4a5762000a4a62000b1a565b604052919050565b60006001600160401b0382111562000a6e5762000a6e62000b1a565b5060051b60200190565b6000821982111562000a8e5762000a8e62000aee565b500190565b600181811c9082168062000aa857607f821691505b6020821081141562000aca57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141562000ae75762000ae762000aee565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6136628062000b406000396000f3fe60806040526004361061036e5760003560e01c80638456cb59116101c6578063c87b56dd116100f7578063e33b7de311610095578063e985e9c51161006f578063e985e9c5146109ce578063ec29f25014610a17578063f2fde38b14610a37578063ffb1cfd814610a5757600080fd5b8063e33b7de314610983578063e353ee5014610998578063e6a72acf146109ae57600080fd5b8063dc1b2144116100d1578063dc1b21441461090c578063de8801e51461092e578063dfe8ae6714610943578063e31356d61461096357600080fd5b8063c87b56dd146108a1578063ce7c2ac2146108c1578063d5f52098146108f757600080fd5b8063a22cb46511610164578063b88d4fde1161013e578063b88d4fde14610834578063bfede2e914610854578063c38f761714610874578063c70299641461088957600080fd5b8063a22cb465146107dd578063ab0bcc41146107fd578063afd05eeb1461081257600080fd5b80638da5cb5b116101a05780638da5cb5b1461075c57806395d89b411461077f57806397304ced146107945780639852595c146107a757600080fd5b80638456cb59146107125780638559dff3146107275780638b83209b1461073c57600080fd5b80633a98ef39116102a05780636352211e1161023e5780636c0635ed116102185780636c0635ed146106a857806370a08231146106bd578063715018a6146106dd578063769363eb146106f257600080fd5b80636352211e14610653578063662d01f3146106735780636c0360eb1461069357600080fd5b806342842e0e1161027a57806342842e0e146105db57806355f804b3146105fb5780635c975abb1461061b578063631bbbba1461063357600080fd5b80633a98ef39146105995780633cf924a0146105ae5780633f4ba83a146105c657600080fd5b8063191655871161030d5780632f181f54116102e75780632f181f541461053057806332cb6b0c146105505780633488c0da14610566578063352b03f11461057957600080fd5b806319165587146104d057806323b872dd146104f05780632aff330a1461051057600080fd5b8063081812fc11610349578063081812fc14610441578063095ea7b31461047957806309890a111461049b57806318160ddd146104bb57600080fd5b8062fd4371146103bc57806301ffc9a7146103ef57806306fdde031461041f57600080fd5b366103b7577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b3480156103c857600080fd5b506103dc6103d7366004612f89565b610a77565b6040519081526020015b60405180910390f35b3480156103fb57600080fd5b5061040f61040a3660046130ff565b610b5d565b60405190151581526020016103e6565b34801561042b57600080fd5b50610434610baf565b6040516103e6919061333d565b34801561044d57600080fd5b5061046161045c3660046131a6565b610c41565b6040516001600160a01b0390911681526020016103e6565b34801561048557600080fd5b506104996104943660046130d3565b610cdb565b005b3480156104a757600080fd5b506104996104b63660046131a6565b610df1565b3480156104c757600080fd5b506016546103dc565b3480156104dc57600080fd5b506104996104eb366004612f89565b610f50565b3480156104fc57600080fd5b5061049961050b366004612fdf565b611121565b34801561051c57600080fd5b506103dc61052b366004612f89565b611152565b34801561053c57600080fd5b5061049961054b3660046131a6565b611218565b34801561055c57600080fd5b506103dc60115481565b610499610574366004613182565b61124d565b34801561058557600080fd5b5061040f610594366004612f89565b6114e9565b3480156105a557600080fd5b506007546103dc565b3480156105ba57600080fd5b5060155460ff166103dc565b3480156105d257600080fd5b506104996115d5565b3480156105e757600080fd5b506104996105f6366004612fdf565b61160f565b34801561060757600080fd5b50610499610616366004613139565b61162a565b34801561062757600080fd5b5060065460ff1661040f565b34801561063f57600080fd5b5061049961064e3660046131d8565b611671565b34801561065f57600080fd5b5061046161066e3660046131a6565b61176d565b34801561067f57600080fd5b5061040f61068e366004612f89565b6117e4565b34801561069f57600080fd5b506104346118ae565b3480156106b457600080fd5b5061040f6118bd565b3480156106c957600080fd5b506103dc6106d8366004612f89565b6118c8565b3480156106e957600080fd5b5061049961194f565b3480156106fe57600080fd5b5061049961070d366004612f89565b611989565b34801561071e57600080fd5b50610499611b3e565b34801561073357600080fd5b506017546103dc565b34801561074857600080fd5b506104616107573660046131a6565b611b76565b34801561076857600080fd5b5060065461010090046001600160a01b0316610461565b34801561078b57600080fd5b50610434611ba6565b6104996107a23660046131a6565b611bb5565b3480156107b357600080fd5b506103dc6107c2366004612f89565b6001600160a01b03166000908152600a602052604090205490565b3480156107e957600080fd5b506104996107f83660046130a0565b611d28565b34801561080957600080fd5b506019546103dc565b34801561081e57600080fd5b50610827611ded565b6040516103e691906132b8565b34801561084057600080fd5b5061049961084f366004613020565b611e4e565b34801561086057600080fd5b506103dc61086f366004612f89565b611e80565b34801561088057600080fd5b506014546103dc565b34801561089557600080fd5b5060195442101561040f565b3480156108ad57600080fd5b506104346108bc3660046131a6565b611e97565b3480156108cd57600080fd5b506103dc6108dc366004612f89565b6001600160a01b031660009081526009602052604090205490565b34801561090357600080fd5b5061040f611f65565b34801561091857600080fd5b50610921611f77565b6040516103e69190613305565b34801561093a57600080fd5b506103dc611fce565b34801561094f57600080fd5b5061049961095e3660046131fd565b611fe0565b34801561096f57600080fd5b5061040f61097e366004612f89565b612026565b34801561098f57600080fd5b506008546103dc565b3480156109a457600080fd5b506103dc60125481565b3480156109ba57600080fd5b506103dc6109c93660046131a6565b612040565b3480156109da57600080fd5b5061040f6109e9366004612fa6565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610a2357600080fd5b50610499610a323660046131a6565b612050565b348015610a4357600080fd5b50610499610a52366004612f89565b612154565b348015610a6357600080fd5b50610499610a72366004612f89565b6121f5565b600080805b600d54811015610b5657600c54600d80546001600160a01b039092169162fdd58e91879185908110610ab057610ab06135d5565b6000918252602090912001546040516001600160e01b031960e085901b1681526001600160a01b039092166004830152602482015260440160206040518083038186803b158015610b0057600080fd5b505afa158015610b14573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b3891906131bf565b610b42908361349b565b915080610b4e81613564565b915050610a7c565b5092915050565b60006001600160e01b031982166380ac58cd60e01b1480610b8e57506001600160e01b03198216635b5e139f60e01b145b80610ba957506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060008054610bbe90613529565b80601f0160208091040260200160405190810160405280929190818152602001828054610bea90613529565b8015610c375780601f10610c0c57610100808354040283529160200191610c37565b820191906000526020600020905b815481529060010190602001808311610c1a57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610cbf5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610ce68261176d565b9050806001600160a01b0316836001600160a01b03161415610d545760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610cb6565b336001600160a01b0382161480610d705750610d7081336109e9565b610de25760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610cb6565b610dec838361232d565b505050565b6006546001600160a01b03610100909104163314610e215760405162461bcd60e51b8152600401610cb6906133cc565b6000818152600e6020526040902054610ea157600d600081548110610e4857610e486135d5565b90600052602060002001548114610ea15760405162461bcd60e51b815260206004820152601a60248201527f446f6573206e6f7420657869737420696e20746865206c6973740000000000006044820152606401610cb6565b600d54600090610eb3906001906134e6565b6000838152600e6020526040812054600d8054939450909284908110610edb57610edb6135d5565b9060005260206000200154905080600d8381548110610efc57610efc6135d5565b6000918252602080832090910192909255828152600e9091526040808220849055858252812055600d805480610f3457610f346135bf565b6001900381819060005260206000200160009055905550505050565b6001600160a01b038116600090815260096020526040902054610fc45760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b6064820152608401610cb6565b600060085447610fd4919061349b565b6001600160a01b0383166000908152600a6020908152604080832054600754600990935290832054939450919261100b90856134c7565b61101591906134b3565b61101f91906134e6565b9050806110825760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b6064820152608401610cb6565b6001600160a01b0383166000908152600a60205260409020546110a690829061349b565b6001600160a01b0384166000908152600a60205260409020556008546110cd90829061349b565b6008556110da838261239b565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b61112b33826124b4565b6111475760405162461bcd60e51b8152600401610cb69061344a565b610dec8383836125ab565b600080805b600f54811015610b5657600f8181548110611174576111746135d5565b6000918252602090912001546040516370a0823160e01b81526001600160a01b038681166004830152909116906370a082319060240160206040518083038186803b1580156111c257600080fd5b505afa1580156111d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111fa91906131bf565b611204908361349b565b91508061121081613564565b915050611157565b6006546001600160a01b036101009091041633146112485760405162461bcd60e51b8152600401610cb6906133cc565b601955565b8061ffff1661126960135460125461274b90919063ffffffff16565b61128a6014546112848460165461274b90919063ffffffff16565b9061274b565b11156112fe5760405162461bcd60e51b815260206004820152603c60248201527f50726573616c652068617320736f6c64206f75742e20506c656173652077616960448201527f7420666f72207072696d6172792073616c6520746f20626567696e2e000000006064820152608401610cb6565b8161ffff166011546113218261128460145460165461274b90919063ffffffff16565b111561136f5760405162461bcd60e51b815260206004820181905260248201527f507572636861736520776f756c6420657863656564206d617820737570706c796044820152606401610cb6565b60065460ff16156113925760405162461bcd60e51b8152600401610cb6906133a2565b60155461ffff84169060ff168111156113bd5760405162461bcd60e51b8152600401610cb690613401565b8361ffff16346113cc82612040565b146114195760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610cb6565b611421611f65565b61146d5760405162461bcd60e51b815260206004820152601b60248201527f50726573616c6520686173206e6f7420737461727465642079657400000000006044820152606401610cb6565b6114756118bd565b6114d25760405162461bcd60e51b815260206004820152602860248201527f4163636f756e7420646f6573206e6f74206f776e204d7974684469766973696f6044820152676e20746f6b656e7360c01b6064820152608401610cb6565b6114e28561ffff1633600061275e565b5050505050565b6000805b600d548110156115cc57600c54600d80546000926001600160a01b03169162fdd58e9187919086908110611523576115236135d5565b6000918252602090912001546040516001600160e01b031960e085901b1681526001600160a01b039092166004830152602482015260440160206040518083038186803b15801561157357600080fd5b505afa158015611587573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115ab91906131bf565b11156115ba5750600192915050565b806115c481613564565b9150506114ed565b50600092915050565b6006546001600160a01b036101009091041633146116055760405162461bcd60e51b8152600401610cb6906133cc565b61160d6128fe565b565b610dec83838360405180602001604052806000815250611e4e565b6006546001600160a01b0361010090910416331461165a5760405162461bcd60e51b8152600401610cb6906133cc565b805161166d906018906020840190612e7a565b5050565b6006546001600160a01b036101009091041633146116a15760405162461bcd60e51b8152600401610cb6906133cc565b6016546014548311156116f65760405162461bcd60e51b815260206004820152601c60248201527f576f756c642065786365656420726573657276656420737570706c79000000006044820152606401610cb6565b601154611703848361274b565b11156117515760405162461bcd60e51b815260206004820152601c60248201527f576f756c642065786365656420726573657276656420737570706c79000000006044820152606401610cb6565b60145461175e9084612991565b601455610dec8383600161275e565b6000818152600260205260408120546001600160a01b031680610ba95760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610cb6565b6000805b600f548110156115cc576000600f8281548110611807576118076135d5565b6000918252602090912001546040516370a0823160e01b81526001600160a01b038681166004830152909116906370a082319060240160206040518083038186803b15801561185557600080fd5b505afa158015611869573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061188d91906131bf565b111561189c5750600192915050565b806118a681613564565b9150506117e8565b60606118b861299d565b905090565b60006118b833612026565b60006001600160a01b0382166119335760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610cb6565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b0361010090910416331461197f5760405162461bcd60e51b8152600401610cb6906133cc565b61160d60006129ac565b6006546001600160a01b036101009091041633146119b95760405162461bcd60e51b8152600401610cb6906133cc565b6001600160a01b038116600090815260106020526040902054611a5057600f6000815481106119ea576119ea6135d5565b6000918252602090912001546001600160a01b03828116911614611a505760405162461bcd60e51b815260206004820152601a60248201527f446f6573206e6f7420657869737420696e20746865206c6973740000000000006044820152606401610cb6565b600f54600090611a62906001906134e6565b6001600160a01b038316600090815260106020526040812054600f8054939450909284908110611a9457611a946135d5565b600091825260209091200154600f80546001600160a01b039092169250829184908110611ac357611ac36135d5565b600091825260208083209190910180546001600160a01b0319166001600160a01b039485161790558383168252601090526040808220859055918616815290812055600f805480611b1657611b166135bf565b600082815260209020810160001990810180546001600160a01b031916905501905550505050565b6006546001600160a01b03610100909104163314611b6e5760405162461bcd60e51b8152600401610cb6906133cc565b61160d612a06565b6000600b8281548110611b8b57611b8b6135d5565b6000918252602090912001546001600160a01b031692915050565b606060018054610bbe90613529565b80601154611bd48261128460145460165461274b90919063ffffffff16565b1115611c225760405162461bcd60e51b815260206004820181905260248201527f507572636861736520776f756c6420657863656564206d617820737570706c796044820152606401610cb6565b60065460ff1615611c455760405162461bcd60e51b8152600401610cb6906133a2565b601554829060ff16811115611c6c5760405162461bcd60e51b8152600401610cb690613401565b8234611c7782612040565b14611cc45760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610cb6565b601954421015611d165760405162461bcd60e51b815260206004820152601860248201527f53616c6520686173206e6f7420737461727465642079657400000000000000006044820152606401610cb6565b611d228433600061275e565b50505050565b6001600160a01b038216331415611d815760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610cb6565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6060600f805480602002602001604051908101604052809291908181526020018280548015610c3757602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611e27575050505050905090565b611e5833836124b4565b611e745760405162461bcd60e51b8152600401610cb69061344a565b611d2284848484612a5e565b6000610ba9611e8e83611152565b61128484610a77565b6000818152600260205260409020546060906001600160a01b0316611f165760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610cb6565b6000611f2061299d565b6000848152601b60205260409020549091508190611f3d90612a91565b604051602001611f4e92919061324c565b604051602081830303815290604052915050919050565b600042611f70611fce565b1115905090565b6060600d805480602002602001604051908101604052809291908181526020018280548015610c3757602002820191906000526020600020905b815481526020019060010190808311611fb1575050505050905090565b6000610e106019546118b891906134e6565b6006546001600160a01b036101009091041633146120105760405162461bcd60e51b8152600401610cb6906133cc565b6015805460ff191660ff92909216919091179055565b6000612031826114e9565b80610ba95750610ba9826117e4565b601754600090610ba99083612b8f565b6006546001600160a01b036101009091041633146120805760405162461bcd60e51b8152600401610cb6906133cc565b600d541580159061209d57506000818152600e6020526040902054155b1561211057600d6000815481106120b6576120b66135d5565b90600052602060002001548114156121105760405162461bcd60e51b815260206004820152601b60248201527f416c72656164792070726573656e7420696e20746865206c69737400000000006044820152606401610cb6565b600d80546000838152600e60205260408120829055600182018355919091527fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb50155565b6006546001600160a01b036101009091041633146121845760405162461bcd60e51b8152600401610cb6906133cc565b6001600160a01b0381166121e95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610cb6565b6121f2816129ac565b50565b6006546001600160a01b036101009091041633146122255760405162461bcd60e51b8152600401610cb6906133cc565b600f541580159061224c57506001600160a01b038116600090815260106020526040902054155b156122cc57600f600081548110612265576122656135d5565b6000918252602090912001546001600160a01b03828116911614156122cc5760405162461bcd60e51b815260206004820152601b60248201527f416c72656164792070726573656e7420696e20746865206c69737400000000006044820152606401610cb6565b600f80546001600160a01b039092166000818152601060205260408120849055600184018355919091527f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac80290910180546001600160a01b0319169091179055565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906123628261176d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b804710156123eb5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610cb6565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612438576040519150601f19603f3d011682016040523d82523d6000602084013e61243d565b606091505b5050905080610dec5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610cb6565b6000818152600260205260408120546001600160a01b031661252d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610cb6565b60006125388361176d565b9050806001600160a01b0316846001600160a01b031614806125735750836001600160a01b031661256884610c41565b6001600160a01b0316145b806125a357506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166125be8261176d565b6001600160a01b0316146126265760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610cb6565b6001600160a01b0382166126885760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610cb6565b61269360008261232d565b6001600160a01b03831660009081526003602052604081208054600192906126bc9084906134e6565b90915550506001600160a01b03821660009081526003602052604081208054600192906126ea90849061349b565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000612757828461349b565b9392505050565b604080514460208083019190915242828401524360608084019190915233901b6bffffffffffffffffffffffff1916608083015282518083036074018152609490920190925280519101206000821580156128345750601a546040516370a0823160e01b81526001600160a01b03868116600483015260009216906370a082319060240160206040518083038186803b1580156127fa57600080fd5b505afa15801561280e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061283291906131bf565b115b905060005b858110156128f657600160166000828254612854919061349b565b909155505060165460006128688583612b9b565b90506000841561289c57600a821015612883575060036128c2565b6014821015612894575060026128c2565b5060016128c2565b60058210156128ad575060036128c2565b600a8210156128be575060026128c2565b5060015b6000838152601b6020526040902060ff821690556128e08884612bde565b50505080806128ee90613564565b915050612839565b505050505050565b60065460ff166129475760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610cb6565b6006805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600061275782846134e6565b606060188054610bbe90613529565b600680546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60065460ff1615612a295760405162461bcd60e51b8152600401610cb6906133a2565b6006805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586129743390565b612a698484846125ab565b612a7584848484612bf8565b611d225760405162461bcd60e51b8152600401610cb690613350565b606081612ab55750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612adf5780612ac981613564565b9150612ad89050600a836134b3565b9150612ab9565b60008167ffffffffffffffff811115612afa57612afa6135eb565b6040519080825280601f01601f191660200182016040528015612b24576020820181803683370190505b5090505b84156125a357612b396001836134e6565b9150612b46600a8661357f565b612b5190603061349b565b60f81b818381518110612b6657612b666135d5565b60200101906001600160f81b031916908160001a905350612b88600a866134b3565b9450612b28565b600061275782846134c7565b600060c88383604051602001612bbb929190918252602082015260400190565b6040516020818303038152906040528051906020012060001c612757919061357f565b61166d828260405180602001604052806000815250612d05565b60006001600160a01b0384163b15612cfa57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612c3c90339089908890889060040161327b565b602060405180830381600087803b158015612c5657600080fd5b505af1925050508015612c86575060408051601f3d908101601f19168201909252612c839181019061311c565b60015b612ce0573d808015612cb4576040519150601f19603f3d011682016040523d82523d6000602084013e612cb9565b606091505b508051612cd85760405162461bcd60e51b8152600401610cb690613350565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506125a3565b506001949350505050565b612d0f8383612d38565b612d1c6000848484612bf8565b610dec5760405162461bcd60e51b8152600401610cb690613350565b6001600160a01b038216612d8e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610cb6565b6000818152600260205260409020546001600160a01b031615612df35760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610cb6565b6001600160a01b0382166000908152600360205260408120805460019290612e1c90849061349b565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054612e8690613529565b90600052602060002090601f016020900481019282612ea85760008555612eee565b82601f10612ec157805160ff1916838001178555612eee565b82800160010185558215612eee579182015b82811115612eee578251825591602001919060010190612ed3565b50612efa929150612efe565b5090565b5b80821115612efa5760008155600101612eff565b600067ffffffffffffffff80841115612f2e57612f2e6135eb565b604051601f8501601f19908116603f01168101908282118183101715612f5657612f566135eb565b81604052809350858152868686011115612f6f57600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215612f9b57600080fd5b813561275781613601565b60008060408385031215612fb957600080fd5b8235612fc481613601565b91506020830135612fd481613601565b809150509250929050565b600080600060608486031215612ff457600080fd5b8335612fff81613601565b9250602084013561300f81613601565b929592945050506040919091013590565b6000806000806080858703121561303657600080fd5b843561304181613601565b9350602085013561305181613601565b925060408501359150606085013567ffffffffffffffff81111561307457600080fd5b8501601f8101871361308557600080fd5b61309487823560208401612f13565b91505092959194509250565b600080604083850312156130b357600080fd5b82356130be81613601565b915060208301358015158114612fd457600080fd5b600080604083850312156130e657600080fd5b82356130f181613601565b946020939093013593505050565b60006020828403121561311157600080fd5b813561275781613616565b60006020828403121561312e57600080fd5b815161275781613616565b60006020828403121561314b57600080fd5b813567ffffffffffffffff81111561316257600080fd5b8201601f8101841361317357600080fd5b6125a384823560208401612f13565b60006020828403121561319457600080fd5b813561ffff8116811461275757600080fd5b6000602082840312156131b857600080fd5b5035919050565b6000602082840312156131d157600080fd5b5051919050565b600080604083850312156131eb57600080fd5b823591506020830135612fd481613601565b60006020828403121561320f57600080fd5b813560ff8116811461275757600080fd5b600081518084526132388160208601602086016134fd565b601f01601f19169290920160200192915050565b6000835161325e8184602088016134fd565b8351908301906132728183602088016134fd565b01949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906132ae90830184613220565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156132f95783516001600160a01b0316835292840192918401916001016132d4565b50909695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156132f957835183529284019291840191600101613321565b6020815260006127576020830184613220565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f43616e6e6f74206d696e74206d6f7265207468616e20313020746f6b656e7320604082015268617420612074696d6560b81b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600082198211156134ae576134ae613593565b500190565b6000826134c2576134c26135a9565b500490565b60008160001904831182151516156134e1576134e1613593565b500290565b6000828210156134f8576134f8613593565b500390565b60005b83811015613518578181015183820152602001613500565b83811115611d225750506000910152565b600181811c9082168061353d57607f821691505b6020821081141561355e57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561357857613578613593565b5060010190565b60008261358e5761358e6135a9565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146121f257600080fd5b6001600160e01b0319811681146121f257600080fdfea264697066735822122013faef456b460aeb777ca7e91811685fc9497b773eb1154131c2752ee4e4851464736f6c63430008060033697066733a2f2f516d6363566b6f424a6b78787a325a634a6a575a516b38617a447a575068387870625665735346565067575a43682f426f72656420417065205365656b696e6720596163687420436c75622049737375652023304f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572000000000000000000000000000000000000000000000000000000006117ef8800000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000140000000000000000000000000495f947276749ce646f68ac8c248420045cb7b5e000000000000000000000000bc4ca0eda7647a8ab7c2061c2e118a18a936f13d00000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000000030000000000000000000000009a8b3cd3043c6b9bd90aff51cf04d4442f550a99000000000000000000000000f5b8cccc0a59f529161e5311f3fcc5e4a2695ae00000000000000000000000001fcb4fb1c8c239cfde95c833fe5e3564d218733b00000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000055000000000000000000000000000000000000000000000000000000000000000858ff6950ecf6521729addc597f50d0405fdb26520000000000000100000000c858ff6950ecf6521729addc597f50d0405fdb26520000000000000300000001f458ff6950ecf6521729addc597f50d0405fdb265200000000000009000000014d58ff6950ecf6521729addc597f50d0405fdb26520000000000000a000000014d58ff6950ecf6521729addc597f50d0405fdb26520000000000000800000001bc58ff6950ecf6521729addc597f50d0405fdb26520000000000000e000000002158ff6950ecf6521729addc597f50d0405fdb26520000000000000b000000006458ff6950ecf6521729addc597f50d0405fdb265200000000000006000000014d
Deployed Bytecode
0x60806040526004361061036e5760003560e01c80638456cb59116101c6578063c87b56dd116100f7578063e33b7de311610095578063e985e9c51161006f578063e985e9c5146109ce578063ec29f25014610a17578063f2fde38b14610a37578063ffb1cfd814610a5757600080fd5b8063e33b7de314610983578063e353ee5014610998578063e6a72acf146109ae57600080fd5b8063dc1b2144116100d1578063dc1b21441461090c578063de8801e51461092e578063dfe8ae6714610943578063e31356d61461096357600080fd5b8063c87b56dd146108a1578063ce7c2ac2146108c1578063d5f52098146108f757600080fd5b8063a22cb46511610164578063b88d4fde1161013e578063b88d4fde14610834578063bfede2e914610854578063c38f761714610874578063c70299641461088957600080fd5b8063a22cb465146107dd578063ab0bcc41146107fd578063afd05eeb1461081257600080fd5b80638da5cb5b116101a05780638da5cb5b1461075c57806395d89b411461077f57806397304ced146107945780639852595c146107a757600080fd5b80638456cb59146107125780638559dff3146107275780638b83209b1461073c57600080fd5b80633a98ef39116102a05780636352211e1161023e5780636c0635ed116102185780636c0635ed146106a857806370a08231146106bd578063715018a6146106dd578063769363eb146106f257600080fd5b80636352211e14610653578063662d01f3146106735780636c0360eb1461069357600080fd5b806342842e0e1161027a57806342842e0e146105db57806355f804b3146105fb5780635c975abb1461061b578063631bbbba1461063357600080fd5b80633a98ef39146105995780633cf924a0146105ae5780633f4ba83a146105c657600080fd5b8063191655871161030d5780632f181f54116102e75780632f181f541461053057806332cb6b0c146105505780633488c0da14610566578063352b03f11461057957600080fd5b806319165587146104d057806323b872dd146104f05780632aff330a1461051057600080fd5b8063081812fc11610349578063081812fc14610441578063095ea7b31461047957806309890a111461049b57806318160ddd146104bb57600080fd5b8062fd4371146103bc57806301ffc9a7146103ef57806306fdde031461041f57600080fd5b366103b7577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b3480156103c857600080fd5b506103dc6103d7366004612f89565b610a77565b6040519081526020015b60405180910390f35b3480156103fb57600080fd5b5061040f61040a3660046130ff565b610b5d565b60405190151581526020016103e6565b34801561042b57600080fd5b50610434610baf565b6040516103e6919061333d565b34801561044d57600080fd5b5061046161045c3660046131a6565b610c41565b6040516001600160a01b0390911681526020016103e6565b34801561048557600080fd5b506104996104943660046130d3565b610cdb565b005b3480156104a757600080fd5b506104996104b63660046131a6565b610df1565b3480156104c757600080fd5b506016546103dc565b3480156104dc57600080fd5b506104996104eb366004612f89565b610f50565b3480156104fc57600080fd5b5061049961050b366004612fdf565b611121565b34801561051c57600080fd5b506103dc61052b366004612f89565b611152565b34801561053c57600080fd5b5061049961054b3660046131a6565b611218565b34801561055c57600080fd5b506103dc60115481565b610499610574366004613182565b61124d565b34801561058557600080fd5b5061040f610594366004612f89565b6114e9565b3480156105a557600080fd5b506007546103dc565b3480156105ba57600080fd5b5060155460ff166103dc565b3480156105d257600080fd5b506104996115d5565b3480156105e757600080fd5b506104996105f6366004612fdf565b61160f565b34801561060757600080fd5b50610499610616366004613139565b61162a565b34801561062757600080fd5b5060065460ff1661040f565b34801561063f57600080fd5b5061049961064e3660046131d8565b611671565b34801561065f57600080fd5b5061046161066e3660046131a6565b61176d565b34801561067f57600080fd5b5061040f61068e366004612f89565b6117e4565b34801561069f57600080fd5b506104346118ae565b3480156106b457600080fd5b5061040f6118bd565b3480156106c957600080fd5b506103dc6106d8366004612f89565b6118c8565b3480156106e957600080fd5b5061049961194f565b3480156106fe57600080fd5b5061049961070d366004612f89565b611989565b34801561071e57600080fd5b50610499611b3e565b34801561073357600080fd5b506017546103dc565b34801561074857600080fd5b506104616107573660046131a6565b611b76565b34801561076857600080fd5b5060065461010090046001600160a01b0316610461565b34801561078b57600080fd5b50610434611ba6565b6104996107a23660046131a6565b611bb5565b3480156107b357600080fd5b506103dc6107c2366004612f89565b6001600160a01b03166000908152600a602052604090205490565b3480156107e957600080fd5b506104996107f83660046130a0565b611d28565b34801561080957600080fd5b506019546103dc565b34801561081e57600080fd5b50610827611ded565b6040516103e691906132b8565b34801561084057600080fd5b5061049961084f366004613020565b611e4e565b34801561086057600080fd5b506103dc61086f366004612f89565b611e80565b34801561088057600080fd5b506014546103dc565b34801561089557600080fd5b5060195442101561040f565b3480156108ad57600080fd5b506104346108bc3660046131a6565b611e97565b3480156108cd57600080fd5b506103dc6108dc366004612f89565b6001600160a01b031660009081526009602052604090205490565b34801561090357600080fd5b5061040f611f65565b34801561091857600080fd5b50610921611f77565b6040516103e69190613305565b34801561093a57600080fd5b506103dc611fce565b34801561094f57600080fd5b5061049961095e3660046131fd565b611fe0565b34801561096f57600080fd5b5061040f61097e366004612f89565b612026565b34801561098f57600080fd5b506008546103dc565b3480156109a457600080fd5b506103dc60125481565b3480156109ba57600080fd5b506103dc6109c93660046131a6565b612040565b3480156109da57600080fd5b5061040f6109e9366004612fa6565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610a2357600080fd5b50610499610a323660046131a6565b612050565b348015610a4357600080fd5b50610499610a52366004612f89565b612154565b348015610a6357600080fd5b50610499610a72366004612f89565b6121f5565b600080805b600d54811015610b5657600c54600d80546001600160a01b039092169162fdd58e91879185908110610ab057610ab06135d5565b6000918252602090912001546040516001600160e01b031960e085901b1681526001600160a01b039092166004830152602482015260440160206040518083038186803b158015610b0057600080fd5b505afa158015610b14573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b3891906131bf565b610b42908361349b565b915080610b4e81613564565b915050610a7c565b5092915050565b60006001600160e01b031982166380ac58cd60e01b1480610b8e57506001600160e01b03198216635b5e139f60e01b145b80610ba957506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060008054610bbe90613529565b80601f0160208091040260200160405190810160405280929190818152602001828054610bea90613529565b8015610c375780601f10610c0c57610100808354040283529160200191610c37565b820191906000526020600020905b815481529060010190602001808311610c1a57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610cbf5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610ce68261176d565b9050806001600160a01b0316836001600160a01b03161415610d545760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610cb6565b336001600160a01b0382161480610d705750610d7081336109e9565b610de25760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610cb6565b610dec838361232d565b505050565b6006546001600160a01b03610100909104163314610e215760405162461bcd60e51b8152600401610cb6906133cc565b6000818152600e6020526040902054610ea157600d600081548110610e4857610e486135d5565b90600052602060002001548114610ea15760405162461bcd60e51b815260206004820152601a60248201527f446f6573206e6f7420657869737420696e20746865206c6973740000000000006044820152606401610cb6565b600d54600090610eb3906001906134e6565b6000838152600e6020526040812054600d8054939450909284908110610edb57610edb6135d5565b9060005260206000200154905080600d8381548110610efc57610efc6135d5565b6000918252602080832090910192909255828152600e9091526040808220849055858252812055600d805480610f3457610f346135bf565b6001900381819060005260206000200160009055905550505050565b6001600160a01b038116600090815260096020526040902054610fc45760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b6064820152608401610cb6565b600060085447610fd4919061349b565b6001600160a01b0383166000908152600a6020908152604080832054600754600990935290832054939450919261100b90856134c7565b61101591906134b3565b61101f91906134e6565b9050806110825760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b6064820152608401610cb6565b6001600160a01b0383166000908152600a60205260409020546110a690829061349b565b6001600160a01b0384166000908152600a60205260409020556008546110cd90829061349b565b6008556110da838261239b565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b61112b33826124b4565b6111475760405162461bcd60e51b8152600401610cb69061344a565b610dec8383836125ab565b600080805b600f54811015610b5657600f8181548110611174576111746135d5565b6000918252602090912001546040516370a0823160e01b81526001600160a01b038681166004830152909116906370a082319060240160206040518083038186803b1580156111c257600080fd5b505afa1580156111d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111fa91906131bf565b611204908361349b565b91508061121081613564565b915050611157565b6006546001600160a01b036101009091041633146112485760405162461bcd60e51b8152600401610cb6906133cc565b601955565b8061ffff1661126960135460125461274b90919063ffffffff16565b61128a6014546112848460165461274b90919063ffffffff16565b9061274b565b11156112fe5760405162461bcd60e51b815260206004820152603c60248201527f50726573616c652068617320736f6c64206f75742e20506c656173652077616960448201527f7420666f72207072696d6172792073616c6520746f20626567696e2e000000006064820152608401610cb6565b8161ffff166011546113218261128460145460165461274b90919063ffffffff16565b111561136f5760405162461bcd60e51b815260206004820181905260248201527f507572636861736520776f756c6420657863656564206d617820737570706c796044820152606401610cb6565b60065460ff16156113925760405162461bcd60e51b8152600401610cb6906133a2565b60155461ffff84169060ff168111156113bd5760405162461bcd60e51b8152600401610cb690613401565b8361ffff16346113cc82612040565b146114195760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610cb6565b611421611f65565b61146d5760405162461bcd60e51b815260206004820152601b60248201527f50726573616c6520686173206e6f7420737461727465642079657400000000006044820152606401610cb6565b6114756118bd565b6114d25760405162461bcd60e51b815260206004820152602860248201527f4163636f756e7420646f6573206e6f74206f776e204d7974684469766973696f6044820152676e20746f6b656e7360c01b6064820152608401610cb6565b6114e28561ffff1633600061275e565b5050505050565b6000805b600d548110156115cc57600c54600d80546000926001600160a01b03169162fdd58e9187919086908110611523576115236135d5565b6000918252602090912001546040516001600160e01b031960e085901b1681526001600160a01b039092166004830152602482015260440160206040518083038186803b15801561157357600080fd5b505afa158015611587573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115ab91906131bf565b11156115ba5750600192915050565b806115c481613564565b9150506114ed565b50600092915050565b6006546001600160a01b036101009091041633146116055760405162461bcd60e51b8152600401610cb6906133cc565b61160d6128fe565b565b610dec83838360405180602001604052806000815250611e4e565b6006546001600160a01b0361010090910416331461165a5760405162461bcd60e51b8152600401610cb6906133cc565b805161166d906018906020840190612e7a565b5050565b6006546001600160a01b036101009091041633146116a15760405162461bcd60e51b8152600401610cb6906133cc565b6016546014548311156116f65760405162461bcd60e51b815260206004820152601c60248201527f576f756c642065786365656420726573657276656420737570706c79000000006044820152606401610cb6565b601154611703848361274b565b11156117515760405162461bcd60e51b815260206004820152601c60248201527f576f756c642065786365656420726573657276656420737570706c79000000006044820152606401610cb6565b60145461175e9084612991565b601455610dec8383600161275e565b6000818152600260205260408120546001600160a01b031680610ba95760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610cb6565b6000805b600f548110156115cc576000600f8281548110611807576118076135d5565b6000918252602090912001546040516370a0823160e01b81526001600160a01b038681166004830152909116906370a082319060240160206040518083038186803b15801561185557600080fd5b505afa158015611869573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061188d91906131bf565b111561189c5750600192915050565b806118a681613564565b9150506117e8565b60606118b861299d565b905090565b60006118b833612026565b60006001600160a01b0382166119335760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610cb6565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b0361010090910416331461197f5760405162461bcd60e51b8152600401610cb6906133cc565b61160d60006129ac565b6006546001600160a01b036101009091041633146119b95760405162461bcd60e51b8152600401610cb6906133cc565b6001600160a01b038116600090815260106020526040902054611a5057600f6000815481106119ea576119ea6135d5565b6000918252602090912001546001600160a01b03828116911614611a505760405162461bcd60e51b815260206004820152601a60248201527f446f6573206e6f7420657869737420696e20746865206c6973740000000000006044820152606401610cb6565b600f54600090611a62906001906134e6565b6001600160a01b038316600090815260106020526040812054600f8054939450909284908110611a9457611a946135d5565b600091825260209091200154600f80546001600160a01b039092169250829184908110611ac357611ac36135d5565b600091825260208083209190910180546001600160a01b0319166001600160a01b039485161790558383168252601090526040808220859055918616815290812055600f805480611b1657611b166135bf565b600082815260209020810160001990810180546001600160a01b031916905501905550505050565b6006546001600160a01b03610100909104163314611b6e5760405162461bcd60e51b8152600401610cb6906133cc565b61160d612a06565b6000600b8281548110611b8b57611b8b6135d5565b6000918252602090912001546001600160a01b031692915050565b606060018054610bbe90613529565b80601154611bd48261128460145460165461274b90919063ffffffff16565b1115611c225760405162461bcd60e51b815260206004820181905260248201527f507572636861736520776f756c6420657863656564206d617820737570706c796044820152606401610cb6565b60065460ff1615611c455760405162461bcd60e51b8152600401610cb6906133a2565b601554829060ff16811115611c6c5760405162461bcd60e51b8152600401610cb690613401565b8234611c7782612040565b14611cc45760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610cb6565b601954421015611d165760405162461bcd60e51b815260206004820152601860248201527f53616c6520686173206e6f7420737461727465642079657400000000000000006044820152606401610cb6565b611d228433600061275e565b50505050565b6001600160a01b038216331415611d815760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610cb6565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6060600f805480602002602001604051908101604052809291908181526020018280548015610c3757602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611e27575050505050905090565b611e5833836124b4565b611e745760405162461bcd60e51b8152600401610cb69061344a565b611d2284848484612a5e565b6000610ba9611e8e83611152565b61128484610a77565b6000818152600260205260409020546060906001600160a01b0316611f165760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610cb6565b6000611f2061299d565b6000848152601b60205260409020549091508190611f3d90612a91565b604051602001611f4e92919061324c565b604051602081830303815290604052915050919050565b600042611f70611fce565b1115905090565b6060600d805480602002602001604051908101604052809291908181526020018280548015610c3757602002820191906000526020600020905b815481526020019060010190808311611fb1575050505050905090565b6000610e106019546118b891906134e6565b6006546001600160a01b036101009091041633146120105760405162461bcd60e51b8152600401610cb6906133cc565b6015805460ff191660ff92909216919091179055565b6000612031826114e9565b80610ba95750610ba9826117e4565b601754600090610ba99083612b8f565b6006546001600160a01b036101009091041633146120805760405162461bcd60e51b8152600401610cb6906133cc565b600d541580159061209d57506000818152600e6020526040902054155b1561211057600d6000815481106120b6576120b66135d5565b90600052602060002001548114156121105760405162461bcd60e51b815260206004820152601b60248201527f416c72656164792070726573656e7420696e20746865206c69737400000000006044820152606401610cb6565b600d80546000838152600e60205260408120829055600182018355919091527fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb50155565b6006546001600160a01b036101009091041633146121845760405162461bcd60e51b8152600401610cb6906133cc565b6001600160a01b0381166121e95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610cb6565b6121f2816129ac565b50565b6006546001600160a01b036101009091041633146122255760405162461bcd60e51b8152600401610cb6906133cc565b600f541580159061224c57506001600160a01b038116600090815260106020526040902054155b156122cc57600f600081548110612265576122656135d5565b6000918252602090912001546001600160a01b03828116911614156122cc5760405162461bcd60e51b815260206004820152601b60248201527f416c72656164792070726573656e7420696e20746865206c69737400000000006044820152606401610cb6565b600f80546001600160a01b039092166000818152601060205260408120849055600184018355919091527f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac80290910180546001600160a01b0319169091179055565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906123628261176d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b804710156123eb5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610cb6565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612438576040519150601f19603f3d011682016040523d82523d6000602084013e61243d565b606091505b5050905080610dec5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610cb6565b6000818152600260205260408120546001600160a01b031661252d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610cb6565b60006125388361176d565b9050806001600160a01b0316846001600160a01b031614806125735750836001600160a01b031661256884610c41565b6001600160a01b0316145b806125a357506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166125be8261176d565b6001600160a01b0316146126265760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610cb6565b6001600160a01b0382166126885760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610cb6565b61269360008261232d565b6001600160a01b03831660009081526003602052604081208054600192906126bc9084906134e6565b90915550506001600160a01b03821660009081526003602052604081208054600192906126ea90849061349b565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000612757828461349b565b9392505050565b604080514460208083019190915242828401524360608084019190915233901b6bffffffffffffffffffffffff1916608083015282518083036074018152609490920190925280519101206000821580156128345750601a546040516370a0823160e01b81526001600160a01b03868116600483015260009216906370a082319060240160206040518083038186803b1580156127fa57600080fd5b505afa15801561280e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061283291906131bf565b115b905060005b858110156128f657600160166000828254612854919061349b565b909155505060165460006128688583612b9b565b90506000841561289c57600a821015612883575060036128c2565b6014821015612894575060026128c2565b5060016128c2565b60058210156128ad575060036128c2565b600a8210156128be575060026128c2565b5060015b6000838152601b6020526040902060ff821690556128e08884612bde565b50505080806128ee90613564565b915050612839565b505050505050565b60065460ff166129475760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610cb6565b6006805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600061275782846134e6565b606060188054610bbe90613529565b600680546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60065460ff1615612a295760405162461bcd60e51b8152600401610cb6906133a2565b6006805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586129743390565b612a698484846125ab565b612a7584848484612bf8565b611d225760405162461bcd60e51b8152600401610cb690613350565b606081612ab55750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612adf5780612ac981613564565b9150612ad89050600a836134b3565b9150612ab9565b60008167ffffffffffffffff811115612afa57612afa6135eb565b6040519080825280601f01601f191660200182016040528015612b24576020820181803683370190505b5090505b84156125a357612b396001836134e6565b9150612b46600a8661357f565b612b5190603061349b565b60f81b818381518110612b6657612b666135d5565b60200101906001600160f81b031916908160001a905350612b88600a866134b3565b9450612b28565b600061275782846134c7565b600060c88383604051602001612bbb929190918252602082015260400190565b6040516020818303038152906040528051906020012060001c612757919061357f565b61166d828260405180602001604052806000815250612d05565b60006001600160a01b0384163b15612cfa57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612c3c90339089908890889060040161327b565b602060405180830381600087803b158015612c5657600080fd5b505af1925050508015612c86575060408051601f3d908101601f19168201909252612c839181019061311c565b60015b612ce0573d808015612cb4576040519150601f19603f3d011682016040523d82523d6000602084013e612cb9565b606091505b508051612cd85760405162461bcd60e51b8152600401610cb690613350565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506125a3565b506001949350505050565b612d0f8383612d38565b612d1c6000848484612bf8565b610dec5760405162461bcd60e51b8152600401610cb690613350565b6001600160a01b038216612d8e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610cb6565b6000818152600260205260409020546001600160a01b031615612df35760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610cb6565b6001600160a01b0382166000908152600360205260408120805460019290612e1c90849061349b565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054612e8690613529565b90600052602060002090601f016020900481019282612ea85760008555612eee565b82601f10612ec157805160ff1916838001178555612eee565b82800160010185558215612eee579182015b82811115612eee578251825591602001919060010190612ed3565b50612efa929150612efe565b5090565b5b80821115612efa5760008155600101612eff565b600067ffffffffffffffff80841115612f2e57612f2e6135eb565b604051601f8501601f19908116603f01168101908282118183101715612f5657612f566135eb565b81604052809350858152868686011115612f6f57600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215612f9b57600080fd5b813561275781613601565b60008060408385031215612fb957600080fd5b8235612fc481613601565b91506020830135612fd481613601565b809150509250929050565b600080600060608486031215612ff457600080fd5b8335612fff81613601565b9250602084013561300f81613601565b929592945050506040919091013590565b6000806000806080858703121561303657600080fd5b843561304181613601565b9350602085013561305181613601565b925060408501359150606085013567ffffffffffffffff81111561307457600080fd5b8501601f8101871361308557600080fd5b61309487823560208401612f13565b91505092959194509250565b600080604083850312156130b357600080fd5b82356130be81613601565b915060208301358015158114612fd457600080fd5b600080604083850312156130e657600080fd5b82356130f181613601565b946020939093013593505050565b60006020828403121561311157600080fd5b813561275781613616565b60006020828403121561312e57600080fd5b815161275781613616565b60006020828403121561314b57600080fd5b813567ffffffffffffffff81111561316257600080fd5b8201601f8101841361317357600080fd5b6125a384823560208401612f13565b60006020828403121561319457600080fd5b813561ffff8116811461275757600080fd5b6000602082840312156131b857600080fd5b5035919050565b6000602082840312156131d157600080fd5b5051919050565b600080604083850312156131eb57600080fd5b823591506020830135612fd481613601565b60006020828403121561320f57600080fd5b813560ff8116811461275757600080fd5b600081518084526132388160208601602086016134fd565b601f01601f19169290920160200192915050565b6000835161325e8184602088016134fd565b8351908301906132728183602088016134fd565b01949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906132ae90830184613220565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156132f95783516001600160a01b0316835292840192918401916001016132d4565b50909695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156132f957835183529284019291840191600101613321565b6020815260006127576020830184613220565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f43616e6e6f74206d696e74206d6f7265207468616e20313020746f6b656e7320604082015268617420612074696d6560b81b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600082198211156134ae576134ae613593565b500190565b6000826134c2576134c26135a9565b500490565b60008160001904831182151516156134e1576134e1613593565b500290565b6000828210156134f8576134f8613593565b500390565b60005b83811015613518578181015183820152602001613500565b83811115611d225750506000910152565b600181811c9082168061353d57607f821691505b6020821081141561355e57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561357857613578613593565b5060010190565b60008261358e5761358e6135a9565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146121f257600080fd5b6001600160e01b0319811681146121f257600080fdfea264697066735822122013faef456b460aeb777ca7e91811685fc9497b773eb1154131c2752ee4e4851464736f6c63430008060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000006117ef8800000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000140000000000000000000000000495f947276749ce646f68ac8c248420045cb7b5e000000000000000000000000bc4ca0eda7647a8ab7c2061c2e118a18a936f13d00000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000000030000000000000000000000009a8b3cd3043c6b9bd90aff51cf04d4442f550a99000000000000000000000000f5b8cccc0a59f529161e5311f3fcc5e4a2695ae00000000000000000000000001fcb4fb1c8c239cfde95c833fe5e3564d218733b00000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000055000000000000000000000000000000000000000000000000000000000000000858ff6950ecf6521729addc597f50d0405fdb26520000000000000100000000c858ff6950ecf6521729addc597f50d0405fdb26520000000000000300000001f458ff6950ecf6521729addc597f50d0405fdb265200000000000009000000014d58ff6950ecf6521729addc597f50d0405fdb26520000000000000a000000014d58ff6950ecf6521729addc597f50d0405fdb26520000000000000800000001bc58ff6950ecf6521729addc597f50d0405fdb26520000000000000e000000002158ff6950ecf6521729addc597f50d0405fdb26520000000000000b000000006458ff6950ecf6521729addc597f50d0405fdb265200000000000006000000014d
-----Decoded View---------------
Arg [0] : saleStart_ (uint256): 1628958600
Arg [1] : payees (address[]): 0x9a8b3Cd3043c6B9bD90AfF51cF04D4442F550A99,0xF5B8CCCc0A59F529161E5311f3FCC5E4a2695aE0,0x1fcb4Fb1c8C239CfDE95c833fE5e3564d218733b
Arg [2] : paymentShares (uint256[]): 5,10,85
Arg [3] : openseaStorefrontAddress (address): 0x495f947276749Ce646f68AC8c248420045cb7b5e
Arg [4] : boredApesAddress (address): 0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D
Arg [5] : openseaMythDivisionTokens (uint256[]): 40254803541963107840514820190966435484567012809395824502773880162908763062472,40254803541963107840514820190966435484567012809395824502773880165107786318324,40254803541963107840514820190966435484567012809395824502773880171704856084813,40254803541963107840514820190966435484567012809395824502773880172804367712589,40254803541963107840514820190966435484567012809395824502773880170605344457148,40254803541963107840514820190966435484567012809395824502773880177202414223393,40254803541963107840514820190966435484567012809395824502773880173903879340132,40254803541963107840514820190966435484567012809395824502773880168406321201485
-----Encoded View---------------
23 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000000000000006117ef88
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [3] : 000000000000000000000000495f947276749ce646f68ac8c248420045cb7b5e
Arg [4] : 000000000000000000000000bc4ca0eda7647a8ab7c2061c2e118a18a936f13d
Arg [5] : 00000000000000000000000000000000000000000000000000000000000001c0
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [7] : 0000000000000000000000009a8b3cd3043c6b9bd90aff51cf04d4442f550a99
Arg [8] : 000000000000000000000000f5b8cccc0a59f529161e5311f3fcc5e4a2695ae0
Arg [9] : 0000000000000000000000001fcb4fb1c8c239cfde95c833fe5e3564d218733b
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [12] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000055
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [15] : 58ff6950ecf6521729addc597f50d0405fdb26520000000000000100000000c8
Arg [16] : 58ff6950ecf6521729addc597f50d0405fdb26520000000000000300000001f4
Arg [17] : 58ff6950ecf6521729addc597f50d0405fdb265200000000000009000000014d
Arg [18] : 58ff6950ecf6521729addc597f50d0405fdb26520000000000000a000000014d
Arg [19] : 58ff6950ecf6521729addc597f50d0405fdb26520000000000000800000001bc
Arg [20] : 58ff6950ecf6521729addc597f50d0405fdb26520000000000000e0000000021
Arg [21] : 58ff6950ecf6521729addc597f50d0405fdb26520000000000000b0000000064
Arg [22] : 58ff6950ecf6521729addc597f50d0405fdb265200000000000006000000014d
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.