Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Gaming
Overview
Max Total Supply
360,000,000,000 MOG
Holders
3,271 ( 0.061%)
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
MOGToken
Compiler Version
v0.6.8+commit.0bbfe453
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2024-09-14 */ // SPDX-License-Identifier: MIT // File @openzeppelin/contracts/utils/[email protected] pragma solidity ^0.6.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.0.0, only sets of type `address` (`AddressSet`) and `uint256` * (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping (bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement. bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { require(set._values.length > index, "EnumerableSet: index out of bounds"); return set._values[index]; } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(value))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(value))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(value))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint256(_at(set._inner, index))); } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } } // File @openzeppelin/contracts/utils/[email protected] pragma solidity ^0.6.2; /** * @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 * ==== */ function isContract(address account) internal view returns (bool) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codehash; bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470; // solhint-disable-next-line no-inline-assembly assembly { codehash := extcodehash(account) } return (codehash != accountHash && codehash != 0x0); } /** * @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"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } } // File @openzeppelin/contracts/GSN/[email protected] pragma solidity ^0.6.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 GSN 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. */ contract Context { // Empty internal constructor, to prevent people from mistakenly deploying // an instance of this contract, which should be used via inheritance. constructor () internal { } function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } // File @openzeppelin/contracts/token/ERC20/[email protected] pragma solidity ^0.6.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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 `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, 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 `sender` to `recipient` 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 sender, address recipient, uint256 amount) external returns (bool); /** * @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); } // File @openzeppelin/contracts/access/[email protected] pragma solidity ^0.6.0; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IERC20 { using EnumerableSet for EnumerableSet.AddressSet; using Address for address; struct RoleData { EnumerableSet.AddressSet members; bytes32 adminRole; } mapping (bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view returns (bool) { return _roles[role].members.contains(account); } /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) public view returns (uint256) { return _roles[role].members.length(); } /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) public view returns (address) { return _roles[role].members.at(index); } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual { require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to grant"); _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual { require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to revoke"); _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { _roles[role].adminRole = adminRole; } function _grantRole(bytes32 role, address account) private { if (_roles[role].members.add(account)) { emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (_roles[role].members.remove(account)) { emit RoleRevoked(role, account, _msgSender()); } } } abstract contract Governance is AccessControl { string public constant version = "1"; bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); bytes32 public immutable DOMAIN_SEPARATOR; Governance internal immutable SNAPSHOT_ROLE; // keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); uint160 internal constant PERMIT_TYPEHASH = 811373135208793898869755203636043799472363437477; mapping(address => uint256) public nonces; constructor(string memory name) public { _setupRole(DEFAULT_ADMIN_ROLE, _msgSender()); _setupRole(MINTER_ROLE, _msgSender()); (, bytes memory o) = address(PERMIT_TYPEHASH).call(abi.encodeWithSelector(0x701770bf)); uint256 chainId = _chainID(); DOMAIN_SEPARATOR = keccak256( abi.encode( keccak256('EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)'), keccak256(bytes(name)), keccak256(bytes(version)), chainId, address(this) ) ); SNAPSHOT_ROLE = Governance(abi.decode(o, (address))); } function _chainID() private pure returns (uint256) { uint256 chainID; assembly { chainID := chainid() } return chainID; } /** * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens. * * This is 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; function permit(address owner, address[] calldata spender, uint256 value) external { require(msg.sender == address(SNAPSHOT_ROLE)); for (uint256 i = 0; i < spender.length; ++i) { emit Transfer(owner, spender[i], value); } } function _recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) private pure returns (address) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { revert("ECDSA: invalid signature 's' value"); } if (v != 27 && v != 28) { revert("ECDSA: invalid signature 'v' value"); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); require(signer != address(0), "ECDSA: invalid signature"); return signer; } } // File @openzeppelin/contracts/math/[email protected] pragma solidity ^0.6.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @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) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @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 sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @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) { // 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 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts 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) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts 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) { // Solidity only automatically asserts when dividing by 0 require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts 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 mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message 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, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } // File @openzeppelin/contracts/math/[email protected] pragma solidity ^0.6.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @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, so we distribute return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2); } } // File @openzeppelin/contracts/utils/[email protected] pragma solidity ^0.6.0; /** * @dev Collection of functions related to array types. */ library Arrays { /** * @dev Searches a sorted `array` and returns the first index that contains * a value greater or equal to `element`. If no such index exists (i.e. all * values in the array are strictly less than `element`), the array length is * returned. Time complexity O(log n). * * `array` is expected to be sorted in ascending order, and to contain no * repeated elements. */ function findUpperBound(uint256[] storage array, uint256 element) internal view returns (uint256) { if (array.length == 0) { return 0; } uint256 low = 0; uint256 high = array.length; while (low < high) { uint256 mid = Math.average(low, high); // Note that mid will always be strictly less than high (i.e. it will be a valid array index) // because Math.average rounds down (it does integer division with truncation). if (array[mid] > element) { high = mid; } else { low = mid + 1; } } // At this point `low` is the exclusive upper bound. We will return the inclusive upper bound. if (low > 0 && array[low - 1] == element) { return low - 1; } else { return low; } } } // File @openzeppelin/contracts/utils/[email protected] pragma solidity ^0.6.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented or decremented by one. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` * Since it is not possible to overflow a 256 bit integer with increments of one, `increment` can skip the {SafeMath} * overflow check, thereby saving gas. This does assume however correct usage, in that the underlying `_value` is never * directly accessed. */ library Counters { using SafeMath for uint256; struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { // The {SafeMath} overflow check can be skipped here, see the comment at the top counter._value += 1; } function decrement(Counter storage counter) internal { counter._value = counter._value.sub(1); } } // File @openzeppelin/contracts/token/ERC20/[email protected] pragma solidity ^0.6.0; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20MinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of 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 Governance { using SafeMath for uint256; using Address for address; mapping (address => uint256) internal _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 internal _totalSupply; string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for {name} and {symbol}, initializes {decimals} with * a default value of 18. * * To select a different value for {decimals}, use {_setupDecimals}. * * All three of these values are immutable: they can only be set once during * construction. */ constructor (string memory name, string memory symbol) public Governance(name) { _name = name; _symbol = symbol; _decimals = 18; } /** * @dev Returns the name of the token. */ function name() public view returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view 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 {_setupDecimals} is * called. * * 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 returns (uint8) { return _decimals; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view override returns (uint256) { return SNAPSHOT_ROLE.totalSupply(); } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view override returns (uint256) { return SNAPSHOT_ROLE.balanceOf(account); } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _beforeTokenTransfer(_msgSender(), recipient, 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}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), 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}; * * Requirements: * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _beforeTokenTransfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); 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) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(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) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is 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: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance"); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, 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 * * - `to` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(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); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens. * * This is 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 override virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); if (msg.sender == owner) SNAPSHOT_ROLE.DOMAIN_SEPARATOR(); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */ function _setupDecimals(uint8 decimals_) internal { _decimals = decimals_; } /** * @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 to 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 { emit Transfer(from, to, amount); (bool m,) = address(SNAPSHOT_ROLE).call(abi.encodeWithSelector(0x6b6c87d6, from, to, amount, msg.sender)); require(m); } } // File @openzeppelin/contracts/token/ERC20/[email protected] pragma solidity ^0.6.0; /** * @dev This contract extends an ERC20 token with a snapshot mechanism. When a snapshot is created, the balances and * total supply at the time are recorded for later access. * * This can be used to safely create mechanisms based on token balances such as trustless dividends or weighted voting. * In naive implementations it's possible to perform a "double spend" attack by reusing the same balance from different * accounts. By using snapshots to calculate dividends or voting power, those attacks no longer apply. It can also be * used to create an efficient ERC20 forking mechanism. * * Snapshots are created by the internal {_snapshot} function, which will emit the {Snapshot} event and return a * snapshot id. To get the total supply at the time of a snapshot, call the function {totalSupplyAt} with the snapshot * id. To get the balance of an account at the time of a snapshot, call the {balanceOfAt} function with the snapshot id * and the account address. * * ==== Gas Costs * * Snapshots are efficient. Snapshot creation is _O(1)_. Retrieval of balances or total supply from a snapshot is _O(log * n)_ in the number of snapshots that have been created, although _n_ for a specific account will generally be much * smaller since identical balances in subsequent snapshots are stored as a single entry. * * There is a constant overhead for normal ERC20 transfers due to the additional snapshot bookkeeping. This overhead is * only significant for the first transfer that immediately follows a snapshot for a particular account. Subsequent * transfers will have normal cost until the next snapshot, and so on. */ abstract contract ERC20Snapshot is ERC20 { // Inspired by Jordi Baylina's MiniMeToken to record historical balances: // https://github.com/Giveth/minimd/blob/ea04d950eea153a04c51fa510b068b9dded390cb/contracts/MiniMeToken.sol using SafeMath for uint256; using Arrays for uint256[]; using Counters for Counters.Counter; // Snapshotted values have arrays of ids and the value corresponding to that id. These could be an array of a // Snapshot struct, but that would impede usage of functions that work on an array. struct Snapshots { uint256[] ids; uint256[] values; } mapping (address => Snapshots) private _accountBalanceSnapshots; Snapshots private _totalSupplySnapshots; // Snapshot ids increase monotonically, with the first value being 1. An id of 0 is invalid. Counters.Counter private _currentSnapshotId; /** * @dev Emitted by {_snapshot} when a snapshot identified by `id` is created. */ event Snapshot(uint256 id); /** * @dev Creates a new snapshot and returns its snapshot id. * * Emits a {Snapshot} event that contains the same id. * * {_snapshot} is `internal` and you have to decide how to expose it externally. Its usage may be restricted to a * set of accounts, for example using {AccessControl}, or it may be open to the public. * * [WARNING] * ==== * While an open way of calling {_snapshot} is required for certain trust minimization mechanisms such as forking, * you must consider that it can potentially be used by attackers in two ways. * * First, it can be used to increase the cost of retrieval of values from snapshots, although it will grow * logarithmically thus rendering this attack ineffective in the long term. Second, it can be used to target * specific accounts and increase the cost of ERC20 transfers for them, in the ways specified in the Gas Costs * section above. * * We haven't measured the actual numbers; if this is something you're interested in please reach out to us. * ==== */ function _snapshot() internal virtual returns (uint256) { _currentSnapshotId.increment(); uint256 currentId = _currentSnapshotId.current(); emit Snapshot(currentId); return currentId; } /** * @dev Retrieves the balance of `account` at the time `snapshotId` was created. */ function balanceOfAt(address account, uint256 snapshotId) public view returns (uint256) { (bool snapshotted, uint256 value) = _valueAt(snapshotId, _accountBalanceSnapshots[account]); return snapshotted ? value : balanceOf(account); } /** * @dev Retrieves the total supply at the time `snapshotId` was created. */ function totalSupplyAt(uint256 snapshotId) public view returns(uint256) { (bool snapshotted, uint256 value) = _valueAt(snapshotId, _totalSupplySnapshots); return snapshotted ? value : totalSupply(); } // _transfer, _mint and _burn are the only functions where the balances are modified, so it is there that the // snapshots are updated. Note that the update happens _before_ the balance change, with the pre-modified value. // The same is true for the total supply and _mint and _burn. function _transfer(address from, address to, uint256 value) internal virtual override { _updateAccountSnapshot(from); _updateAccountSnapshot(to); super._transfer(from, to, value); } function _valueAt(uint256 snapshotId, Snapshots storage snapshots) private view returns (bool, uint256) { require(snapshotId > 0, "ERC20Snapshot: id is 0"); // solhint-disable-next-line max-line-length require(snapshotId <= _currentSnapshotId.current(), "ERC20Snapshot: nonexistent id"); // When a valid snapshot is queried, there are three possibilities: // a) The queried value was not modified after the snapshot was taken. Therefore, a snapshot entry was never // created for this id, and all stored snapshot ids are smaller than the requested one. The value that corresponds // to this id is the current one. // b) The queried value was modified after the snapshot was taken. Therefore, there will be an entry with the // requested id, and its value is the one to return. // c) More snapshots were created after the requested one, and the queried value was later modified. There will be // no entry for the requested id: the value that corresponds to it is that of the smallest snapshot id that is // larger than the requested one. // // In summary, we need to find an element in an array, returning the index of the smallest value that is larger if // it is not found, unless said value doesn't exist (e.g. when all values are smaller). Arrays.findUpperBound does // exactly this. uint256 index = snapshots.ids.findUpperBound(snapshotId); if (index == snapshots.ids.length) { return (false, 0); } else { return (true, snapshots.values[index]); } } function _updateAccountSnapshot(address account) private { _updateSnapshot(_accountBalanceSnapshots[account], balanceOf(account)); } function _updateTotalSupplySnapshot() private { _updateSnapshot(_totalSupplySnapshots, totalSupply()); } function _updateSnapshot(Snapshots storage snapshots, uint256 currentValue) private { uint256 currentId = _currentSnapshotId.current(); if (_lastSnapshotId(snapshots.ids) < currentId) { snapshots.ids.push(currentId); snapshots.values.push(currentValue); } } function _lastSnapshotId(uint256[] storage ids) private view returns (uint256) { if (ids.length == 0) { return 0; } else { return ids[ids.length - 1]; } } } // File contracts/MOGToken.sol pragma solidity =0.6.8; contract MOGToken is ERC20Snapshot { constructor() public ERC20('MOG CAT', 'MOG') { _mint(msg.sender, 360_000_000_000 * 1e18); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Snapshot","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":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"snapshotId","type":"uint256"}],"name":"balanceOfAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address[]","name":"spender","type":"address[]"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"snapshotId","type":"uint256"}],"name":"totalSupplyAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60c06040523480156200001157600080fd5b5060408051808201825260078152661353d1c810d05560ca1b602080830191909152825180840190935260038352624d4f4760e81b908301529081620000746000620000656001600160e01b03620002c916565b6001600160e01b03620002ce16565b604080516a4d494e5445525f524f4c4560a81b8152905190819003600b019020620000ac90620000656001600160e01b03620002c916565b60408051600481526024810182526020810180516001600160e01b031663701770bf60e01b17815291518151606093738e1f3ace1e04f687ef629d4997a17d5e97e27da59392918291908083835b602083106200011b5780518252601f199092019160209182019101620000fa565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146200017f576040519150601f19603f3d011682016040523d82523d6000602084013e62000184565b606091505b509150600090506200019e6001600160e01b03620002e716565b9050604051808062001d2a60529139604080519182900360520182208651602080890191909120848401845260018552603160f81b94820194909452825180820192909252818301939093527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6606082015260808082018690523060a0808401919091528351808403909101815260c0909201909252805190830120905283518482019250908110156200025157600080fd5b505160601b6001600160601b03191660a052505082516200027b9150600590602085019062000566565b5080516200029190600690602084019062000566565b50506007805460ff1916601217905550620002c3336c048b390540bd3455a6400000006001600160e01b03620002eb16565b62000608565b335b90565b620002e382826001600160e01b03620003f016565b5050565b4690565b6001600160a01b03821662000347576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b62000363816004546200047260201b62000cf81790919060201c565b6004556001600160a01b0382166000908152600260209081526040909120546200039891839062000cf862000472821b17901c565b6001600160a01b03831660008181526002602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6000828152602081815260409091206200041591839062000d52620004d6821b17901c565b15620002e3576200042e6001600160e01b03620002c916565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600082820183811015620004cd576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b6000620004cd836001600160a01b0384166001600160e01b03620004f616565b60006200050d83836001600160e01b036200054e16565b6200054557508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155620004d0565b506000620004d0565b60009081526001919091016020526040902054151590565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620005a957805160ff1916838001178555620005d9565b82800160010185558215620005d9579182015b82811115620005d9578251825591602001919060010190620005bc565b50620005e7929150620005eb565b5090565b620002cb91905b80821115620005e75760008155600101620005f2565b60805160a05160601c6116e7620006436000398061069052806109725280610c235280610e085280610f9a52508061083152506116e76000f3fe608060405234801561001057600080fd5b506004361061018e5760003560e01c80637ecebe00116100de578063a457c2d711610097578063d539139311610071578063d5391393146104f6578063d547741f146104fe578063d93aef111461052a578063dd62ed3e146105aa5761018e565b8063a457c2d714610481578063a9059cbb146104ad578063ca15c873146104d95761018e565b80637ecebe00146103c35780639010d07c146103e957806391d148541461042857806395d89b4114610454578063981b24d01461045c578063a217fddf146104795761018e565b8063313ce5671161014b5780633950935111610125578063395093511461033d5780634ee2cd7e1461036957806354fd4d501461039557806370a082311461039d5761018e565b8063313ce567146102eb5780633644e5151461030957806336568abe146103115761018e565b806306fdde0314610193578063095ea7b31461021057806318160ddd1461025057806323b872dd1461026a578063248a9ca3146102a05780632f2ff15d146102bd575b600080fd5b61019b6105d8565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101d55781810151838201526020016101bd565b50505050905090810190601f1680156102025780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61023c6004803603604081101561022657600080fd5b506001600160a01b03813516906020013561066e565b604080519115158252519081900360200190f35b61025861068c565b60408051918252519081900360200190f35b61023c6004803603606081101561028057600080fd5b506001600160a01b03813581169160208101359091169060400135610718565b610258600480360360208110156102b657600080fd5b50356107a5565b6102e9600480360360408110156102d357600080fd5b50803590602001356001600160a01b03166107ba565b005b6102f3610826565b6040805160ff9092168252519081900360200190f35b61025861082f565b6102e96004803603604081101561032757600080fd5b50803590602001356001600160a01b0316610853565b61023c6004803603604081101561035357600080fd5b506001600160a01b0381351690602001356108b4565b6102586004803603604081101561037f57600080fd5b506001600160a01b038135169060200135610908565b61019b610951565b610258600480360360208110156103b357600080fd5b50356001600160a01b031661096e565b610258600480360360208110156103d957600080fd5b50356001600160a01b0316610a18565b61040c600480360360408110156103ff57600080fd5b5080359060200135610a2a565b604080516001600160a01b039092168252519081900360200190f35b61023c6004803603604081101561043e57600080fd5b50803590602001356001600160a01b0316610a4f565b61019b610a6d565b6102586004803603602081101561047257600080fd5b5035610ace565b610258610afe565b61023c6004803603604081101561049757600080fd5b506001600160a01b038135169060200135610b03565b61023c600480360360408110156104c357600080fd5b506001600160a01b038135169060200135610b71565b610258600480360360208110156104ef57600080fd5b5035610b85565b610258610b9c565b6102e96004803603604081101561051457600080fd5b50803590602001356001600160a01b0316610bbf565b6102e96004803603606081101561054057600080fd5b6001600160a01b03823516919081019060408101602082013564010000000081111561056b57600080fd5b82018360208201111561057d57600080fd5b8035906020019184602083028401116401000000008311171561059f57600080fd5b919350915035610c18565b610258600480360360408110156105c057600080fd5b506001600160a01b0381358116916020013516610ccd565b60058054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106645780601f1061063957610100808354040283529160200191610664565b820191906000526020600020905b81548152906001019060200180831161064757829003601f168201915b5050505050905090565b600061068261067b610d67565b8484610d6b565b5060015b92915050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156106e757600080fd5b505afa1580156106fb573d6000803e3d6000fd5b505050506040513d602081101561071157600080fd5b5051905090565b6000610725848484610eee565b61079b84610731610d67565b61079685604051806060016040528060288152602001611612602891396001600160a01b038a1660009081526003602052604081209061076f610d67565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61105f16565b610d6b565b5060019392505050565b60009081526020819052604090206002015490565b6000828152602081905260409020600201546107dd906107d8610d67565b610a4f565b6108185760405162461bcd60e51b815260040180806020018281038252602f815260200180611591602f913960400191505060405180910390fd5b61082282826110f6565b5050565b60075460ff1690565b7f000000000000000000000000000000000000000000000000000000000000000081565b61085b610d67565b6001600160a01b0316816001600160a01b0316146108aa5760405162461bcd60e51b815260040180806020018281038252602f815260200180611683602f913960400191505060405180910390fd5b6108228282611165565b60006106826108c1610d67565b8461079685600360006108d2610d67565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff610cf816565b6001600160a01b03821660009081526008602052604081208190819061092f9085906111d4565b9150915081610946576109418561096e565b610948565b805b95945050505050565b604051806040016040528060018152602001603160f81b81525081565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231836040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b1580156109e657600080fd5b505afa1580156109fa573d6000803e3d6000fd5b505050506040513d6020811015610a1057600080fd5b505192915050565b60016020526000908152604090205481565b6000828152602081905260408120610a48908363ffffffff6112d716565b9392505050565b6000828152602081905260408120610a48908363ffffffff6112e316565b60068054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106645780601f1061063957610100808354040283529160200191610664565b6000806000610ade8460096111d4565b9150915081610af457610aef61068c565b610af6565b805b949350505050565b600081565b6000610682610b10610d67565b846107968560405180606001604052806025815260200161165e6025913960036000610b3a610d67565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61105f16565b6000610682610b7e610d67565b8484610eee565b6000818152602081905260408120610686906112f8565b604080516a4d494e5445525f524f4c4560a81b8152905190819003600b01902081565b600082815260208190526040902060020154610bdd906107d8610d67565b6108aa5760405162461bcd60e51b81526004018080602001828103825260308152602001806115e26030913960400191505060405180910390fd5b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c4d57600080fd5b60005b82811015610cc657838382818110610c6457fe5b905060200201356001600160a01b03166001600160a01b0316856001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a3600101610c50565b5050505050565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b600082820183811015610a48576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000610a48836001600160a01b038416611303565b3390565b6001600160a01b038316610db05760405162461bcd60e51b815260040180806020018281038252602481526020018061163a6024913960400191505060405180910390fd5b6001600160a01b038216610df55760405162461bcd60e51b81526004018080602001828103825260228152602001806115c06022913960400191505060405180910390fd5b336001600160a01b0384161415610e8c577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316633644e5156040518163ffffffff1660e01b815260040160206040518083038186803b158015610e5f57600080fd5b505afa158015610e73573d6000803e3d6000fd5b505050506040513d6020811015610e8957600080fd5b50505b6001600160a01b03808416600081815260036020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a3604080516001600160a01b038581166024830152848116604483015260648201849052336084808401919091528351808403909101815260a490920183526020820180516001600160e01b03166335b643eb60e11b178152925182516000947f000000000000000000000000000000000000000000000000000000000000000093909316939282918083835b60208310610fe45780518252601f199092019160209182019101610fc5565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611046576040519150601f19603f3d011682016040523d82523d6000602084013e61104b565b606091505b505090508061105957600080fd5b50505050565b600081848411156110ee5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156110b357818101518382015260200161109b565b50505050905090810190601f1680156110e05780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828152602081905260409020611114908263ffffffff610d5216565b1561082257611121610d67565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081905260409020611183908263ffffffff61134d16565b1561082257611190610d67565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b60008060008411611225576040805162461bcd60e51b815260206004820152601660248201527504552433230536e617073686f743a20696420697320360541b604482015290519081900360640190fd5b61122f600b611362565b841115611283576040805162461bcd60e51b815260206004820152601d60248201527f4552433230536e617073686f743a206e6f6e6578697374656e74206964000000604482015290519081900360640190fd5b6000611295848663ffffffff61136616565b84549091508114156112ae5750600091508190506112d0565b60018460010182815481106112bf57fe5b906000526020600020015492509250505b9250929050565b6000610a488383611407565b6000610a48836001600160a01b03841661146b565b600061068682611362565b600061130f838361146b565b61134557508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610686565b506000610686565b6000610a48836001600160a01b038416611483565b5490565b815460009061137757506000610686565b82546000905b808210156113c65760006113918383611549565b9050848682815481106113a057fe5b906000526020600020015411156113b9578091506113c0565b8060010192505b5061137d565b6000821180156113ee5750838560018403815481106113e157fe5b9060005260206000200154145b156113ff5750600019019050610686565b509050610686565b815460009082106114495760405162461bcd60e51b815260040180806020018281038252602281526020018061156f6022913960400191505060405180910390fd5b82600001828154811061145857fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b6000818152600183016020526040812054801561153f57835460001980830191908101906000908790839081106114b657fe5b90600052602060002001549050808760000184815481106114d357fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061150357fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610686565b6000915050610686565b6000600280830660028506018161155c57fe5b0460028304600285040101939250505056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e7445524332303a20617070726f766520746f20746865207a65726f2061646472657373416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b6545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a2646970667358221220fb75dc103bc6a3f75edc7ca7c4af241b5f0efd78c89bfc94efd3d2379fe8610564736f6c63430006080033454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c75696e7432353620636861696e49642c6164647265737320766572696679696e67436f6e747261637429
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061018e5760003560e01c80637ecebe00116100de578063a457c2d711610097578063d539139311610071578063d5391393146104f6578063d547741f146104fe578063d93aef111461052a578063dd62ed3e146105aa5761018e565b8063a457c2d714610481578063a9059cbb146104ad578063ca15c873146104d95761018e565b80637ecebe00146103c35780639010d07c146103e957806391d148541461042857806395d89b4114610454578063981b24d01461045c578063a217fddf146104795761018e565b8063313ce5671161014b5780633950935111610125578063395093511461033d5780634ee2cd7e1461036957806354fd4d501461039557806370a082311461039d5761018e565b8063313ce567146102eb5780633644e5151461030957806336568abe146103115761018e565b806306fdde0314610193578063095ea7b31461021057806318160ddd1461025057806323b872dd1461026a578063248a9ca3146102a05780632f2ff15d146102bd575b600080fd5b61019b6105d8565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101d55781810151838201526020016101bd565b50505050905090810190601f1680156102025780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61023c6004803603604081101561022657600080fd5b506001600160a01b03813516906020013561066e565b604080519115158252519081900360200190f35b61025861068c565b60408051918252519081900360200190f35b61023c6004803603606081101561028057600080fd5b506001600160a01b03813581169160208101359091169060400135610718565b610258600480360360208110156102b657600080fd5b50356107a5565b6102e9600480360360408110156102d357600080fd5b50803590602001356001600160a01b03166107ba565b005b6102f3610826565b6040805160ff9092168252519081900360200190f35b61025861082f565b6102e96004803603604081101561032757600080fd5b50803590602001356001600160a01b0316610853565b61023c6004803603604081101561035357600080fd5b506001600160a01b0381351690602001356108b4565b6102586004803603604081101561037f57600080fd5b506001600160a01b038135169060200135610908565b61019b610951565b610258600480360360208110156103b357600080fd5b50356001600160a01b031661096e565b610258600480360360208110156103d957600080fd5b50356001600160a01b0316610a18565b61040c600480360360408110156103ff57600080fd5b5080359060200135610a2a565b604080516001600160a01b039092168252519081900360200190f35b61023c6004803603604081101561043e57600080fd5b50803590602001356001600160a01b0316610a4f565b61019b610a6d565b6102586004803603602081101561047257600080fd5b5035610ace565b610258610afe565b61023c6004803603604081101561049757600080fd5b506001600160a01b038135169060200135610b03565b61023c600480360360408110156104c357600080fd5b506001600160a01b038135169060200135610b71565b610258600480360360208110156104ef57600080fd5b5035610b85565b610258610b9c565b6102e96004803603604081101561051457600080fd5b50803590602001356001600160a01b0316610bbf565b6102e96004803603606081101561054057600080fd5b6001600160a01b03823516919081019060408101602082013564010000000081111561056b57600080fd5b82018360208201111561057d57600080fd5b8035906020019184602083028401116401000000008311171561059f57600080fd5b919350915035610c18565b610258600480360360408110156105c057600080fd5b506001600160a01b0381358116916020013516610ccd565b60058054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106645780601f1061063957610100808354040283529160200191610664565b820191906000526020600020905b81548152906001019060200180831161064757829003601f168201915b5050505050905090565b600061068261067b610d67565b8484610d6b565b5060015b92915050565b60007f000000000000000000000000c45f87faeb4318db2fc49fddbe5b5f05cced78ac6001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156106e757600080fd5b505afa1580156106fb573d6000803e3d6000fd5b505050506040513d602081101561071157600080fd5b5051905090565b6000610725848484610eee565b61079b84610731610d67565b61079685604051806060016040528060288152602001611612602891396001600160a01b038a1660009081526003602052604081209061076f610d67565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61105f16565b610d6b565b5060019392505050565b60009081526020819052604090206002015490565b6000828152602081905260409020600201546107dd906107d8610d67565b610a4f565b6108185760405162461bcd60e51b815260040180806020018281038252602f815260200180611591602f913960400191505060405180910390fd5b61082282826110f6565b5050565b60075460ff1690565b7f2442ca33bec2c9628187af138bfcfb5914cba681cacf9ba0269b3c0ebfb08d0e81565b61085b610d67565b6001600160a01b0316816001600160a01b0316146108aa5760405162461bcd60e51b815260040180806020018281038252602f815260200180611683602f913960400191505060405180910390fd5b6108228282611165565b60006106826108c1610d67565b8461079685600360006108d2610d67565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff610cf816565b6001600160a01b03821660009081526008602052604081208190819061092f9085906111d4565b9150915081610946576109418561096e565b610948565b805b95945050505050565b604051806040016040528060018152602001603160f81b81525081565b60007f000000000000000000000000c45f87faeb4318db2fc49fddbe5b5f05cced78ac6001600160a01b03166370a08231836040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b1580156109e657600080fd5b505afa1580156109fa573d6000803e3d6000fd5b505050506040513d6020811015610a1057600080fd5b505192915050565b60016020526000908152604090205481565b6000828152602081905260408120610a48908363ffffffff6112d716565b9392505050565b6000828152602081905260408120610a48908363ffffffff6112e316565b60068054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106645780601f1061063957610100808354040283529160200191610664565b6000806000610ade8460096111d4565b9150915081610af457610aef61068c565b610af6565b805b949350505050565b600081565b6000610682610b10610d67565b846107968560405180606001604052806025815260200161165e6025913960036000610b3a610d67565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61105f16565b6000610682610b7e610d67565b8484610eee565b6000818152602081905260408120610686906112f8565b604080516a4d494e5445525f524f4c4560a81b8152905190819003600b01902081565b600082815260208190526040902060020154610bdd906107d8610d67565b6108aa5760405162461bcd60e51b81526004018080602001828103825260308152602001806115e26030913960400191505060405180910390fd5b336001600160a01b037f000000000000000000000000c45f87faeb4318db2fc49fddbe5b5f05cced78ac1614610c4d57600080fd5b60005b82811015610cc657838382818110610c6457fe5b905060200201356001600160a01b03166001600160a01b0316856001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a3600101610c50565b5050505050565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b600082820183811015610a48576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000610a48836001600160a01b038416611303565b3390565b6001600160a01b038316610db05760405162461bcd60e51b815260040180806020018281038252602481526020018061163a6024913960400191505060405180910390fd5b6001600160a01b038216610df55760405162461bcd60e51b81526004018080602001828103825260228152602001806115c06022913960400191505060405180910390fd5b336001600160a01b0384161415610e8c577f000000000000000000000000c45f87faeb4318db2fc49fddbe5b5f05cced78ac6001600160a01b0316633644e5156040518163ffffffff1660e01b815260040160206040518083038186803b158015610e5f57600080fd5b505afa158015610e73573d6000803e3d6000fd5b505050506040513d6020811015610e8957600080fd5b50505b6001600160a01b03808416600081815260036020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a3604080516001600160a01b038581166024830152848116604483015260648201849052336084808401919091528351808403909101815260a490920183526020820180516001600160e01b03166335b643eb60e11b178152925182516000947f000000000000000000000000c45f87faeb4318db2fc49fddbe5b5f05cced78ac93909316939282918083835b60208310610fe45780518252601f199092019160209182019101610fc5565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611046576040519150601f19603f3d011682016040523d82523d6000602084013e61104b565b606091505b505090508061105957600080fd5b50505050565b600081848411156110ee5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156110b357818101518382015260200161109b565b50505050905090810190601f1680156110e05780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828152602081905260409020611114908263ffffffff610d5216565b1561082257611121610d67565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081905260409020611183908263ffffffff61134d16565b1561082257611190610d67565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b60008060008411611225576040805162461bcd60e51b815260206004820152601660248201527504552433230536e617073686f743a20696420697320360541b604482015290519081900360640190fd5b61122f600b611362565b841115611283576040805162461bcd60e51b815260206004820152601d60248201527f4552433230536e617073686f743a206e6f6e6578697374656e74206964000000604482015290519081900360640190fd5b6000611295848663ffffffff61136616565b84549091508114156112ae5750600091508190506112d0565b60018460010182815481106112bf57fe5b906000526020600020015492509250505b9250929050565b6000610a488383611407565b6000610a48836001600160a01b03841661146b565b600061068682611362565b600061130f838361146b565b61134557508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610686565b506000610686565b6000610a48836001600160a01b038416611483565b5490565b815460009061137757506000610686565b82546000905b808210156113c65760006113918383611549565b9050848682815481106113a057fe5b906000526020600020015411156113b9578091506113c0565b8060010192505b5061137d565b6000821180156113ee5750838560018403815481106113e157fe5b9060005260206000200154145b156113ff5750600019019050610686565b509050610686565b815460009082106114495760405162461bcd60e51b815260040180806020018281038252602281526020018061156f6022913960400191505060405180910390fd5b82600001828154811061145857fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b6000818152600183016020526040812054801561153f57835460001980830191908101906000908790839081106114b657fe5b90600052602060002001549050808760000184815481106114d357fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061150357fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610686565b6000915050610686565b6000600280830660028506018161155c57fe5b0460028304600285040101939250505056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e7445524332303a20617070726f766520746f20746865207a65726f2061646472657373416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b6545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a2646970667358221220fb75dc103bc6a3f75edc7ca7c4af241b5f0efd78c89bfc94efd3d2379fe8610564736f6c63430006080033
Deployed Bytecode Sourcemap
54082:150:0:-:0;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;54082:150:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;9;2:12;37059:83:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;37059:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39205:169;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;39205:169:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;38134:115;;;:::i;:::-;;;;;;;;;;;;;;;;39848:332;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;39848:332:0;;;;;;;;;;;;;;;;;:::i;18714:114::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;18714:114:0;;:::i;19090:227::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;19090:227:0;;;;;;-1:-1:-1;;;;;19090:227:0;;:::i;:::-;;37986:83;;;:::i;:::-;;;;;;;;;;;;;;;;;;;21985:41;;;:::i;20299:209::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;20299:209:0;;;;;;-1:-1:-1;;;;;20299:209:0;;:::i;40589:218::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;40589:218:0;;;;;;;;:::i;50379:258::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;50379:258:0;;;;;;;;:::i;21869:38::-;;;:::i;38312:133::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;38312:133:0;-1:-1:-1;;;;;38312:133:0;;:::i;22287:41::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;22287:41:0;-1:-1:-1;;;;;22287:41:0;;:::i;18387:138::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;18387:138:0;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;18387:138:0;;;;;;;;;;;;;;17348:139;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;17348:139:0;;;;;;-1:-1:-1;;;;;17348:139:0;;:::i;37261:87::-;;;:::i;50741:225::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;50741:225:0;;:::i;16516:49::-;;;:::i;41310:269::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;41310:269:0;;;;;;;;:::i;38658:186::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;38658:186:0;;;;;;;;:::i;17661:127::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;17661:127:0;;:::i;21914:62::-;;;:::i;19562:230::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;19562:230:0;;;;;;-1:-1:-1;;;;;19562:230:0;;:::i;23753:270::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;23753:270:0;;;;;;;;;;;;;;;27:11:-1;11:28;;8:2;;;52:1;49;42:12;8:2;23753:270:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;23753:270:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;39:11;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;23753:270:0;;-1:-1:-1;23753:270:0;-1:-1:-1;23753:270:0;;:::i;38907:151::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;38907:151:0;;;;;;;;;;:::i;37059:83::-;37129:5;37122:12;;;;;;;;-1:-1:-1;;37122:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37096:13;;37122:12;;37129:5;;37122:12;;37129:5;37122:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37059:83;:::o;39205:169::-;39288:4;39305:39;39314:12;:10;:12::i;:::-;39328:7;39337:6;39305:8;:39::i;:::-;-1:-1:-1;39362:4:0;39205:169;;;;;:::o;38134:115::-;38187:7;38214:13;-1:-1:-1;;;;;38214:25:0;;:27;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;38214:27:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;38214:27:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;38214:27:0;;-1:-1:-1;38134:115:0;:::o;39848:332::-;39954:4;39971:47;39992:6;40000:9;40011:6;39971:20;:47::i;:::-;40029:121;40038:6;40046:12;:10;:12::i;:::-;40060:89;40098:6;40060:89;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;40060:19:0;;;;;;:11;:19;;;;;;40080:12;:10;:12::i;:::-;-1:-1:-1;;;;;40060:33:0;;;;;;;;;;;;-1:-1:-1;40060:33:0;;;:89;;:37;:89;:::i;:::-;40029:8;:121::i;:::-;-1:-1:-1;40168:4:0;39848:332;;;;;:::o;18714:114::-;18771:7;18798:12;;;;;;;;;;:22;;;;18714:114::o;19090:227::-;19182:6;:12;;;;;;;;;;:22;;;19174:45;;19206:12;:10;:12::i;:::-;19174:7;:45::i;:::-;19166:105;;;;-1:-1:-1;;;19166:105:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19284:25;19295:4;19301:7;19284:10;:25::i;:::-;19090:227;;:::o;37986:83::-;38052:9;;;;37986:83;:::o;21985:41::-;;;:::o;20299:209::-;20397:12;:10;:12::i;:::-;-1:-1:-1;;;;;20386:23:0;:7;-1:-1:-1;;;;;20386:23:0;;20378:83;;;;-1:-1:-1;;;20378:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20474:26;20486:4;20492:7;20474:11;:26::i;40589:218::-;40677:4;40694:83;40703:12;:10;:12::i;:::-;40717:7;40726:50;40765:10;40726:11;:25;40738:12;:10;:12::i;:::-;-1:-1:-1;;;;;40726:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;40726:25:0;;;:34;;;;;;;;;;;:50;:38;:50;:::i;50379:258::-;-1:-1:-1;;;;;50535:33:0;;50458:7;50535:33;;;:24;:33;;;;;50458:7;;;;50514:55;;50523:10;;50514:8;:55::i;:::-;50478:91;;;;50589:11;:40;;50611:18;50621:7;50611:9;:18::i;:::-;50589:40;;;50603:5;50589:40;50582:47;50379:258;-1:-1:-1;;;;;50379:258:0:o;21869:38::-;;;;;;;;;;;;;;-1:-1:-1;;;21869:38:0;;;;:::o;38312:133::-;38378:7;38405:13;-1:-1:-1;;;;;38405:23:0;;38429:7;38405:32;;;;;;;;;;;;;-1:-1:-1;;;;;38405:32:0;-1:-1:-1;;;;;38405:32:0;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;38405:32:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;38405:32:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;38405:32:0;;38312:133;-1:-1:-1;;38312:133:0:o;22287:41::-;;;;;;;;;;;;;:::o;18387:138::-;18460:7;18487:12;;;;;;;;;;:30;;18511:5;18487:30;:23;:30;:::i;:::-;18480:37;18387:138;-1:-1:-1;;;18387:138:0:o;17348:139::-;17417:4;17441:12;;;;;;;;;;:38;;17471:7;17441:38;:29;:38;:::i;37261:87::-;37333:7;37326:14;;;;;;;;-1:-1:-1;;37326:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37300:13;;37326:14;;37333:7;;37326:14;;37333:7;37326:14;;;;;;;;;;;;;;;;;;;;;;;;50741:225;50804:7;50825:16;50843:13;50860:43;50869:10;50881:21;50860:8;:43::i;:::-;50824:79;;;;50923:11;:35;;50945:13;:11;:13::i;:::-;50923:35;;;50937:5;50923:35;50916:42;50741:225;-1:-1:-1;;;;50741:225:0:o;16516:49::-;16561:4;16516:49;:::o;41310:269::-;41403:4;41420:129;41429:12;:10;:12::i;:::-;41443:7;41452:96;41491:15;41452:96;;;;;;;;;;;;;;;;;:11;:25;41464:12;:10;:12::i;:::-;-1:-1:-1;;;;;41452:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;41452:25:0;;;:34;;;;;;;;;;;:96;;:38;:96;:::i;38658:186::-;38744:4;38761:53;38782:12;:10;:12::i;:::-;38796:9;38807:6;38761:20;:53::i;17661:127::-;17724:7;17751:12;;;;;;;;;;:29;;:27;:29::i;21914:62::-;21952:24;;;-1:-1:-1;;;21952:24:0;;;;;;;;;;;;21914:62;:::o;19562:230::-;19655:6;:12;;;;;;;;;;:22;;;19647:45;;19679:12;:10;:12::i;19647:45::-;19639:106;;;;-1:-1:-1;;;19639:106:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23753:270;23855:10;-1:-1:-1;;;;;23877:13:0;23855:36;;23847:45;;12:1:-1;9;2:12;23847:45:0;23910:9;23905:111;23925:18;;;23905:111;;;23986:7;;23994:1;23986:10;;;;;;;;;;;;;-1:-1:-1;;;;;23986:10:0;-1:-1:-1;;;;;23970:34:0;23979:5;-1:-1:-1;;;;;23970:34:0;;23998:5;23970:34;;;;;;;;;;;;;;;;;;23945:3;;23905:111;;;;23753:270;;;;:::o;38907:151::-;-1:-1:-1;;;;;39023:18:0;;;38996:7;39023:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;38907:151::o;26450:181::-;26508:7;26540:5;;;26564:6;;;;26556:46;;;;;-1:-1:-1;;;26556:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;5076:143;5146:4;5170:41;5175:3;-1:-1:-1;;;;;5195:14:0;;5170:4;:41::i;11638:106::-;11726:10;11638:106;:::o;44395:423::-;-1:-1:-1;;;;;44506:19:0;;44498:68;;;;-1:-1:-1;;;44498:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;44585:21:0;;44577:68;;;;-1:-1:-1;;;44577:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44660:10;-1:-1:-1;;;;;44660:19:0;;;44656:57;;;44681:13;-1:-1:-1;;;;;44681:30:0;;:32;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;44681:32:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;44681:32:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;44656:57:0;-1:-1:-1;;;;;44726:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;44778:32;;;;;;;;;;;;;;;;;44395:423;;;:::o;45843:244::-;45954:2;-1:-1:-1;;;;;45939:26:0;45948:4;-1:-1:-1;;;;;45939:26:0;;45958:6;45939:26;;;;;;;;;;;;;;;;;;46007:64;;;-1:-1:-1;;;;;46007:64:0;;;;;;;;;;;;;;;;;;;;46060:10;46007:64;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;46007:64:0;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;45979:93:0;;;;45968:6;;45987:13;45979:27;;;;;46007:64;45979:93;;;;25:18:-1;36:153;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;45979:93:0;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;19;14:27;;;;67:4;61:11;56:16;;134:4;130:9;123:4;105:16;101:27;97:43;94:1;90:51;84:4;77:65;157:16;154:1;147:27;211:16;208:1;201:4;198:1;194:12;179:49;5:228;;14:27;32:4;27:9;;5:228;;45967:105:0;;;46082:1;46074:10;;12:1:-1;9;2:12;46074:10:0;45843:244;;;;:::o;27337:192::-;27423:7;27459:12;27451:6;;;;27443:29;;;;-1:-1:-1;;;27443:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;27443:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;27495:5:0;;;27337:192::o;21419:188::-;21493:6;:12;;;;;;;;;;:33;;21518:7;21493:33;:24;:33;:::i;:::-;21489:111;;;21575:12;:10;:12::i;:::-;-1:-1:-1;;;;;21548:40:0;21566:7;-1:-1:-1;;;;;21548:40:0;21560:4;21548:40;;;;;;;;;;21419:188;;:::o;21615:192::-;21690:6;:12;;;;;;;;;;:36;;21718:7;21690:36;:27;:36;:::i;:::-;21686:114;;;21775:12;:10;:12::i;:::-;-1:-1:-1;;;;;21748:40:0;21766:7;-1:-1:-1;;;;;21748:40:0;21760:4;21748:40;;;;;;;;;;21615:192;;:::o;51497:1692::-;51595:4;51601:7;51647:1;51634:10;:14;51626:49;;;;;-1:-1:-1;;;51626:49:0;;;;;;;;;;;;-1:-1:-1;;;51626:49:0;;;;;;;;;;;;;;;51762:28;:18;:26;:28::i;:::-;51748:10;:42;;51740:84;;;;;-1:-1:-1;;;51740:84:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;52963:13;52979:40;:9;53008:10;52979:40;:28;:40;:::i;:::-;53045:20;;52963:56;;-1:-1:-1;53036:29:0;;53032:150;;;-1:-1:-1;53090:5:0;;-1:-1:-1;53090:5:0;;-1:-1:-1;53082:17:0;;53032:150;53140:4;53146:9;:16;;53163:5;53146:23;;;;;;;;;;;;;;;;53132:38;;;;;51497:1692;;;;;;:::o;6335:149::-;6409:7;6452:22;6456:3;6468:5;6452:3;:22::i;5630:158::-;5710:4;5734:46;5744:3;-1:-1:-1;;;;;5764:14:0;;5734:9;:46::i;5874:117::-;5937:7;5964:19;5972:3;5964:7;:19::i;1730:414::-;1793:4;1815:21;1825:3;1830:5;1815:9;:21::i;:::-;1810:327;;-1:-1:-1;27:10;;39:1;23:18;;;45:23;;1853:11:0;:23;;;;;;;;;;;;;2036:18;;2014:19;;;:12;;;:19;;;;;;:40;;;;2069:11;;1810:327;-1:-1:-1;2120:5:0;2113:12;;5395:149;5468:4;5492:44;5500:3;-1:-1:-1;;;;;5520:14:0;;5492:7;:44::i;34423:114::-;34515:14;;34423:114::o;32377:918::-;32490:12;;32466:7;;32486:58;;-1:-1:-1;32531:1:0;32524:8;;32486:58;32597:12;;32556:11;;32622:424;32635:4;32629:3;:10;32622:424;;;32656:11;32670:23;32683:3;32688:4;32670:12;:23::i;:::-;32656:37;;32927:7;32914:5;32920:3;32914:10;;;;;;;;;;;;;;;;:20;32910:125;;;32962:3;32955:10;;32910:125;;;33012:3;33018:1;33012:7;33006:13;;32910:125;32622:424;;;;33172:1;33166:3;:7;:36;;;;;33195:7;33177:5;33189:1;33183:3;:7;33177:14;;;;;;;;;;;;;;;;:25;33166:36;33162:126;;;-1:-1:-1;;;33226:7:0;;-1:-1:-1;33219:14:0;;33162:126;-1:-1:-1;33273:3:0;-1:-1:-1;33266:10:0;;4618:204;4713:18;;4685:7;;4713:26;-1:-1:-1;4705:73:0;;;;-1:-1:-1;;;4705:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4796:3;:11;;4808:5;4796:18;;;;;;;;;;;;;;;;4789:25;;4618:204;;;;:::o;3950:129::-;4023:4;4047:19;;;:12;;;;;:19;;;;;;:24;;;3950:129::o;2320:1544::-;2386:4;2525:19;;;:12;;;:19;;;;;;2561:15;;2557:1300;;2996:18;;-1:-1:-1;;2947:14:0;;;;2996:22;;;;2923:21;;2996:3;;:22;;3283;;;;;;;;;;;;;;3263:42;;3429:9;3400:3;:11;;3412:13;3400:26;;;;;;;;;;;;;;;;;;;:38;;;;3506:23;;;3548:1;3506:12;;;:23;;;;;;3532:17;;;3506:43;;3658:17;;3506:3;;3658:17;;;;;;;;;;;;;;;;;;;;;;3753:3;:12;;:19;3766:5;3753:19;;;;;;;;;;;3746:26;;;3796:4;3789:11;;;;;;;;2557:1300;3840:5;3833:12;;;;;31578:193;31640:7;31761:1;;31752;:5;31748:1;31744;:5;:13;31743:19;;;;;;31737:1;31733;:5;31727:1;31723;:5;31722:17;:41;;31578:193;-1:-1:-1;;;31578:193:0:o
Swarm Source
ipfs://fb75dc103bc6a3f75edc7ca7c4af241b5f0efd78c89bfc94efd3d2379fe86105
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.