ERC-721
Overview
Max Total Supply
123 SHIBPUPS
Holders
55
Total Transfers
-
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
ShibPixelPups
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
Yes with 2000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.13; import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@rari-capital/solmate/src/tokens/ERC721.sol"; /** * @title MintSchedule * @author 0xMekhu * @dev Mint schedule struct for keeping track of price, {cadence} (mints per schedule) and how many {rounds} occur * @notice */ struct MintSchedule { uint256 price; uint256 cadence; uint256 rounds; } /** * @title Recipient * @author 0xMekhu * @dev Used to keep track of airdrop recipients * @notice */ struct Recipient { uint256 tokenId; uint256 timestamp; address recipient; address referrer; } /** * @title PixelPups NFT * @author 0xMekhu * @notice A communtiy driven NFT project made for $SHIB token supporters */ contract ShibPixelPups is ERC721, Ownable, Pausable { using Counters for Counters.Counter; /// @notice Max supply of Pixel Pups uint256 public constant MAX_SUPPLY = 42069; uint256 public constant MINT_PRICE = 6500000000000000000000000; /// @notice Max number of price feeds for randomization uint256 private constant MAX_PRICE_FEEDS = 6; /// @notice Track current number of mints, starts with 1 Counters.Counter private _mintCounter; /// @notice Track current mint schedules as minting progresses Counters.Counter private _mintScheduleCounter; /// @notice Tracks total mint schedules. Setup as a Counter to allow for dynamic progressive games. Counters.Counter private _totalMintScheduleCounter; /// @notice Tracks current round of current mint schedule Counters.Counter private _roundCounter; /// @notice Tracks total rounds completed Counters.Counter private _totalRoundCounter; /// @notice Tracks total existing price feeds Counters.Counter private _totalPriceFeedCounter; /// @notice Token contract for burning ERC20Burnable private _burnToken; address private _burnTokenAddress; mapping(uint256 => AggregatorV3Interface) private _priceFeeds; mapping(uint256 => MintSchedule) private _mintSchedules; /// @notice Keep track of selected recipients for each round mapping(uint256 => Recipient) private _recipients; /// @dev Referrers can only recieve commission one time per {tokenId} /// @notice Keep track of {tokenId} purchases that are purchased through PupPass referrals mapping(uint256 => address) private _referrers; /// @notice Owner controlled anti-cheat nonce uint256 private _antiCheatNonce = 1; /// @notice Community controlled anti-cheat nonce uint256 private _communityAntiCheatNonce = 1; constructor(address burnTokenAddress, address[] memory priceFeeds) ERC721("SHIB PIXEL PUPS", "SHIBPUPS") { /// @notice 69 {cadence} * 1 {rounds} = 69 _addMintSchedule(MINT_PRICE, 69, 1); /// @notice 50 {cadence} * 840 {rounds} = 42,000 + 69 = 42,069 {MAX_SUPPLY} _addMintSchedule(MINT_PRICE, 50, 840); /// @notice Start minting at 1 to reduce gas fees for first minter _mintCounter.increment(); _burnTokenAddress = burnTokenAddress; _burnToken = ERC20Burnable(_burnTokenAddress); /// @dev Duplicative but prevents extra gas wasted require(priceFeeds.length <= MAX_PRICE_FEEDS, "Max price feeds hit"); for (uint256 i = 0; i < priceFeeds.length; i = _unsafeIncrement(i)) { _addPriceFeed(priceFeeds[i]); } } function _addMintSchedule( uint256 price, uint256 cadence, uint256 rounds ) private onlyOwner { _mintSchedules[_totalMintScheduleCounter.current()] = MintSchedule( price, cadence, rounds ); _totalMintScheduleCounter.increment(); } function _addPriceFeed(address priceFeedAddress) private onlyOwner { require( _totalPriceFeedCounter.current() < MAX_PRICE_FEEDS, "Max price feeds hit" ); _priceFeeds[_totalPriceFeedCounter.current()] = AggregatorV3Interface( priceFeedAddress ); (, int256 price, uint256 timestamp, , ) = _priceFeeds[ _totalPriceFeedCounter.current() ].latestRoundData(); require(price != 0, "Invalid AggregatorV3 address"); _totalPriceFeedCounter.increment(); } // #region Public views function getRecipientTokenByRound(uint256 index) public view returns (uint256) { return _recipients[index].tokenId; } function getRecipientAddressByRound(uint256 index) public view returns (address) { return _recipients[index].recipient; } function getRecipientInfoByRound(uint256 index) public view returns (Recipient memory) { return _recipients[index]; } function getTotalCompletedRounds() public view returns (uint256) { return _totalRoundCounter.current(); } function getTotalSchedules() public view returns (uint256) { return _totalMintScheduleCounter.current(); } function totalSupply() public view returns (uint256) { return _mintCounter.current() - 1; } function getMintsRemaining() public view returns (uint256) { return MAX_SUPPLY - totalSupply(); } function getCurrentSchedule() public view returns (uint256) { return _mintScheduleCounter.current(); } function getCurrentPool() public view returns (uint256) { return getPoolByIndex(getCurrentSchedule()); } function getPoolByIndex(uint256 index) public view returns (uint256) { return _mintSchedules[index].cadence * _mintSchedules[index].price; } // #endregion // #region Public mint methods function mint(uint256 count, address referrer) external whenNotPaused returns (uint256) { return _mintTo(msg.sender, count, referrer); } function gift( address receiver, uint256 count, address referrer ) external whenNotPaused returns (uint256) { return _mintTo(receiver, count, referrer); } // #endregion function _mintTo( address receiver, uint256 count, address referrer ) internal returns (uint256) { require(count > 0 && count <= 5, "Count must be between 1 and 5"); require(totalSupply() <= MAX_SUPPLY, "MAX_SUPPLY hit"); require(totalSupply() + count <= MAX_SUPPLY, "MAX_SUPPLY exceeded"); uint256 total = _mintSchedules[getCurrentSchedule()].price * count; require(_burnToken.balanceOf(msg.sender) >= total, "Invalid balance"); require( _burnToken.allowance(msg.sender, address(this)) >= total, "Invalid allowance" ); _burnToken.transferFrom(msg.sender, address(this), total); // Burn half uint256 totalBurnAmount = (total * 40) / 100; _burnToken.burn(totalBurnAmount); for (uint256 i = 0; i < count; i = _unsafeIncrement(i)) { _safeMint(receiver, _mintCounter.current()); if (referrer != address(0)) { _referrers[_mintCounter.current()] = referrer; } // New round, select recipient if ( _mintScheduleCounter.current() < _totalMintScheduleCounter.current() && (_mintCounter.current() - _sumCompletedRounds()) % _mintSchedules[_mintScheduleCounter.current()].cadence == 0 ) { uint256 selectedTokenId = _selectTokenId( _mintCounter.current() ); _recipients[_totalRoundCounter.current()] = Recipient( selectedTokenId, block.timestamp, this.ownerOf(selectedTokenId), _referrers[selectedTokenId] ); uint256 currentPool = getCurrentPool(); // Delete referrer for selected tokenId delete _referrers[selectedTokenId]; // New MintSchedule if ( _roundCounter.current() == _mintSchedules[_mintScheduleCounter.current()].rounds - 1 ) { _mintScheduleCounter.increment(); _roundCounter.reset(); } else { _roundCounter.increment(); } if ( _recipients[_totalRoundCounter.current()].referrer != address(0) ) { // 40% of total * 85% _burnToken.transfer( _recipients[_totalRoundCounter.current()].recipient, ((((currentPool * 40) / 100) * 85) / 100) ); // 40% of total * 15% _burnToken.transfer( _recipients[_totalRoundCounter.current()].referrer, ((((currentPool * 40) / 100) * 15) / 100) ); } else { // 40% of total _burnToken.transfer( _recipients[_totalRoundCounter.current()].recipient, ((currentPool * 40) / 100) ); } _totalRoundCounter.increment(); } _mintCounter.increment(); } return _totalRoundCounter.current() > 0 ? _recipients[_totalRoundCounter.current() - 1].tokenId : 0; } function _sumCompletedRounds() private view returns (uint256) { uint256 aggregateTotal; if (_mintScheduleCounter.current() > 0) { for ( uint256 i = 0; i < _mintScheduleCounter.current(); i = _unsafeIncrement(i) ) { unchecked { aggregateTotal = aggregateTotal + (_mintSchedules[i].cadence * _mintSchedules[i].rounds); } } } return aggregateTotal; } function _selectTokenId(uint256 maxValue) private view returns (uint256) { return (uint256((_random() % maxValue) + 1)); } function _unsafeIncrement(uint256 x) private pure returns (uint256) { unchecked { return x + 1; } } function _random() private view returns (uint256) { (, int256 priceSeed0, uint256 timestampSeed0, , ) = _priceFeeds[ (block.timestamp + block.number + gasleft()) % _totalPriceFeedCounter.current() ].latestRoundData(); (, int256 priceSeed1, uint256 timestampSeed1, , ) = _priceFeeds[ (block.timestamp + uint256(priceSeed0) + block.number + gasleft()) % _totalPriceFeedCounter.current() ].latestRoundData(); uint256 seed = uint256( keccak256( abi.encodePacked( block.timestamp + block.difficulty + (( uint256(keccak256(abi.encodePacked(block.coinbase))) ) / (block.timestamp)) + gasleft() + _mintCounter.current() + ((uint256(priceSeed0) * timestampSeed1) / (block.timestamp)) + ((uint256(priceSeed1) * timestampSeed0) / (block.timestamp)) + ((uint256(priceSeed0) * _antiCheatNonce) / (block.timestamp)) + ((uint256(priceSeed1) * _communityAntiCheatNonce) / (block.timestamp)) + ((timestampSeed1 * _antiCheatNonce) / (block.timestamp)) + ((timestampSeed0 * _communityAntiCheatNonce) / (block.timestamp)) + ((uint256(keccak256(abi.encodePacked(msg.sender)))) / (block.timestamp)) + block.number ) ) ); return (seed - (seed / _mintCounter.current())); } // #region Anti-cheat functionality function setAntiCheatNonce(uint256 nonce) external onlyOwner { require(totalSupply() != MAX_SUPPLY, "Max supply hit"); require(nonce > 0, "Nonce must be greater than zero"); _antiCheatNonce = nonce; } function setCommunityAntiCheatNonce(uint256 nonce) external { require(totalSupply() != MAX_SUPPLY, "Max supply hit"); require( _mintCounter.current() % _mintSchedules[_mintScheduleCounter.current()].cadence < _mintSchedules[_mintScheduleCounter.current()].cadence - 10, "Too close to round end" ); require(nonce > 0, "Nonce must be greater than zero"); _communityAntiCheatNonce = nonce; } // #endregion // #region Locking functionality function lock() external onlyOwner { _pause(); } function unlock() external onlyOwner { _unpause(); } // #endregion // #region Withdrawal functions function withdraw() external onlyOwner { (bool success, ) = owner().call{value: address(this).balance}(""); require(success, "Withdraw failed"); } function withdrawBurnToken() external onlyOwner { require( _burnToken.balanceOf(address(this)) > 0, "Insufficient balance" ); /// @dev Calculate the current round pool to prevent community funds inadvertantly being pulled out by owner uint256 reserved = totalSupply() < MAX_SUPPLY ? ((totalSupply() - _sumCompletedRounds()) * _mintSchedules[getCurrentSchedule()].price * 80) / 100 : 0; require( _burnToken.balanceOf(address(this)) > reserved, "Balance must be greater than reserved balance" ); bool success = _burnToken.transfer( address(owner()), _burnToken.balanceOf(address(this)) - reserved ); require(success, "Withdraw failed"); } function withdrawERC20(address tokenContract) external onlyOwner { require( address(tokenContract) != address(_burnTokenAddress), "Cannot withdraw burn token from this method" ); bool success = IERC20(tokenContract).transfer( address(owner()), IERC20(tokenContract).balanceOf(address(this)) ); require(success, "Withdraw failed"); } // #endregion function baseTokenURI() public pure returns (string memory) { return "https://pixelpups-api.shibtoken.art/api/traits/"; } function tokenURI(uint256 _tokenId) public pure override returns (string memory) { return string( abi.encodePacked(baseTokenURI(), Strings.toString(_tokenId)) ); } }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; /// @notice Modern, minimalist, and gas efficient ERC-721 implementation. /// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC721.sol) /// @dev Note that balanceOf does not revert if passed the zero address, in defiance of the ERC. abstract contract ERC721 { /*/////////////////////////////////////////////////////////////// EVENTS //////////////////////////////////////////////////////////////*/ event Transfer(address indexed from, address indexed to, uint256 indexed id); event Approval(address indexed owner, address indexed spender, uint256 indexed id); event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /*/////////////////////////////////////////////////////////////// METADATA STORAGE/LOGIC //////////////////////////////////////////////////////////////*/ string public name; string public symbol; function tokenURI(uint256 id) public view virtual returns (string memory); /*/////////////////////////////////////////////////////////////// ERC721 STORAGE //////////////////////////////////////////////////////////////*/ mapping(address => uint256) public balanceOf; mapping(uint256 => address) public ownerOf; mapping(uint256 => address) public getApproved; mapping(address => mapping(address => bool)) public isApprovedForAll; /*/////////////////////////////////////////////////////////////// CONSTRUCTOR //////////////////////////////////////////////////////////////*/ constructor(string memory _name, string memory _symbol) { name = _name; symbol = _symbol; } /*/////////////////////////////////////////////////////////////// ERC721 LOGIC //////////////////////////////////////////////////////////////*/ function approve(address spender, uint256 id) public virtual { address owner = ownerOf[id]; require(msg.sender == owner || isApprovedForAll[owner][msg.sender], "NOT_AUTHORIZED"); getApproved[id] = spender; emit Approval(owner, spender, id); } function setApprovalForAll(address operator, bool approved) public virtual { isApprovedForAll[msg.sender][operator] = approved; emit ApprovalForAll(msg.sender, operator, approved); } function transferFrom( address from, address to, uint256 id ) public virtual { require(from == ownerOf[id], "WRONG_FROM"); require(to != address(0), "INVALID_RECIPIENT"); require( msg.sender == from || msg.sender == getApproved[id] || isApprovedForAll[from][msg.sender], "NOT_AUTHORIZED" ); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. unchecked { balanceOf[from]--; balanceOf[to]++; } ownerOf[id] = to; delete getApproved[id]; emit Transfer(from, to, id); } function safeTransferFrom( address from, address to, uint256 id ) public virtual { transferFrom(from, to, id); require( to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, "") == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT" ); } function safeTransferFrom( address from, address to, uint256 id, bytes memory data ) public virtual { transferFrom(from, to, id); require( to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, data) == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT" ); } /*/////////////////////////////////////////////////////////////// ERC165 LOGIC //////////////////////////////////////////////////////////////*/ function supportsInterface(bytes4 interfaceId) public pure virtual returns (bool) { return interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165 interfaceId == 0x80ac58cd || // ERC165 Interface ID for ERC721 interfaceId == 0x5b5e139f; // ERC165 Interface ID for ERC721Metadata } /*/////////////////////////////////////////////////////////////// INTERNAL MINT/BURN LOGIC //////////////////////////////////////////////////////////////*/ function _mint(address to, uint256 id) internal virtual { require(to != address(0), "INVALID_RECIPIENT"); require(ownerOf[id] == address(0), "ALREADY_MINTED"); // Counter overflow is incredibly unrealistic. unchecked { balanceOf[to]++; } ownerOf[id] = to; emit Transfer(address(0), to, id); } function _burn(uint256 id) internal virtual { address owner = ownerOf[id]; require(ownerOf[id] != address(0), "NOT_MINTED"); // Ownership check above ensures no underflow. unchecked { balanceOf[owner]--; } delete ownerOf[id]; delete getApproved[id]; emit Transfer(owner, address(0), id); } /*/////////////////////////////////////////////////////////////// INTERNAL SAFE MINT LOGIC //////////////////////////////////////////////////////////////*/ function _safeMint(address to, uint256 id) internal virtual { _mint(to, id); require( to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, "") == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT" ); } function _safeMint( address to, uint256 id, bytes memory data ) internal virtual { _mint(to, id); require( to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, data) == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT" ); } } /// @notice A generic interface for a contract which properly accepts ERC721 tokens. /// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC721.sol) interface ERC721TokenReceiver { function onERC721Received( address operator, address from, uint256 id, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) 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 // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/ERC20Burnable.sol) pragma solidity ^0.8.0; import "../ERC20.sol"; import "../../../utils/Context.sol"; /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public virtual { uint256 currentAllowance = allowance(account, _msgSender()); require(currentAllowance >= amount, "ERC20: burn amount exceeds allowance"); unchecked { _approve(account, _msgSender(), currentAllowance - amount); } _burn(account, amount); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - amount); } return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/Pausable.sol) 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 // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface AggregatorV3Interface { function decimals() external view returns (uint8); function description() external view returns (string memory); function version() external view returns (uint256); // getRoundData and latestRoundData should both raise "No data present" // if they do not have data to report, instead of returning unset values // which could be misinterpreted as actual reported values. function getRoundData(uint80 _roundId) external view returns ( uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound ); function latestRoundData() external view returns ( uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound ); }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 2000 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"burnTokenAddress","type":"address"},{"internalType":"address[]","name":"priceFeeds","type":"address[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":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":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentPool","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentSchedule","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMintsRemaining","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getPoolByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRecipientAddressByRound","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRecipientInfoByRound","outputs":[{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"address","name":"referrer","type":"address"}],"internalType":"struct Recipient","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRecipientTokenByRound","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalCompletedRounds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalSchedules","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"count","type":"uint256"},{"internalType":"address","name":"referrer","type":"address"}],"name":"gift","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"},{"internalType":"address","name":"referrer","type":"address"}],"name":"mint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","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":"","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"name":"setAntiCheatNonce","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"name":"setCommunityAntiCheatNonce","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","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":"pure","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":"id","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawBurnToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenContract","type":"address"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052600160135560016014553480156200001b57600080fd5b50604051620039e5380380620039e58339810160408190526200003e91620005f9565b604080518082018252600f81526e5348494220504958454c205055505360881b602080830191825283518085019094526008845267534849425055505360c01b908401528151919291620000959160009162000520565b508051620000ab90600190602084019062000520565b505050620000c8620000c2620001e660201b60201c565b620001ea565b6006805460ff60a01b19169055620000ef6a05606db4c0340896800000604560016200023c565b6200010a6a05606db4c034089680000060326103486200023c565b6200012160076200030860201b6200197c1760201c565b600e80546001600160a01b0384166001600160a01b03199182168117909255600d805490911690911790558051600610156200019a5760405162461bcd60e51b815260206004820152601360248201527213585e081c1c9a58d948199959591cc81a1a5d606a1b60448201526064015b60405180910390fd5b60005b8151811015620001dd57620001d4828281518110620001c057620001c0620006e2565b60200260200101516200031160201b60201c565b6001016200019d565b505050620007a1565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6006546001600160a01b03163314620002875760405162461bcd60e51b81526020600482018190526024820152600080516020620039c5833981519152604482015260640162000191565b60405180606001604052808481526020018381526020018281525060106000620002bd60096200051c60201b620019851760201c565b81526020019081526020016000206000820151816000015560208201518160010155604082015181600201559050506200030360096200030860201b6200197c1760201c565b505050565b80546001019055565b6006546001600160a01b031633146200035c5760405162461bcd60e51b81526020600482018190526024820152600080516020620039c5833981519152604482015260640162000191565b600662000375600c6200051c60201b620019851760201c565b10620003ba5760405162461bcd60e51b815260206004820152601360248201527213585e081c1c9a58d948199959591cc81a1a5d606a1b604482015260640162000191565b80600f6000620003d6600c6200051c60201b620019851760201c565b815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b03160217905550600080600f600062000426600c6200051c60201b620019851760201c565b815260200190815260200160002060009054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa15801562000486573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620004ac919062000710565b5050925092505081600003620005055760405162461bcd60e51b815260206004820152601c60248201527f496e76616c69642041676772656761746f725633206164647265737300000000604482015260640162000191565b62000303600c6200030860201b6200197c1760201c565b5490565b8280546200052e9062000765565b90600052602060002090601f0160209004810192826200055257600085556200059d565b82601f106200056d57805160ff19168380011785556200059d565b828001600101855582156200059d579182015b828111156200059d57825182559160200191906001019062000580565b50620005ab929150620005af565b5090565b5b80821115620005ab5760008155600101620005b0565b80516001600160a01b0381168114620005de57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b600080604083850312156200060d57600080fd5b6200061883620005c6565b602084810151919350906001600160401b03808211156200063857600080fd5b818601915086601f8301126200064d57600080fd5b815181811115620006625762000662620005e3565b8060051b604051601f19603f830116810181811085821117156200068a576200068a620005e3565b604052918252848201925083810185019189831115620006a957600080fd5b938501935b82851015620006d257620006c285620005c6565b84529385019392850192620006ae565b8096505050505050509250929050565b634e487b7160e01b600052603260045260246000fd5b80516001600160501b0381168114620005de57600080fd5b600080600080600060a086880312156200072957600080fd5b6200073486620006f8565b94506020860151935060408601519250606086015191506200075960808701620006f8565b90509295509295909350565b600181811c908216806200077a57607f821691505b6020821081036200079b57634e487b7160e01b600052602260045260246000fd5b50919050565b61321480620007b16000396000f3fe608060405234801561001057600080fd5b50600436106102ad5760003560e01c80638a1a5f3f1161017b578063bd3ac018116100d8578063e985e9c51161008c578063f2fde38b11610071578063f2fde38b1461062e578063f4f3b20014610641578063f83d08ba1461065457600080fd5b8063e985e9c5146105f8578063ec9767491461062657600080fd5b8063c87b56dd116100bd578063c87b56dd146105bd578063cb34ca1d146105d0578063d547cfb7146105f057600080fd5b8063bd3ac0181461057f578063c002d23d146105ab57600080fd5b8063966fc4331161012f578063a22cb46511610114578063a22cb46514610551578063a69df4b514610564578063b88d4fde1461056c57600080fd5b8063966fc4331461053657806398428eab1461053e57600080fd5b80638da5cb5b116101605780638da5cb5b1461050a57806394bf804d1461051b57806395d89b411461052e57600080fd5b80638a1a5f3f146104fa5780638c2d3ad01461050257600080fd5b80632742d5ac116102295780635c975abb116101dd5780636ce0c4b5116101c25780636ce0c4b5146104bf57806370a08231146104d2578063715018a6146104f257600080fd5b80635c975abb146104845780636352211e1461049657600080fd5b80633ccfd60b1161020e5780633ccfd60b1461045657806342842e0e1461045e5780634489c5141461047157600080fd5b80632742d5ac1461043a57806332cb6b0c1461044d57600080fd5b80630dbf3dfa1161028057806318160ddd1161026557806318160ddd146104175780631a595f651461041f57806323b872dd1461042757600080fd5b80630dbf3dfa1461034557806311f888b31461035b57600080fd5b806301ffc9a7146102b257806306fdde03146102da578063081812fc146102ef578063095ea7b314610330575b600080fd5b6102c56102c0366004612c5c565b61065c565b60405190151581526020015b60405180910390f35b6102e26106f9565b6040516102d19190612cd1565b6103186102fd366004612ce4565b6004602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020016102d1565b61034361033e366004612d12565b610787565b005b61034d61088a565b6040519081526020016102d1565b6103d7610369366004612ce4565b604080516080808201835260008083526020808401829052838501829052606093840182905294815260118552839020835191820184528054825260018101549482019490945260028401546001600160a01b03908116938201939093526003909301549091169082015290565b604080518251815260208084015190820152828201516001600160a01b0390811692820192909252606092830151909116918101919091526080016102d1565b61034d6108a5565b61034d6108bc565b610343610435366004612d3e565b6108c9565b610343610448366004612ce4565b610acb565b61034d61a45581565b610343610c22565b61034361046c366004612d3e565b610d33565b61034361047f366004612ce4565b610e38565b600654600160a01b900460ff166102c5565b6103186104a4366004612ce4565b6003602052600090815260409020546001600160a01b031681565b61034d6104cd366004612ce4565b610f3f565b61034d6104e0366004612d7f565b60026020526000908152604090205481565b610343610f5f565b61034d610fc5565b61034d610fd0565b6006546001600160a01b0316610318565b61034d610529366004612d9c565b610fdb565b6102e261104a565b61034d611057565b61034d61054c366004612dcc565b611062565b61034361055f366004612e1c565b6110d2565b61034361115c565b61034361057a366004612e60565b6111be565b61031861058d366004612ce4565b6000908152601160205260409020600201546001600160a01b031690565b61034d6a05606db4c034089680000081565b6102e26105cb366004612ce4565b6112b0565b61034d6105de366004612ce4565b60009081526011602052604090205490565b6102e26112ea565b6102c5610606366004612f40565b600560209081526000928352604080842090915290825290205460ff1681565b61034361130a565b61034361063c366004612d7f565b6116d2565b61034361064f366004612d7f565b6117b1565b61034361191a565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614806106bf57507f80ac58cd000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b806106f357507f5b5e139f000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b6000805461070690612f6e565b80601f016020809104026020016040519081016040528092919081815260200182805461073290612f6e565b801561077f5780601f106107545761010080835404028352916020019161077f565b820191906000526020600020905b81548152906001019060200180831161076257829003601f168201915b505050505081565b6000818152600360205260409020546001600160a01b0316338114806107d057506001600160a01b038116600090815260056020908152604080832033845290915290205460ff165b6108215760405162461bcd60e51b815260206004820152600e60248201527f4e4f545f415554484f52495a454400000000000000000000000000000000000060448201526064015b60405180910390fd5b600082815260046020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006108946108a5565b6108a09061a455612fb8565b905090565b600060016108b260075490565b6108a09190612fb8565b60006108a06104cd610fc5565b6000818152600360205260409020546001600160a01b038481169116146109325760405162461bcd60e51b815260206004820152600a60248201527f57524f4e475f46524f4d000000000000000000000000000000000000000000006044820152606401610818565b6001600160a01b0382166109885760405162461bcd60e51b815260206004820152601160248201527f494e56414c49445f524543495049454e540000000000000000000000000000006044820152606401610818565b336001600160a01b03841614806109b557506000818152600460205260409020546001600160a01b031633145b806109e357506001600160a01b038316600090815260056020908152604080832033845290915290205460ff165b610a2f5760405162461bcd60e51b815260206004820152600e60248201527f4e4f545f415554484f52495a45440000000000000000000000000000000000006044820152606401610818565b6001600160a01b03808416600081815260026020908152604080832080546000190190559386168083528483208054600101905585835260038252848320805473ffffffffffffffffffffffffffffffffffffffff199081168317909155600490925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61a455610ad66108a5565b03610b235760405162461bcd60e51b815260206004820152600e60248201527f4d617820737570706c79206869740000000000000000000000000000000000006044820152606401610818565b600a60106000610b3260085490565b815260200190815260200160002060010154610b4e9190612fb8565b60106000610b5b60085490565b815260200190815260200160002060010154610b7660075490565b610b809190612fe5565b10610bcd5760405162461bcd60e51b815260206004820152601660248201527f546f6f20636c6f736520746f20726f756e6420656e64000000000000000000006044820152606401610818565b60008111610c1d5760405162461bcd60e51b815260206004820152601f60248201527f4e6f6e6365206d7573742062652067726561746572207468616e207a65726f006044820152606401610818565b601455565b6006546001600160a01b03163314610c7c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610818565b6000610c906006546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114610cda576040519150601f19603f3d011682016040523d82523d6000602084013e610cdf565b606091505b5050905080610d305760405162461bcd60e51b815260206004820152600f60248201527f5769746864726177206661696c656400000000000000000000000000000000006044820152606401610818565b50565b610d3e8383836108c9565b6001600160a01b0382163b1580610de75750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af1158015610db7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ddb9190612ff9565b6001600160e01b031916145b610e335760405162461bcd60e51b815260206004820152601060248201527f554e534146455f524543495049454e54000000000000000000000000000000006044820152606401610818565b505050565b6006546001600160a01b03163314610e925760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610818565b61a455610e9d6108a5565b03610eea5760405162461bcd60e51b815260206004820152600e60248201527f4d617820737570706c79206869740000000000000000000000000000000000006044820152606401610818565b60008111610f3a5760405162461bcd60e51b815260206004820152601f60248201527f4e6f6e6365206d7573742062652067726561746572207468616e207a65726f006044820152606401610818565b601355565b600081815260106020526040812080546001909101546106f39190613016565b6006546001600160a01b03163314610fb95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610818565b610fc36000611989565b565b60006108a060085490565b60006108a060095490565b600654600090600160a01b900460ff16156110385760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610818565b6110433384846119e8565b9392505050565b6001805461070690612f6e565b60006108a0600b5490565b600654600090600160a01b900460ff16156110bf5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610818565b6110ca8484846119e8565b949350505050565b3360008181526005602090815260408083206001600160a01b0387168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6006546001600160a01b031633146111b65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610818565b610fc361239b565b6111c98484846108c9565b6001600160a01b0383163b158061125e5750604051630a85bd0160e11b808252906001600160a01b0385169063150b7a029061120f903390899088908890600401613035565b6020604051808303816000875af115801561122e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112529190612ff9565b6001600160e01b031916145b6112aa5760405162461bcd60e51b815260206004820152601060248201527f554e534146455f524543495049454e54000000000000000000000000000000006044820152606401610818565b50505050565b60606112ba6112ea565b6112c38361245c565b6040516020016112d4929190613067565b6040516020818303038152906040529050919050565b60606040518060600160405280602f81526020016131b0602f9139905090565b6006546001600160a01b031633146113645760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610818565b600d546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa1580156113ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113d19190613096565b1161141e5760405162461bcd60e51b815260206004820152601460248201527f496e73756666696369656e742062616c616e63650000000000000000000000006044820152606401610818565b600061a45561142b6108a5565b10611437576000611490565b606460106000611445610fc5565b81526020019081526020016000206000015461145f612591565b6114676108a5565b6114719190612fb8565b61147b9190613016565b611486906050613016565b61149091906130af565b600d546040516370a0823160e01b815230600482015291925082916001600160a01b03909116906370a0823190602401602060405180830381865afa1580156114dd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115019190613096565b116115745760405162461bcd60e51b815260206004820152602d60248201527f42616c616e6365206d7573742062652067726561746572207468616e2072657360448201527f65727665642062616c616e6365000000000000000000000000000000000000006064820152608401610818565b600d546000906001600160a01b031663a9059cbb61159a6006546001600160a01b031690565b600d546040516370a0823160e01b815230600482015286916001600160a01b0316906370a0823190602401602060405180830381865afa1580156115e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116069190613096565b6116109190612fb8565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af115801561165b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061167f91906130c3565b9050806116ce5760405162461bcd60e51b815260206004820152600f60248201527f5769746864726177206661696c656400000000000000000000000000000000006044820152606401610818565b5050565b6006546001600160a01b0316331461172c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610818565b6001600160a01b0381166117a85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610818565b610d3081611989565b6006546001600160a01b0316331461180b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610818565b600e546001600160a01b039081169082160361188f5760405162461bcd60e51b815260206004820152602b60248201527f43616e6e6f74207769746864726177206275726e20746f6b656e2066726f6d2060448201527f74686973206d6574686f640000000000000000000000000000000000000000006064820152608401610818565b6000816001600160a01b031663a9059cbb6118b26006546001600160a01b031690565b6040516370a0823160e01b81523060048201526001600160a01b038616906370a0823190602401602060405180830381865afa1580156118f6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116109190613096565b6006546001600160a01b031633146119745760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610818565b610fc36125de565b80546001019055565b5490565b600680546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600080831180156119fa575060058311155b611a465760405162461bcd60e51b815260206004820152601d60248201527f436f756e74206d757374206265206265747765656e203120616e6420350000006044820152606401610818565b61a455611a516108a5565b1115611a9f5760405162461bcd60e51b815260206004820152600e60248201527f4d41585f535550504c59206869740000000000000000000000000000000000006044820152606401610818565b61a45583611aab6108a5565b611ab591906130e0565b1115611b035760405162461bcd60e51b815260206004820152601360248201527f4d41585f535550504c59206578636565646564000000000000000000000000006044820152606401610818565b60008360106000611b12610fc5565b815260200190815260200160002060000154611b2e9190613016565b600d546040516370a0823160e01b815233600482015291925082916001600160a01b03909116906370a0823190602401602060405180830381865afa158015611b7b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b9f9190613096565b1015611bed5760405162461bcd60e51b815260206004820152600f60248201527f496e76616c69642062616c616e636500000000000000000000000000000000006044820152606401610818565b600d546040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815233600482015230602482015282916001600160a01b03169063dd62ed3e90604401602060405180830381865afa158015611c54573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c789190613096565b1015611cc65760405162461bcd60e51b815260206004820152601160248201527f496e76616c696420616c6c6f77616e63650000000000000000000000000000006044820152606401610818565b600d546040517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018390526001600160a01b03909116906323b872dd906064016020604051808303816000875af1158015611d36573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d5a91906130c3565b5060006064611d6a836028613016565b611d7491906130af565b600d546040517f42966c68000000000000000000000000000000000000000000000000000000008152600481018390529192506001600160a01b0316906342966c6890602401600060405180830381600087803b158015611dd457600080fd5b505af1158015611de8573d6000803e3d6000fd5b5050505060005b8581101561234d57611e0987611e0460075490565b61268e565b6001600160a01b03851615611e59578460126000611e2660075490565b815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b031602179055505b600954600854108015611ea7575060106000611e7460085490565b815260200190815260200160002060010154611e8e612591565b600754611e9b9190612fb8565b611ea59190612fe5565b155b15612337576000611ebf611eba60075490565b61278a565b6040805160808101825282815242602082015281517f6352211e0000000000000000000000000000000000000000000000000000000081526004810184905292935091908201903090636352211e90602401602060405180830381865afa158015611f2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f5291906130f8565b6001600160a01b03908116825260008481526012602090815260408220549092169190920152601190611f84600b5490565b815260208082019290925260409081016000908120845181559284015160018401559083015160028301805473ffffffffffffffffffffffffffffffffffffffff199081166001600160a01b039384161790915560609094015160039093018054909416921691909117909155611ff96108bc565b6000838152601260205260408120805473ffffffffffffffffffffffffffffffffffffffff1916905590915060019060109061203460085490565b8152602001908152602001600020600201546120509190612fb8565b600a540361207057612066600880546001019055565b6000600a5561207e565b61207e600a80546001019055565b600060118161208c600b5490565b81526020810191909152604001600020600301546001600160a01b03161461226357600d546001600160a01b031663a9059cbb601160006120cc600b5490565b81526020810191909152604001600020600201546001600160a01b03166064806120f7866028613016565b61210191906130af565b61210c906055613016565b61211691906130af565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015612161573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061218591906130c3565b50600d546001600160a01b031663a9059cbb601160006121a4600b5490565b81526020810191909152604001600020600301546001600160a01b03166064806121cf866028613016565b6121d991906130af565b6121e490600f613016565b6121ee91906130af565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015612239573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061225d91906130c3565b50612326565b600d546001600160a01b031663a9059cbb60116000612281600b5490565b81526020810191909152604001600020600201546001600160a01b031660646122ab856028613016565b6122b591906130af565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015612300573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061232491906130c3565b505b612334600b80546001019055565b50505b612345600780546001019055565b600101611def565b506000612359600b5490565b11612365576000612391565b601160006001612374600b5490565b61237e9190612fb8565b8152602001908152602001600020600001545b9695505050505050565b600654600160a01b900460ff166123f45760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610818565b600680547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60608160000361249f57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156124c957806124b381613115565b91506124c29050600a836130af565b91506124a3565b60008167ffffffffffffffff8111156124e4576124e4612e4a565b6040519080825280601f01601f19166020018201604052801561250e576020820181803683370190505b5090505b84156110ca57612523600183612fb8565b9150612530600a86612fe5565b61253b9060306130e0565b60f81b8183815181106125505761255061312f565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535061258a600a866130af565b9450612512565b600080600061259f60085490565b11156125d95760005b6008548110156125d75760008181526010602052604090206002810154600191820154029290920191016125a8565b505b919050565b600654600160a01b900460ff16156126385760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610818565b600680547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861243f3390565b61269882826127aa565b6001600160a01b0382163b158061273e5750604051630a85bd0160e11b80825233600483015260006024830181905260448301849052608060648401526084830152906001600160a01b0384169063150b7a029060a4016020604051808303816000875af115801561270e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127329190612ff9565b6001600160e01b031916145b6116ce5760405162461bcd60e51b815260206004820152601060248201527f554e534146455f524543495049454e54000000000000000000000000000000006044820152606401610818565b6000816127956128dd565b61279f9190612fe5565b6106f39060016130e0565b6001600160a01b0382166128005760405162461bcd60e51b815260206004820152601160248201527f494e56414c49445f524543495049454e540000000000000000000000000000006044820152606401610818565b6000818152600360205260409020546001600160a01b0316156128655760405162461bcd60e51b815260206004820152600e60248201527f414c52454144595f4d494e5445440000000000000000000000000000000000006044820152606401610818565b6001600160a01b0382166000818152600260209081526040808320805460010190558483526003909152808220805473ffffffffffffffffffffffffffffffffffffffff19168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000806000600f60006128ef600c5490565b5a6128fa43426130e0565b61290491906130e0565b61290e9190612fe5565b815260200190815260200160002060009054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa15801561296d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612991919061315f565b50509250925050600080600f60006129a8600c5490565b5a436129b489426130e0565b6129be91906130e0565b6129c891906130e0565b6129d29190612fe5565b815260200190815260200160002060009054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa158015612a31573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a55919061315f565b50506040516bffffffffffffffffffffffff193360601b166020820152919450925060009150439042906034016040516020818303038152906040528051906020012060001c612aa591906130af565b4260145487612ab49190613016565b612abe91906130af565b4260135486612acd9190613016565b612ad791906130af565b4260145488612ae69190613016565b612af091906130af565b426013548b612aff9190613016565b612b0991906130af565b42612b148b8b613016565b612b1e91906130af565b42612b298a8e613016565b612b3391906130af565b6007545a6040516bffffffffffffffffffffffff194160601b16602082015242906034016040516020818303038152906040528051906020012060001c612b7a91906130af565b612b8444426130e0565b612b8e91906130e0565b612b9891906130e0565b612ba291906130e0565b612bac91906130e0565b612bb691906130e0565b612bc091906130e0565b612bca91906130e0565b612bd491906130e0565b612bde91906130e0565b612be891906130e0565b612bf291906130e0565b604051602001612c0491815260200190565b6040516020818303038152906040528051906020012060001c9050612c2860075490565b612c3290826130af565b612c3c9082612fb8565b9550505050505090565b6001600160e01b031981168114610d3057600080fd5b600060208284031215612c6e57600080fd5b813561104381612c46565b60005b83811015612c94578181015183820152602001612c7c565b838111156112aa5750506000910152565b60008151808452612cbd816020860160208601612c79565b601f01601f19169290920160200192915050565b6020815260006110436020830184612ca5565b600060208284031215612cf657600080fd5b5035919050565b6001600160a01b0381168114610d3057600080fd5b60008060408385031215612d2557600080fd5b8235612d3081612cfd565b946020939093013593505050565b600080600060608486031215612d5357600080fd5b8335612d5e81612cfd565b92506020840135612d6e81612cfd565b929592945050506040919091013590565b600060208284031215612d9157600080fd5b813561104381612cfd565b60008060408385031215612daf57600080fd5b823591506020830135612dc181612cfd565b809150509250929050565b600080600060608486031215612de157600080fd5b8335612dec81612cfd565b9250602084013591506040840135612e0381612cfd565b809150509250925092565b8015158114610d3057600080fd5b60008060408385031215612e2f57600080fd5b8235612e3a81612cfd565b91506020830135612dc181612e0e565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215612e7657600080fd5b8435612e8181612cfd565b93506020850135612e9181612cfd565b925060408501359150606085013567ffffffffffffffff80821115612eb557600080fd5b818701915087601f830112612ec957600080fd5b813581811115612edb57612edb612e4a565b604051601f8201601f19908116603f01168101908382118183101715612f0357612f03612e4a565b816040528281528a6020848701011115612f1c57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215612f5357600080fd5b8235612f5e81612cfd565b91506020830135612dc181612cfd565b600181811c90821680612f8257607f821691505b6020821081036125d757634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082821015612fca57612fca612fa2565b500390565b634e487b7160e01b600052601260045260246000fd5b600082612ff457612ff4612fcf565b500690565b60006020828403121561300b57600080fd5b815161104381612c46565b600081600019048311821515161561303057613030612fa2565b500290565b60006001600160a01b038087168352808616602084015250836040830152608060608301526123916080830184612ca5565b60008351613079818460208801612c79565b83519083019061308d818360208801612c79565b01949350505050565b6000602082840312156130a857600080fd5b5051919050565b6000826130be576130be612fcf565b500490565b6000602082840312156130d557600080fd5b815161104381612e0e565b600082198211156130f3576130f3612fa2565b500190565b60006020828403121561310a57600080fd5b815161104381612cfd565b6000600019820361312857613128612fa2565b5060010190565b634e487b7160e01b600052603260045260246000fd5b805169ffffffffffffffffffff811681146125d957600080fd5b600080600080600060a0868803121561317757600080fd5b61318086613145565b94506020860151935060408601519250606086015191506131a360808701613145565b9050929550929590935056fe68747470733a2f2f706978656c707570732d6170692e73686962746f6b656e2e6172742f6170692f7472616974732fa26469706673582212209afc300b18270b558c580da667bd6f41296c3faef3060f1878d64e4af168bdd664736f6c634300080d00334f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657200000000000000000000000095ad61b0a150d79219dcf64e1e6cc01f0b64c4ce00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000005000000000000000000000000547a514d5e3769680ce22b2361c10ea13619e8a90000000000000000000000009441d7556e7820b5ca42082cfa99487d56aca958000000000000000000000000f4030086522a5beea4988f8ca5b36dbc97bee88c0000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b84190000000000000000000000007bac85a8a13a4bcd8abb3eb7d6b4d632c5a57676
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102ad5760003560e01c80638a1a5f3f1161017b578063bd3ac018116100d8578063e985e9c51161008c578063f2fde38b11610071578063f2fde38b1461062e578063f4f3b20014610641578063f83d08ba1461065457600080fd5b8063e985e9c5146105f8578063ec9767491461062657600080fd5b8063c87b56dd116100bd578063c87b56dd146105bd578063cb34ca1d146105d0578063d547cfb7146105f057600080fd5b8063bd3ac0181461057f578063c002d23d146105ab57600080fd5b8063966fc4331161012f578063a22cb46511610114578063a22cb46514610551578063a69df4b514610564578063b88d4fde1461056c57600080fd5b8063966fc4331461053657806398428eab1461053e57600080fd5b80638da5cb5b116101605780638da5cb5b1461050a57806394bf804d1461051b57806395d89b411461052e57600080fd5b80638a1a5f3f146104fa5780638c2d3ad01461050257600080fd5b80632742d5ac116102295780635c975abb116101dd5780636ce0c4b5116101c25780636ce0c4b5146104bf57806370a08231146104d2578063715018a6146104f257600080fd5b80635c975abb146104845780636352211e1461049657600080fd5b80633ccfd60b1161020e5780633ccfd60b1461045657806342842e0e1461045e5780634489c5141461047157600080fd5b80632742d5ac1461043a57806332cb6b0c1461044d57600080fd5b80630dbf3dfa1161028057806318160ddd1161026557806318160ddd146104175780631a595f651461041f57806323b872dd1461042757600080fd5b80630dbf3dfa1461034557806311f888b31461035b57600080fd5b806301ffc9a7146102b257806306fdde03146102da578063081812fc146102ef578063095ea7b314610330575b600080fd5b6102c56102c0366004612c5c565b61065c565b60405190151581526020015b60405180910390f35b6102e26106f9565b6040516102d19190612cd1565b6103186102fd366004612ce4565b6004602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020016102d1565b61034361033e366004612d12565b610787565b005b61034d61088a565b6040519081526020016102d1565b6103d7610369366004612ce4565b604080516080808201835260008083526020808401829052838501829052606093840182905294815260118552839020835191820184528054825260018101549482019490945260028401546001600160a01b03908116938201939093526003909301549091169082015290565b604080518251815260208084015190820152828201516001600160a01b0390811692820192909252606092830151909116918101919091526080016102d1565b61034d6108a5565b61034d6108bc565b610343610435366004612d3e565b6108c9565b610343610448366004612ce4565b610acb565b61034d61a45581565b610343610c22565b61034361046c366004612d3e565b610d33565b61034361047f366004612ce4565b610e38565b600654600160a01b900460ff166102c5565b6103186104a4366004612ce4565b6003602052600090815260409020546001600160a01b031681565b61034d6104cd366004612ce4565b610f3f565b61034d6104e0366004612d7f565b60026020526000908152604090205481565b610343610f5f565b61034d610fc5565b61034d610fd0565b6006546001600160a01b0316610318565b61034d610529366004612d9c565b610fdb565b6102e261104a565b61034d611057565b61034d61054c366004612dcc565b611062565b61034361055f366004612e1c565b6110d2565b61034361115c565b61034361057a366004612e60565b6111be565b61031861058d366004612ce4565b6000908152601160205260409020600201546001600160a01b031690565b61034d6a05606db4c034089680000081565b6102e26105cb366004612ce4565b6112b0565b61034d6105de366004612ce4565b60009081526011602052604090205490565b6102e26112ea565b6102c5610606366004612f40565b600560209081526000928352604080842090915290825290205460ff1681565b61034361130a565b61034361063c366004612d7f565b6116d2565b61034361064f366004612d7f565b6117b1565b61034361191a565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614806106bf57507f80ac58cd000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b806106f357507f5b5e139f000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b6000805461070690612f6e565b80601f016020809104026020016040519081016040528092919081815260200182805461073290612f6e565b801561077f5780601f106107545761010080835404028352916020019161077f565b820191906000526020600020905b81548152906001019060200180831161076257829003601f168201915b505050505081565b6000818152600360205260409020546001600160a01b0316338114806107d057506001600160a01b038116600090815260056020908152604080832033845290915290205460ff165b6108215760405162461bcd60e51b815260206004820152600e60248201527f4e4f545f415554484f52495a454400000000000000000000000000000000000060448201526064015b60405180910390fd5b600082815260046020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006108946108a5565b6108a09061a455612fb8565b905090565b600060016108b260075490565b6108a09190612fb8565b60006108a06104cd610fc5565b6000818152600360205260409020546001600160a01b038481169116146109325760405162461bcd60e51b815260206004820152600a60248201527f57524f4e475f46524f4d000000000000000000000000000000000000000000006044820152606401610818565b6001600160a01b0382166109885760405162461bcd60e51b815260206004820152601160248201527f494e56414c49445f524543495049454e540000000000000000000000000000006044820152606401610818565b336001600160a01b03841614806109b557506000818152600460205260409020546001600160a01b031633145b806109e357506001600160a01b038316600090815260056020908152604080832033845290915290205460ff165b610a2f5760405162461bcd60e51b815260206004820152600e60248201527f4e4f545f415554484f52495a45440000000000000000000000000000000000006044820152606401610818565b6001600160a01b03808416600081815260026020908152604080832080546000190190559386168083528483208054600101905585835260038252848320805473ffffffffffffffffffffffffffffffffffffffff199081168317909155600490925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61a455610ad66108a5565b03610b235760405162461bcd60e51b815260206004820152600e60248201527f4d617820737570706c79206869740000000000000000000000000000000000006044820152606401610818565b600a60106000610b3260085490565b815260200190815260200160002060010154610b4e9190612fb8565b60106000610b5b60085490565b815260200190815260200160002060010154610b7660075490565b610b809190612fe5565b10610bcd5760405162461bcd60e51b815260206004820152601660248201527f546f6f20636c6f736520746f20726f756e6420656e64000000000000000000006044820152606401610818565b60008111610c1d5760405162461bcd60e51b815260206004820152601f60248201527f4e6f6e6365206d7573742062652067726561746572207468616e207a65726f006044820152606401610818565b601455565b6006546001600160a01b03163314610c7c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610818565b6000610c906006546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114610cda576040519150601f19603f3d011682016040523d82523d6000602084013e610cdf565b606091505b5050905080610d305760405162461bcd60e51b815260206004820152600f60248201527f5769746864726177206661696c656400000000000000000000000000000000006044820152606401610818565b50565b610d3e8383836108c9565b6001600160a01b0382163b1580610de75750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af1158015610db7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ddb9190612ff9565b6001600160e01b031916145b610e335760405162461bcd60e51b815260206004820152601060248201527f554e534146455f524543495049454e54000000000000000000000000000000006044820152606401610818565b505050565b6006546001600160a01b03163314610e925760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610818565b61a455610e9d6108a5565b03610eea5760405162461bcd60e51b815260206004820152600e60248201527f4d617820737570706c79206869740000000000000000000000000000000000006044820152606401610818565b60008111610f3a5760405162461bcd60e51b815260206004820152601f60248201527f4e6f6e6365206d7573742062652067726561746572207468616e207a65726f006044820152606401610818565b601355565b600081815260106020526040812080546001909101546106f39190613016565b6006546001600160a01b03163314610fb95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610818565b610fc36000611989565b565b60006108a060085490565b60006108a060095490565b600654600090600160a01b900460ff16156110385760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610818565b6110433384846119e8565b9392505050565b6001805461070690612f6e565b60006108a0600b5490565b600654600090600160a01b900460ff16156110bf5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610818565b6110ca8484846119e8565b949350505050565b3360008181526005602090815260408083206001600160a01b0387168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6006546001600160a01b031633146111b65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610818565b610fc361239b565b6111c98484846108c9565b6001600160a01b0383163b158061125e5750604051630a85bd0160e11b808252906001600160a01b0385169063150b7a029061120f903390899088908890600401613035565b6020604051808303816000875af115801561122e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112529190612ff9565b6001600160e01b031916145b6112aa5760405162461bcd60e51b815260206004820152601060248201527f554e534146455f524543495049454e54000000000000000000000000000000006044820152606401610818565b50505050565b60606112ba6112ea565b6112c38361245c565b6040516020016112d4929190613067565b6040516020818303038152906040529050919050565b60606040518060600160405280602f81526020016131b0602f9139905090565b6006546001600160a01b031633146113645760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610818565b600d546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa1580156113ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113d19190613096565b1161141e5760405162461bcd60e51b815260206004820152601460248201527f496e73756666696369656e742062616c616e63650000000000000000000000006044820152606401610818565b600061a45561142b6108a5565b10611437576000611490565b606460106000611445610fc5565b81526020019081526020016000206000015461145f612591565b6114676108a5565b6114719190612fb8565b61147b9190613016565b611486906050613016565b61149091906130af565b600d546040516370a0823160e01b815230600482015291925082916001600160a01b03909116906370a0823190602401602060405180830381865afa1580156114dd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115019190613096565b116115745760405162461bcd60e51b815260206004820152602d60248201527f42616c616e6365206d7573742062652067726561746572207468616e2072657360448201527f65727665642062616c616e6365000000000000000000000000000000000000006064820152608401610818565b600d546000906001600160a01b031663a9059cbb61159a6006546001600160a01b031690565b600d546040516370a0823160e01b815230600482015286916001600160a01b0316906370a0823190602401602060405180830381865afa1580156115e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116069190613096565b6116109190612fb8565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af115801561165b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061167f91906130c3565b9050806116ce5760405162461bcd60e51b815260206004820152600f60248201527f5769746864726177206661696c656400000000000000000000000000000000006044820152606401610818565b5050565b6006546001600160a01b0316331461172c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610818565b6001600160a01b0381166117a85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610818565b610d3081611989565b6006546001600160a01b0316331461180b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610818565b600e546001600160a01b039081169082160361188f5760405162461bcd60e51b815260206004820152602b60248201527f43616e6e6f74207769746864726177206275726e20746f6b656e2066726f6d2060448201527f74686973206d6574686f640000000000000000000000000000000000000000006064820152608401610818565b6000816001600160a01b031663a9059cbb6118b26006546001600160a01b031690565b6040516370a0823160e01b81523060048201526001600160a01b038616906370a0823190602401602060405180830381865afa1580156118f6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116109190613096565b6006546001600160a01b031633146119745760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610818565b610fc36125de565b80546001019055565b5490565b600680546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600080831180156119fa575060058311155b611a465760405162461bcd60e51b815260206004820152601d60248201527f436f756e74206d757374206265206265747765656e203120616e6420350000006044820152606401610818565b61a455611a516108a5565b1115611a9f5760405162461bcd60e51b815260206004820152600e60248201527f4d41585f535550504c59206869740000000000000000000000000000000000006044820152606401610818565b61a45583611aab6108a5565b611ab591906130e0565b1115611b035760405162461bcd60e51b815260206004820152601360248201527f4d41585f535550504c59206578636565646564000000000000000000000000006044820152606401610818565b60008360106000611b12610fc5565b815260200190815260200160002060000154611b2e9190613016565b600d546040516370a0823160e01b815233600482015291925082916001600160a01b03909116906370a0823190602401602060405180830381865afa158015611b7b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b9f9190613096565b1015611bed5760405162461bcd60e51b815260206004820152600f60248201527f496e76616c69642062616c616e636500000000000000000000000000000000006044820152606401610818565b600d546040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815233600482015230602482015282916001600160a01b03169063dd62ed3e90604401602060405180830381865afa158015611c54573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c789190613096565b1015611cc65760405162461bcd60e51b815260206004820152601160248201527f496e76616c696420616c6c6f77616e63650000000000000000000000000000006044820152606401610818565b600d546040517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018390526001600160a01b03909116906323b872dd906064016020604051808303816000875af1158015611d36573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d5a91906130c3565b5060006064611d6a836028613016565b611d7491906130af565b600d546040517f42966c68000000000000000000000000000000000000000000000000000000008152600481018390529192506001600160a01b0316906342966c6890602401600060405180830381600087803b158015611dd457600080fd5b505af1158015611de8573d6000803e3d6000fd5b5050505060005b8581101561234d57611e0987611e0460075490565b61268e565b6001600160a01b03851615611e59578460126000611e2660075490565b815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b031602179055505b600954600854108015611ea7575060106000611e7460085490565b815260200190815260200160002060010154611e8e612591565b600754611e9b9190612fb8565b611ea59190612fe5565b155b15612337576000611ebf611eba60075490565b61278a565b6040805160808101825282815242602082015281517f6352211e0000000000000000000000000000000000000000000000000000000081526004810184905292935091908201903090636352211e90602401602060405180830381865afa158015611f2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f5291906130f8565b6001600160a01b03908116825260008481526012602090815260408220549092169190920152601190611f84600b5490565b815260208082019290925260409081016000908120845181559284015160018401559083015160028301805473ffffffffffffffffffffffffffffffffffffffff199081166001600160a01b039384161790915560609094015160039093018054909416921691909117909155611ff96108bc565b6000838152601260205260408120805473ffffffffffffffffffffffffffffffffffffffff1916905590915060019060109061203460085490565b8152602001908152602001600020600201546120509190612fb8565b600a540361207057612066600880546001019055565b6000600a5561207e565b61207e600a80546001019055565b600060118161208c600b5490565b81526020810191909152604001600020600301546001600160a01b03161461226357600d546001600160a01b031663a9059cbb601160006120cc600b5490565b81526020810191909152604001600020600201546001600160a01b03166064806120f7866028613016565b61210191906130af565b61210c906055613016565b61211691906130af565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015612161573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061218591906130c3565b50600d546001600160a01b031663a9059cbb601160006121a4600b5490565b81526020810191909152604001600020600301546001600160a01b03166064806121cf866028613016565b6121d991906130af565b6121e490600f613016565b6121ee91906130af565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015612239573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061225d91906130c3565b50612326565b600d546001600160a01b031663a9059cbb60116000612281600b5490565b81526020810191909152604001600020600201546001600160a01b031660646122ab856028613016565b6122b591906130af565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015612300573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061232491906130c3565b505b612334600b80546001019055565b50505b612345600780546001019055565b600101611def565b506000612359600b5490565b11612365576000612391565b601160006001612374600b5490565b61237e9190612fb8565b8152602001908152602001600020600001545b9695505050505050565b600654600160a01b900460ff166123f45760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610818565b600680547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60608160000361249f57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156124c957806124b381613115565b91506124c29050600a836130af565b91506124a3565b60008167ffffffffffffffff8111156124e4576124e4612e4a565b6040519080825280601f01601f19166020018201604052801561250e576020820181803683370190505b5090505b84156110ca57612523600183612fb8565b9150612530600a86612fe5565b61253b9060306130e0565b60f81b8183815181106125505761255061312f565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535061258a600a866130af565b9450612512565b600080600061259f60085490565b11156125d95760005b6008548110156125d75760008181526010602052604090206002810154600191820154029290920191016125a8565b505b919050565b600654600160a01b900460ff16156126385760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610818565b600680547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861243f3390565b61269882826127aa565b6001600160a01b0382163b158061273e5750604051630a85bd0160e11b80825233600483015260006024830181905260448301849052608060648401526084830152906001600160a01b0384169063150b7a029060a4016020604051808303816000875af115801561270e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127329190612ff9565b6001600160e01b031916145b6116ce5760405162461bcd60e51b815260206004820152601060248201527f554e534146455f524543495049454e54000000000000000000000000000000006044820152606401610818565b6000816127956128dd565b61279f9190612fe5565b6106f39060016130e0565b6001600160a01b0382166128005760405162461bcd60e51b815260206004820152601160248201527f494e56414c49445f524543495049454e540000000000000000000000000000006044820152606401610818565b6000818152600360205260409020546001600160a01b0316156128655760405162461bcd60e51b815260206004820152600e60248201527f414c52454144595f4d494e5445440000000000000000000000000000000000006044820152606401610818565b6001600160a01b0382166000818152600260209081526040808320805460010190558483526003909152808220805473ffffffffffffffffffffffffffffffffffffffff19168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000806000600f60006128ef600c5490565b5a6128fa43426130e0565b61290491906130e0565b61290e9190612fe5565b815260200190815260200160002060009054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa15801561296d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612991919061315f565b50509250925050600080600f60006129a8600c5490565b5a436129b489426130e0565b6129be91906130e0565b6129c891906130e0565b6129d29190612fe5565b815260200190815260200160002060009054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa158015612a31573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a55919061315f565b50506040516bffffffffffffffffffffffff193360601b166020820152919450925060009150439042906034016040516020818303038152906040528051906020012060001c612aa591906130af565b4260145487612ab49190613016565b612abe91906130af565b4260135486612acd9190613016565b612ad791906130af565b4260145488612ae69190613016565b612af091906130af565b426013548b612aff9190613016565b612b0991906130af565b42612b148b8b613016565b612b1e91906130af565b42612b298a8e613016565b612b3391906130af565b6007545a6040516bffffffffffffffffffffffff194160601b16602082015242906034016040516020818303038152906040528051906020012060001c612b7a91906130af565b612b8444426130e0565b612b8e91906130e0565b612b9891906130e0565b612ba291906130e0565b612bac91906130e0565b612bb691906130e0565b612bc091906130e0565b612bca91906130e0565b612bd491906130e0565b612bde91906130e0565b612be891906130e0565b612bf291906130e0565b604051602001612c0491815260200190565b6040516020818303038152906040528051906020012060001c9050612c2860075490565b612c3290826130af565b612c3c9082612fb8565b9550505050505090565b6001600160e01b031981168114610d3057600080fd5b600060208284031215612c6e57600080fd5b813561104381612c46565b60005b83811015612c94578181015183820152602001612c7c565b838111156112aa5750506000910152565b60008151808452612cbd816020860160208601612c79565b601f01601f19169290920160200192915050565b6020815260006110436020830184612ca5565b600060208284031215612cf657600080fd5b5035919050565b6001600160a01b0381168114610d3057600080fd5b60008060408385031215612d2557600080fd5b8235612d3081612cfd565b946020939093013593505050565b600080600060608486031215612d5357600080fd5b8335612d5e81612cfd565b92506020840135612d6e81612cfd565b929592945050506040919091013590565b600060208284031215612d9157600080fd5b813561104381612cfd565b60008060408385031215612daf57600080fd5b823591506020830135612dc181612cfd565b809150509250929050565b600080600060608486031215612de157600080fd5b8335612dec81612cfd565b9250602084013591506040840135612e0381612cfd565b809150509250925092565b8015158114610d3057600080fd5b60008060408385031215612e2f57600080fd5b8235612e3a81612cfd565b91506020830135612dc181612e0e565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215612e7657600080fd5b8435612e8181612cfd565b93506020850135612e9181612cfd565b925060408501359150606085013567ffffffffffffffff80821115612eb557600080fd5b818701915087601f830112612ec957600080fd5b813581811115612edb57612edb612e4a565b604051601f8201601f19908116603f01168101908382118183101715612f0357612f03612e4a565b816040528281528a6020848701011115612f1c57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215612f5357600080fd5b8235612f5e81612cfd565b91506020830135612dc181612cfd565b600181811c90821680612f8257607f821691505b6020821081036125d757634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082821015612fca57612fca612fa2565b500390565b634e487b7160e01b600052601260045260246000fd5b600082612ff457612ff4612fcf565b500690565b60006020828403121561300b57600080fd5b815161104381612c46565b600081600019048311821515161561303057613030612fa2565b500290565b60006001600160a01b038087168352808616602084015250836040830152608060608301526123916080830184612ca5565b60008351613079818460208801612c79565b83519083019061308d818360208801612c79565b01949350505050565b6000602082840312156130a857600080fd5b5051919050565b6000826130be576130be612fcf565b500490565b6000602082840312156130d557600080fd5b815161104381612e0e565b600082198211156130f3576130f3612fa2565b500190565b60006020828403121561310a57600080fd5b815161104381612cfd565b6000600019820361312857613128612fa2565b5060010190565b634e487b7160e01b600052603260045260246000fd5b805169ffffffffffffffffffff811681146125d957600080fd5b600080600080600060a0868803121561317757600080fd5b61318086613145565b94506020860151935060408601519250606086015191506131a360808701613145565b9050929550929590935056fe68747470733a2f2f706978656c707570732d6170692e73686962746f6b656e2e6172742f6170692f7472616974732fa26469706673582212209afc300b18270b558c580da667bd6f41296c3faef3060f1878d64e4af168bdd664736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000095ad61b0a150d79219dcf64e1e6cc01f0b64c4ce00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000005000000000000000000000000547a514d5e3769680ce22b2361c10ea13619e8a90000000000000000000000009441d7556e7820b5ca42082cfa99487d56aca958000000000000000000000000f4030086522a5beea4988f8ca5b36dbc97bee88c0000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b84190000000000000000000000007bac85a8a13a4bcd8abb3eb7d6b4d632c5a57676
-----Decoded View---------------
Arg [0] : burnTokenAddress (address): 0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE
Arg [1] : priceFeeds (address[]): 0x547a514d5e3769680Ce22B2361c10Ea13619e8a9,0x9441D7556e7820B5ca42082cfa99487D56AcA958,0xF4030086522a5bEEa4988F8cA5B36dbC97BeE88c,0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419,0x7bAC85A8a13A4BcD8abb3eB7d6b4d632c5a57676
-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 00000000000000000000000095ad61b0a150d79219dcf64e1e6cc01f0b64c4ce
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [3] : 000000000000000000000000547a514d5e3769680ce22b2361c10ea13619e8a9
Arg [4] : 0000000000000000000000009441d7556e7820b5ca42082cfa99487d56aca958
Arg [5] : 000000000000000000000000f4030086522a5beea4988f8ca5b36dbc97bee88c
Arg [6] : 0000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b8419
Arg [7] : 0000000000000000000000007bac85a8a13a4bcd8abb3eb7d6b4d632c5a57676
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.