BEP-20
Overview
Max Total Supply
57ECRYPT
Holders
13
Market
Price
$0.00 @ 0.000000 BNB
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
0.000725793971358306 ECRYPTValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
EcryptoToken
Compiler Version
v0.8.26+commit.8a97fa7a
Contract Source Code (Solidity)
/** *Submitted for verification at BscScan.com on 2024-11-18 */ // File: @openzeppelin/contracts/token/ERC20/IERC20.sol // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the value of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the value of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves a `value` amount of tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 value) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets a `value` amount of tokens as the allowance of `spender` over the * caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the * allowance mechanism. `value` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 value) external returns (bool); } // File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.20; /** * @dev Interface for the optional metadata functions from the ERC20 standard. */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); } // File: @openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol // OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/Initializable.sol) pragma solidity ^0.8.20; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in * case an upgrade adds a module that needs to be initialized. * * For example: * * [.hljs-theme-light.nopadding] * ```solidity * contract MyToken is ERC20Upgradeable { * function initialize() initializer public { * __ERC20_init("MyToken", "MTK"); * } * } * * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable { * function initializeV2() reinitializer(2) public { * __ERC20Permit_init("MyToken"); * } * } * ``` * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() { * _disableInitializers(); * } * ``` * ==== */ abstract contract Initializable { /** * @dev Storage of the initializable contract. * * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions * when using with upgradeable contracts. * * @custom:storage-location erc7201:openzeppelin.storage.Initializable */ struct InitializableStorage { /** * @dev Indicates that the contract has been initialized. */ uint64 _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool _initializing; } // keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.Initializable")) - 1)) & ~bytes32(uint256(0xff)) bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00; /** * @dev The contract is already initialized. */ error InvalidInitialization(); /** * @dev The contract is not initializing. */ error NotInitializing(); /** * @dev Triggered when the contract has been initialized or reinitialized. */ event Initialized(uint64 version); /** * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope, * `onlyInitializing` functions can be used to initialize parent contracts. * * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in * production. * * Emits an {Initialized} event. */ modifier initializer() { // solhint-disable-next-line var-name-mixedcase InitializableStorage storage $ = _getInitializableStorage(); // Cache values to avoid duplicated sloads bool isTopLevelCall = !$._initializing; uint64 initialized = $._initialized; // Allowed calls: // - initialSetup: the contract is not in the initializing state and no previous version was // initialized // - construction: the contract is initialized at version 1 (no reininitialization) and the // current contract is just being deployed bool initialSetup = initialized == 0 && isTopLevelCall; bool construction = initialized == 1 && address(this).code.length == 0; if (!initialSetup && !construction) { revert InvalidInitialization(); } $._initialized = 1; if (isTopLevelCall) { $._initializing = true; } _; if (isTopLevelCall) { $._initializing = false; emit Initialized(1); } } /** * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be * used to initialize parent contracts. * * A reinitializer may be used after the original initialization step. This is essential to configure modules that * are added through upgrades and that require initialization. * * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer` * cannot be nested. If one is invoked in the context of another, execution will revert. * * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in * a contract, executing them in the right order is up to the developer or operator. * * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization. * * Emits an {Initialized} event. */ modifier reinitializer(uint64 version) { // solhint-disable-next-line var-name-mixedcase InitializableStorage storage $ = _getInitializableStorage(); if ($._initializing || $._initialized >= version) { revert InvalidInitialization(); } $._initialized = version; $._initializing = true; _; $._initializing = false; emit Initialized(version); } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} and {reinitializer} modifiers, directly or indirectly. */ modifier onlyInitializing() { _checkInitializing(); _; } /** * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}. */ function _checkInitializing() internal view virtual { if (!_isInitializing()) { revert NotInitializing(); } } /** * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call. * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized * to any version. It is recommended to use this to lock implementation contracts that are designed to be called * through proxies. * * Emits an {Initialized} event the first time it is successfully executed. */ function _disableInitializers() internal virtual { // solhint-disable-next-line var-name-mixedcase InitializableStorage storage $ = _getInitializableStorage(); if ($._initializing) { revert InvalidInitialization(); } if ($._initialized != type(uint64).max) { $._initialized = type(uint64).max; emit Initialized(type(uint64).max); } } /** * @dev Returns the highest version that has been initialized. See {reinitializer}. */ function _getInitializedVersion() internal view returns (uint64) { return _getInitializableStorage()._initialized; } /** * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}. */ function _isInitializing() internal view returns (bool) { return _getInitializableStorage()._initializing; } /** * @dev Returns a pointer to the storage namespace. */ // solhint-disable-next-line var-name-mixedcase function _getInitializableStorage() private pure returns (InitializableStorage storage $) { assembly { $.slot := INITIALIZABLE_STORAGE } } } // File: @openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract ContextUpgradeable is Initializable { function __Context_init() internal onlyInitializing { } function __Context_init_unchained() internal onlyInitializing { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } } // File: @openzeppelin/contracts/interfaces/draft-IERC6093.sol // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol) pragma solidity ^0.8.20; /** * @dev Standard ERC20 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens. */ interface IERC20Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC20InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC20InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers. * @param spender Address that may be allowed to operate on tokens without being their owner. * @param allowance Amount of tokens a `spender` is allowed to operate with. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC20InvalidApprover(address approver); /** * @dev Indicates a failure with the `spender` to be approved. Used in approvals. * @param spender Address that may be allowed to operate on tokens without being their owner. */ error ERC20InvalidSpender(address spender); } /** * @dev Standard ERC721 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens. */ interface IERC721Errors { /** * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20. * Used in balance queries. * @param owner Address of the current owner of a token. */ error ERC721InvalidOwner(address owner); /** * @dev Indicates a `tokenId` whose `owner` is the zero address. * @param tokenId Identifier number of a token. */ error ERC721NonexistentToken(uint256 tokenId); /** * @dev Indicates an error related to the ownership over a particular token. Used in transfers. * @param sender Address whose tokens are being transferred. * @param tokenId Identifier number of a token. * @param owner Address of the current owner of a token. */ error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC721InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC721InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param tokenId Identifier number of a token. */ error ERC721InsufficientApproval(address operator, uint256 tokenId); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC721InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC721InvalidOperator(address operator); } /** * @dev Standard ERC1155 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens. */ interface IERC1155Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. * @param tokenId Identifier number of a token. */ error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC1155InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC1155InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param owner Address of the current owner of a token. */ error ERC1155MissingApprovalForAll(address operator, address owner); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC1155InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC1155InvalidOperator(address operator); /** * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation. * Used in batch transfers. * @param idsLength Length of the array of token identifiers * @param valuesLength Length of the array of token amounts */ error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength); } // File: @openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.20; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * The default value of {decimals} is 18. To change this, you should override * this function so it returns a different value. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. */ abstract contract ERC20Upgradeable is Initializable, ContextUpgradeable, IERC20, IERC20Metadata, IERC20Errors { /// @custom:storage-location erc7201:openzeppelin.storage.ERC20 struct ERC20Storage { mapping(address account => uint256) _balances; mapping(address account => mapping(address spender => uint256)) _allowances; uint256 _totalSupply; string _name; string _symbol; } // keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.ERC20")) - 1)) & ~bytes32(uint256(0xff)) bytes32 private constant ERC20StorageLocation = 0x52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace00; function _getERC20Storage() private pure returns (ERC20Storage storage $) { assembly { $.slot := ERC20StorageLocation } } /** * @dev Sets the values for {name} and {symbol}. * * All two of these values are immutable: they can only be set once during * construction. */ function __ERC20_init(string memory name_, string memory symbol_) internal onlyInitializing { __ERC20_init_unchained(name_, symbol_); } function __ERC20_init_unchained(string memory name_, string memory symbol_) internal onlyInitializing { ERC20Storage storage $ = _getERC20Storage(); $._name = name_; $._symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual returns (string memory) { ERC20Storage storage $ = _getERC20Storage(); return $._name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual returns (string memory) { ERC20Storage storage $ = _getERC20Storage(); return $._symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the default value returned by this function, unless * it's overridden. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual returns (uint256) { ERC20Storage storage $ = _getERC20Storage(); return $._totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual returns (uint256) { ERC20Storage storage $ = _getERC20Storage(); return $._balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `value`. */ function transfer(address to, uint256 value) public virtual returns (bool) { address owner = _msgSender(); _transfer(owner, to, value); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual returns (uint256) { ERC20Storage storage $ = _getERC20Storage(); return $._allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `value` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 value) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, value); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `value`. * - the caller must have allowance for ``from``'s tokens of at least * `value`. */ function transferFrom(address from, address to, uint256 value) public virtual returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, value); _transfer(from, to, value); return true; } /** * @dev Moves a `value` amount of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * NOTE: This function is not virtual, {_update} should be overridden instead. */ function _transfer(address from, address to, uint256 value) internal { if (from == address(0)) { revert ERC20InvalidSender(address(0)); } if (to == address(0)) { revert ERC20InvalidReceiver(address(0)); } _update(from, to, value); } /** * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from` * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding * this function. * * Emits a {Transfer} event. */ function _update(address from, address to, uint256 value) internal virtual { ERC20Storage storage $ = _getERC20Storage(); if (from == address(0)) { // Overflow check required: The rest of the code assumes that totalSupply never overflows $._totalSupply += value; } else { uint256 fromBalance = $._balances[from]; if (fromBalance < value) { revert ERC20InsufficientBalance(from, fromBalance, value); } unchecked { // Overflow not possible: value <= fromBalance <= totalSupply. $._balances[from] = fromBalance - value; } } if (to == address(0)) { unchecked { // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply. $._totalSupply -= value; } } else { unchecked { // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256. $._balances[to] += value; } } emit Transfer(from, to, value); } /** * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0). * Relies on the `_update` mechanism * * Emits a {Transfer} event with `from` set to the zero address. * * NOTE: This function is not virtual, {_update} should be overridden instead. */ function _mint(address account, uint256 value) internal { if (account == address(0)) { revert ERC20InvalidReceiver(address(0)); } _update(address(0), account, value); } /** * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply. * Relies on the `_update` mechanism. * * Emits a {Transfer} event with `to` set to the zero address. * * NOTE: This function is not virtual, {_update} should be overridden instead */ function _burn(address account, uint256 value) internal { if (account == address(0)) { revert ERC20InvalidSender(address(0)); } _update(account, address(0), value); } /** * @dev Sets `value` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. * * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument. */ function _approve(address owner, address spender, uint256 value) internal { _approve(owner, spender, value, true); } /** * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event. * * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by * `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any * `Approval` event during `transferFrom` operations. * * Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to * true using the following override: * ``` * function _approve(address owner, address spender, uint256 value, bool) internal virtual override { * super._approve(owner, spender, value, true); * } * ``` * * Requirements are the same as {_approve}. */ function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual { ERC20Storage storage $ = _getERC20Storage(); if (owner == address(0)) { revert ERC20InvalidApprover(address(0)); } if (spender == address(0)) { revert ERC20InvalidSpender(address(0)); } $._allowances[owner][spender] = value; if (emitEvent) { emit Approval(owner, spender, value); } } /** * @dev Updates `owner` s allowance for `spender` based on spent `value`. * * Does not update the allowance value in case of infinite allowance. * Revert if not enough allowance is available. * * Does not emit an {Approval} event. */ function _spendAllowance(address owner, address spender, uint256 value) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { if (currentAllowance < value) { revert ERC20InsufficientAllowance(spender, currentAllowance, value); } unchecked { _approve(owner, spender, currentAllowance - value, false); } } } } // File: @openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * The initial owner is set to the address provided by the deployer. This can * later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable { /// @custom:storage-location erc7201:openzeppelin.storage.Ownable struct OwnableStorage { address _owner; } // keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.Ownable")) - 1)) & ~bytes32(uint256(0xff)) bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300; function _getOwnableStorage() private pure returns (OwnableStorage storage $) { assembly { $.slot := OwnableStorageLocation } } /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ function __Ownable_init(address initialOwner) internal onlyInitializing { __Ownable_init_unchained(initialOwner); } function __Ownable_init_unchained(address initialOwner) internal onlyInitializing { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { OwnableStorage storage $ = _getOwnableStorage(); return $._owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { OwnableStorage storage $ = _getOwnableStorage(); address oldOwner = $._owner; $._owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File: EcryptoToken.sol pragma solidity ^0.8.26; contract EcryptoToken is Initializable, ERC20Upgradeable, OwnableUpgradeable { address public financeContract; uint256 public MAX_SUPPLY = 21000000 * 10 ** decimals(); function initialize() public initializer { __ERC20_init("Ecrypto", "ECRYPT"); __Ownable_init(msg.sender); // Allows owner control _mint(msg.sender, 50 * 10 ** decimals()); // Initial mint for the owner } // Restrict minting to only the finance contract function setfinanceContract(address _financeContract) external onlyOwner { financeContract = _financeContract; } function mint(address to, uint256 amount) external { require( totalSupply() + amount <= MAX_SUPPLY, "Minting would exceed max supply" ); require( msg.sender == financeContract, "Only finance contract can mint" ); _mint(to, amount); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[],"name":"InvalidInitialization","type":"error"},{"inputs":[],"name":"NotInitializing","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint64","name":"version","type":"uint64"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":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":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"financeContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_financeContract","type":"address"}],"name":"setfinanceContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526100106012600a61012b565b61001e906301406f40610140565b60015534801561002c575f80fd5b50610157565b634e487b7160e01b5f52601160045260245ffd5b6001815b60018411156100815780850481111561006557610065610032565b600184161561007357908102905b60019390931c92800261004a565b935093915050565b5f8261009757506001610125565b816100a357505f610125565b81600181146100b957600281146100c3576100df565b6001915050610125565b60ff8411156100d4576100d4610032565b50506001821b610125565b5060208310610133831016604e8410600b8410161715610102575081810a610125565b61010e5f198484610046565b805f190482111561012157610121610032565b0290505b92915050565b5f61013960ff841683610089565b9392505050565b808202811582820484141761012557610125610032565b610f9b806101645f395ff3fe608060405234801561000f575f80fd5b5060043610610106575f3560e01c8063715018a61161009e57806395d89b411161006e57806395d89b4114610257578063a9059cbb1461025f578063d339614914610272578063dd62ed3e14610284578063f2fde38b14610297575f80fd5b8063715018a6146101f05780637251ab93146101f85780638129fc1c1461020b5780638da5cb5b14610213575f80fd5b8063313ce567116100d9578063313ce5671461018f57806332cb6b0c1461019e57806340c10f19146101a757806370a08231146101bc575f80fd5b806306fdde031461010a578063095ea7b31461012857806318160ddd1461014b57806323b872dd1461017c575b5f80fd5b6101126102aa565b60405161011f9190610bc8565b60405180910390f35b61013b610136366004610c18565b61036a565b604051901515815260200161011f565b7f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace02545b60405190815260200161011f565b61013b61018a366004610c40565b610383565b6040516012815260200161011f565b61016e60015481565b6101ba6101b5366004610c18565b6103a6565b005b61016e6101ca366004610c7a565b6001600160a01b03165f9081525f80516020610f46833981519152602052604090205490565b6101ba610496565b6101ba610206366004610c7a565b6104a9565b6101ba6104d2565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03165b6040516001600160a01b03909116815260200161011f565b610112610646565b61013b61026d366004610c18565b610684565b5f5461023f906001600160a01b031681565b61016e610292366004610c9a565b610691565b6101ba6102a5366004610c7a565b6106da565b7f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace0380546060915f80516020610f46833981519152916102e890610ccb565b80601f016020809104026020016040519081016040528092919081815260200182805461031490610ccb565b801561035f5780601f106103365761010080835404028352916020019161035f565b820191905f5260205f20905b81548152906001019060200180831161034257829003601f168201915b505050505091505090565b5f33610377818585610717565b60019150505b92915050565b5f33610390858285610729565b61039b85858561078c565b506001949350505050565b600154816103d27f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace025490565b6103dc9190610d17565b111561042f5760405162461bcd60e51b815260206004820152601f60248201527f4d696e74696e6720776f756c6420657863656564206d617820737570706c790060448201526064015b60405180910390fd5b5f546001600160a01b031633146104885760405162461bcd60e51b815260206004820152601e60248201527f4f6e6c792066696e616e636520636f6e74726163742063616e206d696e7400006044820152606401610426565b61049282826107e9565b5050565b61049e61081d565b6104a75f610878565b565b6104b161081d565b5f80546001600160a01b0319166001600160a01b0392909216919091179055565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff16159067ffffffffffffffff165f811580156105175750825b90505f8267ffffffffffffffff1660011480156105335750303b155b905081158015610541575080155b1561055f5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561058957845460ff60401b1916600160401b1785555b6105d0604051806040016040528060078152602001664563727970746f60c81b815250604051806040016040528060068152602001651150d496541560d21b8152506108e8565b6105d9336108fa565b6105f9336105e96012600a610e0d565b6105f4906032610e1b565b6107e9565b831561063f57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b5050505050565b7f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace0480546060915f80516020610f46833981519152916102e890610ccb565b5f3361037781858561078c565b6001600160a01b039182165f9081527f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace016020908152604080832093909416825291909152205490565b6106e261081d565b6001600160a01b03811661070b57604051631e4fbdf760e01b81525f6004820152602401610426565b61071481610878565b50565b610724838383600161090b565b505050565b5f6107348484610691565b90505f198114610786578181101561077857604051637dc7a0d960e11b81526001600160a01b03841660048201526024810182905260448101839052606401610426565b61078684848484035f61090b565b50505050565b6001600160a01b0383166107b557604051634b637e8f60e11b81525f6004820152602401610426565b6001600160a01b0382166107de5760405163ec442f0560e01b81525f6004820152602401610426565b6107248383836109ee565b6001600160a01b0382166108125760405163ec442f0560e01b81525f6004820152602401610426565b6104925f83836109ee565b3361084f7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146104a75760405163118cdaa760e01b8152336004820152602401610426565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6108f0610b27565b6104928282610b70565b610902610b27565b61071481610bc0565b5f80516020610f468339815191526001600160a01b0385166109425760405163e602df0560e01b81525f6004820152602401610426565b6001600160a01b03841661096b57604051634a1406b160e11b81525f6004820152602401610426565b6001600160a01b038086165f9081526001830160209081526040808320938816835292905220839055811561063f57836001600160a01b0316856001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925856040516109df91815260200190565b60405180910390a35050505050565b5f80516020610f468339815191526001600160a01b038416610a285781816002015f828254610a1d9190610d17565b90915550610a989050565b6001600160a01b0384165f9081526020829052604090205482811015610a7a5760405163391434e360e21b81526001600160a01b03861660048201526024810182905260448101849052606401610426565b6001600160a01b0385165f9081526020839052604090209083900390555b6001600160a01b038316610ab6576002810180548390039055610ad4565b6001600160a01b0383165f9081526020829052604090208054830190555b826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610b1991815260200190565b60405180910390a350505050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054600160401b900460ff166104a757604051631afcd79f60e31b815260040160405180910390fd5b610b78610b27565b5f80516020610f468339815191527f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace03610bb18482610e8a565b50600481016107868382610e8a565b6106e2610b27565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b80356001600160a01b0381168114610c13575f80fd5b919050565b5f8060408385031215610c29575f80fd5b610c3283610bfd565b946020939093013593505050565b5f805f60608486031215610c52575f80fd5b610c5b84610bfd565b9250610c6960208501610bfd565b929592945050506040919091013590565b5f60208284031215610c8a575f80fd5b610c9382610bfd565b9392505050565b5f8060408385031215610cab575f80fd5b610cb483610bfd565b9150610cc260208401610bfd565b90509250929050565b600181811c90821680610cdf57607f821691505b602082108103610cfd57634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b8082018082111561037d5761037d610d03565b6001815b6001841115610d6557808504811115610d4957610d49610d03565b6001841615610d5757908102905b60019390931c928002610d2e565b935093915050565b5f82610d7b5750600161037d565b81610d8757505f61037d565b8160018114610d9d5760028114610da757610dc3565b600191505061037d565b60ff841115610db857610db8610d03565b50506001821b61037d565b5060208310610133831016604e8410600b8410161715610de6575081810a61037d565b610df25f198484610d2a565b805f1904821115610e0557610e05610d03565b029392505050565b5f610c9360ff841683610d6d565b808202811582820484141761037d5761037d610d03565b634e487b7160e01b5f52604160045260245ffd5b601f82111561072457805f5260205f20601f840160051c81016020851015610e6b5750805b601f840160051c820191505b8181101561063f575f8155600101610e77565b815167ffffffffffffffff811115610ea457610ea4610e32565b610eb881610eb28454610ccb565b84610e46565b6020601f821160018114610eea575f8315610ed35750848201515b5f19600385901b1c1916600184901b17845561063f565b5f84815260208120601f198516915b82811015610f195787850151825560209485019460019092019101610ef9565b5084821015610f3657868401515f19600387901b60f8161c191681555b50505050600190811b0190555056fe52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace00a264697066735822122076d407d77b2df15c3569ba7b168ed75144a4e7311ad5b4fddb1f85075ddeb8f464736f6c634300081a0033
Deployed Bytecode
0x608060405234801561000f575f80fd5b5060043610610106575f3560e01c8063715018a61161009e57806395d89b411161006e57806395d89b4114610257578063a9059cbb1461025f578063d339614914610272578063dd62ed3e14610284578063f2fde38b14610297575f80fd5b8063715018a6146101f05780637251ab93146101f85780638129fc1c1461020b5780638da5cb5b14610213575f80fd5b8063313ce567116100d9578063313ce5671461018f57806332cb6b0c1461019e57806340c10f19146101a757806370a08231146101bc575f80fd5b806306fdde031461010a578063095ea7b31461012857806318160ddd1461014b57806323b872dd1461017c575b5f80fd5b6101126102aa565b60405161011f9190610bc8565b60405180910390f35b61013b610136366004610c18565b61036a565b604051901515815260200161011f565b7f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace02545b60405190815260200161011f565b61013b61018a366004610c40565b610383565b6040516012815260200161011f565b61016e60015481565b6101ba6101b5366004610c18565b6103a6565b005b61016e6101ca366004610c7a565b6001600160a01b03165f9081525f80516020610f46833981519152602052604090205490565b6101ba610496565b6101ba610206366004610c7a565b6104a9565b6101ba6104d2565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03165b6040516001600160a01b03909116815260200161011f565b610112610646565b61013b61026d366004610c18565b610684565b5f5461023f906001600160a01b031681565b61016e610292366004610c9a565b610691565b6101ba6102a5366004610c7a565b6106da565b7f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace0380546060915f80516020610f46833981519152916102e890610ccb565b80601f016020809104026020016040519081016040528092919081815260200182805461031490610ccb565b801561035f5780601f106103365761010080835404028352916020019161035f565b820191905f5260205f20905b81548152906001019060200180831161034257829003601f168201915b505050505091505090565b5f33610377818585610717565b60019150505b92915050565b5f33610390858285610729565b61039b85858561078c565b506001949350505050565b600154816103d27f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace025490565b6103dc9190610d17565b111561042f5760405162461bcd60e51b815260206004820152601f60248201527f4d696e74696e6720776f756c6420657863656564206d617820737570706c790060448201526064015b60405180910390fd5b5f546001600160a01b031633146104885760405162461bcd60e51b815260206004820152601e60248201527f4f6e6c792066696e616e636520636f6e74726163742063616e206d696e7400006044820152606401610426565b61049282826107e9565b5050565b61049e61081d565b6104a75f610878565b565b6104b161081d565b5f80546001600160a01b0319166001600160a01b0392909216919091179055565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff16159067ffffffffffffffff165f811580156105175750825b90505f8267ffffffffffffffff1660011480156105335750303b155b905081158015610541575080155b1561055f5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561058957845460ff60401b1916600160401b1785555b6105d0604051806040016040528060078152602001664563727970746f60c81b815250604051806040016040528060068152602001651150d496541560d21b8152506108e8565b6105d9336108fa565b6105f9336105e96012600a610e0d565b6105f4906032610e1b565b6107e9565b831561063f57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b5050505050565b7f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace0480546060915f80516020610f46833981519152916102e890610ccb565b5f3361037781858561078c565b6001600160a01b039182165f9081527f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace016020908152604080832093909416825291909152205490565b6106e261081d565b6001600160a01b03811661070b57604051631e4fbdf760e01b81525f6004820152602401610426565b61071481610878565b50565b610724838383600161090b565b505050565b5f6107348484610691565b90505f198114610786578181101561077857604051637dc7a0d960e11b81526001600160a01b03841660048201526024810182905260448101839052606401610426565b61078684848484035f61090b565b50505050565b6001600160a01b0383166107b557604051634b637e8f60e11b81525f6004820152602401610426565b6001600160a01b0382166107de5760405163ec442f0560e01b81525f6004820152602401610426565b6107248383836109ee565b6001600160a01b0382166108125760405163ec442f0560e01b81525f6004820152602401610426565b6104925f83836109ee565b3361084f7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146104a75760405163118cdaa760e01b8152336004820152602401610426565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6108f0610b27565b6104928282610b70565b610902610b27565b61071481610bc0565b5f80516020610f468339815191526001600160a01b0385166109425760405163e602df0560e01b81525f6004820152602401610426565b6001600160a01b03841661096b57604051634a1406b160e11b81525f6004820152602401610426565b6001600160a01b038086165f9081526001830160209081526040808320938816835292905220839055811561063f57836001600160a01b0316856001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925856040516109df91815260200190565b60405180910390a35050505050565b5f80516020610f468339815191526001600160a01b038416610a285781816002015f828254610a1d9190610d17565b90915550610a989050565b6001600160a01b0384165f9081526020829052604090205482811015610a7a5760405163391434e360e21b81526001600160a01b03861660048201526024810182905260448101849052606401610426565b6001600160a01b0385165f9081526020839052604090209083900390555b6001600160a01b038316610ab6576002810180548390039055610ad4565b6001600160a01b0383165f9081526020829052604090208054830190555b826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610b1991815260200190565b60405180910390a350505050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054600160401b900460ff166104a757604051631afcd79f60e31b815260040160405180910390fd5b610b78610b27565b5f80516020610f468339815191527f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace03610bb18482610e8a565b50600481016107868382610e8a565b6106e2610b27565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b80356001600160a01b0381168114610c13575f80fd5b919050565b5f8060408385031215610c29575f80fd5b610c3283610bfd565b946020939093013593505050565b5f805f60608486031215610c52575f80fd5b610c5b84610bfd565b9250610c6960208501610bfd565b929592945050506040919091013590565b5f60208284031215610c8a575f80fd5b610c9382610bfd565b9392505050565b5f8060408385031215610cab575f80fd5b610cb483610bfd565b9150610cc260208401610bfd565b90509250929050565b600181811c90821680610cdf57607f821691505b602082108103610cfd57634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b8082018082111561037d5761037d610d03565b6001815b6001841115610d6557808504811115610d4957610d49610d03565b6001841615610d5757908102905b60019390931c928002610d2e565b935093915050565b5f82610d7b5750600161037d565b81610d8757505f61037d565b8160018114610d9d5760028114610da757610dc3565b600191505061037d565b60ff841115610db857610db8610d03565b50506001821b61037d565b5060208310610133831016604e8410600b8410161715610de6575081810a61037d565b610df25f198484610d2a565b805f1904821115610e0557610e05610d03565b029392505050565b5f610c9360ff841683610d6d565b808202811582820484141761037d5761037d610d03565b634e487b7160e01b5f52604160045260245ffd5b601f82111561072457805f5260205f20601f840160051c81016020851015610e6b5750805b601f840160051c820191505b8181101561063f575f8155600101610e77565b815167ffffffffffffffff811115610ea457610ea4610e32565b610eb881610eb28454610ccb565b84610e46565b6020601f821160018114610eea575f8315610ed35750848201515b5f19600385901b1c1916600184901b17845561063f565b5f84815260208120601f198516915b82811015610f195787850151825560209485019460019092019101610ef9565b5084821015610f3657868401515f19600387901b60f8161c191681555b50505050600190811b0190555056fe52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace00a264697066735822122076d407d77b2df15c3569ba7b168ed75144a4e7311ad5b4fddb1f85075ddeb8f464736f6c634300081a0033
Deployed Bytecode Sourcemap
37342:957:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23485:147;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;26058:190;;;;;;:::i;:::-;;:::i;:::-;;;1085:14:1;;1078:22;1060:41;;1048:2;1033:18;26058:190:0;920:187:1;24699:155:0;24832:14;;24699:155;;;1258:25:1;;;1246:2;1231:18;24699:155:0;1112:177:1;26826:249:0;;;;;;:::i;:::-;;:::i;24550:84::-;;;24624:2;1815:36:1;;1803:2;1788:18;24550:84:0;1673:184:1;37463:55:0;;;;;;37961:335;;;;;;:::i;:::-;;:::i;:::-;;24917:174;;;;;;:::i;:::-;-1:-1:-1;;;;;25063:20:0;24982:7;25063:20;;;-1:-1:-1;;;;;;;;;;;25063:20:0;;;;;;;24917:174;36378:103;;;:::i;37826:126::-;;;;;;:::i;:::-;;:::i;37528:235::-;;;:::i;35643:147::-;34474:22;35774:8;-1:-1:-1;;;;;35774:8:0;35643:147;;;-1:-1:-1;;;;;2217:32:1;;;2199:51;;2187:2;2172:18;35643:147:0;2053:203:1;23751:151:0;;;:::i;25296:182::-;;;;;;:::i;:::-;;:::i;37426:30::-;;;;;-1:-1:-1;;;;;37426:30:0;;;25541:198;;;;;;:::i;:::-;;:::i;36636:220::-;;;;;;:::i;:::-;;:::i;23485:147::-;23617:7;23610:14;;23530:13;;-1:-1:-1;;;;;;;;;;;22810:20:0;23610:14;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23485:147;:::o;26058:190::-;26131:4;13766:10;26187:31;13766:10;26203:7;26212:5;26187:8;:31::i;:::-;26236:4;26229:11;;;26058:190;;;;;:::o;26826:249::-;26913:4;13766:10;26971:37;26987:4;13766:10;27002:5;26971:15;:37::i;:::-;27019:26;27029:4;27035:2;27039:5;27019:9;:26::i;:::-;-1:-1:-1;27063:4:0;;26826:249;-1:-1:-1;;;;26826:249:0:o;37961:335::-;38071:10;;38061:6;38045:13;24832:14;;;24699:155;38045:13;:22;;;;:::i;:::-;:36;;38023:117;;;;-1:-1:-1;;;38023:117:0;;3375:2:1;38023:117:0;;;3357:21:1;3414:2;3394:18;;;3387:30;3453:33;3433:18;;;3426:61;3504:18;;38023:117:0;;;;;;;;;38187:15;;-1:-1:-1;;;;;38187:15:0;38173:10;:29;38151:109;;;;-1:-1:-1;;;38151:109:0;;3735:2:1;38151:109:0;;;3717:21:1;3774:2;3754:18;;;3747:30;3813:32;3793:18;;;3786:60;3863:18;;38151:109:0;3533:354:1;38151:109:0;38271:17;38277:2;38281:6;38271:5;:17::i;:::-;37961:335;;:::o;36378:103::-;35529:13;:11;:13::i;:::-;36443:30:::1;36470:1;36443:18;:30::i;:::-;36378:103::o:0;37826:126::-;35529:13;:11;:13::i;:::-;37910:15:::1;:34:::0;;-1:-1:-1;;;;;;37910:34:0::1;-1:-1:-1::0;;;;;37910:34:0;;;::::1;::::0;;;::::1;::::0;;37826:126::o;37528:235::-;12748:21;8064:15;;-1:-1:-1;;;8064:15:0;;;;8063:16;;8111:14;;7917:30;8496:16;;:34;;;;;8516:14;8496:34;8476:54;;8541:17;8561:11;:16;;8576:1;8561:16;:50;;;;-1:-1:-1;8589:4:0;8581:25;:30;8561:50;8541:70;;8629:12;8628:13;:30;;;;;8646:12;8645:13;8628:30;8624:93;;;8682:23;;-1:-1:-1;;;8682:23:0;;;;;;;;;;;8624:93;8727:18;;-1:-1:-1;;8727:18:0;8744:1;8727:18;;;8756:69;;;;8791:22;;-1:-1:-1;;;;8791:22:0;-1:-1:-1;;;8791:22:0;;;8756:69;37580:33:::1;;;;;;;;;;;;;;-1:-1:-1::0;;;37580:33:0::1;;::::0;::::1;;;;;;;;;;;;;-1:-1:-1::0;;;37580:33:0::1;;::::0;:12:::1;:33::i;:::-;37624:26;37639:10;37624:14;:26::i;:::-;37685:40;37691:10;37708:16;24624:2:::0;37708::::1;:16;:::i;:::-;37703:21;::::0;:2:::1;:21;:::i;:::-;37685:5;:40::i;:::-;8851:14:::0;8847:104;;;8882:23;;-1:-1:-1;;;;8882:23:0;;;8925:14;;-1:-1:-1;5650:50:1;;8925:14:0;;5638:2:1;5623:18;8925:14:0;;;;;;;8847:104;7849:1109;;;;;37528:235::o;23751:151::-;23885:9;23878:16;;23798:13;;-1:-1:-1;;;;;;;;;;;22810:20:0;23878:16;;;:::i;25296:182::-;25365:4;13766:10;25421:27;13766:10;25438:2;25442:5;25421:9;:27::i;25541:198::-;-1:-1:-1;;;;;25702:20:0;;;25621:7;25702:20;;;:13;:20;;;;;;;;:29;;;;;;;;;;;;;25541:198::o;36636:220::-;35529:13;:11;:13::i;:::-;-1:-1:-1;;;;;36721:22:0;::::1;36717:93;;36767:31;::::0;-1:-1:-1;;;36767:31:0;;36795:1:::1;36767:31;::::0;::::1;2199:51:1::0;2172:18;;36767:31:0::1;2053:203:1::0;36717:93:0::1;36820:28;36839:8;36820:18;:28::i;:::-;36636:220:::0;:::o;30949:130::-;31034:37;31043:5;31050:7;31059:5;31066:4;31034:8;:37::i;:::-;30949:130;;;:::o;32721:487::-;32821:24;32848:25;32858:5;32865:7;32848:9;:25::i;:::-;32821:52;;-1:-1:-1;;32888:16:0;:37;32884:317;;32965:5;32946:16;:24;32942:132;;;32998:60;;-1:-1:-1;;;32998:60:0;;-1:-1:-1;;;;;5931:32:1;;32998:60:0;;;5913:51:1;5980:18;;;5973:34;;;6023:18;;;6016:34;;;5886:18;;32998:60:0;5711:345:1;32942:132:0;33117:57;33126:5;33133:7;33161:5;33142:16;:24;33168:5;33117:8;:57::i;:::-;32810:398;32721:487;;;:::o;27460:308::-;-1:-1:-1;;;;;27544:18:0;;27540:88;;27586:30;;-1:-1:-1;;;27586:30:0;;27613:1;27586:30;;;2199:51:1;2172:18;;27586:30:0;2053:203:1;27540:88:0;-1:-1:-1;;;;;27642:16:0;;27638:88;;27682:32;;-1:-1:-1;;;27682:32:0;;27711:1;27682:32;;;2199:51:1;2172:18;;27682:32:0;2053:203:1;27638:88:0;27736:24;27744:4;27750:2;27754:5;27736:7;:24::i;29644:213::-;-1:-1:-1;;;;;29715:21:0;;29711:93;;29760:32;;-1:-1:-1;;;29760:32:0;;29789:1;29760:32;;;2199:51:1;2172:18;;29760:32:0;2053:203:1;29711:93:0;29814:35;29830:1;29834:7;29843:5;29814:7;:35::i;35868:166::-;13766:10;35928:7;34474:22;35774:8;-1:-1:-1;;;;;35774:8:0;;35643:147;35928:7;-1:-1:-1;;;;;35928:23:0;;35924:103;;35975:40;;-1:-1:-1;;;35975:40:0;;13766:10;35975:40;;;2199:51:1;2172:18;;35975:40:0;2053:203:1;37016:253:0;34474:22;37167:8;;-1:-1:-1;;;;;;37186:19:0;;-1:-1:-1;;;;;37186:19:0;;;;;;;;37221:40;;37167:8;;;;;37221:40;;37090:24;;37221:40;37079:190;;37016:253;:::o;23038:149::-;10755:20;:18;:20::i;:::-;23141:38:::1;23164:5;23171:7;23141:22;:38::i;35027:129::-:0;10755:20;:18;:20::i;:::-;35110:38:::1;35135:12;35110:24;:38::i;31930:499::-:0;-1:-1:-1;;;;;;;;;;;;;;;;32097:19:0;;32093:91;;32140:32;;-1:-1:-1;;;32140:32:0;;32169:1;32140:32;;;2199:51:1;2172:18;;32140:32:0;2053:203:1;32093:91:0;-1:-1:-1;;;;;32198:21:0;;32194:92;;32243:31;;-1:-1:-1;;;32243:31:0;;32271:1;32243:31;;;2199:51:1;2172:18;;32243:31:0;2053:203:1;32194:92:0;-1:-1:-1;;;;;32296:20:0;;;;;;;:13;;;:20;;;;;;;;:29;;;;;;;;;:37;;;32344:78;;;;32395:7;-1:-1:-1;;;;;32379:31:0;32388:5;-1:-1:-1;;;;;32379:31:0;;32404:5;32379:31;;;;1258:25:1;;1246:2;1231:18;;1112:177;32379:31:0;;;;;;;;32028:401;31930:499;;;;:::o;28092:1199::-;-1:-1:-1;;;;;;;;;;;;;;;;28236:18:0;;28232:558;;28392:5;28374:1;:14;;;:23;;;;;;;:::i;:::-;;;;-1:-1:-1;28232:558:0;;-1:-1:-1;28232:558:0;;-1:-1:-1;;;;;28452:17:0;;28430:19;28452:17;;;;;;;;;;;28488:19;;;28484:117;;;28535:50;;-1:-1:-1;;;28535:50:0;;-1:-1:-1;;;;;5931:32:1;;28535:50:0;;;5913:51:1;5980:18;;;5973:34;;;6023:18;;;6016:34;;;5886:18;;28535:50:0;5711:345:1;28484:117:0;-1:-1:-1;;;;;28724:17:0;;:11;:17;;;;;;;;;;28744:19;;;;28724:39;;28232:558;-1:-1:-1;;;;;28806:16:0;;28802:439;;28972:14;;;:23;;;;;;;28802:439;;;-1:-1:-1;;;;;29190:15:0;;:11;:15;;;;;;;;;;:24;;;;;;28802:439;29273:2;-1:-1:-1;;;;;29258:25:0;29267:4;-1:-1:-1;;;;;29258:25:0;;29277:5;29258:25;;;;1258::1;;1246:2;1231:18;;1112:177;29258:25:0;;;;;;;;28167:1124;28092:1199;;;:::o;10915:145::-;12748:21;12429:40;-1:-1:-1;;;12429:40:0;;;;10978:75;;11024:17;;-1:-1:-1;;;11024:17:0;;;;;;;;;;;23195:220;10755:20;:18;:20::i;:::-;-1:-1:-1;;;;;;;;;;;23362:7:0;:15:::1;23372:5:::0;23362:7;:15:::1;:::i;:::-;-1:-1:-1::0;23388:9:0::1;::::0;::::1;:19;23400:7:::0;23388:9;:19:::1;:::i;35164:240::-:0;10755:20;:18;:20::i;14:418:1:-;163:2;152:9;145:21;126:4;195:6;189:13;238:6;233:2;222:9;218:18;211:34;297:6;292:2;284:6;280:15;275:2;264:9;260:18;254:50;353:1;348:2;339:6;328:9;324:22;320:31;313:42;423:2;416;412:7;407:2;399:6;395:15;391:29;380:9;376:45;372:54;364:62;;;14:418;;;;:::o;437:173::-;505:20;;-1:-1:-1;;;;;554:31:1;;544:42;;534:70;;600:1;597;590:12;534:70;437:173;;;:::o;615:300::-;683:6;691;744:2;732:9;723:7;719:23;715:32;712:52;;;760:1;757;750:12;712:52;783:29;802:9;783:29;:::i;:::-;773:39;881:2;866:18;;;;853:32;;-1:-1:-1;;;615:300:1:o;1294:374::-;1371:6;1379;1387;1440:2;1428:9;1419:7;1415:23;1411:32;1408:52;;;1456:1;1453;1446:12;1408:52;1479:29;1498:9;1479:29;:::i;:::-;1469:39;;1527:38;1561:2;1550:9;1546:18;1527:38;:::i;:::-;1294:374;;1517:48;;-1:-1:-1;;;1634:2:1;1619:18;;;;1606:32;;1294:374::o;1862:186::-;1921:6;1974:2;1962:9;1953:7;1949:23;1945:32;1942:52;;;1990:1;1987;1980:12;1942:52;2013:29;2032:9;2013:29;:::i;:::-;2003:39;1862:186;-1:-1:-1;;;1862:186:1:o;2261:260::-;2329:6;2337;2390:2;2378:9;2369:7;2365:23;2361:32;2358:52;;;2406:1;2403;2396:12;2358:52;2429:29;2448:9;2429:29;:::i;:::-;2419:39;;2477:38;2511:2;2500:9;2496:18;2477:38;:::i;:::-;2467:48;;2261:260;;;;;:::o;2526:380::-;2605:1;2601:12;;;;2648;;;2669:61;;2723:4;2715:6;2711:17;2701:27;;2669:61;2776:2;2768:6;2765:14;2745:18;2742:38;2739:161;;2822:10;2817:3;2813:20;2810:1;2803:31;2857:4;2854:1;2847:15;2885:4;2882:1;2875:15;2739:161;;2526:380;;;:::o;2911:127::-;2972:10;2967:3;2963:20;2960:1;2953:31;3003:4;3000:1;2993:15;3027:4;3024:1;3017:15;3043:125;3108:9;;;3129:10;;;3126:36;;;3142:18;;:::i;3892:375::-;3980:1;3998:5;4012:249;4033:1;4023:8;4020:15;4012:249;;;4083:4;4078:3;4074:14;4068:4;4065:24;4062:50;;;4092:18;;:::i;:::-;4142:1;4132:8;4128:16;4125:49;;;4156:16;;;;4125:49;4239:1;4235:16;;;;;4195:15;;4012:249;;;3892:375;;;;;;:::o;4272:902::-;4321:5;4351:8;4341:80;;-1:-1:-1;4392:1:1;4406:5;;4341:80;4440:4;4430:76;;-1:-1:-1;4477:1:1;4491:5;;4430:76;4522:4;4540:1;4535:59;;;;4608:1;4603:174;;;;4515:262;;4535:59;4565:1;4556:10;;4579:5;;;4603:174;4640:3;4630:8;4627:17;4624:43;;;4647:18;;:::i;:::-;-1:-1:-1;;4703:1:1;4689:16;;4762:5;;4515:262;;4861:2;4851:8;4848:16;4842:3;4836:4;4833:13;4829:36;4823:2;4813:8;4810:16;4805:2;4799:4;4796:12;4792:35;4789:77;4786:203;;;-1:-1:-1;4898:19:1;;;4974:5;;4786:203;5021:42;-1:-1:-1;;5046:8:1;5040:4;5021:42;:::i;:::-;5099:6;5095:1;5091:6;5087:19;5078:7;5075:32;5072:58;;;5110:18;;:::i;:::-;5148:20;;4272:902;-1:-1:-1;;;4272:902:1:o;5179:140::-;5237:5;5266:47;5307:4;5297:8;5293:19;5287:4;5266:47;:::i;5324:168::-;5397:9;;;5428;;5445:15;;;5439:22;;5425:37;5415:71;;5466:18;;:::i;6061:127::-;6122:10;6117:3;6113:20;6110:1;6103:31;6153:4;6150:1;6143:15;6177:4;6174:1;6167:15;6319:518;6421:2;6416:3;6413:11;6410:421;;;6457:5;6454:1;6447:16;6501:4;6498:1;6488:18;6571:2;6559:10;6555:19;6552:1;6548:27;6542:4;6538:38;6607:4;6595:10;6592:20;6589:47;;;-1:-1:-1;6630:4:1;6589:47;6685:2;6680:3;6676:12;6673:1;6669:20;6663:4;6659:31;6649:41;;6740:81;6758:2;6751:5;6748:13;6740:81;;;6817:1;6803:16;;6784:1;6773:13;6740:81;;7013:1299;7139:3;7133:10;7166:18;7158:6;7155:30;7152:56;;;7188:18;;:::i;:::-;7217:97;7307:6;7267:38;7299:4;7293:11;7267:38;:::i;:::-;7261:4;7217:97;:::i;:::-;7363:4;7394:2;7383:14;;7411:1;7406:649;;;;8099:1;8116:6;8113:89;;;-1:-1:-1;8168:19:1;;;8162:26;8113:89;-1:-1:-1;;6970:1:1;6966:11;;;6962:24;6958:29;6948:40;6994:1;6990:11;;;6945:57;8215:81;;7376:930;;7406:649;6266:1;6259:14;;;6303:4;6290:18;;-1:-1:-1;;7442:20:1;;;7560:222;7574:7;7571:1;7568:14;7560:222;;;7656:19;;;7650:26;7635:42;;7763:4;7748:20;;;;7716:1;7704:14;;;;7590:12;7560:222;;;7564:3;7810:6;7801:7;7798:19;7795:201;;;7871:19;;;7865:26;-1:-1:-1;;7954:1:1;7950:14;;;7966:3;7946:24;7942:37;7938:42;7923:58;7908:74;;7795:201;-1:-1:-1;;;;8042:1:1;8026:14;;;8022:22;8009:36;;-1:-1:-1;7013:1299:1:o
Swarm Source
ipfs://76d407d77b2df15c3569ba7b168ed75144a4e7311ad5b4fddb1f85075ddeb8f4
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.