Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Source Code Verified (Exact Match)
Contract Name:
HILO
Compiler Version
v0.8.26+commit.8a97fa7a
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2024-08-19 */ // File: @openzeppelin/contracts/token/ERC20/IERC20.sol // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @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 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); } // File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.20; /** * @dev Interface for the optional metadata functions from the ERC20 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); } // File: @openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol // OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/Initializable.sol) pragma solidity ^0.8.20; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in * case an upgrade adds a module that needs to be initialized. * * For example: * * [.hljs-theme-light.nopadding] * ```solidity * contract MyToken is ERC20Upgradeable { * function initialize() initializer public { * __ERC20_init("MyToken", "MTK"); * } * } * * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable { * function initializeV2() reinitializer(2) public { * __ERC20Permit_init("MyToken"); * } * } * ``` * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() { * _disableInitializers(); * } * ``` * ==== */ abstract contract Initializable { /** * @dev Storage of the initializable contract. * * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions * when using with upgradeable contracts. * * @custom:storage-location erc7201:openzeppelin.storage.Initializable */ struct InitializableStorage { /** * @dev Indicates that the contract has been initialized. */ uint64 _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool _initializing; } // keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.Initializable")) - 1)) & ~bytes32(uint256(0xff)) bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00; /** * @dev The contract is already initialized. */ error InvalidInitialization(); /** * @dev The contract is not initializing. */ error NotInitializing(); /** * @dev Triggered when the contract has been initialized or reinitialized. */ event Initialized(uint64 version); /** * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope, * `onlyInitializing` functions can be used to initialize parent contracts. * * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in * production. * * Emits an {Initialized} event. */ modifier initializer() { // solhint-disable-next-line var-name-mixedcase InitializableStorage storage $ = _getInitializableStorage(); // Cache values to avoid duplicated sloads bool isTopLevelCall = !$._initializing; uint64 initialized = $._initialized; // Allowed calls: // - initialSetup: the contract is not in the initializing state and no previous version was // initialized // - construction: the contract is initialized at version 1 (no reininitialization) and the // current contract is just being deployed bool initialSetup = initialized == 0 && isTopLevelCall; bool construction = initialized == 1 && address(this).code.length == 0; if (!initialSetup && !construction) { revert InvalidInitialization(); } $._initialized = 1; if (isTopLevelCall) { $._initializing = true; } _; if (isTopLevelCall) { $._initializing = false; emit Initialized(1); } } /** * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be * used to initialize parent contracts. * * A reinitializer may be used after the original initialization step. This is essential to configure modules that * are added through upgrades and that require initialization. * * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer` * cannot be nested. If one is invoked in the context of another, execution will revert. * * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in * a contract, executing them in the right order is up to the developer or operator. * * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization. * * Emits an {Initialized} event. */ modifier reinitializer(uint64 version) { // solhint-disable-next-line var-name-mixedcase InitializableStorage storage $ = _getInitializableStorage(); if ($._initializing || $._initialized >= version) { revert InvalidInitialization(); } $._initialized = version; $._initializing = true; _; $._initializing = false; emit Initialized(version); } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} and {reinitializer} modifiers, directly or indirectly. */ modifier onlyInitializing() { _checkInitializing(); _; } /** * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}. */ function _checkInitializing() internal view virtual { if (!_isInitializing()) { revert NotInitializing(); } } /** * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call. * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized * to any version. It is recommended to use this to lock implementation contracts that are designed to be called * through proxies. * * Emits an {Initialized} event the first time it is successfully executed. */ function _disableInitializers() internal virtual { // solhint-disable-next-line var-name-mixedcase InitializableStorage storage $ = _getInitializableStorage(); if ($._initializing) { revert InvalidInitialization(); } if ($._initialized != type(uint64).max) { $._initialized = type(uint64).max; emit Initialized(type(uint64).max); } } /** * @dev Returns the highest version that has been initialized. See {reinitializer}. */ function _getInitializedVersion() internal view returns (uint64) { return _getInitializableStorage()._initialized; } /** * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}. */ function _isInitializing() internal view returns (bool) { return _getInitializableStorage()._initializing; } /** * @dev Returns a pointer to the storage namespace. */ // solhint-disable-next-line var-name-mixedcase function _getInitializableStorage() private pure returns (InitializableStorage storage $) { assembly { $.slot := INITIALIZABLE_STORAGE } } } // File: @openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol // 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 ContextUpgradeable is Initializable { function __Context_init() internal onlyInitializing { } function __Context_init_unchained() internal onlyInitializing { } 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; } } // File: @openzeppelin/contracts/interfaces/draft-IERC6093.sol // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol) pragma solidity ^0.8.20; /** * @dev Standard ERC20 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 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 ERC721 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens. */ interface IERC721Errors { /** * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-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 ERC1155 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 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); } // File: @openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.20; /** * @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 ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. */ abstract contract ERC20Upgradeable is Initializable, ContextUpgradeable, IERC20, IERC20Metadata, IERC20Errors { /// @custom:storage-location erc7201:openzeppelin.storage.ERC20 struct ERC20Storage { mapping(address account => uint256) _balances; mapping(address account => mapping(address spender => uint256)) _allowances; uint256 _totalSupply; string _name; string _symbol; } // keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.ERC20")) - 1)) & ~bytes32(uint256(0xff)) bytes32 private constant ERC20StorageLocation = 0x52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace00; function _getERC20Storage() private pure returns (ERC20Storage storage $) { assembly { $.slot := ERC20StorageLocation } } /** * @dev Sets the values for {name} and {symbol}. * * All two of these values are immutable: they can only be set once during * construction. */ function __ERC20_init(string memory name_, string memory symbol_) internal onlyInitializing { __ERC20_init_unchained(name_, symbol_); } function __ERC20_init_unchained(string memory name_, string memory symbol_) internal onlyInitializing { ERC20Storage storage $ = _getERC20Storage(); $._name = name_; $._symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual returns (string memory) { ERC20Storage storage $ = _getERC20Storage(); return $._name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual returns (string memory) { ERC20Storage storage $ = _getERC20Storage(); 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) { ERC20Storage storage $ = _getERC20Storage(); return $._totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual returns (uint256) { ERC20Storage storage $ = _getERC20Storage(); 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) { ERC20Storage storage $ = _getERC20Storage(); 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}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * 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 { ERC20Storage storage $ = _getERC20Storage(); 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: * ``` * 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 { ERC20Storage storage $ = _getERC20Storage(); 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); } } } } // File: @openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20BurnableUpgradeable.sol // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/ERC20Burnable.sol) pragma solidity ^0.8.20; /** * @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 ERC20BurnableUpgradeable is Initializable, ContextUpgradeable, ERC20Upgradeable { function __ERC20Burnable_init() internal onlyInitializing { } function __ERC20Burnable_init_unchained() internal onlyInitializing { } /** * @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); } } // File: @openzeppelin/contracts-upgradeable/utils/PausableUpgradeable.sol // OpenZeppelin Contracts (last updated v5.0.0) (utils/Pausable.sol) pragma solidity ^0.8.20; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract PausableUpgradeable is Initializable, ContextUpgradeable { /// @custom:storage-location erc7201:openzeppelin.storage.Pausable struct PausableStorage { bool _paused; } // keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.Pausable")) - 1)) & ~bytes32(uint256(0xff)) bytes32 private constant PausableStorageLocation = 0xcd5ed15c6e187e77e9aee88184c21f4f2182ab5827cb3b7e07fbedcd63f03300; function _getPausableStorage() private pure returns (PausableStorage storage $) { assembly { $.slot := PausableStorageLocation } } /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); /** * @dev The operation failed because the contract is paused. */ error EnforcedPause(); /** * @dev The operation failed because the contract is not paused. */ error ExpectedPause(); /** * @dev Initializes the contract in unpaused state. */ function __Pausable_init() internal onlyInitializing { __Pausable_init_unchained(); } function __Pausable_init_unchained() internal onlyInitializing { PausableStorage storage $ = _getPausableStorage(); $._paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { PausableStorage storage $ = _getPausableStorage(); return $._paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { if (paused()) { revert EnforcedPause(); } } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { if (!paused()) { revert ExpectedPause(); } } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { PausableStorage storage $ = _getPausableStorage(); $._paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { PausableStorage storage $ = _getPausableStorage(); $._paused = false; emit Unpaused(_msgSender()); } } // File: @openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20PausableUpgradeable.sol // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/ERC20Pausable.sol) pragma solidity ^0.8.20; /** * @dev ERC20 token with pausable token transfers, minting and burning. * * Useful for scenarios such as preventing trades until the end of an evaluation * period, or having an emergency switch for freezing all token transfers in the * event of a large bug. * * IMPORTANT: This contract does not include public pause and unpause functions. In * addition to inheriting this contract, you must define both functions, invoking the * {Pausable-_pause} and {Pausable-_unpause} internal functions, with appropriate * access control, e.g. using {AccessControl} or {Ownable}. Not doing so will * make the contract pause mechanism of the contract unreachable, and thus unusable. */ abstract contract ERC20PausableUpgradeable is Initializable, ERC20Upgradeable, PausableUpgradeable { function __ERC20Pausable_init() internal onlyInitializing { __Pausable_init_unchained(); } function __ERC20Pausable_init_unchained() internal onlyInitializing { } /** * @dev See {ERC20-_update}. * * Requirements: * * - the contract must not be paused. */ function _update(address from, address to, uint256 value) internal virtual override whenNotPaused { super._update(from, to, value); } } // File: @openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; /** * @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 OwnableUpgradeable is Initializable, ContextUpgradeable { /// @custom:storage-location erc7201:openzeppelin.storage.Ownable struct OwnableStorage { address _owner; } // keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.Ownable")) - 1)) & ~bytes32(uint256(0xff)) bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300; function _getOwnableStorage() private pure returns (OwnableStorage storage $) { assembly { $.slot := OwnableStorageLocation } } /** * @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. */ function __Ownable_init(address initialOwner) internal onlyInitializing { __Ownable_init_unchained(initialOwner); } function __Ownable_init_unchained(address initialOwner) internal onlyInitializing { 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) { OwnableStorage storage $ = _getOwnableStorage(); 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 { OwnableStorage storage $ = _getOwnableStorage(); address oldOwner = $._owner; $._owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File: @openzeppelin/contracts/interfaces/draft-IERC1822.sol // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC1822.sol) pragma solidity ^0.8.20; /** * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified * proxy whose upgrades are fully controlled by the current implementation. */ interface IERC1822Proxiable { /** * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation * address. * * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this * function revert if invoked through a proxy. */ function proxiableUUID() external view returns (bytes32); } // File: @openzeppelin/contracts/proxy/beacon/IBeacon.sol // OpenZeppelin Contracts (last updated v5.0.0) (proxy/beacon/IBeacon.sol) pragma solidity ^0.8.20; /** * @dev This is the interface that {BeaconProxy} expects of its beacon. */ interface IBeacon { /** * @dev Must return an address that can be used as a delegate call target. * * {UpgradeableBeacon} will check that this address is a contract. */ function implementation() external view returns (address); } // File: @openzeppelin/contracts/utils/Address.sol // OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol) pragma solidity ^0.8.20; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev The ETH balance of the account is not enough to perform the operation. */ error AddressInsufficientBalance(address account); /** * @dev There's no code at `target` (it is not a contract). */ error AddressEmptyCode(address target); /** * @dev A call to an address target failed. The target may have reverted. */ error FailedInnerCall(); /** * @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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { if (address(this).balance < amount) { revert AddressInsufficientBalance(address(this)); } (bool success, ) = recipient.call{value: amount}(""); if (!success) { revert FailedInnerCall(); } } /** * @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 or custom error, it is bubbled * up by this function (like regular Solidity function calls). However, if * the call reverted with no returned reason, this function reverts with a * {FailedInnerCall} error. * * 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. */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0); } /** * @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`. */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { if (address(this).balance < value) { revert AddressInsufficientBalance(address(this)); } (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an * unsuccessful call. */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata ) internal view returns (bytes memory) { if (!success) { _revert(returndata); } else { // only check if target is a contract if the call was successful and the return data is empty // otherwise we already know that it was a contract if (returndata.length == 0 && target.code.length == 0) { revert AddressEmptyCode(target); } return returndata; } } /** * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the * revert reason or with a default {FailedInnerCall} error. */ function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) { if (!success) { _revert(returndata); } else { return returndata; } } /** * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}. */ function _revert(bytes memory returndata) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert FailedInnerCall(); } } } // File: @openzeppelin/contracts/utils/StorageSlot.sol // OpenZeppelin Contracts (last updated v5.0.0) (utils/StorageSlot.sol) // This file was procedurally generated from scripts/generate/templates/StorageSlot.js. pragma solidity ^0.8.20; /** * @dev Library for reading and writing primitive types to specific storage slots. * * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts. * This library helps with reading and writing to such slots without the need for inline assembly. * * The functions in this library return Slot structs that contain a `value` member that can be used to read or write. * * Example usage to set ERC1967 implementation slot: * ```solidity * contract ERC1967 { * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; * * function _getImplementation() internal view returns (address) { * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value; * } * * function _setImplementation(address newImplementation) internal { * require(newImplementation.code.length > 0); * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; * } * } * ``` */ library StorageSlot { struct AddressSlot { address value; } struct BooleanSlot { bool value; } struct Bytes32Slot { bytes32 value; } struct Uint256Slot { uint256 value; } struct StringSlot { string value; } struct BytesSlot { bytes value; } /** * @dev Returns an `AddressSlot` with member `value` located at `slot`. */ function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `BooleanSlot` with member `value` located at `slot`. */ function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Bytes32Slot` with member `value` located at `slot`. */ function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Uint256Slot` with member `value` located at `slot`. */ function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `StringSlot` with member `value` located at `slot`. */ function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `StringSlot` representation of the string storage pointer `store`. */ function getStringSlot(string storage store) internal pure returns (StringSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := store.slot } } /** * @dev Returns an `BytesSlot` with member `value` located at `slot`. */ function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`. */ function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := store.slot } } } // File: @openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol // OpenZeppelin Contracts (last updated v5.0.0) (proxy/ERC1967/ERC1967Utils.sol) pragma solidity ^0.8.20; /** * @dev This abstract contract provides getters and event emitting update functions for * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots. */ library ERC1967Utils { // We re-declare ERC-1967 events here because they can't be used directly from IERC1967. // This will be fixed in Solidity 0.8.21. At that point we should remove these events. /** * @dev Emitted when the implementation is upgraded. */ event Upgraded(address indexed implementation); /** * @dev Emitted when the admin account has changed. */ event AdminChanged(address previousAdmin, address newAdmin); /** * @dev Emitted when the beacon is changed. */ event BeaconUpgraded(address indexed beacon); /** * @dev Storage slot with the address of the current implementation. * This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1. */ // solhint-disable-next-line private-vars-leading-underscore bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; /** * @dev The `implementation` of the proxy is invalid. */ error ERC1967InvalidImplementation(address implementation); /** * @dev The `admin` of the proxy is invalid. */ error ERC1967InvalidAdmin(address admin); /** * @dev The `beacon` of the proxy is invalid. */ error ERC1967InvalidBeacon(address beacon); /** * @dev An upgrade function sees `msg.value > 0` that may be lost. */ error ERC1967NonPayable(); /** * @dev Returns the current implementation address. */ function getImplementation() internal view returns (address) { return StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value; } /** * @dev Stores a new address in the EIP1967 implementation slot. */ function _setImplementation(address newImplementation) private { if (newImplementation.code.length == 0) { revert ERC1967InvalidImplementation(newImplementation); } StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation; } /** * @dev Performs implementation upgrade with additional setup call if data is nonempty. * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected * to avoid stuck value in the contract. * * Emits an {IERC1967-Upgraded} event. */ function upgradeToAndCall(address newImplementation, bytes memory data) internal { _setImplementation(newImplementation); emit Upgraded(newImplementation); if (data.length > 0) { Address.functionDelegateCall(newImplementation, data); } else { _checkNonPayable(); } } /** * @dev Storage slot with the admin of the contract. * This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1. */ // solhint-disable-next-line private-vars-leading-underscore bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103; /** * @dev Returns the current admin. * * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103` */ function getAdmin() internal view returns (address) { return StorageSlot.getAddressSlot(ADMIN_SLOT).value; } /** * @dev Stores a new address in the EIP1967 admin slot. */ function _setAdmin(address newAdmin) private { if (newAdmin == address(0)) { revert ERC1967InvalidAdmin(address(0)); } StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin; } /** * @dev Changes the admin of the proxy. * * Emits an {IERC1967-AdminChanged} event. */ function changeAdmin(address newAdmin) internal { emit AdminChanged(getAdmin(), newAdmin); _setAdmin(newAdmin); } /** * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy. * This is the keccak-256 hash of "eip1967.proxy.beacon" subtracted by 1. */ // solhint-disable-next-line private-vars-leading-underscore bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50; /** * @dev Returns the current beacon. */ function getBeacon() internal view returns (address) { return StorageSlot.getAddressSlot(BEACON_SLOT).value; } /** * @dev Stores a new beacon in the EIP1967 beacon slot. */ function _setBeacon(address newBeacon) private { if (newBeacon.code.length == 0) { revert ERC1967InvalidBeacon(newBeacon); } StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon; address beaconImplementation = IBeacon(newBeacon).implementation(); if (beaconImplementation.code.length == 0) { revert ERC1967InvalidImplementation(beaconImplementation); } } /** * @dev Change the beacon and trigger a setup call if data is nonempty. * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected * to avoid stuck value in the contract. * * Emits an {IERC1967-BeaconUpgraded} event. * * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for * efficiency. */ function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal { _setBeacon(newBeacon); emit BeaconUpgraded(newBeacon); if (data.length > 0) { Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data); } else { _checkNonPayable(); } } /** * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract * if an upgrade doesn't perform an initialization call. */ function _checkNonPayable() private { if (msg.value > 0) { revert ERC1967NonPayable(); } } } // File: @openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol // OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/UUPSUpgradeable.sol) pragma solidity ^0.8.20; /** * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy. * * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing * `UUPSUpgradeable` with a custom implementation of upgrades. * * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism. */ abstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable { /// @custom:oz-upgrades-unsafe-allow state-variable-immutable address private immutable __self = address(this); /** * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)` * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called, * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string. * If the getter returns `"5.0.0"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function * during an upgrade. */ string public constant UPGRADE_INTERFACE_VERSION = "5.0.0"; /** * @dev The call is from an unauthorized context. */ error UUPSUnauthorizedCallContext(); /** * @dev The storage `slot` is unsupported as a UUID. */ error UUPSUnsupportedProxiableUUID(bytes32 slot); /** * @dev Check that the execution is being performed through a delegatecall call and that the execution context is * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to * fail. */ modifier onlyProxy() { _checkProxy(); _; } /** * @dev Check that the execution is not being performed through a delegate call. This allows a function to be * callable on the implementing contract but not through proxies. */ modifier notDelegated() { _checkNotDelegated(); _; } function __UUPSUpgradeable_init() internal onlyInitializing { } function __UUPSUpgradeable_init_unchained() internal onlyInitializing { } /** * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the * implementation. It is used to validate the implementation's compatibility when performing an upgrade. * * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier. */ function proxiableUUID() external view virtual notDelegated returns (bytes32) { return ERC1967Utils.IMPLEMENTATION_SLOT; } /** * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call * encoded in `data`. * * Calls {_authorizeUpgrade}. * * Emits an {Upgraded} event. * * @custom:oz-upgrades-unsafe-allow-reachable delegatecall */ function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy { _authorizeUpgrade(newImplementation); _upgradeToAndCallUUPS(newImplementation, data); } /** * @dev Reverts if the execution is not performed via delegatecall or the execution * context is not of a proxy with an ERC1967-compliant implementation pointing to self. * See {_onlyProxy}. */ function _checkProxy() internal view virtual { if ( address(this) == __self || // Must be called through delegatecall ERC1967Utils.getImplementation() != __self // Must be called through an active proxy ) { revert UUPSUnauthorizedCallContext(); } } /** * @dev Reverts if the execution is performed via delegatecall. * See {notDelegated}. */ function _checkNotDelegated() internal view virtual { if (address(this) != __self) { // Must not be called through delegatecall revert UUPSUnauthorizedCallContext(); } } /** * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by * {upgradeToAndCall}. * * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}. * * ```solidity * function _authorizeUpgrade(address) internal onlyOwner {} * ``` */ function _authorizeUpgrade(address newImplementation) internal virtual; /** * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call. * * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value * is expected to be the implementation slot in ERC1967. * * Emits an {IERC1967-Upgraded} event. */ function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private { try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) { if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) { revert UUPSUnsupportedProxiableUUID(slot); } ERC1967Utils.upgradeToAndCall(newImplementation, data); } catch { // The implementation is not UUPS revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation); } } } // File: contracts/Hilo.sol // Compatible with OpenZeppelin Contracts ^5.0.0 pragma solidity ^0.8.19; contract HILO is Initializable, ERC20Upgradeable, ERC20BurnableUpgradeable, ERC20PausableUpgradeable, OwnableUpgradeable, UUPSUpgradeable { /// @custom:oz-upgrades-unsafe-allow constructor constructor() { _disableInitializers(); } function initialize(address initialOwner) initializer public { __ERC20_init("HILO", "HILO "); __ERC20Burnable_init(); __ERC20Pausable_init(); __Ownable_init(initialOwner); __UUPSUpgradeable_init(); _transferOwnership(initialOwner); _mint(initialOwner, 150000000 * 10 ** decimals()); } function pause() public onlyOwner { _pause(); } function unpause() public onlyOwner { _unpause(); } function _authorizeUpgrade(address newImplementation) internal onlyOwner override {} function _update(address from, address to, uint256 value) internal override(ERC20Upgradeable, ERC20PausableUpgradeable) { super._update(from, to, value); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[{"internalType":"address","name":"implementation","type":"address"}],"name":"ERC1967InvalidImplementation","type":"error"},{"inputs":[],"name":"ERC1967NonPayable","type":"error"},{"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":[],"name":"EnforcedPause","type":"error"},{"inputs":[],"name":"ExpectedPause","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"inputs":[],"name":"InvalidInitialization","type":"error"},{"inputs":[],"name":"NotInitializing","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"UUPSUnauthorizedCallContext","type":"error"},{"inputs":[{"internalType":"bytes32","name":"slot","type":"bytes32"}],"name":"UUPSUnsupportedProxiableUUID","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":false,"internalType":"uint64","name":"version","type":"uint64"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"inputs":[],"name":"UPGRADE_INTERFACE_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"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":"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":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"initialOwner","type":"address"}],"name":"initialize","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":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxiableUUID","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"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"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
60a060405230608052348015610013575f80fd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6080516116d06100f95f395f81816109c6015281816109ef0152610b2e01526116d05ff3fe608060405260043610610126575f3560e01c806370a08231116100a857806395d89b411161006d57806395d89b4114610346578063a9059cbb1461035a578063ad3cb1cc14610379578063c4d66de8146103a9578063dd62ed3e146103c8578063f2fde38b146103e7575f80fd5b806370a0823114610279578063715018a6146102b957806379cc6790146102cd5780638456cb59146102ec5780638da5cb5b14610300575f80fd5b80633f4ba83a116100ee5780633f4ba83a146101fa57806342966c68146102105780634f1ef2861461022f57806352d1902d146102425780635c975abb14610256575f80fd5b806306fdde031461012a578063095ea7b31461015457806318160ddd1461018357806323b872dd146101c0578063313ce567146101df575b5f80fd5b348015610135575f80fd5b5061013e610406565b60405161014b91906111bc565b60405180910390f35b34801561015f575f80fd5b5061017361016e36600461120c565b6104c6565b604051901515815260200161014b565b34801561018e575f80fd5b507f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace02545b60405190815260200161014b565b3480156101cb575f80fd5b506101736101da366004611234565b6104df565b3480156101ea575f80fd5b506040516012815260200161014b565b348015610205575f80fd5b5061020e610504565b005b34801561021b575f80fd5b5061020e61022a36600461126e565b610516565b61020e61023d366004611299565b610523565b34801561024d575f80fd5b506101b2610542565b348015610261575f80fd5b505f8051602061167b8339815191525460ff16610173565b348015610284575f80fd5b506101b261029336600461135d565b6001600160a01b03165f9081525f8051602061163b833981519152602052604090205490565b3480156102c4575f80fd5b5061020e61055d565b3480156102d8575f80fd5b5061020e6102e736600461120c565b61056e565b3480156102f7575f80fd5b5061020e610583565b34801561030b575f80fd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546040516001600160a01b03909116815260200161014b565b348015610351575f80fd5b5061013e610593565b348015610365575f80fd5b5061017361037436600461120c565b6105d1565b348015610384575f80fd5b5061013e604051806040016040528060058152602001640352e302e360dc1b81525081565b3480156103b4575f80fd5b5061020e6103c336600461135d565b6105de565b3480156103d3575f80fd5b506101b26103e2366004611376565b610773565b3480156103f2575f80fd5b5061020e61040136600461135d565b6107bc565b7f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace0380546060915f8051602061163b83398151915291610444906113a7565b80601f0160208091040260200160405190810160405280929190818152602001828054610470906113a7565b80156104bb5780601f10610492576101008083540402835291602001916104bb565b820191905f5260205f20905b81548152906001019060200180831161049e57829003601f168201915b505050505091505090565b5f336104d38185856107fb565b60019150505b92915050565b5f336104ec85828561080d565b6104f7858585610870565b60019150505b9392505050565b61050c6108cd565b610514610928565b565b6105203382610987565b50565b61052b6109bb565b61053482610a5f565b61053e8282610a67565b5050565b5f61054b610b23565b505f8051602061165b83398151915290565b6105656108cd565b6105145f610b6c565b61057982338361080d565b61053e8282610987565b61058b6108cd565b610514610bdc565b7f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace0480546060915f8051602061163b83398151915291610444906113a7565b5f336104d3818585610870565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff16159067ffffffffffffffff165f811580156106235750825b90505f8267ffffffffffffffff16600114801561063f5750303b155b90508115801561064d575080155b1561066b5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561069557845460ff60401b1916600160401b1785555b6106d86040518060400160405280600481526020016348494c4f60e01b8152506040518060400160405280600581526020016402424a627960dd1b815250610c24565b6106e0610c36565b6106e8610c3e565b6106f186610c4e565b6106f9610c36565b61070286610b6c565b610725866107126012600a6114d6565b610720906308f0d1806114e4565b610c5f565b831561076b57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6001600160a01b039182165f9081527f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace016020908152604080832093909416825291909152205490565b6107c46108cd565b6001600160a01b0381166107f257604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61052081610b6c565b6108088383836001610c93565b505050565b5f6108188484610773565b90505f19811461086a578181101561085c57604051637dc7a0d960e11b81526001600160a01b038416600482015260248101829052604481018390526064016107e9565b61086a84848484035f610c93565b50505050565b6001600160a01b03831661089957604051634b637e8f60e11b81525f60048201526024016107e9565b6001600160a01b0382166108c25760405163ec442f0560e01b81525f60048201526024016107e9565b610808838383610d77565b336108ff7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146105145760405163118cdaa760e01b81523360048201526024016107e9565b610930610d82565b5f8051602061167b833981519152805460ff191681557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a150565b6001600160a01b0382166109b057604051634b637e8f60e11b81525f60048201526024016107e9565b61053e825f83610d77565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480610a4157507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610a355f8051602061165b833981519152546001600160a01b031690565b6001600160a01b031614155b156105145760405163703e46dd60e11b815260040160405180910390fd5b6105206108cd565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610ac1575060408051601f3d908101601f19168201909252610abe918101906114fb565b60015b610ae957604051634c9c8ce360e01b81526001600160a01b03831660048201526024016107e9565b5f8051602061165b8339815191528114610b1957604051632a87526960e21b8152600481018290526024016107e9565b6108088383610db1565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146105145760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b610be4610e06565b5f8051602061167b833981519152805460ff191660011781557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25833610969565b610c2c610e36565b61053e8282610e7f565b610514610e36565b610c46610e36565b610514610ecf565b610c56610e36565b61052081610eef565b6001600160a01b038216610c885760405163ec442f0560e01b81525f60048201526024016107e9565b61053e5f8383610d77565b5f8051602061163b8339815191526001600160a01b038516610cca5760405163e602df0560e01b81525f60048201526024016107e9565b6001600160a01b038416610cf357604051634a1406b160e11b81525f60048201526024016107e9565b6001600160a01b038086165f90815260018301602090815260408083209388168352929052208390558115610d7057836001600160a01b0316856001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92585604051610d6791815260200190565b60405180910390a35b5050505050565b610808838383610ef7565b5f8051602061167b8339815191525460ff1661051457604051638dfc202b60e01b815260040160405180910390fd5b610dba82610f0a565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a2805115610dfe576108088282610f6d565b61053e610fdf565b5f8051602061167b8339815191525460ff16156105145760405163d93c066560e01b815260040160405180910390fd5b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054600160401b900460ff1661051457604051631afcd79f60e31b815260040160405180910390fd5b610e87610e36565b5f8051602061163b8339815191527f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace03610ec08482611556565b506004810161086a8382611556565b610ed7610e36565b5f8051602061167b833981519152805460ff19169055565b6107c4610e36565b610eff610e06565b610808838383610ffe565b806001600160a01b03163b5f03610f3f57604051634c9c8ce360e01b81526001600160a01b03821660048201526024016107e9565b5f8051602061165b83398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f80846001600160a01b031684604051610f899190611611565b5f60405180830381855af49150503d805f8114610fc1576040519150601f19603f3d011682016040523d82523d5f602084013e610fc6565b606091505b5091509150610fd6858383611137565b95945050505050565b34156105145760405163b398979f60e01b815260040160405180910390fd5b5f8051602061163b8339815191526001600160a01b0384166110385781816002015f82825461102d9190611627565b909155506110a89050565b6001600160a01b0384165f908152602082905260409020548281101561108a5760405163391434e360e21b81526001600160a01b038616600482015260248101829052604481018490526064016107e9565b6001600160a01b0385165f9081526020839052604090209083900390555b6001600160a01b0383166110c65760028101805483900390556110e4565b6001600160a01b0383165f9081526020829052604090208054830190555b826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161112991815260200190565b60405180910390a350505050565b60608261114c5761114782611193565b6104fd565b815115801561116357506001600160a01b0384163b155b1561118c57604051639996b31560e01b81526001600160a01b03851660048201526024016107e9565b50806104fd565b8051156111a35780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b80356001600160a01b0381168114611207575f80fd5b919050565b5f806040838503121561121d575f80fd5b611226836111f1565b946020939093013593505050565b5f805f60608486031215611246575f80fd5b61124f846111f1565b925061125d602085016111f1565b929592945050506040919091013590565b5f6020828403121561127e575f80fd5b5035919050565b634e487b7160e01b5f52604160045260245ffd5b5f80604083850312156112aa575f80fd5b6112b3836111f1565b9150602083013567ffffffffffffffff8111156112ce575f80fd5b8301601f810185136112de575f80fd5b803567ffffffffffffffff8111156112f8576112f8611285565b604051601f8201601f19908116603f0116810167ffffffffffffffff8111828210171561132757611327611285565b60405281815282820160200187101561133e575f80fd5b816020840160208301375f602083830101528093505050509250929050565b5f6020828403121561136d575f80fd5b6104fd826111f1565b5f8060408385031215611387575f80fd5b611390836111f1565b915061139e602084016111f1565b90509250929050565b600181811c908216806113bb57607f821691505b6020821081036113d957634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b6001815b600184111561142e57808504811115611412576114126113df565b600184161561142057908102905b60019390931c9280026113f7565b935093915050565b5f82611444575060016104d9565b8161145057505f6104d9565b816001811461146657600281146114705761148c565b60019150506104d9565b60ff841115611481576114816113df565b50506001821b6104d9565b5060208310610133831016604e8410600b84101617156114af575081810a6104d9565b6114bb5f1984846113f3565b805f19048211156114ce576114ce6113df565b029392505050565b5f6104fd60ff841683611436565b80820281158282048414176104d9576104d96113df565b5f6020828403121561150b575f80fd5b5051919050565b601f82111561080857805f5260205f20601f840160051c810160208510156115375750805b601f840160051c820191505b81811015610d70575f8155600101611543565b815167ffffffffffffffff81111561157057611570611285565b6115848161157e84546113a7565b84611512565b6020601f8211600181146115b6575f831561159f5750848201515b5f19600385901b1c1916600184901b178455610d70565b5f84815260208120601f198516915b828110156115e557878501518255602094850194600190920191016115c5565b508482101561160257868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f920191825250919050565b808201808211156104d9576104d96113df56fe52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace00360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbccd5ed15c6e187e77e9aee88184c21f4f2182ab5827cb3b7e07fbedcd63f03300a264697066735822122066a65ffc3f0daf9ba6a3c2f78c1997bd4c2bf0d28b1d66ecfcf855c093068dd864736f6c634300081a0033
Deployed Bytecode
0x608060405260043610610126575f3560e01c806370a08231116100a857806395d89b411161006d57806395d89b4114610346578063a9059cbb1461035a578063ad3cb1cc14610379578063c4d66de8146103a9578063dd62ed3e146103c8578063f2fde38b146103e7575f80fd5b806370a0823114610279578063715018a6146102b957806379cc6790146102cd5780638456cb59146102ec5780638da5cb5b14610300575f80fd5b80633f4ba83a116100ee5780633f4ba83a146101fa57806342966c68146102105780634f1ef2861461022f57806352d1902d146102425780635c975abb14610256575f80fd5b806306fdde031461012a578063095ea7b31461015457806318160ddd1461018357806323b872dd146101c0578063313ce567146101df575b5f80fd5b348015610135575f80fd5b5061013e610406565b60405161014b91906111bc565b60405180910390f35b34801561015f575f80fd5b5061017361016e36600461120c565b6104c6565b604051901515815260200161014b565b34801561018e575f80fd5b507f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace02545b60405190815260200161014b565b3480156101cb575f80fd5b506101736101da366004611234565b6104df565b3480156101ea575f80fd5b506040516012815260200161014b565b348015610205575f80fd5b5061020e610504565b005b34801561021b575f80fd5b5061020e61022a36600461126e565b610516565b61020e61023d366004611299565b610523565b34801561024d575f80fd5b506101b2610542565b348015610261575f80fd5b505f8051602061167b8339815191525460ff16610173565b348015610284575f80fd5b506101b261029336600461135d565b6001600160a01b03165f9081525f8051602061163b833981519152602052604090205490565b3480156102c4575f80fd5b5061020e61055d565b3480156102d8575f80fd5b5061020e6102e736600461120c565b61056e565b3480156102f7575f80fd5b5061020e610583565b34801561030b575f80fd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546040516001600160a01b03909116815260200161014b565b348015610351575f80fd5b5061013e610593565b348015610365575f80fd5b5061017361037436600461120c565b6105d1565b348015610384575f80fd5b5061013e604051806040016040528060058152602001640352e302e360dc1b81525081565b3480156103b4575f80fd5b5061020e6103c336600461135d565b6105de565b3480156103d3575f80fd5b506101b26103e2366004611376565b610773565b3480156103f2575f80fd5b5061020e61040136600461135d565b6107bc565b7f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace0380546060915f8051602061163b83398151915291610444906113a7565b80601f0160208091040260200160405190810160405280929190818152602001828054610470906113a7565b80156104bb5780601f10610492576101008083540402835291602001916104bb565b820191905f5260205f20905b81548152906001019060200180831161049e57829003601f168201915b505050505091505090565b5f336104d38185856107fb565b60019150505b92915050565b5f336104ec85828561080d565b6104f7858585610870565b60019150505b9392505050565b61050c6108cd565b610514610928565b565b6105203382610987565b50565b61052b6109bb565b61053482610a5f565b61053e8282610a67565b5050565b5f61054b610b23565b505f8051602061165b83398151915290565b6105656108cd565b6105145f610b6c565b61057982338361080d565b61053e8282610987565b61058b6108cd565b610514610bdc565b7f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace0480546060915f8051602061163b83398151915291610444906113a7565b5f336104d3818585610870565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff16159067ffffffffffffffff165f811580156106235750825b90505f8267ffffffffffffffff16600114801561063f5750303b155b90508115801561064d575080155b1561066b5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561069557845460ff60401b1916600160401b1785555b6106d86040518060400160405280600481526020016348494c4f60e01b8152506040518060400160405280600581526020016402424a627960dd1b815250610c24565b6106e0610c36565b6106e8610c3e565b6106f186610c4e565b6106f9610c36565b61070286610b6c565b610725866107126012600a6114d6565b610720906308f0d1806114e4565b610c5f565b831561076b57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6001600160a01b039182165f9081527f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace016020908152604080832093909416825291909152205490565b6107c46108cd565b6001600160a01b0381166107f257604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61052081610b6c565b6108088383836001610c93565b505050565b5f6108188484610773565b90505f19811461086a578181101561085c57604051637dc7a0d960e11b81526001600160a01b038416600482015260248101829052604481018390526064016107e9565b61086a84848484035f610c93565b50505050565b6001600160a01b03831661089957604051634b637e8f60e11b81525f60048201526024016107e9565b6001600160a01b0382166108c25760405163ec442f0560e01b81525f60048201526024016107e9565b610808838383610d77565b336108ff7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146105145760405163118cdaa760e01b81523360048201526024016107e9565b610930610d82565b5f8051602061167b833981519152805460ff191681557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a150565b6001600160a01b0382166109b057604051634b637e8f60e11b81525f60048201526024016107e9565b61053e825f83610d77565b306001600160a01b037f0000000000000000000000001c9b7b5c51753bba46ec60ebb507548738fd793f161480610a4157507f0000000000000000000000001c9b7b5c51753bba46ec60ebb507548738fd793f6001600160a01b0316610a355f8051602061165b833981519152546001600160a01b031690565b6001600160a01b031614155b156105145760405163703e46dd60e11b815260040160405180910390fd5b6105206108cd565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610ac1575060408051601f3d908101601f19168201909252610abe918101906114fb565b60015b610ae957604051634c9c8ce360e01b81526001600160a01b03831660048201526024016107e9565b5f8051602061165b8339815191528114610b1957604051632a87526960e21b8152600481018290526024016107e9565b6108088383610db1565b306001600160a01b037f0000000000000000000000001c9b7b5c51753bba46ec60ebb507548738fd793f16146105145760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b610be4610e06565b5f8051602061167b833981519152805460ff191660011781557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25833610969565b610c2c610e36565b61053e8282610e7f565b610514610e36565b610c46610e36565b610514610ecf565b610c56610e36565b61052081610eef565b6001600160a01b038216610c885760405163ec442f0560e01b81525f60048201526024016107e9565b61053e5f8383610d77565b5f8051602061163b8339815191526001600160a01b038516610cca5760405163e602df0560e01b81525f60048201526024016107e9565b6001600160a01b038416610cf357604051634a1406b160e11b81525f60048201526024016107e9565b6001600160a01b038086165f90815260018301602090815260408083209388168352929052208390558115610d7057836001600160a01b0316856001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92585604051610d6791815260200190565b60405180910390a35b5050505050565b610808838383610ef7565b5f8051602061167b8339815191525460ff1661051457604051638dfc202b60e01b815260040160405180910390fd5b610dba82610f0a565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a2805115610dfe576108088282610f6d565b61053e610fdf565b5f8051602061167b8339815191525460ff16156105145760405163d93c066560e01b815260040160405180910390fd5b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054600160401b900460ff1661051457604051631afcd79f60e31b815260040160405180910390fd5b610e87610e36565b5f8051602061163b8339815191527f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace03610ec08482611556565b506004810161086a8382611556565b610ed7610e36565b5f8051602061167b833981519152805460ff19169055565b6107c4610e36565b610eff610e06565b610808838383610ffe565b806001600160a01b03163b5f03610f3f57604051634c9c8ce360e01b81526001600160a01b03821660048201526024016107e9565b5f8051602061165b83398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f80846001600160a01b031684604051610f899190611611565b5f60405180830381855af49150503d805f8114610fc1576040519150601f19603f3d011682016040523d82523d5f602084013e610fc6565b606091505b5091509150610fd6858383611137565b95945050505050565b34156105145760405163b398979f60e01b815260040160405180910390fd5b5f8051602061163b8339815191526001600160a01b0384166110385781816002015f82825461102d9190611627565b909155506110a89050565b6001600160a01b0384165f908152602082905260409020548281101561108a5760405163391434e360e21b81526001600160a01b038616600482015260248101829052604481018490526064016107e9565b6001600160a01b0385165f9081526020839052604090209083900390555b6001600160a01b0383166110c65760028101805483900390556110e4565b6001600160a01b0383165f9081526020829052604090208054830190555b826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161112991815260200190565b60405180910390a350505050565b60608261114c5761114782611193565b6104fd565b815115801561116357506001600160a01b0384163b155b1561118c57604051639996b31560e01b81526001600160a01b03851660048201526024016107e9565b50806104fd565b8051156111a35780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b80356001600160a01b0381168114611207575f80fd5b919050565b5f806040838503121561121d575f80fd5b611226836111f1565b946020939093013593505050565b5f805f60608486031215611246575f80fd5b61124f846111f1565b925061125d602085016111f1565b929592945050506040919091013590565b5f6020828403121561127e575f80fd5b5035919050565b634e487b7160e01b5f52604160045260245ffd5b5f80604083850312156112aa575f80fd5b6112b3836111f1565b9150602083013567ffffffffffffffff8111156112ce575f80fd5b8301601f810185136112de575f80fd5b803567ffffffffffffffff8111156112f8576112f8611285565b604051601f8201601f19908116603f0116810167ffffffffffffffff8111828210171561132757611327611285565b60405281815282820160200187101561133e575f80fd5b816020840160208301375f602083830101528093505050509250929050565b5f6020828403121561136d575f80fd5b6104fd826111f1565b5f8060408385031215611387575f80fd5b611390836111f1565b915061139e602084016111f1565b90509250929050565b600181811c908216806113bb57607f821691505b6020821081036113d957634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b6001815b600184111561142e57808504811115611412576114126113df565b600184161561142057908102905b60019390931c9280026113f7565b935093915050565b5f82611444575060016104d9565b8161145057505f6104d9565b816001811461146657600281146114705761148c565b60019150506104d9565b60ff841115611481576114816113df565b50506001821b6104d9565b5060208310610133831016604e8410600b84101617156114af575081810a6104d9565b6114bb5f1984846113f3565b805f19048211156114ce576114ce6113df565b029392505050565b5f6104fd60ff841683611436565b80820281158282048414176104d9576104d96113df565b5f6020828403121561150b575f80fd5b5051919050565b601f82111561080857805f5260205f20601f840160051c810160208510156115375750805b601f840160051c820191505b81811015610d70575f8155600101611543565b815167ffffffffffffffff81111561157057611570611285565b6115848161157e84546113a7565b84611512565b6020601f8211600181146115b6575f831561159f5750848201515b5f19600385901b1c1916600184901b178455610d70565b5f84815260208120601f198516915b828110156115e557878501518255602094850194600190920191016115c5565b508482101561160257868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f920191825250919050565b808201808211156104d9576104d96113df56fe52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace00360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbccd5ed15c6e187e77e9aee88184c21f4f2182ab5827cb3b7e07fbedcd63f03300a264697066735822122066a65ffc3f0daf9ba6a3c2f78c1997bd4c2bf0d28b1d66ecfcf855c093068dd864736f6c634300081a0033
Deployed Bytecode Sourcemap
69612:1107:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23485:147;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;26058:190;;;;;;;;;;-1:-1:-1;26058:190:0;;;;;:::i;:::-;;:::i;:::-;;;1085:14:1;;1078:22;1060:41;;1048:2;1033:18;26058:190:0;920:187:1;24699:155:0;;;;;;;;;;-1:-1:-1;24832:14:0;;24699:155;;;1258:25:1;;;1246:2;1231:18;24699:155:0;1112:177:1;26826:249:0;;;;;;;;;;-1:-1:-1;26826:249:0;;;;;:::i;:::-;;:::i;24550:84::-;;;;;;;;;;-1:-1:-1;24550:84:0;;24624:2;1815:36:1;;1803:2;1788:18;24550:84:0;1673:184:1;70317:65:0;;;;;;;;;;;;;:::i;:::-;;34039:89;;;;;;;;;;-1:-1:-1;34039:89:0;;;;;:::i;:::-;;:::i;66990:217::-;;;;;;:::i;:::-;;:::i;66523:136::-;;;;;;;;;;;;;:::i;37323:148::-;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;37454:9:0;;;37323:148;;24917:174;;;;;;;;;;-1:-1:-1;24917:174:0;;;;;:::i;:::-;-1:-1:-1;;;;;25063:20:0;24982:7;25063:20;;;-1:-1:-1;;;;;;;;;;;25063:20:0;;;;;;;24917:174;43218:103;;;;;;;;;;;;;:::i;34457:161::-;;;;;;;;;;-1:-1:-1;34457:161:0;;;;;:::i;:::-;;:::i;70248:61::-;;;;;;;;;;;;;:::i;42483:147::-;;;;;;;;;;-1:-1:-1;41314:22:0;42614:8;42483:147;;-1:-1:-1;;;;;42614:8:0;;;3767:51:1;;3755:2;3740:18;42483:147:0;3621:203:1;23751:151:0;;;;;;;;;;;;;:::i;25296:182::-;;;;;;;;;;-1:-1:-1;25296:182:0;;;;;:::i;:::-;;:::i;64591:58::-;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;64591:58:0;;;;;69886:354;;;;;;;;;;-1:-1:-1;69886:354:0;;;;;:::i;:::-;;:::i;25541:198::-;;;;;;;;;;-1:-1:-1;25541:198:0;;;;;:::i;:::-;;:::i;43476:220::-;;;;;;;;;;-1:-1:-1;43476:220:0;;;;;:::i;:::-;;:::i;23485:147::-;23617:7;23610:14;;23530:13;;-1:-1:-1;;;;;;;;;;;22810:20:0;23610:14;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23485:147;:::o;26058:190::-;26131:4;13766:10;26187:31;13766:10;26203:7;26212:5;26187:8;:31::i;:::-;26236:4;26229:11;;;26058:190;;;;;:::o;26826:249::-;26913:4;13766:10;26971:37;26987:4;13766:10;27002:5;26971:15;:37::i;:::-;27019:26;27029:4;27035:2;27039:5;27019:9;:26::i;:::-;27063:4;27056:11;;;26826:249;;;;;;:::o;70317:65::-;42369:13;:11;:13::i;:::-;70364:10:::1;:8;:10::i;:::-;70317:65::o:0;34039:89::-;34094:26;13766:10;34114:5;34094;:26::i;:::-;34039:89;:::o;66990:217::-;65445:13;:11;:13::i;:::-;67106:36:::1;67124:17;67106;:36::i;:::-;67153:46;67175:17;67194:4;67153:21;:46::i;:::-;66990:217:::0;;:::o;66523:136::-;66592:7;65725:20;:18;:20::i;:::-;-1:-1:-1;;;;;;;;;;;;66523:136:0;:::o;43218:103::-;42369:13;:11;:13::i;:::-;43283:30:::1;43310:1;43283:18;:30::i;34457:161::-:0;34533:45;34549:7;13766:10;34572:5;34533:15;:45::i;:::-;34589:21;34595:7;34604:5;34589;:21::i;70248:61::-;42369:13;:11;:13::i;:::-;70293:8:::1;:6;:8::i;23751:151::-:0;23885:9;23878:16;;23798:13;;-1:-1:-1;;;;;;;;;;;22810:20:0;23878:16;;;:::i;25296:182::-;25365:4;13766:10;25421:27;13766:10;25438:2;25442:5;25421:9;:27::i;69886:354::-;12748:21;8064:15;;-1:-1:-1;;;8064:15:0;;;;8063:16;;8111:14;;7917:30;8496:16;;:34;;;;;8516:14;8496:34;8476:54;;8541:17;8561:11;:16;;8576:1;8561:16;:50;;;;-1:-1:-1;8589:4:0;8581:25;:30;8561:50;8541:70;;8629:12;8628:13;:30;;;;;8646:12;8645:13;8628:30;8624:93;;;8682:23;;-1:-1:-1;;;8682:23:0;;;;;;;;;;;8624:93;8727:18;;-1:-1:-1;;8727:18:0;8744:1;8727:18;;;8756:69;;;;8791:22;;-1:-1:-1;;;;8791:22:0;-1:-1:-1;;;8791:22:0;;;8756:69;69958:29:::1;;;;;;;;;;;;;;-1:-1:-1::0;;;69958:29:0::1;;::::0;::::1;;;;;;;;;;;;;-1:-1:-1::0;;;69958:29:0::1;;::::0;:12:::1;:29::i;:::-;69998:22;:20;:22::i;:::-;70031;:20;:22::i;:::-;70064:28;70079:12;70064:14;:28::i;:::-;70103:24;:22;:24::i;:::-;70140:32;70159:12;70140:18;:32::i;:::-;70183:49;70189:12:::0;70215:16:::1;24624:2:::0;70215::::1;:16;:::i;:::-;70203:28;::::0;:9:::1;:28;:::i;:::-;70183:5;:49::i;:::-;8851:14:::0;8847:104;;;8882:23;;-1:-1:-1;;;;8882:23:0;;;8925:14;;-1:-1:-1;6369:50:1;;8925:14:0;;6357:2:1;6342:18;8925:14:0;;;;;;;8847:104;7849:1109;;;;;69886:354;:::o;25541:198::-;-1:-1:-1;;;;;25702:20:0;;;25621:7;25702:20;;;:13;:20;;;;;;;;:29;;;;;;;;;;;;;25541:198::o;43476:220::-;42369:13;:11;:13::i;:::-;-1:-1:-1;;;;;43561:22:0;::::1;43557:93;;43607:31;::::0;-1:-1:-1;;;43607:31:0;;43635:1:::1;43607:31;::::0;::::1;3767:51:1::0;3740:18;;43607:31:0::1;;;;;;;;43557:93;43660:28;43679:8;43660:18;:28::i;30949:130::-:0;31034:37;31043:5;31050:7;31059:5;31066:4;31034:8;:37::i;:::-;30949:130;;;:::o;32721:487::-;32821:24;32848:25;32858:5;32865:7;32848:9;:25::i;:::-;32821:52;;-1:-1:-1;;32888:16:0;:37;32884:317;;32965:5;32946:16;:24;32942:132;;;32998:60;;-1:-1:-1;;;32998:60:0;;-1:-1:-1;;;;;6650:32:1;;32998:60:0;;;6632:51:1;6699:18;;;6692:34;;;6742:18;;;6735:34;;;6605:18;;32998:60:0;6430:345:1;32942:132:0;33117:57;33126:5;33133:7;33161:5;33142:16;:24;33168:5;33117:8;:57::i;:::-;32810:398;32721:487;;;:::o;27460:308::-;-1:-1:-1;;;;;27544:18:0;;27540:88;;27586:30;;-1:-1:-1;;;27586:30:0;;27613:1;27586:30;;;3767:51:1;3740:18;;27586:30:0;3621:203:1;27540:88:0;-1:-1:-1;;;;;27642:16:0;;27638:88;;27682:32;;-1:-1:-1;;;27682:32:0;;27711:1;27682:32;;;3767:51:1;3740:18;;27682:32:0;3621:203:1;27638:88:0;27736:24;27744:4;27750:2;27754:5;27736:7;:24::i;42708:166::-;13766:10;42768:7;41314:22;42614:8;-1:-1:-1;;;;;42614:8:0;;42483:147;42768:7;-1:-1:-1;;;;;42768:23:0;;42764:103;;42815:40;;-1:-1:-1;;;42815:40:0;;13766:10;42815:40;;;3767:51:1;3740:18;;42815:40:0;3621:203:1;38348:182:0;37187:16;:14;:16::i;:::-;-1:-1:-1;;;;;;;;;;;38467:17:0;;-1:-1:-1;;38467:17:0::1;::::0;;38500:22:::1;13766:10:::0;38509:12:::1;38500:22;::::0;-1:-1:-1;;;;;3785:32:1;;;3767:51;;3755:2;3740:18;38500:22:0::1;;;;;;;38396:134;38348:182::o:0;30185:211::-;-1:-1:-1;;;;;30256:21:0;;30252:91;;30301:30;;-1:-1:-1;;;30301:30:0;;30328:1;30301:30;;;3767:51:1;3740:18;;30301:30:0;3621:203:1;30252:91:0;30353:35;30361:7;30378:1;30382:5;30353:7;:35::i;67441:319::-;67523:4;-1:-1:-1;;;;;67532:6:0;67515:23;;;:121;;;67630:6;-1:-1:-1;;;;;67594:42:0;:32;-1:-1:-1;;;;;;;;;;;58095:53:0;-1:-1:-1;;;;;58095:53:0;;58016:140;67594:32;-1:-1:-1;;;;;67594:42:0;;;67515:121;67497:256;;;67712:29;;-1:-1:-1;;;67712:29:0;;;;;;;;;;;70395:116;42369:13;:11;:13::i;68934:548::-;69052:17;-1:-1:-1;;;;;69034:50:0;;:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;69034:52:0;;;;;;;;-1:-1:-1;;69034:52:0;;;;;;;;;;;;:::i;:::-;;;69030:445;;69403:60;;-1:-1:-1;;;69403:60:0;;-1:-1:-1;;;;;3785:32:1;;69403:60:0;;;3767:51:1;3740:18;;69403:60:0;3621:203:1;69030:445:0;-1:-1:-1;;;;;;;;;;;69129:40:0;;69125:122;;69197:34;;-1:-1:-1;;;69197:34:0;;;;;1258:25:1;;;1231:18;;69197:34:0;1112:177:1;69125:122:0;69261:54;69291:17;69310:4;69261:29;:54::i;67883:218::-;67958:4;-1:-1:-1;;;;;67967:6:0;67950:23;;67946:148;;68053:29;;-1:-1:-1;;;68053:29:0;;;;;;;;;;;43856:253;41314:22;44007:8;;-1:-1:-1;;;;;;44026:19:0;;-1:-1:-1;;;;;44026:19:0;;;;;;;;44061:40;;44007:8;;;;;44061:40;;43930:24;;44061:40;43919:190;;43856:253;:::o;38027:180::-;36928:19;:17;:19::i;:::-;-1:-1:-1;;;;;;;;;;;38147:16:0;;-1:-1:-1;;38147:16:0::1;38159:4;38147:16;::::0;;38179:20:::1;13766:10:::0;38186:12:::1;13686:98:::0;23038:149;10755:20;:18;:20::i;:::-;23141:38:::1;23164:5;23171:7;23141:22;:38::i;33764:66::-:0;10755:20;:18;:20::i;39574:104::-;10755:20;:18;:20::i;:::-;39643:27:::1;:25;:27::i;41867:129::-:0;10755:20;:18;:20::i;:::-;41950:38:::1;41975:12;41950:24;:38::i;29644:213::-:0;-1:-1:-1;;;;;29715:21:0;;29711:93;;29760:32;;-1:-1:-1;;;29760:32:0;;29789:1;29760:32;;;3767:51:1;3740:18;;29760:32:0;3621:203:1;29711:93:0;29814:35;29830:1;29834:7;29843:5;29814:7;:35::i;31930:499::-;-1:-1:-1;;;;;;;;;;;;;;;;32097:19:0;;32093:91;;32140:32;;-1:-1:-1;;;32140:32:0;;32169:1;32140:32;;;3767:51:1;3740:18;;32140:32:0;3621:203:1;32093:91:0;-1:-1:-1;;;;;32198:21:0;;32194:92;;32243:31;;-1:-1:-1;;;32243:31:0;;32271:1;32243:31;;;3767:51:1;3740:18;;32243:31:0;3621:203:1;32194:92:0;-1:-1:-1;;;;;32296:20:0;;;;;;;:13;;;:20;;;;;;;;:29;;;;;;;;;:37;;;32344:78;;;;32395:7;-1:-1:-1;;;;;32379:31:0;32388:5;-1:-1:-1;;;;;32379:31:0;;32404:5;32379:31;;;;1258:25:1;;1246:2;1231:18;;1112:177;32379:31:0;;;;;;;;32344:78;32028:401;31930:499;;;;:::o;70524:192::-;70678:30;70692:4;70698:2;70702:5;70678:13;:30::i;37753:130::-;-1:-1:-1;;;;;;;;;;;37454:9:0;;;37812:64;;37849:15;;-1:-1:-1;;;37849:15:0;;;;;;;;;;;58859:344;58951:37;58970:17;58951:18;:37::i;:::-;59004:27;;-1:-1:-1;;;;;59004:27:0;;;;;;;;59048:11;;:15;59044:152;;59080:53;59109:17;59128:4;59080:28;:53::i;59044:152::-;59166:18;:16;:18::i;37544:132::-;-1:-1:-1;;;;;;;;;;;37454:9:0;;;37606:63;;;37642:15;;-1:-1:-1;;;37642:15:0;;;;;;;;;;;10915:145;12748:21;12429:40;-1:-1:-1;;;12429:40:0;;;;10978:75;;11024:17;;-1:-1:-1;;;11024:17:0;;;;;;;;;;;23195:220;10755:20;:18;:20::i;:::-;-1:-1:-1;;;;;;;;;;;23362:7:0;:15:::1;23372:5:::0;23362:7;:15:::1;:::i;:::-;-1:-1:-1::0;23388:9:0::1;::::0;::::1;:19;23400:7:::0;23388:9;:19:::1;:::i;36538:159::-:0;10755:20;:18;:20::i;:::-;-1:-1:-1;;;;;;;;;;;36672:17:0;;-1:-1:-1;;36672:17:0::1;::::0;;36538:159::o;42004:240::-;10755:20;:18;:20::i;39901:147::-;36928:19;:17;:19::i;:::-;40010:30:::1;40024:4;40030:2;40034:5;40010:13;:30::i;58252:286::-:0;58330:17;-1:-1:-1;;;;;58330:29:0;;58363:1;58330:34;58326:121;;58388:47;;-1:-1:-1;;;58388:47:0;;-1:-1:-1;;;;;3785:32:1;;58388:47:0;;;3767:51:1;3740:18;;58388:47:0;3621:203:1;58326:121:0;-1:-1:-1;;;;;;;;;;;58457:73:0;;-1:-1:-1;;;;;;58457:73:0;-1:-1:-1;;;;;58457:73:0;;;;;;;;;;58252:286::o;49805:256::-;49888:12;49914;49928:23;49955:6;-1:-1:-1;;;;;49955:19:0;49975:4;49955:25;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49913:67;;;;49998:55;50025:6;50033:7;50042:10;49998:26;:55::i;:::-;49991:62;49805:256;-1:-1:-1;;;;;49805:256:0:o;62783:126::-;62834:9;:13;62830:72;;62871:19;;-1:-1:-1;;;62871:19:0;;;;;;;;;;;28092:1199;-1:-1:-1;;;;;;;;;;;;;;;;28236:18:0;;28232:558;;28392:5;28374:1;:14;;;:23;;;;;;;:::i;:::-;;;;-1:-1:-1;28232:558:0;;-1:-1:-1;28232:558:0;;-1:-1:-1;;;;;28452:17:0;;28430:19;28452:17;;;;;;;;;;;28488:19;;;28484:117;;;28535:50;;-1:-1:-1;;;28535:50:0;;-1:-1:-1;;;;;6650:32:1;;28535:50:0;;;6632:51:1;6699:18;;;6692:34;;;6742:18;;;6735:34;;;6605:18;;28535:50:0;6430:345:1;28484:117:0;-1:-1:-1;;;;;28724:17:0;;:11;:17;;;;;;;;;;28744:19;;;;28724:39;;28232:558;-1:-1:-1;;;;;28806:16:0;;28802:439;;28972:14;;;:23;;;;;;;28802:439;;;-1:-1:-1;;;;;29190:15:0;;:11;:15;;;;;;;;;;:24;;;;;;28802:439;29273:2;-1:-1:-1;;;;;29258:25:0;29267:4;-1:-1:-1;;;;;29258:25:0;;29277:5;29258:25;;;;1258::1;;1246:2;1231:18;;1112:177;29258:25:0;;;;;;;;28167:1124;28092:1199;;;:::o;50334:597::-;50482:12;50512:7;50507:417;;50536:19;50544:10;50536:7;:19::i;:::-;50507:417;;;50764:17;;:22;:49;;;;-1:-1:-1;;;;;;50790:18:0;;;:23;50764:49;50760:121;;;50841:24;;-1:-1:-1;;;50841:24:0;;-1:-1:-1;;;;;3785:32:1;;50841:24:0;;;3767:51:1;3740:18;;50841:24:0;3621:203:1;50760:121:0;-1:-1:-1;50902:10:0;50895:17;;51484:528;51617:17;;:21;51613:392;;51849:10;51843:17;51906:15;51893:10;51889:2;51885:19;51878:44;51613:392;51976:17;;-1:-1:-1;;;51976:17:0;;;;;;;;;;;14:418:1;163:2;152:9;145:21;126:4;195:6;189:13;238:6;233:2;222:9;218:18;211:34;297:6;292:2;284:6;280:15;275:2;264:9;260:18;254:50;353:1;348:2;339:6;328:9;324:22;320:31;313:42;423:2;416;412:7;407:2;399:6;395:15;391:29;380:9;376:45;372:54;364:62;;;14:418;;;;:::o;437:173::-;505:20;;-1:-1:-1;;;;;554:31:1;;544:42;;534:70;;600:1;597;590:12;534:70;437:173;;;:::o;615:300::-;683:6;691;744:2;732:9;723:7;719:23;715:32;712:52;;;760:1;757;750:12;712:52;783:29;802:9;783:29;:::i;:::-;773:39;881:2;866:18;;;;853:32;;-1:-1:-1;;;615:300:1:o;1294:374::-;1371:6;1379;1387;1440:2;1428:9;1419:7;1415:23;1411:32;1408:52;;;1456:1;1453;1446:12;1408:52;1479:29;1498:9;1479:29;:::i;:::-;1469:39;;1527:38;1561:2;1550:9;1546:18;1527:38;:::i;:::-;1294:374;;1517:48;;-1:-1:-1;;;1634:2:1;1619:18;;;;1606:32;;1294:374::o;1862:226::-;1921:6;1974:2;1962:9;1953:7;1949:23;1945:32;1942:52;;;1990:1;1987;1980:12;1942:52;-1:-1:-1;2035:23:1;;1862:226;-1:-1:-1;1862:226:1:o;2093:127::-;2154:10;2149:3;2145:20;2142:1;2135:31;2185:4;2182:1;2175:15;2209:4;2206:1;2199:15;2225:1018;2302:6;2310;2363:2;2351:9;2342:7;2338:23;2334:32;2331:52;;;2379:1;2376;2369:12;2331:52;2402:29;2421:9;2402:29;:::i;:::-;2392:39;;2482:2;2471:9;2467:18;2454:32;2509:18;2501:6;2498:30;2495:50;;;2541:1;2538;2531:12;2495:50;2564:22;;2617:4;2609:13;;2605:27;-1:-1:-1;2595:55:1;;2646:1;2643;2636:12;2595:55;2686:2;2673:16;2712:18;2704:6;2701:30;2698:56;;;2734:18;;:::i;:::-;2783:2;2777:9;2875:2;2837:17;;-1:-1:-1;;2833:31:1;;;2866:2;2829:40;2825:54;2813:67;;2910:18;2895:34;;2931:22;;;2892:62;2889:88;;;2957:18;;:::i;:::-;2993:2;2986:22;3017;;;3058:15;;;3075:2;3054:24;3051:37;-1:-1:-1;3048:57:1;;;3101:1;3098;3091:12;3048:57;3157:6;3152:2;3148;3144:11;3139:2;3131:6;3127:15;3114:50;3210:1;3205:2;3196:6;3188;3184:19;3180:28;3173:39;3231:6;3221:16;;;;;2225:1018;;;;;:::o;3430:186::-;3489:6;3542:2;3530:9;3521:7;3517:23;3513:32;3510:52;;;3558:1;3555;3548:12;3510:52;3581:29;3600:9;3581:29;:::i;3829:260::-;3897:6;3905;3958:2;3946:9;3937:7;3933:23;3929:32;3926:52;;;3974:1;3971;3964:12;3926:52;3997:29;4016:9;3997:29;:::i;:::-;3987:39;;4045:38;4079:2;4068:9;4064:18;4045:38;:::i;:::-;4035:48;;3829:260;;;;;:::o;4094:380::-;4173:1;4169:12;;;;4216;;;4237:61;;4291:4;4283:6;4279:17;4269:27;;4237:61;4344:2;4336:6;4333:14;4313:18;4310:38;4307:161;;4390:10;4385:3;4381:20;4378:1;4371:31;4425:4;4422:1;4415:15;4453:4;4450:1;4443:15;4307:161;;4094:380;;;:::o;4479:127::-;4540:10;4535:3;4531:20;4528:1;4521:31;4571:4;4568:1;4561:15;4595:4;4592:1;4585:15;4611:375;4699:1;4717:5;4731:249;4752:1;4742:8;4739:15;4731:249;;;4802:4;4797:3;4793:14;4787:4;4784:24;4781:50;;;4811:18;;:::i;:::-;4861:1;4851:8;4847:16;4844:49;;;4875:16;;;;4844:49;4958:1;4954:16;;;;;4914:15;;4731:249;;;4611:375;;;;;;:::o;4991:902::-;5040:5;5070:8;5060:80;;-1:-1:-1;5111:1:1;5125:5;;5060:80;5159:4;5149:76;;-1:-1:-1;5196:1:1;5210:5;;5149:76;5241:4;5259:1;5254:59;;;;5327:1;5322:174;;;;5234:262;;5254:59;5284:1;5275:10;;5298:5;;;5322:174;5359:3;5349:8;5346:17;5343:43;;;5366:18;;:::i;:::-;-1:-1:-1;;5422:1:1;5408:16;;5481:5;;5234:262;;5580:2;5570:8;5567:16;5561:3;5555:4;5552:13;5548:36;5542:2;5532:8;5529:16;5524:2;5518:4;5515:12;5511:35;5508:77;5505:203;;;-1:-1:-1;5617:19:1;;;5693:5;;5505:203;5740:42;-1:-1:-1;;5765:8:1;5759:4;5740:42;:::i;:::-;5818:6;5814:1;5810:6;5806:19;5797:7;5794:32;5791:58;;;5829:18;;:::i;:::-;5867:20;;4991:902;-1:-1:-1;;;4991:902:1:o;5898:140::-;5956:5;5985:47;6026:4;6016:8;6012:19;6006:4;5985:47;:::i;6043:168::-;6116:9;;;6147;;6164:15;;;6158:22;;6144:37;6134:71;;6185:18;;:::i;6780:184::-;6850:6;6903:2;6891:9;6882:7;6878:23;6874:32;6871:52;;;6919:1;6916;6909:12;6871:52;-1:-1:-1;6942:16:1;;6780:184;-1:-1:-1;6780:184:1:o;7095:518::-;7197:2;7192:3;7189:11;7186:421;;;7233:5;7230:1;7223:16;7277:4;7274:1;7264:18;7347:2;7335:10;7331:19;7328:1;7324:27;7318:4;7314:38;7383:4;7371:10;7368:20;7365:47;;;-1:-1:-1;7406:4:1;7365:47;7461:2;7456:3;7452:12;7449:1;7445:20;7439:4;7435:31;7425:41;;7516:81;7534:2;7527:5;7524:13;7516:81;;;7593:1;7579:16;;7560:1;7549:13;7516:81;;7789:1299;7915:3;7909:10;7942:18;7934:6;7931:30;7928:56;;;7964:18;;:::i;:::-;7993:97;8083:6;8043:38;8075:4;8069:11;8043:38;:::i;:::-;8037:4;7993:97;:::i;:::-;8139:4;8170:2;8159:14;;8187:1;8182:649;;;;8875:1;8892:6;8889:89;;;-1:-1:-1;8944:19:1;;;8938:26;8889:89;-1:-1:-1;;7746:1:1;7742:11;;;7738:24;7734:29;7724:40;7770:1;7766:11;;;7721:57;8991:81;;8152:930;;8182:649;7042:1;7035:14;;;7079:4;7066:18;;-1:-1:-1;;8218:20:1;;;8336:222;8350:7;8347:1;8344:14;8336:222;;;8432:19;;;8426:26;8411:42;;8539:4;8524:20;;;;8492:1;8480:14;;;;8366:12;8336:222;;;8340:3;8586:6;8577:7;8574:19;8571:201;;;8647:19;;;8641:26;-1:-1:-1;;8730:1:1;8726:14;;;8742:3;8722:24;8718:37;8714:42;8699:58;8684:74;;8571:201;-1:-1:-1;;;;8818:1:1;8802:14;;;8798:22;8785:36;;-1:-1:-1;7789:1299:1:o;9093:301::-;9222:3;9260:6;9254:13;9306:6;9299:4;9291:6;9287:17;9282:3;9276:37;9368:1;9332:16;;9357:13;;;-1:-1:-1;9332:16:1;9093:301;-1:-1:-1;9093:301:1:o;9399:125::-;9464:9;;;9485:10;;;9482:36;;;9498:18;;:::i
Swarm Source
ipfs://66a65ffc3f0daf9ba6a3c2f78c1997bd4c2bf0d28b1d66ecfcf855c093068dd8
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
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.