Overview
HYPE Balance
HYPE Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 150 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Transfer | 18207437 | 84 days ago | IN | 0 HYPE | 0.0001467 | ||||
| Mint Single | 16703114 | 101 days ago | IN | 0 HYPE | 0.00000396 | ||||
| Mint Single | 16703114 | 101 days ago | IN | 0 HYPE | 0.00000396 | ||||
| Approve | 16590618 | 102 days ago | IN | 0 HYPE | 0.00002844 | ||||
| Transfer | 16495182 | 103 days ago | IN | 0 HYPE | 0.00000509 | ||||
| Transfer | 16495167 | 103 days ago | IN | 0 HYPE | 0.00000428 | ||||
| Transfer | 16495097 | 103 days ago | IN | 0 HYPE | 0.00000431 | ||||
| Transfer | 16494425 | 103 days ago | IN | 0 HYPE | 0.00000376 | ||||
| Transfer | 16494381 | 103 days ago | IN | 0 HYPE | 0.00000584 | ||||
| Transfer | 16494142 | 103 days ago | IN | 0 HYPE | 0.0000033 | ||||
| Transfer | 16493831 | 103 days ago | IN | 0 HYPE | 0.00005888 | ||||
| Transfer | 16493623 | 103 days ago | IN | 0 HYPE | 0.00004641 | ||||
| Mint | 16475572 | 103 days ago | IN | 0 HYPE | 0.00113502 | ||||
| Mint | 16475450 | 103 days ago | IN | 0 HYPE | 0.00061508 | ||||
| Mint | 16475328 | 103 days ago | IN | 0 HYPE | 0.00039285 | ||||
| Mint | 16475206 | 103 days ago | IN | 0 HYPE | 0.01868945 | ||||
| Mint | 16475084 | 103 days ago | IN | 0 HYPE | 0.00069293 | ||||
| Mint | 16474962 | 103 days ago | IN | 0 HYPE | 0.00226532 | ||||
| Mint | 16474840 | 103 days ago | IN | 0 HYPE | 0.00393769 | ||||
| Mint | 16474718 | 103 days ago | IN | 0 HYPE | 0.00076453 | ||||
| Mint | 16474596 | 103 days ago | IN | 0 HYPE | 0.00275269 | ||||
| Mint | 16474474 | 103 days ago | IN | 0 HYPE | 0.00071096 | ||||
| Mint | 16474352 | 103 days ago | IN | 0 HYPE | 0.00463883 | ||||
| Mint | 16474230 | 103 days ago | IN | 0 HYPE | 0.00303246 | ||||
| Mint | 16474108 | 103 days ago | IN | 0 HYPE | 0.00084416 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Cross-Chain Transactions
Loading...
Loading
Contract Name:
pGLQ
Compiler Version
v0.8.28+commit.7893614a
Optimization Enabled:
No with 200 runs
Other Settings:
cancun EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.26;
import {IERC721} from "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {ERC20Burnable} from "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
contract pGLQ is Ownable, ERC20Burnable {
mapping(address => bool) public fromAllowed;
mapping(address => bool) public toAllowed;
address public factory;
constructor() Ownable(msg.sender) ERC20("preGLiquid", "pGLQ") {
fromAllowed[address(0)] = true;
toAllowed[address(0)] = true;
}
function setAllowed(bool mode, address adr, bool value) external onlyOwner {
if (mode) toAllowed[adr] = value;
else fromAllowed[adr] = value;
}
function mint(
address[] memory users,
uint[] memory amounts
) external onlyOwner {
for (uint i = 0; i < users.length; i++) _mint(users[i], amounts[i]);
}
function mintSingle(address user, uint amount) external onlyOwner {
_mint(user, amount);
}
function burn(
address[] memory users,
uint[] memory amounts
) external onlyOwner {
for (uint i = 0; i < users.length; i++) _burn(users[i], amounts[i]);
}
function burnSingle(address user, uint amount) external onlyOwner {
_burn(user, amount);
}
function _update(
address from,
address to,
uint256 value
) internal virtual override {
require(fromAllowed[from] || toAllowed[to]);
super._update(from, to, value);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)
pragma solidity ^0.8.20;
import {Context} from "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* The initial owner is set to the address provided by the deployer. 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;
/**
* @dev The caller account is not authorized to perform an operation.
*/
error OwnableUnauthorizedAccount(address account);
/**
* @dev The owner is not a valid owner account. (eg. `address(0)`)
*/
error OwnableInvalidOwner(address owner);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the address provided by the deployer as the initial owner.
*/
constructor(address initialOwner) {
if (initialOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(initialOwner);
}
/**
* @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 {
if (owner() != _msgSender()) {
revert OwnableUnauthorizedAccount(_msgSender());
}
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling 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 {
if (newOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;
/**
* @dev Standard ERC-20 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 tokens.
*/
interface IERC20Errors {
/**
* @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param balance Current balance for the interacting account.
* @param needed Minimum amount required to perform a transfer.
*/
error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC20InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC20InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
* @param spender Address that may be allowed to operate on tokens without being their owner.
* @param allowance Amount of tokens a `spender` is allowed to operate with.
* @param needed Minimum amount required to perform a transfer.
*/
error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC20InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `spender` to be approved. Used in approvals.
* @param spender Address that may be allowed to operate on tokens without being their owner.
*/
error ERC20InvalidSpender(address spender);
}
/**
* @dev Standard ERC-721 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-721 tokens.
*/
interface IERC721Errors {
/**
* @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in ERC-20.
* Used in balance queries.
* @param owner Address of the current owner of a token.
*/
error ERC721InvalidOwner(address owner);
/**
* @dev Indicates a `tokenId` whose `owner` is the zero address.
* @param tokenId Identifier number of a token.
*/
error ERC721NonexistentToken(uint256 tokenId);
/**
* @dev Indicates an error related to the ownership over a particular token. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param tokenId Identifier number of a token.
* @param owner Address of the current owner of a token.
*/
error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC721InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC721InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `operator`’s approval. Used in transfers.
* @param operator Address that may be allowed to operate on tokens without being their owner.
* @param tokenId Identifier number of a token.
*/
error ERC721InsufficientApproval(address operator, uint256 tokenId);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC721InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `operator` to be approved. Used in approvals.
* @param operator Address that may be allowed to operate on tokens without being their owner.
*/
error ERC721InvalidOperator(address operator);
}
/**
* @dev Standard ERC-1155 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-1155 tokens.
*/
interface IERC1155Errors {
/**
* @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param balance Current balance for the interacting account.
* @param needed Minimum amount required to perform a transfer.
* @param tokenId Identifier number of a token.
*/
error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC1155InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC1155InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `operator`’s approval. Used in transfers.
* @param operator Address that may be allowed to operate on tokens without being their owner.
* @param owner Address of the current owner of a token.
*/
error ERC1155MissingApprovalForAll(address operator, address owner);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC1155InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `operator` to be approved. Used in approvals.
* @param operator Address that may be allowed to operate on tokens without being their owner.
*/
error ERC1155InvalidOperator(address operator);
/**
* @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
* Used in batch transfers.
* @param idsLength Length of the array of token identifiers
* @param valuesLength Length of the array of token amounts
*/
error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/ERC20.sol)
pragma solidity ^0.8.20;
import {IERC20} from "./IERC20.sol";
import {IERC20Metadata} from "./extensions/IERC20Metadata.sol";
import {Context} from "../../utils/Context.sol";
import {IERC20Errors} from "../../interfaces/draft-IERC6093.sol";
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
*
* TIP: For a detailed writeup see our guide
* https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* The default value of {decimals} is 18. To change this, you should override
* this function so it returns a different value.
*
* We have followed general OpenZeppelin Contracts guidelines: functions revert
* instead returning `false` on failure. This behavior is nonetheless
* conventional and does not conflict with the expectations of ERC-20
* applications.
*/
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
mapping(address account => uint256) private _balances;
mapping(address account => mapping(address spender => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* Both values are immutable: they can only be set once during construction.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5.05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the default value returned by this function, unless
* it's overridden.
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual returns (uint8) {
return 18;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - the caller must have a balance of at least `value`.
*/
function transfer(address to, uint256 value) public virtual returns (bool) {
address owner = _msgSender();
_transfer(owner, to, value);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* NOTE: If `value` is the maximum `uint256`, the allowance is not updated on
* `transferFrom`. This is semantically equivalent to an infinite approval.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 value) public virtual returns (bool) {
address owner = _msgSender();
_approve(owner, spender, value);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Skips emitting an {Approval} event indicating an allowance update. This is not
* required by the ERC. See {xref-ERC20-_approve-address-address-uint256-bool-}[_approve].
*
* NOTE: Does not update the allowance if the current allowance
* is the maximum `uint256`.
*
* Requirements:
*
* - `from` and `to` cannot be the zero address.
* - `from` must have a balance of at least `value`.
* - the caller must have allowance for ``from``'s tokens of at least
* `value`.
*/
function transferFrom(address from, address to, uint256 value) public virtual returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, value);
_transfer(from, to, value);
return true;
}
/**
* @dev Moves a `value` amount of tokens from `from` to `to`.
*
* This internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* NOTE: This function is not virtual, {_update} should be overridden instead.
*/
function _transfer(address from, address to, uint256 value) internal {
if (from == address(0)) {
revert ERC20InvalidSender(address(0));
}
if (to == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(from, to, value);
}
/**
* @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`
* (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding
* this function.
*
* Emits a {Transfer} event.
*/
function _update(address from, address to, uint256 value) internal virtual {
if (from == address(0)) {
// Overflow check required: The rest of the code assumes that totalSupply never overflows
_totalSupply += value;
} else {
uint256 fromBalance = _balances[from];
if (fromBalance < value) {
revert ERC20InsufficientBalance(from, fromBalance, value);
}
unchecked {
// Overflow not possible: value <= fromBalance <= totalSupply.
_balances[from] = fromBalance - value;
}
}
if (to == address(0)) {
unchecked {
// Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.
_totalSupply -= value;
}
} else {
unchecked {
// Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.
_balances[to] += value;
}
}
emit Transfer(from, to, value);
}
/**
* @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).
* Relies on the `_update` mechanism
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* NOTE: This function is not virtual, {_update} should be overridden instead.
*/
function _mint(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(address(0), account, value);
}
/**
* @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.
* Relies on the `_update` mechanism.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* NOTE: This function is not virtual, {_update} should be overridden instead
*/
function _burn(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidSender(address(0));
}
_update(account, address(0), value);
}
/**
* @dev Sets `value` as the allowance of `spender` over the `owner`'s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero address.
* - `spender` cannot be the zero address.
*
* Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
*/
function _approve(address owner, address spender, uint256 value) internal {
_approve(owner, spender, value, true);
}
/**
* @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.
*
* By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by
* `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any
* `Approval` event during `transferFrom` operations.
*
* Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to
* true using the following override:
*
* ```solidity
* function _approve(address owner, address spender, uint256 value, bool) internal virtual override {
* super._approve(owner, spender, value, true);
* }
* ```
*
* Requirements are the same as {_approve}.
*/
function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {
if (owner == address(0)) {
revert ERC20InvalidApprover(address(0));
}
if (spender == address(0)) {
revert ERC20InvalidSpender(address(0));
}
_allowances[owner][spender] = value;
if (emitEvent) {
emit Approval(owner, spender, value);
}
}
/**
* @dev Updates `owner`'s allowance for `spender` based on spent `value`.
*
* Does not update the allowance value in case of infinite allowance.
* Revert if not enough allowance is available.
*
* Does not emit an {Approval} event.
*/
function _spendAllowance(address owner, address spender, uint256 value) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance < type(uint256).max) {
if (currentAllowance < value) {
revert ERC20InsufficientAllowance(spender, currentAllowance, value);
}
unchecked {
_approve(owner, spender, currentAllowance - value, false);
}
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC-20 standard as defined in the ERC.
*/
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 value of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the value of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the
* allowance mechanism. `value` 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 value) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/ERC20Burnable.sol)
pragma solidity ^0.8.20;
import {ERC20} from "../ERC20.sol";
import {Context} from "../../../utils/Context.sol";
/**
* @dev Extension of {ERC20} that allows token holders to destroy both their own
* tokens and those that they have an allowance for, in a way that can be
* recognized off-chain (via event analysis).
*/
abstract contract ERC20Burnable is Context, ERC20 {
/**
* @dev Destroys a `value` amount of tokens from the caller.
*
* See {ERC20-_burn}.
*/
function burn(uint256 value) public virtual {
_burn(_msgSender(), value);
}
/**
* @dev Destroys a `value` amount of tokens from `account`, deducting from
* the caller's allowance.
*
* See {ERC20-_burn} and {ERC20-allowance}.
*
* Requirements:
*
* - the caller must have allowance for ``accounts``'s tokens of at least
* `value`.
*/
function burnFrom(address account, uint256 value) public virtual {
_spendAllowance(account, _msgSender(), value);
_burn(account, value);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity ^0.8.20;
import {IERC20} from "../IERC20.sol";
/**
* @dev Interface for the optional metadata functions from the ERC-20 standard.
*/
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC721/IERC721.sol)
pragma solidity ^0.8.20;
import {IERC165} from "../../utils/introspection/IERC165.sol";
/**
* @dev Required interface of an ERC-721 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 ERC-721 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: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC-721
* or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
* understand this adds an external call which potentially creates a reentrancy vulnerability.
*
* 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 address zero.
*
* 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 v5.0.1) (utils/Context.sol)
pragma solidity ^0.8.20;
/**
* @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;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC-165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[ERC].
*
* 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[ERC 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": "cancun",
"libraries": {},
"metadata": {
"appendCBOR": true,
"bytecodeHash": "ipfs",
"useLiteralContent": false
},
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"remappings": [
"@openzeppelin/contracts/=lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/",
"@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/",
"erc4626-tests/=lib/openzeppelin-contracts-upgradeable/lib/erc4626-tests/",
"forge-std/=lib/forge-std/src/",
"halmos-cheatcodes/=lib/openzeppelin-contracts-upgradeable/lib/halmos-cheatcodes/src/",
"openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/",
"openzeppelin-contracts/=lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/",
"openzeppelin-foundry-upgrades/=lib/openzeppelin-foundry-upgrades/src/"
],
"viaIR": false
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","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":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"users","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnSingle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"fromAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"users","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintSingle","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":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"mode","type":"bool"},{"internalType":"address","name":"adr","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"setAllowed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"toAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
608060405234801561000f575f5ffd5b506040518060400160405280600a81526020017f707265474c6971756964000000000000000000000000000000000000000000008152506040518060400160405280600481526020017f70474c5100000000000000000000000000000000000000000000000000000000815250335f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036100ed575f6040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016100e491906102ce565b60405180910390fd5b6100fc816101ce60201b60201c565b50816004908161010c9190610524565b50806005908161011c9190610524565b505050600160065f5f73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff021916908315150217905550600160075f5f73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055506105f3565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6102b88261028f565b9050919050565b6102c8816102ae565b82525050565b5f6020820190506102e15f8301846102bf565b92915050565b5f81519050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061036257607f821691505b6020821081036103755761037461031e565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026103d77fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8261039c565b6103e1868361039c565b95508019841693508086168417925050509392505050565b5f819050919050565b5f819050919050565b5f61042561042061041b846103f9565b610402565b6103f9565b9050919050565b5f819050919050565b61043e8361040b565b61045261044a8261042c565b8484546103a8565b825550505050565b5f5f905090565b61046961045a565b610474818484610435565b505050565b5b818110156104975761048c5f82610461565b60018101905061047a565b5050565b601f8211156104dc576104ad8161037b565b6104b68461038d565b810160208510156104c5578190505b6104d96104d18561038d565b830182610479565b50505b505050565b5f82821c905092915050565b5f6104fc5f19846008026104e1565b1980831691505092915050565b5f61051483836104ed565b9150826002028217905092915050565b61052d826102e7565b67ffffffffffffffff811115610546576105456102f1565b5b610550825461034b565b61055b82828561049b565b5f60209050601f83116001811461058c575f841561057a578287015190505b6105848582610509565b8655506105eb565b601f19841661059a8661037b565b5f5b828110156105c15784890151825560018201915060208501945060208101905061059c565b868310156105de57848901516105da601f8916826104ed565b8355505b6001600288020188555050505b505050505050565b611972806106005f395ff3fe608060405234801561000f575f5ffd5b506004361061013f575f3560e01c806370a08231116100b657806395d89b411161007a57806395d89b411461035d578063a9059cbb1461037b578063c45a0155146103ab578063dd62ed3e146103c9578063e467f7e0146103f9578063f2fde38b146104155761013f565b806370a08231146102cd578063715018a6146102fd578063777685bf1461030757806379cc6790146103235780638da5cb5b1461033f5761013f565b80631e96cf49116101085780631e96cf49146101fb57806323b872dd14610217578063313ce567146102475780633b57b7b71461026557806342966c681461029557806355ba56ef146102b15761013f565b8062cfc3f51461014357806306fdde0314610173578063095ea7b31461019157806309be58f8146101c157806318160ddd146101dd575b5f5ffd5b61015d60048036038101906101589190611291565b610431565b60405161016a91906112d6565b60405180910390f35b61017b61044e565b604051610188919061135f565b60405180910390f35b6101ab60048036038101906101a691906113b2565b6104de565b6040516101b891906112d6565b60405180910390f35b6101db60048036038101906101d691906113b2565b610500565b005b6101e5610516565b6040516101f291906113ff565b60405180910390f35b61021560048036038101906102109190611618565b61051f565b005b610231600480360381019061022c919061168e565b610585565b60405161023e91906112d6565b60405180910390f35b61024f6105b3565b60405161025c91906116f9565b60405180910390f35b61027f600480360381019061027a9190611291565b6105bb565b60405161028c91906112d6565b60405180910390f35b6102af60048036038101906102aa9190611712565b6105d8565b005b6102cb60048036038101906102c69190611767565b6105ec565b005b6102e760048036038101906102e29190611291565b6106ad565b6040516102f491906113ff565b60405180910390f35b6103056106f3565b005b610321600480360381019061031c91906113b2565b610706565b005b61033d600480360381019061033891906113b2565b61071c565b005b61034761073c565b60405161035491906117c6565b60405180910390f35b610365610763565b604051610372919061135f565b60405180910390f35b610395600480360381019061039091906113b2565b6107f3565b6040516103a291906112d6565b60405180910390f35b6103b3610815565b6040516103c091906117c6565b60405180910390f35b6103e360048036038101906103de91906117df565b61083a565b6040516103f091906113ff565b60405180910390f35b610413600480360381019061040e9190611618565b6108bc565b005b61042f600480360381019061042a9190611291565b610922565b005b6007602052805f5260405f205f915054906101000a900460ff1681565b60606004805461045d9061184a565b80601f01602080910402602001604051908101604052809291908181526020018280546104899061184a565b80156104d45780601f106104ab576101008083540402835291602001916104d4565b820191905f5260205f20905b8154815290600101906020018083116104b757829003601f168201915b5050505050905090565b5f5f6104e86109a6565b90506104f58185856109ad565b600191505092915050565b6105086109bf565b6105128282610a46565b5050565b5f600354905090565b6105276109bf565b5f5f90505b82518110156105805761057383828151811061054b5761054a61187a565b5b60200260200101518383815181106105665761056561187a565b5b6020026020010151610ac5565b808060010191505061052c565b505050565b5f5f61058f6109a6565b905061059c858285610b44565b6105a7858585610bd7565b60019150509392505050565b5f6012905090565b6006602052805f5260405f205f915054906101000a900460ff1681565b6105e96105e36109a6565b82610ac5565b50565b6105f46109bf565b8215610653578060075f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055506106a8565b8060065f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055505b505050565b5f60015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b6106fb6109bf565b6107045f610cc7565b565b61070e6109bf565b6107188282610ac5565b5050565b61072e826107286109a6565b83610b44565b6107388282610ac5565b5050565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600580546107729061184a565b80601f016020809104026020016040519081016040528092919081815260200182805461079e9061184a565b80156107e95780601f106107c0576101008083540402835291602001916107e9565b820191905f5260205f20905b8154815290600101906020018083116107cc57829003601f168201915b5050505050905090565b5f5f6107fd6109a6565b905061080a818585610bd7565b600191505092915050565b60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f60025f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b6108c46109bf565b5f5f90505b825181101561091d576109108382815181106108e8576108e761187a565b5b60200260200101518383815181106109035761090261187a565b5b6020026020010151610a46565b80806001019150506108c9565b505050565b61092a6109bf565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361099a575f6040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040161099191906117c6565b60405180910390fd5b6109a381610cc7565b50565b5f33905090565b6109ba8383836001610d88565b505050565b6109c76109a6565b73ffffffffffffffffffffffffffffffffffffffff166109e561073c565b73ffffffffffffffffffffffffffffffffffffffff1614610a4457610a086109a6565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610a3b91906117c6565b60405180910390fd5b565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610ab6575f6040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610aad91906117c6565b60405180910390fd5b610ac15f8383610f57565b5050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610b35575f6040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401610b2c91906117c6565b60405180910390fd5b610b40825f83610f57565b5050565b5f610b4f848461083a565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811015610bd15781811015610bc2578281836040517ffb8f41b2000000000000000000000000000000000000000000000000000000008152600401610bb9939291906118a7565b60405180910390fd5b610bd084848484035f610d88565b5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610c47575f6040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401610c3e91906117c6565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610cb7575f6040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610cae91906117c6565b60405180910390fd5b610cc2838383610f57565b505050565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603610df8575f6040517fe602df05000000000000000000000000000000000000000000000000000000008152600401610def91906117c6565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610e68575f6040517f94280d62000000000000000000000000000000000000000000000000000000008152600401610e5f91906117c6565b60405180910390fd5b8160025f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508015610f51578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610f4891906113ff565b60405180910390a35b50505050565b60065f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680610ff2575060075f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b610ffa575f5ffd5b61100583838361100a565b505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361105a578060035f82825461104e9190611909565b9250508190555061112a565b5f60015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050818110156110e4578381836040517fe450d38c0000000000000000000000000000000000000000000000000000000081526004016110db939291906118a7565b60405180910390fd5b81810360015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611171578060035f82825403925050819055506111bc565b8060015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161121991906113ff565b60405180910390a3505050565b5f604051905090565b5f5ffd5b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61126082611237565b9050919050565b61127081611256565b811461127a575f5ffd5b50565b5f8135905061128b81611267565b92915050565b5f602082840312156112a6576112a561122f565b5b5f6112b38482850161127d565b91505092915050565b5f8115159050919050565b6112d0816112bc565b82525050565b5f6020820190506112e95f8301846112c7565b92915050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f611331826112ef565b61133b81856112f9565b935061134b818560208601611309565b61135481611317565b840191505092915050565b5f6020820190508181035f8301526113778184611327565b905092915050565b5f819050919050565b6113918161137f565b811461139b575f5ffd5b50565b5f813590506113ac81611388565b92915050565b5f5f604083850312156113c8576113c761122f565b5b5f6113d58582860161127d565b92505060206113e68582860161139e565b9150509250929050565b6113f98161137f565b82525050565b5f6020820190506114125f8301846113f0565b92915050565b5f5ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b61145282611317565b810181811067ffffffffffffffff821117156114715761147061141c565b5b80604052505050565b5f611483611226565b905061148f8282611449565b919050565b5f67ffffffffffffffff8211156114ae576114ad61141c565b5b602082029050602081019050919050565b5f5ffd5b5f6114d56114d084611494565b61147a565b905080838252602082019050602084028301858111156114f8576114f76114bf565b5b835b81811015611521578061150d888261127d565b8452602084019350506020810190506114fa565b5050509392505050565b5f82601f83011261153f5761153e611418565b5b813561154f8482602086016114c3565b91505092915050565b5f67ffffffffffffffff8211156115725761157161141c565b5b602082029050602081019050919050565b5f61159561159084611558565b61147a565b905080838252602082019050602084028301858111156115b8576115b76114bf565b5b835b818110156115e157806115cd888261139e565b8452602084019350506020810190506115ba565b5050509392505050565b5f82601f8301126115ff576115fe611418565b5b813561160f848260208601611583565b91505092915050565b5f5f6040838503121561162e5761162d61122f565b5b5f83013567ffffffffffffffff81111561164b5761164a611233565b5b6116578582860161152b565b925050602083013567ffffffffffffffff81111561167857611677611233565b5b611684858286016115eb565b9150509250929050565b5f5f5f606084860312156116a5576116a461122f565b5b5f6116b28682870161127d565b93505060206116c38682870161127d565b92505060406116d48682870161139e565b9150509250925092565b5f60ff82169050919050565b6116f3816116de565b82525050565b5f60208201905061170c5f8301846116ea565b92915050565b5f602082840312156117275761172661122f565b5b5f6117348482850161139e565b91505092915050565b611746816112bc565b8114611750575f5ffd5b50565b5f813590506117618161173d565b92915050565b5f5f5f6060848603121561177e5761177d61122f565b5b5f61178b86828701611753565b935050602061179c8682870161127d565b92505060406117ad86828701611753565b9150509250925092565b6117c081611256565b82525050565b5f6020820190506117d95f8301846117b7565b92915050565b5f5f604083850312156117f5576117f461122f565b5b5f6118028582860161127d565b92505060206118138582860161127d565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061186157607f821691505b6020821081036118745761187361181d565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f6060820190506118ba5f8301866117b7565b6118c760208301856113f0565b6118d460408301846113f0565b949350505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6119138261137f565b915061191e8361137f565b9250828201905080821115611936576119356118dc565b5b9291505056fea2646970667358221220037dab4ce783b9b1f773c7cf5555b58d465422c12497a845790f36d621a0261d64736f6c634300081c0033
Deployed Bytecode
0x608060405234801561000f575f5ffd5b506004361061013f575f3560e01c806370a08231116100b657806395d89b411161007a57806395d89b411461035d578063a9059cbb1461037b578063c45a0155146103ab578063dd62ed3e146103c9578063e467f7e0146103f9578063f2fde38b146104155761013f565b806370a08231146102cd578063715018a6146102fd578063777685bf1461030757806379cc6790146103235780638da5cb5b1461033f5761013f565b80631e96cf49116101085780631e96cf49146101fb57806323b872dd14610217578063313ce567146102475780633b57b7b71461026557806342966c681461029557806355ba56ef146102b15761013f565b8062cfc3f51461014357806306fdde0314610173578063095ea7b31461019157806309be58f8146101c157806318160ddd146101dd575b5f5ffd5b61015d60048036038101906101589190611291565b610431565b60405161016a91906112d6565b60405180910390f35b61017b61044e565b604051610188919061135f565b60405180910390f35b6101ab60048036038101906101a691906113b2565b6104de565b6040516101b891906112d6565b60405180910390f35b6101db60048036038101906101d691906113b2565b610500565b005b6101e5610516565b6040516101f291906113ff565b60405180910390f35b61021560048036038101906102109190611618565b61051f565b005b610231600480360381019061022c919061168e565b610585565b60405161023e91906112d6565b60405180910390f35b61024f6105b3565b60405161025c91906116f9565b60405180910390f35b61027f600480360381019061027a9190611291565b6105bb565b60405161028c91906112d6565b60405180910390f35b6102af60048036038101906102aa9190611712565b6105d8565b005b6102cb60048036038101906102c69190611767565b6105ec565b005b6102e760048036038101906102e29190611291565b6106ad565b6040516102f491906113ff565b60405180910390f35b6103056106f3565b005b610321600480360381019061031c91906113b2565b610706565b005b61033d600480360381019061033891906113b2565b61071c565b005b61034761073c565b60405161035491906117c6565b60405180910390f35b610365610763565b604051610372919061135f565b60405180910390f35b610395600480360381019061039091906113b2565b6107f3565b6040516103a291906112d6565b60405180910390f35b6103b3610815565b6040516103c091906117c6565b60405180910390f35b6103e360048036038101906103de91906117df565b61083a565b6040516103f091906113ff565b60405180910390f35b610413600480360381019061040e9190611618565b6108bc565b005b61042f600480360381019061042a9190611291565b610922565b005b6007602052805f5260405f205f915054906101000a900460ff1681565b60606004805461045d9061184a565b80601f01602080910402602001604051908101604052809291908181526020018280546104899061184a565b80156104d45780601f106104ab576101008083540402835291602001916104d4565b820191905f5260205f20905b8154815290600101906020018083116104b757829003601f168201915b5050505050905090565b5f5f6104e86109a6565b90506104f58185856109ad565b600191505092915050565b6105086109bf565b6105128282610a46565b5050565b5f600354905090565b6105276109bf565b5f5f90505b82518110156105805761057383828151811061054b5761054a61187a565b5b60200260200101518383815181106105665761056561187a565b5b6020026020010151610ac5565b808060010191505061052c565b505050565b5f5f61058f6109a6565b905061059c858285610b44565b6105a7858585610bd7565b60019150509392505050565b5f6012905090565b6006602052805f5260405f205f915054906101000a900460ff1681565b6105e96105e36109a6565b82610ac5565b50565b6105f46109bf565b8215610653578060075f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055506106a8565b8060065f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055505b505050565b5f60015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b6106fb6109bf565b6107045f610cc7565b565b61070e6109bf565b6107188282610ac5565b5050565b61072e826107286109a6565b83610b44565b6107388282610ac5565b5050565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600580546107729061184a565b80601f016020809104026020016040519081016040528092919081815260200182805461079e9061184a565b80156107e95780601f106107c0576101008083540402835291602001916107e9565b820191905f5260205f20905b8154815290600101906020018083116107cc57829003601f168201915b5050505050905090565b5f5f6107fd6109a6565b905061080a818585610bd7565b600191505092915050565b60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f60025f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b6108c46109bf565b5f5f90505b825181101561091d576109108382815181106108e8576108e761187a565b5b60200260200101518383815181106109035761090261187a565b5b6020026020010151610a46565b80806001019150506108c9565b505050565b61092a6109bf565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361099a575f6040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040161099191906117c6565b60405180910390fd5b6109a381610cc7565b50565b5f33905090565b6109ba8383836001610d88565b505050565b6109c76109a6565b73ffffffffffffffffffffffffffffffffffffffff166109e561073c565b73ffffffffffffffffffffffffffffffffffffffff1614610a4457610a086109a6565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610a3b91906117c6565b60405180910390fd5b565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610ab6575f6040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610aad91906117c6565b60405180910390fd5b610ac15f8383610f57565b5050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610b35575f6040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401610b2c91906117c6565b60405180910390fd5b610b40825f83610f57565b5050565b5f610b4f848461083a565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811015610bd15781811015610bc2578281836040517ffb8f41b2000000000000000000000000000000000000000000000000000000008152600401610bb9939291906118a7565b60405180910390fd5b610bd084848484035f610d88565b5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610c47575f6040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401610c3e91906117c6565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610cb7575f6040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610cae91906117c6565b60405180910390fd5b610cc2838383610f57565b505050565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603610df8575f6040517fe602df05000000000000000000000000000000000000000000000000000000008152600401610def91906117c6565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610e68575f6040517f94280d62000000000000000000000000000000000000000000000000000000008152600401610e5f91906117c6565b60405180910390fd5b8160025f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508015610f51578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610f4891906113ff565b60405180910390a35b50505050565b60065f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680610ff2575060075f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b610ffa575f5ffd5b61100583838361100a565b505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361105a578060035f82825461104e9190611909565b9250508190555061112a565b5f60015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050818110156110e4578381836040517fe450d38c0000000000000000000000000000000000000000000000000000000081526004016110db939291906118a7565b60405180910390fd5b81810360015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611171578060035f82825403925050819055506111bc565b8060015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161121991906113ff565b60405180910390a3505050565b5f604051905090565b5f5ffd5b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61126082611237565b9050919050565b61127081611256565b811461127a575f5ffd5b50565b5f8135905061128b81611267565b92915050565b5f602082840312156112a6576112a561122f565b5b5f6112b38482850161127d565b91505092915050565b5f8115159050919050565b6112d0816112bc565b82525050565b5f6020820190506112e95f8301846112c7565b92915050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f611331826112ef565b61133b81856112f9565b935061134b818560208601611309565b61135481611317565b840191505092915050565b5f6020820190508181035f8301526113778184611327565b905092915050565b5f819050919050565b6113918161137f565b811461139b575f5ffd5b50565b5f813590506113ac81611388565b92915050565b5f5f604083850312156113c8576113c761122f565b5b5f6113d58582860161127d565b92505060206113e68582860161139e565b9150509250929050565b6113f98161137f565b82525050565b5f6020820190506114125f8301846113f0565b92915050565b5f5ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b61145282611317565b810181811067ffffffffffffffff821117156114715761147061141c565b5b80604052505050565b5f611483611226565b905061148f8282611449565b919050565b5f67ffffffffffffffff8211156114ae576114ad61141c565b5b602082029050602081019050919050565b5f5ffd5b5f6114d56114d084611494565b61147a565b905080838252602082019050602084028301858111156114f8576114f76114bf565b5b835b81811015611521578061150d888261127d565b8452602084019350506020810190506114fa565b5050509392505050565b5f82601f83011261153f5761153e611418565b5b813561154f8482602086016114c3565b91505092915050565b5f67ffffffffffffffff8211156115725761157161141c565b5b602082029050602081019050919050565b5f61159561159084611558565b61147a565b905080838252602082019050602084028301858111156115b8576115b76114bf565b5b835b818110156115e157806115cd888261139e565b8452602084019350506020810190506115ba565b5050509392505050565b5f82601f8301126115ff576115fe611418565b5b813561160f848260208601611583565b91505092915050565b5f5f6040838503121561162e5761162d61122f565b5b5f83013567ffffffffffffffff81111561164b5761164a611233565b5b6116578582860161152b565b925050602083013567ffffffffffffffff81111561167857611677611233565b5b611684858286016115eb565b9150509250929050565b5f5f5f606084860312156116a5576116a461122f565b5b5f6116b28682870161127d565b93505060206116c38682870161127d565b92505060406116d48682870161139e565b9150509250925092565b5f60ff82169050919050565b6116f3816116de565b82525050565b5f60208201905061170c5f8301846116ea565b92915050565b5f602082840312156117275761172661122f565b5b5f6117348482850161139e565b91505092915050565b611746816112bc565b8114611750575f5ffd5b50565b5f813590506117618161173d565b92915050565b5f5f5f6060848603121561177e5761177d61122f565b5b5f61178b86828701611753565b935050602061179c8682870161127d565b92505060406117ad86828701611753565b9150509250925092565b6117c081611256565b82525050565b5f6020820190506117d95f8301846117b7565b92915050565b5f5f604083850312156117f5576117f461122f565b5b5f6118028582860161127d565b92505060206118138582860161127d565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061186157607f821691505b6020821081036118745761187361181d565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f6060820190506118ba5f8301866117b7565b6118c760208301856113f0565b6118d460408301846113f0565b949350505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6119138261137f565b915061191e8361137f565b9250828201905080821115611936576119356118dc565b5b9291505056fea2646970667358221220037dab4ce783b9b1f773c7cf5555b58d465422c12497a845790f36d621a0261d64736f6c634300081c0033
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in HYPE
Multichain Portfolio | 35 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.