ERC-721
NFT
Overview
Max Total Supply
333 $OPOE
Holders
236
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
0 $OPOELoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
OPOE
Compiler Version
v0.8.20+commit.a1b79de6
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-10-02 */ // File: @openzeppelin/contracts/utils/math/Math.sol // OpenZeppelin Contracts (last updated v4.7.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. It the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. // We also know that `k`, the position of the most significant bit, is such that `msb(a) = 2**k`. // This gives `2**k < a <= 2**(k+1)` → `2**(k/2) <= sqrt(a) < 2 ** (k/2+1)`. // Using an algorithm similar to the msb conmputation, we are able to compute `result = 2**(k/2)` which is a // good first aproximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1; uint256 x = a; if (x >> 128 > 0) { x >>= 128; result <<= 64; } if (x >> 64 > 0) { x >>= 64; result <<= 32; } if (x >> 32 > 0) { x >>= 32; result <<= 16; } if (x >> 16 > 0) { x >>= 16; result <<= 8; } if (x >> 8 > 0) { x >>= 8; result <<= 4; } if (x >> 4 > 0) { x >>= 4; result <<= 2; } if (x >> 2 > 0) { result <<= 1; } // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { uint256 result = sqrt(a); if (rounding == Rounding.Up && result * result < a) { result += 1; } return result; } } // File: @openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); } // File: @openzeppelin/contracts/token/ERC20/IERC20.sol // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the 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 `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount ) external returns (bool); } // File: @openzeppelin/contracts/security/ReentrancyGuard.sol // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } // File: @openzeppelin/contracts/utils/Counters.sol // 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; } } // File: @openzeppelin/contracts/utils/Strings.sol // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @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); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } } // File: @openzeppelin/contracts/utils/Context.sol // 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; } } // File: @openzeppelin/contracts/access/Ownable.sol // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @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 Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { 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); } } // File: @openzeppelin/contracts/utils/Address.sol // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File: @openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // File: @openzeppelin/contracts/finance/PaymentSplitter.sol // OpenZeppelin Contracts (last updated v4.7.0) (finance/PaymentSplitter.sol) pragma solidity ^0.8.0; /** * @title PaymentSplitter * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware * that the Ether will be split in this way, since it is handled transparently by the contract. * * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim * an amount proportional to the percentage of total shares they were assigned. The distribution of shares is set at the * time of contract deployment and can't be updated thereafter. * * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release} * function. * * NOTE: This contract assumes that ERC20 tokens will behave similarly to native tokens (Ether). Rebasing tokens, and * tokens that apply fees during transfers, are likely to not be supported as expected. If in doubt, we encourage you * to run tests before sending real value to this contract. */ contract PaymentSplitter is Context { event PayeeAdded(address account, uint256 shares); event PaymentReleased(address to, uint256 amount); event ERC20PaymentReleased(IERC20 indexed token, address to, uint256 amount); event PaymentReceived(address from, uint256 amount); uint256 private _totalShares; uint256 private _totalReleased; mapping(address => uint256) private _shares; mapping(address => uint256) private _released; address[] private _payees; mapping(IERC20 => uint256) private _erc20TotalReleased; mapping(IERC20 => mapping(address => uint256)) private _erc20Released; /** * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at * the matching position in the `shares` array. * * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no * duplicates in `payees`. */ constructor(address[] memory payees, uint256[] memory shares_) payable { require(payees.length == shares_.length, "PaymentSplitter: payees and shares length mismatch"); require(payees.length > 0, "PaymentSplitter: no payees"); for (uint256 i = 0; i < payees.length; i++) { _addPayee(payees[i], shares_[i]); } } /** * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the * reliability of the events, and not the actual splitting of Ether. * * To learn more about this see the Solidity documentation for * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback * functions]. */ receive() external payable virtual { emit PaymentReceived(_msgSender(), msg.value); } /** * @dev Getter for the total shares held by payees. */ function totalShares() public view returns (uint256) { return _totalShares; } /** * @dev Getter for the total amount of Ether already released. */ function totalReleased() public view returns (uint256) { return _totalReleased; } /** * @dev Getter for the total amount of `token` already released. `token` should be the address of an IERC20 * contract. */ function totalReleased(IERC20 token) public view returns (uint256) { return _erc20TotalReleased[token]; } /** * @dev Getter for the amount of shares held by an account. */ function shares(address account) public view returns (uint256) { return _shares[account]; } /** * @dev Getter for the amount of Ether already released to a payee. */ function released(address account) public view returns (uint256) { return _released[account]; } /** * @dev Getter for the amount of `token` tokens already released to a payee. `token` should be the address of an * IERC20 contract. */ function released(IERC20 token, address account) public view returns (uint256) { return _erc20Released[token][account]; } /** * @dev Getter for the address of the payee number `index`. */ function payee(uint256 index) public view returns (address) { return _payees[index]; } /** * @dev Getter for the amount of payee's releasable Ether. */ function releasable(address account) public view returns (uint256) { uint256 totalReceived = address(this).balance + totalReleased(); return _pendingPayment(account, totalReceived, released(account)); } /** * @dev Getter for the amount of payee's releasable `token` tokens. `token` should be the address of an * IERC20 contract. */ function releasable(IERC20 token, address account) public view returns (uint256) { uint256 totalReceived = token.balanceOf(address(this)) + totalReleased(token); return _pendingPayment(account, totalReceived, released(token, account)); } /** * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the * total shares and their previous withdrawals. */ function release(address payable account) public virtual { require(_shares[account] > 0, "PaymentSplitter: account has no shares"); uint256 payment = releasable(account); require(payment != 0, "PaymentSplitter: account is not due payment"); _released[account] += payment; _totalReleased += payment; Address.sendValue(account, payment); emit PaymentReleased(account, payment); } /** * @dev Triggers a transfer to `account` of the amount of `token` tokens they are owed, according to their * percentage of the total shares and their previous withdrawals. `token` must be the address of an IERC20 * contract. */ function release(IERC20 token, address account) public virtual { require(_shares[account] > 0, "PaymentSplitter: account has no shares"); uint256 payment = releasable(token, account); require(payment != 0, "PaymentSplitter: account is not due payment"); _erc20Released[token][account] += payment; _erc20TotalReleased[token] += payment; SafeERC20.safeTransfer(token, account, payment); emit ERC20PaymentReleased(token, account, payment); } /** * @dev internal logic for computing the pending payment of an `account` given the token historical balances and * already released amounts. */ function _pendingPayment( address account, uint256 totalReceived, uint256 alreadyReleased ) private view returns (uint256) { return (totalReceived * _shares[account]) / _totalShares - alreadyReleased; } /** * @dev Add a new payee to the contract. * @param account The address of the payee to add. * @param shares_ The number of shares owned by the payee. */ function _addPayee(address account, uint256 shares_) private { require(account != address(0), "PaymentSplitter: account is the zero address"); require(shares_ > 0, "PaymentSplitter: shares are 0"); require(_shares[account] == 0, "PaymentSplitter: account already has shares"); _payees.push(account); _shares[account] = shares_; _totalShares = _totalShares + shares_; emit PayeeAdded(account, shares_); } } // File: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } // File: @openzeppelin/contracts/utils/introspection/IERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File: @openzeppelin/contracts/utils/introspection/ERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } // File: @openzeppelin/contracts/token/ERC721/IERC721.sol // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); } // File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); } // File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); } // File: @openzeppelin/contracts/token/ERC721/ERC721.sol // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _safeTransfer(from, to, tokenId, data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @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. * - `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 tokenId ) internal virtual {} } // File: @openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } } interface IPRE { function balanceOf(address user) external view returns (uint256); } contract OPOE is ERC721, ERC721Enumerable, Ownable, ReentrancyGuard { using Counters for Counters.Counter; string private _api_entry; address public token = 0x33CAF58D14d7cd284cc2D7F2bc878D2D63C8956A; mapping (address => bool) private checkMint; Counters.Counter private _tokenIds; uint16 public constant MAX_SUPPLY = 333; uint256 private balanceRequired = 100000 * 10**8; error AlreadyMinted(); error ExceedMaxSupply(); constructor() ERC721("Only Possible On Ethereum", "$OPOE") { _api_entry = "https://nft.opoe.vip/meta/"; _tokenIds.increment(); } function contractURI() public pure returns (string memory) { return "https://nft.opoe.vip/contract/"; } function _baseURI() internal view override returns (string memory) { return _api_entry; } modifier canMint() { uint256 supply = totalSupply(); if (supply + 1 > MAX_SUPPLY) revert ExceedMaxSupply(); if (checkMint[msg.sender]) revert AlreadyMinted(); _; } function mint() public nonReentrant canMint { require(!isContract(msg.sender), "Stop"); uint256 balance = IPRE(token).balanceOf(msg.sender); if(balance >= balanceRequired) { checkMint[msg.sender] = true; _safeMint(msg.sender, _tokenIds.current()); _tokenIds.increment(); } } function isContract(address addr) internal view returns (bool) { uint size; assembly { size := extcodesize(addr) } return size > 0; } function setToken(address _token) external onlyOwner { token = _token; } function setBalanceReq(uint256 _balanceRequired) external onlyOwner { balanceRequired = _balanceRequired; } function withdraw() public payable onlyOwner { require(payable(msg.sender).send(address(this).balance)); } function walletOfOwner(address _owner) external view returns(uint256[] memory) { uint tokenCount = balanceOf(_owner); uint256[] memory tokensId = new uint256[](tokenCount); for(uint i = 0; i < tokenCount; i++){ tokensId[i] = tokenOfOwnerByIndex(_owner, i); } return tokensId; } function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override(ERC721, ERC721Enumerable) { super._beforeTokenTransfer(from, to, tokenId); } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, ERC721Enumerable) returns (bool) { return super.supportsInterface(interfaceId); } function recover(address _token) external onlyOwner { if (_token == 0x0000000000000000000000000000000000000000) { payable(msg.sender).call{value: address(this).balance}(""); } else { IERC20 Token = IERC20(_token); Token.transfer(msg.sender, Token.balanceOf(address(this))); } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyMinted","type":"error"},{"inputs":[],"name":"ExceedMaxSupply","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[],"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":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"recover","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_balanceRequired","type":"uint256"}],"name":"setBalanceReq","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"setToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
6080604052600d80546001600160a01b0319167333caf58d14d7cd284cc2d7f2bc878d2d63c8956a1790556509184e72a00060105534801562000040575f80fd5b506040518060400160405280601981526020017f4f6e6c7920506f737369626c65204f6e20457468657265756d0000000000000081525060405180604001604052806005815260200164244f504f4560d81b815250815f9081620000a5919062000224565b506001620000b4828262000224565b505050620000d1620000cb6200012f60201b60201c565b62000133565b6001600b5560408051808201909152601a81527f68747470733a2f2f6e66742e6f706f652e7669702f6d6574612f0000000000006020820152600c9062000119908262000224565b5062000129600f80546001019055565b620002ec565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b634e487b7160e01b5f52604160045260245ffd5b600181811c90821680620001ad57607f821691505b602082108103620001cc57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f8211156200021f575f81815260208120601f850160051c81016020861015620001fa5750805b601f850160051c820191505b818110156200021b5782815560010162000206565b5050505b505050565b81516001600160401b0381111562000240576200024062000184565b620002588162000251845462000198565b84620001d2565b602080601f8311600181146200028e575f8415620002765750858301515b5f19600386901b1c1916600185901b1785556200021b565b5f85815260208120601f198616915b82811015620002be578886015182559484019460019091019084016200029d565b5085821015620002dc57878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b611f0b80620002fa5f395ff3fe6080604052600436106101af575f3560e01c80634f6ccce7116100e7578063aeb42f0a11610087578063e8a3d48511610062578063e8a3d485146104a7578063e985e9c5146104ec578063f2fde38b14610533578063fc0c546a14610552575f80fd5b8063aeb42f0a1461044a578063b88d4fde14610469578063c87b56dd14610488575f80fd5b8063715018a6116100c2578063715018a6146103e65780638da5cb5b146103fa57806395d89b4114610417578063a22cb4651461042b575f80fd5b80634f6ccce7146103895780636352211e146103a857806370a08231146103c7575f80fd5b806318160ddd1161015257806332cb6b0c1161012d57806332cb6b0c1461030e5780633ccfd60b1461033657806342842e0e1461033e578063438b63001461035d575f80fd5b806318160ddd146102b257806323b872dd146102d05780632f745c59146102ef575f80fd5b8063095ea7b31161018d578063095ea7b31461023f5780630cd865ec146102605780631249c58b1461027f578063144fa6d714610293575f80fd5b806301ffc9a7146101b357806306fdde03146101e7578063081812fc14610208575b5f80fd5b3480156101be575f80fd5b506101d26101cd3660046119cd565b610571565b60405190151581526020015b60405180910390f35b3480156101f2575f80fd5b506101fb610581565b6040516101de9190611a35565b348015610213575f80fd5b50610227610222366004611a47565b610610565b6040516001600160a01b0390911681526020016101de565b34801561024a575f80fd5b5061025e610259366004611a79565b610635565b005b34801561026b575f80fd5b5061025e61027a366004611aa1565b61074e565b34801561028a575f80fd5b5061025e61088f565b34801561029e575f80fd5b5061025e6102ad366004611aa1565b610a3e565b3480156102bd575f80fd5b506008545b6040519081526020016101de565b3480156102db575f80fd5b5061025e6102ea366004611aba565b610a68565b3480156102fa575f80fd5b506102c2610309366004611a79565b610a99565b348015610319575f80fd5b5061032361014d81565b60405161ffff90911681526020016101de565b61025e610b2d565b348015610349575f80fd5b5061025e610358366004611aba565b610b59565b348015610368575f80fd5b5061037c610377366004611aa1565b610b73565b6040516101de9190611af3565b348015610394575f80fd5b506102c26103a3366004611a47565b610c12565b3480156103b3575f80fd5b506102276103c2366004611a47565b610ca2565b3480156103d2575f80fd5b506102c26103e1366004611aa1565b610d01565b3480156103f1575f80fd5b5061025e610d85565b348015610405575f80fd5b50600a546001600160a01b0316610227565b348015610422575f80fd5b506101fb610d96565b348015610436575f80fd5b5061025e610445366004611b43565b610da5565b348015610455575f80fd5b5061025e610464366004611a47565b610db4565b348015610474575f80fd5b5061025e610483366004611b8c565b610dc1565b348015610493575f80fd5b506101fb6104a2366004611a47565b610df3565b3480156104b2575f80fd5b5060408051808201909152601e81527f68747470733a2f2f6e66742e6f706f652e7669702f636f6e74726163742f000060208201526101fb565b3480156104f7575f80fd5b506101d2610506366004611c61565b6001600160a01b039182165f90815260056020908152604080832093909416825291909152205460ff1690565b34801561053e575f80fd5b5061025e61054d366004611aa1565b610e57565b34801561055d575f80fd5b50600d54610227906001600160a01b031681565b5f61057b82610ecd565b92915050565b60605f805461058f90611c92565b80601f01602080910402602001604051908101604052809291908181526020018280546105bb90611c92565b80156106065780601f106105dd57610100808354040283529160200191610606565b820191905f5260205f20905b8154815290600101906020018083116105e957829003601f168201915b5050505050905090565b5f61061a82610ef1565b505f908152600460205260409020546001600160a01b031690565b5f61063f82610ca2565b9050806001600160a01b0316836001600160a01b0316036106b15760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b03821614806106cd57506106cd8133610506565b61073f5760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c000060648201526084016106a8565b6107498383610f4f565b505050565b610756610fbc565b6001600160a01b0381165f036107ae57604051339047905f81818185875af1925050503d805f81146107a3576040519150601f19603f3d011682016040523d82523d5f602084013e6107a8565b606091505b50505050565b6040516370a0823160e01b815230600482015281906001600160a01b0382169063a9059cbb90339083906370a0823190602401602060405180830381865afa1580156107fc573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108209190611cca565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303815f875af1158015610868573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107499190611ce1565b50565b6002600b54036108e15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016106a8565b6002600b555f6108f060085490565b905061014d610900826001611d10565b111561091f57604051630f0c37b960e11b815260040160405180910390fd5b335f908152600e602052604090205460ff161561094f57604051631bbdf5c560e31b815260040160405180910390fd5b333b156109875760405162461bcd60e51b81526004016106a890602080825260049082015263053746f760e41b604082015260600190565b600d546040516370a0823160e01b81523360048201525f916001600160a01b0316906370a0823190602401602060405180830381865afa1580156109cd573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109f19190611cca565b90506010548110610a3557335f818152600e60205260409020805460ff19166001179055610a2790610a22600f5490565b611016565b610a35600f80546001019055565b50506001600b55565b610a46610fbc565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b610a72338261102f565b610a8e5760405162461bcd60e51b81526004016106a890611d23565b6107498383836110ac565b5f610aa383610d01565b8210610b055760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016106a8565b506001600160a01b03919091165f908152600660209081526040808320938352929052205490565b610b35610fbc565b60405133904780156108fc02915f818181858888f19350505050610b57575f80fd5b565b61074983838360405180602001604052805f815250610dc1565b60605f610b7f83610d01565b90505f8167ffffffffffffffff811115610b9b57610b9b611b78565b604051908082528060200260200182016040528015610bc4578160200160208202803683370190505b5090505f5b82811015610c0a57610bdb8582610a99565b828281518110610bed57610bed611d71565b602090810291909101015280610c0281611d85565b915050610bc9565b509392505050565b5f610c1c60085490565b8210610c7f5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016106a8565b60088281548110610c9257610c92611d71565b905f5260205f2001549050919050565b5f818152600260205260408120546001600160a01b03168061057b5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016106a8565b5f6001600160a01b038216610d6a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016106a8565b506001600160a01b03165f9081526003602052604090205490565b610d8d610fbc565b610b575f61124f565b60606001805461058f90611c92565b610db03383836112a0565b5050565b610dbc610fbc565b601055565b610dcb338361102f565b610de75760405162461bcd60e51b81526004016106a890611d23565b6107a88484848461136d565b6060610dfe82610ef1565b5f610e076113a0565b90505f815111610e255760405180602001604052805f815250610e50565b80610e2f846113af565b604051602001610e40929190611d9d565b6040516020818303038152906040525b9392505050565b610e5f610fbc565b6001600160a01b038116610ec45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106a8565b61088c8161124f565b5f6001600160e01b0319821663780e9d6360e01b148061057b575061057b826114ac565b5f818152600260205260409020546001600160a01b031661088c5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016106a8565b5f81815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610f8382610ca2565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600a546001600160a01b03163314610b575760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106a8565b610db0828260405180602001604052805f8152506114fb565b5f8061103a83610ca2565b9050806001600160a01b0316846001600160a01b0316148061108057506001600160a01b038082165f9081526005602090815260408083209388168352929052205460ff165b806110a45750836001600160a01b031661109984610610565b6001600160a01b0316145b949350505050565b826001600160a01b03166110bf82610ca2565b6001600160a01b0316146111235760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016106a8565b6001600160a01b0382166111855760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016106a8565b61119083838361152d565b61119a5f82610f4f565b6001600160a01b0383165f9081526003602052604081208054600192906111c2908490611dcb565b90915550506001600160a01b0382165f9081526003602052604081208054600192906111ef908490611d10565b90915550505f8181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b816001600160a01b0316836001600160a01b0316036113015760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016106a8565b6001600160a01b038381165f81815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6113788484846110ac565b61138484848484611538565b6107a85760405162461bcd60e51b81526004016106a890611dde565b6060600c805461058f90611c92565b6060815f036113d55750506040805180820190915260018152600360fc1b602082015290565b815f5b81156113fe57806113e881611d85565b91506113f79050600a83611e44565b91506113d8565b5f8167ffffffffffffffff81111561141857611418611b78565b6040519080825280601f01601f191660200182016040528015611442576020820181803683370190505b5090505b84156110a457611457600183611dcb565b9150611464600a86611e57565b61146f906030611d10565b60f81b81838151811061148457611484611d71565b60200101906001600160f81b03191690815f1a9053506114a5600a86611e44565b9450611446565b5f6001600160e01b031982166380ac58cd60e01b14806114dc57506001600160e01b03198216635b5e139f60e01b145b8061057b57506301ffc9a760e01b6001600160e01b031983161461057b565b6115058383611635565b6115115f848484611538565b6107495760405162461bcd60e51b81526004016106a890611dde565b61074983838361177f565b5f6001600160a01b0384163b1561162a57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061157b903390899088908890600401611e6a565b6020604051808303815f875af19250505080156115b5575060408051601f3d908101601f191682019092526115b291810190611ea6565b60015b611610573d8080156115e2576040519150601f19603f3d011682016040523d82523d5f602084013e6115e7565b606091505b5080515f036116085760405162461bcd60e51b81526004016106a890611dde565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506110a4565b506001949350505050565b6001600160a01b03821661168b5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016106a8565b5f818152600260205260409020546001600160a01b0316156116ef5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016106a8565b6116fa5f838361152d565b6001600160a01b0382165f908152600360205260408120805460019290611722908490611d10565b90915550505f8181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160a01b0383166117d9576117d481600880545f838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6117fc565b816001600160a01b0316836001600160a01b0316146117fc576117fc8382611836565b6001600160a01b03821661181357610749816118cf565b826001600160a01b0316826001600160a01b031614610749576107498282611976565b5f600161184284610d01565b61184c9190611dcb565b5f8381526007602052604090205490915080821461189d576001600160a01b0384165f9081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b505f9182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008545f906118e090600190611dcb565b5f838152600960205260408120546008805493945090928490811061190757611907611d71565b905f5260205f2001549050806008838154811061192657611926611d71565b5f91825260208083209091019290925582815260099091526040808220849055858252812055600880548061195d5761195d611ec1565b600190038181905f5260205f20015f9055905550505050565b5f61198083610d01565b6001600160a01b039093165f908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160e01b03198116811461088c575f80fd5b5f602082840312156119dd575f80fd5b8135610e50816119b8565b5f5b83811015611a025781810151838201526020016119ea565b50505f910152565b5f8151808452611a218160208601602086016119e8565b601f01601f19169290920160200192915050565b602081525f610e506020830184611a0a565b5f60208284031215611a57575f80fd5b5035919050565b80356001600160a01b0381168114611a74575f80fd5b919050565b5f8060408385031215611a8a575f80fd5b611a9383611a5e565b946020939093013593505050565b5f60208284031215611ab1575f80fd5b610e5082611a5e565b5f805f60608486031215611acc575f80fd5b611ad584611a5e565b9250611ae360208501611a5e565b9150604084013590509250925092565b602080825282518282018190525f9190848201906040850190845b81811015611b2a57835183529284019291840191600101611b0e565b50909695505050505050565b801515811461088c575f80fd5b5f8060408385031215611b54575f80fd5b611b5d83611a5e565b91506020830135611b6d81611b36565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b5f805f8060808587031215611b9f575f80fd5b611ba885611a5e565b9350611bb660208601611a5e565b925060408501359150606085013567ffffffffffffffff80821115611bd9575f80fd5b818701915087601f830112611bec575f80fd5b813581811115611bfe57611bfe611b78565b604051601f8201601f19908116603f01168101908382118183101715611c2657611c26611b78565b816040528281528a6020848701011115611c3e575f80fd5b826020860160208301375f60208483010152809550505050505092959194509250565b5f8060408385031215611c72575f80fd5b611c7b83611a5e565b9150611c8960208401611a5e565b90509250929050565b600181811c90821680611ca657607f821691505b602082108103611cc457634e487b7160e01b5f52602260045260245ffd5b50919050565b5f60208284031215611cda575f80fd5b5051919050565b5f60208284031215611cf1575f80fd5b8151610e5081611b36565b634e487b7160e01b5f52601160045260245ffd5b8082018082111561057b5761057b611cfc565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b634e487b7160e01b5f52603260045260245ffd5b5f60018201611d9657611d96611cfc565b5060010190565b5f8351611dae8184602088016119e8565b835190830190611dc28183602088016119e8565b01949350505050565b8181038181111561057b5761057b611cfc565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b5f52601260045260245ffd5b5f82611e5257611e52611e30565b500490565b5f82611e6557611e65611e30565b500690565b6001600160a01b03858116825284166020820152604081018390526080606082018190525f90611e9c90830184611a0a565b9695505050505050565b5f60208284031215611eb6575f80fd5b8151610e50816119b8565b634e487b7160e01b5f52603160045260245ffdfea26469706673582212201197a790bb3820773323a0c3ae291c2c7d2f577abbc4d85885dffe88a204f34c64736f6c63430008140033
Deployed Bytecode
0x6080604052600436106101af575f3560e01c80634f6ccce7116100e7578063aeb42f0a11610087578063e8a3d48511610062578063e8a3d485146104a7578063e985e9c5146104ec578063f2fde38b14610533578063fc0c546a14610552575f80fd5b8063aeb42f0a1461044a578063b88d4fde14610469578063c87b56dd14610488575f80fd5b8063715018a6116100c2578063715018a6146103e65780638da5cb5b146103fa57806395d89b4114610417578063a22cb4651461042b575f80fd5b80634f6ccce7146103895780636352211e146103a857806370a08231146103c7575f80fd5b806318160ddd1161015257806332cb6b0c1161012d57806332cb6b0c1461030e5780633ccfd60b1461033657806342842e0e1461033e578063438b63001461035d575f80fd5b806318160ddd146102b257806323b872dd146102d05780632f745c59146102ef575f80fd5b8063095ea7b31161018d578063095ea7b31461023f5780630cd865ec146102605780631249c58b1461027f578063144fa6d714610293575f80fd5b806301ffc9a7146101b357806306fdde03146101e7578063081812fc14610208575b5f80fd5b3480156101be575f80fd5b506101d26101cd3660046119cd565b610571565b60405190151581526020015b60405180910390f35b3480156101f2575f80fd5b506101fb610581565b6040516101de9190611a35565b348015610213575f80fd5b50610227610222366004611a47565b610610565b6040516001600160a01b0390911681526020016101de565b34801561024a575f80fd5b5061025e610259366004611a79565b610635565b005b34801561026b575f80fd5b5061025e61027a366004611aa1565b61074e565b34801561028a575f80fd5b5061025e61088f565b34801561029e575f80fd5b5061025e6102ad366004611aa1565b610a3e565b3480156102bd575f80fd5b506008545b6040519081526020016101de565b3480156102db575f80fd5b5061025e6102ea366004611aba565b610a68565b3480156102fa575f80fd5b506102c2610309366004611a79565b610a99565b348015610319575f80fd5b5061032361014d81565b60405161ffff90911681526020016101de565b61025e610b2d565b348015610349575f80fd5b5061025e610358366004611aba565b610b59565b348015610368575f80fd5b5061037c610377366004611aa1565b610b73565b6040516101de9190611af3565b348015610394575f80fd5b506102c26103a3366004611a47565b610c12565b3480156103b3575f80fd5b506102276103c2366004611a47565b610ca2565b3480156103d2575f80fd5b506102c26103e1366004611aa1565b610d01565b3480156103f1575f80fd5b5061025e610d85565b348015610405575f80fd5b50600a546001600160a01b0316610227565b348015610422575f80fd5b506101fb610d96565b348015610436575f80fd5b5061025e610445366004611b43565b610da5565b348015610455575f80fd5b5061025e610464366004611a47565b610db4565b348015610474575f80fd5b5061025e610483366004611b8c565b610dc1565b348015610493575f80fd5b506101fb6104a2366004611a47565b610df3565b3480156104b2575f80fd5b5060408051808201909152601e81527f68747470733a2f2f6e66742e6f706f652e7669702f636f6e74726163742f000060208201526101fb565b3480156104f7575f80fd5b506101d2610506366004611c61565b6001600160a01b039182165f90815260056020908152604080832093909416825291909152205460ff1690565b34801561053e575f80fd5b5061025e61054d366004611aa1565b610e57565b34801561055d575f80fd5b50600d54610227906001600160a01b031681565b5f61057b82610ecd565b92915050565b60605f805461058f90611c92565b80601f01602080910402602001604051908101604052809291908181526020018280546105bb90611c92565b80156106065780601f106105dd57610100808354040283529160200191610606565b820191905f5260205f20905b8154815290600101906020018083116105e957829003601f168201915b5050505050905090565b5f61061a82610ef1565b505f908152600460205260409020546001600160a01b031690565b5f61063f82610ca2565b9050806001600160a01b0316836001600160a01b0316036106b15760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b03821614806106cd57506106cd8133610506565b61073f5760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c000060648201526084016106a8565b6107498383610f4f565b505050565b610756610fbc565b6001600160a01b0381165f036107ae57604051339047905f81818185875af1925050503d805f81146107a3576040519150601f19603f3d011682016040523d82523d5f602084013e6107a8565b606091505b50505050565b6040516370a0823160e01b815230600482015281906001600160a01b0382169063a9059cbb90339083906370a0823190602401602060405180830381865afa1580156107fc573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108209190611cca565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303815f875af1158015610868573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107499190611ce1565b50565b6002600b54036108e15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016106a8565b6002600b555f6108f060085490565b905061014d610900826001611d10565b111561091f57604051630f0c37b960e11b815260040160405180910390fd5b335f908152600e602052604090205460ff161561094f57604051631bbdf5c560e31b815260040160405180910390fd5b333b156109875760405162461bcd60e51b81526004016106a890602080825260049082015263053746f760e41b604082015260600190565b600d546040516370a0823160e01b81523360048201525f916001600160a01b0316906370a0823190602401602060405180830381865afa1580156109cd573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109f19190611cca565b90506010548110610a3557335f818152600e60205260409020805460ff19166001179055610a2790610a22600f5490565b611016565b610a35600f80546001019055565b50506001600b55565b610a46610fbc565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b610a72338261102f565b610a8e5760405162461bcd60e51b81526004016106a890611d23565b6107498383836110ac565b5f610aa383610d01565b8210610b055760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016106a8565b506001600160a01b03919091165f908152600660209081526040808320938352929052205490565b610b35610fbc565b60405133904780156108fc02915f818181858888f19350505050610b57575f80fd5b565b61074983838360405180602001604052805f815250610dc1565b60605f610b7f83610d01565b90505f8167ffffffffffffffff811115610b9b57610b9b611b78565b604051908082528060200260200182016040528015610bc4578160200160208202803683370190505b5090505f5b82811015610c0a57610bdb8582610a99565b828281518110610bed57610bed611d71565b602090810291909101015280610c0281611d85565b915050610bc9565b509392505050565b5f610c1c60085490565b8210610c7f5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016106a8565b60088281548110610c9257610c92611d71565b905f5260205f2001549050919050565b5f818152600260205260408120546001600160a01b03168061057b5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016106a8565b5f6001600160a01b038216610d6a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016106a8565b506001600160a01b03165f9081526003602052604090205490565b610d8d610fbc565b610b575f61124f565b60606001805461058f90611c92565b610db03383836112a0565b5050565b610dbc610fbc565b601055565b610dcb338361102f565b610de75760405162461bcd60e51b81526004016106a890611d23565b6107a88484848461136d565b6060610dfe82610ef1565b5f610e076113a0565b90505f815111610e255760405180602001604052805f815250610e50565b80610e2f846113af565b604051602001610e40929190611d9d565b6040516020818303038152906040525b9392505050565b610e5f610fbc565b6001600160a01b038116610ec45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106a8565b61088c8161124f565b5f6001600160e01b0319821663780e9d6360e01b148061057b575061057b826114ac565b5f818152600260205260409020546001600160a01b031661088c5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016106a8565b5f81815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610f8382610ca2565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600a546001600160a01b03163314610b575760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106a8565b610db0828260405180602001604052805f8152506114fb565b5f8061103a83610ca2565b9050806001600160a01b0316846001600160a01b0316148061108057506001600160a01b038082165f9081526005602090815260408083209388168352929052205460ff165b806110a45750836001600160a01b031661109984610610565b6001600160a01b0316145b949350505050565b826001600160a01b03166110bf82610ca2565b6001600160a01b0316146111235760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016106a8565b6001600160a01b0382166111855760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016106a8565b61119083838361152d565b61119a5f82610f4f565b6001600160a01b0383165f9081526003602052604081208054600192906111c2908490611dcb565b90915550506001600160a01b0382165f9081526003602052604081208054600192906111ef908490611d10565b90915550505f8181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b816001600160a01b0316836001600160a01b0316036113015760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016106a8565b6001600160a01b038381165f81815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6113788484846110ac565b61138484848484611538565b6107a85760405162461bcd60e51b81526004016106a890611dde565b6060600c805461058f90611c92565b6060815f036113d55750506040805180820190915260018152600360fc1b602082015290565b815f5b81156113fe57806113e881611d85565b91506113f79050600a83611e44565b91506113d8565b5f8167ffffffffffffffff81111561141857611418611b78565b6040519080825280601f01601f191660200182016040528015611442576020820181803683370190505b5090505b84156110a457611457600183611dcb565b9150611464600a86611e57565b61146f906030611d10565b60f81b81838151811061148457611484611d71565b60200101906001600160f81b03191690815f1a9053506114a5600a86611e44565b9450611446565b5f6001600160e01b031982166380ac58cd60e01b14806114dc57506001600160e01b03198216635b5e139f60e01b145b8061057b57506301ffc9a760e01b6001600160e01b031983161461057b565b6115058383611635565b6115115f848484611538565b6107495760405162461bcd60e51b81526004016106a890611dde565b61074983838361177f565b5f6001600160a01b0384163b1561162a57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061157b903390899088908890600401611e6a565b6020604051808303815f875af19250505080156115b5575060408051601f3d908101601f191682019092526115b291810190611ea6565b60015b611610573d8080156115e2576040519150601f19603f3d011682016040523d82523d5f602084013e6115e7565b606091505b5080515f036116085760405162461bcd60e51b81526004016106a890611dde565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506110a4565b506001949350505050565b6001600160a01b03821661168b5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016106a8565b5f818152600260205260409020546001600160a01b0316156116ef5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016106a8565b6116fa5f838361152d565b6001600160a01b0382165f908152600360205260408120805460019290611722908490611d10565b90915550505f8181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160a01b0383166117d9576117d481600880545f838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6117fc565b816001600160a01b0316836001600160a01b0316146117fc576117fc8382611836565b6001600160a01b03821661181357610749816118cf565b826001600160a01b0316826001600160a01b031614610749576107498282611976565b5f600161184284610d01565b61184c9190611dcb565b5f8381526007602052604090205490915080821461189d576001600160a01b0384165f9081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b505f9182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008545f906118e090600190611dcb565b5f838152600960205260408120546008805493945090928490811061190757611907611d71565b905f5260205f2001549050806008838154811061192657611926611d71565b5f91825260208083209091019290925582815260099091526040808220849055858252812055600880548061195d5761195d611ec1565b600190038181905f5260205f20015f9055905550505050565b5f61198083610d01565b6001600160a01b039093165f908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160e01b03198116811461088c575f80fd5b5f602082840312156119dd575f80fd5b8135610e50816119b8565b5f5b83811015611a025781810151838201526020016119ea565b50505f910152565b5f8151808452611a218160208601602086016119e8565b601f01601f19169290920160200192915050565b602081525f610e506020830184611a0a565b5f60208284031215611a57575f80fd5b5035919050565b80356001600160a01b0381168114611a74575f80fd5b919050565b5f8060408385031215611a8a575f80fd5b611a9383611a5e565b946020939093013593505050565b5f60208284031215611ab1575f80fd5b610e5082611a5e565b5f805f60608486031215611acc575f80fd5b611ad584611a5e565b9250611ae360208501611a5e565b9150604084013590509250925092565b602080825282518282018190525f9190848201906040850190845b81811015611b2a57835183529284019291840191600101611b0e565b50909695505050505050565b801515811461088c575f80fd5b5f8060408385031215611b54575f80fd5b611b5d83611a5e565b91506020830135611b6d81611b36565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b5f805f8060808587031215611b9f575f80fd5b611ba885611a5e565b9350611bb660208601611a5e565b925060408501359150606085013567ffffffffffffffff80821115611bd9575f80fd5b818701915087601f830112611bec575f80fd5b813581811115611bfe57611bfe611b78565b604051601f8201601f19908116603f01168101908382118183101715611c2657611c26611b78565b816040528281528a6020848701011115611c3e575f80fd5b826020860160208301375f60208483010152809550505050505092959194509250565b5f8060408385031215611c72575f80fd5b611c7b83611a5e565b9150611c8960208401611a5e565b90509250929050565b600181811c90821680611ca657607f821691505b602082108103611cc457634e487b7160e01b5f52602260045260245ffd5b50919050565b5f60208284031215611cda575f80fd5b5051919050565b5f60208284031215611cf1575f80fd5b8151610e5081611b36565b634e487b7160e01b5f52601160045260245ffd5b8082018082111561057b5761057b611cfc565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b634e487b7160e01b5f52603260045260245ffd5b5f60018201611d9657611d96611cfc565b5060010190565b5f8351611dae8184602088016119e8565b835190830190611dc28183602088016119e8565b01949350505050565b8181038181111561057b5761057b611cfc565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b5f52601260045260245ffd5b5f82611e5257611e52611e30565b500490565b5f82611e6557611e65611e30565b500690565b6001600160a01b03858116825284166020820152604081018390526080606082018190525f90611e9c90830184611a0a565b9695505050505050565b5f60208284031215611eb6575f80fd5b8151610e50816119b8565b634e487b7160e01b5f52603160045260245ffdfea26469706673582212201197a790bb3820773323a0c3ae291c2c7d2f577abbc4d85885dffe88a204f34c64736f6c63430008140033
Deployed Bytecode Sourcemap
77523:3064:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;80047:179;;;;;;;;;;-1:-1:-1;80047:179:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;80047:179:0;;;;;;;;58015:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;59528:171::-;;;;;;;;;;-1:-1:-1;59528:171:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1697:32:1;;;1679:51;;1667:2;1652:18;59528:171:0;1533:203:1;59045:417:0;;;;;;;;;;-1:-1:-1;59045:417:0;;;;;:::i;:::-;;:::i;:::-;;80234:348;;;;;;;;;;-1:-1:-1;80234:348:0;;;;;:::i;:::-;;:::i;78596:364::-;;;;;;;;;;;;;:::i;79141:87::-;;;;;;;;;;-1:-1:-1;79141:87:0;;;;;:::i;:::-;;:::i;71921:113::-;;;;;;;;;;-1:-1:-1;72009:10:0;:17;71921:113;;;2515:25:1;;;2503:2;2488:18;71921:113:0;2369:177:1;60228:336:0;;;;;;;;;;-1:-1:-1;60228:336:0;;;;;:::i;:::-;;:::i;71589:256::-;;;;;;;;;;-1:-1:-1;71589:256:0;;;;;:::i;:::-;;:::i;77835:39::-;;;;;;;;;;;;77871:3;77835:39;;;;;3058:6:1;3046:19;;;3028:38;;3016:2;3001:18;77835:39:0;2884:188:1;79370:120:0;;;:::i;60635:185::-;;;;;;;;;;-1:-1:-1;60635:185:0;;;;;:::i;:::-;;:::i;79498:344::-;;;;;;;;;;-1:-1:-1;79498:344:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;72111:233::-;;;;;;;;;;-1:-1:-1;72111:233:0;;;;;:::i;:::-;;:::i;57726:222::-;;;;;;;;;;-1:-1:-1;57726:222:0;;;;;:::i;:::-;;:::i;57457:207::-;;;;;;;;;;-1:-1:-1;57457:207:0;;;;;:::i;:::-;;:::i;23821:103::-;;;;;;;;;;;;;:::i;23173:87::-;;;;;;;;;;-1:-1:-1;23246:6:0;;-1:-1:-1;;;;;23246:6:0;23173:87;;58184:104;;;;;;;;;;;;;:::i;59771:155::-;;;;;;;;;;-1:-1:-1;59771:155:0;;;;;:::i;:::-;;:::i;79236:122::-;;;;;;;;;;-1:-1:-1;79236:122:0;;;;;:::i;:::-;;:::i;60891:323::-;;;;;;;;;;-1:-1:-1;60891:323:0;;;;;:::i;:::-;;:::i;58359:281::-;;;;;;;;;;-1:-1:-1;58359:281:0;;;;;:::i;:::-;;:::i;78157:108::-;;;;;;;;;;-1:-1:-1;78221:39:0;;;;;;;;;;;;;;;;;78157:108;;59997:164;;;;;;;;;;-1:-1:-1;59997:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;60118:25:0;;;60094:4;60118:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;59997:164;24079:201;;;;;;;;;;-1:-1:-1;24079:201:0;;;;;:::i;:::-;;:::i;77672:65::-;;;;;;;;;;-1:-1:-1;77672:65:0;;;;-1:-1:-1;;;;;77672:65:0;;;80047:179;80158:4;80182:36;80206:11;80182:23;:36::i;:::-;80175:43;80047:179;-1:-1:-1;;80047:179:0:o;58015:100::-;58069:13;58102:5;58095:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;58015:100;:::o;59528:171::-;59604:7;59624:23;59639:7;59624:14;:23::i;:::-;-1:-1:-1;59667:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;59667:24:0;;59528:171::o;59045:417::-;59126:13;59142:23;59157:7;59142:14;:23::i;:::-;59126:39;;59190:5;-1:-1:-1;;;;;59184:11:0;:2;-1:-1:-1;;;;;59184:11:0;;59176:57;;;;-1:-1:-1;;;59176:57:0;;6284:2:1;59176:57:0;;;6266:21:1;6323:2;6303:18;;;6296:30;6362:34;6342:18;;;6335:62;-1:-1:-1;;;6413:18:1;;;6406:31;6454:19;;59176:57:0;;;;;;;;;21804:10;-1:-1:-1;;;;;59268:21:0;;;;:62;;-1:-1:-1;59293:37:0;59310:5;21804:10;59997:164;:::i;59293:37::-;59246:174;;;;-1:-1:-1;;;59246:174:0;;6686:2:1;59246:174:0;;;6668:21:1;6725:2;6705:18;;;6698:30;6764:34;6744:18;;;6737:62;6835:32;6815:18;;;6808:60;6885:19;;59246:174:0;6484:426:1;59246:174:0;59433:21;59442:2;59446:7;59433:8;:21::i;:::-;59115:347;59045:417;;:::o;80234:348::-;23059:13;:11;:13::i;:::-;-1:-1:-1;;;;;80301:52:0;::::1;80311:42;80301:52:::0;80297:278:::1;;80370:58;::::0;80378:10:::1;::::0;80402:21:::1;::::0;80370:58:::1;::::0;;;80402:21;80378:10;80370:58:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;80234:348:::0;:::o;80297:278::-:1;80532:30;::::0;-1:-1:-1;;;80532:30:0;;80556:4:::1;80532:30;::::0;::::1;1679:51:1::0;80483:6:0;;-1:-1:-1;;;;;80505:14:0;::::1;::::0;::::1;::::0;80520:10:::1;::::0;80505:14;;80532:15:::1;::::0;1652:18:1;;80532:30:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;80505:58;::::0;-1:-1:-1;;;;;;80505:58:0::1;::::0;;;;;;-1:-1:-1;;;;;7506:32:1;;;80505:58:0::1;::::0;::::1;7488:51:1::0;7555:18;;;7548:34;7461:18;;80505:58:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;80297:278::-;80234:348:::0;:::o;78596:364::-;16136:1;16734:7;;:19;16726:63;;;;-1:-1:-1;;;16726:63:0;;8045:2:1;16726:63:0;;;8027:21:1;8084:2;8064:18;;;8057:30;8123:33;8103:18;;;8096:61;8174:18;;16726:63:0;7843:355:1;16726:63:0;16136:1;16867:7;:18;78414:14:::1;78431:13;72009:10:::0;:17;;71921:113;78431:13:::1;78414:30:::0;-1:-1:-1;77871:3:0::1;78459:10;78414:30:::0;78468:1:::1;78459:10;:::i;:::-;:23;78455:53;;;78491:17;;-1:-1:-1::0;;;78491:17:0::1;;;;;;;;;;;78455:53;78533:10;78523:21;::::0;;;:9:::1;:21;::::0;;;;;::::1;;78519:49;;;78553:15;;-1:-1:-1::0;;;78553:15:0::1;;;;;;;;;;;78519:49;78681:10:::2;79081:17:::0;79117:8;78661:40:::2;;;;-1:-1:-1::0;;;78661:40:0::2;;;;;;8667:2:1::0;8649:21;;;8706:1;8686:18;;;8679:29;-1:-1:-1;;;8739:2:1;8724:18;;8717:34;8783:2;8768:18;;8465:327;78661:40:0::2;78737:5;::::0;78732:33:::2;::::0;-1:-1:-1;;;78732:33:0;;78754:10:::2;78732:33;::::0;::::2;1679:51:1::0;78714:15:0::2;::::0;-1:-1:-1;;;;;78737:5:0::2;::::0;78732:21:::2;::::0;1652:18:1;;78732:33:0::2;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;78714:51;;78790:15;;78779:7;:26;78776:180;;78833:10;78823:21;::::0;;;:9:::2;:21;::::0;;;;:28;;-1:-1:-1;;78823:28:0::2;78847:4;78823:28;::::0;;78866:42:::2;::::0;78888:19:::2;:9;18047:14:::0;;17955:114;78888:19:::2;78866:9;:42::i;:::-;78923:21;:9;18166:19:::0;;18184:1;18166:19;;;18077:127;78923:21:::2;-1:-1:-1::0;;16092:1:0;17046:7;:22;78596:364::o;79141:87::-;23059:13;:11;:13::i;:::-;79206:5:::1;:14:::0;;-1:-1:-1;;;;;;79206:14:0::1;-1:-1:-1::0;;;;;79206:14:0;;;::::1;::::0;;;::::1;::::0;;79141:87::o;60228:336::-;60423:41;21804:10;60456:7;60423:18;:41::i;:::-;60415:100;;;;-1:-1:-1;;;60415:100:0;;;;;;;:::i;:::-;60528:28;60538:4;60544:2;60548:7;60528:9;:28::i;71589:256::-;71686:7;71722:23;71739:5;71722:16;:23::i;:::-;71714:5;:31;71706:87;;;;-1:-1:-1;;;71706:87:0;;9414:2:1;71706:87:0;;;9396:21:1;9453:2;9433:18;;;9426:30;9492:34;9472:18;;;9465:62;-1:-1:-1;;;9543:18:1;;;9536:41;9594:19;;71706:87:0;9212:407:1;71706:87:0;-1:-1:-1;;;;;;71811:19:0;;;;;;;;:12;:19;;;;;;;;:26;;;;;;;;;71589:256::o;79370:120::-;23059:13;:11;:13::i;:::-;79434:47:::1;::::0;79442:10:::1;::::0;79459:21:::1;79434:47:::0;::::1;;;::::0;::::1;::::0;;;79459:21;79442:10;79434:47;::::1;;;;;;79426:56;;;::::0;::::1;;79370:120::o:0;60635:185::-;60773:39;60790:4;60796:2;60800:7;60773:39;;;;;;;;;;;;:16;:39::i;79498:344::-;79559:16;79588:15;79606:17;79616:6;79606:9;:17::i;:::-;79588:35;;79636:25;79678:10;79664:25;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;79664:25:0;;79636:53;;79704:6;79700:107;79720:10;79716:1;:14;79700:107;;;79765:30;79785:6;79793:1;79765:19;:30::i;:::-;79751:8;79760:1;79751:11;;;;;;;;:::i;:::-;;;;;;;;;;:44;79732:3;;;;:::i;:::-;;;;79700:107;;;-1:-1:-1;79826:8:0;79498:344;-1:-1:-1;;;79498:344:0:o;72111:233::-;72186:7;72222:30;72009:10;:17;;71921:113;72222:30;72214:5;:38;72206:95;;;;-1:-1:-1;;;72206:95:0;;10098:2:1;72206:95:0;;;10080:21:1;10137:2;10117:18;;;10110:30;10176:34;10156:18;;;10149:62;-1:-1:-1;;;10227:18:1;;;10220:42;10279:19;;72206:95:0;9896:408:1;72206:95:0;72319:10;72330:5;72319:17;;;;;;;;:::i;:::-;;;;;;;;;72312:24;;72111:233;;;:::o;57726:222::-;57798:7;57834:16;;;:7;:16;;;;;;-1:-1:-1;;;;;57834:16:0;;57861:56;;;;-1:-1:-1;;;57861:56:0;;10511:2:1;57861:56:0;;;10493:21:1;10550:2;10530:18;;;10523:30;-1:-1:-1;;;10569:18:1;;;10562:54;10633:18;;57861:56:0;10309:348:1;57457:207:0;57529:7;-1:-1:-1;;;;;57557:19:0;;57549:73;;;;-1:-1:-1;;;57549:73:0;;10864:2:1;57549:73:0;;;10846:21:1;10903:2;10883:18;;;10876:30;10942:34;10922:18;;;10915:62;-1:-1:-1;;;10993:18:1;;;10986:39;11042:19;;57549:73:0;10662:405:1;57549:73:0;-1:-1:-1;;;;;;57640:16:0;;;;;:9;:16;;;;;;;57457:207::o;23821:103::-;23059:13;:11;:13::i;:::-;23886:30:::1;23913:1;23886:18;:30::i;58184:104::-:0;58240:13;58273:7;58266:14;;;;;:::i;59771:155::-;59866:52;21804:10;59899:8;59909;59866:18;:52::i;:::-;59771:155;;:::o;79236:122::-;23059:13;:11;:13::i;:::-;79316:15:::1;:34:::0;79236:122::o;60891:323::-;61065:41;21804:10;61098:7;61065:18;:41::i;:::-;61057:100;;;;-1:-1:-1;;;61057:100:0;;;;;;;:::i;:::-;61168:38;61182:4;61188:2;61192:7;61201:4;61168:13;:38::i;58359:281::-;58432:13;58458:23;58473:7;58458:14;:23::i;:::-;58494:21;58518:10;:8;:10::i;:::-;58494:34;;58570:1;58552:7;58546:21;:25;:86;;;;;;;;;;;;;;;;;58598:7;58607:18;:7;:16;:18::i;:::-;58581:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;58546:86;58539:93;58359:281;-1:-1:-1;;;58359:281:0:o;24079:201::-;23059:13;:11;:13::i;:::-;-1:-1:-1;;;;;24168:22:0;::::1;24160:73;;;::::0;-1:-1:-1;;;24160:73:0;;11775:2:1;24160:73:0::1;::::0;::::1;11757:21:1::0;11814:2;11794:18;;;11787:30;11853:34;11833:18;;;11826:62;-1:-1:-1;;;11904:18:1;;;11897:36;11950:19;;24160:73:0::1;11573:402:1::0;24160:73:0::1;24244:28;24263:8;24244:18;:28::i;71281:224::-:0;71383:4;-1:-1:-1;;;;;;71407:50:0;;-1:-1:-1;;;71407:50:0;;:90;;;71461:36;71485:11;71461:23;:36::i;67503:135::-;62786:4;62810:16;;;:7;:16;;;;;;-1:-1:-1;;;;;62810:16:0;67577:53;;;;-1:-1:-1;;;67577:53:0;;10511:2:1;67577:53:0;;;10493:21:1;10550:2;10530:18;;;10523:30;-1:-1:-1;;;10569:18:1;;;10562:54;10633:18;;67577:53:0;10309:348:1;66782:174:0;66857:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;66857:29:0;-1:-1:-1;;;;;66857:29:0;;;;;;;;:24;;66911:23;66857:24;66911:14;:23::i;:::-;-1:-1:-1;;;;;66902:46:0;;;;;;;;;;;66782:174;;:::o;23338:132::-;23246:6;;-1:-1:-1;;;;;23246:6:0;21804:10;23402:23;23394:68;;;;-1:-1:-1;;;23394:68:0;;12182:2:1;23394:68:0;;;12164:21:1;;;12201:18;;;12194:30;12260:34;12240:18;;;12233:62;12312:18;;23394:68:0;11980:356:1;63621:110:0;63697:26;63707:2;63711:7;63697:26;;;;;;;;;;;;:9;:26::i;63015:264::-;63108:4;63125:13;63141:23;63156:7;63141:14;:23::i;:::-;63125:39;;63194:5;-1:-1:-1;;;;;63183:16:0;:7;-1:-1:-1;;;;;63183:16:0;;:52;;;-1:-1:-1;;;;;;60118:25:0;;;60094:4;60118:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;63203:32;63183:87;;;;63263:7;-1:-1:-1;;;;;63239:31:0;:20;63251:7;63239:11;:20::i;:::-;-1:-1:-1;;;;;63239:31:0;;63183:87;63175:96;63015:264;-1:-1:-1;;;;63015:264:0:o;66038:625::-;66197:4;-1:-1:-1;;;;;66170:31:0;:23;66185:7;66170:14;:23::i;:::-;-1:-1:-1;;;;;66170:31:0;;66162:81;;;;-1:-1:-1;;;66162:81:0;;12543:2:1;66162:81:0;;;12525:21:1;12582:2;12562:18;;;12555:30;12621:34;12601:18;;;12594:62;-1:-1:-1;;;12672:18:1;;;12665:35;12717:19;;66162:81:0;12341:401:1;66162:81:0;-1:-1:-1;;;;;66262:16:0;;66254:65;;;;-1:-1:-1;;;66254:65:0;;12949:2:1;66254:65:0;;;12931:21:1;12988:2;12968:18;;;12961:30;13027:34;13007:18;;;13000:62;-1:-1:-1;;;13078:18:1;;;13071:34;13122:19;;66254:65:0;12747:400:1;66254:65:0;66332:39;66353:4;66359:2;66363:7;66332:20;:39::i;:::-;66436:29;66453:1;66457:7;66436:8;:29::i;:::-;-1:-1:-1;;;;;66478:15:0;;;;;;:9;:15;;;;;:20;;66497:1;;66478:15;:20;;66497:1;;66478:20;:::i;:::-;;;;-1:-1:-1;;;;;;;66509:13:0;;;;;;:9;:13;;;;;:18;;66526:1;;66509:13;:18;;66526:1;;66509:18;:::i;:::-;;;;-1:-1:-1;;66538:16:0;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;66538:21:0;-1:-1:-1;;;;;66538:21:0;;;;;;;;;66577:27;;66538:16;;66577:27;;;;;;;59115:347;59045:417;;:::o;24440:191::-;24533:6;;;-1:-1:-1;;;;;24550:17:0;;;-1:-1:-1;;;;;;24550:17:0;;;;;;;24583:40;;24533:6;;;24550:17;24533:6;;24583:40;;24514:16;;24583:40;24503:128;24440:191;:::o;67099:315::-;67254:8;-1:-1:-1;;;;;67245:17:0;:5;-1:-1:-1;;;;;67245:17:0;;67237:55;;;;-1:-1:-1;;;67237:55:0;;13487:2:1;67237:55:0;;;13469:21:1;13526:2;13506:18;;;13499:30;13565:27;13545:18;;;13538:55;13610:18;;67237:55:0;13285:349:1;67237:55:0;-1:-1:-1;;;;;67303:25:0;;;;;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;:46;;-1:-1:-1;;67303:46:0;;;;;;;;;;67365:41;;540::1;;;67365::0;;513:18:1;67365:41:0;;;;;;;67099:315;;;:::o;62095:313::-;62251:28;62261:4;62267:2;62271:7;62251:9;:28::i;:::-;62298:47;62321:4;62327:2;62331:7;62340:4;62298:22;:47::i;:::-;62290:110;;;;-1:-1:-1;;;62290:110:0;;;;;;;:::i;78273:103::-;78325:13;78358:10;78351:17;;;;;:::i;18978:723::-;19034:13;19255:5;19264:1;19255:10;19251:53;;-1:-1:-1;;19282:10:0;;;;;;;;;;;;-1:-1:-1;;;19282:10:0;;;;;18978:723::o;19251:53::-;19329:5;19314:12;19370:78;19377:9;;19370:78;;19403:8;;;;:::i;:::-;;-1:-1:-1;19426:10:0;;-1:-1:-1;19434:2:0;19426:10;;:::i;:::-;;;19370:78;;;19458:19;19490:6;19480:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;19480:17:0;;19458:39;;19508:154;19515:10;;19508:154;;19542:11;19552:1;19542:11;;:::i;:::-;;-1:-1:-1;19611:10:0;19619:2;19611:5;:10;:::i;:::-;19598:24;;:2;:24;:::i;:::-;19585:39;;19568:6;19575;19568:14;;;;;;;;:::i;:::-;;;;:56;-1:-1:-1;;;;;19568:56:0;;;;;;;;-1:-1:-1;19639:11:0;19648:2;19639:11;;:::i;:::-;;;19508:154;;57088:305;57190:4;-1:-1:-1;;;;;;57227:40:0;;-1:-1:-1;;;57227:40:0;;:105;;-1:-1:-1;;;;;;;57284:48:0;;-1:-1:-1;;;57284:48:0;57227:105;:158;;;-1:-1:-1;;;;;;;;;;48859:40:0;;;57349:36;48750:157;63958:319;64087:18;64093:2;64097:7;64087:5;:18::i;:::-;64138:53;64169:1;64173:2;64177:7;64186:4;64138:22;:53::i;:::-;64116:153;;;;-1:-1:-1;;;64116:153:0;;;;;;;:::i;79850:189::-;79986:45;80013:4;80019:2;80023:7;79986:26;:45::i;68202:853::-;68356:4;-1:-1:-1;;;;;68377:13:0;;26166:19;:23;68373:675;;68413:71;;-1:-1:-1;;;68413:71:0;;-1:-1:-1;;;;;68413:36:0;;;;;:71;;21804:10;;68464:4;;68470:7;;68479:4;;68413:71;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;68413:71:0;;;;;;;;-1:-1:-1;;68413:71:0;;;;;;;;;;;;:::i;:::-;;;68409:584;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;68654:6;:13;68671:1;68654:18;68650:328;;68697:60;;-1:-1:-1;;;68697:60:0;;;;;;;:::i;68650:328::-;68928:6;68922:13;68913:6;68909:2;68905:15;68898:38;68409:584;-1:-1:-1;;;;;;68535:51:0;-1:-1:-1;;;68535:51:0;;-1:-1:-1;68528:58:0;;68373:675;-1:-1:-1;69032:4:0;68202:853;;;;;;:::o;64613:439::-;-1:-1:-1;;;;;64693:16:0;;64685:61;;;;-1:-1:-1;;;64685:61:0;;15382:2:1;64685:61:0;;;15364:21:1;;;15401:18;;;15394:30;15460:34;15440:18;;;15433:62;15512:18;;64685:61:0;15180:356:1;64685:61:0;62786:4;62810:16;;;:7;:16;;;;;;-1:-1:-1;;;;;62810:16:0;:30;64757:58;;;;-1:-1:-1;;;64757:58:0;;15743:2:1;64757:58:0;;;15725:21:1;15782:2;15762:18;;;15755:30;15821;15801:18;;;15794:58;15869:18;;64757:58:0;15541:352:1;64757:58:0;64828:45;64857:1;64861:2;64865:7;64828:20;:45::i;:::-;-1:-1:-1;;;;;64886:13:0;;;;;;:9;:13;;;;;:18;;64903:1;;64886:13;:18;;64903:1;;64886:18;:::i;:::-;;;;-1:-1:-1;;64915:16:0;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;64915:21:0;-1:-1:-1;;;;;64915:21:0;;;;;;;;64954:33;;64915:16;;;64954:33;;64915:16;;64954:33;59771:155;;:::o;72957:589::-;-1:-1:-1;;;;;73163:18:0;;73159:187;;73198:40;73230:7;74373:10;:17;;74346:24;;;;:15;:24;;;;;:44;;;74401:24;;;;;;;;;;;;74269:164;73198:40;73159:187;;;73268:2;-1:-1:-1;;;;;73260:10:0;:4;-1:-1:-1;;;;;73260:10:0;;73256:90;;73287:47;73320:4;73326:7;73287:32;:47::i;:::-;-1:-1:-1;;;;;73360:16:0;;73356:183;;73393:45;73430:7;73393:36;:45::i;73356:183::-;73466:4;-1:-1:-1;;;;;73460:10:0;:2;-1:-1:-1;;;;;73460:10:0;;73456:83;;73487:40;73515:2;73519:7;73487:27;:40::i;75060:988::-;75326:22;75376:1;75351:22;75368:4;75351:16;:22::i;:::-;:26;;;;:::i;:::-;75388:18;75409:26;;;:17;:26;;;;;;75326:51;;-1:-1:-1;75542:28:0;;;75538:328;;-1:-1:-1;;;;;75609:18:0;;75587:19;75609:18;;;:12;:18;;;;;;;;:34;;;;;;;;;75660:30;;;;;;:44;;;75777:30;;:17;:30;;;;;:43;;;75538:328;-1:-1:-1;75962:26:0;;;;:17;:26;;;;;;;;75955:33;;;-1:-1:-1;;;;;76006:18:0;;;;;:12;:18;;;;;:34;;;;;;;75999:41;75060:988::o;76343:1079::-;76621:10;:17;76596:22;;76621:21;;76641:1;;76621:21;:::i;:::-;76653:18;76674:24;;;:15;:24;;;;;;77047:10;:26;;76596:46;;-1:-1:-1;76674:24:0;;76596:46;;77047:26;;;;;;:::i;:::-;;;;;;;;;77025:48;;77111:11;77086:10;77097;77086:22;;;;;;;;:::i;:::-;;;;;;;;;;;;:36;;;;77191:28;;;:15;:28;;;;;;;:41;;;77363:24;;;;;77356:31;77398:10;:16;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;76414:1008;;;76343:1079;:::o;73847:221::-;73932:14;73949:20;73966:2;73949:16;:20::i;:::-;-1:-1:-1;;;;;73980:16:0;;;;;;;:12;:16;;;;;;;;:24;;;;;;;;:34;;;74025:26;;;:17;:26;;;;;;:35;;;;-1:-1:-1;73847:221:0:o;14:131:1:-;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:250::-;677:1;687:113;701:6;698:1;695:13;687:113;;;777:11;;;771:18;758:11;;;751:39;723:2;716:10;687:113;;;-1:-1:-1;;834:1:1;816:16;;809:27;592:250::o;847:271::-;889:3;927:5;921:12;954:6;949:3;942:19;970:76;1039:6;1032:4;1027:3;1023:14;1016:4;1009:5;1005:16;970:76;:::i;:::-;1100:2;1079:15;-1:-1:-1;;1075:29:1;1066:39;;;;1107:4;1062:50;;847:271;-1:-1:-1;;847:271:1:o;1123:220::-;1272:2;1261:9;1254:21;1235:4;1292:45;1333:2;1322:9;1318:18;1310:6;1292:45;:::i;1348:180::-;1407:6;1460:2;1448:9;1439:7;1435:23;1431:32;1428:52;;;1476:1;1473;1466:12;1428:52;-1:-1:-1;1499:23:1;;1348:180;-1:-1:-1;1348:180:1:o;1741:173::-;1809:20;;-1:-1:-1;;;;;1858:31:1;;1848:42;;1838:70;;1904:1;1901;1894:12;1838:70;1741:173;;;:::o;1919:254::-;1987:6;1995;2048:2;2036:9;2027:7;2023:23;2019:32;2016:52;;;2064:1;2061;2054:12;2016:52;2087:29;2106:9;2087:29;:::i;:::-;2077:39;2163:2;2148:18;;;;2135:32;;-1:-1:-1;;;1919:254:1:o;2178:186::-;2237:6;2290:2;2278:9;2269:7;2265:23;2261:32;2258:52;;;2306:1;2303;2296:12;2258:52;2329:29;2348:9;2329:29;:::i;2551:328::-;2628:6;2636;2644;2697:2;2685:9;2676:7;2672:23;2668:32;2665:52;;;2713:1;2710;2703:12;2665:52;2736:29;2755:9;2736:29;:::i;:::-;2726:39;;2784:38;2818:2;2807:9;2803:18;2784:38;:::i;:::-;2774:48;;2869:2;2858:9;2854:18;2841:32;2831:42;;2551:328;;;;;:::o;3077:632::-;3248:2;3300:21;;;3370:13;;3273:18;;;3392:22;;;3219:4;;3248:2;3471:15;;;;3445:2;3430:18;;;3219:4;3514:169;3528:6;3525:1;3522:13;3514:169;;;3589:13;;3577:26;;3658:15;;;;3623:12;;;;3550:1;3543:9;3514:169;;;-1:-1:-1;3700:3:1;;3077:632;-1:-1:-1;;;;;;3077:632:1:o;3714:118::-;3800:5;3793:13;3786:21;3779:5;3776:32;3766:60;;3822:1;3819;3812:12;3837:315;3902:6;3910;3963:2;3951:9;3942:7;3938:23;3934:32;3931:52;;;3979:1;3976;3969:12;3931:52;4002:29;4021:9;4002:29;:::i;:::-;3992:39;;4081:2;4070:9;4066:18;4053:32;4094:28;4116:5;4094:28;:::i;:::-;4141:5;4131:15;;;3837:315;;;;;:::o;4157:127::-;4218:10;4213:3;4209:20;4206:1;4199:31;4249:4;4246:1;4239:15;4273:4;4270:1;4263:15;4289:1138;4384:6;4392;4400;4408;4461:3;4449:9;4440:7;4436:23;4432:33;4429:53;;;4478:1;4475;4468:12;4429:53;4501:29;4520:9;4501:29;:::i;:::-;4491:39;;4549:38;4583:2;4572:9;4568:18;4549:38;:::i;:::-;4539:48;;4634:2;4623:9;4619:18;4606:32;4596:42;;4689:2;4678:9;4674:18;4661:32;4712:18;4753:2;4745:6;4742:14;4739:34;;;4769:1;4766;4759:12;4739:34;4807:6;4796:9;4792:22;4782:32;;4852:7;4845:4;4841:2;4837:13;4833:27;4823:55;;4874:1;4871;4864:12;4823:55;4910:2;4897:16;4932:2;4928;4925:10;4922:36;;;4938:18;;:::i;:::-;5013:2;5007:9;4981:2;5067:13;;-1:-1:-1;;5063:22:1;;;5087:2;5059:31;5055:40;5043:53;;;5111:18;;;5131:22;;;5108:46;5105:72;;;5157:18;;:::i;:::-;5197:10;5193:2;5186:22;5232:2;5224:6;5217:18;5272:7;5267:2;5262;5258;5254:11;5250:20;5247:33;5244:53;;;5293:1;5290;5283:12;5244:53;5349:2;5344;5340;5336:11;5331:2;5323:6;5319:15;5306:46;5394:1;5389:2;5384;5376:6;5372:15;5368:24;5361:35;5415:6;5405:16;;;;;;;4289:1138;;;;;;;:::o;5432:260::-;5500:6;5508;5561:2;5549:9;5540:7;5536:23;5532:32;5529:52;;;5577:1;5574;5567:12;5529:52;5600:29;5619:9;5600:29;:::i;:::-;5590:39;;5648:38;5682:2;5671:9;5667:18;5648:38;:::i;:::-;5638:48;;5432:260;;;;;:::o;5697:380::-;5776:1;5772:12;;;;5819;;;5840:61;;5894:4;5886:6;5882:17;5872:27;;5840:61;5947:2;5939:6;5936:14;5916:18;5913:38;5910:161;;5993:10;5988:3;5984:20;5981:1;5974:31;6028:4;6025:1;6018:15;6056:4;6053:1;6046:15;5910:161;;5697:380;;;:::o;7125:184::-;7195:6;7248:2;7236:9;7227:7;7223:23;7219:32;7216:52;;;7264:1;7261;7254:12;7216:52;-1:-1:-1;7287:16:1;;7125:184;-1:-1:-1;7125:184:1:o;7593:245::-;7660:6;7713:2;7701:9;7692:7;7688:23;7684:32;7681:52;;;7729:1;7726;7719:12;7681:52;7761:9;7755:16;7780:28;7802:5;7780:28;:::i;8203:127::-;8264:10;8259:3;8255:20;8252:1;8245:31;8295:4;8292:1;8285:15;8319:4;8316:1;8309:15;8335:125;8400:9;;;8421:10;;;8418:36;;;8434:18;;:::i;8797:410::-;8999:2;8981:21;;;9038:2;9018:18;;;9011:30;9077:34;9072:2;9057:18;;9050:62;-1:-1:-1;;;9143:2:1;9128:18;;9121:44;9197:3;9182:19;;8797:410::o;9624:127::-;9685:10;9680:3;9676:20;9673:1;9666:31;9716:4;9713:1;9706:15;9740:4;9737:1;9730:15;9756:135;9795:3;9816:17;;;9813:43;;9836:18;;:::i;:::-;-1:-1:-1;9883:1:1;9872:13;;9756:135::o;11072:496::-;11251:3;11289:6;11283:13;11305:66;11364:6;11359:3;11352:4;11344:6;11340:17;11305:66;:::i;:::-;11434:13;;11393:16;;;;11456:70;11434:13;11393:16;11503:4;11491:17;;11456:70;:::i;:::-;11542:20;;11072:496;-1:-1:-1;;;;11072:496:1:o;13152:128::-;13219:9;;;13240:11;;;13237:37;;;13254:18;;:::i;13639:414::-;13841:2;13823:21;;;13880:2;13860:18;;;13853:30;13919:34;13914:2;13899:18;;13892:62;-1:-1:-1;;;13985:2:1;13970:18;;13963:48;14043:3;14028:19;;13639:414::o;14058:127::-;14119:10;14114:3;14110:20;14107:1;14100:31;14150:4;14147:1;14140:15;14174:4;14171:1;14164:15;14190:120;14230:1;14256;14246:35;;14261:18;;:::i;:::-;-1:-1:-1;14295:9:1;;14190:120::o;14315:112::-;14347:1;14373;14363:35;;14378:18;;:::i;:::-;-1:-1:-1;14412:9:1;;14315:112::o;14432:489::-;-1:-1:-1;;;;;14701:15:1;;;14683:34;;14753:15;;14748:2;14733:18;;14726:43;14800:2;14785:18;;14778:34;;;14848:3;14843:2;14828:18;;14821:31;;;14626:4;;14869:46;;14895:19;;14887:6;14869:46;:::i;:::-;14861:54;14432:489;-1:-1:-1;;;;;;14432:489:1:o;14926:249::-;14995:6;15048:2;15036:9;15027:7;15023:23;15019:32;15016:52;;;15064:1;15061;15054:12;15016:52;15096:9;15090:16;15115:30;15139:5;15115:30;:::i;15898:127::-;15959:10;15954:3;15950:20;15947:1;15940:31;15990:4;15987:1;15980:15;16014:4;16011:1;16004:15
Swarm Source
ipfs://1197a790bb3820773323a0c3ae291c2c7d2f577abbc4d85885dffe88a204f34c
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.