ERC-20
Overview
Max Total Supply
41,179,956.0171378100001906 GHERO
Holders
670
Total Transfers
-
Market
Price
$0.00 @ 0.000000 POL
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
Contract Name:
GHToken
Compiler Version
v0.8.17+commit.8df45f5f
Contract Source Code (Solidity)
/** *Submitted for verification at polygonscan.com on 2022-12-21 */ // SPDX-License-Identifier: MIT // File: @openzeppelin/contracts/utils/structs/EnumerableSet.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/structs/EnumerableSet.sol) // This file was procedurally generated from scripts/generate/templates/EnumerableSet.js. pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. * * [WARNING] * ==== * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure * unusable. * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info. * * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an * array of EnumerableSet. * ==== */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastValue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastValue; // Update the index for the moved value set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { bytes32[] memory store = _values(set._inner); bytes32[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values in the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } } // File: @openzeppelin/contracts/utils/Context.sol // 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; } } // File: @openzeppelin/contracts/access/Ownable.sol // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @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); } } // File: @openzeppelin/contracts/token/ERC20/IERC20.sol // 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); } // File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; /** * @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); } // File: @openzeppelin/contracts/token/ERC20/ERC20.sol // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; /** * @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 {} } // File: GHToken.sol pragma solidity ^0.8.9; abstract contract AdminPayable is Context, Ownable{ using EnumerableSet for EnumerableSet.AddressSet; EnumerableSet.AddressSet private _admins; mapping(address => uint256) private adminShares; uint256 private totalShares = 0; function addAdmin(address admin_, uint256 shares_) external onlyOwner { if(!_admins.contains(admin_)){ _admins.add(admin_); } else { totalShares -= adminShares[admin_]; } adminShares[admin_] = shares_; totalShares += shares_; } function removeAdmin(address admin_) external onlyOwner { _admins.remove(admin_); totalShares -= adminShares[admin_]; delete adminShares[admin_]; } function getAdminsShare(uint256 amount_) public view returns (address[] memory admins, uint256[] memory values){ uint256 _adminReward = 0; address[] memory admins_ = new address[](_admins.length()); uint256[] memory values_ = new uint256[](_admins.length()); for(uint i=0 ; i<_admins.length(); i++) { admins_[i] = _admins.at(i); values_[i] = 0; unchecked { uint256 payment = (amount_ * adminShares[_admins.at(i)])/totalShares; values_[i] = payment; _adminReward += payment; } } uint256 leftover = amount_ - _adminReward; if(leftover > 0){ values_[0]+= leftover; } return (admins_,values_); } } /// @custom:security-contact [email protected] contract GHToken is ERC20, Ownable, AdminPayable { uint256 public maxMint; uint256 public vendingMachine; struct Currency { address contractAddress; uint256 cost; } mapping( string => Currency) public currency; constructor() ERC20("Gotchi Hero Token", "GHERO") { maxMint = 1000000000 * 10 ** decimals(); vendingMachine = 0; } //distribute tokens at price to function vend(uint256 amount_, string calldata type_) external { require( vendingMachine >= amount_ * 10 ** decimals(), "Not enough tokens to vend, not enough tokens stocked" ); require( currency[type_].contractAddress!=address(0), "We do not accept the given currency" ); ERC20 target = ERC20(currency[type_].contractAddress); address[] memory _admins; uint256[] memory _values; (_admins,_values) = getAdminsShare(amount_ * currency[type_].cost); for(uint256 j =0; j<_admins.length; j++){ target.transferFrom(msg.sender,_admins[j],_values[j]); } _mint(msg.sender, amount_ * 10 ** decimals()); vendingMachine -= amount_ * 10 ** decimals(); } //owner can distribute new tokens function freeVend(uint256 amount_, address target) external onlyOwner { require( maxMint >= totalSupply() + amount_, "Not enough tokens to vend, exceeds maximum supply" ); _mint(target, amount_); } //add to stock of vendable tokens function fillVendingMachine(uint256 amount_) external onlyOwner { require( maxMint >= totalSupply() + amount_, "Unable to add to vending machine, exceeds maximum supply" ); vendingMachine += amount_; } //add currency to set function addCurrency(string calldata name_, uint256 cost_, address currency_) external onlyOwner { currency[name_] = Currency(currency_, cost_); } function dropCurrency(string calldata name_) external onlyOwner { delete currency[name_]; } }
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":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"admin_","type":"address"},{"internalType":"uint256","name":"shares_","type":"uint256"}],"name":"addAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"uint256","name":"cost_","type":"uint256"},{"internalType":"address","name":"currency_","type":"address"}],"name":"addCurrency","outputs":[],"stateMutability":"nonpayable","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":"string","name":"","type":"string"}],"name":"currency","outputs":[{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"uint256","name":"cost","type":"uint256"}],"stateMutability":"view","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":"string","name":"name_","type":"string"}],"name":"dropCurrency","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount_","type":"uint256"}],"name":"fillVendingMachine","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount_","type":"uint256"},{"internalType":"address","name":"target","type":"address"}],"name":"freeVend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount_","type":"uint256"}],"name":"getAdminsShare","outputs":[{"internalType":"address[]","name":"admins","type":"address[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"stateMutability":"view","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":[],"name":"maxMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"address","name":"admin_","type":"address"}],"name":"removeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":"amount_","type":"uint256"},{"internalType":"string","name":"type_","type":"string"}],"name":"vend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vendingMachine","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405260006009553480156200001657600080fd5b506040518060400160405280601181526020017023b7ba31b434902432b937902a37b5b2b760791b81525060405180604001604052806005815260200164474845524f60d81b8152508160039081620000709190620001c3565b5060046200007f8282620001c3565b5050506200009c62000096620000c860201b60201c565b620000cc565b620000aa6012600a620003a4565b620000ba90633b9aca00620003bc565b600a556000600b55620003d6565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200014957607f821691505b6020821081036200016a57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620001be57600081815260208120601f850160051c81016020861015620001995750805b601f850160051c820191505b81811015620001ba57828155600101620001a5565b5050505b505050565b81516001600160401b03811115620001df57620001df6200011e565b620001f781620001f0845462000134565b8462000170565b602080601f8311600181146200022f5760008415620002165750858301515b600019600386901b1c1916600185901b178555620001ba565b600085815260208120601f198616915b8281101562000260578886015182559484019460019091019084016200023f565b50858210156200027f5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b600181815b80851115620002e6578160001904821115620002ca57620002ca6200028f565b80851615620002d857918102915b93841c9390800290620002aa565b509250929050565b600082620002ff575060016200039e565b816200030e575060006200039e565b8160018114620003275760028114620003325762000352565b60019150506200039e565b60ff8411156200034657620003466200028f565b50506001821b6200039e565b5060208310610133831016604e8410600b841016171562000377575081810a6200039e565b620003838383620002a5565b80600019048211156200039a576200039a6200028f565b0290505b92915050565b6000620003b560ff841683620002ee565b9392505050565b80820281158282048414176200039e576200039e6200028f565b611a0f80620003e66000396000f3fe608060405234801561001057600080fd5b50600436106101735760003560e01c806371403014116100de578063a457c2d711610097578063c434a11b11610071578063c434a11b1461036b578063dd62ed3e1461037e578063f25df53b14610391578063f2fde38b146103a457600080fd5b8063a457c2d714610324578063a9059cbb14610337578063bdeedc4d1461034a57600080fd5b806371403014146102ca578063715018a6146102dd5780637501f741146102e55780637fcb29c9146102ee5780638da5cb5b1461030157806395d89b411461031c57600080fd5b8063313ce56711610130578063313ce567146102065780633950935114610215578063424f4fef1461022857806354dff05d14610231578063657345011461028e57806370a08231146102a157600080fd5b8063038beba11461017857806306fdde031461018d578063095ea7b3146101ab5780631785f53c146101ce57806318160ddd146101e157806323b872dd146101f3575b600080fd5b61018b61018636600461143c565b6103b7565b005b6101956103fa565b6040516101a2919061147e565b60405180910390f35b6101be6101b93660046114e8565b61048c565b60405190151581526020016101a2565b61018b6101dc366004611512565b6104a6565b6002545b6040519081526020016101a2565b6101be61020136600461152d565b610505565b604051601281526020016101a2565b6101be6102233660046114e8565b610529565b6101e5600b5481565b61026f61023f36600461157f565b8051602081830181018051600c82529282019190930120915280546001909101546001600160a01b039091169082565b604080516001600160a01b0390931683526020830191909152016101a2565b61018b61029c366004611630565b61054b565b6101e56102af366004611512565b6001600160a01b031660009081526020819052604090205490565b61018b6102d836600461168d565b6105be565b61018b610872565b6101e5600a5481565b61018b6102fc3660046114e8565b610886565b6005546040516001600160a01b0390911681526020016101a2565b610195610916565b6101be6103323660046114e8565b610925565b6101be6103453660046114e8565b6109a0565b61035d6103583660046116d9565b6109ae565b6040516101a29291906116f2565b61018b610379366004611776565b610b8b565b6101e561038c3660046117a2565b610c20565b61018b61039f3660046116d9565b610c4b565b61018b6103b2366004611512565b610cf8565b6103bf610d71565b600c82826040516103d19291906117cc565b90815260405190819003602001902080546001600160a01b031916815560006001909101555050565b606060038054610409906117dc565b80601f0160208091040260200160405190810160405280929190818152602001828054610435906117dc565b80156104825780601f1061045757610100808354040283529160200191610482565b820191906000526020600020905b81548152906001019060200180831161046557829003601f168201915b5050505050905090565b60003361049a818585610dcb565b60019150505b92915050565b6104ae610d71565b6104b9600682610eef565b506001600160a01b03811660009081526008602052604081205460098054919290916104e690849061182c565b90915550506001600160a01b0316600090815260086020526040812055565b600033610513858285610f0b565b61051e858585610f85565b506001949350505050565b60003361049a81858561053c8383610c20565b610546919061183f565b610dcb565b610553610d71565b6040518060400160405280826001600160a01b0316815260200183815250600c85856040516105839291906117cc565b90815260405160209181900382019020825181546001600160a01b0319166001600160a01b0390911617815591015160019091015550505050565b6105ca6012600a611936565b6105d49084611945565b600b5410156106475760405162461bcd60e51b815260206004820152603460248201527f4e6f7420656e6f75676820746f6b656e7320746f2076656e642c206e6f7420656044820152731b9bdd59da081d1bdad95b9cc81cdd1bd8dad95960621b60648201526084015b60405180910390fd5b60006001600160a01b0316600c83836040516106649291906117cc565b908152604051908190036020019020546001600160a01b0316036106d65760405162461bcd60e51b815260206004820152602360248201527f576520646f206e6f74206163636570742074686520676976656e2063757272656044820152626e637960e81b606482015260840161063e565b6000600c83836040516106ea9291906117cc565b908152604051908190036020018120546001600160a01b03169150606090819061073b90600c9061071e90889088906117cc565b908152602001604051809103902060010154876103589190611945565b909250905060005b825181101561081e57836001600160a01b03166323b872dd3385848151811061076e5761076e61195c565b60200260200101518585815181106107885761078861195c565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af11580156107e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061080b9190611972565b508061081681611994565b915050610743565b5061083e3361082f6012600a611936565b6108399089611945565b611129565b61084a6012600a611936565b6108549087611945565b600b6000828254610865919061182c565b9091555050505050505050565b61087a610d71565b61088460006111e8565b565b61088e610d71565b61089960068361123a565b6108ae576108a860068361125c565b506108e0565b6001600160a01b03821660009081526008602052604081205460098054919290916108da90849061182c565b90915550505b6001600160a01b03821660009081526008602052604081208290556009805483929061090d90849061183f565b90915550505050565b606060048054610409906117dc565b600033816109338286610c20565b9050838110156109935760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161063e565b61051e8286868403610dcb565b60003361049a818585610f85565b6060806000806109be6006611271565b67ffffffffffffffff8111156109d6576109d6611569565b6040519080825280602002602001820160405280156109ff578160200160208202803683370190505b5090506000610a0e6006611271565b67ffffffffffffffff811115610a2657610a26611569565b604051908082528060200260200182016040528015610a4f578160200160208202803683370190505b50905060005b610a5f6006611271565b811015610b3e57610a7160068261127b565b838281518110610a8357610a8361195c565b60200260200101906001600160a01b031690816001600160a01b0316815250506000828281518110610ab757610ab761195c565b6020908102919091010152600954600090600882610ad660068661127b565b6001600160a01b03166001600160a01b0316815260200190815260200160002054890281610b0657610b066119ad565b04905080838381518110610b1c57610b1c61195c565b6020908102919091010152939093019280610b3681611994565b915050610a55565b506000610b4b848861182c565b90508015610b7f578082600081518110610b6757610b6761195c565b60200260200101818151610b7b919061183f565b9052505b50909590945092505050565b610b93610d71565b81610b9d60025490565b610ba7919061183f565b600a541015610c125760405162461bcd60e51b815260206004820152603160248201527f4e6f7420656e6f75676820746f6b656e7320746f2076656e642c2065786365656044820152706473206d6178696d756d20737570706c7960781b606482015260840161063e565b610c1c8183611129565b5050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610c53610d71565b80610c5d60025490565b610c67919061183f565b600a541015610cde5760405162461bcd60e51b815260206004820152603860248201527f556e61626c6520746f2061646420746f2076656e64696e67206d616368696e6560448201527f2c2065786365656473206d6178696d756d20737570706c790000000000000000606482015260840161063e565b80600b6000828254610cf0919061183f565b909155505050565b610d00610d71565b6001600160a01b038116610d655760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161063e565b610d6e816111e8565b50565b6005546001600160a01b031633146108845760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161063e565b6001600160a01b038316610e2d5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161063e565b6001600160a01b038216610e8e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161063e565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000610f04836001600160a01b038416611287565b9392505050565b6000610f178484610c20565b90506000198114610f7f5781811015610f725760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161063e565b610f7f8484848403610dcb565b50505050565b6001600160a01b038316610fe95760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161063e565b6001600160a01b03821661104b5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161063e565b6001600160a01b038316600090815260208190526040902054818110156110c35760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161063e565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610f7f565b6001600160a01b03821661117f5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161063e565b8060026000828254611191919061183f565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03811660009081526001830160205260408120541515610f04565b6000610f04836001600160a01b03841661137a565b60006104a0825490565b6000610f0483836113c9565b600081815260018301602052604081205480156113705760006112ab60018361182c565b85549091506000906112bf9060019061182c565b90508181146113245760008660000182815481106112df576112df61195c565b90600052602060002001549050808760000184815481106113025761130261195c565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080611335576113356119c3565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506104a0565b60009150506104a0565b60008181526001830160205260408120546113c1575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556104a0565b5060006104a0565b60008260000182815481106113e0576113e061195c565b9060005260206000200154905092915050565b60008083601f84011261140557600080fd5b50813567ffffffffffffffff81111561141d57600080fd5b60208301915083602082850101111561143557600080fd5b9250929050565b6000806020838503121561144f57600080fd5b823567ffffffffffffffff81111561146657600080fd5b611472858286016113f3565b90969095509350505050565b600060208083528351808285015260005b818110156114ab5785810183015185820160400152820161148f565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b03811681146114e357600080fd5b919050565b600080604083850312156114fb57600080fd5b611504836114cc565b946020939093013593505050565b60006020828403121561152457600080fd5b610f04826114cc565b60008060006060848603121561154257600080fd5b61154b846114cc565b9250611559602085016114cc565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b60006020828403121561159157600080fd5b813567ffffffffffffffff808211156115a957600080fd5b818401915084601f8301126115bd57600080fd5b8135818111156115cf576115cf611569565b604051601f8201601f19908116603f011681019083821181831017156115f7576115f7611569565b8160405282815287602084870101111561161057600080fd5b826020860160208301376000928101602001929092525095945050505050565b6000806000806060858703121561164657600080fd5b843567ffffffffffffffff81111561165d57600080fd5b611669878288016113f3565b90955093505060208501359150611682604086016114cc565b905092959194509250565b6000806000604084860312156116a257600080fd5b83359250602084013567ffffffffffffffff8111156116c057600080fd5b6116cc868287016113f3565b9497909650939450505050565b6000602082840312156116eb57600080fd5b5035919050565b604080825283519082018190526000906020906060840190828701845b828110156117345781516001600160a01b03168452928401929084019060010161170f565b5050508381038285015284518082528583019183019060005b818110156117695783518352928401929184019160010161174d565b5090979650505050505050565b6000806040838503121561178957600080fd5b82359150611799602084016114cc565b90509250929050565b600080604083850312156117b557600080fd5b6117be836114cc565b9150611799602084016114cc565b8183823760009101908152919050565b600181811c908216806117f057607f821691505b60208210810361181057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b818103818111156104a0576104a0611816565b808201808211156104a0576104a0611816565b600181815b8085111561188d57816000190482111561187357611873611816565b8085161561188057918102915b93841c9390800290611857565b509250929050565b6000826118a4575060016104a0565b816118b1575060006104a0565b81600181146118c757600281146118d1576118ed565b60019150506104a0565b60ff8411156118e2576118e2611816565b50506001821b6104a0565b5060208310610133831016604e8410600b8410161715611910575081810a6104a0565b61191a8383611852565b806000190482111561192e5761192e611816565b029392505050565b6000610f0460ff841683611895565b80820281158282048414176104a0576104a0611816565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561198457600080fd5b81518015158114610f0457600080fd5b6000600182016119a6576119a6611816565b5060010190565b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fdfea2646970667358221220ccc94fa93bc76e4b0c9316bf919889d69a756447335cd312790496674270e0c864736f6c63430008110033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101735760003560e01c806371403014116100de578063a457c2d711610097578063c434a11b11610071578063c434a11b1461036b578063dd62ed3e1461037e578063f25df53b14610391578063f2fde38b146103a457600080fd5b8063a457c2d714610324578063a9059cbb14610337578063bdeedc4d1461034a57600080fd5b806371403014146102ca578063715018a6146102dd5780637501f741146102e55780637fcb29c9146102ee5780638da5cb5b1461030157806395d89b411461031c57600080fd5b8063313ce56711610130578063313ce567146102065780633950935114610215578063424f4fef1461022857806354dff05d14610231578063657345011461028e57806370a08231146102a157600080fd5b8063038beba11461017857806306fdde031461018d578063095ea7b3146101ab5780631785f53c146101ce57806318160ddd146101e157806323b872dd146101f3575b600080fd5b61018b61018636600461143c565b6103b7565b005b6101956103fa565b6040516101a2919061147e565b60405180910390f35b6101be6101b93660046114e8565b61048c565b60405190151581526020016101a2565b61018b6101dc366004611512565b6104a6565b6002545b6040519081526020016101a2565b6101be61020136600461152d565b610505565b604051601281526020016101a2565b6101be6102233660046114e8565b610529565b6101e5600b5481565b61026f61023f36600461157f565b8051602081830181018051600c82529282019190930120915280546001909101546001600160a01b039091169082565b604080516001600160a01b0390931683526020830191909152016101a2565b61018b61029c366004611630565b61054b565b6101e56102af366004611512565b6001600160a01b031660009081526020819052604090205490565b61018b6102d836600461168d565b6105be565b61018b610872565b6101e5600a5481565b61018b6102fc3660046114e8565b610886565b6005546040516001600160a01b0390911681526020016101a2565b610195610916565b6101be6103323660046114e8565b610925565b6101be6103453660046114e8565b6109a0565b61035d6103583660046116d9565b6109ae565b6040516101a29291906116f2565b61018b610379366004611776565b610b8b565b6101e561038c3660046117a2565b610c20565b61018b61039f3660046116d9565b610c4b565b61018b6103b2366004611512565b610cf8565b6103bf610d71565b600c82826040516103d19291906117cc565b90815260405190819003602001902080546001600160a01b031916815560006001909101555050565b606060038054610409906117dc565b80601f0160208091040260200160405190810160405280929190818152602001828054610435906117dc565b80156104825780601f1061045757610100808354040283529160200191610482565b820191906000526020600020905b81548152906001019060200180831161046557829003601f168201915b5050505050905090565b60003361049a818585610dcb565b60019150505b92915050565b6104ae610d71565b6104b9600682610eef565b506001600160a01b03811660009081526008602052604081205460098054919290916104e690849061182c565b90915550506001600160a01b0316600090815260086020526040812055565b600033610513858285610f0b565b61051e858585610f85565b506001949350505050565b60003361049a81858561053c8383610c20565b610546919061183f565b610dcb565b610553610d71565b6040518060400160405280826001600160a01b0316815260200183815250600c85856040516105839291906117cc565b90815260405160209181900382019020825181546001600160a01b0319166001600160a01b0390911617815591015160019091015550505050565b6105ca6012600a611936565b6105d49084611945565b600b5410156106475760405162461bcd60e51b815260206004820152603460248201527f4e6f7420656e6f75676820746f6b656e7320746f2076656e642c206e6f7420656044820152731b9bdd59da081d1bdad95b9cc81cdd1bd8dad95960621b60648201526084015b60405180910390fd5b60006001600160a01b0316600c83836040516106649291906117cc565b908152604051908190036020019020546001600160a01b0316036106d65760405162461bcd60e51b815260206004820152602360248201527f576520646f206e6f74206163636570742074686520676976656e2063757272656044820152626e637960e81b606482015260840161063e565b6000600c83836040516106ea9291906117cc565b908152604051908190036020018120546001600160a01b03169150606090819061073b90600c9061071e90889088906117cc565b908152602001604051809103902060010154876103589190611945565b909250905060005b825181101561081e57836001600160a01b03166323b872dd3385848151811061076e5761076e61195c565b60200260200101518585815181106107885761078861195c565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af11580156107e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061080b9190611972565b508061081681611994565b915050610743565b5061083e3361082f6012600a611936565b6108399089611945565b611129565b61084a6012600a611936565b6108549087611945565b600b6000828254610865919061182c565b9091555050505050505050565b61087a610d71565b61088460006111e8565b565b61088e610d71565b61089960068361123a565b6108ae576108a860068361125c565b506108e0565b6001600160a01b03821660009081526008602052604081205460098054919290916108da90849061182c565b90915550505b6001600160a01b03821660009081526008602052604081208290556009805483929061090d90849061183f565b90915550505050565b606060048054610409906117dc565b600033816109338286610c20565b9050838110156109935760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161063e565b61051e8286868403610dcb565b60003361049a818585610f85565b6060806000806109be6006611271565b67ffffffffffffffff8111156109d6576109d6611569565b6040519080825280602002602001820160405280156109ff578160200160208202803683370190505b5090506000610a0e6006611271565b67ffffffffffffffff811115610a2657610a26611569565b604051908082528060200260200182016040528015610a4f578160200160208202803683370190505b50905060005b610a5f6006611271565b811015610b3e57610a7160068261127b565b838281518110610a8357610a8361195c565b60200260200101906001600160a01b031690816001600160a01b0316815250506000828281518110610ab757610ab761195c565b6020908102919091010152600954600090600882610ad660068661127b565b6001600160a01b03166001600160a01b0316815260200190815260200160002054890281610b0657610b066119ad565b04905080838381518110610b1c57610b1c61195c565b6020908102919091010152939093019280610b3681611994565b915050610a55565b506000610b4b848861182c565b90508015610b7f578082600081518110610b6757610b6761195c565b60200260200101818151610b7b919061183f565b9052505b50909590945092505050565b610b93610d71565b81610b9d60025490565b610ba7919061183f565b600a541015610c125760405162461bcd60e51b815260206004820152603160248201527f4e6f7420656e6f75676820746f6b656e7320746f2076656e642c2065786365656044820152706473206d6178696d756d20737570706c7960781b606482015260840161063e565b610c1c8183611129565b5050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610c53610d71565b80610c5d60025490565b610c67919061183f565b600a541015610cde5760405162461bcd60e51b815260206004820152603860248201527f556e61626c6520746f2061646420746f2076656e64696e67206d616368696e6560448201527f2c2065786365656473206d6178696d756d20737570706c790000000000000000606482015260840161063e565b80600b6000828254610cf0919061183f565b909155505050565b610d00610d71565b6001600160a01b038116610d655760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161063e565b610d6e816111e8565b50565b6005546001600160a01b031633146108845760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161063e565b6001600160a01b038316610e2d5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161063e565b6001600160a01b038216610e8e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161063e565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000610f04836001600160a01b038416611287565b9392505050565b6000610f178484610c20565b90506000198114610f7f5781811015610f725760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161063e565b610f7f8484848403610dcb565b50505050565b6001600160a01b038316610fe95760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161063e565b6001600160a01b03821661104b5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161063e565b6001600160a01b038316600090815260208190526040902054818110156110c35760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161063e565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610f7f565b6001600160a01b03821661117f5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161063e565b8060026000828254611191919061183f565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03811660009081526001830160205260408120541515610f04565b6000610f04836001600160a01b03841661137a565b60006104a0825490565b6000610f0483836113c9565b600081815260018301602052604081205480156113705760006112ab60018361182c565b85549091506000906112bf9060019061182c565b90508181146113245760008660000182815481106112df576112df61195c565b90600052602060002001549050808760000184815481106113025761130261195c565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080611335576113356119c3565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506104a0565b60009150506104a0565b60008181526001830160205260408120546113c1575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556104a0565b5060006104a0565b60008260000182815481106113e0576113e061195c565b9060005260206000200154905092915050565b60008083601f84011261140557600080fd5b50813567ffffffffffffffff81111561141d57600080fd5b60208301915083602082850101111561143557600080fd5b9250929050565b6000806020838503121561144f57600080fd5b823567ffffffffffffffff81111561146657600080fd5b611472858286016113f3565b90969095509350505050565b600060208083528351808285015260005b818110156114ab5785810183015185820160400152820161148f565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b03811681146114e357600080fd5b919050565b600080604083850312156114fb57600080fd5b611504836114cc565b946020939093013593505050565b60006020828403121561152457600080fd5b610f04826114cc565b60008060006060848603121561154257600080fd5b61154b846114cc565b9250611559602085016114cc565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b60006020828403121561159157600080fd5b813567ffffffffffffffff808211156115a957600080fd5b818401915084601f8301126115bd57600080fd5b8135818111156115cf576115cf611569565b604051601f8201601f19908116603f011681019083821181831017156115f7576115f7611569565b8160405282815287602084870101111561161057600080fd5b826020860160208301376000928101602001929092525095945050505050565b6000806000806060858703121561164657600080fd5b843567ffffffffffffffff81111561165d57600080fd5b611669878288016113f3565b90955093505060208501359150611682604086016114cc565b905092959194509250565b6000806000604084860312156116a257600080fd5b83359250602084013567ffffffffffffffff8111156116c057600080fd5b6116cc868287016113f3565b9497909650939450505050565b6000602082840312156116eb57600080fd5b5035919050565b604080825283519082018190526000906020906060840190828701845b828110156117345781516001600160a01b03168452928401929084019060010161170f565b5050508381038285015284518082528583019183019060005b818110156117695783518352928401929184019160010161174d565b5090979650505050505050565b6000806040838503121561178957600080fd5b82359150611799602084016114cc565b90509250929050565b600080604083850312156117b557600080fd5b6117be836114cc565b9150611799602084016114cc565b8183823760009101908152919050565b600181811c908216806117f057607f821691505b60208210810361181057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b818103818111156104a0576104a0611816565b808201808211156104a0576104a0611816565b600181815b8085111561188d57816000190482111561187357611873611816565b8085161561188057918102915b93841c9390800290611857565b509250929050565b6000826118a4575060016104a0565b816118b1575060006104a0565b81600181146118c757600281146118d1576118ed565b60019150506104a0565b60ff8411156118e2576118e2611816565b50506001821b6104a0565b5060208310610133831016604e8410600b8410161715611910575081810a6104a0565b61191a8383611852565b806000190482111561192e5761192e611816565b029392505050565b6000610f0460ff841683611895565b80820281158282048414176104a0576104a0611816565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561198457600080fd5b81518015158114610f0457600080fd5b6000600182016119a6576119a6611816565b5060010190565b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fdfea2646970667358221220ccc94fa93bc76e4b0c9316bf919889d69a756447335cd312790496674270e0c864736f6c63430008110033
Deployed Bytecode Sourcemap
35618:2182:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37692:105;;;;;;:::i;:::-;;:::i;:::-;;22753:100;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;25104:201;;;;;;:::i;:::-;;:::i;:::-;;;1938:14:1;;1931:22;1913:41;;1901:2;1886:18;25104:201:0;1773:187:1;34576:179:0;;;;;;:::i;:::-;;:::i;23873:108::-;23961:12;;23873:108;;;2302:25:1;;;2290:2;2275:18;23873:108:0;2156:177:1;25885:295:0;;;;;;:::i;:::-;;:::i;23715:93::-;;;23798:2;2813:36:1;;2801:2;2786:18;23715:93:0;2671:184:1;26589:238:0;;;;;;:::i;:::-;;:::i;35703:29::-;;;;;;35826:44;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;35826:44:0;;;;;;;;;;-1:-1:-1;;;;;4111:32:1;;;4093:51;;4175:2;4160:18;;4153:34;;;;4066:18;35826:44:0;3919:274:1;37524:160:0;;;;;;:::i;:::-;;:::i;24044:127::-;;;;;;:::i;:::-;-1:-1:-1;;;;;24145:18:0;24118:7;24145:18;;;;;;;;;;;;24044:127;36062:819;;;;;;:::i;:::-;;:::i;16178:103::-;;;:::i;35674:22::-;;;;;;34255:313;;;;;;:::i;:::-;;:::i;15530:87::-;15603:6;;15530:87;;-1:-1:-1;;;;;15603:6:0;;;5386:51:1;;5374:2;5359:18;15530:87:0;5240:203:1;22972:104:0;;;:::i;27330:436::-;;;;;;:::i;:::-;;:::i;24377:193::-;;;;;;:::i;:::-;;:::i;34763:793::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;:::i;36928:255::-;;;;;;:::i;:::-;;:::i;24633:151::-;;;;;;:::i;:::-;;:::i;37230:259::-;;;;;;:::i;:::-;;:::i;16436:201::-;;;;;;:::i;:::-;;:::i;37692:105::-;15416:13;:11;:13::i;:::-;37774:8:::1;37783:5;;37774:15;;;;;;;:::i;:::-;::::0;;;::::1;::::0;;;;;::::1;::::0;;;37767:22;;-1:-1:-1;;;;;;37767:22:0::1;::::0;;37774:15:::1;37767:22:::0;;;::::1;::::0;-1:-1:-1;;37692:105:0:o;22753:100::-;22807:13;22840:5;22833:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22753:100;:::o;25104:201::-;25187:4;14161:10;25243:32;14161:10;25259:7;25268:6;25243:8;:32::i;:::-;25293:4;25286:11;;;25104:201;;;;;:::o;34576:179::-;15416:13;:11;:13::i;:::-;34643:22:::1;:7;34658:6:::0;34643:14:::1;:22::i;:::-;-1:-1:-1::0;;;;;;34691:19:0;::::1;;::::0;;;:11:::1;:19;::::0;;;;;34676:11:::1;:34:::0;;34691:19;;34676:11;;:34:::1;::::0;34691:19;;34676:34:::1;:::i;:::-;::::0;;;-1:-1:-1;;;;;;;34728:19:0::1;;::::0;;;:11:::1;:19;::::0;;;;34721:26;34576:179::o;25885:295::-;26016:4;14161:10;26074:38;26090:4;14161:10;26105:6;26074:15;:38::i;:::-;26123:27;26133:4;26139:2;26143:6;26123:9;:27::i;:::-;-1:-1:-1;26168:4:0;;25885:295;-1:-1:-1;;;;25885:295:0:o;26589:238::-;26677:4;14161:10;26733:64;14161:10;26749:7;26786:10;26758:25;14161:10;26749:7;26758:9;:25::i;:::-;:38;;;;:::i;:::-;26733:8;:64::i;37524:160::-;15416:13;:11;:13::i;:::-;37650:26:::1;;;;;;;;37659:9;-1:-1:-1::0;;;;;37650:26:0::1;;;;;37670:5;37650:26;;::::0;37632:8:::1;37641:5;;37632:15;;;;;;;:::i;:::-;::::0;;;::::1;::::0;::::1;::::0;;;;;;;;:44;;;;-1:-1:-1;;;;;;37632:44:0::1;-1:-1:-1::0;;;;;37632:44:0;;::::1;;::::0;;;::::1;::::0;-1:-1:-1;37632:44:0;;::::1;::::0;-1:-1:-1;;;;37524:160:0:o;36062:819::-;36186:16;23798:2;36186;:16;:::i;:::-;36176:26;;:7;:26;:::i;:::-;36158:14;;:44;;36136:146;;;;-1:-1:-1;;;36136:146:0;;10156:2:1;36136:146:0;;;10138:21:1;10195:2;10175:18;;;10168:30;10234:34;10214:18;;;10207:62;-1:-1:-1;;;10285:18:1;;;10278:50;10345:19;;36136:146:0;;;;;;;;;36356:1;-1:-1:-1;;;;;36315:43:0;:8;36324:5;;36315:15;;;;;;;:::i;:::-;;;;;;;;;;;;;;:31;-1:-1:-1;;;;;36315:31:0;:43;36293:128;;;;-1:-1:-1;;;36293:128:0;;10577:2:1;36293:128:0;;;10559:21:1;10616:2;10596:18;;;10589:30;10655:34;10635:18;;;10628:62;-1:-1:-1;;;10706:18:1;;;10699:33;10749:19;;36293:128:0;10375:399:1;36293:128:0;36432:12;36453:8;36462:5;;36453:15;;;;;;;:::i;:::-;;;;;;;;;;;;;;:31;-1:-1:-1;;;;;36453:31:0;;-1:-1:-1;36496:24:0;;;;36586:46;;36611:8;;:15;;36620:5;;;;36611:15;:::i;:::-;;;;;;;;;;;;;:20;;;36601:7;:30;;;;:::i;36586:46::-;36566:66;;-1:-1:-1;36566:66:0;-1:-1:-1;36647:9:0;36643:120;36663:7;:14;36661:1;:16;36643:120;;;36698:6;-1:-1:-1;;;;;36698:19:0;;36718:10;36729:7;36737:1;36729:10;;;;;;;;:::i;:::-;;;;;;;36740:7;36748:1;36740:10;;;;;;;;:::i;:::-;;;;;;;;;;;36698:53;;-1:-1:-1;;;;;;36698:53:0;;;;;;;-1:-1:-1;;;;;11169:15:1;;;36698:53:0;;;11151:34:1;11221:15;;;;11201:18;;;11194:43;11253:18;;;11246:34;11086:18;;36698:53:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;36679:3:0;;;;:::i;:::-;;;;36643:120;;;-1:-1:-1;36773:45:0;36779:10;36801:16;23798:2;36801;:16;:::i;:::-;36791:26;;:7;:26;:::i;:::-;36773:5;:45::i;:::-;36857:16;23798:2;36857;:16;:::i;:::-;36847:26;;:7;:26;:::i;:::-;36829:14;;:44;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;;36062:819:0:o;16178:103::-;15416:13;:11;:13::i;:::-;16243:30:::1;16270:1;16243:18;:30::i;:::-;16178:103::o:0;34255:313::-;15416:13;:11;:13::i;:::-;34340:24:::1;:7;34357:6:::0;34340:16:::1;:24::i;:::-;34336:142;;34380:19;:7;34392:6:::0;34380:11:::1;:19::i;:::-;;34336:142;;;-1:-1:-1::0;;;;;34447:19:0;::::1;;::::0;;;:11:::1;:19;::::0;;;;;34432:11:::1;:34:::0;;34447:19;;34432:11;;:34:::1;::::0;34447:19;;34432:34:::1;:::i;:::-;::::0;;;-1:-1:-1;;34336:142:0::1;-1:-1:-1::0;;;;;34498:19:0;::::1;;::::0;;;:11:::1;:19;::::0;;;;:29;;;34538:11:::1;:22:::0;;34520:7;;34498:19;34538:22:::1;::::0;34520:7;;34538:22:::1;:::i;:::-;::::0;;;-1:-1:-1;;;;34255:313:0:o;22972:104::-;23028:13;23061:7;23054:14;;;;;:::i;27330:436::-;27423:4;14161:10;27423:4;27506:25;14161:10;27523:7;27506:9;:25::i;:::-;27479:52;;27570:15;27550:16;:35;;27542:85;;;;-1:-1:-1;;;27542:85:0;;11915:2:1;27542:85:0;;;11897:21:1;11954:2;11934:18;;;11927:30;11993:34;11973:18;;;11966:62;-1:-1:-1;;;12044:18:1;;;12037:35;12089:19;;27542:85:0;11713:401:1;27542:85:0;27663:60;27672:5;27679:7;27707:15;27688:16;:34;27663:8;:60::i;24377:193::-;24456:4;14161:10;24512:28;14161:10;24529:2;24533:6;24512:9;:28::i;34763:793::-;34825:23;34850;34885:20;34920:24;34961:16;:7;:14;:16::i;:::-;34947:31;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;34947:31:0;;34920:58;;34989:24;35030:16;:7;:14;:16::i;:::-;35016:31;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;35016:31:0;;34989:58;;35062:6;35058:330;35075:16;:7;:14;:16::i;:::-;35073:1;:18;35058:330;;;35126:13;:7;35137:1;35126:10;:13::i;:::-;35113:7;35121:1;35113:10;;;;;;;;:::i;:::-;;;;;;:26;-1:-1:-1;;;;;35113:26:0;;;-1:-1:-1;;;;;35113:26:0;;;;;35167:1;35154:7;35162:1;35154:10;;;;;;;;:::i;:::-;;;;;;;;;;:14;35269:11;;35212:15;;35241:11;35212:15;35253:13;:7;35264:1;35253:10;:13::i;:::-;-1:-1:-1;;;;;35241:26:0;-1:-1:-1;;;;;35241:26:0;;;;;;;;;;;;;35231:7;:36;35230:50;;;;;:::i;:::-;;35212:68;;35312:7;35299;35307:1;35299:10;;;;;;;;:::i;:::-;;;;;;;;;;:20;35338:23;;;;;35093:3;;;;:::i;:::-;;;;35058:330;;;-1:-1:-1;35398:16:0;35417:22;35427:12;35417:7;:22;:::i;:::-;35398:41;-1:-1:-1;35453:12:0;;35450:64;;35494:8;35481:7;35489:1;35481:10;;;;;;;;:::i;:::-;;;;;;:21;;;;;;;:::i;:::-;;;-1:-1:-1;35450:64:0;-1:-1:-1;35532:7:0;;35540;;-1:-1:-1;34763:793:0;-1:-1:-1;;;34763:793:0:o;36928:255::-;15416:13;:11;:13::i;:::-;37058:7:::1;37042:13;23961:12:::0;;;23873:108;37042:13:::1;:23;;;;:::i;:::-;37031:7;;:34;;37009:133;;;::::0;-1:-1:-1;;;37009:133:0;;12453:2:1;37009:133:0::1;::::0;::::1;12435:21:1::0;12492:2;12472:18;;;12465:30;12531:34;12511:18;;;12504:62;-1:-1:-1;;;12582:18:1;;;12575:47;12639:19;;37009:133:0::1;12251:413:1::0;37009:133:0::1;37153:22;37159:6;37167:7;37153:5;:22::i;:::-;36928:255:::0;;:::o;24633:151::-;-1:-1:-1;;;;;24749:18:0;;;24722:7;24749:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;24633:151::o;37230:259::-;15416:13;:11;:13::i;:::-;37354:7:::1;37338:13;23961:12:::0;;;23873:108;37338:13:::1;:23;;;;:::i;:::-;37327:7;;:34;;37305:140;;;::::0;-1:-1:-1;;;37305:140:0;;12871:2:1;37305:140:0::1;::::0;::::1;12853:21:1::0;12910:2;12890:18;;;12883:30;12949:34;12929:18;;;12922:62;13020:26;13000:18;;;12993:54;13064:19;;37305:140:0::1;12669:420:1::0;37305:140:0::1;37474:7;37456:14;;:25;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;;37230:259:0:o;16436:201::-;15416:13;:11;:13::i;:::-;-1:-1:-1;;;;;16525:22:0;::::1;16517:73;;;::::0;-1:-1:-1;;;16517:73:0;;13296:2:1;16517:73:0::1;::::0;::::1;13278:21:1::0;13335:2;13315:18;;;13308:30;13374:34;13354:18;;;13347:62;-1:-1:-1;;;13425:18:1;;;13418:36;13471:19;;16517:73:0::1;13094:402:1::0;16517:73:0::1;16601:28;16620:8;16601:18;:28::i;:::-;16436:201:::0;:::o;15695:132::-;15603:6;;-1:-1:-1;;;;;15603:6:0;14161:10;15759:23;15751:68;;;;-1:-1:-1;;;15751:68:0;;13703:2:1;15751:68:0;;;13685:21:1;;;13722:18;;;13715:30;13781:34;13761:18;;;13754:62;13833:18;;15751:68:0;13501:356:1;31357:380:0;-1:-1:-1;;;;;31493:19:0;;31485:68;;;;-1:-1:-1;;;31485:68:0;;14064:2:1;31485:68:0;;;14046:21:1;14103:2;14083:18;;;14076:30;14142:34;14122:18;;;14115:62;-1:-1:-1;;;14193:18:1;;;14186:34;14237:19;;31485:68:0;13862:400:1;31485:68:0;-1:-1:-1;;;;;31572:21:0;;31564:68;;;;-1:-1:-1;;;31564:68:0;;14469:2:1;31564:68:0;;;14451:21:1;14508:2;14488:18;;;14481:30;14547:34;14527:18;;;14520:62;-1:-1:-1;;;14598:18:1;;;14591:32;14640:19;;31564:68:0;14267:398:1;31564:68:0;-1:-1:-1;;;;;31645:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;31697:32;;2302:25:1;;;31697:32:0;;2275:18:1;31697:32:0;;;;;;;31357:380;;;:::o;8937:158::-;9010:4;9034:53;9042:3;-1:-1:-1;;;;;9062:23:0;;9034:7;:53::i;:::-;9027:60;8937:158;-1:-1:-1;;;8937:158:0:o;32028:453::-;32163:24;32190:25;32200:5;32207:7;32190:9;:25::i;:::-;32163:52;;-1:-1:-1;;32230:16:0;:37;32226:248;;32312:6;32292:16;:26;;32284:68;;;;-1:-1:-1;;;32284:68:0;;14872:2:1;32284:68:0;;;14854:21:1;14911:2;14891:18;;;14884:30;14950:31;14930:18;;;14923:59;14999:18;;32284:68:0;14670:353:1;32284:68:0;32396:51;32405:5;32412:7;32440:6;32421:16;:25;32396:8;:51::i;:::-;32152:329;32028:453;;;:::o;28236:840::-;-1:-1:-1;;;;;28367:18:0;;28359:68;;;;-1:-1:-1;;;28359:68:0;;15230:2:1;28359:68:0;;;15212:21:1;15269:2;15249:18;;;15242:30;15308:34;15288:18;;;15281:62;-1:-1:-1;;;15359:18:1;;;15352:35;15404:19;;28359:68:0;15028:401:1;28359:68:0;-1:-1:-1;;;;;28446:16:0;;28438:64;;;;-1:-1:-1;;;28438:64:0;;15636:2:1;28438:64:0;;;15618:21:1;15675:2;15655:18;;;15648:30;15714:34;15694:18;;;15687:62;-1:-1:-1;;;15765:18:1;;;15758:33;15808:19;;28438:64:0;15434:399:1;28438:64:0;-1:-1:-1;;;;;28588:15:0;;28566:19;28588:15;;;;;;;;;;;28622:21;;;;28614:72;;;;-1:-1:-1;;;28614:72:0;;16040:2:1;28614:72:0;;;16022:21:1;16079:2;16059:18;;;16052:30;16118:34;16098:18;;;16091:62;-1:-1:-1;;;16169:18:1;;;16162:36;16215:19;;28614:72:0;15838:402:1;28614:72:0;-1:-1:-1;;;;;28722:15:0;;;:9;:15;;;;;;;;;;;28740:20;;;28722:38;;28940:13;;;;;;;;;;:23;;;;;;28992:26;;2302:25:1;;;28940:13:0;;28992:26;;2275:18:1;28992:26:0;;;;;;;29031:37;33081:125;29363:548;-1:-1:-1;;;;;29447:21:0;;29439:65;;;;-1:-1:-1;;;29439:65:0;;16447:2:1;29439:65:0;;;16429:21:1;16486:2;16466:18;;;16459:30;16525:33;16505:18;;;16498:61;16576:18;;29439:65:0;16245:355:1;29439:65:0;29595:6;29579:12;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;29750:18:0;;:9;:18;;;;;;;;;;;:28;;;;;;29805:37;2302:25:1;;;29805:37:0;;2275:18:1;29805:37:0;;;;;;;36928:255;;:::o;16797:191::-;16890:6;;;-1:-1:-1;;;;;16907:17:0;;;-1:-1:-1;;;;;;16907:17:0;;;;;;;16940:40;;16890:6;;;16907:17;16890:6;;16940:40;;16871:16;;16940:40;16860:128;16797:191;:::o;9181:167::-;-1:-1:-1;;;;;9315:23:0;;9261:4;4533:19;;;:12;;;:19;;;;;;:24;;9285:55;4436:129;8609:152;8679:4;8703:50;8708:3;-1:-1:-1;;;;;8728:23:0;;8703:4;:50::i;9434:117::-;9497:7;9524:19;9532:3;4734:18;;4651:109;9905:158;9979:7;10030:22;10034:3;10046:5;10030:3;:22::i;2930:1420::-;2996:4;3135:19;;;:12;;;:19;;;;;;3171:15;;3167:1176;;3546:21;3570:14;3583:1;3570:10;:14;:::i;:::-;3619:18;;3546:38;;-1:-1:-1;3599:17:0;;3619:22;;3640:1;;3619:22;:::i;:::-;3599:42;;3675:13;3662:9;:26;3658:405;;3709:17;3729:3;:11;;3741:9;3729:22;;;;;;;;:::i;:::-;;;;;;;;;3709:42;;3883:9;3854:3;:11;;3866:13;3854:26;;;;;;;;:::i;:::-;;;;;;;;;;;;:38;;;;3968:23;;;:12;;;:23;;;;;:36;;;3658:405;4144:17;;:3;;:17;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;4239:3;:12;;:19;4252:5;4239:19;;;;;;;;;;;4232:26;;;4282:4;4275:11;;;;;;;3167:1176;4326:5;4319:12;;;;;2340:414;2403:4;4533:19;;;:12;;;:19;;;;;;2420:327;;-1:-1:-1;2463:23:0;;;;;;;;:11;:23;;;;;;;;;;;;;2646:18;;2624:19;;;:12;;;:19;;;;;;:40;;;;2679:11;;2420:327;-1:-1:-1;2730:5:0;2723:12;;5114:120;5181:7;5208:3;:11;;5220:5;5208:18;;;;;;;;:::i;:::-;;;;;;;;;5201:25;;5114:120;;;;:::o;14:348:1:-;66:8;76:6;130:3;123:4;115:6;111:17;107:27;97:55;;148:1;145;138:12;97:55;-1:-1:-1;171:20:1;;214:18;203:30;;200:50;;;246:1;243;236:12;200:50;283:4;275:6;271:17;259:29;;335:3;328:4;319:6;311;307:19;303:30;300:39;297:59;;;352:1;349;342:12;297:59;14:348;;;;;:::o;367:411::-;438:6;446;499:2;487:9;478:7;474:23;470:32;467:52;;;515:1;512;505:12;467:52;555:9;542:23;588:18;580:6;577:30;574:50;;;620:1;617;610:12;574:50;659:59;710:7;701:6;690:9;686:22;659:59;:::i;:::-;737:8;;633:85;;-1:-1:-1;367:411:1;-1:-1:-1;;;;367:411:1:o;783:548::-;895:4;924:2;953;942:9;935:21;985:6;979:13;1028:6;1023:2;1012:9;1008:18;1001:34;1053:1;1063:140;1077:6;1074:1;1071:13;1063:140;;;1172:14;;;1168:23;;1162:30;1138:17;;;1157:2;1134:26;1127:66;1092:10;;1063:140;;;1067:3;1252:1;1247:2;1238:6;1227:9;1223:22;1219:31;1212:42;1322:2;1315;1311:7;1306:2;1298:6;1294:15;1290:29;1279:9;1275:45;1271:54;1263:62;;;;783:548;;;;:::o;1336:173::-;1404:20;;-1:-1:-1;;;;;1453:31:1;;1443:42;;1433:70;;1499:1;1496;1489:12;1433:70;1336:173;;;:::o;1514:254::-;1582:6;1590;1643:2;1631:9;1622:7;1618:23;1614:32;1611:52;;;1659:1;1656;1649:12;1611:52;1682:29;1701:9;1682:29;:::i;:::-;1672:39;1758:2;1743:18;;;;1730:32;;-1:-1:-1;;;1514:254:1:o;1965:186::-;2024:6;2077:2;2065:9;2056:7;2052:23;2048:32;2045:52;;;2093:1;2090;2083:12;2045:52;2116:29;2135:9;2116:29;:::i;2338:328::-;2415:6;2423;2431;2484:2;2472:9;2463:7;2459:23;2455:32;2452:52;;;2500:1;2497;2490:12;2452:52;2523:29;2542:9;2523:29;:::i;:::-;2513:39;;2571:38;2605:2;2594:9;2590:18;2571:38;:::i;:::-;2561:48;;2656:2;2645:9;2641:18;2628:32;2618:42;;2338:328;;;;;:::o;2860:127::-;2921:10;2916:3;2912:20;2909:1;2902:31;2952:4;2949:1;2942:15;2976:4;2973:1;2966:15;2992:922;3061:6;3114:2;3102:9;3093:7;3089:23;3085:32;3082:52;;;3130:1;3127;3120:12;3082:52;3170:9;3157:23;3199:18;3240:2;3232:6;3229:14;3226:34;;;3256:1;3253;3246:12;3226:34;3294:6;3283:9;3279:22;3269:32;;3339:7;3332:4;3328:2;3324:13;3320:27;3310:55;;3361:1;3358;3351:12;3310:55;3397:2;3384:16;3419:2;3415;3412:10;3409:36;;;3425:18;;:::i;:::-;3500:2;3494:9;3468:2;3554:13;;-1:-1:-1;;3550:22:1;;;3574:2;3546:31;3542:40;3530:53;;;3598:18;;;3618:22;;;3595:46;3592:72;;;3644:18;;:::i;:::-;3684:10;3680:2;3673:22;3719:2;3711:6;3704:18;3759:7;3754:2;3749;3745;3741:11;3737:20;3734:33;3731:53;;;3780:1;3777;3770:12;3731:53;3836:2;3831;3827;3823:11;3818:2;3810:6;3806:15;3793:46;3881:1;3859:15;;;3876:2;3855:24;3848:35;;;;-1:-1:-1;3863:6:1;2992:922;-1:-1:-1;;;;;2992:922:1:o;4198:553::-;4287:6;4295;4303;4311;4364:2;4352:9;4343:7;4339:23;4335:32;4332:52;;;4380:1;4377;4370:12;4332:52;4420:9;4407:23;4453:18;4445:6;4442:30;4439:50;;;4485:1;4482;4475:12;4439:50;4524:59;4575:7;4566:6;4555:9;4551:22;4524:59;:::i;:::-;4602:8;;-1:-1:-1;4498:85:1;-1:-1:-1;;4684:2:1;4669:18;;4656:32;;-1:-1:-1;4707:38:1;4741:2;4726:18;;4707:38;:::i;:::-;4697:48;;4198:553;;;;;;;:::o;4756:479::-;4836:6;4844;4852;4905:2;4893:9;4884:7;4880:23;4876:32;4873:52;;;4921:1;4918;4911:12;4873:52;4957:9;4944:23;4934:33;;5018:2;5007:9;5003:18;4990:32;5045:18;5037:6;5034:30;5031:50;;;5077:1;5074;5067:12;5031:50;5116:59;5167:7;5158:6;5147:9;5143:22;5116:59;:::i;:::-;4756:479;;5194:8;;-1:-1:-1;5090:85:1;;-1:-1:-1;;;;4756:479:1:o;5448:180::-;5507:6;5560:2;5548:9;5539:7;5535:23;5531:32;5528:52;;;5576:1;5573;5566:12;5528:52;-1:-1:-1;5599:23:1;;5448:180;-1:-1:-1;5448:180:1:o;5633:1178::-;5901:2;5913:21;;;5983:13;;5886:18;;;6005:22;;;5853:4;;6080;;6058:2;6043:18;;;6107:15;;;5853:4;6150:195;6164:6;6161:1;6158:13;6150:195;;;6229:13;;-1:-1:-1;;;;;6225:39:1;6213:52;;6285:12;;;;6320:15;;;;6261:1;6179:9;6150:195;;;-1:-1:-1;;;6381:19:1;;;6361:18;;;6354:47;6451:13;;6473:21;;;6549:15;;;;6512:12;;;6584:1;6594:189;6610:8;6605:3;6602:17;6594:189;;;6679:15;;6665:30;;6756:17;;;;6717:14;;;;6638:1;6629:11;6594:189;;;-1:-1:-1;6800:5:1;;5633:1178;-1:-1:-1;;;;;;;5633:1178:1:o;6816:254::-;6884:6;6892;6945:2;6933:9;6924:7;6920:23;6916:32;6913:52;;;6961:1;6958;6951:12;6913:52;6997:9;6984:23;6974:33;;7026:38;7060:2;7049:9;7045:18;7026:38;:::i;:::-;7016:48;;6816:254;;;;;:::o;7075:260::-;7143:6;7151;7204:2;7192:9;7183:7;7179:23;7175:32;7172:52;;;7220:1;7217;7210:12;7172:52;7243:29;7262:9;7243:29;:::i;:::-;7233:39;;7291:38;7325:2;7314:9;7310:18;7291:38;:::i;7340:273::-;7525:6;7517;7512:3;7499:33;7481:3;7551:16;;7576:13;;;7551:16;7340:273;-1:-1:-1;7340:273:1:o;7618:380::-;7697:1;7693:12;;;;7740;;;7761:61;;7815:4;7807:6;7803:17;7793:27;;7761:61;7868:2;7860:6;7857:14;7837:18;7834:38;7831:161;;7914:10;7909:3;7905:20;7902:1;7895:31;7949:4;7946:1;7939:15;7977:4;7974:1;7967:15;7831:161;;7618:380;;;:::o;8003:127::-;8064:10;8059:3;8055:20;8052:1;8045:31;8095:4;8092:1;8085:15;8119:4;8116:1;8109:15;8135:128;8202:9;;;8223:11;;;8220:37;;;8237:18;;:::i;8268:125::-;8333:9;;;8354:10;;;8351:36;;;8367:18;;:::i;8398:422::-;8487:1;8530:5;8487:1;8544:270;8565:7;8555:8;8552:21;8544:270;;;8624:4;8620:1;8616:6;8612:17;8606:4;8603:27;8600:53;;;8633:18;;:::i;:::-;8683:7;8673:8;8669:22;8666:55;;;8703:16;;;;8666:55;8782:22;;;;8742:15;;;;8544:270;;;8548:3;8398:422;;;;;:::o;8825:806::-;8874:5;8904:8;8894:80;;-1:-1:-1;8945:1:1;8959:5;;8894:80;8993:4;8983:76;;-1:-1:-1;9030:1:1;9044:5;;8983:76;9075:4;9093:1;9088:59;;;;9161:1;9156:130;;;;9068:218;;9088:59;9118:1;9109:10;;9132:5;;;9156:130;9193:3;9183:8;9180:17;9177:43;;;9200:18;;:::i;:::-;-1:-1:-1;;9256:1:1;9242:16;;9271:5;;9068:218;;9370:2;9360:8;9357:16;9351:3;9345:4;9342:13;9338:36;9332:2;9322:8;9319:16;9314:2;9308:4;9305:12;9301:35;9298:77;9295:159;;;-1:-1:-1;9407:19:1;;;9439:5;;9295:159;9486:34;9511:8;9505:4;9486:34;:::i;:::-;9556:6;9552:1;9548:6;9544:19;9535:7;9532:32;9529:58;;;9567:18;;:::i;:::-;9605:20;;8825:806;-1:-1:-1;;;8825:806:1:o;9636:140::-;9694:5;9723:47;9764:4;9754:8;9750:19;9744:4;9723:47;:::i;9781:168::-;9854:9;;;9885;;9902:15;;;9896:22;;9882:37;9872:71;;9923:18;;:::i;10779:127::-;10840:10;10835:3;10831:20;10828:1;10821:31;10871:4;10868:1;10861:15;10895:4;10892:1;10885:15;11291:277;11358:6;11411:2;11399:9;11390:7;11386:23;11382:32;11379:52;;;11427:1;11424;11417:12;11379:52;11459:9;11453:16;11512:5;11505:13;11498:21;11491:5;11488:32;11478:60;;11534:1;11531;11524:12;11573:135;11612:3;11633:17;;;11630:43;;11653:18;;:::i;:::-;-1:-1:-1;11700:1:1;11689:13;;11573:135::o;12119:127::-;12180:10;12175:3;12171:20;12168:1;12161:31;12211:4;12208:1;12201:15;12235:4;12232:1;12225:15;16605:127;16666:10;16661:3;16657:20;16654:1;16647:31;16697:4;16694:1;16687:15;16721:4;16718:1;16711:15
Swarm Source
ipfs://ccc94fa93bc76e4b0c9316bf919889d69a756447335cd312790496674270e0c8
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.