ERC-20
Overview
Max Total Supply
4,200,000,000 BLAZE
Holders
1
Market
Price
-
Onchain Market Cap
-
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
BlazeToken
Compiler Version
v0.8.26+commit.8a97fa7a
Contract Source Code (Solidity)
/** *Submitted for verification at SonicScan.org on 2025-01-04 */ // SPDX-License-Identifier: MIT // 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) /** * @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/utils/Context.sol // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } } // File: @openzeppelin/contracts/interfaces/draft-IERC6093.sol // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol) /** * @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/token/ERC20/ERC20.sol // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/ERC20.sol) /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * The default value of {decimals} is 18. To change this, you should override * this function so it returns a different value. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of 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 ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors { mapping(address account => uint256) private _balances; mapping(address account => mapping(address spender => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the default value returned by this function, unless * it's overridden. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `value`. */ function transfer(address to, uint256 value) public virtual returns (bool) { address owner = _msgSender(); _transfer(owner, to, value); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `value` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 value) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, value); return true; } /** * @dev See {IERC20-transferFrom}. * * 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 { 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 { 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/token/ERC20/extensions/IERC20Permit.sol // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol) /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. * * ==== Security Considerations * * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be * considered as an intention to spend the allowance in any specific way. The second is that because permits have * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be * generally recommended is: * * ```solidity * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public { * try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {} * doThing(..., value); * } * * function doThing(..., uint256 value) public { * token.safeTransferFrom(msg.sender, address(this), value); * ... * } * ``` * * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also * {SafeERC20-safeTransferFrom}). * * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so * contracts should have entry points that don't rely on permit. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. * * CAUTION: See Security Considerations above. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); } // File: @openzeppelin/contracts/utils/cryptography/ECDSA.sol // OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.20; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS } /** * @dev The signature derives the `address(0)`. */ error ECDSAInvalidSignature(); /** * @dev The signature has an invalid length. */ error ECDSAInvalidSignatureLength(uint256 length); /** * @dev The signature has an S value that is in the upper half order. */ error ECDSAInvalidSignatureS(bytes32 s); /** * @dev Returns the address that signed a hashed message (`hash`) with `signature` or an error. This will not * return address(0) without also returning an error description. Errors are documented using an enum (error type) * and a bytes32 providing additional information about the error. * * If no error is returned, then the address can be used for verification purposes. * * The `ecrecover` EVM precompile allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError, bytes32) { if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. /// @solidity memory-safe-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else { return (address(0), RecoverError.InvalidSignatureLength, bytes32(signature.length)); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM precompile allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, signature); _throwError(error, errorArg); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] */ function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError, bytes32) { unchecked { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); // We do not check for an overflow here since the shift operation results in 0 or 1. uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. */ function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) { (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, r, vs); _throwError(error, errorArg); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError, bytes32) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS, s); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature, bytes32(0)); } return (signer, RecoverError.NoError, bytes32(0)); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) { (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, v, r, s); _throwError(error, errorArg); return recovered; } /** * @dev Optionally reverts with the corresponding custom error according to the `error` argument provided. */ function _throwError(RecoverError error, bytes32 errorArg) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert ECDSAInvalidSignature(); } else if (error == RecoverError.InvalidSignatureLength) { revert ECDSAInvalidSignatureLength(uint256(errorArg)); } else if (error == RecoverError.InvalidSignatureS) { revert ECDSAInvalidSignatureS(errorArg); } } } // File: @openzeppelin/contracts/utils/math/Math.sol // OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol) /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Muldiv operation overflow. */ error MathOverflowedMulDiv(); enum Rounding { Floor, // Toward negative infinity Ceil, // Toward positive infinity Trunc, // Toward zero Expand // Away from zero } /** * @dev Returns the addition of two unsigned integers, with an overflow flag. */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds towards infinity instead * of rounding towards zero. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { if (b == 0) { // Guarantee the same behavior as in a regular Solidity division. return a / b; } // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or * denominator == 0. * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by * Uniswap Labs also under MIT license. */ function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0 = x * y; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. if (denominator <= prod1) { revert MathOverflowedMulDiv(); } /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. // Always >= 1. See https://cs.stackexchange.com/q/138556/92363. uint256 twos = denominator & (0 - denominator); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also // works in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded * towards zero. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2 of a positive value rounded towards zero. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10 of a positive value rounded towards zero. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10 ** 64) { value /= 10 ** 64; result += 64; } if (value >= 10 ** 32) { value /= 10 ** 32; result += 32; } if (value >= 10 ** 16) { value /= 10 ** 16; result += 16; } if (value >= 10 ** 8) { value /= 10 ** 8; result += 8; } if (value >= 10 ** 4) { value /= 10 ** 4; result += 4; } if (value >= 10 ** 2) { value /= 10 ** 2; result += 2; } if (value >= 10 ** 1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0); } } /** * @dev Return the log in base 256 of a positive value rounded towards zero. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 256, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0); } } /** * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers. */ function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) { return uint8(rounding) % 2 == 1; } } // File: @openzeppelin/contracts/utils/math/SignedMath.sol // OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol) /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMath { /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return a > b ? a : b; } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return a < b ? a : b; } /** * @dev Returns the average of two signed numbers without overflow. * The result is rounded towards zero. */ function average(int256 a, int256 b) internal pure returns (int256) { // Formula from the book "Hacker's Delight" int256 x = (a & b) + ((a ^ b) >> 1); return x + (int256(uint256(x) >> 255) & (a ^ b)); } /** * @dev Returns the absolute unsigned value of a signed value. */ function abs(int256 n) internal pure returns (uint256) { unchecked { // must be unchecked in order to support `n = type(int256).min` return uint256(n >= 0 ? n : -n); } } } // File: @openzeppelin/contracts/utils/Strings.sol // OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol) pragma solidity ^0.8.20; /** * @dev String operations. */ library Strings { bytes16 private constant HEX_DIGITS = "0123456789abcdef"; uint8 private constant ADDRESS_LENGTH = 20; /** * @dev The `value` string doesn't fit in the specified `length`. */ error StringsInsufficientHexLength(uint256 value, uint256 length); /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), HEX_DIGITS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `int256` to its ASCII `string` decimal representation. */ function toStringSigned(int256 value) internal pure returns (string memory) { return string.concat(value < 0 ? "-" : "", toString(SignedMath.abs(value))); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { uint256 localValue = value; bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = HEX_DIGITS[localValue & 0xf]; localValue >>= 4; } if (localValue != 0) { revert StringsInsufficientHexLength(value, length); } return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal * representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b)); } } // File: @openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol // OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/MessageHashUtils.sol) /** * @dev Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing. * * The library provides methods for generating a hash of a message that conforms to the * https://eips.ethereum.org/EIPS/eip-191[EIP 191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712] * specifications. */ library MessageHashUtils { /** * @dev Returns the keccak256 digest of an EIP-191 signed data with version * `0x45` (`personal_sign` messages). * * The digest is calculated by prefixing a bytes32 `messageHash` with * `"\x19Ethereum Signed Message:\n32"` and hashing the result. It corresponds with the * hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method. * * NOTE: The `messageHash` parameter is intended to be the result of hashing a raw message with * keccak256, although any bytes32 value can be safely used because the final digest will * be re-hashed. * * See {ECDSA-recover}. */ function toEthSignedMessageHash(bytes32 messageHash) internal pure returns (bytes32 digest) { /// @solidity memory-safe-assembly assembly { mstore(0x00, "\x19Ethereum Signed Message:\n32") // 32 is the bytes-length of messageHash mstore(0x1c, messageHash) // 0x1c (28) is the length of the prefix digest := keccak256(0x00, 0x3c) // 0x3c is the length of the prefix (0x1c) + messageHash (0x20) } } /** * @dev Returns the keccak256 digest of an EIP-191 signed data with version * `0x45` (`personal_sign` messages). * * The digest is calculated by prefixing an arbitrary `message` with * `"\x19Ethereum Signed Message:\n" + len(message)` and hashing the result. It corresponds with the * hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method. * * See {ECDSA-recover}. */ function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32) { return keccak256(bytes.concat("\x19Ethereum Signed Message:\n", bytes(Strings.toString(message.length)), message)); } /** * @dev Returns the keccak256 digest of an EIP-191 signed data with version * `0x00` (data with intended validator). * * The digest is calculated by prefixing an arbitrary `data` with `"\x19\x00"` and the intended * `validator` address. Then hashing the result. * * See {ECDSA-recover}. */ function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) { return keccak256(abi.encodePacked(hex"19_00", validator, data)); } /** * @dev Returns the keccak256 digest of an EIP-712 typed data (EIP-191 version `0x01`). * * The digest is calculated from a `domainSeparator` and a `structHash`, by prefixing them with * `\x19\x01` and hashing the result. It corresponds to the hash signed by the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] JSON-RPC method as part of EIP-712. * * See {ECDSA-recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 digest) { /// @solidity memory-safe-assembly assembly { let ptr := mload(0x40) mstore(ptr, hex"19_01") mstore(add(ptr, 0x02), domainSeparator) mstore(add(ptr, 0x22), structHash) digest := keccak256(ptr, 0x42) } } } // 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. /** * @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/utils/ShortStrings.sol // OpenZeppelin Contracts (last updated v5.0.0) (utils/ShortStrings.sol) // | string | 0xAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | // | length | 0x BB | type ShortString is bytes32; /** * @dev This library provides functions to convert short memory strings * into a `ShortString` type that can be used as an immutable variable. * * Strings of arbitrary length can be optimized using this library if * they are short enough (up to 31 bytes) by packing them with their * length (1 byte) in a single EVM word (32 bytes). Additionally, a * fallback mechanism can be used for every other case. * * Usage example: * * ```solidity * contract Named { * using ShortStrings for *; * * ShortString private immutable _name; * string private _nameFallback; * * constructor(string memory contractName) { * _name = contractName.toShortStringWithFallback(_nameFallback); * } * * function name() external view returns (string memory) { * return _name.toStringWithFallback(_nameFallback); * } * } * ``` */ library ShortStrings { // Used as an identifier for strings longer than 31 bytes. bytes32 private constant FALLBACK_SENTINEL = 0x00000000000000000000000000000000000000000000000000000000000000FF; error StringTooLong(string str); error InvalidShortString(); /** * @dev Encode a string of at most 31 chars into a `ShortString`. * * This will trigger a `StringTooLong` error is the input string is too long. */ function toShortString(string memory str) internal pure returns (ShortString) { bytes memory bstr = bytes(str); if (bstr.length > 31) { revert StringTooLong(str); } return ShortString.wrap(bytes32(uint256(bytes32(bstr)) | bstr.length)); } /** * @dev Decode a `ShortString` back to a "normal" string. */ function toString(ShortString sstr) internal pure returns (string memory) { uint256 len = byteLength(sstr); // using `new string(len)` would work locally but is not memory safe. string memory str = new string(32); /// @solidity memory-safe-assembly assembly { mstore(str, len) mstore(add(str, 0x20), sstr) } return str; } /** * @dev Return the length of a `ShortString`. */ function byteLength(ShortString sstr) internal pure returns (uint256) { uint256 result = uint256(ShortString.unwrap(sstr)) & 0xFF; if (result > 31) { revert InvalidShortString(); } return result; } /** * @dev Encode a string into a `ShortString`, or write it to storage if it is too long. */ function toShortStringWithFallback(string memory value, string storage store) internal returns (ShortString) { if (bytes(value).length < 32) { return toShortString(value); } else { StorageSlot.getStringSlot(store).value = value; return ShortString.wrap(FALLBACK_SENTINEL); } } /** * @dev Decode a string that was encoded to `ShortString` or written to storage using {setWithFallback}. */ function toStringWithFallback(ShortString value, string storage store) internal pure returns (string memory) { if (ShortString.unwrap(value) != FALLBACK_SENTINEL) { return toString(value); } else { return store; } } /** * @dev Return the length of a string that was encoded to `ShortString` or written to storage using * {setWithFallback}. * * WARNING: This will return the "byte length" of the string. This may not reflect the actual length in terms of * actual characters as the UTF-8 encoding of a single character can span over multiple bytes. */ function byteLengthWithFallback(ShortString value, string storage store) internal view returns (uint256) { if (ShortString.unwrap(value) != FALLBACK_SENTINEL) { return byteLength(value); } else { return bytes(store).length; } } } // File: @openzeppelin/contracts/interfaces/IERC5267.sol // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC5267.sol) interface IERC5267 { /** * @dev MAY be emitted to signal that the domain could have changed. */ event EIP712DomainChanged(); /** * @dev returns the fields and values that describe the domain separator used by this contract for EIP-712 * signature. */ function eip712Domain() external view returns ( bytes1 fields, string memory name, string memory version, uint256 chainId, address verifyingContract, bytes32 salt, uint256[] memory extensions ); } // File: @openzeppelin/contracts/utils/cryptography/EIP712.sol // OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/EIP712.sol) /** * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data. * * The encoding scheme specified in the EIP requires a domain separator and a hash of the typed structured data, whose * encoding is very generic and therefore its implementation in Solidity is not feasible, thus this contract * does not implement the encoding itself. Protocols need to implement the type-specific encoding they need in order to * produce the hash of their typed data using a combination of `abi.encode` and `keccak256`. * * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA * ({_hashTypedDataV4}). * * The implementation of the domain separator was designed to be as efficient as possible while still properly updating * the chain id to protect against replay attacks on an eventual fork of the chain. * * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask]. * * NOTE: In the upgradeable version of this contract, the cached values will correspond to the address, and the domain * separator of the implementation contract. This will cause the {_domainSeparatorV4} function to always rebuild the * separator from the immutable values, which is cheaper than accessing a cached version in cold storage. * * @custom:oz-upgrades-unsafe-allow state-variable-immutable */ abstract contract EIP712 is IERC5267 { using ShortStrings for *; bytes32 private constant TYPE_HASH = keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"); // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to // invalidate the cached domain separator if the chain id changes. bytes32 private immutable _cachedDomainSeparator; uint256 private immutable _cachedChainId; address private immutable _cachedThis; bytes32 private immutable _hashedName; bytes32 private immutable _hashedVersion; ShortString private immutable _name; ShortString private immutable _version; string private _nameFallback; string private _versionFallback; /** * @dev Initializes the domain separator and parameter caches. * * The meaning of `name` and `version` is specified in * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]: * * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol. * - `version`: the current major version of the signing domain. * * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart * contract upgrade]. */ constructor(string memory name, string memory version) { _name = name.toShortStringWithFallback(_nameFallback); _version = version.toShortStringWithFallback(_versionFallback); _hashedName = keccak256(bytes(name)); _hashedVersion = keccak256(bytes(version)); _cachedChainId = block.chainid; _cachedDomainSeparator = _buildDomainSeparator(); _cachedThis = address(this); } /** * @dev Returns the domain separator for the current chain. */ function _domainSeparatorV4() internal view returns (bytes32) { if (address(this) == _cachedThis && block.chainid == _cachedChainId) { return _cachedDomainSeparator; } else { return _buildDomainSeparator(); } } function _buildDomainSeparator() private view returns (bytes32) { return keccak256(abi.encode(TYPE_HASH, _hashedName, _hashedVersion, block.chainid, address(this))); } /** * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this * function returns the hash of the fully encoded EIP712 message for this domain. * * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example: * * ```solidity * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode( * keccak256("Mail(address to,string contents)"), * mailTo, * keccak256(bytes(mailContents)) * ))); * address signer = ECDSA.recover(digest, signature); * ``` */ function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) { return MessageHashUtils.toTypedDataHash(_domainSeparatorV4(), structHash); } /** * @dev See {IERC-5267}. */ function eip712Domain() public view virtual returns ( bytes1 fields, string memory name, string memory version, uint256 chainId, address verifyingContract, bytes32 salt, uint256[] memory extensions ) { return ( hex"0f", // 01111 _EIP712Name(), _EIP712Version(), block.chainid, address(this), bytes32(0), new uint256[](0) ); } /** * @dev The name parameter for the EIP712 domain. * * NOTE: By default this function reads _name which is an immutable value. * It only reads from storage if necessary (in case the value is too large to fit in a ShortString). */ // solhint-disable-next-line func-name-mixedcase function _EIP712Name() internal view returns (string memory) { return _name.toStringWithFallback(_nameFallback); } /** * @dev The version parameter for the EIP712 domain. * * NOTE: By default this function reads _version which is an immutable value. * It only reads from storage if necessary (in case the value is too large to fit in a ShortString). */ // solhint-disable-next-line func-name-mixedcase function _EIP712Version() internal view returns (string memory) { return _version.toStringWithFallback(_versionFallback); } } // File: @openzeppelin/contracts/utils/Nonces.sol // OpenZeppelin Contracts (last updated v5.0.0) (utils/Nonces.sol) /** * @dev Provides tracking nonces for addresses. Nonces will only increment. */ abstract contract Nonces { /** * @dev The nonce used for an `account` is not the expected current nonce. */ error InvalidAccountNonce(address account, uint256 currentNonce); mapping(address account => uint256) private _nonces; /** * @dev Returns the next unused nonce for an address. */ function nonces(address owner) public view virtual returns (uint256) { return _nonces[owner]; } /** * @dev Consumes a nonce. * * Returns the current value and increments nonce. */ function _useNonce(address owner) internal virtual returns (uint256) { // For each account, the nonce has an initial value of 0, can only be incremented by one, and cannot be // decremented or reset. This guarantees that the nonce never overflows. unchecked { // It is important to do x++ and not ++x here. return _nonces[owner]++; } } /** * @dev Same as {_useNonce} but checking that `nonce` is the next valid for `owner`. */ function _useCheckedNonce(address owner, uint256 nonce) internal virtual { uint256 current = _useNonce(owner); if (nonce != current) { revert InvalidAccountNonce(owner, current); } } } // File: @openzeppelin/contracts/token/ERC20/extensions/ERC20Permit.sol // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/ERC20Permit.sol) /** * @dev Implementation of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ abstract contract ERC20Permit is ERC20, IERC20Permit, EIP712, Nonces { bytes32 private constant PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); /** * @dev Permit deadline has expired. */ error ERC2612ExpiredSignature(uint256 deadline); /** * @dev Mismatched signature. */ error ERC2612InvalidSigner(address signer, address owner); /** * @dev Initializes the {EIP712} domain separator using the `name` parameter, and setting `version` to `"1"`. * * It's a good idea to use the same `name` that is defined as the ERC20 token name. */ constructor(string memory name) EIP712(name, "1") {} /** * @inheritdoc IERC20Permit */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) public virtual { if (block.timestamp > deadline) { revert ERC2612ExpiredSignature(deadline); } bytes32 structHash = keccak256(abi.encode(PERMIT_TYPEHASH, owner, spender, value, _useNonce(owner), deadline)); bytes32 hash = _hashTypedDataV4(structHash); address signer = ECDSA.recover(hash, v, r, s); if (signer != owner) { revert ERC2612InvalidSigner(signer, owner); } _approve(owner, spender, value); } /** * @inheritdoc IERC20Permit */ function nonces(address owner) public view virtual override(IERC20Permit, Nonces) returns (uint256) { return super.nonces(owner); } /** * @inheritdoc IERC20Permit */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view virtual returns (bytes32) { return _domainSeparatorV4(); } } // File: @openzeppelin/contracts/token/ERC20/extensions/draft-ERC20Permit.sol // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/draft-ERC20Permit.sol) pragma solidity ^0.8.0; // EIP-2612 is Final as of 2022-11-01. This file is deprecated. // File: @openzeppelin/contracts/access/Ownable.sol // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * The initial owner is set to the address provided by the deployer. This can * later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File: @openzeppelin/contracts/security/ReentrancyGuard.sol // OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol) /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == _ENTERED; } } // File: contracts/BlazeMemev2.sol /** * @title Blaze it (BLAZE) * @dev ERC20 token with burn mechanics, capped supply, and automatic/manual burn functionality. */ contract BlazeToken is ERC20, ERC20Permit, Ownable, ReentrancyGuard { /// @notice Percentage of each transfer that will be burned (0.0420%) uint256 public immutable burnPercentage = 42; // Burn percentage in basis points (0.042%) /// @notice Maximum supply threshold for automatic burn tax to be disabled uint256 public immutable maxSupply = 3.18e9 * 10**18; /// @notice Supply threshold below which manual burns are disabled uint256 private immutable disableBurnSupply = 21e6 * 10**18; /// @notice Tracks the total amount of tokens burned uint256 private _totalBurned; /// @dev Emitted when tokens are burned /// @param from Address from which tokens were burned /// @param amount Amount of tokens burned event Burn(address indexed from, uint256 amount); /// @dev Emitted when tokens are burned and the remaining tokens are transferred event BurnedAndTransferred(address indexed from, address indexed to, uint256 amount, uint256 burnAmount); /** * @notice Constructor to initialize the CheeseToken contract. * @dev Mints the initial supply to the deployer's address. */ constructor() ERC20("BLAZE", "BLAZE") ERC20Permit("BLAZE") Ownable(msg.sender) { uint256 initialSupply = 4_200_000_000 * 10 ** decimals(); _mint(msg.sender, initialSupply); // Set initial supply to 4.2 billion BLAZE } /** * @notice Transfers tokens to another address with burn logic applied. * @param to Recipient address. * @param amount Amount of tokens to transfer. * @return bool True if the transfer succeeds. */ function transfer(address to, uint256 amount) public override nonReentrant returns (bool) { uint256 burnAmount = 0; // Apply burn if total supply exceeds maxSupply if (totalSupply() > maxSupply) { burnAmount = _calculateBurnAmount(amount); require(amount >= burnAmount, "Burn amount exceeds transfer amount"); if (burnAmount > 0) { _burn(_msgSender(), burnAmount); _totalBurned += burnAmount; // Update the cumulative burned amount emit Burn(_msgSender(), burnAmount); // Emit burn event for transparency } } uint256 amountAfterBurn = amount - burnAmount; // Emit BurnedAndTransferred event emit BurnedAndTransferred(_msgSender(), to, amountAfterBurn, burnAmount); return super.transfer(to, amountAfterBurn); } /** * @notice Transfers tokens from one address to another with burn logic applied. * @param from Sender's address. * @param to Recipient's address. * @param amount Amount of tokens to transfer. * @return bool True if the transfer succeeds. */ function transferFrom(address from, address to, uint256 amount) public override nonReentrant returns (bool) { uint256 burnAmount = 0; // Apply burn if total supply exceeds maxSupply if (totalSupply() > maxSupply) { burnAmount = _calculateBurnAmount(amount); require(amount >= burnAmount, "Burn amount exceeds transfer amount"); if (burnAmount > 0) { _burn(from, burnAmount); _totalBurned += burnAmount; // Update the cumulative burned amount emit Burn(from, burnAmount); // Emit burn event for transparency } } uint256 amountAfterBurn = amount - burnAmount; // Emit BurnedAndTransferred event emit BurnedAndTransferred(from, to, amountAfterBurn, burnAmount); return super.transferFrom(from, to, amountAfterBurn); } /** * @notice Burns tokens manually. * @param amount Amount of tokens to burn. * @dev Requires the total supply to be above the manual burn threshold. */ function burn(uint256 amount) public { require(totalSupply() > disableBurnSupply, "Burn function is disabled below 21 million tokens"); _burn(msg.sender, amount); _totalBurned += amount; // Update the cumulative burned amount emit Burn(msg.sender, amount); // Emit burn event for transparency } /** * @notice Checks whether manual burns are disabled. * @return bool True if manual burns are disabled. */ function isManualBurnDisabled() public view returns (bool) { return totalSupply() <= disableBurnSupply; } /** * @notice Checks whether automatic burns are disabled. * @return bool True if automatic burns are disabled. */ function isAutoBurnDisabled() public view returns (bool) { return totalSupply() <= maxSupply; } /** * @notice Checks whether any burn mechanism is active. * @return bool True if burn mechanisms are active. */ function isBurnActive() public view returns (bool) { return totalSupply() > maxSupply; } /** * @notice Calculates the burn amount for a given transfer amount. * @param amount Transfer amount to calculate the burn for. * @return uint256 The burn amount. */ function _calculateBurnAmount(uint256 amount) internal pure returns (uint256) { return (amount * burnPercentage) / 100000; // Divide by 100,000 for basis points for 0.0420% burn rate } /** * @notice Returns the total amount of tokens burned. * @return uint256 Total burned tokens. */ function totalBurned() public view returns (uint256) { return _totalBurned; // Return the cumulative burned tokens } /** * @notice Returns the status of burn mechanisms (automatic and manual). * @dev Checks the total supply against the maxSupply and disableBurnSupply thresholds. * @return isAutoBurnActive True if automatic burn is active, false otherwise. * @return isManualBurnActive True if manual burn is active, false otherwise. */ function getBurnStatus() external view returns (bool isAutoBurnActive, bool isManualBurnActive) { isAutoBurnActive = totalSupply() > maxSupply; isManualBurnActive = totalSupply() > disableBurnSupply; } /** * @notice Returns the circulating supply of the token. * @dev Subtracts the total burned tokens from the total supply to calculate the circulating supply. * @return The circulating supply of the token. */ function circulatingSupply() external view returns (uint256) { return 4_200_000_000 * 10 ** decimals() - _totalBurned; } /** * @notice Calculates the percentage of total tokens that have been burned. * @dev Uses the initial supply of 4.2 billion tokens for the calculation. * @return The total burn percentage as a uint256. */ function totalBurnPercentage() external view returns (uint256) { return (_totalBurned * 100) / (4_200_000_000 * 10 ** decimals()); } /** * @notice Calculates the burn amount for a given transfer amount. * @dev Applies the burnPercentage to the transfer amount to determine the burn amount. * @param amount The amount of tokens to be transferred. * @return The burn amount based on the burn rate of 0.042%. */ function calculateBurnForTransfer(uint256 amount) external pure returns (uint256) { return (amount * burnPercentage) / 100000; // 0.042% burn rate } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ECDSAInvalidSignature","type":"error"},{"inputs":[{"internalType":"uint256","name":"length","type":"uint256"}],"name":"ECDSAInvalidSignatureLength","type":"error"},{"inputs":[{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"ECDSAInvalidSignatureS","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":[{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"ERC2612ExpiredSignature","type":"error"},{"inputs":[{"internalType":"address","name":"signer","type":"address"},{"internalType":"address","name":"owner","type":"address"}],"name":"ERC2612InvalidSigner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"currentNonce","type":"uint256"}],"name":"InvalidAccountNonce","type":"error"},{"inputs":[],"name":"InvalidShortString","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":[{"internalType":"string","name":"str","type":"string"}],"name":"StringTooLong","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Burn","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":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"burnAmount","type":"uint256"}],"name":"BurnedAndTransferred","type":"event"},{"anonymous":false,"inputs":[],"name":"EIP712DomainChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burnPercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"calculateBurnForTransfer","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"circulatingSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"eip712Domain","outputs":[{"internalType":"bytes1","name":"fields","type":"bytes1"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"version","type":"string"},{"internalType":"uint256","name":"chainId","type":"uint256"},{"internalType":"address","name":"verifyingContract","type":"address"},{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"uint256[]","name":"extensions","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBurnStatus","outputs":[{"internalType":"bool","name":"isAutoBurnActive","type":"bool"},{"internalType":"bool","name":"isManualBurnActive","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isAutoBurnDisabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isBurnActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isManualBurnDisabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","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":"totalBurnPercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalBurned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"amount","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":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6101c0604052602a610160526b0a466f316cd997cbec000000610180526a115eec47f6cf7e350000006101a05234801561003857600080fd5b503360405180604001604052806005815260200164424c415a4560d81b81525080604051806040016040528060018152602001603160f81b81525060405180604001604052806005815260200164424c415a4560d81b81525060405180604001604052806005815260200164424c415a4560d81b81525081600390816100be91906104b3565b5060046100cb82826104b3565b506100db915083905060056101ed565b610120526100ea8160066101ed565b61014052815160208084019190912060e052815190820120610100524660a05261017760e05161010051604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201529081019290925260608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b60805250503060c052506001600160a01b0381166101b057604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b6101b981610220565b50600160095560006101cd6012600a61066e565b6101db9063fa56ea00610684565b90506101e73382610272565b50610720565b600060208351101561020957610202836102ac565b905061021a565b8161021484826104b3565b5060ff90505b92915050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03821661029c5760405163ec442f0560e01b8152600060048201526024016101a7565b6102a8600083836102ea565b5050565b600080829050601f815111156102d7578260405163305a27a960e01b81526004016101a7919061069b565b80516102e2826106e9565b179392505050565b6001600160a01b03831661031557806002600082825461030a919061070d565b909155506103879050565b6001600160a01b038316600090815260208190526040902054818110156103685760405163391434e360e21b81526001600160a01b038516600482015260248101829052604481018390526064016101a7565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b0382166103a3576002805482900390556103c2565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161040791815260200190565b60405180910390a3505050565b634e487b7160e01b600052604160045260246000fd5b600181811c9082168061043e57607f821691505b60208210810361045e57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156104ae57806000526020600020601f840160051c8101602085101561048b5750805b601f840160051c820191505b818110156104ab5760008155600101610497565b50505b505050565b81516001600160401b038111156104cc576104cc610414565b6104e0816104da845461042a565b84610464565b6020601f82116001811461051457600083156104fc5750848201515b600019600385901b1c1916600184901b1784556104ab565b600084815260208120601f198516915b828110156105445787850151825560209485019460019092019101610524565b50848210156105625786840151600019600387901b60f8161c191681555b50505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b6001815b60018411156105c2578085048111156105a6576105a6610571565b60018416156105b457908102905b60019390931c92800261058b565b935093915050565b6000826105d95750600161021a565b816105e65750600061021a565b81600181146105fc576002811461060657610622565b600191505061021a565b60ff84111561061757610617610571565b50506001821b61021a565b5060208310610133831016604e8410600b8410161715610645575081810a61021a565b6106526000198484610587565b806000190482111561066657610666610571565b029392505050565b600061067d60ff8416836105ca565b9392505050565b808202811582820484141761021a5761021a610571565b602081526000825180602084015260005b818110156106c957602081860181015160408684010152016106ac565b506000604082850101526040601f19601f83011684010191505092915050565b8051602080830151919081101561045e5760001960209190910360031b1b16919050565b8082018082111561021a5761021a610571565b60805160a05160c05160e05161010051610120516101405161016051610180516101a0516118cc6107d36000396000818161062e01528181610805015261099001526000818161033401528181610494015281816104d10152818161083b0152818161096301526109c301526000818161039c0152610b7401526000610e4a01526000610e1d01526000610d4601526000610d1e01526000610c7901526000610ca301526000610ccd01526118cc6000f3fe608060405234801561001057600080fd5b50600436106101a95760003560e01c80638da5cb5b116100f9578063d505accf11610097578063dd62ed3e11610071578063dd62ed3e1461035e578063f01f20df14610397578063f2fde38b146103be578063fb506a68146103d157600080fd5b8063d505accf1461031c578063d5abeb011461032f578063d89135cd1461035657600080fd5b80639a33e239116100d35780639a33e239146102da578063a9059cbb146102e2578063aae732ad146102f5578063b1a6676e1461031457600080fd5b80638da5cb5b146102af5780639358928b146102ca57806395d89b41146102d257600080fd5b80633644e51511610166578063715018a611610140578063715018a61461027157806377f0787f146102795780637ecebe001461028157806384b0196e1461029457600080fd5b80633644e5151461022b57806342966c681461023357806370a082311461024857600080fd5b806306fdde03146101ae578063095ea7b3146101cc5780631592f8c1146101ef57806318160ddd146101f757806323b872dd14610209578063313ce5671461021c575b600080fd5b6101b66103e4565b6040516101c39190611490565b60405180910390f35b6101df6101da3660046114bf565b610476565b60405190151581526020016101c3565b6101df610490565b6002545b6040519081526020016101c3565b6101df6102173660046114e9565b6104c3565b604051601281526020016101c3565b6101fb61061d565b610246610241366004611526565b61062c565b005b6101fb61025636600461153f565b6001600160a01b031660009081526020819052604090205490565b610246610716565b6101fb61072a565b6101fb61028f36600461153f565b61075e565b61029c61077c565b6040516101c3979695949392919061155a565b6008546040516001600160a01b0390911681526020016101c3565b6101fb6107c2565b6101b66107f2565b6101df610801565b6101df6102f03660046114bf565b61082d565b6102fd61095e565b6040805192151583529015156020830152016101c3565b6101df6109bf565b61024661032a3660046115f2565b6109f1565b6101fb7f000000000000000000000000000000000000000000000000000000000000000081565b600a546101fb565b6101fb61036c366004611665565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6101fb7f000000000000000000000000000000000000000000000000000000000000000081565b6102466103cc36600461153f565b610b2b565b6101fb6103df366004611526565b610b69565b6060600380546103f390611698565b80601f016020809104026020016040519081016040528092919081815260200182805461041f90611698565b801561046c5780601f106104415761010080835404028352916020019161046c565b820191906000526020600020905b81548152906001019060200180831161044f57829003601f168201915b5050505050905090565b600033610484818585610ba3565b60019150505b92915050565b60007f00000000000000000000000000000000000000000000000000000000000000006104bc60025490565b1115905090565b60006104cd610bb5565b60007f00000000000000000000000000000000000000000000000000000000000000006104f960025490565b11156105995761050883610b69565b9050808310156105335760405162461bcd60e51b815260040161052a906116d2565b60405180910390fd5b8015610599576105438582610c0e565b80600a6000828254610555919061172b565b90915550506040518181526001600160a01b038616907fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59060200160405180910390a25b60006105a5828561173e565b9050846001600160a01b0316866001600160a01b03167fa37ca9a8ed27527ca16fd43fa00030addbf3acf792f87f43b4b861a251f5f40983856040516105f5929190918252602082015260400190565b60405180910390a3610608868683610c48565b925050506106166001600955565b9392505050565b6000610627610c6c565b905090565b7f000000000000000000000000000000000000000000000000000000000000000061065660025490565b116106bd5760405162461bcd60e51b815260206004820152603160248201527f4275726e2066756e6374696f6e2069732064697361626c65642062656c6f77206044820152703231206d696c6c696f6e20746f6b656e7360781b606482015260840161052a565b6106c73382610c0e565b80600a60008282546106d9919061172b565b909155505060405181815233907fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59060200160405180910390a250565b61071e610d97565b6107286000610dc4565b565b60006107386012600a611838565b6107469063fa56ea00611847565b600a54610754906064611847565b610627919061185e565b6001600160a01b03811660009081526007602052604081205461048a565b600060608060008060006060610790610e16565b610798610e43565b60408051600080825260208201909252600f60f81b9b939a50919850469750309650945092509050565b6000600a546107cf601290565b6107da90600a611838565b6107e89063fa56ea00611847565b610627919061173e565b6060600480546103f390611698565b60007f00000000000000000000000000000000000000000000000000000000000000006104bc60025490565b6000610837610bb5565b60007f000000000000000000000000000000000000000000000000000000000000000061086360025490565b11156108f15761087283610b69565b9050808310156108945760405162461bcd60e51b815260040161052a906116d2565b80156108f1576108a43382610c0e565b80600a60008282546108b6919061172b565b909155505060405181815233907fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59060200160405180910390a25b60006108fd828561173e565b60408051828152602081018590529192506001600160a01b0387169133917fa37ca9a8ed27527ca16fd43fa00030addbf3acf792f87f43b4b861a251f5f409910160405180910390a36109508582610e70565b9250505061048a6001600955565b6000807f000000000000000000000000000000000000000000000000000000000000000061098b60025490565b1191507f00000000000000000000000000000000000000000000000000000000000000006109b860025490565b1190509091565b60007f00000000000000000000000000000000000000000000000000000000000000006109eb60025490565b11905090565b83421115610a155760405163313c898160e11b81526004810185905260240161052a565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9888888610a628c6001600160a01b0316600090815260076020526040902080546001810190915590565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090506000610abd82610e7e565b90506000610acd82878787610eab565b9050896001600160a01b0316816001600160a01b031614610b14576040516325c0072360e11b81526001600160a01b0380831660048301528b16602482015260440161052a565b610b1f8a8a8a610ba3565b50505050505050505050565b610b33610d97565b6001600160a01b038116610b5d57604051631e4fbdf760e01b81526000600482015260240161052a565b610b6681610dc4565b50565b6000620186a0610b997f000000000000000000000000000000000000000000000000000000000000000084611847565b61048a919061185e565b610bb08383836001610ed9565b505050565b600260095403610c075760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161052a565b6002600955565b6001600160a01b038216610c3857604051634b637e8f60e11b81526000600482015260240161052a565b610c4482600083610faf565b5050565b600033610c568582856110d9565b610c61858585611151565b506001949350505050565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148015610cc557507f000000000000000000000000000000000000000000000000000000000000000046145b15610cef57507f000000000000000000000000000000000000000000000000000000000000000090565b610627604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527f0000000000000000000000000000000000000000000000000000000000000000918101919091527f000000000000000000000000000000000000000000000000000000000000000060608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b6008546001600160a01b031633146107285760405163118cdaa760e01b815233600482015260240161052a565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60606106277f000000000000000000000000000000000000000000000000000000000000000060056111b0565b60606106277f000000000000000000000000000000000000000000000000000000000000000060066111b0565b600033610484818585611151565b600061048a610e8b610c6c565b8360405161190160f01b8152600281019290925260228201526042902090565b600080600080610ebd8888888861125b565b925092509250610ecd828261132a565b50909695505050505050565b6001600160a01b038416610f035760405163e602df0560e01b81526000600482015260240161052a565b6001600160a01b038316610f2d57604051634a1406b160e11b81526000600482015260240161052a565b6001600160a01b0380851660009081526001602090815260408083209387168352929052208290558015610fa957826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610fa091815260200190565b60405180910390a35b50505050565b6001600160a01b038316610fda578060026000828254610fcf919061172b565b9091555061104c9050565b6001600160a01b0383166000908152602081905260409020548181101561102d5760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640161052a565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b03821661106857600280548290039055611087565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516110cc91815260200190565b60405180910390a3505050565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114610fa9578181101561114257604051637dc7a0d960e11b81526001600160a01b0384166004820152602481018290526044810183905260640161052a565b610fa984848484036000610ed9565b6001600160a01b03831661117b57604051634b637e8f60e11b81526000600482015260240161052a565b6001600160a01b0382166111a55760405163ec442f0560e01b81526000600482015260240161052a565b610bb0838383610faf565b606060ff83146111ca576111c3836113e3565b905061048a565b8180546111d690611698565b80601f016020809104026020016040519081016040528092919081815260200182805461120290611698565b801561124f5780601f106112245761010080835404028352916020019161124f565b820191906000526020600020905b81548152906001019060200180831161123257829003601f168201915b5050505050905061048a565b600080807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156112965750600091506003905082611320565b604080516000808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156112ea573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661131657506000925060019150829050611320565b9250600091508190505b9450945094915050565b600082600381111561133e5761133e611880565b03611347575050565b600182600381111561135b5761135b611880565b036113795760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561138d5761138d611880565b036113ae5760405163fce698f760e01b81526004810182905260240161052a565b60038260038111156113c2576113c2611880565b03610c44576040516335e2f38360e21b81526004810182905260240161052a565b606060006113f083611422565b604080516020808252818301909252919250600091906020820181803683375050509182525060208101929092525090565b600060ff8216601f81111561048a57604051632cd44ac360e21b815260040160405180910390fd5b6000815180845260005b8181101561147057602081850181015186830182015201611454565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000610616602083018461144a565b80356001600160a01b03811681146114ba57600080fd5b919050565b600080604083850312156114d257600080fd5b6114db836114a3565b946020939093013593505050565b6000806000606084860312156114fe57600080fd5b611507846114a3565b9250611515602085016114a3565b929592945050506040919091013590565b60006020828403121561153857600080fd5b5035919050565b60006020828403121561155157600080fd5b610616826114a3565b60ff60f81b8816815260e06020820152600061157960e083018961144a565b828103604084015261158b818961144a565b606084018890526001600160a01b038716608085015260a0840186905283810360c08501528451808252602080870193509091019060005b818110156115e15783518352602093840193909201916001016115c3565b50909b9a5050505050505050505050565b600080600080600080600060e0888a03121561160d57600080fd5b611616886114a3565b9650611624602089016114a3565b95506040880135945060608801359350608088013560ff8116811461164857600080fd5b9699959850939692959460a0840135945060c09093013592915050565b6000806040838503121561167857600080fd5b611681836114a3565b915061168f602084016114a3565b90509250929050565b600181811c908216806116ac57607f821691505b6020821081036116cc57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526023908201527f4275726e20616d6f756e742065786365656473207472616e7366657220616d6f6040820152621d5b9d60ea1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b8082018082111561048a5761048a611715565b8181038181111561048a5761048a611715565b6001815b600184111561178c5780850481111561177057611770611715565b600184161561177e57908102905b60019390931c928002611755565b935093915050565b6000826117a35750600161048a565b816117b05750600061048a565b81600181146117c657600281146117d0576117ec565b600191505061048a565b60ff8411156117e1576117e1611715565b50506001821b61048a565b5060208310610133831016604e8410600b841016171561180f575081810a61048a565b61181c6000198484611751565b806000190482111561183057611830611715565b029392505050565b600061061660ff841683611794565b808202811582820484141761048a5761048a611715565b60008261187b57634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220eed356f7d67d658e5e6004d5158d3b5c708387506a215c3061a9f9fea654ce3864736f6c634300081a0033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101a95760003560e01c80638da5cb5b116100f9578063d505accf11610097578063dd62ed3e11610071578063dd62ed3e1461035e578063f01f20df14610397578063f2fde38b146103be578063fb506a68146103d157600080fd5b8063d505accf1461031c578063d5abeb011461032f578063d89135cd1461035657600080fd5b80639a33e239116100d35780639a33e239146102da578063a9059cbb146102e2578063aae732ad146102f5578063b1a6676e1461031457600080fd5b80638da5cb5b146102af5780639358928b146102ca57806395d89b41146102d257600080fd5b80633644e51511610166578063715018a611610140578063715018a61461027157806377f0787f146102795780637ecebe001461028157806384b0196e1461029457600080fd5b80633644e5151461022b57806342966c681461023357806370a082311461024857600080fd5b806306fdde03146101ae578063095ea7b3146101cc5780631592f8c1146101ef57806318160ddd146101f757806323b872dd14610209578063313ce5671461021c575b600080fd5b6101b66103e4565b6040516101c39190611490565b60405180910390f35b6101df6101da3660046114bf565b610476565b60405190151581526020016101c3565b6101df610490565b6002545b6040519081526020016101c3565b6101df6102173660046114e9565b6104c3565b604051601281526020016101c3565b6101fb61061d565b610246610241366004611526565b61062c565b005b6101fb61025636600461153f565b6001600160a01b031660009081526020819052604090205490565b610246610716565b6101fb61072a565b6101fb61028f36600461153f565b61075e565b61029c61077c565b6040516101c3979695949392919061155a565b6008546040516001600160a01b0390911681526020016101c3565b6101fb6107c2565b6101b66107f2565b6101df610801565b6101df6102f03660046114bf565b61082d565b6102fd61095e565b6040805192151583529015156020830152016101c3565b6101df6109bf565b61024661032a3660046115f2565b6109f1565b6101fb7f00000000000000000000000000000000000000000a466f316cd997cbec00000081565b600a546101fb565b6101fb61036c366004611665565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6101fb7f000000000000000000000000000000000000000000000000000000000000002a81565b6102466103cc36600461153f565b610b2b565b6101fb6103df366004611526565b610b69565b6060600380546103f390611698565b80601f016020809104026020016040519081016040528092919081815260200182805461041f90611698565b801561046c5780601f106104415761010080835404028352916020019161046c565b820191906000526020600020905b81548152906001019060200180831161044f57829003601f168201915b5050505050905090565b600033610484818585610ba3565b60019150505b92915050565b60007f00000000000000000000000000000000000000000a466f316cd997cbec0000006104bc60025490565b1115905090565b60006104cd610bb5565b60007f00000000000000000000000000000000000000000a466f316cd997cbec0000006104f960025490565b11156105995761050883610b69565b9050808310156105335760405162461bcd60e51b815260040161052a906116d2565b60405180910390fd5b8015610599576105438582610c0e565b80600a6000828254610555919061172b565b90915550506040518181526001600160a01b038616907fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59060200160405180910390a25b60006105a5828561173e565b9050846001600160a01b0316866001600160a01b03167fa37ca9a8ed27527ca16fd43fa00030addbf3acf792f87f43b4b861a251f5f40983856040516105f5929190918252602082015260400190565b60405180910390a3610608868683610c48565b925050506106166001600955565b9392505050565b6000610627610c6c565b905090565b7f000000000000000000000000000000000000000000115eec47f6cf7e3500000061065660025490565b116106bd5760405162461bcd60e51b815260206004820152603160248201527f4275726e2066756e6374696f6e2069732064697361626c65642062656c6f77206044820152703231206d696c6c696f6e20746f6b656e7360781b606482015260840161052a565b6106c73382610c0e565b80600a60008282546106d9919061172b565b909155505060405181815233907fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59060200160405180910390a250565b61071e610d97565b6107286000610dc4565b565b60006107386012600a611838565b6107469063fa56ea00611847565b600a54610754906064611847565b610627919061185e565b6001600160a01b03811660009081526007602052604081205461048a565b600060608060008060006060610790610e16565b610798610e43565b60408051600080825260208201909252600f60f81b9b939a50919850469750309650945092509050565b6000600a546107cf601290565b6107da90600a611838565b6107e89063fa56ea00611847565b610627919061173e565b6060600480546103f390611698565b60007f000000000000000000000000000000000000000000115eec47f6cf7e350000006104bc60025490565b6000610837610bb5565b60007f00000000000000000000000000000000000000000a466f316cd997cbec00000061086360025490565b11156108f15761087283610b69565b9050808310156108945760405162461bcd60e51b815260040161052a906116d2565b80156108f1576108a43382610c0e565b80600a60008282546108b6919061172b565b909155505060405181815233907fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59060200160405180910390a25b60006108fd828561173e565b60408051828152602081018590529192506001600160a01b0387169133917fa37ca9a8ed27527ca16fd43fa00030addbf3acf792f87f43b4b861a251f5f409910160405180910390a36109508582610e70565b9250505061048a6001600955565b6000807f00000000000000000000000000000000000000000a466f316cd997cbec00000061098b60025490565b1191507f000000000000000000000000000000000000000000115eec47f6cf7e350000006109b860025490565b1190509091565b60007f00000000000000000000000000000000000000000a466f316cd997cbec0000006109eb60025490565b11905090565b83421115610a155760405163313c898160e11b81526004810185905260240161052a565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9888888610a628c6001600160a01b0316600090815260076020526040902080546001810190915590565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090506000610abd82610e7e565b90506000610acd82878787610eab565b9050896001600160a01b0316816001600160a01b031614610b14576040516325c0072360e11b81526001600160a01b0380831660048301528b16602482015260440161052a565b610b1f8a8a8a610ba3565b50505050505050505050565b610b33610d97565b6001600160a01b038116610b5d57604051631e4fbdf760e01b81526000600482015260240161052a565b610b6681610dc4565b50565b6000620186a0610b997f000000000000000000000000000000000000000000000000000000000000002a84611847565b61048a919061185e565b610bb08383836001610ed9565b505050565b600260095403610c075760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161052a565b6002600955565b6001600160a01b038216610c3857604051634b637e8f60e11b81526000600482015260240161052a565b610c4482600083610faf565b5050565b600033610c568582856110d9565b610c61858585611151565b506001949350505050565b6000306001600160a01b037f00000000000000000000000063cdf20e2169cc52cc27455735bf2d870b8105fa16148015610cc557507f000000000000000000000000000000000000000000000000000000000000009246145b15610cef57507f10a723a1d29fc3f6c90a952a5a143d56e050e6fc2a134721e2342582596a0ecf90565b610627604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527fb66d5c77d8a5b64ce295bb8c961818df85832f87f422bca9d6121a3a57c88fc3918101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b6008546001600160a01b031633146107285760405163118cdaa760e01b815233600482015260240161052a565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60606106277f424c415a4500000000000000000000000000000000000000000000000000000560056111b0565b60606106277f310000000000000000000000000000000000000000000000000000000000000160066111b0565b600033610484818585611151565b600061048a610e8b610c6c565b8360405161190160f01b8152600281019290925260228201526042902090565b600080600080610ebd8888888861125b565b925092509250610ecd828261132a565b50909695505050505050565b6001600160a01b038416610f035760405163e602df0560e01b81526000600482015260240161052a565b6001600160a01b038316610f2d57604051634a1406b160e11b81526000600482015260240161052a565b6001600160a01b0380851660009081526001602090815260408083209387168352929052208290558015610fa957826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610fa091815260200190565b60405180910390a35b50505050565b6001600160a01b038316610fda578060026000828254610fcf919061172b565b9091555061104c9050565b6001600160a01b0383166000908152602081905260409020548181101561102d5760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640161052a565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b03821661106857600280548290039055611087565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516110cc91815260200190565b60405180910390a3505050565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114610fa9578181101561114257604051637dc7a0d960e11b81526001600160a01b0384166004820152602481018290526044810183905260640161052a565b610fa984848484036000610ed9565b6001600160a01b03831661117b57604051634b637e8f60e11b81526000600482015260240161052a565b6001600160a01b0382166111a55760405163ec442f0560e01b81526000600482015260240161052a565b610bb0838383610faf565b606060ff83146111ca576111c3836113e3565b905061048a565b8180546111d690611698565b80601f016020809104026020016040519081016040528092919081815260200182805461120290611698565b801561124f5780601f106112245761010080835404028352916020019161124f565b820191906000526020600020905b81548152906001019060200180831161123257829003601f168201915b5050505050905061048a565b600080807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156112965750600091506003905082611320565b604080516000808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156112ea573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661131657506000925060019150829050611320565b9250600091508190505b9450945094915050565b600082600381111561133e5761133e611880565b03611347575050565b600182600381111561135b5761135b611880565b036113795760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561138d5761138d611880565b036113ae5760405163fce698f760e01b81526004810182905260240161052a565b60038260038111156113c2576113c2611880565b03610c44576040516335e2f38360e21b81526004810182905260240161052a565b606060006113f083611422565b604080516020808252818301909252919250600091906020820181803683375050509182525060208101929092525090565b600060ff8216601f81111561048a57604051632cd44ac360e21b815260040160405180910390fd5b6000815180845260005b8181101561147057602081850181015186830182015201611454565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000610616602083018461144a565b80356001600160a01b03811681146114ba57600080fd5b919050565b600080604083850312156114d257600080fd5b6114db836114a3565b946020939093013593505050565b6000806000606084860312156114fe57600080fd5b611507846114a3565b9250611515602085016114a3565b929592945050506040919091013590565b60006020828403121561153857600080fd5b5035919050565b60006020828403121561155157600080fd5b610616826114a3565b60ff60f81b8816815260e06020820152600061157960e083018961144a565b828103604084015261158b818961144a565b606084018890526001600160a01b038716608085015260a0840186905283810360c08501528451808252602080870193509091019060005b818110156115e15783518352602093840193909201916001016115c3565b50909b9a5050505050505050505050565b600080600080600080600060e0888a03121561160d57600080fd5b611616886114a3565b9650611624602089016114a3565b95506040880135945060608801359350608088013560ff8116811461164857600080fd5b9699959850939692959460a0840135945060c09093013592915050565b6000806040838503121561167857600080fd5b611681836114a3565b915061168f602084016114a3565b90509250929050565b600181811c908216806116ac57607f821691505b6020821081036116cc57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526023908201527f4275726e20616d6f756e742065786365656473207472616e7366657220616d6f6040820152621d5b9d60ea1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b8082018082111561048a5761048a611715565b8181038181111561048a5761048a611715565b6001815b600184111561178c5780850481111561177057611770611715565b600184161561177e57908102905b60019390931c928002611755565b935093915050565b6000826117a35750600161048a565b816117b05750600061048a565b81600181146117c657600281146117d0576117ec565b600191505061048a565b60ff8411156117e1576117e1611715565b50506001821b61048a565b5060208310610133831016604e8410600b841016171561180f575081810a61048a565b61181c6000198484611751565b806000190482111561183057611830611715565b029392505050565b600061061660ff841683611794565b808202811582820484141761048a5761048a611715565b60008261187b57634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220eed356f7d67d658e5e6004d5158d3b5c708387506a215c3061a9f9fea654ce3864736f6c634300081a0033
Deployed Bytecode Sourcemap
84961:7452:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13210:91;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;15503:190;;;;;;:::i;:::-;;:::i;:::-;;;1292:14:1;;1285:22;1267:41;;1255:2;1240:18;15503:190:0;1127:187:1;89568:109:0;;;:::i;14312:99::-;14391:12;;14312:99;;;1465:25:1;;;1453:2;1438:18;14312:99:0;1319:177:1;87775:862:0;;;;;;:::i;:::-;;:::i;14163:84::-;;;14237:2;2022:36:1;;2010:2;1995:18;14163:84:0;1880:184:1;78025:114:0;;;:::i;88828:335::-;;;;;;:::i;:::-;;:::i;:::-;;14474:118;;;;;;:::i;:::-;-1:-1:-1;;;;;14566:18:0;14539:7;14566:18;;;;;;;;;;;;14474:118;80738:103;;;:::i;91786:146::-;;;:::i;77767:145::-;;;;;;:::i;:::-;;:::i;72490:580::-;;;:::i;:::-;;;;;;;;;;;;;:::i;80063:87::-;80136:6;;80063:87;;-1:-1:-1;;;;;80136:6:0;;;4062:51:1;;4050:2;4035:18;80063:87:0;3916:203:1;91413:134:0;;;:::i;13420:95::-;;;:::i;89303:119::-;;;:::i;86626:856::-;;;;;;:::i;:::-;;:::i;90947:224::-;;;:::i;:::-;;;;4311:14:1;;4304:22;4286:41;;4370:14;;4363:22;4358:2;4343:18;;4336:50;4259:18;90947:224:0;4124:268:1;89821:102:0;;;:::i;77013:695::-;;;;;;:::i;:::-;;:::i;85288:52::-;;;;;90455:130;90526:12;;90455:130;;15042:142;;;;;;:::i;:::-;-1:-1:-1;;;;;15149:18:0;;;15122:7;15149:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;15042:142;85111:44;;;;;80996:220;;;;;;:::i;:::-;;:::i;92246:162::-;;;;;;:::i;:::-;;:::i;13210:91::-;13255:13;13288:5;13281:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13210:91;:::o;15503:190::-;15576:4;4357:10;15632:31;4357:10;15648:7;15657:5;15632:8;:31::i;:::-;15681:4;15674:11;;;15503:190;;;;;:::o;89568:109::-;89619:4;89660:9;89643:13;14391:12;;;14312:99;89643:13;:26;;89636:33;;89568:109;:::o;87775:862::-;87877:4;83892:21;:19;:21::i;:::-;87894:18:::1;88002:9;87986:13;14391:12:::0;;;14312:99;87986:13:::1;:25;87982:416;;;88041:28;88062:6;88041:20;:28::i;:::-;88028:41;;88102:10;88092:6;:20;;88084:68;;;;-1:-1:-1::0;;;88084:68:0::1;;;;;;;:::i;:::-;;;;;;;;;88167:14:::0;;88163:228:::1;;88198:23;88204:4;88210:10;88198:5;:23::i;:::-;88252:10;88236:12;;:26;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;88321:22:0::1;::::0;1465:25:1;;;-1:-1:-1;;;;;88321:22:0;::::1;::::0;::::1;::::0;1453:2:1;1438:18;88321:22:0::1;;;;;;;88163:228;88410:23;88436:19;88445:10:::0;88436:6;:19:::1;:::i;:::-;88410:45;;88536:2;-1:-1:-1::0;;;;;88509:59:0::1;88530:4;-1:-1:-1::0;;;;;88509:59:0::1;;88540:15;88557:10;88509:59;;;;;;6928:25:1::0;;;6984:2;6969:18;;6962:34;6916:2;6901:18;;6754:248;88509:59:0::1;;;;;;;;88584:45;88603:4;88609:2;88613:15;88584:18;:45::i;:::-;88577:52;;;;83936:20:::0;83330:1;84456:7;:22;84273:213;83936:20;87775:862;;;;;:::o;78025:114::-;78084:7;78111:20;:18;:20::i;:::-;78104:27;;78025:114;:::o;88828:335::-;88900:17;88884:13;14391:12;;;14312:99;88884:13;:33;88876:95;;;;-1:-1:-1;;;88876:95:0;;7209:2:1;88876:95:0;;;7191:21:1;7248:2;7228:18;;;7221:30;7287:34;7267:18;;;7260:62;-1:-1:-1;;;7338:18:1;;;7331:47;7395:19;;88876:95:0;7007:413:1;88876:95:0;88982:25;88988:10;89000:6;88982:5;:25::i;:::-;89034:6;89018:12;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;89095:24:0;;1465:25:1;;;89100:10:0;;89095:24;;1453:2:1;1438:18;89095:24:0;;;;;;;88828:335;:::o;80738:103::-;79949:13;:11;:13::i;:::-;80803:30:::1;80830:1;80803:18;:30::i;:::-;80738:103::o:0;91786:146::-;91840:7;91907:16;14237:2;91907;:16;:::i;:::-;91891:32;;:13;:32;:::i;:::-;91868:12;;:18;;91883:3;91868:18;:::i;:::-;91867:57;;;;:::i;77767:145::-;-1:-1:-1;;;;;74645:14:0;;77858:7;74645:14;;;:7;:14;;;;;;77885:19;74558:109;72490:580;72593:13;72621:18;72654:21;72690:15;72720:25;72760:12;72787:27;72895:13;:11;:13::i;:::-;72923:16;:14;:16::i;:::-;73035;;;73018:1;73035:16;;;;;;;;;-1:-1:-1;;;72842:220:0;;;-1:-1:-1;72842:220:0;;-1:-1:-1;72954:13:0;;-1:-1:-1;72990:4:0;;-1:-1:-1;73018:1:0;-1:-1:-1;73035:16:0;-1:-1:-1;72842:220:0;-1:-1:-1;72490:580:0:o;91413:134::-;91465:7;91527:12;;91514:10;14237:2;;14163:84;91514:10;91508:16;;:2;:16;:::i;:::-;91492:32;;:13;:32;:::i;:::-;:47;;;;:::i;13420:95::-;13467:13;13500:7;13493:14;;;;;:::i;89303:119::-;89356:4;89397:17;89380:13;14391:12;;;14312:99;86626:856;86710:4;83892:21;:19;:21::i;:::-;86727:18:::1;86836:9;86820:13;14391:12:::0;;;14312:99;86820:13:::1;:25;86816:429;;;86873:28;86894:6;86873:20;:28::i;:::-;86860:41;;86932:10;86922:6;:20;;86914:68;;;;-1:-1:-1::0;;;86914:68:0::1;;;;;;;:::i;:::-;86998:14:::0;;86994:244:::1;;87029:31;4357:10:::0;87049::::1;87029:5;:31::i;:::-;87091:10;87075:12;;:26;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;87160:30:0::1;::::0;1465:25:1;;;4357:10:0;;87160:30:::1;::::0;1453:2:1;1438:18;87160:30:0::1;;;;;;;86994:244;87257:23;87283:19;87292:10:::0;87283:6;:19:::1;:::i;:::-;87356:67;::::0;;6928:25:1;;;6984:2;6969:18;;6962:34;;;87257:45:0;;-1:-1:-1;;;;;;87356:67:0;::::1;::::0;4357:10;;87356:67:::1;::::0;6901:18:1;87356:67:0::1;;;;;;;87439:35;87454:2;87458:15;87439:14;:35::i;:::-;87432:42;;;;83936:20:::0;83330:1;84456:7;:22;84273:213;90947:224;90995:21;91018:23;91089:9;91073:13;14391:12;;;14312:99;91073:13;:25;91054:44;;91146:17;91130:13;14391:12;;;14312:99;91130:13;:33;91109:54;;90947:224;;:::o;89821:102::-;89866:4;89906:9;89890:13;14391:12;;;14312:99;89890:13;:25;89883:32;;89821:102;:::o;77013:695::-;77243:8;77225:15;:26;77221:99;;;77275:33;;-1:-1:-1;;;77275:33:0;;;;;1465:25:1;;;1438:18;;77275:33:0;1319:177:1;77221:99:0;77332:18;76333:95;77391:5;77398:7;77407:5;77414:16;77424:5;-1:-1:-1;;;;;75155:14:0;74848:7;75155:14;;;:7;:14;;;;;:16;;;;;;;;;74788:402;77414:16;77363:78;;;;;;9671:25:1;;;;-1:-1:-1;;;;;9732:32:1;;;9712:18;;;9705:60;9801:32;;;;9781:18;;;9774:60;9850:18;;;9843:34;9893:19;;;9886:35;9937:19;;;9930:35;;;9643:19;;77363:78:0;;;;;;;;;;;;77353:89;;;;;;77332:110;;77455:12;77470:28;77487:10;77470:16;:28::i;:::-;77455:43;;77511:14;77528:28;77542:4;77548:1;77551;77554;77528:13;:28::i;:::-;77511:45;;77581:5;-1:-1:-1;;;;;77571:15:0;:6;-1:-1:-1;;;;;77571:15:0;;77567:90;;77610:35;;-1:-1:-1;;;77610:35:0;;-1:-1:-1;;;;;10168:32:1;;;77610:35:0;;;10150:51:1;10237:32;;10217:18;;;10210:60;10123:18;;77610:35:0;9976:300:1;77567:90:0;77669:31;77678:5;77685:7;77694:5;77669:8;:31::i;:::-;77210:498;;;77013:695;;;;;;;:::o;80996:220::-;79949:13;:11;:13::i;:::-;-1:-1:-1;;;;;81081:22:0;::::1;81077:93;;81127:31;::::0;-1:-1:-1;;;81127:31:0;;81155:1:::1;81127:31;::::0;::::1;4062:51:1::0;4035:18;;81127:31:0::1;3916:203:1::0;81077:93:0::1;81180:28;81199:8;81180:18;:28::i;:::-;80996:220:::0;:::o;92246:162::-;92319:7;92374:6;92347:23;92356:14;92347:6;:23;:::i;:::-;92346:34;;;;:::i;20330:130::-;20415:37;20424:5;20431:7;20440:5;20447:4;20415:8;:37::i;:::-;20330:130;;;:::o;83972:293::-;83374:1;84106:7;;:19;84098:63;;;;-1:-1:-1;;;84098:63:0;;10483:2:1;84098:63:0;;;10465:21:1;10522:2;10502:18;;;10495:30;10561:33;10541:18;;;10534:61;10612:18;;84098:63:0;10281:355:1;84098:63:0;83374:1;84239:7;:18;83972:293::o;19566:211::-;-1:-1:-1;;;;;19637:21:0;;19633:91;;19682:30;;-1:-1:-1;;;19682:30:0;;19709:1;19682:30;;;4062:51:1;4035:18;;19682:30:0;3916:203:1;19633:91:0;19734:35;19742:7;19759:1;19763:5;19734:7;:35::i;:::-;19566:211;;:::o;16271:249::-;16358:4;4357:10;16416:37;16432:4;4357:10;16447:5;16416:15;:37::i;:::-;16464:26;16474:4;16480:2;16484:5;16464:9;:26::i;:::-;-1:-1:-1;16508:4:0;;16271:249;-1:-1:-1;;;;16271:249:0:o;71157:268::-;71210:7;71242:4;-1:-1:-1;;;;;71251:11:0;71234:28;;:63;;;;;71283:14;71266:13;:31;71234:63;71230:188;;;-1:-1:-1;71321:22:0;;71157:268::o;71230:188::-;71383:23;71525:80;;;69349:95;71525:80;;;11250:25:1;71547:11:0;11291:18:1;;;11284:34;;;;71560:14:0;11334:18:1;;;11327:34;71576:13:0;11377:18:1;;;11370:34;71599:4:0;11420:19:1;;;11413:61;71488:7:0;;11222:19:1;;71525:80:0;;;;;;;;;;;;71515:91;;;;;;71508:98;;71433:181;;80228:166;80136:6;;-1:-1:-1;;;;;80136:6:0;4357:10;80288:23;80284:103;;80335:40;;-1:-1:-1;;;80335:40:0;;4357:10;80335:40;;;4062:51:1;4035:18;;80335:40:0;3916:203:1;81376:191:0;81469:6;;;-1:-1:-1;;;;;81486:17:0;;;-1:-1:-1;;;;;;81486:17:0;;;;;;;81519:40;;81469:6;;;81486:17;81469:6;;81519:40;;81450:16;;81519:40;81439:128;81376:191;:::o;73399:128::-;73445:13;73478:41;:5;73505:13;73478:26;:41::i;73862:137::-;73911:13;73944:47;:8;73974:16;73944:29;:47::i;14797:182::-;14866:4;4357:10;14922:27;4357:10;14939:2;14943:5;14922:9;:27::i;72256:178::-;72333:7;72360:66;72393:20;:18;:20::i;:::-;72415:10;57974:4;57968:11;-1:-1:-1;;;57993:23:0;;58046:4;58037:14;;58030:39;;;;58099:4;58090:14;;58083:34;58156:4;58141:20;;;57769:410;33442:264;33527:7;33548:17;33567:18;33587:16;33607:25;33618:4;33624:1;33627;33630;33607:10;:25::i;:::-;33547:85;;;;;;33643:28;33655:5;33662:8;33643:11;:28::i;:::-;-1:-1:-1;33689:9:0;;33442:264;-1:-1:-1;;;;;;33442:264:0:o;21311:443::-;-1:-1:-1;;;;;21424:19:0;;21420:91;;21467:32;;-1:-1:-1;;;21467:32:0;;21496:1;21467:32;;;4062:51:1;4035:18;;21467:32:0;3916:203:1;21420:91:0;-1:-1:-1;;;;;21525:21:0;;21521:92;;21570:31;;-1:-1:-1;;;21570:31:0;;21598:1;21570:31;;;4062:51:1;4035:18;;21570:31:0;3916:203:1;21521:92:0;-1:-1:-1;;;;;21623:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;:35;;;21669:78;;;;21720:7;-1:-1:-1;;;;;21704:31:0;21713:5;-1:-1:-1;;;;;21704:31:0;;21729:5;21704:31;;;;1465:25:1;;1453:2;1438:18;;1319:177;21704:31:0;;;;;;;;21669:78;21311:443;;;;:::o;17537:1135::-;-1:-1:-1;;;;;17627:18:0;;17623:552;;17781:5;17765:12;;:21;;;;;;;:::i;:::-;;;;-1:-1:-1;17623:552:0;;-1:-1:-1;17623:552:0;;-1:-1:-1;;;;;17841:15:0;;17819:19;17841:15;;;;;;;;;;;17875:19;;;17871:117;;;17922:50;;-1:-1:-1;;;17922:50:0;;-1:-1:-1;;;;;10861:32:1;;17922:50:0;;;10843:51:1;10910:18;;;10903:34;;;10953:18;;;10946:34;;;10816:18;;17922:50:0;10641:345:1;17871:117:0;-1:-1:-1;;;;;18111:15:0;;:9;:15;;;;;;;;;;18129:19;;;;18111:37;;17623:552;-1:-1:-1;;;;;18191:16:0;;18187:435;;18357:12;:21;;;;;;;18187:435;;;-1:-1:-1;;;;;18573:13:0;;:9;:13;;;;;;;;;;:22;;;;;;18187:435;18654:2;-1:-1:-1;;;;;18639:25:0;18648:4;-1:-1:-1;;;;;18639:25:0;;18658:5;18639:25;;;;1465::1;;1453:2;1438:18;;1319:177;18639:25:0;;;;;;;;17537:1135;;;:::o;22046:487::-;-1:-1:-1;;;;;15149:18:0;;;22146:24;15149:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;-1:-1:-1;;22213:37:0;;22209:317;;22290:5;22271:16;:24;22267:132;;;22323:60;;-1:-1:-1;;;22323:60:0;;-1:-1:-1;;;;;10861:32:1;;22323:60:0;;;10843:51:1;10910:18;;;10903:34;;;10953:18;;;10946:34;;;10816:18;;22323:60:0;10641:345:1;22267:132:0;22442:57;22451:5;22458:7;22486:5;22467:16;:24;22493:5;22442:8;:57::i;16905:308::-;-1:-1:-1;;;;;16989:18:0;;16985:88;;17031:30;;-1:-1:-1;;;17031:30:0;;17058:1;17031:30;;;4062:51:1;4035:18;;17031:30:0;3916:203:1;16985:88:0;-1:-1:-1;;;;;17087:16:0;;17083:88;;17127:32;;-1:-1:-1;;;17127:32:0;;17156:1;17127:32;;;4062:51:1;4035:18;;17127:32:0;3916:203:1;17083:88:0;17181:24;17189:4;17195:2;17199:5;17181:7;:24::i;65688:273::-;65782:13;63634:66;65812:46;;65808:146;;65882:15;65891:5;65882:8;:15::i;:::-;65875:22;;;;65808:146;65937:5;65930:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31747:1556;31878:7;;;32821:66;32808:79;;32804:166;;;-1:-1:-1;32920:1:0;;-1:-1:-1;32924:30:0;;-1:-1:-1;32956:1:0;32904:54;;32804:166;33084:24;;;33067:14;33084:24;;;;;;;;;11712:25:1;;;11785:4;11773:17;;11753:18;;;11746:45;;;;11807:18;;;11800:34;;;11850:18;;;11843:34;;;33084:24:0;;11684:19:1;;33084:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;33084:24:0;;-1:-1:-1;;33084:24:0;;;-1:-1:-1;;;;;;;33123:20:0;;33119:115;;-1:-1:-1;33176:1:0;;-1:-1:-1;33180:29:0;;-1:-1:-1;33176:1:0;;-1:-1:-1;33160:62:0;;33119:115;33254:6;-1:-1:-1;33262:20:0;;-1:-1:-1;33262:20:0;;-1:-1:-1;31747:1556:0;;;;;;;;;:::o;33844:542::-;33940:20;33931:5;:29;;;;;;;;:::i;:::-;;33927:452;;33844:542;;:::o;33927:452::-;34038:29;34029:5;:38;;;;;;;;:::i;:::-;;34025:354;;34091:23;;-1:-1:-1;;;34091:23:0;;;;;;;;;;;34025:354;34145:35;34136:5;:44;;;;;;;;:::i;:::-;;34132:247;;34204:46;;-1:-1:-1;;;34204:46:0;;;;;1465:25:1;;;1438:18;;34204:46:0;1319:177:1;34132:247:0;34281:30;34272:5;:39;;;;;;;;:::i;:::-;;34268:111;;34335:32;;-1:-1:-1;;;34335:32:0;;;;;1465:25:1;;;1438:18;;34335:32:0;1319:177:1;64343:415:0;64402:13;64428:11;64442:16;64453:4;64442:10;:16::i;:::-;64568:14;;;64579:2;64568:14;;;;;;;;;64428:30;;-1:-1:-1;64548:17:0;;64568:14;;;;;;;;;-1:-1:-1;;;64661:16:0;;;-1:-1:-1;64707:4:0;64698:14;;64691:28;;;;-1:-1:-1;64661:16:0;64343:415::o;64835:251::-;64896:7;64969:4;64933:40;;64997:2;64988:11;;64984:71;;;65023:20;;-1:-1:-1;;;65023:20:0;;;;;;;;;;;14:400:1;56:3;94:5;88:12;121:6;116:3;109:19;146:1;156:139;170:6;167:1;164:13;156:139;;;278:4;263:13;;;259:24;;253:31;233:11;;;229:22;;222:63;185:12;156:139;;;160:3;340:1;333:4;324:6;319:3;315:16;311:27;304:38;403:4;396:2;392:7;387:2;379:6;375:15;371:29;366:3;362:39;358:50;351:57;;;14:400;;;;:::o;419:220::-;568:2;557:9;550:21;531:4;588:45;629:2;618:9;614:18;606:6;588:45;:::i;644:173::-;712:20;;-1:-1:-1;;;;;761:31:1;;751:42;;741:70;;807:1;804;797:12;741:70;644:173;;;:::o;822:300::-;890:6;898;951:2;939:9;930:7;926:23;922:32;919:52;;;967:1;964;957:12;919:52;990:29;1009:9;990:29;:::i;:::-;980:39;1088:2;1073:18;;;;1060:32;;-1:-1:-1;;;822:300:1:o;1501:374::-;1578:6;1586;1594;1647:2;1635:9;1626:7;1622:23;1618:32;1615:52;;;1663:1;1660;1653:12;1615:52;1686:29;1705:9;1686:29;:::i;:::-;1676:39;;1734:38;1768:2;1757:9;1753:18;1734:38;:::i;:::-;1501:374;;1724:48;;-1:-1:-1;;;1841:2:1;1826:18;;;;1813:32;;1501:374::o;2251:226::-;2310:6;2363:2;2351:9;2342:7;2338:23;2334:32;2331:52;;;2379:1;2376;2369:12;2331:52;-1:-1:-1;2424:23:1;;2251:226;-1:-1:-1;2251:226:1:o;2482:186::-;2541:6;2594:2;2582:9;2573:7;2569:23;2565:32;2562:52;;;2610:1;2607;2600:12;2562:52;2633:29;2652:9;2633:29;:::i;2673:1238::-;3079:3;3074;3070:13;3062:6;3058:26;3047:9;3040:45;3121:3;3116:2;3105:9;3101:18;3094:31;3021:4;3148:46;3189:3;3178:9;3174:19;3166:6;3148:46;:::i;:::-;3242:9;3234:6;3230:22;3225:2;3214:9;3210:18;3203:50;3276:33;3302:6;3294;3276:33;:::i;:::-;3340:2;3325:18;;3318:34;;;-1:-1:-1;;;;;3389:32:1;;3383:3;3368:19;;3361:61;3409:3;3438:19;;3431:35;;;3503:22;;;3497:3;3482:19;;3475:51;3575:13;;3597:22;;;3647:2;3673:15;;;;-1:-1:-1;3635:15:1;;;;-1:-1:-1;3716:169:1;3730:6;3727:1;3724:13;3716:169;;;3791:13;;3779:26;;3834:2;3860:15;;;;3825:12;;;;3752:1;3745:9;3716:169;;;-1:-1:-1;3902:3:1;;2673:1238;-1:-1:-1;;;;;;;;;;;2673:1238:1:o;4397:903::-;4508:6;4516;4524;4532;4540;4548;4556;4609:3;4597:9;4588:7;4584:23;4580:33;4577:53;;;4626:1;4623;4616:12;4577:53;4649:29;4668:9;4649:29;:::i;:::-;4639:39;;4697:38;4731:2;4720:9;4716:18;4697:38;:::i;:::-;4687:48;-1:-1:-1;4804:2:1;4789:18;;4776:32;;-1:-1:-1;4905:2:1;4890:18;;4877:32;;-1:-1:-1;4987:3:1;4972:19;;4959:33;5036:4;5023:18;;5011:31;;5001:59;;5056:1;5053;5046:12;5001:59;4397:903;;;;-1:-1:-1;4397:903:1;;;;5079:7;5159:3;5144:19;;5131:33;;-1:-1:-1;5263:3:1;5248:19;;;5235:33;;4397:903;-1:-1:-1;;4397:903:1:o;5305:260::-;5373:6;5381;5434:2;5422:9;5413:7;5409:23;5405:32;5402:52;;;5450:1;5447;5440:12;5402:52;5473:29;5492:9;5473:29;:::i;:::-;5463:39;;5521:38;5555:2;5544:9;5540:18;5521:38;:::i;:::-;5511:48;;5305:260;;;;;:::o;5570:380::-;5649:1;5645:12;;;;5692;;;5713:61;;5767:4;5759:6;5755:17;5745:27;;5713:61;5820:2;5812:6;5809:14;5789:18;5786:38;5783:161;;5866:10;5861:3;5857:20;5854:1;5847:31;5901:4;5898:1;5891:15;5929:4;5926:1;5919:15;5783:161;;5570:380;;;:::o;5955:399::-;6157:2;6139:21;;;6196:2;6176:18;;;6169:30;6235:34;6230:2;6215:18;;6208:62;-1:-1:-1;;;6301:2:1;6286:18;;6279:33;6344:3;6329:19;;5955:399::o;6359:127::-;6420:10;6415:3;6411:20;6408:1;6401:31;6451:4;6448:1;6441:15;6475:4;6472:1;6465:15;6491:125;6556:9;;;6577:10;;;6574:36;;;6590:18;;:::i;6621:128::-;6688:9;;;6709:11;;;6706:37;;;6723:18;;:::i;7425:375::-;7513:1;7531:5;7545:249;7566:1;7556:8;7553:15;7545:249;;;7616:4;7611:3;7607:14;7601:4;7598:24;7595:50;;;7625:18;;:::i;:::-;7675:1;7665:8;7661:16;7658:49;;;7689:16;;;;7658:49;7772:1;7768:16;;;;;7728:15;;7545:249;;;7425:375;;;;;;:::o;7805:902::-;7854:5;7884:8;7874:80;;-1:-1:-1;7925:1:1;7939:5;;7874:80;7973:4;7963:76;;-1:-1:-1;8010:1:1;8024:5;;7963:76;8055:4;8073:1;8068:59;;;;8141:1;8136:174;;;;8048:262;;8068:59;8098:1;8089:10;;8112:5;;;8136:174;8173:3;8163:8;8160:17;8157:43;;;8180:18;;:::i;:::-;-1:-1:-1;;8236:1:1;8222:16;;8295:5;;8048:262;;8394:2;8384:8;8381:16;8375:3;8369:4;8366:13;8362:36;8356:2;8346:8;8343:16;8338:2;8332:4;8329:12;8325:35;8322:77;8319:203;;;-1:-1:-1;8431:19:1;;;8507:5;;8319:203;8554:42;-1:-1:-1;;8579:8:1;8573:4;8554:42;:::i;:::-;8632:6;8628:1;8624:6;8620:19;8611:7;8608:32;8605:58;;;8643:18;;:::i;:::-;8681:20;;7805:902;-1:-1:-1;;;7805:902:1:o;8712:140::-;8770:5;8799:47;8840:4;8830:8;8826:19;8820:4;8799:47;:::i;8857:168::-;8930:9;;;8961;;8978:15;;;8972:22;;8958:37;8948:71;;8999:18;;:::i;9030:217::-;9070:1;9096;9086:132;;9140:10;9135:3;9131:20;9128:1;9121:31;9175:4;9172:1;9165:15;9203:4;9200:1;9193:15;9086:132;-1:-1:-1;9232:9:1;;9030:217::o;11888:127::-;11949:10;11944:3;11940:20;11937:1;11930:31;11980:4;11977:1;11970:15;12004:4;12001:1;11994:15
Swarm Source
ipfs://eed356f7d67d658e5e6004d5158d3b5c708387506a215c3061a9f9fea654ce38
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.