ERC-20
Overview
Max Total Supply
1,627,110,587.825108225108201242 MEE
Holders
4,542
Market
Price
$0.00 @ 0.000000 MATIC
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
20,404.399682587252857552 MEEValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
Contract Name:
GovernanceToken
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// 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.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 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/introspection/ERC165Checker.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Library used to query support of an interface declared via {IERC165}. * * Note that these functions return the actual result of the query: they do not * `revert` if an interface is not supported. It is up to the caller to decide * what to do in these cases. */ library ERC165Checker { // As per the EIP-165 spec, no interface should ever match 0xffffffff bytes4 private constant _INTERFACE_ID_INVALID = 0xffffffff; /** * @dev Returns true if `account` supports the {IERC165} interface. */ function supportsERC165(address account) internal view returns (bool) { // Any contract that implements ERC165 must explicitly indicate support of // InterfaceId_ERC165 and explicitly indicate non-support of InterfaceId_Invalid return supportsERC165InterfaceUnchecked(account, type(IERC165).interfaceId) && !supportsERC165InterfaceUnchecked(account, _INTERFACE_ID_INVALID); } /** * @dev Returns true if `account` supports the interface defined by * `interfaceId`. Support for {IERC165} itself is queried automatically. * * See {IERC165-supportsInterface}. */ function supportsInterface(address account, bytes4 interfaceId) internal view returns (bool) { // query support of both ERC165 as per the spec and support of _interfaceId return supportsERC165(account) && supportsERC165InterfaceUnchecked(account, interfaceId); } /** * @dev Returns a boolean array where each value corresponds to the * interfaces passed in and whether they're supported or not. This allows * you to batch check interfaces for a contract where your expectation * is that some interfaces may not be supported. * * See {IERC165-supportsInterface}. * * _Available since v3.4._ */ function getSupportedInterfaces(address account, bytes4[] memory interfaceIds) internal view returns (bool[] memory) { // an array of booleans corresponding to interfaceIds and whether they're supported or not bool[] memory interfaceIdsSupported = new bool[](interfaceIds.length); // query support of ERC165 itself if (supportsERC165(account)) { // query support of each interface in interfaceIds for (uint256 i = 0; i < interfaceIds.length; i++) { interfaceIdsSupported[i] = supportsERC165InterfaceUnchecked(account, interfaceIds[i]); } } return interfaceIdsSupported; } /** * @dev Returns true if `account` supports all the interfaces defined in * `interfaceIds`. Support for {IERC165} itself is queried automatically. * * Batch-querying can lead to gas savings by skipping repeated checks for * {IERC165} support. * * See {IERC165-supportsInterface}. */ function supportsAllInterfaces(address account, bytes4[] memory interfaceIds) internal view returns (bool) { // query support of ERC165 itself if (!supportsERC165(account)) { return false; } // query support of each interface in interfaceIds for (uint256 i = 0; i < interfaceIds.length; i++) { if (!supportsERC165InterfaceUnchecked(account, interfaceIds[i])) { return false; } } // all interfaces supported return true; } /** * @notice Query if a contract implements an interface, does not check ERC165 support * @param account The address of the contract to query for support of an interface * @param interfaceId The interface identifier, as specified in ERC-165 * @return true if the contract at account indicates support of the interface with * identifier interfaceId, false otherwise * @dev Assumes that account contains a contract that supports ERC165, otherwise * the behavior of this method is undefined. This precondition can be checked * with {supportsERC165}. * Interface identification is specified in ERC-165. */ function supportsERC165InterfaceUnchecked(address account, bytes4 interfaceId) internal view returns (bool) { // prepare call bytes memory encodedParams = abi.encodeWithSelector(IERC165.supportsInterface.selector, interfaceId); // perform static call bool success; uint256 returnSize; uint256 returnValue; assembly { success := staticcall(30000, account, add(encodedParams, 0x20), mload(encodedParams), 0x00, 0x20) returnSize := returndatasize() returnValue := mload(0x00) } return success && returnSize >= 0x20 && returnValue > 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// 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.6.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: AGPL-3.0-or-later pragma solidity 0.8.17; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/math/Math.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "./TokenDistribution.sol"; import "../utils/GameOwner.sol"; contract SaleRounds is TokenDistribution, GameOwner, ERC20 { using SafeMath for uint; using Math for uint; struct ClaimInfo { uint cliff; uint vestingPeriod; uint reservedBalance; uint claimedBalance; uint vestingGranularity; uint secondsVested; uint vestingForUserPerPeriod; } uint public vestingStartTime = 999999999999999; // very big value to represent some very far date in the future (ex: year 2286); mapping(RoundType => Distribution) public roundDistribution; mapping(RoundType => mapping(address => uint256)) internal reservedBalances; mapping(RoundType => mapping(address => uint256)) internal claimedBalances; Distribution private advisorsDistribution; Distribution private exchangesDistribution; Distribution private playAndEarnDistribution; Distribution private privateDistribution; Distribution private publicDistribution; Distribution private seedDistribution; Distribution private socialDistribution; Distribution private teamDistribution; Distribution private treasuryDistribution; uint constant private DAY_TO_SECONDS = 1 days; uint constant private MONTH_TO_SECONDS = 30 days; event ReserveTokensEvent(string indexed roundType, uint resserveAmount, address indexed to); event ClaimTokensEvent(string indexed roundType, uint balanceToRelease, address indexed to); modifier claimableRound(string calldata _roundType) { RoundType roundType = getRoundTypeByKey(_roundType); require(roundType != RoundType.PUBLIC, "Claiming/Reserving is not supported for this round."); _; } constructor(string memory _tokenName, string memory _tokenSymbol, uint _decimalUnits, address _gameOwnerAddress, address[] memory _walletAddresses) ERC20(_tokenName, _tokenSymbol) GameOwner(_gameOwnerAddress) { // FUNDING ROUNDS seedDistribution = Distribution({ vestingPeriod:22 * MONTH_TO_SECONDS, cliff: 2 * MONTH_TO_SECONDS, totalRemaining:420_000_000 * (10 ** _decimalUnits), supply:420_000_000 * (10 ** _decimalUnits), vestingGranularity: DAY_TO_SECONDS }); privateDistribution = Distribution({ vestingPeriod:22 * MONTH_TO_SECONDS, cliff: 2 * MONTH_TO_SECONDS, totalRemaining:210_000_000 * (10 ** _decimalUnits), supply:210_000_000 * (10 ** _decimalUnits), vestingGranularity: DAY_TO_SECONDS }); publicDistribution = Distribution({ vestingPeriod:6 * MONTH_TO_SECONDS, cliff:0, totalRemaining:120_000_000 * (10 ** _decimalUnits), supply:120_000_000 * (10 ** _decimalUnits), vestingGranularity: DAY_TO_SECONDS }); // PRIMARY MOONGAMING ALLOCATIONS playAndEarnDistribution = Distribution({ vestingPeriod:35 * MONTH_TO_SECONDS, cliff:2 * MONTH_TO_SECONDS, totalRemaining:600_000_000 * (10 ** _decimalUnits), supply:600_000_000 * (10 ** _decimalUnits), vestingGranularity: DAY_TO_SECONDS }); exchangesDistribution = Distribution({ vestingPeriod:3 * MONTH_TO_SECONDS, cliff:0, totalRemaining:150_000_000 * (10 ** _decimalUnits), supply:150_000_000 * (10 ** _decimalUnits), vestingGranularity: DAY_TO_SECONDS }); treasuryDistribution = Distribution({ vestingPeriod:30 * MONTH_TO_SECONDS, cliff:2 * MONTH_TO_SECONDS, totalRemaining:870_000_000 * (10 ** _decimalUnits), supply:870_000_000 * (10 ** _decimalUnits), vestingGranularity: DAY_TO_SECONDS }); // SECONDARY MOONGAMING ALLOCATIONS advisorsDistribution = Distribution({ vestingPeriod:20 * MONTH_TO_SECONDS, cliff:4 * MONTH_TO_SECONDS, totalRemaining:150_000_000 * (10 ** _decimalUnits), supply:150_000_000 * (10 ** _decimalUnits), vestingGranularity: MONTH_TO_SECONDS }); teamDistribution = Distribution({ vestingPeriod:24 * MONTH_TO_SECONDS, cliff:12 * MONTH_TO_SECONDS, totalRemaining:450_000_000 * (10 ** _decimalUnits), supply:450_000_000 * (10 ** _decimalUnits), vestingGranularity: MONTH_TO_SECONDS }); socialDistribution = Distribution({ vestingPeriod:22 * MONTH_TO_SECONDS, cliff:2 * MONTH_TO_SECONDS, totalRemaining:30_000_000 * (10 ** _decimalUnits), supply:30_000_000 * (10 ** _decimalUnits), vestingGranularity: MONTH_TO_SECONDS }); roundDistribution[RoundType.SEED] = seedDistribution; roundDistribution[RoundType.PRIVATE] = privateDistribution; roundDistribution[RoundType.PUBLIC] = publicDistribution; roundDistribution[RoundType.PLAYANDEARN] = playAndEarnDistribution; roundDistribution[RoundType.SOCIAL] = socialDistribution; roundDistribution[RoundType.EXCHANGES] = exchangesDistribution; roundDistribution[RoundType.TEAM] = teamDistribution; roundDistribution[RoundType.TREASURY] = treasuryDistribution; roundDistribution[RoundType.ADVISOR] = advisorsDistribution; maxSupply = 3_000_000_000 * (10 ** _decimalUnits); initialReserveAndMint(_walletAddresses, _decimalUnits); } function beginVesting() external onlyGameOwner { require(vestingStartTime > block.timestamp, "Start vesting time was already set."); vestingStartTime = block.timestamp; } function removeReservedAllocations(string calldata _roundType, address _to) external onlyGameOwner { require(vestingStartTime > block.timestamp, "Token vesting has begun."); RoundType roundType = getRoundTypeByKey(_roundType); require(reservedBalances[roundType][_to] > 0, "there is no reserved balance"); require(_to != address(0), "Reservation address is 0x0 address"); roundDistribution[roundType].totalRemaining += reservedBalances[roundType][_to]; reservedBalances[roundType][_to] = 0; } // @_amount is going be decimals() == default(18) digits function reserveTokens(string calldata _roundType, address _to, uint _amount) external onlyGameOwner claimableRound(_roundType) { RoundType roundType = getRoundTypeByKey(_roundType); reserveTokensInternal(roundType, _to, _amount); emit ReserveTokensEvent(_roundType, _amount, _to); } function claimTokens(string calldata _roundType, address _to) external claimableRound(_roundType) { require(block.timestamp >= vestingStartTime, "Token vesting has not yet begun."); require(_msgSender() == _to, "Cannot claim for another account."); RoundType roundType = getRoundTypeByKey(_roundType); uint balanceToRelease = getClaimableBalance(_roundType, _to); require(balanceToRelease > 0, "Nothing to claim."); //Perform actual minting of tokens, updating internal balance first. claimedBalances[roundType][_to] += balanceToRelease; //minting after internal balance update to avoid potential free minting exploits _mint(_to, balanceToRelease); emit ClaimTokensEvent(_roundType, balanceToRelease, _to); } function getTotalClaimedForAllRounds() external view returns(uint256) { return totalSupply(); } function getTotalRemainingForAllRounds() external view returns(uint256) { (, uint val) = maxSupply.trySub(totalSupply()); return val; } function getTotalRemainingForSpecificRound(string calldata _roundType) external view returns(uint256) { RoundType roundType = getRoundTypeByKey(_roundType); return roundDistribution[roundType].totalRemaining; } function getTotalPending(string calldata _roundType, address _to) external view returns(uint256) { RoundType roundType = getRoundTypeByKey(_roundType); return reservedBalances[roundType][_to]; } function getTotalUnclaimed(string calldata _roundType, address _to) external view returns(uint256) { RoundType roundType = getRoundTypeByKey(_roundType); return reservedBalances[roundType][_to] - claimedBalances[roundType][_to]; } function getCliffTime(string calldata _roundType) external view onlyGameOwner returns(uint256) { RoundType roundType = getRoundTypeByKey(_roundType); return roundDistribution[roundType].cliff; } function getVestingTime() external view returns(uint) { return vestingStartTime; } // @_amount is going be decimals() == default(18) digits function reserveTokensInternal(RoundType _roundType, address _to, uint _amount) private { require(roundDistribution[_roundType].supply >= _amount, "given amount is bigger than max supply for the round"); require(roundDistribution[_roundType].totalRemaining >= _amount, "total remaining round amount is not enough"); require(_to != address(0), "Reservation address is 0x0 address"); roundDistribution[_roundType].totalRemaining -= _amount; reservedBalances[_roundType][_to] += _amount; } function initialReserveAndMint(address[] memory walletAddresses, uint _decimalUnits) private { require(walletAddresses.length == 7, "walletAddresses array is not the correct length"); address publicWalletAddress = walletAddresses[0]; address exchangesWalletAddress = walletAddresses[1]; address playAndEarnWalletAddress = walletAddresses[2]; address socialWalletAddress = walletAddresses[3]; address teamWalletAddress = walletAddresses[4]; address treasuryWalletAddress = walletAddresses[5]; address advisorsWalletAddress = walletAddresses[6]; //ALLOCATIONS WITH WALLET CONSTANT require(playAndEarnWalletAddress != address(0), "Play and earn wallet address is 0x0"); reserveTokensInternal(RoundType.PLAYANDEARN, playAndEarnWalletAddress, playAndEarnDistribution.supply); require(socialWalletAddress != address(0), "Social wallet address is 0x0"); reserveTokensInternal(RoundType.SOCIAL, socialWalletAddress, socialDistribution.supply); require(teamWalletAddress != address(0), "Team wallet address is 0x0"); reserveTokensInternal(RoundType.TEAM, teamWalletAddress, teamDistribution.supply); require(treasuryWalletAddress != address(0), "Treasury wallet address is 0x0"); reserveTokensInternal(RoundType.TREASURY, treasuryWalletAddress, treasuryDistribution.supply); require(advisorsWalletAddress != address(0), "Advisors wallet address is 0x0"); reserveTokensInternal(RoundType.ADVISOR, advisorsWalletAddress, advisorsDistribution.supply); require(exchangesWalletAddress != address(0), "Exchanges wallet address is 0x0"); // Initial minting of 23% of total supply for exchanges distribution uint256 initialExchangesSupply = 34_500_000 * (10 ** _decimalUnits); _mint(exchangesWalletAddress, initialExchangesSupply); roundDistribution[RoundType.EXCHANGES].totalRemaining -= initialExchangesSupply; // Reserving rest of the supply for exchanges distribution reserveTokensInternal(RoundType.EXCHANGES, exchangesWalletAddress, exchangesDistribution.supply - initialExchangesSupply); // Initial minting of 100% of total supply for public distribution uint256 initialPublicSupply = 120_000_000 * (10 ** _decimalUnits); roundDistribution[RoundType.PUBLIC].totalRemaining -= initialPublicSupply; _mint(publicWalletAddress, initialPublicSupply); } function calculateCliffTimeDiff(ClaimInfo memory claimInfo) private view returns(uint) { //How many seconds since the cliff? (negative if before cliff) if (block.timestamp < vestingStartTime) return 0; if (block.timestamp - vestingStartTime < claimInfo.cliff) return 0; return block.timestamp - vestingStartTime - claimInfo.cliff; } function calculateVestingForUserPerPeriod(ClaimInfo memory claimInfo) private pure returns(uint) { if (claimInfo.vestingPeriod <= 0) return claimInfo.reservedBalance; if (claimInfo.vestingGranularity <= 0) return claimInfo.reservedBalance; uint periods = claimInfo.vestingPeriod / claimInfo.vestingGranularity; //We divide the total balance by the number of seconds in the entire vesting period (vesting unit is seconds!). //Unless a tiny fractional total balance is reserved - below 10^-12 tokens with monthly vesting, or 10^-17 with daily granularity. return claimInfo.reservedBalance / periods; } function calculateMaximumRelease(ClaimInfo memory claimInfo) private pure returns(uint256) { // 1 for each fully spent period - if period is months, 1 per month, if period is days, 1 per day, etc. sample: 10 days or 2 months ( , uint periodsVested) = claimInfo.secondsVested.tryDiv(claimInfo.vestingGranularity); return periodsVested * claimInfo.vestingForUserPerPeriod; } function getClaimableBalance(string calldata _roundType, address _to) view public claimableRound(_roundType) returns(uint256) { RoundType roundType = getRoundTypeByKey(_roundType); ClaimInfo memory claimInfo = ClaimInfo({ cliff : roundDistribution[roundType].cliff, vestingPeriod : roundDistribution[roundType].vestingPeriod, reservedBalance : reservedBalances[roundType][_to], claimedBalance : claimedBalances[roundType][_to], vestingGranularity : roundDistribution[roundType].vestingGranularity, //e.g. Days or Months (in seconds!) secondsVested : 0, vestingForUserPerPeriod : 0 }); if(claimInfo.reservedBalance <= claimInfo.claimedBalance) return 0; claimInfo.secondsVested = calculateCliffTimeDiff(claimInfo); if(claimInfo.secondsVested <= 0) return 0; claimInfo.vestingForUserPerPeriod = calculateVestingForUserPerPeriod(claimInfo); ( , uint maximumUnclaimedRelease) = calculateMaximumRelease(claimInfo).trySub(claimInfo.claimedBalance); ( , uint unClaimedBalance) = claimInfo.reservedBalance.trySub(claimInfo.claimedBalance); return Math.min(unClaimedBalance, maximumUnclaimedRelease); } }
// SPDX-License-Identifier: AGPL-3.0-or-later pragma solidity 0.8.17; contract TokenDistribution { enum RoundType { SEED, PRIVATE, PUBLIC, PLAYANDEARN, EXCHANGES, TREASURY, ADVISOR, TEAM, SOCIAL } struct Distribution { uint256 vestingPeriod; // seconds uint256 cliff; // seconds uint256 totalRemaining; uint256 supply; uint256 vestingGranularity; } uint internal maxSupply; function getRoundTypeByKey(string memory _roundType) internal pure returns (RoundType) { bytes memory roundType = bytes(_roundType); bytes32 hash = keccak256(roundType); if (hash == keccak256("SEED") || hash == keccak256("seed")) return RoundType.SEED; if (hash == keccak256("PRIVATE") || hash == keccak256("private")) return RoundType.PRIVATE; if (hash == keccak256("PUBLIC") || hash == keccak256("public")) return RoundType.PUBLIC; if (hash == keccak256("PLAYANDEARN") || hash == keccak256("playandearn")) return RoundType.PLAYANDEARN; if (hash == keccak256("EXCHANGES") || hash == keccak256("exchanges")) return RoundType.EXCHANGES; if (hash == keccak256("TREASURY") || hash == keccak256("treasury")) return RoundType.TREASURY; if (hash == keccak256("ADVISOR") || hash == keccak256("advisor")) return RoundType.ADVISOR; if (hash == keccak256("TEAM") || hash == keccak256("team")) return RoundType.TEAM; if (hash == keccak256("SOCIAL") || hash == keccak256("social")) return RoundType.SOCIAL; revert(); } }
// SPDX-License-Identifier: AGPL-3.0-or-later pragma solidity 0.8.17; import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165Checker.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "../token-distribution/SaleRounds.sol"; contract GovernanceToken is IERC165, SaleRounds { using ERC165Checker for address; bytes4 public constant IID_IERC20 = type(IERC20).interfaceId; bytes4 public constant IID_IERC165 = type(IERC165).interfaceId; uint8 private decimalUnits; constructor(string memory _tokenName, uint8 _decimalUnits, string memory _tokenSymbol, address _gameOwnerAddress, address[] memory _walletAddresses) SaleRounds(_tokenName, _tokenSymbol, _decimalUnits, _gameOwnerAddress, _walletAddresses) { decimalUnits = _decimalUnits; } function isERC20() external view returns (bool) { return address(this).supportsInterface(IID_IERC20); } function supportsInterface(bytes4 interfaceId) external pure override returns (bool) { return interfaceId == IID_IERC20 || interfaceId == IID_IERC165; } function decimals() public view virtual override returns (uint8) { return decimalUnits; } }
// SPDX-License-Identifier: AGPL-3.0-or-later pragma solidity 0.8.17; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; contract GameOwner is Ownable { address private gameOwnerAddress; using Address for address; event SetGameOwnerEvent(address indexed gameOwner); /** * Constructor method which calls initial setters for all the contracts */ constructor(address _gameOwnerAddress) { require(_gameOwnerAddress != address(0), "GameOwner: game owner address can't be 0x0"); gameOwnerAddress = _gameOwnerAddress; } /** * Setter method for gameOwnerAddress variable */ function setGameOwnerAddress(address _newAddress) external onlyGameOwner { require(_newAddress != address(0), "GameOwner: game owner address can't be 0x0"); gameOwnerAddress = _newAddress; emit SetGameOwnerEvent(_newAddress); } /** * Getter method for gameOwnerAddress variable which returns address * @return address */ function getGameOwnerAddress() external view returns(address) { return gameOwnerAddress; } /** * Method which checks if the address is game owner address * @return bool **/ function isGameOwnerAddress() internal view returns(bool) { return gameOwnerAddress == _msgSender(); } /** * Modifier which restricts method execution to onlyGameOwner address */ modifier onlyGameOwner() { require(isGameOwnerAddress(), "GameOwner: caller is not the game address"); _; } }
{ "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_tokenName","type":"string"},{"internalType":"uint8","name":"_decimalUnits","type":"uint8"},{"internalType":"string","name":"_tokenSymbol","type":"string"},{"internalType":"address","name":"_gameOwnerAddress","type":"address"},{"internalType":"address[]","name":"_walletAddresses","type":"address[]"}],"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":"string","name":"roundType","type":"string"},{"indexed":false,"internalType":"uint256","name":"balanceToRelease","type":"uint256"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ClaimTokensEvent","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":"string","name":"roundType","type":"string"},{"indexed":false,"internalType":"uint256","name":"resserveAmount","type":"uint256"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ReserveTokensEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"gameOwner","type":"address"}],"name":"SetGameOwnerEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"IID_IERC165","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"IID_IERC20","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"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":[],"name":"beginVesting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_roundType","type":"string"},{"internalType":"address","name":"_to","type":"address"}],"name":"claimTokens","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":"string","name":"_roundType","type":"string"},{"internalType":"address","name":"_to","type":"address"}],"name":"getClaimableBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_roundType","type":"string"}],"name":"getCliffTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getGameOwnerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalClaimedForAllRounds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_roundType","type":"string"},{"internalType":"address","name":"_to","type":"address"}],"name":"getTotalPending","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalRemainingForAllRounds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_roundType","type":"string"}],"name":"getTotalRemainingForSpecificRound","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_roundType","type":"string"},{"internalType":"address","name":"_to","type":"address"}],"name":"getTotalUnclaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getVestingTime","outputs":[{"internalType":"uint256","name":"","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":"isERC20","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"string","name":"_roundType","type":"string"},{"internalType":"address","name":"_to","type":"address"}],"name":"removeReservedAllocations","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_roundType","type":"string"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"reserveTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum TokenDistribution.RoundType","name":"","type":"uint8"}],"name":"roundDistribution","outputs":[{"internalType":"uint256","name":"vestingPeriod","type":"uint256"},{"internalType":"uint256","name":"cliff","type":"uint256"},{"internalType":"uint256","name":"totalRemaining","type":"uint256"},{"internalType":"uint256","name":"supply","type":"uint256"},{"internalType":"uint256","name":"vestingGranularity","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newAddress","type":"address"}],"name":"setGameOwnerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","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":[],"name":"vestingStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405266038d7ea4c67fff6008553480156200001c57600080fd5b5060405162004505380380620045058339810160408190526200003f91620016d9565b848360ff86168484848483620000553362000d6d565b6001600160a01b038116620000c45760405162461bcd60e51b815260206004820152602a60248201527f47616d654f776e65723a2067616d65206f776e6572206164647265737320636160448201526906e2774206265203078360b41b60648201526084015b60405180910390fd5b600280546001600160a01b0319166001600160a01b03929092169190911790556006620000f283826200189b565b5060076200010182826200189b565b5050506040518060a0016040528062278d0060166200012191906200197d565b81526020016200013662278d0060026200197d565b81526020016200014885600a62001a9a565b6200015890631908b1006200197d565b81526020016200016a85600a62001a9a565b6200017a90631908b1006200197d565b81526201518060209182015281516025558101516026556040808201516027556060820151602855608090910151602955805160a0810190915280620001c562278d0060166200197d565b8152602001620001da62278d0060026200197d565b8152602001620001ec85600a62001a9a565b620001fc90630c8458806200197d565b81526020016200020e85600a62001a9a565b6200021e90630c8458806200197d565b8152620151806020918201528151601b55810151601c55604080820151601d556060820151601e55608090910151601f55805160a08101909152806200026962278d0060066200197d565b8152600060208201526040016200028285600a62001a9a565b62000292906307270e006200197d565b8152602001620002a485600a62001a9a565b620002b4906307270e006200197d565b8152620151806020918201528151815581015160215560408082015160225560608201516023908155608090920151602455805160a08101909152908190620003029062278d00906200197d565b81526020016200031762278d0060026200197d565b81526020016200032985600a62001a9a565b62000339906323c346006200197d565b81526020016200034b85600a62001a9a565b6200035b906323c346006200197d565b81526201518060209182015281516016558101516017556040808201516018556060820151601955608090910151601a55805160a0810190915280620003a662278d0060036200197d565b815260006020820152604001620003bf85600a62001a9a565b620003cf906308f0d1806200197d565b8152602001620003e185600a62001a9a565b620003f1906308f0d1806200197d565b81526201518060209182015281516011558101516012556040808201516013556060820151601455608090910151601555805160a08101909152806200043c62278d00601e6200197d565b81526020016200045162278d0060026200197d565b81526020016200046385600a62001a9a565b62000473906333db25806200197d565b81526020016200048585600a62001a9a565b62000495906333db25806200197d565b81526201518060209182015281516034558101516035556040808201516036556060820151603755608090910151603855805160a0810190915280620004e062278d0060146200197d565b8152602001620004f562278d0060046200197d565b81526020016200050785600a62001a9a565b62000517906308f0d1806200197d565b81526020016200052985600a62001a9a565b62000539906308f0d1806200197d565b815262278d0060209182018190528251600c5590820151600d55604080830151600e556060830151600f55608090920151601055815160a081019092528190620005859060186200197d565b81526020016200059a62278d00600c6200197d565b8152602001620005ac85600a62001a9a565b620005bc90631ad274806200197d565b8152602001620005ce85600a62001a9a565b620005de90631ad274806200197d565b815262278d0060209182018190528251602f55908201516030556040808301516031556060830151603255608090920151603355815160a0810190925281906200062a9060166200197d565b81526020016200063f62278d0060026200197d565b81526020016200065185600a62001a9a565b62000661906301c9c3806200197d565b81526020016200067385600a62001a9a565b62000683906301c9c3806200197d565b815262278d006020918201528151602a81905582820151602b8190556040840151602c8190556060850151602d819055608090950151602e819055600985526025547fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b556026547fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6c556027547fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6d556028547fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6e556029547fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6f55601b547f92e85d02570a8092d09a6e3a57665bc3815a2699a4074001bf1ccabf660f5a3655601c547f92e85d02570a8092d09a6e3a57665bc3815a2699a4074001bf1ccabf660f5a3755601d547f92e85d02570a8092d09a6e3a57665bc3815a2699a4074001bf1ccabf660f5a3855601e547f92e85d02570a8092d09a6e3a57665bc3815a2699a4074001bf1ccabf660f5a3955601f547f92e85d02570a8092d09a6e3a57665bc3815a2699a4074001bf1ccabf660f5a3a5593547f6cde3cea4b3a3fb2488b2808bae7556f4a405e50f65e1794383bc026131b13c3556021547f6cde3cea4b3a3fb2488b2808bae7556f4a405e50f65e1794383bc026131b13c455602254600080516020620044c5833981519152556023547f6cde3cea4b3a3fb2488b2808bae7556f4a405e50f65e1794383bc026131b13c6556024547f6cde3cea4b3a3fb2488b2808bae7556f4a405e50f65e1794383bc026131b13c7556016547fc575c31fea594a6eb97c8e9d3f9caee4c16218c6ef37e923234c0fe9014a61e7556017547fc575c31fea594a6eb97c8e9d3f9caee4c16218c6ef37e923234c0fe9014a61e8556018547fc575c31fea594a6eb97c8e9d3f9caee4c16218c6ef37e923234c0fe9014a61e9556019547fc575c31fea594a6eb97c8e9d3f9caee4c16218c6ef37e923234c0fe9014a61ea55601a547fc575c31fea594a6eb97c8e9d3f9caee4c16218c6ef37e923234c0fe9014a61eb557fc7694af312c4f286114180fd0ba6a52461fcee8a381636770b19a343af92538a929092557fc7694af312c4f286114180fd0ba6a52461fcee8a381636770b19a343af92538b557fc7694af312c4f286114180fd0ba6a52461fcee8a381636770b19a343af92538c557fc7694af312c4f286114180fd0ba6a52461fcee8a381636770b19a343af92538d919091557fc7694af312c4f286114180fd0ba6a52461fcee8a381636770b19a343af92538e556011547f8dc18c4ccfd75f5c815b63770fa542fd953e8fef7e0e44bbdd4913470ce7e9cb556012547f8dc18c4ccfd75f5c815b63770fa542fd953e8fef7e0e44bbdd4913470ce7e9cc55601354600080516020620044e5833981519152556014547f8dc18c4ccfd75f5c815b63770fa542fd953e8fef7e0e44bbdd4913470ce7e9ce556015547f8dc18c4ccfd75f5c815b63770fa542fd953e8fef7e0e44bbdd4913470ce7e9cf55602f547fae6299332bcd708cd60e3a8defa55de28078a50a4cf2b3de3a546253240ff9e1556030547fae6299332bcd708cd60e3a8defa55de28078a50a4cf2b3de3a546253240ff9e2556031547fae6299332bcd708cd60e3a8defa55de28078a50a4cf2b3de3a546253240ff9e3556032547fae6299332bcd708cd60e3a8defa55de28078a50a4cf2b3de3a546253240ff9e4556033547fae6299332bcd708cd60e3a8defa55de28078a50a4cf2b3de3a546253240ff9e5556034547f74b05292d1d4b2b48b65261b07099d24244bcb069f138d9a6bfdcf776becac4c556035547f74b05292d1d4b2b48b65261b07099d24244bcb069f138d9a6bfdcf776becac4d556036547f74b05292d1d4b2b48b65261b07099d24244bcb069f138d9a6bfdcf776becac4e556037547f74b05292d1d4b2b48b65261b07099d24244bcb069f138d9a6bfdcf776becac4f556038547f74b05292d1d4b2b48b65261b07099d24244bcb069f138d9a6bfdcf776becac50556006600052600c547fbb6daa0c283751197dfdc76590680f9005e97d6f23870deb1164ab60b28b9f5f55600d547fbb6daa0c283751197dfdc76590680f9005e97d6f23870deb1164ab60b28b9f6055600e547fbb6daa0c283751197dfdc76590680f9005e97d6f23870deb1164ab60b28b9f6155600f547fbb6daa0c283751197dfdc76590680f9005e97d6f23870deb1164ab60b28b9f62556010547fbb6daa0c283751197dfdc76590680f9005e97d6f23870deb1164ab60b28b9f635562000d2983600a62001a9a565b62000d399063b2d05e006200197d565b60005562000d48818462000dbf565b50506039805460ff191660ff98909816979097179096555062001b0795505050505050565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b815160071462000e2a5760405162461bcd60e51b815260206004820152602f60248201527f77616c6c6574416464726573736573206172726179206973206e6f742074686560448201526e040c6dee4e4cac6e840d8cadccee8d608b1b6064820152608401620000bb565b60008260008151811062000e425762000e4262001ac5565b6020026020010151905060008360018151811062000e645762000e6462001ac5565b6020026020010151905060008460028151811062000e865762000e8662001ac5565b6020026020010151905060008560038151811062000ea85762000ea862001ac5565b6020026020010151905060008660048151811062000eca5762000eca62001ac5565b6020026020010151905060008760058151811062000eec5762000eec62001ac5565b6020026020010151905060008860068151811062000f0e5762000f0e62001ac5565b6020026020010151905060006001600160a01b0316856001600160a01b03160362000f885760405162461bcd60e51b815260206004820152602360248201527f506c617920616e64206561726e2077616c6c657420616464726573732069732060448201526203078360ec1b6064820152608401620000bb565b60195462000f9b90600390879062001290565b6001600160a01b03841662000ff35760405162461bcd60e51b815260206004820152601c60248201527f536f6369616c2077616c6c6574206164647265737320697320307830000000006044820152606401620000bb565b602d546200100690600890869062001290565b6001600160a01b0383166200105e5760405162461bcd60e51b815260206004820152601a60248201527f5465616d2077616c6c65742061646472657373206973203078300000000000006044820152606401620000bb565b6032546200107190600790859062001290565b6001600160a01b038216620010c95760405162461bcd60e51b815260206004820152601e60248201527f54726561737572792077616c6c657420616464726573732069732030783000006044820152606401620000bb565b603754620010dc90600590849062001290565b6001600160a01b038116620011345760405162461bcd60e51b815260206004820152601e60248201527f41647669736f72732077616c6c657420616464726573732069732030783000006044820152606401620000bb565b600f546200114790600690839062001290565b6001600160a01b0386166200119f5760405162461bcd60e51b815260206004820152601f60248201527f45786368616e6765732077616c6c6574206164647265737320697320307830006044820152606401620000bb565b6000620011ae89600a62001a9a565b620011be9063020e6da06200197d565b9050620011cc87826200151c565b600460009081526009602052600080516020620044e58339815191528054839290620011fa90849062001adb565b90915550506014546200121f9060049089906200121990859062001adb565b62001290565b60006200122e8a600a62001a9a565b6200123e906307270e006200197d565b600260009081526009602052600080516020620044c5833981519152805492935083929091906200127190849062001adb565b9091555062001283905089826200151c565b5050505050505050505050565b8060096000856008811115620012aa57620012aa62001aaf565b6008811115620012be57620012be62001aaf565b8152602001908152602001600020600301541015620013465760405162461bcd60e51b815260206004820152603460248201527f676976656e20616d6f756e7420697320626967676572207468616e206d61782060448201527f737570706c7920666f722074686520726f756e640000000000000000000000006064820152608401620000bb565b806009600085600881111562001360576200136062001aaf565b600881111562001374576200137462001aaf565b8152602001908152602001600020600201541015620013e95760405162461bcd60e51b815260206004820152602a60248201527f746f74616c2072656d61696e696e6720726f756e6420616d6f756e74206973206044820152690dcdee840cadcdeeaced60b31b6064820152608401620000bb565b6001600160a01b0382166200144c5760405162461bcd60e51b815260206004820152602260248201527f5265736572766174696f6e206164647265737320697320307830206164647265604482015261737360f01b6064820152608401620000bb565b806009600085600881111562001466576200146662001aaf565b60088111156200147a576200147a62001aaf565b815260200190815260200160002060020160008282546200149c919062001adb565b90915550819050600a6000856008811115620014bc57620014bc62001aaf565b6008811115620014d057620014d062001aaf565b81526020019081526020016000206000846001600160a01b03166001600160a01b03168152602001908152602001600020600082825462001512919062001af1565b9091555050505050565b6001600160a01b038216620015745760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401620000bb565b806005600082825462001588919062001af1565b90915550506001600160a01b0382166000818152600360209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715620016275762001627620015e6565b604052919050565b600082601f8301126200164157600080fd5b81516001600160401b038111156200165d576200165d620015e6565b602062001673601f8301601f19168201620015fc565b82815285828487010111156200168857600080fd5b60005b83811015620016a85785810183015182820184015282016200168b565b506000928101909101919091529392505050565b80516001600160a01b0381168114620016d457600080fd5b919050565b600080600080600060a08688031215620016f257600080fd5b85516001600160401b03808211156200170a57600080fd5b6200171889838a016200162f565b9650602091508188015160ff811681146200173257600080fd5b6040890151909650818111156200174857600080fd5b620017568a828b016200162f565b9550506200176760608901620016bc565b93506080880151818111156200177c57600080fd5b8801601f81018a136200178e57600080fd5b805182811115620017a357620017a3620015e6565b8060051b9250620017b6848401620015fc565b818152928201840192848101908c851115620017d157600080fd5b928501925b84841015620017fa57620017ea84620016bc565b82529285019290850190620017d6565b8096505050505050509295509295909350565b600181811c908216806200182257607f821691505b6020821081036200184357634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620015e157600081815260208120601f850160051c81016020861015620018725750805b601f850160051c820191505b8181101562001893578281556001016200187e565b505050505050565b81516001600160401b03811115620018b757620018b7620015e6565b620018cf81620018c884546200180d565b8462001849565b602080601f831160018114620019075760008415620018ee5750858301515b600019600386901b1c1916600185901b17855562001893565b600085815260208120601f198616915b82811015620019385788860151825594840194600190910190840162001917565b5085821015620019575787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141762001997576200199762001967565b92915050565b600181815b80851115620019de578160001904821115620019c257620019c262001967565b80851615620019d057918102915b93841c9390800290620019a2565b509250929050565b600082620019f75750600162001997565b8162001a065750600062001997565b816001811462001a1f576002811462001a2a5762001a4a565b600191505062001997565b60ff84111562001a3e5762001a3e62001967565b50506001821b62001997565b5060208310610133831016604e8410600b841016171562001a6f575081810a62001997565b62001a7b83836200199d565b806000190482111562001a925762001a9262001967565b029392505050565b600062001aa88383620019e6565b9392505050565b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b8181038181111562001997576200199762001967565b8082018082111562001997576200199762001967565b6129ae8062001b176000396000f3fe608060405234801561001057600080fd5b50600436106102265760003560e01c80637b128d3b1161012a578063c8d1d79f116100bd578063dd1cda621161008c578063e1a6108b11610071578063e1a6108b146104f8578063f2fde38b14610500578063ffe76a641461051357600080fd5b8063dd1cda62146104b7578063dd62ed3e146104bf57600080fd5b8063c8d1d79f1461046b578063d0044fdf1461047e578063d0894e9c14610491578063d5eca967146104a457600080fd5b8063a4027838116100f9578063a402783814610415578063a457c2d71461043c578063a8660a781461044f578063a9059cbb1461045857600080fd5b80637b128d3b146103d657806389b683fe146103e95780638da5cb5b146103fc57806395d89b411461040d57600080fd5b80632eb67f53116101bd57806342226e4c1161018c5780636f5ee7f0116101715780636f5ee7f01461039257806370a08231146103a5578063715018a6146103ce57600080fd5b806342226e4c1461036557806366da4c641461036d57600080fd5b80632eb67f53146102d0578063313ce567146102d8578063390b5712146102ed578063395093511461035257600080fd5b806318160ddd116101f957806318160ddd1461029057806323b872dd146102a257806329fc6a7f146102b55780632ea84d27146102bd57600080fd5b806301ffc9a71461022b57806306fdde0314610253578063095ea7b3146102685780630cbe788f1461027b575b600080fd5b61023e6102393660046125f0565b610521565b60405190151581526020015b60405180910390f35b61025b610558565b60405161024a919061261a565b61023e610276366004612684565b6105ea565b61028e6102893660046126f0565b610602565b005b6005545b60405190815260200161024a565b61023e6102b0366004612744565b61091f565b610294610943565b6102946102cb366004612780565b610953565b61023e610a4c565b60395460405160ff909116815260200161024a565b61032a6102fb3660046127c2565b600960205260009081526040902080546001820154600283015460038401546004909401549293919290919085565b604080519586526020860194909452928401919091526060830152608082015260a00161024a565b61023e610360366004612684565b610a5f565b610294610a9e565b6002546001600160a01b03165b6040516001600160a01b03909116815260200161024a565b61028e6103a03660046126f0565b610abd565b6102946103b33660046127e3565b6001600160a01b031660009081526003602052604090205490565b61028e610dd2565b6102946103e43660046126f0565b610de6565b61028e6103f73660046127fe565b611128565b6001546001600160a01b031661037a565b61025b611305565b6104236301ffc9a760e01b81565b6040516001600160e01b0319909116815260200161024a565b61023e61044a366004612684565b611314565b61029460085481565b61023e610466366004612684565b6113be565b610294610479366004612780565b6113cc565b61028e61048c3660046127e3565b611452565b61029461049f3660046126f0565b611597565b6102946104b23660046126f0565b6116a0565b600854610294565b6102946104cd36600461285a565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205490565b61028e611747565b61028e61050e3660046127e3565b611836565b6104236336372b0760e01b81565b60006001600160e01b031982166336372b0760e01b148061055257506001600160e01b031982166301ffc9a760e01b145b92915050565b6060600680546105679061288d565b80601f01602080910402602001604051908101604052809291908181526020018280546105939061288d565b80156105e05780601f106105b5576101008083540402835291602001916105e0565b820191906000526020600020905b8154815290600101906020018083116105c357829003601f168201915b5050505050905090565b6000336105f88185856118c6565b5060019392505050565b6106166002546001600160a01b0316331490565b6106795760405162461bcd60e51b815260206004820152602960248201527f47616d654f776e65723a2063616c6c6572206973206e6f74207468652067616d60448201526865206164647265737360b81b60648201526084015b60405180910390fd5b42600854116106ca5760405162461bcd60e51b815260206004820152601860248201527f546f6b656e2076657374696e672068617320626567756e2e00000000000000006044820152606401610670565b600061070b84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611a0392505050565b90506000600a6000836008811115610725576107256128c7565b6008811115610736576107366128c7565b81526020019081526020016000206000846001600160a01b03166001600160a01b0316815260200190815260200160002054116107b55760405162461bcd60e51b815260206004820152601c60248201527f7468657265206973206e6f2072657365727665642062616c616e6365000000006044820152606401610670565b6001600160a01b0382166108165760405162461bcd60e51b815260206004820152602260248201527f5265736572766174696f6e206164647265737320697320307830206164647265604482015261737360f01b6064820152608401610670565b600a600082600881111561082c5761082c6128c7565b600881111561083d5761083d6128c7565b81526020019081526020016000206000836001600160a01b03166001600160a01b031681526020019081526020016000205460096000836008811115610885576108856128c7565b6008811115610896576108966128c7565b815260200190815260200160002060020160008282546108b691906128f3565b9091555060009050600a818360088111156108d3576108d36128c7565b60088111156108e4576108e46128c7565b81526020019081526020016000206000846001600160a01b03166001600160a01b031681526020019081526020016000208190555050505050565b60003361092d858285611d4b565b610938858585611ddd565b506001949350505050565b600061094e60055490565b905090565b60006109696002546001600160a01b0316331490565b6109c75760405162461bcd60e51b815260206004820152602960248201527f47616d654f776e65723a2063616c6c6572206973206e6f74207468652067616d60448201526865206164647265737360b81b6064820152608401610670565b6000610a0884848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611a0392505050565b905060096000826008811115610a2057610a206128c7565b6008811115610a3157610a316128c7565b81526020019081526020016000206001015491505092915050565b600061094e306336372b0760e01b611fd1565b3360008181526004602090815260408083206001600160a01b03871684529091528120549091906105f89082908690610a999087906128f3565b6118c6565b600080610ab6610aad60055490565b60005490611fed565b9392505050565b82826000610b0083838080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611a0392505050565b90506002816008811115610b1657610b166128c7565b03610b895760405162461bcd60e51b815260206004820152603360248201527f436c61696d696e672f526573657276696e67206973206e6f7420737570706f7260448201527f74656420666f72207468697320726f756e642e000000000000000000000000006064820152608401610670565b600854421015610bdb5760405162461bcd60e51b815260206004820181905260248201527f546f6b656e2076657374696e6720686173206e6f742079657420626567756e2e6044820152606401610670565b336001600160a01b03851614610c595760405162461bcd60e51b815260206004820152602160248201527f43616e6e6f7420636c61696d20666f7220616e6f74686572206163636f756e7460448201527f2e000000000000000000000000000000000000000000000000000000000000006064820152608401610670565b6000610c9a87878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611a0392505050565b90506000610ca9888888610de6565b905060008111610cfb5760405162461bcd60e51b815260206004820152601160248201527f4e6f7468696e6720746f20636c61696d2e0000000000000000000000000000006044820152606401610670565b80600b6000846008811115610d1257610d126128c7565b6008811115610d2357610d236128c7565b81526020019081526020016000206000886001600160a01b03166001600160a01b031681526020019081526020016000206000828254610d6391906128f3565b90915550610d7390508682612013565b856001600160a01b03168888604051610d8d929190612906565b604051908190038120838252907f2963b9efd9587d0ff7b97dc74b7efad618bce57935c028b7b70806672ddb5ad4906020015b60405180910390a35050505050505050565b610dda6120d4565b610de4600061212e565b565b600083836000610e2b83838080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611a0392505050565b90506002816008811115610e4157610e416128c7565b03610eb45760405162461bcd60e51b815260206004820152603360248201527f436c61696d696e672f526573657276696e67206973206e6f7420737570706f7260448201527f74656420666f72207468697320726f756e642e000000000000000000000000006064820152608401610670565b6000610ef588888080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611a0392505050565b905060006040518060e0016040528060096000856008811115610f1a57610f1a6128c7565b6008811115610f2b57610f2b6128c7565b815260200190815260200160002060010154815260200160096000856008811115610f5857610f586128c7565b6008811115610f6957610f696128c7565b8152602001908152602001600020600001548152602001600a6000856008811115610f9657610f966128c7565b6008811115610fa757610fa76128c7565b815260200190815260200160002060008a6001600160a01b03166001600160a01b03168152602001908152602001600020548152602001600b6000856008811115610ff457610ff46128c7565b6008811115611005576110056128c7565b815260200190815260200160002060008a6001600160a01b03166001600160a01b0316815260200190815260200160002054815260200160096000856008811115611052576110526128c7565b6008811115611063576110636128c7565b8152602001908152602001600020600401548152602001600081526020016000815250905080606001518160400151116110a25760009550505061111e565b6110ab8161218d565b60a082018190526110c15760009550505061111e565b6110ca816121d7565b60c082015260608101516000906110ea906110e484612228565b90611fed565b915050600061110a83606001518460400151611fed90919063ffffffff16565b9150506111178183612259565b9750505050505b5050509392505050565b61113c6002546001600160a01b0316331490565b61119a5760405162461bcd60e51b815260206004820152602960248201527f47616d654f776e65723a2063616c6c6572206973206e6f74207468652067616d60448201526865206164647265737360b81b6064820152608401610670565b838360006111dd83838080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611a0392505050565b905060028160088111156111f3576111f36128c7565b036112665760405162461bcd60e51b815260206004820152603360248201527f436c61696d696e672f526573657276696e67206973206e6f7420737570706f7260448201527f74656420666f72207468697320726f756e642e000000000000000000000000006064820152608401610670565b60006112a788888080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611a0392505050565b90506112b481878761226f565b856001600160a01b031688886040516112ce929190612906565b604051908190038120878252907f8c4119c12c46160af0703911cfb13a328077931075b6191bfd2191b4b20d465f90602001610dc0565b6060600780546105679061288d565b3360008181526004602090815260408083206001600160a01b0387168452909152812054909190838110156113b15760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610670565b61093882868684036118c6565b6000336105f8818585611ddd565b60008061140e84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611a0392505050565b905060096000826008811115611426576114266128c7565b6008811115611437576114376128c7565b81526020019081526020016000206002015491505092915050565b6114666002546001600160a01b0316331490565b6114c45760405162461bcd60e51b815260206004820152602960248201527f47616d654f776e65723a2063616c6c6572206973206e6f74207468652067616d60448201526865206164647265737360b81b6064820152608401610670565b6001600160a01b0381166115405760405162461bcd60e51b815260206004820152602a60248201527f47616d654f776e65723a2067616d65206f776e6572206164647265737320636160448201527f6e277420626520307830000000000000000000000000000000000000000000006064820152608401610670565b6002805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0383169081179091556040517f8934650728c38cf3e0574180f98a42481643c832d171c3e2646a389c6105057e90600090a250565b6000806115d985858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611a0392505050565b9050600b60008260088111156115f1576115f16128c7565b6008811115611602576116026128c7565b81526020019081526020016000206000846001600160a01b03166001600160a01b0316815260200190815260200160002054600a600083600881111561164a5761164a6128c7565b600881111561165b5761165b6128c7565b81526020019081526020016000206000856001600160a01b03166001600160a01b03168152602001908152602001600020546116979190612916565b95945050505050565b6000806116e285858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611a0392505050565b9050600a60008260088111156116fa576116fa6128c7565b600881111561170b5761170b6128c7565b81526020019081526020016000206000846001600160a01b03166001600160a01b03168152602001908152602001600020549150509392505050565b61175b6002546001600160a01b0316331490565b6117b95760405162461bcd60e51b815260206004820152602960248201527f47616d654f776e65723a2063616c6c6572206973206e6f74207468652067616d60448201526865206164647265737360b81b6064820152608401610670565b42600854116118305760405162461bcd60e51b815260206004820152602360248201527f53746172742076657374696e672074696d652077617320616c7265616479207360448201527f65742e00000000000000000000000000000000000000000000000000000000006064820152608401610670565b42600855565b61183e6120d4565b6001600160a01b0381166118ba5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610670565b6118c38161212e565b50565b6001600160a01b0383166119415760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610670565b6001600160a01b0382166119a25760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610670565b6001600160a01b0383811660008181526004602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b8051602082012060009082907fb4f9163b703772b483a6ee342644f2aca217818660634e57ab3d1a17732a8bce811480611a5c57507f66a80b61b29ec044d14c4c8c613e762ba1fb8eeb0c454d1ee00ed6dedaa5b5c581145b15611a6b575060009392505050565b7ff00e4b518efc87d303e5c61b61e77bf6be54166541794bb4ef7d5eb34b79c605811480611ab857507fba0b8d7971d83a895b04f69bb35eb4161849cc1e4886c0eec88858e4667ebaae81145b15611ac7575060019392505050565b7f0dcb90aa16cbc9d9801c9664728a10e67b804066460e005e084b6f5a25f123e5811480611b1457507f3c0c3a2537aaf75b853bbf2b595e872d3db0359b7e792ebd8907fb017c3b71a281145b15611b23575060029392505050565b7f6eb0620412cc109549d6fad1def5d06aa8ae8f1c34745141c04c7490a8b20f7b811480611b7057507f50a049642bbabe089be4196d32cbe0b19d817eab44c3fb3993bbd542b5de582981145b15611b7f575060039392505050565b7f1e4eff84eb5cce192268a7a1d312be9b6423ce78643d72cb1f195f2c4f4c5360811480611bcc57507fdc96320f298911e5da5be26931c9e739b09dbbc911523a1a5f4fda0571f5378981145b15611bdb575060049392505050565b7f06aa03964db1f7257357ef09714a5f0ca3633723df419e97015e0c7a3e83edb7811480611c2857507fcbd818ad4dd6f1ff9338c2bb62480241424dd9a65f9f3284101a01cd099ad8ac81145b15611c37575060059392505050565b7f7977b0dd767f6e4f9acb903650fe437e0d0ebc1dfbb16d0da90a8c92f15b0c3a811480611c8457507fbd088c99b1e7efe40c6cc6be0a2e3be210440eae7c30ad96be78208250e9418681145b15611c93575060069392505050565b7f9b82d2f38fbdf13006bfa741767f793d917e063392737837b580c1c2b1e0bab3811480611ce057507fe1dfd0dbf63767a45b3f20993b337a1eef2b19b117cd799475c77d789e43b92d81145b15611cef575060079392505050565b7f88c66d6c4841eda37d335c6bacda17221b192eb491233cf4b983d8b4d79ff7f9811480611d3c57507f3ae7be79adfacb03b53e8631fa030f3a07d1e0805fdcfcbafe24d21fdf6d87d881145b15610226575060089392505050565b6001600160a01b038381166000908152600460209081526040808320938616835292905220546000198114611dd75781811015611dca5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610670565b611dd784848484036118c6565b50505050565b6001600160a01b038316611e595760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610670565b6001600160a01b038216611ed55760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610670565b6001600160a01b03831660009081526003602052604090205481811015611f645760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610670565b6001600160a01b0380851660008181526003602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611fc49086815260200190565b60405180910390a3611dd7565b6000611fdc836124ec565b8015610ab65750610ab6838361251f565b600080838311156120035750600090508061200c565b50600190508183035b9250929050565b6001600160a01b0382166120695760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610670565b806005600082825461207b91906128f3565b90915550506001600160a01b0382166000818152600360209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001546001600160a01b03163314610de45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610670565b600180546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006008544210156121a157506000919050565b81516008546121b09042612916565b10156121be57506000919050565b81516008546121cd9042612916565b6105529190612916565b6000808260200151116121ec57506040015190565b600082608001511161220057506040015190565b600082608001518360200151612216919061293f565b9050808360400151610ab6919061293f565b60008061224683608001518460a001516125bd90919063ffffffff16565b9150508260c0015181610ab69190612961565b60008183106122685781610ab6565b5090919050565b8060096000856008811115612286576122866128c7565b6008811115612297576122976128c7565b815260200190815260200160002060030154101561231d5760405162461bcd60e51b815260206004820152603460248201527f676976656e20616d6f756e7420697320626967676572207468616e206d61782060448201527f737570706c7920666f722074686520726f756e640000000000000000000000006064820152608401610670565b8060096000856008811115612334576123346128c7565b6008811115612345576123456128c7565b81526020019081526020016000206002015410156123cb5760405162461bcd60e51b815260206004820152602a60248201527f746f74616c2072656d61696e696e6720726f756e6420616d6f756e742069732060448201527f6e6f7420656e6f756768000000000000000000000000000000000000000000006064820152608401610670565b6001600160a01b03821661242c5760405162461bcd60e51b815260206004820152602260248201527f5265736572766174696f6e206164647265737320697320307830206164647265604482015261737360f01b6064820152608401610670565b8060096000856008811115612443576124436128c7565b6008811115612454576124546128c7565b815260200190815260200160002060020160008282546124749190612916565b90915550819050600a6000856008811115612491576124916128c7565b60088111156124a2576124a26128c7565b81526020019081526020016000206000846001600160a01b03166001600160a01b0316815260200190815260200160002060008282546124e291906128f3565b9091555050505050565b60006124ff826301ffc9a760e01b61251f565b80156105525750612518826001600160e01b031961251f565b1592915050565b604080516001600160e01b03198316602480830191909152825180830390910181526044909101909152602080820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166301ffc9a760e01b178152825160009392849283928392918391908a617530fa92503d915060005190508280156125a6575060208210155b80156125b25750600081115b979650505050505050565b600080826000036125d35750600090508061200c565b60018385816125e4576125e4612929565b04915091509250929050565b60006020828403121561260257600080fd5b81356001600160e01b031981168114610ab657600080fd5b600060208083528351808285015260005b818110156126475785810183015185820160400152820161262b565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b038116811461267f57600080fd5b919050565b6000806040838503121561269757600080fd5b6126a083612668565b946020939093013593505050565b60008083601f8401126126c057600080fd5b50813567ffffffffffffffff8111156126d857600080fd5b60208301915083602082850101111561200c57600080fd5b60008060006040848603121561270557600080fd5b833567ffffffffffffffff81111561271c57600080fd5b612728868287016126ae565b909450925061273b905060208501612668565b90509250925092565b60008060006060848603121561275957600080fd5b61276284612668565b925061277060208501612668565b9150604084013590509250925092565b6000806020838503121561279357600080fd5b823567ffffffffffffffff8111156127aa57600080fd5b6127b6858286016126ae565b90969095509350505050565b6000602082840312156127d457600080fd5b813560098110610ab657600080fd5b6000602082840312156127f557600080fd5b610ab682612668565b6000806000806060858703121561281457600080fd5b843567ffffffffffffffff81111561282b57600080fd5b612837878288016126ae565b909550935061284a905060208601612668565b9396929550929360400135925050565b6000806040838503121561286d57600080fd5b61287683612668565b915061288460208401612668565b90509250929050565b600181811c908216806128a157607f821691505b6020821081036128c157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052601160045260246000fd5b80820180821115610552576105526128dd565b8183823760009101908152919050565b81810381811115610552576105526128dd565b634e487b7160e01b600052601260045260246000fd5b60008261295c57634e487b7160e01b600052601260045260246000fd5b500490565b8082028115828204841417610552576105526128dd56fea26469706673582212202e0e0717386154d1efcee6669ed246af954e8a380e0359c047b2b0295636b5ec64736f6c634300081100336cde3cea4b3a3fb2488b2808bae7556f4a405e50f65e1794383bc026131b13c58dc18c4ccfd75f5c815b63770fa542fd953e8fef7e0e44bbdd4913470ce7e9cd00000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000e00000000000000000000000006dce348d23bbac22d8a162890c1de98f045c5e72000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000144d454520476f7665726e616e636520546f6b656e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000034d454500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007000000000000000000000000d2d9e22f041e25a80595e1afb7f9a446a122eb17000000000000000000000000d2d9e22f041e25a80595e1afb7f9a446a122eb17000000000000000000000000e326bc4884e661d8aa7947f509c6cd44f9ad3d89000000000000000000000000f362a249d73656dc75191d98d5c2a028a3835ebc000000000000000000000000420bcab264b7b9b79e205afcbfe0bb1db3d0df620000000000000000000000004546696954234dbda42279f511321d1f4d31a483000000000000000000000000c04961e8d29d680ca28474b588742fe9d96b5a1a
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102265760003560e01c80637b128d3b1161012a578063c8d1d79f116100bd578063dd1cda621161008c578063e1a6108b11610071578063e1a6108b146104f8578063f2fde38b14610500578063ffe76a641461051357600080fd5b8063dd1cda62146104b7578063dd62ed3e146104bf57600080fd5b8063c8d1d79f1461046b578063d0044fdf1461047e578063d0894e9c14610491578063d5eca967146104a457600080fd5b8063a4027838116100f9578063a402783814610415578063a457c2d71461043c578063a8660a781461044f578063a9059cbb1461045857600080fd5b80637b128d3b146103d657806389b683fe146103e95780638da5cb5b146103fc57806395d89b411461040d57600080fd5b80632eb67f53116101bd57806342226e4c1161018c5780636f5ee7f0116101715780636f5ee7f01461039257806370a08231146103a5578063715018a6146103ce57600080fd5b806342226e4c1461036557806366da4c641461036d57600080fd5b80632eb67f53146102d0578063313ce567146102d8578063390b5712146102ed578063395093511461035257600080fd5b806318160ddd116101f957806318160ddd1461029057806323b872dd146102a257806329fc6a7f146102b55780632ea84d27146102bd57600080fd5b806301ffc9a71461022b57806306fdde0314610253578063095ea7b3146102685780630cbe788f1461027b575b600080fd5b61023e6102393660046125f0565b610521565b60405190151581526020015b60405180910390f35b61025b610558565b60405161024a919061261a565b61023e610276366004612684565b6105ea565b61028e6102893660046126f0565b610602565b005b6005545b60405190815260200161024a565b61023e6102b0366004612744565b61091f565b610294610943565b6102946102cb366004612780565b610953565b61023e610a4c565b60395460405160ff909116815260200161024a565b61032a6102fb3660046127c2565b600960205260009081526040902080546001820154600283015460038401546004909401549293919290919085565b604080519586526020860194909452928401919091526060830152608082015260a00161024a565b61023e610360366004612684565b610a5f565b610294610a9e565b6002546001600160a01b03165b6040516001600160a01b03909116815260200161024a565b61028e6103a03660046126f0565b610abd565b6102946103b33660046127e3565b6001600160a01b031660009081526003602052604090205490565b61028e610dd2565b6102946103e43660046126f0565b610de6565b61028e6103f73660046127fe565b611128565b6001546001600160a01b031661037a565b61025b611305565b6104236301ffc9a760e01b81565b6040516001600160e01b0319909116815260200161024a565b61023e61044a366004612684565b611314565b61029460085481565b61023e610466366004612684565b6113be565b610294610479366004612780565b6113cc565b61028e61048c3660046127e3565b611452565b61029461049f3660046126f0565b611597565b6102946104b23660046126f0565b6116a0565b600854610294565b6102946104cd36600461285a565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205490565b61028e611747565b61028e61050e3660046127e3565b611836565b6104236336372b0760e01b81565b60006001600160e01b031982166336372b0760e01b148061055257506001600160e01b031982166301ffc9a760e01b145b92915050565b6060600680546105679061288d565b80601f01602080910402602001604051908101604052809291908181526020018280546105939061288d565b80156105e05780601f106105b5576101008083540402835291602001916105e0565b820191906000526020600020905b8154815290600101906020018083116105c357829003601f168201915b5050505050905090565b6000336105f88185856118c6565b5060019392505050565b6106166002546001600160a01b0316331490565b6106795760405162461bcd60e51b815260206004820152602960248201527f47616d654f776e65723a2063616c6c6572206973206e6f74207468652067616d60448201526865206164647265737360b81b60648201526084015b60405180910390fd5b42600854116106ca5760405162461bcd60e51b815260206004820152601860248201527f546f6b656e2076657374696e672068617320626567756e2e00000000000000006044820152606401610670565b600061070b84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611a0392505050565b90506000600a6000836008811115610725576107256128c7565b6008811115610736576107366128c7565b81526020019081526020016000206000846001600160a01b03166001600160a01b0316815260200190815260200160002054116107b55760405162461bcd60e51b815260206004820152601c60248201527f7468657265206973206e6f2072657365727665642062616c616e6365000000006044820152606401610670565b6001600160a01b0382166108165760405162461bcd60e51b815260206004820152602260248201527f5265736572766174696f6e206164647265737320697320307830206164647265604482015261737360f01b6064820152608401610670565b600a600082600881111561082c5761082c6128c7565b600881111561083d5761083d6128c7565b81526020019081526020016000206000836001600160a01b03166001600160a01b031681526020019081526020016000205460096000836008811115610885576108856128c7565b6008811115610896576108966128c7565b815260200190815260200160002060020160008282546108b691906128f3565b9091555060009050600a818360088111156108d3576108d36128c7565b60088111156108e4576108e46128c7565b81526020019081526020016000206000846001600160a01b03166001600160a01b031681526020019081526020016000208190555050505050565b60003361092d858285611d4b565b610938858585611ddd565b506001949350505050565b600061094e60055490565b905090565b60006109696002546001600160a01b0316331490565b6109c75760405162461bcd60e51b815260206004820152602960248201527f47616d654f776e65723a2063616c6c6572206973206e6f74207468652067616d60448201526865206164647265737360b81b6064820152608401610670565b6000610a0884848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611a0392505050565b905060096000826008811115610a2057610a206128c7565b6008811115610a3157610a316128c7565b81526020019081526020016000206001015491505092915050565b600061094e306336372b0760e01b611fd1565b3360008181526004602090815260408083206001600160a01b03871684529091528120549091906105f89082908690610a999087906128f3565b6118c6565b600080610ab6610aad60055490565b60005490611fed565b9392505050565b82826000610b0083838080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611a0392505050565b90506002816008811115610b1657610b166128c7565b03610b895760405162461bcd60e51b815260206004820152603360248201527f436c61696d696e672f526573657276696e67206973206e6f7420737570706f7260448201527f74656420666f72207468697320726f756e642e000000000000000000000000006064820152608401610670565b600854421015610bdb5760405162461bcd60e51b815260206004820181905260248201527f546f6b656e2076657374696e6720686173206e6f742079657420626567756e2e6044820152606401610670565b336001600160a01b03851614610c595760405162461bcd60e51b815260206004820152602160248201527f43616e6e6f7420636c61696d20666f7220616e6f74686572206163636f756e7460448201527f2e000000000000000000000000000000000000000000000000000000000000006064820152608401610670565b6000610c9a87878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611a0392505050565b90506000610ca9888888610de6565b905060008111610cfb5760405162461bcd60e51b815260206004820152601160248201527f4e6f7468696e6720746f20636c61696d2e0000000000000000000000000000006044820152606401610670565b80600b6000846008811115610d1257610d126128c7565b6008811115610d2357610d236128c7565b81526020019081526020016000206000886001600160a01b03166001600160a01b031681526020019081526020016000206000828254610d6391906128f3565b90915550610d7390508682612013565b856001600160a01b03168888604051610d8d929190612906565b604051908190038120838252907f2963b9efd9587d0ff7b97dc74b7efad618bce57935c028b7b70806672ddb5ad4906020015b60405180910390a35050505050505050565b610dda6120d4565b610de4600061212e565b565b600083836000610e2b83838080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611a0392505050565b90506002816008811115610e4157610e416128c7565b03610eb45760405162461bcd60e51b815260206004820152603360248201527f436c61696d696e672f526573657276696e67206973206e6f7420737570706f7260448201527f74656420666f72207468697320726f756e642e000000000000000000000000006064820152608401610670565b6000610ef588888080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611a0392505050565b905060006040518060e0016040528060096000856008811115610f1a57610f1a6128c7565b6008811115610f2b57610f2b6128c7565b815260200190815260200160002060010154815260200160096000856008811115610f5857610f586128c7565b6008811115610f6957610f696128c7565b8152602001908152602001600020600001548152602001600a6000856008811115610f9657610f966128c7565b6008811115610fa757610fa76128c7565b815260200190815260200160002060008a6001600160a01b03166001600160a01b03168152602001908152602001600020548152602001600b6000856008811115610ff457610ff46128c7565b6008811115611005576110056128c7565b815260200190815260200160002060008a6001600160a01b03166001600160a01b0316815260200190815260200160002054815260200160096000856008811115611052576110526128c7565b6008811115611063576110636128c7565b8152602001908152602001600020600401548152602001600081526020016000815250905080606001518160400151116110a25760009550505061111e565b6110ab8161218d565b60a082018190526110c15760009550505061111e565b6110ca816121d7565b60c082015260608101516000906110ea906110e484612228565b90611fed565b915050600061110a83606001518460400151611fed90919063ffffffff16565b9150506111178183612259565b9750505050505b5050509392505050565b61113c6002546001600160a01b0316331490565b61119a5760405162461bcd60e51b815260206004820152602960248201527f47616d654f776e65723a2063616c6c6572206973206e6f74207468652067616d60448201526865206164647265737360b81b6064820152608401610670565b838360006111dd83838080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611a0392505050565b905060028160088111156111f3576111f36128c7565b036112665760405162461bcd60e51b815260206004820152603360248201527f436c61696d696e672f526573657276696e67206973206e6f7420737570706f7260448201527f74656420666f72207468697320726f756e642e000000000000000000000000006064820152608401610670565b60006112a788888080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611a0392505050565b90506112b481878761226f565b856001600160a01b031688886040516112ce929190612906565b604051908190038120878252907f8c4119c12c46160af0703911cfb13a328077931075b6191bfd2191b4b20d465f90602001610dc0565b6060600780546105679061288d565b3360008181526004602090815260408083206001600160a01b0387168452909152812054909190838110156113b15760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610670565b61093882868684036118c6565b6000336105f8818585611ddd565b60008061140e84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611a0392505050565b905060096000826008811115611426576114266128c7565b6008811115611437576114376128c7565b81526020019081526020016000206002015491505092915050565b6114666002546001600160a01b0316331490565b6114c45760405162461bcd60e51b815260206004820152602960248201527f47616d654f776e65723a2063616c6c6572206973206e6f74207468652067616d60448201526865206164647265737360b81b6064820152608401610670565b6001600160a01b0381166115405760405162461bcd60e51b815260206004820152602a60248201527f47616d654f776e65723a2067616d65206f776e6572206164647265737320636160448201527f6e277420626520307830000000000000000000000000000000000000000000006064820152608401610670565b6002805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0383169081179091556040517f8934650728c38cf3e0574180f98a42481643c832d171c3e2646a389c6105057e90600090a250565b6000806115d985858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611a0392505050565b9050600b60008260088111156115f1576115f16128c7565b6008811115611602576116026128c7565b81526020019081526020016000206000846001600160a01b03166001600160a01b0316815260200190815260200160002054600a600083600881111561164a5761164a6128c7565b600881111561165b5761165b6128c7565b81526020019081526020016000206000856001600160a01b03166001600160a01b03168152602001908152602001600020546116979190612916565b95945050505050565b6000806116e285858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611a0392505050565b9050600a60008260088111156116fa576116fa6128c7565b600881111561170b5761170b6128c7565b81526020019081526020016000206000846001600160a01b03166001600160a01b03168152602001908152602001600020549150509392505050565b61175b6002546001600160a01b0316331490565b6117b95760405162461bcd60e51b815260206004820152602960248201527f47616d654f776e65723a2063616c6c6572206973206e6f74207468652067616d60448201526865206164647265737360b81b6064820152608401610670565b42600854116118305760405162461bcd60e51b815260206004820152602360248201527f53746172742076657374696e672074696d652077617320616c7265616479207360448201527f65742e00000000000000000000000000000000000000000000000000000000006064820152608401610670565b42600855565b61183e6120d4565b6001600160a01b0381166118ba5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610670565b6118c38161212e565b50565b6001600160a01b0383166119415760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610670565b6001600160a01b0382166119a25760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610670565b6001600160a01b0383811660008181526004602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b8051602082012060009082907fb4f9163b703772b483a6ee342644f2aca217818660634e57ab3d1a17732a8bce811480611a5c57507f66a80b61b29ec044d14c4c8c613e762ba1fb8eeb0c454d1ee00ed6dedaa5b5c581145b15611a6b575060009392505050565b7ff00e4b518efc87d303e5c61b61e77bf6be54166541794bb4ef7d5eb34b79c605811480611ab857507fba0b8d7971d83a895b04f69bb35eb4161849cc1e4886c0eec88858e4667ebaae81145b15611ac7575060019392505050565b7f0dcb90aa16cbc9d9801c9664728a10e67b804066460e005e084b6f5a25f123e5811480611b1457507f3c0c3a2537aaf75b853bbf2b595e872d3db0359b7e792ebd8907fb017c3b71a281145b15611b23575060029392505050565b7f6eb0620412cc109549d6fad1def5d06aa8ae8f1c34745141c04c7490a8b20f7b811480611b7057507f50a049642bbabe089be4196d32cbe0b19d817eab44c3fb3993bbd542b5de582981145b15611b7f575060039392505050565b7f1e4eff84eb5cce192268a7a1d312be9b6423ce78643d72cb1f195f2c4f4c5360811480611bcc57507fdc96320f298911e5da5be26931c9e739b09dbbc911523a1a5f4fda0571f5378981145b15611bdb575060049392505050565b7f06aa03964db1f7257357ef09714a5f0ca3633723df419e97015e0c7a3e83edb7811480611c2857507fcbd818ad4dd6f1ff9338c2bb62480241424dd9a65f9f3284101a01cd099ad8ac81145b15611c37575060059392505050565b7f7977b0dd767f6e4f9acb903650fe437e0d0ebc1dfbb16d0da90a8c92f15b0c3a811480611c8457507fbd088c99b1e7efe40c6cc6be0a2e3be210440eae7c30ad96be78208250e9418681145b15611c93575060069392505050565b7f9b82d2f38fbdf13006bfa741767f793d917e063392737837b580c1c2b1e0bab3811480611ce057507fe1dfd0dbf63767a45b3f20993b337a1eef2b19b117cd799475c77d789e43b92d81145b15611cef575060079392505050565b7f88c66d6c4841eda37d335c6bacda17221b192eb491233cf4b983d8b4d79ff7f9811480611d3c57507f3ae7be79adfacb03b53e8631fa030f3a07d1e0805fdcfcbafe24d21fdf6d87d881145b15610226575060089392505050565b6001600160a01b038381166000908152600460209081526040808320938616835292905220546000198114611dd75781811015611dca5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610670565b611dd784848484036118c6565b50505050565b6001600160a01b038316611e595760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610670565b6001600160a01b038216611ed55760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610670565b6001600160a01b03831660009081526003602052604090205481811015611f645760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610670565b6001600160a01b0380851660008181526003602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611fc49086815260200190565b60405180910390a3611dd7565b6000611fdc836124ec565b8015610ab65750610ab6838361251f565b600080838311156120035750600090508061200c565b50600190508183035b9250929050565b6001600160a01b0382166120695760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610670565b806005600082825461207b91906128f3565b90915550506001600160a01b0382166000818152600360209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001546001600160a01b03163314610de45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610670565b600180546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006008544210156121a157506000919050565b81516008546121b09042612916565b10156121be57506000919050565b81516008546121cd9042612916565b6105529190612916565b6000808260200151116121ec57506040015190565b600082608001511161220057506040015190565b600082608001518360200151612216919061293f565b9050808360400151610ab6919061293f565b60008061224683608001518460a001516125bd90919063ffffffff16565b9150508260c0015181610ab69190612961565b60008183106122685781610ab6565b5090919050565b8060096000856008811115612286576122866128c7565b6008811115612297576122976128c7565b815260200190815260200160002060030154101561231d5760405162461bcd60e51b815260206004820152603460248201527f676976656e20616d6f756e7420697320626967676572207468616e206d61782060448201527f737570706c7920666f722074686520726f756e640000000000000000000000006064820152608401610670565b8060096000856008811115612334576123346128c7565b6008811115612345576123456128c7565b81526020019081526020016000206002015410156123cb5760405162461bcd60e51b815260206004820152602a60248201527f746f74616c2072656d61696e696e6720726f756e6420616d6f756e742069732060448201527f6e6f7420656e6f756768000000000000000000000000000000000000000000006064820152608401610670565b6001600160a01b03821661242c5760405162461bcd60e51b815260206004820152602260248201527f5265736572766174696f6e206164647265737320697320307830206164647265604482015261737360f01b6064820152608401610670565b8060096000856008811115612443576124436128c7565b6008811115612454576124546128c7565b815260200190815260200160002060020160008282546124749190612916565b90915550819050600a6000856008811115612491576124916128c7565b60088111156124a2576124a26128c7565b81526020019081526020016000206000846001600160a01b03166001600160a01b0316815260200190815260200160002060008282546124e291906128f3565b9091555050505050565b60006124ff826301ffc9a760e01b61251f565b80156105525750612518826001600160e01b031961251f565b1592915050565b604080516001600160e01b03198316602480830191909152825180830390910181526044909101909152602080820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166301ffc9a760e01b178152825160009392849283928392918391908a617530fa92503d915060005190508280156125a6575060208210155b80156125b25750600081115b979650505050505050565b600080826000036125d35750600090508061200c565b60018385816125e4576125e4612929565b04915091509250929050565b60006020828403121561260257600080fd5b81356001600160e01b031981168114610ab657600080fd5b600060208083528351808285015260005b818110156126475785810183015185820160400152820161262b565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b038116811461267f57600080fd5b919050565b6000806040838503121561269757600080fd5b6126a083612668565b946020939093013593505050565b60008083601f8401126126c057600080fd5b50813567ffffffffffffffff8111156126d857600080fd5b60208301915083602082850101111561200c57600080fd5b60008060006040848603121561270557600080fd5b833567ffffffffffffffff81111561271c57600080fd5b612728868287016126ae565b909450925061273b905060208501612668565b90509250925092565b60008060006060848603121561275957600080fd5b61276284612668565b925061277060208501612668565b9150604084013590509250925092565b6000806020838503121561279357600080fd5b823567ffffffffffffffff8111156127aa57600080fd5b6127b6858286016126ae565b90969095509350505050565b6000602082840312156127d457600080fd5b813560098110610ab657600080fd5b6000602082840312156127f557600080fd5b610ab682612668565b6000806000806060858703121561281457600080fd5b843567ffffffffffffffff81111561282b57600080fd5b612837878288016126ae565b909550935061284a905060208601612668565b9396929550929360400135925050565b6000806040838503121561286d57600080fd5b61287683612668565b915061288460208401612668565b90509250929050565b600181811c908216806128a157607f821691505b6020821081036128c157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052601160045260246000fd5b80820180821115610552576105526128dd565b8183823760009101908152919050565b81810381811115610552576105526128dd565b634e487b7160e01b600052601260045260246000fd5b60008261295c57634e487b7160e01b600052601260045260246000fd5b500490565b8082028115828204841417610552576105526128dd56fea26469706673582212202e0e0717386154d1efcee6669ed246af954e8a380e0359c047b2b0295636b5ec64736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000e00000000000000000000000006dce348d23bbac22d8a162890c1de98f045c5e72000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000144d454520476f7665726e616e636520546f6b656e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000034d454500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007000000000000000000000000d2d9e22f041e25a80595e1afb7f9a446a122eb17000000000000000000000000d2d9e22f041e25a80595e1afb7f9a446a122eb17000000000000000000000000e326bc4884e661d8aa7947f509c6cd44f9ad3d89000000000000000000000000f362a249d73656dc75191d98d5c2a028a3835ebc000000000000000000000000420bcab264b7b9b79e205afcbfe0bb1db3d0df620000000000000000000000004546696954234dbda42279f511321d1f4d31a483000000000000000000000000c04961e8d29d680ca28474b588742fe9d96b5a1a
-----Decoded View---------------
Arg [0] : _tokenName (string): MEE Governance Token
Arg [1] : _decimalUnits (uint8): 18
Arg [2] : _tokenSymbol (string): MEE
Arg [3] : _gameOwnerAddress (address): 0x6DCe348D23bBAc22D8a162890C1de98F045C5E72
Arg [4] : _walletAddresses (address[]): 0xD2D9e22f041E25A80595e1afB7f9a446a122Eb17,0xD2D9e22f041E25A80595e1afB7f9a446a122Eb17,0xE326BC4884E661D8aa7947F509c6Cd44F9AD3D89,0xf362A249d73656DC75191D98D5c2a028A3835EBC,0x420bCab264b7B9b79E205aFCbFe0BB1Db3d0DF62,0x4546696954234dBDa42279f511321D1f4d31a483,0xc04961E8d29D680ca28474B588742FE9D96b5A1A
-----Encoded View---------------
17 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 0000000000000000000000006dce348d23bbac22d8a162890c1de98f045c5e72
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [6] : 4d454520476f7665726e616e636520546f6b656e000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [8] : 4d45450000000000000000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [10] : 000000000000000000000000d2d9e22f041e25a80595e1afb7f9a446a122eb17
Arg [11] : 000000000000000000000000d2d9e22f041e25a80595e1afb7f9a446a122eb17
Arg [12] : 000000000000000000000000e326bc4884e661d8aa7947f509c6cd44f9ad3d89
Arg [13] : 000000000000000000000000f362a249d73656dc75191d98d5c2a028a3835ebc
Arg [14] : 000000000000000000000000420bcab264b7b9b79e205afcbfe0bb1db3d0df62
Arg [15] : 0000000000000000000000004546696954234dbda42279f511321d1f4d31a483
Arg [16] : 000000000000000000000000c04961e8d29d680ca28474b588742fe9d96b5a1a
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.