Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
PRETokenV3
Compiler Version
v0.6.2+commit.bacdbe57
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-09-04 */ // File: @openzeppelin/contracts-ethereum-package/contracts/Initializable.sol pragma solidity >=0.4.24 <0.7.0; /** * @title Initializable * * @dev Helper contract to support initializer functions. To use it, replace * the constructor with a function that has the `initializer` modifier. * WARNING: Unlike constructors, initializer functions must be manually * invoked. This applies both to deploying an Initializable contract, as well * as extending an Initializable contract via inheritance. * WARNING: When used with inheritance, manual care must be taken to not invoke * a parent initializer twice, or ensure that all initializers are idempotent, * because this is not dealt with automatically as with constructors. */ contract Initializable { /** * @dev Indicates that the contract has been initialized. */ bool private initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private initializing; /** * @dev Modifier to use in the initializer function of a contract. */ modifier initializer() { require(initializing || isConstructor() || !initialized, "Contract instance has already been initialized"); bool isTopLevelCall = !initializing; if (isTopLevelCall) { initializing = true; initialized = true; } _; if (isTopLevelCall) { initializing = false; } } /// @dev Returns true if and only if the function is running in the constructor function isConstructor() private view returns (bool) { // extcodesize checks the size of the code stored in an address, and // address returns the current address. Since the code is still not // deployed when running a constructor, any checks on its code size will // yield zero, making it an effective way to detect if a contract is // under construction or not. address self = address(this); uint256 cs; assembly { cs := extcodesize(self) } return cs == 0; } // Reserved storage space to allow for layout changes in the future. uint256[50] private ______gap; } // File: @openzeppelin/contracts-ethereum-package/contracts/math/SafeMath.sol 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-ethereum-package/contracts/utils/EnumerableSet.sol 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-ethereum-package/contracts/utils/Address.sol 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-ethereum-package/contracts/GSN/Context.sol 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 ContextUpgradeSafe is Initializable { // Empty internal constructor, to prevent people from mistakenly deploying // an instance of this contract, which should be used via inheritance. function __Context_init() internal initializer { __Context_init_unchained(); } function __Context_init_unchained() internal initializer { } 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; } uint256[50] private __gap; } // File: @openzeppelin/contracts-ethereum-package/contracts/access/AccessControl.sol 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, _msgSender())); * ... * } * ``` * * 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}. */ abstract contract AccessControlUpgradeSafe is Initializable, ContextUpgradeSafe { function __AccessControl_init() internal initializer { __Context_init_unchained(); __AccessControl_init_unchained(); } function __AccessControl_init_unchained() internal initializer { } 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()); } } uint256[49] private __gap; } // File: @openzeppelin/contracts-ethereum-package/contracts/token/ERC20/IERC20.sol 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: contracts/EnhancedERC20.sol pragma solidity 0.6.2; /** * @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 EnhancedERC20 is Initializable, ContextUpgradeSafe, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _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. */ function __ERC20_init(string memory name, string memory symbol) internal initializer { __Context_init_unchained(); __ERC20_init_unchained(name, symbol); } function __ERC20_init_unchained(string memory name, string memory symbol) internal initializer { _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 _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view override returns (uint256) { return _balances[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) { _transfer(_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) { _transfer(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 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 { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev 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_; } /* Above this line is original Openzeppelin code from ERC20UpgradeSafe. Below are changes required necessary to expose private variables or hooks to make the contract more flexible or gas-efficient. */ /** * @dev Hook that is called before minting of tokens. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeMint(address from, address to, uint256 amount) internal virtual { } /** * @dev Hook that is called before any tokens are burned. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeBurn(address from, address to, uint256 amount) internal virtual { } /** * @dev Hook that is called before a transfering tokens out of an account to one or more token holders * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransferBatch() internal virtual { } /** @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"); _beforeMint(address(0), account, amount); _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"); _beforeBurn(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 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"); _beforeTokenTransferBatch(); _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance"); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, amount); } /** * @dev Send multiple transfers as a batch within a single transaction * This is much more efficient than sending independent transactions. * This method should between 28% of gas (2 transfers) * and 50%-60% of gas (10+ transfers) * * Calling conditions: * * Emits an {Transfer} event for each individual successful transfer. * * Requirements: * * - `recipients[]` length must equal `amounts[]` length. * - The amount to send `recipients[i]` must be at `amounts[i]` * - `recipient` cannot be the zero address. * - `balance` of the calling account must be >= the sum of values in `amounts` going to other accounts */ function transferBatch(address[] calldata recipients, uint256[] calldata amounts) external virtual returns (bool) { require(recipients.length == amounts.length); _beforeTokenTransferBatch(); address sender = _msgSender(); uint256 senderBalance = _balances[sender]; for (uint i = 0; i < amounts.length; i++) { uint amount = amounts[i]; address recipient = recipients[i]; require(senderBalance >= amount, "ERC20: Insufficient balance for batch transfer"); require(recipient != address(0), "ERC20: transfer to the zero address"); if(sender != recipient){ senderBalance = senderBalance - amount; _balances[recipient] += amount; } emit Transfer(sender, recipient, amount); } _balances[sender] = senderBalance; return true; } uint256[44] private __gap; } // File: @openzeppelin/contracts-ethereum-package/contracts/utils/Pausable.sol pragma solidity ^0.6.0; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ contract PausableUpgradeSafe is Initializable, ContextUpgradeSafe { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ function __Pausable_init() internal initializer { __Context_init_unchained(); __Pausable_init_unchained(); } function __Pausable_init_unchained() internal initializer { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. */ modifier whenNotPaused() { require(!_paused, "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. */ modifier whenPaused() { require(_paused, "Pausable: not paused"); _; } /** * @dev Triggers stopped state. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } uint256[49] private __gap; } // File: contracts/ManagedEnhancedERC20.sol pragma solidity 0.6.2; /** * @dev ERC20 token with pausable token transfers. * * Useful as an emergency switch for freezing all token transfers in the * event of a large bug or major project-impacting event. */ abstract contract ManagedEnhancedERC20 is Initializable, ContextUpgradeSafe, AccessControlUpgradeSafe, EnhancedERC20, PausableUpgradeSafe { bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE"); function __ManagedEnhancedERC20_init(string memory name, string memory symbol) internal initializer { __Context_init_unchained(); __AccessControl_init_unchained(); __ERC20_init_unchained(name, symbol); __Pausable_init_unchained(); __ManagedEnhancedERC20_init_unchained(); } function __ManagedEnhancedERC20_init_unchained() internal initializer { _setupRole(DEFAULT_ADMIN_ROLE, _msgSender()); _setupRole(PAUSER_ROLE, _msgSender()); } /** * @dev Pauses all token transfers. * * See {ERC20Pausable} and {Pausable-_pause}. * * Requirements: * * - the caller must have the `PAUSER_ROLE`. */ function pause() public { require(hasRole(PAUSER_ROLE, _msgSender()), "ManagedEnhancedERC20: must have pauser role to pause"); _pause(); } /** * @dev Unpauses all token transfers. * * See {ERC20Pausable} and {Pausable-_unpause}. * * Requirements: * * - the caller must have the `PAUSER_ROLE`. */ function unpause() public { require(hasRole(PAUSER_ROLE, _msgSender()), "ManagedEnhancedERC20: must have pauser role to unpause"); _unpause(); } /** * @dev See {EnhancedERC20-_beforeTokenTransferBatch}. * * Requirements: * * - the contract must not be paused. */ function _beforeTokenTransferBatch() internal virtual override { super._beforeTokenTransferBatch(); require(!paused(), "ManagedEnhancedERC20: token transfer while paused"); } uint256[50] private __gap; } // File: contracts/PREToken.sol pragma solidity 0.6.2; /** * @dev Presearch ERC20 Token * * Supply capped at 500M. */ contract PREToken is Initializable, ManagedEnhancedERC20 { using SafeMath for uint256; uint256 internal _maxSupply; function initialize(string memory name, string memory symbol) public initializer { __Context_init_unchained(); __AccessControl_init_unchained(); __ERC20_init_unchained(name, symbol); __Pausable_init_unchained(); __ManagedEnhancedERC20_init_unchained(); __PREToken_init_unchained(); } function __PREToken_init_unchained() internal initializer { _maxSupply = 500000000e18; _mint(_msgSender(), _maxSupply); } function _beforeMint(address from, address to, uint256 amount) internal virtual override { require(totalSupply().add(amount) <= _maxSupply); super._beforeMint(from, to, amount); } uint256[50] private __gap; } // File: contracts/lib/Strings.sol // SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.6.2; /** * @dev String operations. */ library StringsUpgradeable { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } } // File: contracts/lib/ECDSA.sol // SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol) pragma solidity 0.6.2; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSAUpgradeable { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // 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 (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): 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) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", StringsUpgradeable.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } } // File: contracts/EIP712.sol // SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/cryptography/draft-EIP712.sol) pragma solidity ^0.6.2; /** * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data. * * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible, * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding * they need in their contracts using a combination of `abi.encode` and `keccak256`. * * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA * ({_hashTypedDataV4}). * * The implementation of the domain separator was designed to be as efficient as possible while still properly updating * the chain id to protect against replay attacks on an eventual fork of the chain. * * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask]. * * _Available since v3.4._ * */ abstract contract EIP712Upgradeable is Initializable { /* solhint-disable var-name-mixedcase */ bytes32 private _HASHED_NAME; bytes32 private _HASHED_VERSION; bytes32 private constant _TYPE_HASH = keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"); /* solhint-enable var-name-mixedcase */ /** * @dev Initializes the domain separator and parameter caches. * * The meaning of `name` and `version` is specified in * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]: * * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol. * - `version`: the current major version of the signing domain. * * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart * contract upgrade]. */ function __EIP712_init(string memory name, string memory version) internal { __EIP712_init_unchained(name, version); } function __EIP712_init_unchained(string memory name, string memory version) internal { _initialize(name, version); } function _initialize(string memory name, string memory version) internal { bytes32 hashedName = keccak256(bytes(name)); bytes32 hashedVersion = keccak256(bytes(version)); _HASHED_NAME = hashedName; _HASHED_VERSION = hashedVersion; } /** * @dev Returns the domain separator for the current chain. */ function _domainSeparatorV4() internal view returns (bytes32) { return _buildDomainSeparator(_TYPE_HASH, _EIP712NameHash(), _EIP712VersionHash()); } function _buildDomainSeparator( bytes32 typeHash, bytes32 nameHash, bytes32 versionHash ) private view returns (bytes32) { uint256 chainId; assembly { chainId := chainid() } return keccak256(abi.encode(typeHash, nameHash, versionHash, chainId, address(this))); } /** * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this * function returns the hash of the fully encoded EIP712 message for this domain. * * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example: * * ```solidity * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode( * keccak256("Mail(address to,string contents)"), * mailTo, * keccak256(bytes(mailContents)) * ))); * address signer = ECDSA.recover(digest, signature); * ``` */ function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) { return ECDSAUpgradeable.toTypedDataHash(_domainSeparatorV4(), structHash); } /** * @dev The hash of the name parameter for the EIP712 domain. * * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs * are a concern. */ function _EIP712NameHash() internal virtual view returns (bytes32) { return _HASHED_NAME; } /** * @dev The hash of the version parameter for the EIP712 domain. * * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs * are a concern. */ function _EIP712VersionHash() internal virtual view returns (bytes32) { return _HASHED_VERSION; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; } // File: contracts/TransferAuthorizableERC20.sol pragma solidity 0.6.2; /** * @dev ERC20 token with pausable token transfers. * * Useful as an emergency switch for freezing all token transfers in the * event of a large bug or major project-impacting event. */ abstract contract TransferAuthorizableERC20 is Initializable, ManagedEnhancedERC20, EIP712Upgradeable { bytes32 public constant TRANSFER_AUTHORIZER_ROLE = keccak256("TRANSFER_AUTHORIZER_ROLE"); function __TransferAuthorizableERC20_init(string memory name, string memory symbol) internal initializer { __Context_init_unchained(); __AccessControl_init_unchained(); __ERC20_init_unchained(name, symbol); __Pausable_init_unchained(); __ManagedEnhancedERC20_init_unchained(); __TransferAuthorizableERC20ERC20_init_unchained(); } function __TransferAuthorizableERC20ERC20_init_unchained() internal initializer { _setupTransferAuthorizable(); } function getDomainSeparator() external view returns(bytes32) { return _domainSeparatorV4(); } function _setupTransferAuthorizable() internal { _initialize(name(), "1"); _setupRole(TRANSFER_AUTHORIZER_ROLE, _msgSender()); } /*********EIP3009 */ // keccak256("TransferWithAuthorization(address from,address to,uint256 value,uint256 validAfter,uint256 validBefore,bytes32 nonce)") bytes32 public constant TRANSFER_WITH_AUTHORIZATION_TYPEHASH = 0x7c7c6cdb67a18743f49ec6fa9b35f50d52ed05cbed4cc592e13b44501c1a2267; // keccak256("ReceiveWithAuthorization(address from,address to,uint256 value,uint256 validAfter,uint256 validBefore,bytes32 nonce)") bytes32 public constant RECEIVE_WITH_AUTHORIZATION_TYPEHASH = 0xd099cc98ef71107a616c4f0f941f04c322d8e254fe26b3c6668db87aae413de8; // keccak256("CancelAuthorization(address authorizer,bytes32 nonce)") bytes32 public constant CANCEL_AUTHORIZATION_TYPEHASH = 0x158b0a9edf7a828aad02f63cd515c68ef2f50ba807396f6d12842833a1597429; /** * @dev authorizer address => nonce => state (true = used / false = unused) */ mapping(address => mapping(bytes32 => bool)) internal _authorizationStates; event AuthorizationUsed(address indexed authorizer, bytes32 indexed nonce); event AuthorizationCanceled( address indexed authorizer, bytes32 indexed nonce ); string internal constant _INVALID_SIGNATURE_ERROR = "EIP3009: invalid signature"; string internal constant _AUTHORIZATION_USED_ERROR = "EIP3009: authorization is used"; /** * @notice Returns the state of an authorization * @dev Nonces are randomly generated 32-byte data unique to the authorizer's * address * @param authorizer Authorizer's address * @param nonce Nonce of the authorization * @return True if the nonce is used */ function authorizationState(address authorizer, bytes32 nonce) external view returns (bool) { return _authorizationStates[authorizer][nonce]; } /** * @notice Execute a transfer with a signed authorization * @param from Payer's address (Authorizer) * @param to Payee's address * @param value Amount to be transferred * @param validAfter The time after which this is valid (unix time) * @param validBefore The time before which this is valid (unix time) * @param nonce Unique nonce * @param v v of the signature * @param r r of the signature * @param s s of the signature */ function transferWithAuthorization( address from, address to, uint256 value, uint256 validAfter, uint256 validBefore, bytes32 nonce, uint8 v, bytes32 r, bytes32 s ) external { require(hasRole(TRANSFER_AUTHORIZER_ROLE, from), "TransferAuthorizableERC20: from address is not authorized for transferWithAuthorization"); _transferWithAuthorization( TRANSFER_WITH_AUTHORIZATION_TYPEHASH, from, to, value, validAfter, validBefore, nonce, v, r, s ); } /** * @notice Receive a transfer with a signed authorization from the payer * @dev This has an additional check to ensure that the payee's address matches * the caller of this function to prevent front-running attacks. (See security * considerations) * @param from Payer's address (Authorizer) * @param to Payee's address * @param value Amount to be transferred * @param validAfter The time after which this is valid (unix time) * @param validBefore The time before which this is valid (unix time) * @param nonce Unique nonce * @param v v of the signature * @param r r of the signature * @param s s of the signature */ function receiveWithAuthorization( address from, address to, uint256 value, uint256 validAfter, uint256 validBefore, bytes32 nonce, uint8 v, bytes32 r, bytes32 s ) external { require(to == _msgSender(), "EIP3009: caller must be the payee"); require(hasRole(TRANSFER_AUTHORIZER_ROLE, from), "TransferAuthorizableERC20: from address is not authorized for transferWithAuthorization"); _transferWithAuthorization( RECEIVE_WITH_AUTHORIZATION_TYPEHASH, from, to, value, validAfter, validBefore, nonce, v, r, s ); } /** * @notice Attempt to cancel an authorization * @param authorizer Authorizer's address * @param nonce Nonce of the authorization * @param v v of the signature * @param r r of the signature * @param s s of the signature */ function cancelAuthorization( address authorizer, bytes32 nonce, uint8 v, bytes32 r, bytes32 s ) external { require( !_authorizationStates[authorizer][nonce], _AUTHORIZATION_USED_ERROR ); bytes memory data = abi.encode( CANCEL_AUTHORIZATION_TYPEHASH, authorizer, nonce ); bytes32 typedDataHash = ECDSAUpgradeable.toTypedDataHash(_domainSeparatorV4(), keccak256(data)); require( ECDSAUpgradeable.recover(typedDataHash, v, r, s) == authorizer, _INVALID_SIGNATURE_ERROR ); _authorizationStates[authorizer][nonce] = true; emit AuthorizationCanceled(authorizer, nonce); } function _transferWithAuthorization( bytes32 typeHash, address from, address to, uint256 value, uint256 validAfter, uint256 validBefore, bytes32 nonce, uint8 v, bytes32 r, bytes32 s ) internal { require(now > validAfter, "EIP3009: authorization is not yet valid"); require(now < validBefore, "EIP3009: authorization is expired"); require(!_authorizationStates[from][nonce], _AUTHORIZATION_USED_ERROR); bytes memory data = abi.encode( typeHash, from, to, value, validAfter, validBefore, nonce ); bytes32 typedDataHash = ECDSAUpgradeable.toTypedDataHash(_domainSeparatorV4(), keccak256(data)); require( ECDSAUpgradeable.recover(typedDataHash, v, r, s) == from, _INVALID_SIGNATURE_ERROR ); _authorizationStates[from][nonce] = true; emit AuthorizationUsed(from, nonce); _transfer(from, to, value); } uint256[49] private __gap; } // File: contracts/PRETokenV2.sol pragma solidity 0.6.2; /** * @dev Presearch ERC20 Token * * Supply capped at 500M. */ contract PRETokenV2 is PREToken, TransferAuthorizableERC20 { bool private _initializedV2; function initialize() virtual public { require (!_initializedV2, "PRETokenV2: Contract is already initialized"); require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "TransferAuthorizableERC20: Only Admin role can run this method"); _setupTransferAuthorizable(); _initializedV2 = true; } function _beforeMint(address from, address to, uint256 amount) internal virtual override(EnhancedERC20, PREToken) { super._beforeMint(from, to, amount); } uint256[50] private __gap; } // File: contracts/PRETokenV3.sol pragma solidity 0.6.2; /** * @dev Presearch ERC20 Token * * Supply capped at 1B. */ contract PRETokenV3 is PRETokenV2 { bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); bool private _initializedV3; function initialize() public override { require (!_initializedV3, "PRETokenV3: Contract is already initialized"); require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "PRETokenV3: Only Admin role can run this method"); _setupRole(MINTER_ROLE, _msgSender()); _maxSupply = 1000000000e18; _initializedV3 = true; } /** * @dev Mints new tokens. * * Requirements: * * - the caller must have the `MINTER_ROLE`. * - the `totalSupply` + `amount` must not exceed max supply of 1B. */ function mint(address to, uint256 amount) public virtual{ require(hasRole(MINTER_ROLE, _msgSender()), "PRETokenV3: Only Minter role can run this method"); _mint(to, amount); } /** * @dev Burns `amount` tokens from the caller's address * * Requirements: * * - `amount` cannot be greater than the caller's token balance. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } function recover() public virtual{ require(hasRole(MINTER_ROLE, _msgSender()), "PRETokenV3: Only Minter role can run this method"); // Burn lost tokens sent to the token contract so they are not locked there forever // This is a safety measure which enables tokens to be re-minted later if(balanceOf(address(this)) > 0) { _burn(address(this), balanceOf(address(this))); } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"authorizer","type":"address"},{"indexed":true,"internalType":"bytes32","name":"nonce","type":"bytes32"}],"name":"AuthorizationCanceled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"authorizer","type":"address"},{"indexed":true,"internalType":"bytes32","name":"nonce","type":"bytes32"}],"name":"AuthorizationUsed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"CANCEL_AUTHORIZATION_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","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":[],"name":"PAUSER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RECEIVE_WITH_AUTHORIZATION_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRANSFER_AUTHORIZER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRANSFER_WITH_AUTHORIZATION_TYPEHASH","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":"authorizer","type":"address"},{"internalType":"bytes32","name":"nonce","type":"bytes32"}],"name":"authorizationState","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"authorizer","type":"address"},{"internalType":"bytes32","name":"nonce","type":"bytes32"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"cancelAuthorization","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getDomainSeparator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","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":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"validAfter","type":"uint256"},{"internalType":"uint256","name":"validBefore","type":"uint256"},{"internalType":"bytes32","name":"nonce","type":"bytes32"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"receiveWithAuthorization","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"recover","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":"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":"recipients","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"transferBatch","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":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"validAfter","type":"uint256"},{"internalType":"uint256","name":"validBefore","type":"uint256"},{"internalType":"bytes32","name":"nonce","type":"bytes32"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"transferWithAuthorization","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b506131b9806100206000396000f3fe608060405234801561001057600080fd5b50600436106102ad5760003560e01c80638456cb591161017b578063ce746024116100d8578063e3ee160e1161008c578063e94a010211610071578063e94a010214610920578063ed24911d1461094c578063ef55bec614610954576102ad565b8063e3ee160e146108b9578063e63ab1e914610918576102ad565b8063d547741f116100bd578063d547741f14610857578063d916948714610883578063dd62ed3e1461088b576102ad565b8063ce74602414610847578063d53913931461084f576102ad565b8063a217fddf1161012f578063a9059cbb11610114578063a9059cbb146107f6578063b17123b214610822578063ca15c8731461082a576102ad565b8063a217fddf146107c2578063a457c2d7146107ca576102ad565b806391d148541161016057806391d148541461078657806395d89b41146107b2578063a0cc6a68146107ba576102ad565b80638456cb591461073f5780639010d07c14610747576102ad565b80633b3e672f116102295780635a049a70116101dd57806370a08231116101c257806370a08231146107095780637f2eecc31461072f5780638129fc1c14610737576102ad565b80635a049a70146106c05780635c975abb14610701576102ad565b806340c10f191161020e57806340c10f191461054a57806342966c68146105765780634cd88b7614610593576102ad565b80633b3e672f146104805780633f4ba83a14610542576102ad565b8063248a9ca311610280578063313ce56711610265578063313ce5671461040a57806336568abe146104285780633950935114610454576102ad565b8063248a9ca3146103bf5780632f2ff15d146103dc576102ad565b806306fdde03146102b2578063095ea7b31461032f57806318160ddd1461036f57806323b872dd14610389575b600080fd5b6102ba6109b3565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102f45781810151838201526020016102dc565b50505050905090810190601f1680156103215780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61035b6004803603604081101561034557600080fd5b506001600160a01b038135169060200135610a4a565b604080519115158252519081900360200190f35b610377610a68565b60408051918252519081900360200190f35b61035b6004803603606081101561039f57600080fd5b506001600160a01b03813581169160208101359091169060400135610a6e565b610377600480360360208110156103d557600080fd5b5035610afb565b610408600480360360408110156103f257600080fd5b50803590602001356001600160a01b0316610b10565b005b610412610b7c565b6040805160ff9092168252519081900360200190f35b6104086004803603604081101561043e57600080fd5b50803590602001356001600160a01b0316610b85565b61035b6004803603604081101561046a57600080fd5b506001600160a01b038135169060200135610be6565b61035b6004803603604081101561049657600080fd5b8101906020810181356401000000008111156104b157600080fd5b8201836020820111156104c357600080fd5b803590602001918460208302840111640100000000831117156104e557600080fd5b91939092909160208101903564010000000081111561050357600080fd5b82018360208201111561051557600080fd5b8035906020019184602083028401116401000000008311171561053757600080fd5b509092509050610c3a565b610408610df2565b6104086004803603604081101561056057600080fd5b506001600160a01b038135169060200135610e63565b6104086004803603602081101561058c57600080fd5b5035610ed4565b610408600480360360408110156105a957600080fd5b8101906020810181356401000000008111156105c457600080fd5b8201836020820111156105d657600080fd5b803590602001918460018302840111640100000000831117156105f857600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929594936020810193503591505064010000000081111561064b57600080fd5b82018360208201111561065d57600080fd5b8035906020019184600183028401116401000000008311171561067f57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610ee8945050505050565b610408600480360360a08110156106d657600080fd5b506001600160a01b038135169060208101359060ff6040820135169060608101359060800135610fbe565b61035b611215565b6103776004803603602081101561071f57600080fd5b50356001600160a01b031661121e565b610377611239565b61040861125d565b61040861133a565b61076a6004803603604081101561075d57600080fd5b50803590602001356113a9565b604080516001600160a01b039092168252519081900360200190f35b61035b6004803603604081101561079c57600080fd5b50803590602001356001600160a01b03166113ce565b6102ba6113ec565b61037761144d565b610377611471565b61035b600480360360408110156107e057600080fd5b506001600160a01b038135169060200135611476565b61035b6004803603604081101561080c57600080fd5b506001600160a01b0381351690602001356114e4565b6103776114f8565b6103776004803603602081101561084057600080fd5b503561152d565b610408611544565b6103776115ce565b6104086004803603604081101561086d57600080fd5b50803590602001356001600160a01b03166115f1565b61037761164a565b610377600480360360408110156108a157600080fd5b506001600160a01b038135811691602001351661166e565b61040860048036036101208110156108d057600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060808101359060a08101359060ff60c0820135169060e0810135906101000135611699565b61037761174d565b61035b6004803603604081101561093657600080fd5b506001600160a01b038135169060200135611770565b61037761179c565b610408600480360361012081101561096b57600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060808101359060a08101359060ff60c0820135169060e08101359061010001356117ab565b609a8054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610a3f5780601f10610a1457610100808354040283529160200191610a3f565b820191906000526020600020905b815481529060010190602001808311610a2257829003601f168201915b505050505090505b90565b6000610a5e610a576118ab565b84846118af565b5060015b92915050565b60995490565b6000610a7b84848461199b565b610af184610a876118ab565b610aec8560405180606001604052806028815260200161301e602891396001600160a01b038a16600090815260986020526040812090610ac56118ab565b6001600160a01b03168152602081019190915260400160002054919063ffffffff611b0116565b6118af565b5060019392505050565b60009081526065602052604090206002015490565b600082815260656020526040902060020154610b3390610b2e6118ab565b6113ce565b610b6e5760405162461bcd60e51b815260040180806020018281038252602f815260200180612cfe602f913960400191505060405180910390fd5b610b788282611b5b565b5050565b609c5460ff1690565b610b8d6118ab565b6001600160a01b0316816001600160a01b031614610bdc5760405162461bcd60e51b815260040180806020018281038252602f815260200180613155602f913960400191505060405180910390fd5b610b788282611bca565b6000610a5e610bf36118ab565b84610aec8560986000610c046118ab565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff611c3916565b6000838214610c4857600080fd5b610c50611c93565b6000610c5a6118ab565b6001600160a01b0381166000908152609760205260408120549192505b84811015610dcc576000868683818110610c8d57fe5b9050602002013590506000898984818110610ca457fe5b905060200201356001600160a01b0316905081841015610cf55760405162461bcd60e51b815260040180806020018281038252602e815260200180612d71602e913960400191505060405180910390fd5b6001600160a01b038116610d3a5760405162461bcd60e51b8152600401808060200182810382526023815260200180612cdb6023913960400191505060405180910390fd5b806001600160a01b0316856001600160a01b031614610d77576001600160a01b038116600090815260976020526040902080548301905592819003925b806001600160a01b0316856001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a35050600101610c77565b506001600160a01b03909116600090815260976020526040902055506001949350505050565b604080516a5041555345525f524f4c4560a81b8152905190819003600b019020610e1e90610b2e6118ab565b610e595760405162461bcd60e51b8152600401808060200182810382526036815260200180612e3d6036913960400191505060405180910390fd5b610e61611cdf565b565b604080516a4d494e5445525f524f4c4560a81b8152905190819003600b019020610e8f90610b2e6118ab565b610eca5760405162461bcd60e51b8152600401808060200182810382526030815260200180612d9f6030913960400191505060405180910390fd5b610b788282611d86565b610ee5610edf6118ab565b82611e84565b50565b600054610100900460ff1680610f015750610f01611f8c565b80610f0f575060005460ff16155b610f4a5760405162461bcd60e51b815260040180806020018281038252602e815260200180613046602e913960400191505060405180910390fd5b600054610100900460ff16158015610f75576000805460ff1961ff0019909116610100171660011790555b610f7d611f92565b610f85611f92565b610f8f8383612033565b610f9761210b565b610f9f6121b6565b610fa761227c565b8015610fb9576000805461ff00191690555b505050565b6001600160a01b038516600090815261019460209081526040808320878452825291829020548251808401909352601e83527f454950333030393a20617574686f72697a6174696f6e206973207573656400009183019190915260ff16156110a45760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611069578181015183820152602001611051565b50505050905090810190601f1680156110965780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50604080517f158b0a9edf7a828aad02f63cd515c68ef2f50ba807396f6d12842833a159742960208201526001600160a01b038716818301526060818101879052825180830390910181526080909101909152600061111061110461232e565b83516020850120612361565b9050866001600160a01b0316611128828787876123b7565b6001600160a01b0316146040518060400160405280601a81526020017f454950333030393a20696e76616c6964207369676e6174757265000000000000815250906111b45760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611069578181015183820152602001611051565b506001600160a01b0387166000818152610194602090815260408083208a8452909152808220805460ff19166001179055518892917f1cdd46ff242716cdaa72d159d339a485b3438398348d68f09d7c8c0a59353d8191a350505050505050565b60c95460ff1690565b6001600160a01b031660009081526097602052604090205490565b7fd099cc98ef71107a616c4f0f941f04c322d8e254fe26b3c6668db87aae413de881565b6101f95460ff16156112a05760405162461bcd60e51b815260040180806020018281038252602b815260200180612e73602b913960400191505060405180910390fd5b6112ad6000610b2e6118ab565b6112e85760405162461bcd60e51b815260040180806020018281038252602f815260200180612ec0602f913960400191505060405180910390fd5b604080516a4d494e5445525f524f4c4560a81b8152905190819003600b019020611319906113146118ab565b610b6e565b6b033b2e3c9fd0803ce800000061012d556101f9805460ff19166001179055565b604080516a5041555345525f524f4c4560a81b8152905190819003600b01902061136690610b2e6118ab565b6113a15760405162461bcd60e51b8152600401808060200182810382526034815260200180612f1f6034913960400191505060405180910390fd5b610e616123df565b60008281526065602052604081206113c7908363ffffffff61246d16565b9392505050565b60008281526065602052604081206113c7908363ffffffff61247916565b609b8054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610a3f5780601f10610a1457610100808354040283529160200191610a3f565b7f7c7c6cdb67a18743f49ec6fa9b35f50d52ed05cbed4cc592e13b44501c1a226781565b600081565b6000610a5e6114836118ab565b84610aec856040518060600160405280602581526020016130ff60259139609860006114ad6118ab565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff611b0116565b6000610a5e6114f16118ab565b848461199b565b604080517f5452414e534645525f415554484f52495a45525f524f4c4500000000000000008152905190819003601801902081565b6000818152606560205260408120610a629061248e565b604080516a4d494e5445525f524f4c4560a81b8152905190819003600b01902061157090610b2e6118ab565b6115ab5760405162461bcd60e51b8152600401808060200182810382526030815260200180612d9f6030913960400191505060405180910390fd5b60006115b63061121e565b1115610e6157610e61306115c93061121e565b611e84565b604080516a4d494e5445525f524f4c4560a81b8152905190819003600b01902081565b60008281526065602052604090206002015461160f90610b2e6118ab565b610bdc5760405162461bcd60e51b8152600401808060200182810382526030815260200180612eef6030913960400191505060405180910390fd5b7f158b0a9edf7a828aad02f63cd515c68ef2f50ba807396f6d12842833a159742981565b6001600160a01b03918216600090815260986020908152604080832093909416825291909152205490565b604080517f5452414e534645525f415554484f52495a45525f524f4c450000000000000000815290519081900360180190206116d5908a6113ce565b6117105760405162461bcd60e51b8152600401808060200182810382526057815260200180612f536057913960600191505060405180910390fd5b6117427f7c7c6cdb67a18743f49ec6fa9b35f50d52ed05cbed4cc592e13b44501c1a22678a8a8a8a8a8a8a8a8a612499565b505050505050505050565b604080516a5041555345525f524f4c4560a81b8152905190819003600b01902081565b6001600160a01b0391909116600090815261019460209081526040808320938352929052205460ff1690565b60006117a661232e565b905090565b6117b36118ab565b6001600160a01b0316886001600160a01b0316146118025760405162461bcd60e51b8152600401808060200182810382526021815260200180612df66021913960400191505060405180910390fd5b604080517f5452414e534645525f415554484f52495a45525f524f4c4500000000000000008152905190819003601801902061183e908a6113ce565b6118795760405162461bcd60e51b8152600401808060200182810382526057815260200180612f536057913960600191505060405180910390fd5b6117427fd099cc98ef71107a616c4f0f941f04c322d8e254fe26b3c6668db87aae413de88a8a8a8a8a8a8a8a8a612499565b3390565b6001600160a01b0383166118f45760405162461bcd60e51b81526004018080602001828103825260248152602001806130ba6024913960400191505060405180910390fd5b6001600160a01b0382166119395760405162461bcd60e51b8152600401808060200182810382526022815260200180612d4f6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260986020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166119e05760405162461bcd60e51b81526004018080602001828103825260258152602001806130956025913960400191505060405180910390fd5b6001600160a01b038216611a255760405162461bcd60e51b8152600401808060200182810382526023815260200180612cdb6023913960400191505060405180910390fd5b611a2d611c93565b611a7081604051806060016040528060268152602001612e17602691396001600160a01b038616600090815260976020526040902054919063ffffffff611b0116565b6001600160a01b038085166000908152609760205260408082209390935590841681522054611aa5908263ffffffff611c3916565b6001600160a01b0380841660008181526097602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115611b535760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611069578181015183820152602001611051565b505050900390565b6000828152606560205260409020611b79908263ffffffff61273216565b15610b7857611b866118ab565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152606560205260409020611be8908263ffffffff61274716565b15610b7857611bf56118ab565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b6000828201838110156113c7576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b611c9b610e61565b611ca3611215565b15610e615760405162461bcd60e51b81526004018080602001828103825260318152602001806131246031913960400191505060405180910390fd5b60c95460ff16611d36576040805162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604482015290519081900360640190fd5b60c9805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611d696118ab565b604080516001600160a01b039092168252519081900360200190a1565b6001600160a01b038216611de1576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b611ded6000838361275c565b609954611e00908263ffffffff611c3916565b6099556001600160a01b038216600090815260976020526040902054611e2c908263ffffffff611c3916565b6001600160a01b03831660008181526097602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b038216611ec95760405162461bcd60e51b81526004018080602001828103825260218152602001806130746021913960400191505060405180910390fd5b611ed582600083610fb9565b611f1881604051806060016040528060228152602001612d2d602291396001600160a01b038516600090815260976020526040902054919063ffffffff611b0116565b6001600160a01b038316600090815260976020526040902055609954611f44908263ffffffff61276716565b6099556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b303b1590565b600054610100900460ff1680611fab5750611fab611f8c565b80611fb9575060005460ff16155b611ff45760405162461bcd60e51b815260040180806020018281038252602e815260200180613046602e913960400191505060405180910390fd5b600054610100900460ff1615801561201f576000805460ff1961ff0019909116610100171660011790555b8015610ee5576000805461ff001916905550565b600054610100900460ff168061204c575061204c611f8c565b8061205a575060005460ff16155b6120955760405162461bcd60e51b815260040180806020018281038252602e815260200180613046602e913960400191505060405180910390fd5b600054610100900460ff161580156120c0576000805460ff1961ff0019909116610100171660011790555b82516120d390609a906020860190612c20565b5081516120e790609b906020850190612c20565b50609c805460ff191660121790558015610fb9576000805461ff0019169055505050565b600054610100900460ff16806121245750612124611f8c565b80612132575060005460ff16155b61216d5760405162461bcd60e51b815260040180806020018281038252602e815260200180613046602e913960400191505060405180910390fd5b600054610100900460ff16158015612198576000805460ff1961ff0019909116610100171660011790555b60c9805460ff191690558015610ee5576000805461ff001916905550565b600054610100900460ff16806121cf57506121cf611f8c565b806121dd575060005460ff16155b6122185760405162461bcd60e51b815260040180806020018281038252602e815260200180613046602e913960400191505060405180910390fd5b600054610100900460ff16158015612243576000805460ff1961ff0019909116610100171660011790555b61225060006113146118ab565b604080516a5041555345525f524f4c4560a81b8152905190819003600b01902061201f906113146118ab565b600054610100900460ff16806122955750612295611f8c565b806122a3575060005460ff16155b6122de5760405162461bcd60e51b815260040180806020018281038252602e815260200180613046602e913960400191505060405180910390fd5b600054610100900460ff16158015612309576000805460ff1961ff0019909116610100171660011790555b6b019d971e4fe8401e7400000061012d5561201f6123256118ab565b61012d54611d86565b60006117a66040518080612fcc60529139605201905060405180910390206123546127a9565b61235c6127b0565b6127b7565b604080517f19010000000000000000000000000000000000000000000000000000000000006020808301919091526022820194909452604280820193909352815180820390930183526062019052805191012090565b60008060006123c8878787876127fc565b915091506123d5816128ed565b5095945050505050565b60c95460ff1615612437576040805162461bcd60e51b815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b60c9805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611d696118ab565b60006113c78383612a5e565b60006113c7836001600160a01b038416612ac2565b6000610a6282612ada565b8542116124d75760405162461bcd60e51b8152600401808060200182810382526027815260200180612dcf6027913960400191505060405180910390fd5b8442106125155760405162461bcd60e51b81526004018080602001828103825260218152602001806130de6021913960400191505060405180910390fd5b6001600160a01b038916600090815261019460209081526040808320878452825291829020548251808401909352601e83527f454950333030393a20617574686f72697a6174696f6e206973207573656400009183019190915260ff16156125be5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611069578181015183820152602001611051565b5060408051602081018c90526001600160a01b03808c16828401528a1660608201526080810189905260a0810188905260c0810187905260e080820187905282518083039091018152610100909101909152600061261d61110461232e565b90508a6001600160a01b0316612635828787876123b7565b6001600160a01b0316146040518060400160405280601a81526020017f454950333030393a20696e76616c6964207369676e6174757265000000000000815250906126c15760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611069578181015183820152602001611051565b506001600160a01b038b166000818152610194602090815260408083208a8452909152808220805460ff19166001179055518892917f98de503528ee59b575ef0c0a2576a82497bfc029a5685b209e9ec333479b10a591a36127248b8b8b61199b565b505050505050505050505050565b60006113c7836001600160a01b038416612ade565b60006113c7836001600160a01b038416612b28565b610fb9838383612bee565b60006113c783836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611b01565b6101605490565b6101615490565b604080516020808201959095528082019390935260608301919091524660808301523060a0808401919091528151808403909101815260c09092019052805191012090565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561283357506000905060036128e4565b8460ff16601b1415801561284b57508460ff16601c14155b1561285c57506000905060046128e4565b60408051600080825260208083018085528a905260ff89168385015260608301889052608083018790529251909260019260a080820193601f1981019281900390910190855afa1580156128b4573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166128dd575060009150600190506128e4565b9150600090505b94509492505050565b60008160048111156128fb57fe5b141561290657610ee5565b600181600481111561291457fe5b1415612967576040805162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015290519081900360640190fd5b600281600481111561297557fe5b14156129c8576040805162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015290519081900360640190fd5b60038160048111156129d657fe5b1415612a135760405162461bcd60e51b8152600401808060200182810382526022815260200180612e9e6022913960400191505060405180910390fd5b6004816004811115612a2157fe5b1415610ee55760405162461bcd60e51b8152600401808060200182810382526022815260200180612faa6022913960400191505060405180910390fd5b81546000908210612aa05760405162461bcd60e51b8152600401808060200182810382526022815260200180612cb96022913960400191505060405180910390fd5b826000018281548110612aaf57fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b5490565b6000612aea8383612ac2565b612b2057508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610a62565b506000610a62565b60008181526001830160205260408120548015612be45783546000198083019190810190600090879083908110612b5b57fe5b9060005260206000200154905080876000018481548110612b7857fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080612ba857fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610a62565b6000915050610a62565b61012d54612c0a82612bfe610a68565b9063ffffffff611c3916565b1115612c1557600080fd5b610fb9838383610fb9565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10612c6157805160ff1916838001178555612c8e565b82800160010185558215612c8e579182015b82811115612c8e578251825591602001919060010190612c73565b50612c9a929150612c9e565b5090565b610a4791905b80821115612c9a5760008155600101612ca456fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e647345524332303a207472616e7366657220746f20746865207a65726f2061646472657373416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e7445524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a20496e73756666696369656e742062616c616e636520666f72206261746368207472616e73666572505245546f6b656e56333a204f6e6c79204d696e74657220726f6c652063616e2072756e2074686973206d6574686f64454950333030393a20617574686f72697a6174696f6e206973206e6f74207965742076616c6964454950333030393a2063616c6c6572206d7573742062652074686520706179656545524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63654d616e61676564456e68616e63656445524332303a206d75737420686176652070617573657220726f6c6520746f20756e7061757365505245546f6b656e56333a20436f6e747261637420697320616c726561647920696e697469616c697a656445434453413a20696e76616c6964207369676e6174757265202773272076616c7565505245546f6b656e56333a204f6e6c792041646d696e20726f6c652063616e2072756e2074686973206d6574686f64416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b654d616e61676564456e68616e63656445524332303a206d75737420686176652070617573657220726f6c6520746f2070617573655472616e73666572417574686f72697a61626c6545524332303a2066726f6d2061646472657373206973206e6f7420617574686f72697a656420666f72207472616e7366657257697468417574686f72697a6174696f6e45434453413a20696e76616c6964207369676e6174757265202776272076616c7565454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c75696e7432353620636861696e49642c6164647265737320766572696679696e67436f6e74726163742945524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a656445524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f2061646472657373454950333030393a20617574686f72697a6174696f6e206973206578706972656445524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f4d616e61676564456e68616e63656445524332303a20746f6b656e207472616e73666572207768696c6520706175736564416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a2646970667358221220bad2c516d2b9bc661bdb20f72660967b9ffc5aa513a9cf0ea4b927df7e16680764736f6c63430006020033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102ad5760003560e01c80638456cb591161017b578063ce746024116100d8578063e3ee160e1161008c578063e94a010211610071578063e94a010214610920578063ed24911d1461094c578063ef55bec614610954576102ad565b8063e3ee160e146108b9578063e63ab1e914610918576102ad565b8063d547741f116100bd578063d547741f14610857578063d916948714610883578063dd62ed3e1461088b576102ad565b8063ce74602414610847578063d53913931461084f576102ad565b8063a217fddf1161012f578063a9059cbb11610114578063a9059cbb146107f6578063b17123b214610822578063ca15c8731461082a576102ad565b8063a217fddf146107c2578063a457c2d7146107ca576102ad565b806391d148541161016057806391d148541461078657806395d89b41146107b2578063a0cc6a68146107ba576102ad565b80638456cb591461073f5780639010d07c14610747576102ad565b80633b3e672f116102295780635a049a70116101dd57806370a08231116101c257806370a08231146107095780637f2eecc31461072f5780638129fc1c14610737576102ad565b80635a049a70146106c05780635c975abb14610701576102ad565b806340c10f191161020e57806340c10f191461054a57806342966c68146105765780634cd88b7614610593576102ad565b80633b3e672f146104805780633f4ba83a14610542576102ad565b8063248a9ca311610280578063313ce56711610265578063313ce5671461040a57806336568abe146104285780633950935114610454576102ad565b8063248a9ca3146103bf5780632f2ff15d146103dc576102ad565b806306fdde03146102b2578063095ea7b31461032f57806318160ddd1461036f57806323b872dd14610389575b600080fd5b6102ba6109b3565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102f45781810151838201526020016102dc565b50505050905090810190601f1680156103215780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61035b6004803603604081101561034557600080fd5b506001600160a01b038135169060200135610a4a565b604080519115158252519081900360200190f35b610377610a68565b60408051918252519081900360200190f35b61035b6004803603606081101561039f57600080fd5b506001600160a01b03813581169160208101359091169060400135610a6e565b610377600480360360208110156103d557600080fd5b5035610afb565b610408600480360360408110156103f257600080fd5b50803590602001356001600160a01b0316610b10565b005b610412610b7c565b6040805160ff9092168252519081900360200190f35b6104086004803603604081101561043e57600080fd5b50803590602001356001600160a01b0316610b85565b61035b6004803603604081101561046a57600080fd5b506001600160a01b038135169060200135610be6565b61035b6004803603604081101561049657600080fd5b8101906020810181356401000000008111156104b157600080fd5b8201836020820111156104c357600080fd5b803590602001918460208302840111640100000000831117156104e557600080fd5b91939092909160208101903564010000000081111561050357600080fd5b82018360208201111561051557600080fd5b8035906020019184602083028401116401000000008311171561053757600080fd5b509092509050610c3a565b610408610df2565b6104086004803603604081101561056057600080fd5b506001600160a01b038135169060200135610e63565b6104086004803603602081101561058c57600080fd5b5035610ed4565b610408600480360360408110156105a957600080fd5b8101906020810181356401000000008111156105c457600080fd5b8201836020820111156105d657600080fd5b803590602001918460018302840111640100000000831117156105f857600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929594936020810193503591505064010000000081111561064b57600080fd5b82018360208201111561065d57600080fd5b8035906020019184600183028401116401000000008311171561067f57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610ee8945050505050565b610408600480360360a08110156106d657600080fd5b506001600160a01b038135169060208101359060ff6040820135169060608101359060800135610fbe565b61035b611215565b6103776004803603602081101561071f57600080fd5b50356001600160a01b031661121e565b610377611239565b61040861125d565b61040861133a565b61076a6004803603604081101561075d57600080fd5b50803590602001356113a9565b604080516001600160a01b039092168252519081900360200190f35b61035b6004803603604081101561079c57600080fd5b50803590602001356001600160a01b03166113ce565b6102ba6113ec565b61037761144d565b610377611471565b61035b600480360360408110156107e057600080fd5b506001600160a01b038135169060200135611476565b61035b6004803603604081101561080c57600080fd5b506001600160a01b0381351690602001356114e4565b6103776114f8565b6103776004803603602081101561084057600080fd5b503561152d565b610408611544565b6103776115ce565b6104086004803603604081101561086d57600080fd5b50803590602001356001600160a01b03166115f1565b61037761164a565b610377600480360360408110156108a157600080fd5b506001600160a01b038135811691602001351661166e565b61040860048036036101208110156108d057600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060808101359060a08101359060ff60c0820135169060e0810135906101000135611699565b61037761174d565b61035b6004803603604081101561093657600080fd5b506001600160a01b038135169060200135611770565b61037761179c565b610408600480360361012081101561096b57600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060808101359060a08101359060ff60c0820135169060e08101359061010001356117ab565b609a8054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610a3f5780601f10610a1457610100808354040283529160200191610a3f565b820191906000526020600020905b815481529060010190602001808311610a2257829003601f168201915b505050505090505b90565b6000610a5e610a576118ab565b84846118af565b5060015b92915050565b60995490565b6000610a7b84848461199b565b610af184610a876118ab565b610aec8560405180606001604052806028815260200161301e602891396001600160a01b038a16600090815260986020526040812090610ac56118ab565b6001600160a01b03168152602081019190915260400160002054919063ffffffff611b0116565b6118af565b5060019392505050565b60009081526065602052604090206002015490565b600082815260656020526040902060020154610b3390610b2e6118ab565b6113ce565b610b6e5760405162461bcd60e51b815260040180806020018281038252602f815260200180612cfe602f913960400191505060405180910390fd5b610b788282611b5b565b5050565b609c5460ff1690565b610b8d6118ab565b6001600160a01b0316816001600160a01b031614610bdc5760405162461bcd60e51b815260040180806020018281038252602f815260200180613155602f913960400191505060405180910390fd5b610b788282611bca565b6000610a5e610bf36118ab565b84610aec8560986000610c046118ab565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff611c3916565b6000838214610c4857600080fd5b610c50611c93565b6000610c5a6118ab565b6001600160a01b0381166000908152609760205260408120549192505b84811015610dcc576000868683818110610c8d57fe5b9050602002013590506000898984818110610ca457fe5b905060200201356001600160a01b0316905081841015610cf55760405162461bcd60e51b815260040180806020018281038252602e815260200180612d71602e913960400191505060405180910390fd5b6001600160a01b038116610d3a5760405162461bcd60e51b8152600401808060200182810382526023815260200180612cdb6023913960400191505060405180910390fd5b806001600160a01b0316856001600160a01b031614610d77576001600160a01b038116600090815260976020526040902080548301905592819003925b806001600160a01b0316856001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a35050600101610c77565b506001600160a01b03909116600090815260976020526040902055506001949350505050565b604080516a5041555345525f524f4c4560a81b8152905190819003600b019020610e1e90610b2e6118ab565b610e595760405162461bcd60e51b8152600401808060200182810382526036815260200180612e3d6036913960400191505060405180910390fd5b610e61611cdf565b565b604080516a4d494e5445525f524f4c4560a81b8152905190819003600b019020610e8f90610b2e6118ab565b610eca5760405162461bcd60e51b8152600401808060200182810382526030815260200180612d9f6030913960400191505060405180910390fd5b610b788282611d86565b610ee5610edf6118ab565b82611e84565b50565b600054610100900460ff1680610f015750610f01611f8c565b80610f0f575060005460ff16155b610f4a5760405162461bcd60e51b815260040180806020018281038252602e815260200180613046602e913960400191505060405180910390fd5b600054610100900460ff16158015610f75576000805460ff1961ff0019909116610100171660011790555b610f7d611f92565b610f85611f92565b610f8f8383612033565b610f9761210b565b610f9f6121b6565b610fa761227c565b8015610fb9576000805461ff00191690555b505050565b6001600160a01b038516600090815261019460209081526040808320878452825291829020548251808401909352601e83527f454950333030393a20617574686f72697a6174696f6e206973207573656400009183019190915260ff16156110a45760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611069578181015183820152602001611051565b50505050905090810190601f1680156110965780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50604080517f158b0a9edf7a828aad02f63cd515c68ef2f50ba807396f6d12842833a159742960208201526001600160a01b038716818301526060818101879052825180830390910181526080909101909152600061111061110461232e565b83516020850120612361565b9050866001600160a01b0316611128828787876123b7565b6001600160a01b0316146040518060400160405280601a81526020017f454950333030393a20696e76616c6964207369676e6174757265000000000000815250906111b45760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611069578181015183820152602001611051565b506001600160a01b0387166000818152610194602090815260408083208a8452909152808220805460ff19166001179055518892917f1cdd46ff242716cdaa72d159d339a485b3438398348d68f09d7c8c0a59353d8191a350505050505050565b60c95460ff1690565b6001600160a01b031660009081526097602052604090205490565b7fd099cc98ef71107a616c4f0f941f04c322d8e254fe26b3c6668db87aae413de881565b6101f95460ff16156112a05760405162461bcd60e51b815260040180806020018281038252602b815260200180612e73602b913960400191505060405180910390fd5b6112ad6000610b2e6118ab565b6112e85760405162461bcd60e51b815260040180806020018281038252602f815260200180612ec0602f913960400191505060405180910390fd5b604080516a4d494e5445525f524f4c4560a81b8152905190819003600b019020611319906113146118ab565b610b6e565b6b033b2e3c9fd0803ce800000061012d556101f9805460ff19166001179055565b604080516a5041555345525f524f4c4560a81b8152905190819003600b01902061136690610b2e6118ab565b6113a15760405162461bcd60e51b8152600401808060200182810382526034815260200180612f1f6034913960400191505060405180910390fd5b610e616123df565b60008281526065602052604081206113c7908363ffffffff61246d16565b9392505050565b60008281526065602052604081206113c7908363ffffffff61247916565b609b8054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610a3f5780601f10610a1457610100808354040283529160200191610a3f565b7f7c7c6cdb67a18743f49ec6fa9b35f50d52ed05cbed4cc592e13b44501c1a226781565b600081565b6000610a5e6114836118ab565b84610aec856040518060600160405280602581526020016130ff60259139609860006114ad6118ab565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff611b0116565b6000610a5e6114f16118ab565b848461199b565b604080517f5452414e534645525f415554484f52495a45525f524f4c4500000000000000008152905190819003601801902081565b6000818152606560205260408120610a629061248e565b604080516a4d494e5445525f524f4c4560a81b8152905190819003600b01902061157090610b2e6118ab565b6115ab5760405162461bcd60e51b8152600401808060200182810382526030815260200180612d9f6030913960400191505060405180910390fd5b60006115b63061121e565b1115610e6157610e61306115c93061121e565b611e84565b604080516a4d494e5445525f524f4c4560a81b8152905190819003600b01902081565b60008281526065602052604090206002015461160f90610b2e6118ab565b610bdc5760405162461bcd60e51b8152600401808060200182810382526030815260200180612eef6030913960400191505060405180910390fd5b7f158b0a9edf7a828aad02f63cd515c68ef2f50ba807396f6d12842833a159742981565b6001600160a01b03918216600090815260986020908152604080832093909416825291909152205490565b604080517f5452414e534645525f415554484f52495a45525f524f4c450000000000000000815290519081900360180190206116d5908a6113ce565b6117105760405162461bcd60e51b8152600401808060200182810382526057815260200180612f536057913960600191505060405180910390fd5b6117427f7c7c6cdb67a18743f49ec6fa9b35f50d52ed05cbed4cc592e13b44501c1a22678a8a8a8a8a8a8a8a8a612499565b505050505050505050565b604080516a5041555345525f524f4c4560a81b8152905190819003600b01902081565b6001600160a01b0391909116600090815261019460209081526040808320938352929052205460ff1690565b60006117a661232e565b905090565b6117b36118ab565b6001600160a01b0316886001600160a01b0316146118025760405162461bcd60e51b8152600401808060200182810382526021815260200180612df66021913960400191505060405180910390fd5b604080517f5452414e534645525f415554484f52495a45525f524f4c4500000000000000008152905190819003601801902061183e908a6113ce565b6118795760405162461bcd60e51b8152600401808060200182810382526057815260200180612f536057913960600191505060405180910390fd5b6117427fd099cc98ef71107a616c4f0f941f04c322d8e254fe26b3c6668db87aae413de88a8a8a8a8a8a8a8a8a612499565b3390565b6001600160a01b0383166118f45760405162461bcd60e51b81526004018080602001828103825260248152602001806130ba6024913960400191505060405180910390fd5b6001600160a01b0382166119395760405162461bcd60e51b8152600401808060200182810382526022815260200180612d4f6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260986020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166119e05760405162461bcd60e51b81526004018080602001828103825260258152602001806130956025913960400191505060405180910390fd5b6001600160a01b038216611a255760405162461bcd60e51b8152600401808060200182810382526023815260200180612cdb6023913960400191505060405180910390fd5b611a2d611c93565b611a7081604051806060016040528060268152602001612e17602691396001600160a01b038616600090815260976020526040902054919063ffffffff611b0116565b6001600160a01b038085166000908152609760205260408082209390935590841681522054611aa5908263ffffffff611c3916565b6001600160a01b0380841660008181526097602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115611b535760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611069578181015183820152602001611051565b505050900390565b6000828152606560205260409020611b79908263ffffffff61273216565b15610b7857611b866118ab565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152606560205260409020611be8908263ffffffff61274716565b15610b7857611bf56118ab565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b6000828201838110156113c7576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b611c9b610e61565b611ca3611215565b15610e615760405162461bcd60e51b81526004018080602001828103825260318152602001806131246031913960400191505060405180910390fd5b60c95460ff16611d36576040805162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604482015290519081900360640190fd5b60c9805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611d696118ab565b604080516001600160a01b039092168252519081900360200190a1565b6001600160a01b038216611de1576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b611ded6000838361275c565b609954611e00908263ffffffff611c3916565b6099556001600160a01b038216600090815260976020526040902054611e2c908263ffffffff611c3916565b6001600160a01b03831660008181526097602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b038216611ec95760405162461bcd60e51b81526004018080602001828103825260218152602001806130746021913960400191505060405180910390fd5b611ed582600083610fb9565b611f1881604051806060016040528060228152602001612d2d602291396001600160a01b038516600090815260976020526040902054919063ffffffff611b0116565b6001600160a01b038316600090815260976020526040902055609954611f44908263ffffffff61276716565b6099556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b303b1590565b600054610100900460ff1680611fab5750611fab611f8c565b80611fb9575060005460ff16155b611ff45760405162461bcd60e51b815260040180806020018281038252602e815260200180613046602e913960400191505060405180910390fd5b600054610100900460ff1615801561201f576000805460ff1961ff0019909116610100171660011790555b8015610ee5576000805461ff001916905550565b600054610100900460ff168061204c575061204c611f8c565b8061205a575060005460ff16155b6120955760405162461bcd60e51b815260040180806020018281038252602e815260200180613046602e913960400191505060405180910390fd5b600054610100900460ff161580156120c0576000805460ff1961ff0019909116610100171660011790555b82516120d390609a906020860190612c20565b5081516120e790609b906020850190612c20565b50609c805460ff191660121790558015610fb9576000805461ff0019169055505050565b600054610100900460ff16806121245750612124611f8c565b80612132575060005460ff16155b61216d5760405162461bcd60e51b815260040180806020018281038252602e815260200180613046602e913960400191505060405180910390fd5b600054610100900460ff16158015612198576000805460ff1961ff0019909116610100171660011790555b60c9805460ff191690558015610ee5576000805461ff001916905550565b600054610100900460ff16806121cf57506121cf611f8c565b806121dd575060005460ff16155b6122185760405162461bcd60e51b815260040180806020018281038252602e815260200180613046602e913960400191505060405180910390fd5b600054610100900460ff16158015612243576000805460ff1961ff0019909116610100171660011790555b61225060006113146118ab565b604080516a5041555345525f524f4c4560a81b8152905190819003600b01902061201f906113146118ab565b600054610100900460ff16806122955750612295611f8c565b806122a3575060005460ff16155b6122de5760405162461bcd60e51b815260040180806020018281038252602e815260200180613046602e913960400191505060405180910390fd5b600054610100900460ff16158015612309576000805460ff1961ff0019909116610100171660011790555b6b019d971e4fe8401e7400000061012d5561201f6123256118ab565b61012d54611d86565b60006117a66040518080612fcc60529139605201905060405180910390206123546127a9565b61235c6127b0565b6127b7565b604080517f19010000000000000000000000000000000000000000000000000000000000006020808301919091526022820194909452604280820193909352815180820390930183526062019052805191012090565b60008060006123c8878787876127fc565b915091506123d5816128ed565b5095945050505050565b60c95460ff1615612437576040805162461bcd60e51b815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b60c9805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611d696118ab565b60006113c78383612a5e565b60006113c7836001600160a01b038416612ac2565b6000610a6282612ada565b8542116124d75760405162461bcd60e51b8152600401808060200182810382526027815260200180612dcf6027913960400191505060405180910390fd5b8442106125155760405162461bcd60e51b81526004018080602001828103825260218152602001806130de6021913960400191505060405180910390fd5b6001600160a01b038916600090815261019460209081526040808320878452825291829020548251808401909352601e83527f454950333030393a20617574686f72697a6174696f6e206973207573656400009183019190915260ff16156125be5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611069578181015183820152602001611051565b5060408051602081018c90526001600160a01b03808c16828401528a1660608201526080810189905260a0810188905260c0810187905260e080820187905282518083039091018152610100909101909152600061261d61110461232e565b90508a6001600160a01b0316612635828787876123b7565b6001600160a01b0316146040518060400160405280601a81526020017f454950333030393a20696e76616c6964207369676e6174757265000000000000815250906126c15760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611069578181015183820152602001611051565b506001600160a01b038b166000818152610194602090815260408083208a8452909152808220805460ff19166001179055518892917f98de503528ee59b575ef0c0a2576a82497bfc029a5685b209e9ec333479b10a591a36127248b8b8b61199b565b505050505050505050505050565b60006113c7836001600160a01b038416612ade565b60006113c7836001600160a01b038416612b28565b610fb9838383612bee565b60006113c783836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611b01565b6101605490565b6101615490565b604080516020808201959095528082019390935260608301919091524660808301523060a0808401919091528151808403909101815260c09092019052805191012090565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561283357506000905060036128e4565b8460ff16601b1415801561284b57508460ff16601c14155b1561285c57506000905060046128e4565b60408051600080825260208083018085528a905260ff89168385015260608301889052608083018790529251909260019260a080820193601f1981019281900390910190855afa1580156128b4573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166128dd575060009150600190506128e4565b9150600090505b94509492505050565b60008160048111156128fb57fe5b141561290657610ee5565b600181600481111561291457fe5b1415612967576040805162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015290519081900360640190fd5b600281600481111561297557fe5b14156129c8576040805162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015290519081900360640190fd5b60038160048111156129d657fe5b1415612a135760405162461bcd60e51b8152600401808060200182810382526022815260200180612e9e6022913960400191505060405180910390fd5b6004816004811115612a2157fe5b1415610ee55760405162461bcd60e51b8152600401808060200182810382526022815260200180612faa6022913960400191505060405180910390fd5b81546000908210612aa05760405162461bcd60e51b8152600401808060200182810382526022815260200180612cb96022913960400191505060405180910390fd5b826000018281548110612aaf57fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b5490565b6000612aea8383612ac2565b612b2057508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610a62565b506000610a62565b60008181526001830160205260408120548015612be45783546000198083019190810190600090879083908110612b5b57fe5b9060005260206000200154905080876000018481548110612b7857fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080612ba857fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610a62565b6000915050610a62565b61012d54612c0a82612bfe610a68565b9063ffffffff611c3916565b1115612c1557600080fd5b610fb9838383610fb9565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10612c6157805160ff1916838001178555612c8e565b82800160010185558215612c8e579182015b82811115612c8e578251825591602001919060010190612c73565b50612c9a929150612c9e565b5090565b610a4791905b80821115612c9a5760008155600101612ca456fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e647345524332303a207472616e7366657220746f20746865207a65726f2061646472657373416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e7445524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a20496e73756666696369656e742062616c616e636520666f72206261746368207472616e73666572505245546f6b656e56333a204f6e6c79204d696e74657220726f6c652063616e2072756e2074686973206d6574686f64454950333030393a20617574686f72697a6174696f6e206973206e6f74207965742076616c6964454950333030393a2063616c6c6572206d7573742062652074686520706179656545524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63654d616e61676564456e68616e63656445524332303a206d75737420686176652070617573657220726f6c6520746f20756e7061757365505245546f6b656e56333a20436f6e747261637420697320616c726561647920696e697469616c697a656445434453413a20696e76616c6964207369676e6174757265202773272076616c7565505245546f6b656e56333a204f6e6c792041646d696e20726f6c652063616e2072756e2074686973206d6574686f64416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b654d616e61676564456e68616e63656445524332303a206d75737420686176652070617573657220726f6c6520746f2070617573655472616e73666572417574686f72697a61626c6545524332303a2066726f6d2061646472657373206973206e6f7420617574686f72697a656420666f72207472616e7366657257697468417574686f72697a6174696f6e45434453413a20696e76616c6964207369676e6174757265202776272076616c7565454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c75696e7432353620636861696e49642c6164647265737320766572696679696e67436f6e74726163742945524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a656445524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f2061646472657373454950333030393a20617574686f72697a6174696f6e206973206578706972656445524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f4d616e61676564456e68616e63656445524332303a20746f6b656e207472616e73666572207768696c6520706175736564416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a2646970667358221220bad2c516d2b9bc661bdb20f72660967b9ffc5aa513a9cf0ea4b927df7e16680764736f6c63430006020033
Deployed Bytecode Sourcemap
74728:1634:0:-:0;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;74728:1634:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32171:83;;;:::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;32171:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34277:169;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;34277:169:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;33246:100;;;:::i;:::-;;;;;;;;;;;;;;;;34920:321;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;34920:321:0;;;;;;;;;;;;;;;;;:::i;23794:114::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;23794:114:0;;:::i;24170:227::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;24170:227:0;;;;;;-1:-1:-1;;;;;24170:227:0;;:::i;:::-;;33098:83;;;:::i;:::-;;;;;;;;;;;;;;;;;;;25379:209;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;25379:209:0;;;;;;-1:-1:-1;;;;;25379:209:0;;:::i;35650:218::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;35650:218:0;;;;;;;;:::i;42068:914::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;42068:914:0;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;42068:914:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;42068:914: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;42068:914:0;;;;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;42068:914:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;42068:914: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;-1:-1;42068:914:0;;-1:-1:-1;42068:914:0;-1:-1:-1;42068:914:0;:::i;46846:167::-;;;:::i;75449:194::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;75449:194:0;;;;;;;;:::i;75838:89::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;75838:89:0;;:::i;47703:343::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;47703:343:0;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;47703:343:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;47703:343:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;47703:343:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;47703:343:0;;;;;;;;-1:-1:-1;47703:343:0;;-1:-1:-1;;21:11;5:28;;2:2;;;46:1;43;36:12;2:2;47703:343:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;47703:343:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;47703:343:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;47703:343:0;;-1:-1:-1;47703:343:0;;-1:-1:-1;;;;;47703:343:0:i;71805:817::-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;;71805:817:0;;;;;;;;;;;;;;;;;;;;;;;;;:::i;44340:78::-;;;:::i;33409:119::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;33409:119:0;-1:-1:-1;;;;;33409:119:0;;:::i;67198:137::-;;;:::i;74880:351::-;;;:::i;46467:161::-;;;:::i;23467:138::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;23467:138:0;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;23467:138:0;;;;;;;;;;;;;;22428:139;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;22428:139:0;;;;;;-1:-1:-1;;;;;22428:139:0;;:::i;32373:87::-;;;:::i;66913:138::-;;;:::i;21596:49::-;;;:::i;36371:269::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;36371:269:0;;;;;;;;:::i;33741:175::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;33741:175:0;;;;;;;;:::i;65835:88::-;;;:::i;22741:127::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;22741:127:0;;:::i;75935:422::-;;;:::i;74769:62::-;;;:::i;24642:230::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;24642:230:0;;;;;;-1:-1:-1;;;;;24642:230:0;;:::i;67419:131::-;;;:::i;33979:151::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;33979:151:0;;;;;;;;;;:::i;69226:692::-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;;69226:692:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;45659:62::-;;;:::i;68452:189::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;68452:189:0;;;;;;;;:::i;66470:107::-;;;:::i;70711:767::-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;;70711:767:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;32171:83::-;32241:5;32234:12;;;;;;;;-1:-1:-1;;32234:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32208:13;;32234:12;;32241:5;;32234:12;;32241:5;32234:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32171:83;;:::o;34277:169::-;34360:4;34377:39;34386:12;:10;:12::i;:::-;34400:7;34409:6;34377:8;:39::i;:::-;-1:-1:-1;34434:4:0;34277:169;;;;;:::o;33246:100::-;33326:12;;33246:100;:::o;34920:321::-;35026:4;35043:36;35053:6;35061:9;35072:6;35043:9;:36::i;:::-;35090:121;35099:6;35107:12;:10;:12::i;:::-;35121:89;35159:6;35121:89;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;35121:19:0;;;;;;:11;:19;;;;;;35141:12;:10;:12::i;:::-;-1:-1:-1;;;;;35121:33:0;;;;;;;;;;;;-1:-1:-1;35121:33:0;;;:89;;:37;:89;:::i;:::-;35090:8;:121::i;:::-;-1:-1:-1;35229:4:0;34920:321;;;;;:::o;23794:114::-;23851:7;23878:12;;;:6;:12;;;;;:22;;;;23794:114::o;24170:227::-;24262:12;;;;:6;:12;;;;;:22;;;24254:45;;24286:12;:10;:12::i;:::-;24254:7;:45::i;:::-;24246:105;;;;-1:-1:-1;;;24246:105:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24364:25;24375:4;24381:7;24364:10;:25::i;:::-;24170:227;;:::o;33098:83::-;33164:9;;;;33098:83;:::o;25379:209::-;25477:12;:10;:12::i;:::-;-1:-1:-1;;;;;25466:23:0;:7;-1:-1:-1;;;;;25466:23:0;;25458:83;;;;-1:-1:-1;;;25458:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25554:26;25566:4;25572:7;25554:11;:26::i;35650:218::-;35738:4;35755:83;35764:12;:10;:12::i;:::-;35778:7;35787:50;35826:10;35787:11;:25;35799:12;:10;:12::i;:::-;-1:-1:-1;;;;;35787:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;35787:25:0;;;:34;;;;;;;;;;;:50;:38;:50;:::i;42068:914::-;42176:4;42201:35;;;42193:44;;;;;;42248:27;:25;:27::i;:::-;42288:14;42305:12;:10;:12::i;:::-;-1:-1:-1;;;;;42352:17:0;;42328:21;42352:17;;;:9;:17;;;;;;42288:29;;-1:-1:-1;42380:529:0;42397:18;;;42380:529;;;42437:11;42451:7;;42459:1;42451:10;;;;;;;;;;;;;42437:24;;42476:17;42496:10;;42507:1;42496:13;;;;;;;;;;;;;-1:-1:-1;;;;;42496:13:0;42476:33;;42549:6;42532:13;:23;;42524:82;;;;-1:-1:-1;;;42524:82:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;42629:23:0;;42621:71;;;;-1:-1:-1;;;42621:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42720:9;-1:-1:-1;;;;;42710:19:0;:6;-1:-1:-1;;;;;42710:19:0;;42707:145;;-1:-1:-1;;;;;42806:20:0;;;;;;:9;:20;;;;;:30;;;;;;42765:22;;;;;42707:145;42879:9;-1:-1:-1;;;;;42862:35:0;42871:6;-1:-1:-1;;;;;42862:35:0;;42890:6;42862:35;;;;;;;;;;;;;;;;;;-1:-1:-1;;42417:3:0;;42380:529;;;-1:-1:-1;;;;;;42919:17:0;;;;;;;:9;:17;;;;;:33;-1:-1:-1;42970:4:0;42068:914;;;;;;:::o;46846:167::-;45697:24;;;-1:-1:-1;;;45697:24:0;;;;;;;;;;;;46891:34;;46912:12;:10;:12::i;46891:34::-;46883:101;;;;-1:-1:-1;;;46883:101:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46995:10;:8;:10::i;:::-;46846:167::o;75449:194::-;74807:24;;;-1:-1:-1;;;74807:24:0;;;;;;;;;;;;75522:34;;75543:12;:10;:12::i;75522:34::-;75514:95;;;;-1:-1:-1;;;75514:95:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;75618:17;75624:2;75628:6;75618:5;:17::i;75838:89::-;75892:27;75898:12;:10;:12::i;:::-;75912:6;75892:5;:27::i;:::-;75838:89;:::o;47703:343::-;1136:12;;;;;;;;:31;;;1152:15;:13;:15::i;:::-;1136:47;;;-1:-1:-1;1172:11:0;;;;1171:12;1136:47;1128:106;;;;-1:-1:-1;;;1128:106:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1243:19;1266:12;;;;;;1265:13;1285:83;;;;1314:12;:19;;-1:-1:-1;;;;1314:19:0;;;;;1342:18;1329:4;1342:18;;;1285:83;47795:26:::1;:24;:26::i;:::-;47832:32;:30;:32::i;:::-;47875:36;47898:4;47904:6;47875:22;:36::i;:::-;47922:27;:25;:27::i;:::-;47960:39;:37;:39::i;:::-;48010:27;:25;:27::i;:::-;1390:14:::0;1386:57;;;1430:5;1415:20;;-1:-1:-1;;1415:20:0;;;1386:57;47703:343;;;:::o;71805:817::-;-1:-1:-1;;;;;71995:32:0;;;;;;:20;:32;;;;;;;;:39;;;;;;;;;;72049:25;;;;;;;;;;;;;;;;;;;71995:39;;71994:40;71972:113;;;;-1:-1:-1;;;71972:113: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;71972:113:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;72118:110:0;;;67484:66;72118:110;;;;-1:-1:-1;;;;;72118:110:0;;;;;;72098:17;72118:110;;;;;;;;26:21:-1;;;22:32;;;6:49;;72118:110:0;;;;;;;72143:29;72273:71;72306:20;:18;:20::i;:::-;72328:15;;;;;;72273:32;:71::i;:::-;72249:95;;72439:10;-1:-1:-1;;;;;72387:62:0;:48;72412:13;72427:1;72430;72433;72387:24;:48::i;:::-;-1:-1:-1;;;;;72387:62:0;;72464:24;;;;;;;;;;;;;;;;;72365:134;;;;;-1:-1:-1;;;72365:134:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;72365:134:0;-1:-1:-1;;;;;;72512:32:0;;;;;;:20;:32;;;;;;;;:39;;;;;;;;;:46;;-1:-1:-1;;72512:46:0;72554:4;72512:46;;;72574:40;72545:5;;72512:32;72574:40;;;71805:817;;;;;;;:::o;44340:78::-;44403:7;;;;44340:78;:::o;33409:119::-;-1:-1:-1;;;;;33502:18:0;33475:7;33502:18;;;:9;:18;;;;;;;33409:119::o;67198:137::-;67269:66;67198:137;:::o;74880:351::-;74937:14;;;;74936:15;74927:72;;;;-1:-1:-1;;;74927:72:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;75016:41;21641:4;75044:12;:10;:12::i;75016:41::-;75008:101;;;;-1:-1:-1;;;75008:101:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;74807:24;;;-1:-1:-1;;;74807:24:0;;;;;;;;;;;;75118:37;;75142:12;:10;:12::i;:::-;75118:10;:37::i;:::-;75177:13;75164:10;:26;75199:14;:21;;-1:-1:-1;;75199:21:0;75216:4;75199:21;;;74880:351::o;46467:161::-;45697:24;;;-1:-1:-1;;;45697:24:0;;;;;;;;;;;;46510:34;;46531:12;:10;:12::i;46510:34::-;46502:99;;;;-1:-1:-1;;;46502:99:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46612:8;:6;:8::i;23467:138::-;23540:7;23567:12;;;:6;:12;;;;;:30;;23591:5;23567:30;:23;:30;:::i;:::-;23560:37;23467:138;-1:-1:-1;;;23467:138:0:o;22428:139::-;22497:4;22521:12;;;:6;:12;;;;;:38;;22551:7;22521:38;:29;:38;:::i;32373:87::-;32445:7;32438:14;;;;;;;;-1:-1:-1;;32438:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32412:13;;32438:14;;32445:7;;32438:14;;32445:7;32438:14;;;;;;;;;;;;;;;;;;;;;;;;66913:138;66985:66;66913:138;:::o;21596:49::-;21641:4;21596:49;:::o;36371:269::-;36464:4;36481:129;36490:12;:10;:12::i;:::-;36504:7;36513:96;36552:15;36513:96;;;;;;;;;;;;;;;;;:11;:25;36525:12;:10;:12::i;:::-;-1:-1:-1;;;;;36513:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;36513:25:0;;;:34;;;;;;;;;;;:96;;:38;:96;:::i;33741:175::-;33827:4;33844:42;33854:12;:10;:12::i;:::-;33868:9;33879:6;33844:9;:42::i;65835:88::-;65886:37;;;;;;;;;;;;;;;;65835:88;:::o;22741:127::-;22804:7;22831:12;;;:6;:12;;;;;:29;;:27;:29::i;75935:422::-;74807:24;;;-1:-1:-1;;;74807:24:0;;;;;;;;;;;;75985:34;;76006:12;:10;:12::i;75985:34::-;75977:95;;;;-1:-1:-1;;;75977:95:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;76280:1;76253:24;76271:4;76253:9;:24::i;:::-;:28;76250:100;;;76294:46;76308:4;76315:24;76333:4;76315:9;:24::i;:::-;76294:5;:46::i;74769:62::-;74807:24;;;-1:-1:-1;;;74807:24:0;;;;;;;;;;;;74769:62;:::o;24642:230::-;24735:12;;;;:6;:12;;;;;:22;;;24727:45;;24759:12;:10;:12::i;24727:45::-;24719:106;;;;-1:-1:-1;;;24719:106:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;67419:131;67484:66;67419:131;:::o;33979:151::-;-1:-1:-1;;;;;34095:18:0;;;34068:7;34095:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;33979:151::o;69226:692::-;65886:37;;;;;;;;;;;;;;;;69505:39;;69539:4;69505:7;:39::i;:::-;69497:139;;;;-1:-1:-1;;;69497:139:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;69647:263;66985:66;69739:4;69758:2;69775:5;69795:10;69820:11;69846:5;69866:1;69882;69898;69647:26;:263::i;:::-;69226:692;;;;;;;;;:::o;45659:62::-;45697:24;;;-1:-1:-1;;;45697:24:0;;;;;;;;;;;;45659:62;:::o;68452:189::-;-1:-1:-1;;;;;68594:32:0;;;;68565:4;68594:32;;;:20;:32;;;;;;;;:39;;;;;;;;;;;68452:189::o;66470:107::-;66522:7;66549:20;:18;:20::i;:::-;66542:27;;66470:107;:::o;70711:767::-;70995:12;:10;:12::i;:::-;-1:-1:-1;;;;;70989:18:0;:2;-1:-1:-1;;;;;70989:18:0;;70981:64;;;;-1:-1:-1;;;70981:64:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;65886:37;;;;;;;;;;;;;;;;71064:39;;71098:4;71064:7;:39::i;:::-;71056:139;;;;-1:-1:-1;;;71056:139:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;71208:262;67269:66;71299:4;71318:2;71335:5;71355:10;71380:11;71406:5;71426:1;71442;71458;71208:26;:262::i;19409:106::-;19497:10;19409:106;:::o;37080:346::-;-1:-1:-1;;;;;37182:19:0;;37174:68;;;;-1:-1:-1;;;37174:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;37261:21:0;;37253:68;;;;-1:-1:-1;;;37253:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;37334:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;37386:32;;;;;;;;;;;;;;;;;37080:346;;;:::o;40817:519::-;-1:-1:-1;;;;;40923:20:0;;40915:70;;;;-1:-1:-1;;;40915:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;41004:23:0;;40996:71;;;;-1:-1:-1;;;40996:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41080:27;:25;:27::i;:::-;41140:71;41162:6;41140:71;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;41140:17:0;;;;;;:9;:17;;;;;;;:71;;:21;:71;:::i;:::-;-1:-1:-1;;;;;41120:17:0;;;;;;;:9;:17;;;;;;:91;;;;41245:20;;;;;;;:32;;41270:6;41245:32;:24;:32;:::i;:::-;-1:-1:-1;;;;;41222:20:0;;;;;;;:9;:20;;;;;;;;;:55;;;;41293:35;;;;;;;41222:20;;41293:35;;;;;;;;;;;;;40817:519;;;:::o;3987:192::-;4073:7;4109:12;4101:6;;;;4093:29;;;;-1:-1:-1;;;4093:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;4093:29:0;-1:-1:-1;;;4145:5:0;;;3987:192::o;26499:188::-;26573:12;;;;:6;:12;;;;;:33;;26598:7;26573:33;:24;:33;:::i;:::-;26569:111;;;26655:12;:10;:12::i;:::-;-1:-1:-1;;;;;26628:40:0;26646:7;-1:-1:-1;;;;;26628:40:0;26640:4;26628:40;;;;;;;;;;26499:188;;:::o;26695:192::-;26770:12;;;;:6;:12;;;;;:36;;26798:7;26770:36;:27;:36;:::i;:::-;26766:114;;;26855:12;:10;:12::i;:::-;-1:-1:-1;;;;;26828:40:0;26846:7;-1:-1:-1;;;;;26828:40:0;26840:4;26828:40;;;;;;;;;;26695:192;;:::o;3100:181::-;3158:7;3190:5;;;3214:6;;;;3206:46;;;;;-1:-1:-1;;;3206:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;47190:197;47264:33;:31;:33::i;:::-;47317:8;:6;:8::i;:::-;47316:9;47308:71;;;;-1:-1:-1;;;47308:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45073:120;44776:7;;;;44768:40;;;;;-1:-1:-1;;;44768:40:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;45132:7:::1;:15:::0;;-1:-1:-1;;45132:15:0::1;::::0;;45163:22:::1;45172:12;:10;:12::i;:::-;45163:22;::::0;;-1:-1:-1;;;;;45163:22:0;;::::1;::::0;;;;;;;::::1;::::0;;::::1;45073:120::o:0;39217:369::-;-1:-1:-1;;;;;39301:21:0;;39293:65;;;;;-1:-1:-1;;;39293:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;39371:40;39391:1;39395:7;39404:6;39371:11;:40::i;:::-;39439:12;;:24;;39456:6;39439:24;:16;:24;:::i;:::-;39424:12;:39;-1:-1:-1;;;;;39495:18:0;;;;;;:9;:18;;;;;;:30;;39518:6;39495:30;:22;:30;:::i;:::-;-1:-1:-1;;;;;39474:18:0;;;;;;:9;:18;;;;;;;;:51;;;;39541:37;;;;;;;39474:18;;;;39541:37;;;;;;;;;;39217:369;;:::o;39918:409::-;-1:-1:-1;;;;;40002:21:0;;39994:67;;;;-1:-1:-1;;;39994:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40074:40;40086:7;40103:1;40107:6;40074:11;:40::i;:::-;40148:68;40171:6;40148:68;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;40148:18:0;;;;;;:9;:18;;;;;;;:68;;:22;:68;:::i;:::-;-1:-1:-1;;;;;40127:18:0;;;;;;:9;:18;;;;;:89;40242:12;;:24;;40259:6;40242:24;:16;:24;:::i;:::-;40227:12;:39;40282:37;;;;;;;;40308:1;;-1:-1:-1;;;;;40282:37:0;;;;;;;;;;;;39918:409;;:::o;1537:508::-;1954:4;2000:17;2032:7;1537:508;:::o;19330:69::-;1136:12;;;;;;;;:31;;;1152:15;:13;:15::i;:::-;1136:47;;;-1:-1:-1;1172:11:0;;;;1171:12;1136:47;1128:106;;;;-1:-1:-1;;;1128:106:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1243:19;1266:12;;;;;;1265:13;1285:83;;;;1314:12;:19;;-1:-1:-1;;;;1314:19:0;;;;;1342:18;1329:4;1342:18;;;1285:83;1390:14;1386:57;;;1430:5;1415:20;;-1:-1:-1;;1415:20:0;;;19330:69;:::o;31923:178::-;1136:12;;;;;;;;:31;;;1152:15;:13;:15::i;:::-;1136:47;;;-1:-1:-1;1172:11:0;;;;1171:12;1136:47;1128:106;;;;-1:-1:-1;;;1128:106:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1243:19;1266:12;;;;;;1265:13;1285:83;;;;1314:12;:19;;-1:-1:-1;;;;1314:19:0;;;;;1342:18;1329:4;1342:18;;;1285:83;32029:12;;::::1;::::0;:5:::1;::::0;:12:::1;::::0;::::1;::::0;::::1;:::i;:::-;-1:-1:-1::0;32052:16:0;;::::1;::::0;:7:::1;::::0;:16:::1;::::0;::::1;::::0;::::1;:::i;:::-;-1:-1:-1::0;32079:9:0::1;:14:::0;;-1:-1:-1;;32079:14:0::1;32091:2;32079:14;::::0;;1386:57;;;;1430:5;1415:20;;-1:-1:-1;;1415:20:0;;;31923:178;;;:::o;44140:98::-;1136:12;;;;;;;;:31;;;1152:15;:13;:15::i;:::-;1136:47;;;-1:-1:-1;1172:11:0;;;;1171:12;1136:47;1128:106;;;;-1:-1:-1;;;1128:106:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1243:19;1266:12;;;;;;1265:13;1285:83;;;;1314:12;:19;;-1:-1:-1;;;;1314:19:0;;;;;1342:18;1329:4;1342:18;;;1285:83;44213:7:::1;:15:::0;;-1:-1:-1;;44213:15:0::1;::::0;;1386:57;;;;1430:5;1415:20;;-1:-1:-1;;1415:20:0;;;44140:98;:::o;46068:181::-;1136:12;;;;;;;;:31;;;1152:15;:13;:15::i;:::-;1136:47;;;-1:-1:-1;1172:11:0;;;;1171:12;1136:47;1128:106;;;;-1:-1:-1;;;1128:106:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1243:19;1266:12;;;;;;1265:13;1285:83;;;;1314:12;:19;;-1:-1:-1;;;;1314:19:0;;;;;1342:18;1329:4;1342:18;;;1285:83;46149:44:::1;21641:4;46180:12;:10;:12::i;46149:44::-;45697:24;::::0;;-1:-1:-1;;;45697:24:0;;;;;;;;::::1;::::0;;;46204:37:::1;::::0;46228:12:::1;:10;:12::i;48054:145::-:0;1136:12;;;;;;;;:31;;;1152:15;:13;:15::i;:::-;1136:47;;;-1:-1:-1;1172:11:0;;;;1171:12;1136:47;1128:106;;;;-1:-1:-1;;;1128:106:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1243:19;1266:12;;;;;;1265:13;1285:83;;;;1314:12;:19;;-1:-1:-1;;;;1314:19:0;;;;;1342:18;1329:4;1342:18;;;1285:83;48136:12:::1;48123:10;:25:::0;48159:31:::1;48165:12;:10;:12::i;:::-;48179:10;;48159:5;:31::i;63082:162::-:0;63135:7;63162:74;61713:95;;;;;;;;;;;;;;;;;;;63196:17;:15;:17::i;:::-;63215:20;:18;:20::i;:::-;63162:21;:74::i;59956:196::-;60086:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;60086:57:0;;;;60076:68;;;;;;59956:196::o;58254:279::-;58382:7;58403:17;58422:18;58444:25;58455:4;58461:1;58464;58467;58444:10;:25::i;:::-;58402:67;;;;58480:18;58492:5;58480:11;:18::i;:::-;-1:-1:-1;58516:9:0;58254:279;-1:-1:-1;;;;;58254:279:0:o;44891:118::-;44577:7;;;;44576:8;44568:37;;;;;-1:-1:-1;;;44568:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;44951:7:::1;:14:::0;;-1:-1:-1;;44951:14:0::1;44961:4;44951:14;::::0;;44981:20:::1;44988:12;:10;:12::i;13892:149::-:0;13966:7;14009:22;14013:3;14025:5;14009:3;:22::i;13187:158::-;13267:4;13291:46;13301:3;-1:-1:-1;;;;;13321:14:0;;13291:9;:46::i;13431:117::-;13494:7;13521:19;13529:3;13521:7;:19::i;72630:1137::-;72943:10;72937:3;:16;72929:68;;;;-1:-1:-1;;;72929:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;73022:11;73016:3;:17;73008:63;;;;-1:-1:-1;;;73008:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;73091:26:0;;;;;;:20;:26;;;;;;;;:33;;;;;;;;;;73126:25;;;;;;;;;;;;;;;;;;;73091:33;;73090:34;73082:70;;;;-1:-1:-1;;;73082:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;73082:70:0;-1:-1:-1;73185:171:0;;;;;;;;;-1:-1:-1;;;;;73185:171:0;;;;;;;;;73165:17;73185:171;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;73185:171:0;;;;;;;-1:-1:-1;73401:71:0;73434:20;:18;:20::i;73401:71::-;73377:95;;73567:4;-1:-1:-1;;;;;73515:56:0;:48;73540:13;73555:1;73558;73561;73515:24;:48::i;:::-;-1:-1:-1;;;;;73515:56:0;;73586:24;;;;;;;;;;;;;;;;;73493:128;;;;;-1:-1:-1;;;73493:128:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;73493:128:0;-1:-1:-1;;;;;;73634:26:0;;;;;;:20;:26;;;;;;;;:33;;;;;;;;;:40;;-1:-1:-1;;73634:40:0;73670:4;73634:40;;;73690:30;73661:5;;73634:26;73690:30;;;73733:26;73743:4;73749:2;73753:5;73733:9;:26::i;:::-;72630:1137;;;;;;;;;;;;:::o;12633:143::-;12703:4;12727:41;12732:3;-1:-1:-1;;;;;12752:14:0;;12727:4;:41::i;12952:149::-;13025:4;13049:44;13057:3;-1:-1:-1;;;;;13077:14:0;;13049:7;:44::i;74380:168::-;74505:35;74523:4;74529:2;74533:6;74505:17;:35::i;3556:136::-;3614:7;3641:43;3645:1;3648;3641:43;;;;;;;;;;;;;;;;;:3;:43::i;64667:105::-;64752:12;;64667:105;:::o;65019:111::-;65107:15;;65019:111;:::o;63252:351::-;63527:67;;;;;;;;;;;;;;;;;;;;;;;;;63478:9;63527:67;;;;63588:4;63527:67;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;63527:67:0;;;;;;63517:78;;;;;;63252:351::o;56483:1632::-;56614:7;;57548:66;57535:79;;57531:163;;;-1:-1:-1;57647:1:0;;-1:-1:-1;57651:30:0;57631:51;;57531:163;57708:1;:7;;57713:2;57708:7;;:18;;;;;57719:1;:7;;57724:2;57719:7;;57708:18;57704:102;;;-1:-1:-1;57759:1:0;;-1:-1:-1;57763:30:0;57743:51;;57704:102;57920:24;;;57903:14;57920:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;57903:14;;57920:24;;;;;;;-1:-1:-1;;57920:24:0;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;57920:24:0;;-1:-1:-1;;57920:24:0;;;-1:-1:-1;;;;;;;57959:20:0;;57955:103;;-1:-1:-1;58012:1:0;;-1:-1:-1;58016:29:0;;-1:-1:-1;57996:50:0;;57955:103;58078:6;-1:-1:-1;58086:20:0;;-1:-1:-1;56483:1632:0;;;;;;;;:::o;51192:643::-;51270:20;51261:5;:29;;;;;;;;;51257:571;;;51307:7;;51257:571;51368:29;51359:5;:38;;;;;;;;;51355:473;;;51414:34;;;-1:-1:-1;;;51414:34:0;;;;;;;;;;;;;;;;;;;;;;;;;;;51355:473;51479:35;51470:5;:44;;;;;;;;;51466:362;;;51531:41;;;-1:-1:-1;;;51531:41:0;;;;;;;;;;;;;;;;;;;;;;;;;;;51466:362;51603:30;51594:5;:39;;;;;;;;;51590:238;;;51650:44;;-1:-1:-1;;;51650:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51590:238;51725:30;51716:5;:39;;;;;;;;;51712:116;;;51772:44;;-1:-1:-1;;;51772:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12175:204;12270:18;;12242:7;;12270:26;-1:-1:-1;12262:73:0;;;;-1:-1:-1;;;12262:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12353:3;:11;;12365:5;12353:18;;;;;;;;;;;;;;;;12346:25;;12175:204;;;;:::o;11507:129::-;11580:4;11604:19;;;:12;;;;;:19;;;;;;:24;;;11507:129::o;11722:109::-;11805:18;;11722:109::o;9287:414::-;9350:4;9372:21;9382:3;9387:5;9372:9;:21::i;:::-;9367:327;;-1:-1:-1;27:10;;39:1;23:18;;;45:23;;9410:11:0;:23;;;;;;;;;;;;;9593:18;;9571:19;;;:12;;;:19;;;;;;:40;;;;9626:11;;9367:327;-1:-1:-1;9677:5:0;9670:12;;9877:1544;9943:4;10082:19;;;:12;;;:19;;;;;;10118:15;;10114:1300;;10553:18;;-1:-1:-1;;10504:14:0;;;;10553:22;;;;10480:21;;10553:3;;:22;;10840;;;;;;;;;;;;;;10820:42;;10986:9;10957:3;:11;;10969:13;10957:26;;;;;;;;;;;;;;;;;;;:38;;;;11063:23;;;11105:1;11063:12;;;:23;;;;;;11089:17;;;11063:43;;11215:17;;11063:3;;11215:17;;;;;;;;;;;;;;;;;;;;;;11310:3;:12;;:19;11323:5;11310:19;;;;;;;;;;;11303:26;;;11353:4;11346:11;;;;;;;;10114:1300;11397:5;11390:12;;;;;48207:202;48344:10;;48315:25;48333:6;48315:13;:11;:13::i;:::-;:17;:25;:17;:25;:::i;:::-;:39;;48307:48;;;;;;48366:35;48384:4;48390:2;48394:6;48366:17;:35::i;74728:1634::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;74728:1634:0;;;-1:-1:-1;74728:1634:0;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;
Swarm Source
ipfs://bad2c516d2b9bc661bdb20f72660967b9ffc5aa513a9cf0ea4b927df7e166807
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.