Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
1,000 POANFT
Holders
635
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
3 POANFTLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
POANFT
Compiler Version
v0.8.9+commit.e5eed63a
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-10-19 */ // 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(); } } // File: poa/NFT.sol interface IPRE { function balanceOf(address user) external view returns (uint256); } contract POANFT is ERC721, ERC721Enumerable, Ownable, ReentrancyGuard { using Counters for Counters.Counter; string private _api_entry; address public token = 0x1d2d542e6D9d85A712deB4D1a7D96a16CE00B8cE; mapping (address => bool) private checkMint; Counters.Counter private _tokenIds; uint16 public constant MAX_SUPPLY = 1000; error AlreadyMinted(); error ExceedMaxSupply(); constructor() ERC721("Proof Of Apes", "POANFT") { _api_entry = "https://api.proofofapes.com/meta/"; _tokenIds.increment(); } function contractURI() public pure returns (string memory) { return "https://api.proofofapes.com/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 { uint256 balance = IPRE(token).balanceOf(msg.sender); if(balance > 50000000 * 10**18) { checkMint[msg.sender] = true; _safeMint(msg.sender, _tokenIds.current()); _tokenIds.increment(); } } function setToken(address _token) external onlyOwner { token = _token; } 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":"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
6080604052600d80546001600160a01b031916731d2d542e6d9d85a712deb4d1a7d96a16ce00b8ce1790553480156200003757600080fd5b50604080518082018252600d81526c50726f6f66204f66204170657360981b6020808301918252835180850190945260068452651413d053919560d21b9084015281519192916200008b916000916200016f565b508051620000a19060019060208401906200016f565b505050620000be620000b86200011060201b60201c565b62000114565b6001600b55604080516060810190915260218082526200220960208301398051620000f291600c916020909101906200016f565b506200010a600f6200016660201b62000ebf1760201c565b62000252565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80546001019055565b8280546200017d9062000215565b90600052602060002090601f016020900481019282620001a15760008555620001ec565b82601f10620001bc57805160ff1916838001178555620001ec565b82800160010185558215620001ec579182015b82811115620001ec578251825591602001919060010190620001cf565b50620001fa929150620001fe565b5090565b5b80821115620001fa5760008155600101620001ff565b600181811c908216806200022a57607f821691505b602082108114156200024c57634e487b7160e01b600052602260045260246000fd5b50919050565b611fa780620002626000396000f3fe60806040526004361061019c5760003560e01c8063438b6300116100ec578063a22cb4651161008a578063e8a3d48511610064578063e8a3d4851461048c578063e985e9c5146104a1578063f2fde38b146104ea578063fc0c546a1461050a57600080fd5b8063a22cb4651461042c578063b88d4fde1461044c578063c87b56dd1461046c57600080fd5b806370a08231116100c657806370a08231146103c4578063715018a6146103e45780638da5cb5b146103f957806395d89b411461041757600080fd5b8063438b6300146103575780634f6ccce7146103845780636352211e146103a457600080fd5b8063144fa6d7116101595780632f745c59116101335780632f745c59146102e657806332cb6b0c146103065780633ccfd60b1461032f57806342842e0e1461033757600080fd5b8063144fa6d71461028757806318160ddd146102a757806323b872dd146102c657600080fd5b806301ffc9a7146101a157806306fdde03146101d6578063081812fc146101f8578063095ea7b3146102305780630cd865ec146102525780631249c58b14610272575b600080fd5b3480156101ad57600080fd5b506101c16101bc3660046119fc565b61052a565b60405190151581526020015b60405180910390f35b3480156101e257600080fd5b506101eb61053b565b6040516101cd9190611a71565b34801561020457600080fd5b50610218610213366004611a84565b6105cd565b6040516001600160a01b0390911681526020016101cd565b34801561023c57600080fd5b5061025061024b366004611ab9565b6105f4565b005b34801561025e57600080fd5b5061025061026d366004611ae3565b61070f565b34801561027e57600080fd5b50610250610874565b34801561029357600080fd5b506102506102a2366004611ae3565b610a0b565b3480156102b357600080fd5b506008545b6040519081526020016101cd565b3480156102d257600080fd5b506102506102e1366004611afe565b610a35565b3480156102f257600080fd5b506102b8610301366004611ab9565b610a66565b34801561031257600080fd5b5061031c6103e881565b60405161ffff90911681526020016101cd565b610250610afc565b34801561034357600080fd5b50610250610352366004611afe565b610b2a565b34801561036357600080fd5b50610377610372366004611ae3565b610b45565b6040516101cd9190611b3a565b34801561039057600080fd5b506102b861039f366004611a84565b610be7565b3480156103b057600080fd5b506102186103bf366004611a84565b610c7a565b3480156103d057600080fd5b506102b86103df366004611ae3565b610cda565b3480156103f057600080fd5b50610250610d60565b34801561040557600080fd5b50600a546001600160a01b0316610218565b34801561042357600080fd5b506101eb610d72565b34801561043857600080fd5b50610250610447366004611b8c565b610d81565b34801561045857600080fd5b50610250610467366004611bd9565b610d90565b34801561047857600080fd5b506101eb610487366004611a84565b610dc2565b34801561049857600080fd5b506101eb610e29565b3480156104ad57600080fd5b506101c16104bc366004611cb5565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156104f657600080fd5b50610250610505366004611ae3565b610e49565b34801561051657600080fd5b50600d54610218906001600160a01b031681565b600061053582610ec8565b92915050565b60606000805461054a90611ce8565b80601f016020809104026020016040519081016040528092919081815260200182805461057690611ce8565b80156105c35780601f10610598576101008083540402835291602001916105c3565b820191906000526020600020905b8154815290600101906020018083116105a657829003601f168201915b5050505050905090565b60006105d882610eed565b506000908152600460205260409020546001600160a01b031690565b60006105ff82610c7a565b9050806001600160a01b0316836001600160a01b031614156106725760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b038216148061068e575061068e81336104bc565b6107005760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610669565b61070a8383610f4c565b505050565b610717610fba565b6001600160a01b0381166107705760405133904790600081818185875af1925050503d8060008114610765576040519150601f19603f3d011682016040523d82523d6000602084013e61076a565b606091505b50505050565b6040516370a0823160e01b815230600482015281906001600160a01b0382169063a9059cbb90339083906370a082319060240160206040518083038186803b1580156107bb57600080fd5b505afa1580156107cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107f39190611d23565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b15801561083957600080fd5b505af115801561084d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061070a9190611d3c565b50565b6002600b5414156108c75760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610669565b6002600b5560006108d760085490565b90506103e86108e7826001611d6f565b111561090657604051630f0c37b960e11b815260040160405180910390fd5b336000908152600e602052604090205460ff161561093757604051631bbdf5c560e31b815260040160405180910390fd5b600d546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561097b57600080fd5b505afa15801561098f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109b39190611d23565b90506a295be96e64066972000000811115610a0257336000818152600e60205260409020805460ff191660011790556109f4906109ef600f5490565b611014565b610a02600f80546001019055565b50506001600b55565b610a13610fba565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b610a3f338261102e565b610a5b5760405162461bcd60e51b815260040161066990611d87565b61070a8383836110ad565b6000610a7183610cda565b8210610ad35760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610669565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b610b04610fba565b60405133904780156108fc02916000818181858888f19350505050610b2857600080fd5b565b61070a83838360405180602001604052806000815250610d90565b60606000610b5283610cda565b905060008167ffffffffffffffff811115610b6f57610b6f611bc3565b604051908082528060200260200182016040528015610b98578160200160208202803683370190505b50905060005b82811015610bdf57610bb08582610a66565b828281518110610bc257610bc2611dd5565b602090810291909101015280610bd781611deb565b915050610b9e565b509392505050565b6000610bf260085490565b8210610c555760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610669565b60088281548110610c6857610c68611dd5565b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806105355760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610669565b60006001600160a01b038216610d445760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610669565b506001600160a01b031660009081526003602052604090205490565b610d68610fba565b610b286000611254565b60606001805461054a90611ce8565b610d8c3383836112a6565b5050565b610d9a338361102e565b610db65760405162461bcd60e51b815260040161066990611d87565b61076a84848484611375565b6060610dcd82610eed565b6000610dd76113a8565b90506000815111610df75760405180602001604052806000815250610e22565b80610e01846113b7565b604051602001610e12929190611e06565b6040516020818303038152906040525b9392505050565b6060604051806060016040528060258152602001611f4d60259139905090565b610e51610fba565b6001600160a01b038116610eb65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610669565b61087181611254565b80546001019055565b60006001600160e01b0319821663780e9d6360e01b14806105355750610535826114b5565b6000818152600260205260409020546001600160a01b03166108715760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610669565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610f8182610c7a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600a546001600160a01b03163314610b285760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610669565b610d8c828260405180602001604052806000815250611505565b60008061103a83610c7a565b9050806001600160a01b0316846001600160a01b0316148061108157506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806110a55750836001600160a01b031661109a846105cd565b6001600160a01b0316145b949350505050565b826001600160a01b03166110c082610c7a565b6001600160a01b0316146111245760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610669565b6001600160a01b0382166111865760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610669565b611191838383611538565b61119c600082610f4c565b6001600160a01b03831660009081526003602052604081208054600192906111c5908490611e35565b90915550506001600160a01b03821660009081526003602052604081208054600192906111f3908490611d6f565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156113085760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610669565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6113808484846110ad565b61138c84848484611543565b61076a5760405162461bcd60e51b815260040161066990611e4c565b6060600c805461054a90611ce8565b6060816113db5750506040805180820190915260018152600360fc1b602082015290565b8160005b811561140557806113ef81611deb565b91506113fe9050600a83611eb4565b91506113df565b60008167ffffffffffffffff81111561142057611420611bc3565b6040519080825280601f01601f19166020018201604052801561144a576020820181803683370190505b5090505b84156110a55761145f600183611e35565b915061146c600a86611ec8565b611477906030611d6f565b60f81b81838151811061148c5761148c611dd5565b60200101906001600160f81b031916908160001a9053506114ae600a86611eb4565b945061144e565b60006001600160e01b031982166380ac58cd60e01b14806114e657506001600160e01b03198216635b5e139f60e01b145b8061053557506301ffc9a760e01b6001600160e01b0319831614610535565b61150f8383611650565b61151c6000848484611543565b61070a5760405162461bcd60e51b815260040161066990611e4c565b61070a83838361179e565b60006001600160a01b0384163b1561164557604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611587903390899088908890600401611edc565b602060405180830381600087803b1580156115a157600080fd5b505af19250505080156115d1575060408051601f3d908101601f191682019092526115ce91810190611f19565b60015b61162b573d8080156115ff576040519150601f19603f3d011682016040523d82523d6000602084013e611604565b606091505b5080516116235760405162461bcd60e51b815260040161066990611e4c565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506110a5565b506001949350505050565b6001600160a01b0382166116a65760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610669565b6000818152600260205260409020546001600160a01b03161561170b5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610669565b61171760008383611538565b6001600160a01b0382166000908152600360205260408120805460019290611740908490611d6f565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160a01b0383166117f9576117f481600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b61181c565b816001600160a01b0316836001600160a01b03161461181c5761181c8382611856565b6001600160a01b0382166118335761070a816118f3565b826001600160a01b0316826001600160a01b03161461070a5761070a82826119a2565b6000600161186384610cda565b61186d9190611e35565b6000838152600760205260409020549091508082146118c0576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061190590600190611e35565b6000838152600960205260408120546008805493945090928490811061192d5761192d611dd5565b90600052602060002001549050806008838154811061194e5761194e611dd5565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061198657611986611f36565b6001900381819060005260206000200160009055905550505050565b60006119ad83610cda565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160e01b03198116811461087157600080fd5b600060208284031215611a0e57600080fd5b8135610e22816119e6565b60005b83811015611a34578181015183820152602001611a1c565b8381111561076a5750506000910152565b60008151808452611a5d816020860160208601611a19565b601f01601f19169290920160200192915050565b602081526000610e226020830184611a45565b600060208284031215611a9657600080fd5b5035919050565b80356001600160a01b0381168114611ab457600080fd5b919050565b60008060408385031215611acc57600080fd5b611ad583611a9d565b946020939093013593505050565b600060208284031215611af557600080fd5b610e2282611a9d565b600080600060608486031215611b1357600080fd5b611b1c84611a9d565b9250611b2a60208501611a9d565b9150604084013590509250925092565b6020808252825182820181905260009190848201906040850190845b81811015611b7257835183529284019291840191600101611b56565b50909695505050505050565b801515811461087157600080fd5b60008060408385031215611b9f57600080fd5b611ba883611a9d565b91506020830135611bb881611b7e565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215611bef57600080fd5b611bf885611a9d565b9350611c0660208601611a9d565b925060408501359150606085013567ffffffffffffffff80821115611c2a57600080fd5b818701915087601f830112611c3e57600080fd5b813581811115611c5057611c50611bc3565b604051601f8201601f19908116603f01168101908382118183101715611c7857611c78611bc3565b816040528281528a6020848701011115611c9157600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215611cc857600080fd5b611cd183611a9d565b9150611cdf60208401611a9d565b90509250929050565b600181811c90821680611cfc57607f821691505b60208210811415611d1d57634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215611d3557600080fd5b5051919050565b600060208284031215611d4e57600080fd5b8151610e2281611b7e565b634e487b7160e01b600052601160045260246000fd5b60008219821115611d8257611d82611d59565b500190565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b6000600019821415611dff57611dff611d59565b5060010190565b60008351611e18818460208801611a19565b835190830190611e2c818360208801611a19565b01949350505050565b600082821015611e4757611e47611d59565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b600082611ec357611ec3611e9e565b500490565b600082611ed757611ed7611e9e565b500690565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611f0f90830184611a45565b9695505050505050565b600060208284031215611f2b57600080fd5b8151610e22816119e6565b634e487b7160e01b600052603160045260246000fdfe68747470733a2f2f6170692e70726f6f666f66617065732e636f6d2f636f6e74726163742fa26469706673582212200fe47e69d7fd929bd36c10963cc03398972e48f834d49fd2a6834c16cdaf722664736f6c6343000809003368747470733a2f2f6170692e70726f6f666f66617065732e636f6d2f6d6574612f
Deployed Bytecode
0x60806040526004361061019c5760003560e01c8063438b6300116100ec578063a22cb4651161008a578063e8a3d48511610064578063e8a3d4851461048c578063e985e9c5146104a1578063f2fde38b146104ea578063fc0c546a1461050a57600080fd5b8063a22cb4651461042c578063b88d4fde1461044c578063c87b56dd1461046c57600080fd5b806370a08231116100c657806370a08231146103c4578063715018a6146103e45780638da5cb5b146103f957806395d89b411461041757600080fd5b8063438b6300146103575780634f6ccce7146103845780636352211e146103a457600080fd5b8063144fa6d7116101595780632f745c59116101335780632f745c59146102e657806332cb6b0c146103065780633ccfd60b1461032f57806342842e0e1461033757600080fd5b8063144fa6d71461028757806318160ddd146102a757806323b872dd146102c657600080fd5b806301ffc9a7146101a157806306fdde03146101d6578063081812fc146101f8578063095ea7b3146102305780630cd865ec146102525780631249c58b14610272575b600080fd5b3480156101ad57600080fd5b506101c16101bc3660046119fc565b61052a565b60405190151581526020015b60405180910390f35b3480156101e257600080fd5b506101eb61053b565b6040516101cd9190611a71565b34801561020457600080fd5b50610218610213366004611a84565b6105cd565b6040516001600160a01b0390911681526020016101cd565b34801561023c57600080fd5b5061025061024b366004611ab9565b6105f4565b005b34801561025e57600080fd5b5061025061026d366004611ae3565b61070f565b34801561027e57600080fd5b50610250610874565b34801561029357600080fd5b506102506102a2366004611ae3565b610a0b565b3480156102b357600080fd5b506008545b6040519081526020016101cd565b3480156102d257600080fd5b506102506102e1366004611afe565b610a35565b3480156102f257600080fd5b506102b8610301366004611ab9565b610a66565b34801561031257600080fd5b5061031c6103e881565b60405161ffff90911681526020016101cd565b610250610afc565b34801561034357600080fd5b50610250610352366004611afe565b610b2a565b34801561036357600080fd5b50610377610372366004611ae3565b610b45565b6040516101cd9190611b3a565b34801561039057600080fd5b506102b861039f366004611a84565b610be7565b3480156103b057600080fd5b506102186103bf366004611a84565b610c7a565b3480156103d057600080fd5b506102b86103df366004611ae3565b610cda565b3480156103f057600080fd5b50610250610d60565b34801561040557600080fd5b50600a546001600160a01b0316610218565b34801561042357600080fd5b506101eb610d72565b34801561043857600080fd5b50610250610447366004611b8c565b610d81565b34801561045857600080fd5b50610250610467366004611bd9565b610d90565b34801561047857600080fd5b506101eb610487366004611a84565b610dc2565b34801561049857600080fd5b506101eb610e29565b3480156104ad57600080fd5b506101c16104bc366004611cb5565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156104f657600080fd5b50610250610505366004611ae3565b610e49565b34801561051657600080fd5b50600d54610218906001600160a01b031681565b600061053582610ec8565b92915050565b60606000805461054a90611ce8565b80601f016020809104026020016040519081016040528092919081815260200182805461057690611ce8565b80156105c35780601f10610598576101008083540402835291602001916105c3565b820191906000526020600020905b8154815290600101906020018083116105a657829003601f168201915b5050505050905090565b60006105d882610eed565b506000908152600460205260409020546001600160a01b031690565b60006105ff82610c7a565b9050806001600160a01b0316836001600160a01b031614156106725760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b038216148061068e575061068e81336104bc565b6107005760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610669565b61070a8383610f4c565b505050565b610717610fba565b6001600160a01b0381166107705760405133904790600081818185875af1925050503d8060008114610765576040519150601f19603f3d011682016040523d82523d6000602084013e61076a565b606091505b50505050565b6040516370a0823160e01b815230600482015281906001600160a01b0382169063a9059cbb90339083906370a082319060240160206040518083038186803b1580156107bb57600080fd5b505afa1580156107cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107f39190611d23565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b15801561083957600080fd5b505af115801561084d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061070a9190611d3c565b50565b6002600b5414156108c75760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610669565b6002600b5560006108d760085490565b90506103e86108e7826001611d6f565b111561090657604051630f0c37b960e11b815260040160405180910390fd5b336000908152600e602052604090205460ff161561093757604051631bbdf5c560e31b815260040160405180910390fd5b600d546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561097b57600080fd5b505afa15801561098f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109b39190611d23565b90506a295be96e64066972000000811115610a0257336000818152600e60205260409020805460ff191660011790556109f4906109ef600f5490565b611014565b610a02600f80546001019055565b50506001600b55565b610a13610fba565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b610a3f338261102e565b610a5b5760405162461bcd60e51b815260040161066990611d87565b61070a8383836110ad565b6000610a7183610cda565b8210610ad35760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610669565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b610b04610fba565b60405133904780156108fc02916000818181858888f19350505050610b2857600080fd5b565b61070a83838360405180602001604052806000815250610d90565b60606000610b5283610cda565b905060008167ffffffffffffffff811115610b6f57610b6f611bc3565b604051908082528060200260200182016040528015610b98578160200160208202803683370190505b50905060005b82811015610bdf57610bb08582610a66565b828281518110610bc257610bc2611dd5565b602090810291909101015280610bd781611deb565b915050610b9e565b509392505050565b6000610bf260085490565b8210610c555760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610669565b60088281548110610c6857610c68611dd5565b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806105355760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610669565b60006001600160a01b038216610d445760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610669565b506001600160a01b031660009081526003602052604090205490565b610d68610fba565b610b286000611254565b60606001805461054a90611ce8565b610d8c3383836112a6565b5050565b610d9a338361102e565b610db65760405162461bcd60e51b815260040161066990611d87565b61076a84848484611375565b6060610dcd82610eed565b6000610dd76113a8565b90506000815111610df75760405180602001604052806000815250610e22565b80610e01846113b7565b604051602001610e12929190611e06565b6040516020818303038152906040525b9392505050565b6060604051806060016040528060258152602001611f4d60259139905090565b610e51610fba565b6001600160a01b038116610eb65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610669565b61087181611254565b80546001019055565b60006001600160e01b0319821663780e9d6360e01b14806105355750610535826114b5565b6000818152600260205260409020546001600160a01b03166108715760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610669565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610f8182610c7a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600a546001600160a01b03163314610b285760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610669565b610d8c828260405180602001604052806000815250611505565b60008061103a83610c7a565b9050806001600160a01b0316846001600160a01b0316148061108157506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806110a55750836001600160a01b031661109a846105cd565b6001600160a01b0316145b949350505050565b826001600160a01b03166110c082610c7a565b6001600160a01b0316146111245760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610669565b6001600160a01b0382166111865760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610669565b611191838383611538565b61119c600082610f4c565b6001600160a01b03831660009081526003602052604081208054600192906111c5908490611e35565b90915550506001600160a01b03821660009081526003602052604081208054600192906111f3908490611d6f565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156113085760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610669565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6113808484846110ad565b61138c84848484611543565b61076a5760405162461bcd60e51b815260040161066990611e4c565b6060600c805461054a90611ce8565b6060816113db5750506040805180820190915260018152600360fc1b602082015290565b8160005b811561140557806113ef81611deb565b91506113fe9050600a83611eb4565b91506113df565b60008167ffffffffffffffff81111561142057611420611bc3565b6040519080825280601f01601f19166020018201604052801561144a576020820181803683370190505b5090505b84156110a55761145f600183611e35565b915061146c600a86611ec8565b611477906030611d6f565b60f81b81838151811061148c5761148c611dd5565b60200101906001600160f81b031916908160001a9053506114ae600a86611eb4565b945061144e565b60006001600160e01b031982166380ac58cd60e01b14806114e657506001600160e01b03198216635b5e139f60e01b145b8061053557506301ffc9a760e01b6001600160e01b0319831614610535565b61150f8383611650565b61151c6000848484611543565b61070a5760405162461bcd60e51b815260040161066990611e4c565b61070a83838361179e565b60006001600160a01b0384163b1561164557604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611587903390899088908890600401611edc565b602060405180830381600087803b1580156115a157600080fd5b505af19250505080156115d1575060408051601f3d908101601f191682019092526115ce91810190611f19565b60015b61162b573d8080156115ff576040519150601f19603f3d011682016040523d82523d6000602084013e611604565b606091505b5080516116235760405162461bcd60e51b815260040161066990611e4c565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506110a5565b506001949350505050565b6001600160a01b0382166116a65760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610669565b6000818152600260205260409020546001600160a01b03161561170b5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610669565b61171760008383611538565b6001600160a01b0382166000908152600360205260408120805460019290611740908490611d6f565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160a01b0383166117f9576117f481600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b61181c565b816001600160a01b0316836001600160a01b03161461181c5761181c8382611856565b6001600160a01b0382166118335761070a816118f3565b826001600160a01b0316826001600160a01b03161461070a5761070a82826119a2565b6000600161186384610cda565b61186d9190611e35565b6000838152600760205260409020549091508082146118c0576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061190590600190611e35565b6000838152600960205260408120546008805493945090928490811061192d5761192d611dd5565b90600052602060002001549050806008838154811061194e5761194e611dd5565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061198657611986611f36565b6001900381819060005260206000200160009055905550505050565b60006119ad83610cda565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160e01b03198116811461087157600080fd5b600060208284031215611a0e57600080fd5b8135610e22816119e6565b60005b83811015611a34578181015183820152602001611a1c565b8381111561076a5750506000910152565b60008151808452611a5d816020860160208601611a19565b601f01601f19169290920160200192915050565b602081526000610e226020830184611a45565b600060208284031215611a9657600080fd5b5035919050565b80356001600160a01b0381168114611ab457600080fd5b919050565b60008060408385031215611acc57600080fd5b611ad583611a9d565b946020939093013593505050565b600060208284031215611af557600080fd5b610e2282611a9d565b600080600060608486031215611b1357600080fd5b611b1c84611a9d565b9250611b2a60208501611a9d565b9150604084013590509250925092565b6020808252825182820181905260009190848201906040850190845b81811015611b7257835183529284019291840191600101611b56565b50909695505050505050565b801515811461087157600080fd5b60008060408385031215611b9f57600080fd5b611ba883611a9d565b91506020830135611bb881611b7e565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215611bef57600080fd5b611bf885611a9d565b9350611c0660208601611a9d565b925060408501359150606085013567ffffffffffffffff80821115611c2a57600080fd5b818701915087601f830112611c3e57600080fd5b813581811115611c5057611c50611bc3565b604051601f8201601f19908116603f01168101908382118183101715611c7857611c78611bc3565b816040528281528a6020848701011115611c9157600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215611cc857600080fd5b611cd183611a9d565b9150611cdf60208401611a9d565b90509250929050565b600181811c90821680611cfc57607f821691505b60208210811415611d1d57634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215611d3557600080fd5b5051919050565b600060208284031215611d4e57600080fd5b8151610e2281611b7e565b634e487b7160e01b600052601160045260246000fd5b60008219821115611d8257611d82611d59565b500190565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b6000600019821415611dff57611dff611d59565b5060010190565b60008351611e18818460208801611a19565b835190830190611e2c818360208801611a19565b01949350505050565b600082821015611e4757611e47611d59565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b600082611ec357611ec3611e9e565b500490565b600082611ed757611ed7611e9e565b500690565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611f0f90830184611a45565b9695505050505050565b600060208284031215611f2b57600080fd5b8151610e22816119e6565b634e487b7160e01b600052603160045260246000fdfe68747470733a2f2f6170692e70726f6f666f66617065732e636f6d2f636f6e74726163742fa26469706673582212200fe47e69d7fd929bd36c10963cc03398972e48f834d49fd2a6834c16cdaf722664736f6c63430008090033
Deployed Bytecode Sourcemap
77563:2648:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;79671:179;;;;;;;;;;-1:-1:-1;79671:179:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;79671:179:0;;;;;;;;58015:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;59528:171::-;;;;;;;;;;-1:-1:-1;59528:171:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1692:32:1;;;1674:51;;1662:2;1647:18;59528:171:0;1528:203:1;59045:417:0;;;;;;;;;;-1:-1:-1;59045:417:0;;;;;:::i;:::-;;:::i;:::-;;79858:348;;;;;;;;;;-1:-1:-1;79858:348:0;;;;;:::i;:::-;;:::i;78585:302::-;;;;;;;;;;;;;:::i;78895:87::-;;;;;;;;;;-1:-1:-1;78895:87:0;;;;;:::i;:::-;;:::i;71921:113::-;;;;;;;;;;-1:-1:-1;72009:10:0;:17;71921:113;;;2510:25:1;;;2498:2;2483:18;71921:113:0;2364:177:1;60228:336:0;;;;;;;;;;-1:-1:-1;60228:336:0;;;;;:::i;:::-;;:::i;71589:256::-;;;;;;;;;;-1:-1:-1;71589:256:0;;;;;:::i;:::-;;:::i;77877:40::-;;;;;;;;;;;;77913:4;77877:40;;;;;3053:6:1;3041:19;;;3023:38;;3011:2;2996:18;77877:40:0;2879:188:1;78994:120:0;;;:::i;60635:185::-;;;;;;;;;;-1:-1:-1;60635:185:0;;;;;:::i;:::-;;:::i;79122:344::-;;;;;;;;;;-1:-1:-1;79122: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;60891:323::-;;;;;;;;;;-1:-1:-1;60891:323:0;;;;;:::i;:::-;;:::i;58359:281::-;;;;;;;;;;-1:-1:-1;58359:281:0;;;;;:::i;:::-;;:::i;78139:115::-;;;;;;;;;;;;;:::i;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;77714:65::-;;;;;;;;;;-1:-1:-1;77714:65:0;;;;-1:-1:-1;;;;;77714:65:0;;;79671:179;79782:4;79806:36;79830:11;79806:23;:36::i;:::-;79799:43;79671:179;-1:-1:-1;;79671: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;;6279:2:1;59176:57:0;;;6261:21:1;6318:2;6298:18;;;6291:30;6357:34;6337:18;;;6330:62;-1:-1:-1;;;6408:18:1;;;6401:31;6449: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;;6681:2:1;59246:174:0;;;6663:21:1;6720:2;6700:18;;;6693:30;6759:34;6739:18;;;6732:62;6830:32;6810:18;;;6803:60;6880:19;;59246:174:0;6479:426:1;59246:174:0;59433:21;59442:2;59446:7;59433:8;:21::i;:::-;59115:347;59045:417;;:::o;79858:348::-;23059:13;:11;:13::i;:::-;-1:-1:-1;;;;;79925:52:0;::::1;79921:278;;79994:58;::::0;80002:10:::1;::::0;80026:21:::1;::::0;79994:58:::1;::::0;;;80026:21;80002:10;79994:58:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;79858:348:::0;:::o;79921:278::-:1;80156:30;::::0;-1:-1:-1;;;80156:30:0;;80180:4:::1;80156:30;::::0;::::1;1674:51:1::0;80107:6:0;;-1:-1:-1;;;;;80129:14:0;::::1;::::0;::::1;::::0;80144:10:::1;::::0;80129:14;;80156:15:::1;::::0;1647:18:1;;80156:30:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;80129:58;::::0;-1:-1:-1;;;;;;80129:58:0::1;::::0;;;;;;-1:-1:-1;;;;;7501:32:1;;;80129:58:0::1;::::0;::::1;7483:51:1::0;7550:18;;;7543:34;7456:18;;80129:58:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;79921:278::-;79858:348:::0;:::o;78585:302::-;16136:1;16734:7;;:19;;16726:63;;;;-1:-1:-1;;;16726:63:0;;8040:2:1;16726:63:0;;;8022:21:1;8079:2;8059:18;;;8052:30;8118:33;8098:18;;;8091:61;8169:18;;16726:63:0;7838:355:1;16726:63:0;16136:1;16867:7;:18;78403:14:::1;78420:13;72009:10:::0;:17;;71921:113;78420:13:::1;78403:30:::0;-1:-1:-1;77913:4:0::1;78448:10;78403:30:::0;78457:1:::1;78448:10;:::i;:::-;:23;78444:53;;;78480:17;;-1:-1:-1::0;;;78480:17:0::1;;;;;;;;;;;78444:53;78522:10;78512:21;::::0;;;:9:::1;:21;::::0;;;;;::::1;;78508:49;;;78542:15;;-1:-1:-1::0;;;78542:15:0::1;;;;;;;;;;;78508:49;78663:5:::2;::::0;78658:33:::2;::::0;-1:-1:-1;;;78658:33:0;;78680:10:::2;78658:33;::::0;::::2;1674:51:1::0;78640:15:0::2;::::0;-1:-1:-1;;;;;78663:5:0::2;::::0;78658:21:::2;::::0;1647:18:1;;78658:33:0::2;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;78640:51;;78715:17;78705:7;:27;78702:181;;;78760:10;78750:21;::::0;;;:9:::2;:21;::::0;;;;:28;;-1:-1:-1;;78750:28:0::2;78774:4;78750:28;::::0;;78793:42:::2;::::0;78815:19:::2;:9;18047:14:::0;;17955:114;78815:19:::2;78793:9;:42::i;:::-;78850:21;:9;18166:19:::0;;18184:1;18166:19;;;18077:127;78850:21:::2;-1:-1:-1::0;;16092:1:0;17046:7;:22;78585:302::o;78895:87::-;23059:13;:11;:13::i;:::-;78960:5:::1;:14:::0;;-1:-1:-1;;;;;;78960:14:0::1;-1:-1:-1::0;;;;;78960:14:0;;;::::1;::::0;;;::::1;::::0;;78895: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;;9080:2:1;71706:87:0;;;9062:21:1;9119:2;9099:18;;;9092:30;9158:34;9138:18;;;9131:62;-1:-1:-1;;;9209:18:1;;;9202:41;9260:19;;71706:87:0;8878:407:1;71706:87:0;-1:-1:-1;;;;;;71811:19:0;;;;;;;;:12;:19;;;;;;;;:26;;;;;;;;;71589:256::o;78994:120::-;23059:13;:11;:13::i;:::-;79058:47:::1;::::0;79066:10:::1;::::0;79083:21:::1;79058:47:::0;::::1;;;::::0;::::1;::::0;;;79083:21;79066:10;79058:47;::::1;;;;;;79050:56;;;::::0;::::1;;78994:120::o:0;60635:185::-;60773:39;60790:4;60796:2;60800:7;60773:39;;;;;;;;;;;;:16;:39::i;79122:344::-;79183:16;79212:15;79230:17;79240:6;79230:9;:17::i;:::-;79212:35;;79260:25;79302:10;79288:25;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;79288:25:0;;79260:53;;79328:6;79324:107;79344:10;79340:1;:14;79324:107;;;79389:30;79409:6;79417:1;79389:19;:30::i;:::-;79375:8;79384:1;79375:11;;;;;;;;:::i;:::-;;;;;;;;;;:44;79356:3;;;;:::i;:::-;;;;79324:107;;;-1:-1:-1;79450:8:0;79122:344;-1:-1:-1;;;79122: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;;9764:2:1;72206:95:0;;;9746:21:1;9803:2;9783:18;;;9776:30;9842:34;9822:18;;;9815:62;-1:-1:-1;;;9893:18:1;;;9886:42;9945:19;;72206:95:0;9562: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;57869:19;57861:56;;;;-1:-1:-1;;;57861:56:0;;10177:2:1;57861:56:0;;;10159:21:1;10216:2;10196:18;;;10189:30;-1:-1:-1;;;10235:18:1;;;10228:54;10299:18;;57861:56:0;9975:348:1;57457:207:0;57529:7;-1:-1:-1;;;;;57557:19:0;;57549:73;;;;-1:-1:-1;;;57549:73:0;;10530:2:1;57549:73:0;;;10512:21:1;10569:2;10549:18;;;10542:30;10608:34;10588:18;;;10581:62;-1:-1:-1;;;10659:18:1;;;10652:39;10708:19;;57549:73:0;10328: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;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;78139:115::-;78183:13;78203:46;;;;;;;;;;;;;;;;;;;78139:115;:::o;24079:201::-;23059:13;:11;:13::i;:::-;-1:-1:-1;;;;;24168:22:0;::::1;24160:73;;;::::0;-1:-1:-1;;;24160:73:0;;11415:2:1;24160:73:0::1;::::0;::::1;11397:21:1::0;11454:2;11434:18;;;11427:30;11493:34;11473:18;;;11466:62;-1:-1:-1;;;11544:18:1;;;11537:36;11590:19;;24160:73:0::1;11213:402:1::0;24160:73:0::1;24244:28;24263:8;24244:18;:28::i;18077:127::-:0;18166:19;;18184:1;18166:19;;;18077:127::o;71281:224::-;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;;10177:2:1;67577:53:0;;;10159:21:1;10216:2;10196:18;;;10189:30;-1:-1:-1;;;10235:18:1;;;10228:54;10299:18;;67577:53:0;9975: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;;11822:2:1;23394:68:0;;;11804:21:1;;;11841:18;;;11834:30;11900:34;11880:18;;;11873:62;11952:18;;23394:68:0;11620: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;;12183:2:1;66162:81:0;;;12165:21:1;12222:2;12202:18;;;12195:30;12261:34;12241:18;;;12234:62;-1:-1:-1;;;12312:18:1;;;12305:35;12357:19;;66162:81:0;11981:401:1;66162:81:0;-1:-1:-1;;;;;66262:16:0;;66254:65;;;;-1:-1:-1;;;66254:65:0;;12589:2:1;66254:65:0;;;12571:21:1;12628:2;12608:18;;;12601:30;12667:34;12647:18;;;12640:62;-1:-1:-1;;;12718:18:1;;;12711:34;12762:19;;66254:65:0;12387: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;;13124:2:1;67237:55:0;;;13106:21:1;13163:2;13143:18;;;13136:30;13202:27;13182:18;;;13175:55;13247:18;;67237:55:0;12922: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;78262:103::-;78314:13;78347:10;78340:17;;;;;:::i;18978:723::-;19034:13;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;79474:189::-;79610:45;79637:4;79643:2;79647:7;79610: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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;68654:13:0;;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;;15019:2:1;64685:61:0;;;15001:21:1;;;15038:18;;;15031:30;15097:34;15077:18;;;15070:62;15149:18;;64685:61:0;14817: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;;15380:2:1;64757:58:0;;;15362:21:1;15419:2;15399:18;;;15392:30;15458;15438:18;;;15431:58;15506:18;;64757:58:0;15178: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:258::-;664:1;674:113;688:6;685:1;682:13;674:113;;;764:11;;;758:18;745:11;;;738:39;710:2;703:10;674:113;;;805:6;802:1;799:13;796:48;;;-1:-1:-1;;840:1:1;822:16;;815:27;592:258::o;855:::-;897:3;935:5;929:12;962:6;957:3;950:19;978:63;1034:6;1027:4;1022:3;1018:14;1011:4;1004:5;1000:16;978:63;:::i;:::-;1095:2;1074:15;-1:-1:-1;;1070:29:1;1061:39;;;;1102:4;1057:50;;855:258;-1:-1:-1;;855:258:1:o;1118:220::-;1267:2;1256:9;1249:21;1230:4;1287:45;1328:2;1317:9;1313:18;1305:6;1287:45;:::i;1343:180::-;1402:6;1455:2;1443:9;1434:7;1430:23;1426:32;1423:52;;;1471:1;1468;1461:12;1423:52;-1:-1:-1;1494:23:1;;1343:180;-1:-1:-1;1343:180:1:o;1736:173::-;1804:20;;-1:-1:-1;;;;;1853:31:1;;1843:42;;1833:70;;1899:1;1896;1889:12;1833:70;1736:173;;;:::o;1914:254::-;1982:6;1990;2043:2;2031:9;2022:7;2018:23;2014:32;2011:52;;;2059:1;2056;2049:12;2011:52;2082:29;2101:9;2082:29;:::i;:::-;2072:39;2158:2;2143:18;;;;2130:32;;-1:-1:-1;;;1914:254:1:o;2173:186::-;2232:6;2285:2;2273:9;2264:7;2260:23;2256:32;2253:52;;;2301:1;2298;2291:12;2253:52;2324:29;2343:9;2324:29;:::i;2546:328::-;2623:6;2631;2639;2692:2;2680:9;2671:7;2667:23;2663:32;2660:52;;;2708:1;2705;2698:12;2660:52;2731:29;2750:9;2731:29;:::i;:::-;2721:39;;2779:38;2813:2;2802:9;2798:18;2779:38;:::i;:::-;2769:48;;2864:2;2853:9;2849:18;2836:32;2826:42;;2546:328;;;;;:::o;3072:632::-;3243:2;3295:21;;;3365:13;;3268:18;;;3387:22;;;3214:4;;3243:2;3466:15;;;;3440:2;3425:18;;;3214:4;3509:169;3523:6;3520:1;3517:13;3509:169;;;3584:13;;3572:26;;3653:15;;;;3618:12;;;;3545:1;3538:9;3509:169;;;-1:-1:-1;3695:3:1;;3072:632;-1:-1:-1;;;;;;3072:632:1:o;3709:118::-;3795:5;3788:13;3781:21;3774:5;3771:32;3761:60;;3817:1;3814;3807:12;3832:315;3897:6;3905;3958:2;3946:9;3937:7;3933:23;3929:32;3926:52;;;3974:1;3971;3964:12;3926:52;3997:29;4016:9;3997:29;:::i;:::-;3987:39;;4076:2;4065:9;4061:18;4048:32;4089:28;4111:5;4089:28;:::i;:::-;4136:5;4126:15;;;3832:315;;;;;:::o;4152:127::-;4213:10;4208:3;4204:20;4201:1;4194:31;4244:4;4241:1;4234:15;4268:4;4265:1;4258:15;4284:1138;4379:6;4387;4395;4403;4456:3;4444:9;4435:7;4431:23;4427:33;4424:53;;;4473:1;4470;4463:12;4424:53;4496:29;4515:9;4496:29;:::i;:::-;4486:39;;4544:38;4578:2;4567:9;4563:18;4544:38;:::i;:::-;4534:48;;4629:2;4618:9;4614:18;4601:32;4591:42;;4684:2;4673:9;4669:18;4656:32;4707:18;4748:2;4740:6;4737:14;4734:34;;;4764:1;4761;4754:12;4734:34;4802:6;4791:9;4787:22;4777:32;;4847:7;4840:4;4836:2;4832:13;4828:27;4818:55;;4869:1;4866;4859:12;4818:55;4905:2;4892:16;4927:2;4923;4920:10;4917:36;;;4933:18;;:::i;:::-;5008:2;5002:9;4976:2;5062:13;;-1:-1:-1;;5058:22:1;;;5082:2;5054:31;5050:40;5038:53;;;5106:18;;;5126:22;;;5103:46;5100:72;;;5152:18;;:::i;:::-;5192:10;5188:2;5181:22;5227:2;5219:6;5212:18;5267:7;5262:2;5257;5253;5249:11;5245:20;5242:33;5239:53;;;5288:1;5285;5278:12;5239:53;5344:2;5339;5335;5331:11;5326:2;5318:6;5314:15;5301:46;5389:1;5384:2;5379;5371:6;5367:15;5363:24;5356:35;5410:6;5400:16;;;;;;;4284:1138;;;;;;;:::o;5427:260::-;5495:6;5503;5556:2;5544:9;5535:7;5531:23;5527:32;5524:52;;;5572:1;5569;5562:12;5524:52;5595:29;5614:9;5595:29;:::i;:::-;5585:39;;5643:38;5677:2;5666:9;5662:18;5643:38;:::i;:::-;5633:48;;5427:260;;;;;:::o;5692:380::-;5771:1;5767:12;;;;5814;;;5835:61;;5889:4;5881:6;5877:17;5867:27;;5835:61;5942:2;5934:6;5931:14;5911:18;5908:38;5905:161;;;5988:10;5983:3;5979:20;5976:1;5969:31;6023:4;6020:1;6013:15;6051:4;6048:1;6041:15;5905:161;;5692:380;;;:::o;7120:184::-;7190:6;7243:2;7231:9;7222:7;7218:23;7214:32;7211:52;;;7259:1;7256;7249:12;7211:52;-1:-1:-1;7282:16:1;;7120:184;-1:-1:-1;7120:184:1:o;7588:245::-;7655:6;7708:2;7696:9;7687:7;7683:23;7679:32;7676:52;;;7724:1;7721;7714:12;7676:52;7756:9;7750:16;7775:28;7797:5;7775:28;:::i;8198:127::-;8259:10;8254:3;8250:20;8247:1;8240:31;8290:4;8287:1;8280:15;8314:4;8311:1;8304:15;8330:128;8370:3;8401:1;8397:6;8394:1;8391:13;8388:39;;;8407:18;;:::i;:::-;-1:-1:-1;8443:9:1;;8330:128::o;8463:410::-;8665:2;8647:21;;;8704:2;8684:18;;;8677:30;8743:34;8738:2;8723:18;;8716:62;-1:-1:-1;;;8809:2:1;8794:18;;8787:44;8863:3;8848:19;;8463:410::o;9290:127::-;9351:10;9346:3;9342:20;9339:1;9332:31;9382:4;9379:1;9372:15;9406:4;9403:1;9396:15;9422:135;9461:3;-1:-1:-1;;9482:17:1;;9479:43;;;9502:18;;:::i;:::-;-1:-1:-1;9549:1:1;9538:13;;9422:135::o;10738:470::-;10917:3;10955:6;10949:13;10971:53;11017:6;11012:3;11005:4;10997:6;10993:17;10971:53;:::i;:::-;11087:13;;11046:16;;;;11109:57;11087:13;11046:16;11143:4;11131:17;;11109:57;:::i;:::-;11182:20;;10738:470;-1:-1:-1;;;;10738:470:1:o;12792:125::-;12832:4;12860:1;12857;12854:8;12851:34;;;12865:18;;:::i;:::-;-1:-1:-1;12902:9:1;;12792:125::o;13276:414::-;13478:2;13460:21;;;13517:2;13497:18;;;13490:30;13556:34;13551:2;13536:18;;13529:62;-1:-1:-1;;;13622:2:1;13607:18;;13600:48;13680:3;13665:19;;13276:414::o;13695:127::-;13756:10;13751:3;13747:20;13744:1;13737:31;13787:4;13784:1;13777:15;13811:4;13808:1;13801:15;13827:120;13867:1;13893;13883:35;;13898:18;;:::i;:::-;-1:-1:-1;13932:9:1;;13827:120::o;13952:112::-;13984:1;14010;14000:35;;14015:18;;:::i;:::-;-1:-1:-1;14049:9:1;;13952:112::o;14069:489::-;-1:-1:-1;;;;;14338:15:1;;;14320:34;;14390:15;;14385:2;14370:18;;14363:43;14437:2;14422:18;;14415:34;;;14485:3;14480:2;14465:18;;14458:31;;;14263:4;;14506:46;;14532:19;;14524:6;14506:46;:::i;:::-;14498:54;14069:489;-1:-1:-1;;;;;;14069:489:1:o;14563:249::-;14632:6;14685:2;14673:9;14664:7;14660:23;14656:32;14653:52;;;14701:1;14698;14691:12;14653:52;14733:9;14727:16;14752:30;14776:5;14752:30;:::i;15535:127::-;15596:10;15591:3;15587:20;15584:1;15577:31;15627:4;15624:1;15617:15;15651:4;15648:1;15641:15
Swarm Source
ipfs://0fe47e69d7fd929bd36c10963cc03398972e48f834d49fd2a6834c16cdaf7226
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.