Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00Latest 25 from a total of 267 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Claim | 14995953 | 1242 days ago | IN | 0 ETH | 0.00025324 | ||||
| Claim | 14985094 | 1244 days ago | IN | 0 ETH | 0.00027856 | ||||
| Claim | 14958184 | 1249 days ago | IN | 0 ETH | 0.0007771 | ||||
| Claim | 14957008 | 1249 days ago | IN | 0 ETH | 0.00258862 | ||||
| Claim | 14955265 | 1249 days ago | IN | 0 ETH | 0.02018021 | ||||
| Claim | 14954712 | 1249 days ago | IN | 0 ETH | 0.00470908 | ||||
| Claim | 14954602 | 1249 days ago | IN | 0 ETH | 0.00605578 | ||||
| Claim | 14952786 | 1250 days ago | IN | 0 ETH | 0.00243208 | ||||
| Claim | 14952471 | 1250 days ago | IN | 0 ETH | 0.00233317 | ||||
| Claim | 14952102 | 1250 days ago | IN | 0 ETH | 0.00400863 | ||||
| Claim | 14952097 | 1250 days ago | IN | 0 ETH | 0.00309542 | ||||
| Claim | 14952060 | 1250 days ago | IN | 0 ETH | 0.00304755 | ||||
| Claim | 14952004 | 1250 days ago | IN | 0 ETH | 0.00516769 | ||||
| Claim | 14951934 | 1250 days ago | IN | 0 ETH | 0.00351999 | ||||
| Claim | 14951888 | 1250 days ago | IN | 0 ETH | 0.00314708 | ||||
| Claim | 14951854 | 1250 days ago | IN | 0 ETH | 0.00223263 | ||||
| Claim | 14951592 | 1250 days ago | IN | 0 ETH | 0.00328026 | ||||
| Claim | 14951361 | 1250 days ago | IN | 0 ETH | 0.00248887 | ||||
| Claim | 14951015 | 1250 days ago | IN | 0 ETH | 0.00295132 | ||||
| Claim | 14950186 | 1250 days ago | IN | 0 ETH | 0.00268668 | ||||
| Claim | 14950166 | 1250 days ago | IN | 0 ETH | 0.00156918 | ||||
| Claim | 14950034 | 1250 days ago | IN | 0 ETH | 0.00240224 | ||||
| Claim | 14950018 | 1250 days ago | IN | 0 ETH | 0.00350174 | ||||
| Claim | 14949751 | 1250 days ago | IN | 0 ETH | 0.00187321 | ||||
| Claim | 14949682 | 1250 days ago | IN | 0 ETH | 0.00232504 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
Quest
Compiler Version
v0.8.9+commit.e5eed63a
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
error Quest_Edu_Already_Claimed();
error Quest_Edu_Wrong_Verifier();
error Quest_Edu_Not_Enough_Funds();
error Quest_Edu_Only_Owner();
error Quest_Edu_Not_Ended();
error Quest_Edu_Ended();
error Quest_Edu_Not_Started();
contract Quest {
using ECDSA for bytes32;
using SafeERC20 for IERC20;
uint256 public constant BASE_REWARD = 10 * 10**18;
uint256 public constant FOUNDERS_BONUS = 50 * 10**18;
uint256 public constant QUEST_DURATION = 7 days;
address public immutable owner;
IERC721Enumerable public immutable foundersNft;
IERC20 public immutable edu;
address public verifier;
uint256 public startDate;
mapping(address => bool) public hasClaimed;
mapping(uint256 => bool) public usedFoundersBonus;
constructor(
address _owner,
address _edu,
address _foundersNft
) {
owner = _owner;
edu = IERC20(_edu);
foundersNft = IERC721Enumerable(_foundersNft);
}
function start(address _verifier) external {
if (msg.sender != owner) {
revert Quest_Edu_Only_Owner();
}
verifier = _verifier;
startDate = block.timestamp;
}
function finalizeQuest() external {
if (msg.sender != owner) {
revert Quest_Edu_Only_Owner();
}
if (startDate + QUEST_DURATION > block.timestamp) {
revert Quest_Edu_Not_Ended();
}
edu.safeTransfer(owner, edu.balanceOf(address(this)));
}
function claim(bytes calldata verifierSignature) external {
if (startDate == 0) {
revert Quest_Edu_Not_Started();
}
if (startDate + QUEST_DURATION < block.timestamp) {
revert Quest_Edu_Ended();
}
if (hasClaimed[msg.sender]) {
revert Quest_Edu_Already_Claimed();
}
bytes32 signedMessage = keccak256(abi.encodePacked(msg.sender)).toEthSignedMessageHash();
address verificationSigner = signedMessage.recover(verifierSignature);
if (verificationSigner != verifier) {
revert Quest_Edu_Wrong_Verifier();
}
uint256 award = BASE_REWARD;
uint256 numberOfFounderNfts = foundersNft.balanceOf(msg.sender);
unchecked {
for (uint16 i = 0; i < numberOfFounderNfts; i++) {
uint256 tokenId = foundersNft.tokenOfOwnerByIndex(msg.sender, i);
if (!usedFoundersBonus[tokenId]) {
award = award + FOUNDERS_BONUS;
usedFoundersBonus[tokenId] = true;
}
}
}
if (edu.balanceOf(address(this)) < award) {
revert Quest_Edu_Not_Enough_Funds();
}
hasClaimed[msg.sender] = true;
edu.safeTransfer(msg.sender, award);
}
}// SPDX-License-Identifier: MIT
// 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);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
import "../../../utils/Address.sol";
/**
* @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));
}
}
/**
* @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");
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol)
pragma solidity ^0.8.0;
import "../../utils/introspection/IERC165.sol";
/**
* @dev Required interface of an ERC721 compliant contract.
*/
interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
*/
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/**
* @dev Returns the number of tokens in ``owner``'s account.
*/
function balanceOf(address owner) external view returns (uint256 balance);
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) external view returns (address owner);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`.
*
* 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 be have been allowed to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external;
/**
* @dev 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);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)
pragma solidity ^0.8.0;
import "../IERC721.sol";
/**
* @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Enumerable is IERC721 {
/**
* @dev Returns the total amount of tokens stored by the contract.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns a token ID owned by `owner` at a given `index` of its token list.
* Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
*/
function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);
/**
* @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
* Use along with {totalSupply} to enumerate all tokens.
*/
function tokenByIndex(uint256 index) external view returns (uint256);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.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
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT licence
// https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
if (value == 0) {
return "0";
}
uint256 temp = value;
uint256 digits;
while (temp != 0) {
digits++;
temp /= 10;
}
bytes memory buffer = new bytes(digits);
while (value != 0) {
digits -= 1;
buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
value /= 10;
}
return string(buffer);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
if (value == 0) {
return "0x00";
}
uint256 temp = value;
uint256 length = 0;
while (temp != 0) {
length++;
temp >>= 8;
}
return toHexString(value, length);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = _HEX_SYMBOLS[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol)
pragma solidity ^0.8.0;
import "../Strings.sol";
/**
* @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
*
* These functions can be used to verify that a message was signed by the holder
* of the private keys of a given address.
*/
library ECDSA {
enum RecoverError {
NoError,
InvalidSignature,
InvalidSignatureLength,
InvalidSignatureS,
InvalidSignatureV
}
function _throwError(RecoverError error) private pure {
if (error == RecoverError.NoError) {
return; // no error: do nothing
} else if (error == RecoverError.InvalidSignature) {
revert("ECDSA: invalid signature");
} else if (error == RecoverError.InvalidSignatureLength) {
revert("ECDSA: invalid signature length");
} else if (error == RecoverError.InvalidSignatureS) {
revert("ECDSA: invalid signature 's' value");
} else if (error == RecoverError.InvalidSignatureV) {
revert("ECDSA: invalid signature 'v' value");
}
}
/**
* @dev Returns the address that signed a hashed message (`hash`) with
* `signature` or error string. This address can then be used for verification purposes.
*
* The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
* this function rejects them by requiring the `s` value to be in the lower
* half order, and the `v` value to be either 27 or 28.
*
* IMPORTANT: `hash` _must_ be the result of a hash operation for the
* verification to be secure: it is possible to craft signatures that
* recover to arbitrary addresses for non-hashed data. A safe way to ensure
* this is by receiving a hash of the original message (which may otherwise
* be too long), and then calling {toEthSignedMessageHash} on it.
*
* Documentation for signature generation:
* - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
* - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
*
* _Available since v4.3._
*/
function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
// Check the signature length
// - case 65: r,s,v signature (standard)
// - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
if (signature.length == 65) {
bytes32 r;
bytes32 s;
uint8 v;
// ecrecover takes the signature parameters, and the only way to get them
// currently is to use assembly.
assembly {
r := mload(add(signature, 0x20))
s := mload(add(signature, 0x40))
v := byte(0, mload(add(signature, 0x60)))
}
return tryRecover(hash, v, r, s);
} else if (signature.length == 64) {
bytes32 r;
bytes32 vs;
// ecrecover takes the signature parameters, and the only way to get them
// currently is to use assembly.
assembly {
r := mload(add(signature, 0x20))
vs := mload(add(signature, 0x40))
}
return tryRecover(hash, r, vs);
} else {
return (address(0), RecoverError.InvalidSignatureLength);
}
}
/**
* @dev Returns the address that signed a hashed message (`hash`) with
* `signature`. This address can then be used for verification purposes.
*
* The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
* this function rejects them by requiring the `s` value to be in the lower
* half order, and the `v` value to be either 27 or 28.
*
* IMPORTANT: `hash` _must_ be the result of a hash operation for the
* verification to be secure: it is possible to craft signatures that
* recover to arbitrary addresses for non-hashed data. A safe way to ensure
* this is by receiving a hash of the original message (which may otherwise
* be too long), and then calling {toEthSignedMessageHash} on it.
*/
function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
(address recovered, RecoverError error) = tryRecover(hash, signature);
_throwError(error);
return recovered;
}
/**
* @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
*
* See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
*
* _Available since v4.3._
*/
function tryRecover(
bytes32 hash,
bytes32 r,
bytes32 vs
) internal pure returns (address, RecoverError) {
bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
uint8 v = uint8((uint256(vs) >> 255) + 27);
return tryRecover(hash, v, r, s);
}
/**
* @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
*
* _Available since v4.2._
*/
function recover(
bytes32 hash,
bytes32 r,
bytes32 vs
) internal pure returns (address) {
(address recovered, RecoverError error) = tryRecover(hash, r, vs);
_throwError(error);
return recovered;
}
/**
* @dev Overload of {ECDSA-tryRecover} that receives the `v`,
* `r` and `s` signature fields separately.
*
* _Available since v4.3._
*/
function tryRecover(
bytes32 hash,
uint8 v,
bytes32 r,
bytes32 s
) internal pure returns (address, RecoverError) {
// EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
// unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
// the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
// signatures from current libraries generate a unique signature with an s-value in the lower half order.
//
// If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
// with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
// vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
// these malleable signatures as well.
if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
return (address(0), RecoverError.InvalidSignatureS);
}
if (v != 27 && v != 28) {
return (address(0), RecoverError.InvalidSignatureV);
}
// If the signature is valid (and not malleable), return the signer address
address signer = ecrecover(hash, v, r, s);
if (signer == address(0)) {
return (address(0), RecoverError.InvalidSignature);
}
return (signer, RecoverError.NoError);
}
/**
* @dev Overload of {ECDSA-recover} that receives the `v`,
* `r` and `s` signature fields separately.
*/
function recover(
bytes32 hash,
uint8 v,
bytes32 r,
bytes32 s
) internal pure returns (address) {
(address recovered, RecoverError error) = tryRecover(hash, v, r, s);
_throwError(error);
return recovered;
}
/**
* @dev Returns an Ethereum Signed Message, created from a `hash`. This
* produces hash corresponding to the one signed with the
* https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
* JSON-RPC method as part of EIP-191.
*
* See {recover}.
*/
function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
// 32 is the length in bytes of hash,
// enforced by the type signature above
return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
}
/**
* @dev Returns an Ethereum Signed Message, created from `s`. This
* produces hash corresponding to the one signed with the
* https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
* JSON-RPC method as part of EIP-191.
*
* See {recover}.
*/
function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
}
/**
* @dev Returns an Ethereum Signed Typed Data, created from a
* `domainSeparator` and a `structHash`. This produces hash corresponding
* to the one signed with the
* https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
* JSON-RPC method as part of EIP-712.
*
* See {recover}.
*/
function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
}
}// SPDX-License-Identifier: MIT
// 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);
}{
"evmVersion": "london",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs",
"useLiteralContent": true
},
"optimizer": {
"enabled": true,
"runs": 2000
},
"remappings": [],
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_edu","type":"address"},{"internalType":"address","name":"_foundersNft","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"Quest_Edu_Already_Claimed","type":"error"},{"inputs":[],"name":"Quest_Edu_Ended","type":"error"},{"inputs":[],"name":"Quest_Edu_Not_Ended","type":"error"},{"inputs":[],"name":"Quest_Edu_Not_Enough_Funds","type":"error"},{"inputs":[],"name":"Quest_Edu_Not_Started","type":"error"},{"inputs":[],"name":"Quest_Edu_Only_Owner","type":"error"},{"inputs":[],"name":"Quest_Edu_Wrong_Verifier","type":"error"},{"inputs":[],"name":"BASE_REWARD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FOUNDERS_BONUS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"QUEST_DURATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"verifierSignature","type":"bytes"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"edu","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"finalizeQuest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"foundersNft","outputs":[{"internalType":"contract IERC721Enumerable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"hasClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_verifier","type":"address"}],"name":"start","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startDate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"usedFoundersBonus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"verifier","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]Contract Creation Code
60e060405234801561001057600080fd5b5060405161135638038061135683398101604081905261002f91610068565b6001600160a01b0392831660805290821660c0521660a0526100ab565b80516001600160a01b038116811461006357600080fd5b919050565b60008060006060848603121561007d57600080fd5b6100868461004c565b92506100946020850161004c565b91506100a26040850161004c565b90509250925092565b60805160a05160c05161123d6101196000396000818161020a0152818161060e015281816106e80152818161080e01526108920152600081816101990152818161045b01526105290152600081816101720152818161072a015281816107e401526108c6015261123d6000f3fe608060405234801561001057600080fd5b50600436106100df5760003560e01c8063acefc2281161008c578063d85c340c11610066578063d85c340c146101ea578063dd0b281e146101f2578063e8a3f99f14610205578063f36e41291461022c57600080fd5b8063acefc228146101bb578063afd54df5146101cb578063c63ff8dd146101d557600080fd5b806373b2e80e116100bd57806373b2e80e1461013a5780638da5cb5b1461016d57806391e265591461019457600080fd5b80630b97bc86146100e457806322009af6146101005780632b7ac3f31461010f575b600080fd5b6100ed60015481565b6040519081526020015b60405180910390f35b6100ed678ac7230489e8000081565b600054610122906001600160a01b031681565b6040516001600160a01b0390911681526020016100f7565b61015d61014836600461102b565b60026020526000908152604090205460ff1681565b60405190151581526020016100f7565b6101227f000000000000000000000000000000000000000000000000000000000000000081565b6101227f000000000000000000000000000000000000000000000000000000000000000081565b6100ed6802b5e3af16b188000081565b6100ed62093a8081565b6101e86101e3366004611054565b61024f565b005b6101e861071f565b6101e861020036600461102b565b6108bb565b6101227f000000000000000000000000000000000000000000000000000000000000000081565b61015d61023a3660046110c6565b60036020526000908152604090205460ff1681565b600154610288576040517fd289124e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b4262093a8060015461029a91906110df565b10156102d2576040517f631c012a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360009081526002602052604090205460ff161561031c576040517fe3c3980900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b604080513360601b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016602080830191909152825160148184030181526034830184528051908201207f19457468657265756d205369676e6564204d6573736167653a0a3332000000006054840152607080840191909152835180840390910181526090909201909252805191012060006103ef84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250869392505061095b9050565b6000549091506001600160a01b03808316911614610439576040517fcaaa0ab500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040516370a0823160e01b8152336004820152678ac7230489e80000906000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b1580156104a557600080fd5b505afa1580156104b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104dd919061111e565b905060005b818161ffff1610156105f6576040517f2f745c5900000000000000000000000000000000000000000000000000000000815233600482015261ffff821660248201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690632f745c599060440160206040518083038186803b15801561057357600080fd5b505afa158015610587573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105ab919061111e565b60008181526003602052604090205490915060ff166105ed576000818152600360205260409020805460ff191660011790556802b5e3af16b188000093909301925b506001016104e2565b506040516370a0823160e01b815230600482015282907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b15801561065857600080fd5b505afa15801561066c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610690919061111e565b10156106c8576040517ff96fbfa100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336000818152600260205260409020805460ff19166001179055610717907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316908461097f565b505050505050565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610781576040517f9aa4e00400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b4262093a8060015461079391906110df565b11156107cb576040517f4e72a92f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040516370a0823160e01b81523060048201526108b9907f0000000000000000000000000000000000000000000000000000000000000000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a082319060240160206040518083038186803b15801561085057600080fd5b505afa158015610864573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610888919061111e565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016919061097f565b565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461091d576040517f9aa4e00400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b039290921691909117905542600155565b600080600061096a8585610a04565b9150915061097781610a74565b509392505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790526109ff908490610c6d565b505050565b600080825160411415610a3b5760208301516040840151606085015160001a610a2f87828585610d52565b94509450505050610a6d565b825160401415610a655760208301516040840151610a5a868383610e3f565b935093505050610a6d565b506000905060025b9250929050565b6000816004811115610a8857610a88611137565b1415610a915750565b6001816004811115610aa557610aa5611137565b1415610af85760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064015b60405180910390fd5b6002816004811115610b0c57610b0c611137565b1415610b5a5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610aef565b6003816004811115610b6e57610b6e611137565b1415610be25760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610aef565b6004816004811115610bf657610bf6611137565b1415610c6a5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610aef565b50565b6000610cc2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610e919092919063ffffffff16565b8051909150156109ff5780806020019051810190610ce09190611166565b6109ff5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610aef565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115610d895750600090506003610e36565b8460ff16601b14158015610da157508460ff16601c14155b15610db25750600090506004610e36565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015610e06573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610e2f57600060019250925050610e36565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831681610e7560ff86901c601b6110df565b9050610e8387828885610d52565b935093505050935093915050565b6060610ea08484600085610eaa565b90505b9392505050565b606082471015610f225760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610aef565b6001600160a01b0385163b610f795760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610aef565b600080866001600160a01b03168587604051610f9591906111b8565b60006040518083038185875af1925050503d8060008114610fd2576040519150601f19603f3d011682016040523d82523d6000602084013e610fd7565b606091505b5091509150610fe7828286610ff2565b979650505050505050565b60608315611001575081610ea3565b8251156110115782518084602001fd5b8160405162461bcd60e51b8152600401610aef91906111d4565b60006020828403121561103d57600080fd5b81356001600160a01b0381168114610ea357600080fd5b6000806020838503121561106757600080fd5b823567ffffffffffffffff8082111561107f57600080fd5b818501915085601f83011261109357600080fd5b8135818111156110a257600080fd5b8660208285010111156110b457600080fd5b60209290920196919550909350505050565b6000602082840312156110d857600080fd5b5035919050565b60008219821115611119577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b500190565b60006020828403121561113057600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60006020828403121561117857600080fd5b81518015158114610ea357600080fd5b60005b838110156111a357818101518382015260200161118b565b838111156111b2576000848401525b50505050565b600082516111ca818460208701611188565b9190910192915050565b60208152600082518060208401526111f3816040850160208701611188565b601f01601f1916919091016040019291505056fea26469706673582212207dfdf122cf6464799cc77403f2222cb746b5381791e9e5c1d159f672523967f464736f6c6343000809003300000000000000000000000072a2f2b86ec635ec5c1115621ea7a7b4d0a393500000000000000000000000009340857794710bbccf68167222a1de4f0e269b100000000000000000000000006586aee1bad2f2ff809ba514db4d0f406426c902
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100df5760003560e01c8063acefc2281161008c578063d85c340c11610066578063d85c340c146101ea578063dd0b281e146101f2578063e8a3f99f14610205578063f36e41291461022c57600080fd5b8063acefc228146101bb578063afd54df5146101cb578063c63ff8dd146101d557600080fd5b806373b2e80e116100bd57806373b2e80e1461013a5780638da5cb5b1461016d57806391e265591461019457600080fd5b80630b97bc86146100e457806322009af6146101005780632b7ac3f31461010f575b600080fd5b6100ed60015481565b6040519081526020015b60405180910390f35b6100ed678ac7230489e8000081565b600054610122906001600160a01b031681565b6040516001600160a01b0390911681526020016100f7565b61015d61014836600461102b565b60026020526000908152604090205460ff1681565b60405190151581526020016100f7565b6101227f00000000000000000000000072a2f2b86ec635ec5c1115621ea7a7b4d0a3935081565b6101227f0000000000000000000000006586aee1bad2f2ff809ba514db4d0f406426c90281565b6100ed6802b5e3af16b188000081565b6100ed62093a8081565b6101e86101e3366004611054565b61024f565b005b6101e861071f565b6101e861020036600461102b565b6108bb565b6101227f0000000000000000000000009340857794710bbccf68167222a1de4f0e269b1081565b61015d61023a3660046110c6565b60036020526000908152604090205460ff1681565b600154610288576040517fd289124e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b4262093a8060015461029a91906110df565b10156102d2576040517f631c012a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360009081526002602052604090205460ff161561031c576040517fe3c3980900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b604080513360601b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016602080830191909152825160148184030181526034830184528051908201207f19457468657265756d205369676e6564204d6573736167653a0a3332000000006054840152607080840191909152835180840390910181526090909201909252805191012060006103ef84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250869392505061095b9050565b6000549091506001600160a01b03808316911614610439576040517fcaaa0ab500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040516370a0823160e01b8152336004820152678ac7230489e80000906000907f0000000000000000000000006586aee1bad2f2ff809ba514db4d0f406426c9026001600160a01b0316906370a082319060240160206040518083038186803b1580156104a557600080fd5b505afa1580156104b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104dd919061111e565b905060005b818161ffff1610156105f6576040517f2f745c5900000000000000000000000000000000000000000000000000000000815233600482015261ffff821660248201526000907f0000000000000000000000006586aee1bad2f2ff809ba514db4d0f406426c9026001600160a01b031690632f745c599060440160206040518083038186803b15801561057357600080fd5b505afa158015610587573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105ab919061111e565b60008181526003602052604090205490915060ff166105ed576000818152600360205260409020805460ff191660011790556802b5e3af16b188000093909301925b506001016104e2565b506040516370a0823160e01b815230600482015282907f0000000000000000000000009340857794710bbccf68167222a1de4f0e269b106001600160a01b0316906370a082319060240160206040518083038186803b15801561065857600080fd5b505afa15801561066c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610690919061111e565b10156106c8576040517ff96fbfa100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336000818152600260205260409020805460ff19166001179055610717907f0000000000000000000000009340857794710bbccf68167222a1de4f0e269b106001600160a01b0316908461097f565b505050505050565b336001600160a01b037f00000000000000000000000072a2f2b86ec635ec5c1115621ea7a7b4d0a393501614610781576040517f9aa4e00400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b4262093a8060015461079391906110df565b11156107cb576040517f4e72a92f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040516370a0823160e01b81523060048201526108b9907f00000000000000000000000072a2f2b86ec635ec5c1115621ea7a7b4d0a39350906001600160a01b037f0000000000000000000000009340857794710bbccf68167222a1de4f0e269b1016906370a082319060240160206040518083038186803b15801561085057600080fd5b505afa158015610864573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610888919061111e565b6001600160a01b037f0000000000000000000000009340857794710bbccf68167222a1de4f0e269b1016919061097f565b565b336001600160a01b037f00000000000000000000000072a2f2b86ec635ec5c1115621ea7a7b4d0a39350161461091d576040517f9aa4e00400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b039290921691909117905542600155565b600080600061096a8585610a04565b9150915061097781610a74565b509392505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790526109ff908490610c6d565b505050565b600080825160411415610a3b5760208301516040840151606085015160001a610a2f87828585610d52565b94509450505050610a6d565b825160401415610a655760208301516040840151610a5a868383610e3f565b935093505050610a6d565b506000905060025b9250929050565b6000816004811115610a8857610a88611137565b1415610a915750565b6001816004811115610aa557610aa5611137565b1415610af85760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064015b60405180910390fd5b6002816004811115610b0c57610b0c611137565b1415610b5a5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610aef565b6003816004811115610b6e57610b6e611137565b1415610be25760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610aef565b6004816004811115610bf657610bf6611137565b1415610c6a5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610aef565b50565b6000610cc2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610e919092919063ffffffff16565b8051909150156109ff5780806020019051810190610ce09190611166565b6109ff5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610aef565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115610d895750600090506003610e36565b8460ff16601b14158015610da157508460ff16601c14155b15610db25750600090506004610e36565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015610e06573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610e2f57600060019250925050610e36565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831681610e7560ff86901c601b6110df565b9050610e8387828885610d52565b935093505050935093915050565b6060610ea08484600085610eaa565b90505b9392505050565b606082471015610f225760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610aef565b6001600160a01b0385163b610f795760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610aef565b600080866001600160a01b03168587604051610f9591906111b8565b60006040518083038185875af1925050503d8060008114610fd2576040519150601f19603f3d011682016040523d82523d6000602084013e610fd7565b606091505b5091509150610fe7828286610ff2565b979650505050505050565b60608315611001575081610ea3565b8251156110115782518084602001fd5b8160405162461bcd60e51b8152600401610aef91906111d4565b60006020828403121561103d57600080fd5b81356001600160a01b0381168114610ea357600080fd5b6000806020838503121561106757600080fd5b823567ffffffffffffffff8082111561107f57600080fd5b818501915085601f83011261109357600080fd5b8135818111156110a257600080fd5b8660208285010111156110b457600080fd5b60209290920196919550909350505050565b6000602082840312156110d857600080fd5b5035919050565b60008219821115611119577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b500190565b60006020828403121561113057600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60006020828403121561117857600080fd5b81518015158114610ea357600080fd5b60005b838110156111a357818101518382015260200161118b565b838111156111b2576000848401525b50505050565b600082516111ca818460208701611188565b9190910192915050565b60208152600082518060208401526111f3816040850160208701611188565b601f01601f1916919091016040019291505056fea26469706673582212207dfdf122cf6464799cc77403f2222cb746b5381791e9e5c1d159f672523967f464736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000072a2f2b86ec635ec5c1115621ea7a7b4d0a393500000000000000000000000009340857794710bbccf68167222a1de4f0e269b100000000000000000000000006586aee1bad2f2ff809ba514db4d0f406426c902
-----Decoded View---------------
Arg [0] : _owner (address): 0x72a2f2b86Ec635eC5c1115621Ea7a7B4D0A39350
Arg [1] : _edu (address): 0x9340857794710bbccf68167222a1DE4F0e269b10
Arg [2] : _foundersNft (address): 0x6586aEe1BAd2F2ff809ba514Db4d0F406426c902
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 00000000000000000000000072a2f2b86ec635ec5c1115621ea7a7b4d0a39350
Arg [1] : 0000000000000000000000009340857794710bbccf68167222a1de4f0e269b10
Arg [2] : 0000000000000000000000006586aee1bad2f2ff809ba514db4d0f406426c902
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.