ERC-20
Overview
Max Total Supply
603,165 AGC
Holders
106
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
AGC
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity >=0.8.9 <0.9.0; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "../contracts/Delegated.sol"; /* ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ¦βββββββββββββββββ ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ¦βββββββββββββββββ ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ββββββββββββββββββββββββββββββββββββββββββββββββββ ββββββββββββββββββββββββββββββββββββββββββββββββββ ββββββββββββββββββββββββββββββββββββββββββββββββββ ββββββββββββββββββββββββββββββββββββββββββββββββββ ββββββββββββββββββββββββββββββββββββββββββββββββββ ββββββββββββββββββββββββββββββββββββββββββββββββββ */ // @title Art Tokyo Global // @author 0xjikangu // @notice This is the ERC20 AGC Token Smart Contract contract AGC is ERC20Burnable, Delegated, Pausable { using Address for address; bytes32 public merkleRoot; address public treasuryAddress = 0xA107E9f9D382244F3a669340cf53014ABbc58629; uint256 public maxSupply = ( 999999999 * 10**uint(decimals()) ); /** * @dev Claim Token Structure */ struct ClaimToken { uint256 claimQty; } /** * @dev Mapping of the owner's address with claimQty */ mapping(address => ClaimToken) public ClaimedToken; constructor() ERC20("AGC", "AGC") { } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the totalSupply but not exceeding maxSupply * * Emits a {Transfer} event with `from` set to the zero address. */ function claim(address toAddress, uint256 amount) external onlyDelegates { require( totalSupply() + amount * 10**uint(decimals()) <= maxSupply, "ATG: TotalSupply is capped"); _mint(toAddress, amount * 10**uint(decimals()) ); } /** * @dev OnlyDelegates/Owner can burn `amount` tokens. * * See {ERC20-_burn}. */ function burn(uint256 amount) public override onlyDelegates { _burn(_msgSender(), amount * 10**uint(decimals())); } /** * @dev OnlyDelegates/Owner can burn `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public override onlyDelegates { _spendAllowance(account, _msgSender(), amount); _burn(account, amount * 10**uint(decimals())); } /** * @dev Only Delegates/Owner can set the Merkleroot */ function setMerkleRoot(bytes32 _merkleRoot) external onlyDelegates { require(merkleRoot != _merkleRoot,"ATG: Merkle root is the same as the previous merkleRoot"); merkleRoot = _merkleRoot; } /** * @dev Only Delegates/Owner can perform massPublicClaim */ function massTokenDrop(address[] memory _toAddress, uint256[] memory _amounts) external onlyDelegates { require(_toAddress.length == _amounts.length, "ATG: toAddress and Amounts length does not tally!"); for (uint256 i = 0; i < _toAddress.length; i++) { require( totalSupply() + _amounts[i] * 10**uint(decimals()) <= maxSupply, "ATG: TotalSupply is capped"); _mint(_toAddress[i], _amounts[i] * 10**uint(decimals())); } } /** * @dev Only Delegates/Owner can perform massTransfer */ function massTransfer(address[] memory _fromAddress, address[] memory _toAddress, uint256[] memory _amounts) external onlyDelegates { require(_fromAddress.length == _toAddress.length && _fromAddress.length == _amounts.length, "ATG: fromAddress && toAddress && Amounts length does not tally!"); for (uint256 i = 0; i < _fromAddress.length; i++) { transferFrom(_fromAddress[i], _toAddress[i], _amounts[i]); } } /** * @dev Public can perform claimToken if they are one of the collection's holder * Snapshot is done daily to determine if they are in the claim list * Amount is determine by the number of ATG's Collections NFT holding and assigned accordingly */ function claimToken(uint256 _claimAmt, uint256 _totalClaimAmt, bytes32[] calldata _merkleProof, bytes32 _leaf) public whenNotPaused { require( totalSupply() + _claimAmt * 10**uint(decimals()) <= maxSupply, "ATG: TotalSupply is capped"); require(keccak256(abi.encodePacked(convertQtyWithOwnerToStr(_totalClaimAmt,msg.sender))) == _leaf,"ATG: Invalid of totalClaimAmt to merkleLeafNode!"); require((ClaimedToken[msg.sender].claimQty + _claimAmt) <= _totalClaimAmt,"ATG: claimQty && claimAmt must not greater than totalClaimAmt!"); require( MerkleProof.verify(_merkleProof,merkleRoot, _leaf),"ATG: Invalid MerkleProof!"); _mint(msg.sender,_claimAmt * 10**uint(decimals()) ); ClaimedToken[msg.sender].claimQty += _claimAmt; } /** * @dev Conversion of amt && owner address to string */ function convertQtyWithOwnerToStr(uint256 _amounts, address _ownerAddress) internal pure returns(string memory) { string memory _amtToStr = Strings.toString(_amounts); string memory _ownerAddressToStr = Strings.toHexString(uint256(uint160(_ownerAddress)), 20); return string(abi.encodePacked(_amtToStr,_ownerAddressToStr)); } /** * @dev Only Owner can set the Treasury Wallet Account */ function setTreasuryAddress(address _treasuryAddress) external onlyOwner { require(treasuryAddress != _treasuryAddress, "ATG: Treasury Address must not be the same as previous!"); treasuryAddress = _treasuryAddress; } /** * @dev Anyone can transfer to Treasury Wallet Account. */ function transferToTreasury(uint256 amounts) external { transfer(treasuryAddress,amounts * 10**uint(decimals()) ); } /** * @dev Only Delegates/Owner can perform pause */ function pause() public onlyDelegates { _pause(); } /** * @dev Only Delegates/Owner can perform unpause */ function unpause() public onlyDelegates { _unpause(); } function _beforeTokenTransfer(address from, address to, uint256 amount) internal whenNotPaused override { super._beforeTokenTransfer(from, to, amount); } function setMaxSupply(uint256 _maxSupply) public onlyOwner { maxSupply = ( _maxSupply * 10**uint(decimals()) ); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. 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; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @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 { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing 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 { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.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}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * 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]. * * 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. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * 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 override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override 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 value {ERC20} uses, unless this function is * 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 override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override 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 `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` 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 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); 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 `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `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. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by // decrementing then incrementing. _balances[to] += amount; } emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _balances[account] += amount; } emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; // Overflow not possible: amount <= accountBalance <= totalSupply. _totalSupply -= amount; } emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` 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. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol) pragma solidity ^0.8.0; import "../ERC20.sol"; import "../../../utils/Context.sol"; /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public virtual { _spendAllowance(account, _msgSender(), amount); _burn(account, amount); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The tree and the proofs can be generated using our * https://github.com/OpenZeppelin/merkle-tree[JavaScript library]. * You will find a quickstart guide in the readme. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. * OpenZeppelin's JavaScript library generates merkle trees that are safe * against this attack out of the box. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false * respectively. * * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer). * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @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 up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (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; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 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. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); 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 (rounding == Rounding.Up && 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 down. * * 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 + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * 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 + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * 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 + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * 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 10, 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 + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @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), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @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) { 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] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); 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); } }
// SPDX-License-Identifier: BSD-3-Clause pragma solidity ^0.8.9; import "@openzeppelin/contracts/access/Ownable.sol"; contract Delegated is Ownable { mapping(address => bool) internal _delegates; constructor(){ _delegates[owner()] = true; } modifier onlyDelegates { require(_delegates[msg.sender], "Invalid delegate" ); _; } //onlyOwner function isDelegate( address addr ) external view onlyOwner returns ( bool ){ return _delegates[addr]; } function setDelegate( address addr, bool isDelegate_ ) external onlyOwner{ _delegates[addr] = isDelegate_; } function transferOwnership(address newOwner) public virtual override onlyOwner { _delegates[newOwner] = true; super.transferOwnership( newOwner ); } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"ClaimedToken","outputs":[{"internalType":"uint256","name":"claimQty","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":"amount","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":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"toAddress","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_claimAmt","type":"uint256"},{"internalType":"uint256","name":"_totalClaimAmt","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"bytes32","name":"_leaf","type":"bytes32"}],"name":"claimToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"isDelegate","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_toAddress","type":"address[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"massTokenDrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_fromAddress","type":"address[]"},{"internalType":"address[]","name":"_toAddress","type":"address[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"massTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"bool","name":"isDelegate_","type":"bool"}],"name":"setDelegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasuryAddress","type":"address"}],"name":"setTreasuryAddress","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":"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"},{"inputs":[{"internalType":"uint256","name":"amounts","type":"uint256"}],"name":"transferToTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasuryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052600980546001600160a01b03191673a107e9f9d382244f3a669340cf53014abbc5862917905562000033601290565b620000439060ff16600a62000347565b6200005390633b9ac9ff6200035c565b600a553480156200006357600080fd5b506040518060400160405280600381526020016241474360e81b8152506040518060400160405280600381526020016241474360e81b8152508160039080519060200190620000b49291906200018c565b508051620000ca9060049060208401906200018c565b505050620000e7620000e16200013660201b60201c565b6200013a565b600160066000620001006005546001600160a01b031690565b6001600160a01b031681526020810191909152604001600020805491151560ff19928316179055600780549091169055620003ba565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200019a906200037e565b90600052602060002090601f016020900481019282620001be576000855562000209565b82601f10620001d957805160ff191683800117855562000209565b8280016001018555821562000209579182015b8281111562000209578251825591602001919060010190620001ec565b50620002179291506200021b565b5090565b5b808211156200021757600081556001016200021c565b634e487b7160e01b600052601160045260246000fd5b600181815b80851115620002895781600019048211156200026d576200026d62000232565b808516156200027b57918102915b93841c93908002906200024d565b509250929050565b600082620002a25750600162000341565b81620002b15750600062000341565b8160018114620002ca5760028114620002d557620002f5565b600191505062000341565b60ff841115620002e957620002e962000232565b50506001821b62000341565b5060208310610133831016604e8410600b84101617156200031a575081810a62000341565b62000326838362000248565b80600019048211156200033d576200033d62000232565b0290505b92915050565b600062000355838362000291565b9392505050565b600081600019048311821515161562000379576200037962000232565b500290565b600181811c908216806200039357607f821691505b602082108103620003b457634e487b7160e01b600052602260045260246000fd5b50919050565b61216980620003ca6000396000f3fe608060405234801561001057600080fd5b50600436106101fb5760003560e01c8063715018a61161011a578063a457c2d7116100ad578063d5abeb011161007c578063d5abeb0114610423578063dd62ed3e1461042c578063de5a265d1461043f578063f2fde38b14610452578063f5237b5d1461046557600080fd5b8063a457c2d7146103d7578063a9059cbb146103ea578063aad3ec96146103fd578063c5f956af1461041057600080fd5b8063809a049a116100e9578063809a049a146103825780638456cb59146103a25780638da5cb5b146103aa57806395d89b41146103cf57600080fd5b8063715018a614610341578063782baa9f1461034957806379cc67901461035c5780637cb647591461036f57600080fd5b806339509351116101925780635c975abb116101615780635c975abb146102e75780636605bfda146102f25780636f8b44b01461030557806370a082311461031857600080fd5b806339509351146102a65780633f4ba83a146102b957806342966c68146102c15780634a994eef146102d457600080fd5b806318160ddd116101ce57806318160ddd1461026957806323b872dd1461027b5780632eb4a7ab1461028e578063313ce5671461029757600080fd5b8063063d11de1461020057806306fdde03146102155780630777962714610233578063095ea7b314610256575b600080fd5b61021361020e366004611a9c565b610478565b005b61021d6104a2565b60405161022a9190611ae1565b60405180910390f35b610246610241366004611b2b565b610534565b604051901515815260200161022a565b610246610264366004611b46565b610561565b6002545b60405190815260200161022a565b610246610289366004611b70565b61057b565b61026d60085481565b6040516012815260200161022a565b6102466102b4366004611b46565b61059f565b6102136105c1565b6102136102cf366004611a9c565b610603565b6102136102e2366004611bac565b610659565b60075460ff16610246565b610213610300366004611b2b565b61068c565b610213610313366004611a9c565b610739565b61026d610326366004611b2b565b6001600160a01b031660009081526020819052604090205490565b61021361075d565b610213610357366004611be8565b61076f565b61021361036a366004611b46565b6109be565b61021361037d366004611a9c565b610a03565b61026d610390366004611b2b565b600b6020526000908152604090205481565b610213610aae565b6005546001600160a01b03165b6040516001600160a01b03909116815260200161022a565b61021d610ae5565b6102466103e5366004611b46565b610af4565b6102466103f8366004611b46565b610b6f565b61021361040b366004611b46565b610b7d565b6009546103b7906001600160a01b031681565b61026d600a5481565b61026d61043a366004611c73565b610c0e565b61021361044d366004611dde565b610c39565b610213610460366004611b2b565b610d67565b610213610473366004611e66565b610d9b565b60095461049e906001600160a01b03166104946012600a611fc4565b6103f89084611fd0565b5050565b6060600380546104b190611fef565b80601f01602080910402602001604051908101604052809291908181526020018280546104dd90611fef565b801561052a5780601f106104ff5761010080835404028352916020019161052a565b820191906000526020600020905b81548152906001019060200180831161050d57829003601f168201915b5050505050905090565b600061053e610f11565b506001600160a01b03811660009081526006602052604090205460ff165b919050565b60003361056f818585610f6b565b60019150505b92915050565b60003361058985828561108f565b610594858585611103565b506001949350505050565b60003361056f8185856105b28383610c0e565b6105bc9190612029565b610f6b565b3360009081526006602052604090205460ff166105f95760405162461bcd60e51b81526004016105f090612041565b60405180910390fd5b6106016112b2565b565b3360009081526006602052604090205460ff166106325760405162461bcd60e51b81526004016105f090612041565b6106563360125b6106479060ff16600a611fc4565b6106519084611fd0565b611304565b50565b610661610f11565b6001600160a01b03919091166000908152600660205260409020805460ff1916911515919091179055565b610694610f11565b6009546001600160a01b038083169116036107175760405162461bcd60e51b815260206004820152603760248201527f4154473a2054726561737572792041646472657373206d757374206e6f74206260448201527f65207468652073616d652061732070726576696f75732100000000000000000060648201526084016105f0565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b610741610f11565b61074d6012600a611fc4565b6107579082611fd0565b600a5550565b610765610f11565b6106016000611442565b610777611494565b600a54601261078a9060ff16600a611fc4565b6107949087611fd0565b6002546107a19190612029565b11156107bf5760405162461bcd60e51b81526004016105f09061206b565b806107ca85336114da565b6040516020016107da91906120a2565b60405160208183030381529060405280519060200120146108565760405162461bcd60e51b815260206004820152603060248201527f4154473a20496e76616c6964206f6620746f74616c436c61696d416d7420746f60448201526f206d65726b6c654c6561664e6f64652160801b60648201526084016105f0565b336000908152600b60205260409020548490610873908790612029565b11156108e75760405162461bcd60e51b815260206004820152603e60248201527f4154473a20636c61696d51747920262620636c61696d416d74206d757374206e60448201527f6f742067726561746572207468616e20746f74616c436c61696d416d7421000060648201526084016105f0565b61092883838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600854915084905061152d565b6109745760405162461bcd60e51b815260206004820152601960248201527f4154473a20496e76616c6964204d65726b6c6550726f6f66210000000000000060448201526064016105f0565b610993336109846012600a611fc4565b61098e9088611fd0565b611543565b336000908152600b6020526040812080548792906109b2908490612029565b90915550505050505050565b3360009081526006602052604090205460ff166109ed5760405162461bcd60e51b81526004016105f090612041565b6109f882338361108f565b61049e826012610639565b3360009081526006602052604090205460ff16610a325760405162461bcd60e51b81526004016105f090612041565b8060085403610aa95760405162461bcd60e51b815260206004820152603760248201527f4154473a204d65726b6c6520726f6f74206973207468652073616d652061732060448201527f7468652070726576696f7573206d65726b6c65526f6f7400000000000000000060648201526084016105f0565b600855565b3360009081526006602052604090205460ff16610add5760405162461bcd60e51b81526004016105f090612041565b61060161160e565b6060600480546104b190611fef565b60003381610b028286610c0e565b905083811015610b625760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016105f0565b6105948286868403610f6b565b60003361056f818585611103565b3360009081526006602052604090205460ff16610bac5760405162461bcd60e51b81526004016105f090612041565b600a546012610bbf9060ff16600a611fc4565b610bc99083611fd0565b600254610bd69190612029565b1115610bf45760405162461bcd60e51b81526004016105f09061206b565b61049e82610c046012600a611fc4565b61098e9084611fd0565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3360009081526006602052604090205460ff16610c685760405162461bcd60e51b81526004016105f090612041565b81518351148015610c7a575080518351145b610cec5760405162461bcd60e51b815260206004820152603f60248201527f4154473a2066726f6d4164647265737320262620746f4164647265737320262660448201527f20416d6f756e7473206c656e67746820646f6573206e6f742074616c6c79210060648201526084016105f0565b60005b8351811015610d6157610d4e848281518110610d0d57610d0d6120be565b6020026020010151848381518110610d2757610d276120be565b6020026020010151848481518110610d4157610d416120be565b602002602001015161057b565b5080610d59816120d4565b915050610cef565b50505050565b610d6f610f11565b6001600160a01b0381166000908152600660205260409020805460ff191660011790556106568161164b565b3360009081526006602052604090205460ff16610dca5760405162461bcd60e51b81526004016105f090612041565b8051825114610e355760405162461bcd60e51b815260206004820152603160248201527f4154473a20746f4164647265737320616e6420416d6f756e7473206c656e67746044820152706820646f6573206e6f742074616c6c792160781b60648201526084016105f0565b60005b8251811015610f0c57600a546012610e549060ff16600a611fc4565b838381518110610e6657610e666120be565b6020026020010151610e789190611fd0565b600254610e859190612029565b1115610ea35760405162461bcd60e51b81526004016105f09061206b565b610efa838281518110610eb857610eb86120be565b6020026020010151610ec8601290565b610ed69060ff16600a611fc4565b848481518110610ee857610ee86120be565b602002602001015161098e9190611fd0565b80610f04816120d4565b915050610e38565b505050565b6005546001600160a01b031633146106015760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105f0565b6001600160a01b038316610fcd5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016105f0565b6001600160a01b03821661102e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016105f0565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b600061109b8484610c0e565b90506000198114610d6157818110156110f65760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016105f0565b610d618484848403610f6b565b6001600160a01b0383166111675760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016105f0565b6001600160a01b0382166111c95760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016105f0565b6111d48383836116c1565b6001600160a01b0383166000908152602081905260409020548181101561124c5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016105f0565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610d61565b6112ba6116c9565b6007805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b0382166113645760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016105f0565b611370826000836116c1565b6001600160a01b038216600090815260208190526040902054818110156113e45760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016105f0565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60075460ff16156106015760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016105f0565b606060006114e784611712565b905060006114ff846001600160a01b031660146117a5565b905081816040516020016115149291906120ed565b6040516020818303038152906040529250505092915050565b60008261153a8584611948565b14949350505050565b6001600160a01b0382166115995760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016105f0565b6115a5600083836116c1565b80600260008282546115b79190612029565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b611616611494565b6007805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586112e73390565b611653610f11565b6001600160a01b0381166116b85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105f0565b61065681611442565b610f0c611494565b60075460ff166106015760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016105f0565b6060600061171f83611995565b600101905060008167ffffffffffffffff81111561173f5761173f611ca6565b6040519080825280601f01601f191660200182016040528015611769576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461177357509392505050565b606060006117b4836002611fd0565b6117bf906002612029565b67ffffffffffffffff8111156117d7576117d7611ca6565b6040519080825280601f01601f191660200182016040528015611801576020820181803683370190505b509050600360fc1b8160008151811061181c5761181c6120be565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061184b5761184b6120be565b60200101906001600160f81b031916908160001a905350600061186f846002611fd0565b61187a906001612029565b90505b60018111156118f2576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106118ae576118ae6120be565b1a60f81b8282815181106118c4576118c46120be565b60200101906001600160f81b031916908160001a90535060049490941c936118eb8161211c565b905061187d565b5083156119415760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016105f0565b9392505050565b600081815b845181101561198d576119798286838151811061196c5761196c6120be565b6020026020010151611a6d565b915080611985816120d4565b91505061194d565b509392505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106119d45772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611a00576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310611a1e57662386f26fc10000830492506010015b6305f5e1008310611a36576305f5e100830492506008015b6127108310611a4a57612710830492506004015b60648310611a5c576064830492506002015b600a83106105755760010192915050565b6000818310611a89576000828152602084905260409020611941565b6000838152602083905260409020611941565b600060208284031215611aae57600080fd5b5035919050565b60005b83811015611ad0578181015183820152602001611ab8565b83811115610d615750506000910152565b6020815260008251806020840152611b00816040850160208701611ab5565b601f01601f19169190910160400192915050565b80356001600160a01b038116811461055c57600080fd5b600060208284031215611b3d57600080fd5b61194182611b14565b60008060408385031215611b5957600080fd5b611b6283611b14565b946020939093013593505050565b600080600060608486031215611b8557600080fd5b611b8e84611b14565b9250611b9c60208501611b14565b9150604084013590509250925092565b60008060408385031215611bbf57600080fd5b611bc883611b14565b915060208301358015158114611bdd57600080fd5b809150509250929050565b600080600080600060808688031215611c0057600080fd5b8535945060208601359350604086013567ffffffffffffffff80821115611c2657600080fd5b818801915088601f830112611c3a57600080fd5b813581811115611c4957600080fd5b8960208260051b8501011115611c5e57600080fd5b96999598505060200195606001359392505050565b60008060408385031215611c8657600080fd5b611c8f83611b14565b9150611c9d60208401611b14565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611ce557611ce5611ca6565b604052919050565b600067ffffffffffffffff821115611d0757611d07611ca6565b5060051b60200190565b600082601f830112611d2257600080fd5b81356020611d37611d3283611ced565b611cbc565b82815260059290921b84018101918181019086841115611d5657600080fd5b8286015b84811015611d7857611d6b81611b14565b8352918301918301611d5a565b509695505050505050565b600082601f830112611d9457600080fd5b81356020611da4611d3283611ced565b82815260059290921b84018101918181019086841115611dc357600080fd5b8286015b84811015611d785780358352918301918301611dc7565b600080600060608486031215611df357600080fd5b833567ffffffffffffffff80821115611e0b57600080fd5b611e1787838801611d11565b94506020860135915080821115611e2d57600080fd5b611e3987838801611d11565b93506040860135915080821115611e4f57600080fd5b50611e5c86828701611d83565b9150509250925092565b60008060408385031215611e7957600080fd5b823567ffffffffffffffff80821115611e9157600080fd5b611e9d86838701611d11565b93506020850135915080821115611eb357600080fd5b50611ec085828601611d83565b9150509250929050565b634e487b7160e01b600052601160045260246000fd5b600181815b80851115611f1b578160001904821115611f0157611f01611eca565b80851615611f0e57918102915b93841c9390800290611ee5565b509250929050565b600082611f3257506001610575565b81611f3f57506000610575565b8160018114611f555760028114611f5f57611f7b565b6001915050610575565b60ff841115611f7057611f70611eca565b50506001821b610575565b5060208310610133831016604e8410600b8410161715611f9e575081810a610575565b611fa88383611ee0565b8060001904821115611fbc57611fbc611eca565b029392505050565b60006119418383611f23565b6000816000190483118215151615611fea57611fea611eca565b500290565b600181811c9082168061200357607f821691505b60208210810361202357634e487b7160e01b600052602260045260246000fd5b50919050565b6000821982111561203c5761203c611eca565b500190565b60208082526010908201526f496e76616c69642064656c656761746560801b604082015260600190565b6020808252601a908201527f4154473a20546f74616c537570706c7920697320636170706564000000000000604082015260600190565b600082516120b4818460208701611ab5565b9190910192915050565b634e487b7160e01b600052603260045260246000fd5b6000600182016120e6576120e6611eca565b5060010190565b600083516120ff818460208801611ab5565b835190830190612113818360208801611ab5565b01949350505050565b60008161212b5761212b611eca565b50600019019056fea2646970667358221220352a5a0f8aef9fd8f3ecebd31dd555915f90e2af6bbd90dda5c7c17c9d3d785664736f6c634300080d0033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101fb5760003560e01c8063715018a61161011a578063a457c2d7116100ad578063d5abeb011161007c578063d5abeb0114610423578063dd62ed3e1461042c578063de5a265d1461043f578063f2fde38b14610452578063f5237b5d1461046557600080fd5b8063a457c2d7146103d7578063a9059cbb146103ea578063aad3ec96146103fd578063c5f956af1461041057600080fd5b8063809a049a116100e9578063809a049a146103825780638456cb59146103a25780638da5cb5b146103aa57806395d89b41146103cf57600080fd5b8063715018a614610341578063782baa9f1461034957806379cc67901461035c5780637cb647591461036f57600080fd5b806339509351116101925780635c975abb116101615780635c975abb146102e75780636605bfda146102f25780636f8b44b01461030557806370a082311461031857600080fd5b806339509351146102a65780633f4ba83a146102b957806342966c68146102c15780634a994eef146102d457600080fd5b806318160ddd116101ce57806318160ddd1461026957806323b872dd1461027b5780632eb4a7ab1461028e578063313ce5671461029757600080fd5b8063063d11de1461020057806306fdde03146102155780630777962714610233578063095ea7b314610256575b600080fd5b61021361020e366004611a9c565b610478565b005b61021d6104a2565b60405161022a9190611ae1565b60405180910390f35b610246610241366004611b2b565b610534565b604051901515815260200161022a565b610246610264366004611b46565b610561565b6002545b60405190815260200161022a565b610246610289366004611b70565b61057b565b61026d60085481565b6040516012815260200161022a565b6102466102b4366004611b46565b61059f565b6102136105c1565b6102136102cf366004611a9c565b610603565b6102136102e2366004611bac565b610659565b60075460ff16610246565b610213610300366004611b2b565b61068c565b610213610313366004611a9c565b610739565b61026d610326366004611b2b565b6001600160a01b031660009081526020819052604090205490565b61021361075d565b610213610357366004611be8565b61076f565b61021361036a366004611b46565b6109be565b61021361037d366004611a9c565b610a03565b61026d610390366004611b2b565b600b6020526000908152604090205481565b610213610aae565b6005546001600160a01b03165b6040516001600160a01b03909116815260200161022a565b61021d610ae5565b6102466103e5366004611b46565b610af4565b6102466103f8366004611b46565b610b6f565b61021361040b366004611b46565b610b7d565b6009546103b7906001600160a01b031681565b61026d600a5481565b61026d61043a366004611c73565b610c0e565b61021361044d366004611dde565b610c39565b610213610460366004611b2b565b610d67565b610213610473366004611e66565b610d9b565b60095461049e906001600160a01b03166104946012600a611fc4565b6103f89084611fd0565b5050565b6060600380546104b190611fef565b80601f01602080910402602001604051908101604052809291908181526020018280546104dd90611fef565b801561052a5780601f106104ff5761010080835404028352916020019161052a565b820191906000526020600020905b81548152906001019060200180831161050d57829003601f168201915b5050505050905090565b600061053e610f11565b506001600160a01b03811660009081526006602052604090205460ff165b919050565b60003361056f818585610f6b565b60019150505b92915050565b60003361058985828561108f565b610594858585611103565b506001949350505050565b60003361056f8185856105b28383610c0e565b6105bc9190612029565b610f6b565b3360009081526006602052604090205460ff166105f95760405162461bcd60e51b81526004016105f090612041565b60405180910390fd5b6106016112b2565b565b3360009081526006602052604090205460ff166106325760405162461bcd60e51b81526004016105f090612041565b6106563360125b6106479060ff16600a611fc4565b6106519084611fd0565b611304565b50565b610661610f11565b6001600160a01b03919091166000908152600660205260409020805460ff1916911515919091179055565b610694610f11565b6009546001600160a01b038083169116036107175760405162461bcd60e51b815260206004820152603760248201527f4154473a2054726561737572792041646472657373206d757374206e6f74206260448201527f65207468652073616d652061732070726576696f75732100000000000000000060648201526084016105f0565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b610741610f11565b61074d6012600a611fc4565b6107579082611fd0565b600a5550565b610765610f11565b6106016000611442565b610777611494565b600a54601261078a9060ff16600a611fc4565b6107949087611fd0565b6002546107a19190612029565b11156107bf5760405162461bcd60e51b81526004016105f09061206b565b806107ca85336114da565b6040516020016107da91906120a2565b60405160208183030381529060405280519060200120146108565760405162461bcd60e51b815260206004820152603060248201527f4154473a20496e76616c6964206f6620746f74616c436c61696d416d7420746f60448201526f206d65726b6c654c6561664e6f64652160801b60648201526084016105f0565b336000908152600b60205260409020548490610873908790612029565b11156108e75760405162461bcd60e51b815260206004820152603e60248201527f4154473a20636c61696d51747920262620636c61696d416d74206d757374206e60448201527f6f742067726561746572207468616e20746f74616c436c61696d416d7421000060648201526084016105f0565b61092883838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600854915084905061152d565b6109745760405162461bcd60e51b815260206004820152601960248201527f4154473a20496e76616c6964204d65726b6c6550726f6f66210000000000000060448201526064016105f0565b610993336109846012600a611fc4565b61098e9088611fd0565b611543565b336000908152600b6020526040812080548792906109b2908490612029565b90915550505050505050565b3360009081526006602052604090205460ff166109ed5760405162461bcd60e51b81526004016105f090612041565b6109f882338361108f565b61049e826012610639565b3360009081526006602052604090205460ff16610a325760405162461bcd60e51b81526004016105f090612041565b8060085403610aa95760405162461bcd60e51b815260206004820152603760248201527f4154473a204d65726b6c6520726f6f74206973207468652073616d652061732060448201527f7468652070726576696f7573206d65726b6c65526f6f7400000000000000000060648201526084016105f0565b600855565b3360009081526006602052604090205460ff16610add5760405162461bcd60e51b81526004016105f090612041565b61060161160e565b6060600480546104b190611fef565b60003381610b028286610c0e565b905083811015610b625760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016105f0565b6105948286868403610f6b565b60003361056f818585611103565b3360009081526006602052604090205460ff16610bac5760405162461bcd60e51b81526004016105f090612041565b600a546012610bbf9060ff16600a611fc4565b610bc99083611fd0565b600254610bd69190612029565b1115610bf45760405162461bcd60e51b81526004016105f09061206b565b61049e82610c046012600a611fc4565b61098e9084611fd0565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3360009081526006602052604090205460ff16610c685760405162461bcd60e51b81526004016105f090612041565b81518351148015610c7a575080518351145b610cec5760405162461bcd60e51b815260206004820152603f60248201527f4154473a2066726f6d4164647265737320262620746f4164647265737320262660448201527f20416d6f756e7473206c656e67746820646f6573206e6f742074616c6c79210060648201526084016105f0565b60005b8351811015610d6157610d4e848281518110610d0d57610d0d6120be565b6020026020010151848381518110610d2757610d276120be565b6020026020010151848481518110610d4157610d416120be565b602002602001015161057b565b5080610d59816120d4565b915050610cef565b50505050565b610d6f610f11565b6001600160a01b0381166000908152600660205260409020805460ff191660011790556106568161164b565b3360009081526006602052604090205460ff16610dca5760405162461bcd60e51b81526004016105f090612041565b8051825114610e355760405162461bcd60e51b815260206004820152603160248201527f4154473a20746f4164647265737320616e6420416d6f756e7473206c656e67746044820152706820646f6573206e6f742074616c6c792160781b60648201526084016105f0565b60005b8251811015610f0c57600a546012610e549060ff16600a611fc4565b838381518110610e6657610e666120be565b6020026020010151610e789190611fd0565b600254610e859190612029565b1115610ea35760405162461bcd60e51b81526004016105f09061206b565b610efa838281518110610eb857610eb86120be565b6020026020010151610ec8601290565b610ed69060ff16600a611fc4565b848481518110610ee857610ee86120be565b602002602001015161098e9190611fd0565b80610f04816120d4565b915050610e38565b505050565b6005546001600160a01b031633146106015760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105f0565b6001600160a01b038316610fcd5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016105f0565b6001600160a01b03821661102e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016105f0565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b600061109b8484610c0e565b90506000198114610d6157818110156110f65760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016105f0565b610d618484848403610f6b565b6001600160a01b0383166111675760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016105f0565b6001600160a01b0382166111c95760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016105f0565b6111d48383836116c1565b6001600160a01b0383166000908152602081905260409020548181101561124c5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016105f0565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610d61565b6112ba6116c9565b6007805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b0382166113645760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016105f0565b611370826000836116c1565b6001600160a01b038216600090815260208190526040902054818110156113e45760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016105f0565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60075460ff16156106015760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016105f0565b606060006114e784611712565b905060006114ff846001600160a01b031660146117a5565b905081816040516020016115149291906120ed565b6040516020818303038152906040529250505092915050565b60008261153a8584611948565b14949350505050565b6001600160a01b0382166115995760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016105f0565b6115a5600083836116c1565b80600260008282546115b79190612029565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b611616611494565b6007805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586112e73390565b611653610f11565b6001600160a01b0381166116b85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105f0565b61065681611442565b610f0c611494565b60075460ff166106015760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016105f0565b6060600061171f83611995565b600101905060008167ffffffffffffffff81111561173f5761173f611ca6565b6040519080825280601f01601f191660200182016040528015611769576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461177357509392505050565b606060006117b4836002611fd0565b6117bf906002612029565b67ffffffffffffffff8111156117d7576117d7611ca6565b6040519080825280601f01601f191660200182016040528015611801576020820181803683370190505b509050600360fc1b8160008151811061181c5761181c6120be565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061184b5761184b6120be565b60200101906001600160f81b031916908160001a905350600061186f846002611fd0565b61187a906001612029565b90505b60018111156118f2576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106118ae576118ae6120be565b1a60f81b8282815181106118c4576118c46120be565b60200101906001600160f81b031916908160001a90535060049490941c936118eb8161211c565b905061187d565b5083156119415760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016105f0565b9392505050565b600081815b845181101561198d576119798286838151811061196c5761196c6120be565b6020026020010151611a6d565b915080611985816120d4565b91505061194d565b509392505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106119d45772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611a00576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310611a1e57662386f26fc10000830492506010015b6305f5e1008310611a36576305f5e100830492506008015b6127108310611a4a57612710830492506004015b60648310611a5c576064830492506002015b600a83106105755760010192915050565b6000818310611a89576000828152602084905260409020611941565b6000838152602083905260409020611941565b600060208284031215611aae57600080fd5b5035919050565b60005b83811015611ad0578181015183820152602001611ab8565b83811115610d615750506000910152565b6020815260008251806020840152611b00816040850160208701611ab5565b601f01601f19169190910160400192915050565b80356001600160a01b038116811461055c57600080fd5b600060208284031215611b3d57600080fd5b61194182611b14565b60008060408385031215611b5957600080fd5b611b6283611b14565b946020939093013593505050565b600080600060608486031215611b8557600080fd5b611b8e84611b14565b9250611b9c60208501611b14565b9150604084013590509250925092565b60008060408385031215611bbf57600080fd5b611bc883611b14565b915060208301358015158114611bdd57600080fd5b809150509250929050565b600080600080600060808688031215611c0057600080fd5b8535945060208601359350604086013567ffffffffffffffff80821115611c2657600080fd5b818801915088601f830112611c3a57600080fd5b813581811115611c4957600080fd5b8960208260051b8501011115611c5e57600080fd5b96999598505060200195606001359392505050565b60008060408385031215611c8657600080fd5b611c8f83611b14565b9150611c9d60208401611b14565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611ce557611ce5611ca6565b604052919050565b600067ffffffffffffffff821115611d0757611d07611ca6565b5060051b60200190565b600082601f830112611d2257600080fd5b81356020611d37611d3283611ced565b611cbc565b82815260059290921b84018101918181019086841115611d5657600080fd5b8286015b84811015611d7857611d6b81611b14565b8352918301918301611d5a565b509695505050505050565b600082601f830112611d9457600080fd5b81356020611da4611d3283611ced565b82815260059290921b84018101918181019086841115611dc357600080fd5b8286015b84811015611d785780358352918301918301611dc7565b600080600060608486031215611df357600080fd5b833567ffffffffffffffff80821115611e0b57600080fd5b611e1787838801611d11565b94506020860135915080821115611e2d57600080fd5b611e3987838801611d11565b93506040860135915080821115611e4f57600080fd5b50611e5c86828701611d83565b9150509250925092565b60008060408385031215611e7957600080fd5b823567ffffffffffffffff80821115611e9157600080fd5b611e9d86838701611d11565b93506020850135915080821115611eb357600080fd5b50611ec085828601611d83565b9150509250929050565b634e487b7160e01b600052601160045260246000fd5b600181815b80851115611f1b578160001904821115611f0157611f01611eca565b80851615611f0e57918102915b93841c9390800290611ee5565b509250929050565b600082611f3257506001610575565b81611f3f57506000610575565b8160018114611f555760028114611f5f57611f7b565b6001915050610575565b60ff841115611f7057611f70611eca565b50506001821b610575565b5060208310610133831016604e8410600b8410161715611f9e575081810a610575565b611fa88383611ee0565b8060001904821115611fbc57611fbc611eca565b029392505050565b60006119418383611f23565b6000816000190483118215151615611fea57611fea611eca565b500290565b600181811c9082168061200357607f821691505b60208210810361202357634e487b7160e01b600052602260045260246000fd5b50919050565b6000821982111561203c5761203c611eca565b500190565b60208082526010908201526f496e76616c69642064656c656761746560801b604082015260600190565b6020808252601a908201527f4154473a20546f74616c537570706c7920697320636170706564000000000000604082015260600190565b600082516120b4818460208701611ab5565b9190910192915050565b634e487b7160e01b600052603260045260246000fd5b6000600182016120e6576120e6611eca565b5060010190565b600083516120ff818460208801611ab5565b835190830190612113818360208801611ab5565b01949350505050565b60008161212b5761212b611eca565b50600019019056fea2646970667358221220352a5a0f8aef9fd8f3ecebd31dd555915f90e2af6bbd90dda5c7c17c9d3d785664736f6c634300080d0033
Loading...
Loading
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.