Overview
Max Total Supply
27,182,818.284590452353602874 EUL
Holders
2,544 (0.00%)
Market
Price
$3.60 @ 0.001070 ETH (+4.76%)
Onchain Market Cap
$97,750,402.40
Circulating Supply Market Cap
$58,011,692.54
Other Info
Token Contract (WITH 18 Decimals)
Balance
5 EULValue
$17.98 ( ~0.00534981401917965 Eth) [0.0000%]Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Eul
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Votes.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; contract Eul is ERC20Votes, AccessControl { /// @notice The role assigned to users who can call admin/restricted functions bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE"); /// @notice The timestamp on and after which minting may occur. uint256 public mintingRestrictedBefore; /// @notice Minimum time between mints. uint256 public constant MINT_MIN_INTERVAL = 365 days; /// @notice Cap on the percentage of the total supply that can be minted at each mint. /// Denominated in percentage points (units out of 100000 for division precision). /// This value is set to the number e or Euler's number = 2.71828 (%) uint256 public constant MINT_MAX_PERCENT = 2718; /// @notice The recipient of the minted tokens address public treasury; /// EVENTS event TreasuryUpdated(address newTreasury); modifier onlyAdmin() { require( hasRole(ADMIN_ROLE, msg.sender), "Caller does not have the ADMIN_ROLE" ); _; } /** * @notice Constructor. * * @param name The token name, i.e., Euler. * @param symbol The token symbol, i.e., EUL. * @param totalSupply_ Initial total token supply. * @param mintingRestrictedBefore_ Timestamp, before which minting is not allowed. * @param treasury_ Treasury address. */ constructor( string memory name, string memory symbol, uint256 totalSupply_, uint256 mintingRestrictedBefore_, address treasury_ ) ERC20(name, symbol) ERC20Permit(name) { require( mintingRestrictedBefore_ > block.timestamp, "MINTING_RESTRICTED_BEFORE_TOO_EARLY" ); require(treasury_ != address(0), "cannot set or mint to zero treasury address"); mintingRestrictedBefore = mintingRestrictedBefore_; treasury = treasury_; _mint(treasury_, totalSupply_); _setupRole(DEFAULT_ADMIN_ROLE, treasury_); _setupRole(ADMIN_ROLE, treasury_); } /** * @notice Mint new tokens only after the required time period has elapsed. * It will mint to the treasury address set by owner */ function mint() external onlyAdmin { require( block.timestamp >= mintingRestrictedBefore, 'MINT_TOO_EARLY' ); require( treasury != address(0), 'INVALID_TREASURY_ADDRESS' ); uint256 amount = totalSupply() * MINT_MAX_PERCENT / 100000; require(amount > 0, "CANNOT_MINT_ZERO"); // Update the next allowed minting time. mintingRestrictedBefore = block.timestamp + MINT_MIN_INTERVAL; // Mint the amount. _mint(treasury, amount); } /** * @notice Update the treasury address to receive minted tokens. * Only callable by admins. * @param newTreasury The address to set as the new Treasury */ function updateTreasury(address newTreasury) external onlyAdmin { require(newTreasury != address(0), "cannot set or mint to zero treasury address"); treasury = newTreasury; emit TreasuryUpdated(treasury); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./draft-ERC20Permit.sol"; import "../../../utils/math/Math.sol"; import "../../../utils/math/SafeCast.sol"; import "../../../utils/cryptography/ECDSA.sol"; /** * @dev Extension of ERC20 to support Compound-like voting and delegation. This version is more generic than Compound's, * and supports token supply up to 2^224^ - 1, while COMP is limited to 2^96^ - 1. * * NOTE: If exact COMP compatibility is required, use the {ERC20VotesComp} variant of this module. * * This extension keeps a history (checkpoints) of each account's vote power. Vote power can be delegated either * by calling the {delegate} function directly, or by providing a signature to be used with {delegateBySig}. Voting * power can be queried through the public accessors {getVotes} and {getPastVotes}. * * By default, token balance does not account for voting power. This makes transfers cheaper. The downside is that it * requires users to delegate to themselves in order to activate checkpoints and have their voting power tracked. * Enabling self-delegation can easily be done by overriding the {delegates} function. Keep in mind however that this * will significantly increase the base gas cost of transfers. * * _Available since v4.2._ */ abstract contract ERC20Votes is ERC20Permit { struct Checkpoint { uint32 fromBlock; uint224 votes; } bytes32 private constant _DELEGATION_TYPEHASH = keccak256("Delegation(address delegatee,uint256 nonce,uint256 expiry)"); mapping(address => address) private _delegates; mapping(address => Checkpoint[]) private _checkpoints; Checkpoint[] private _totalSupplyCheckpoints; /** * @dev Emitted when an account changes their delegate. */ event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate); /** * @dev Emitted when a token transfer or delegate change results in changes to an account's voting power. */ event DelegateVotesChanged(address indexed delegate, uint256 previousBalance, uint256 newBalance); /** * @dev Get the `pos`-th checkpoint for `account`. */ function checkpoints(address account, uint32 pos) public view virtual returns (Checkpoint memory) { return _checkpoints[account][pos]; } /** * @dev Get number of checkpoints for `account`. */ function numCheckpoints(address account) public view virtual returns (uint32) { return SafeCast.toUint32(_checkpoints[account].length); } /** * @dev Get the address `account` is currently delegating to. */ function delegates(address account) public view virtual returns (address) { return _delegates[account]; } /** * @dev Gets the current votes balance for `account` */ function getVotes(address account) public view returns (uint256) { uint256 pos = _checkpoints[account].length; return pos == 0 ? 0 : _checkpoints[account][pos - 1].votes; } /** * @dev Retrieve the number of votes for `account` at the end of `blockNumber`. * * Requirements: * * - `blockNumber` must have been already mined */ function getPastVotes(address account, uint256 blockNumber) public view returns (uint256) { require(blockNumber < block.number, "ERC20Votes: block not yet mined"); return _checkpointsLookup(_checkpoints[account], blockNumber); } /** * @dev Retrieve the `totalSupply` at the end of `blockNumber`. Note, this value is the sum of all balances. * It is but NOT the sum of all the delegated votes! * * Requirements: * * - `blockNumber` must have been already mined */ function getPastTotalSupply(uint256 blockNumber) public view returns (uint256) { require(blockNumber < block.number, "ERC20Votes: block not yet mined"); return _checkpointsLookup(_totalSupplyCheckpoints, blockNumber); } /** * @dev Lookup a value in a list of (sorted) checkpoints. */ function _checkpointsLookup(Checkpoint[] storage ckpts, uint256 blockNumber) private view returns (uint256) { // We run a binary search to look for the earliest checkpoint taken after `blockNumber`. // // During the loop, the index of the wanted checkpoint remains in the range [low-1, high). // With each iteration, either `low` or `high` is moved towards the middle of the range to maintain the invariant. // - If the middle checkpoint is after `blockNumber`, we look in [low, mid) // - If the middle checkpoint is before or equal to `blockNumber`, we look in [mid+1, high) // Once we reach a single value (when low == high), we've found the right checkpoint at the index high-1, if not // out of bounds (in which case we're looking too far in the past and the result is 0). // Note that if the latest checkpoint available is exactly for `blockNumber`, we end up with an index that is // past the end of the array, so we technically don't find a checkpoint after `blockNumber`, but it works out // the same. uint256 high = ckpts.length; uint256 low = 0; while (low < high) { uint256 mid = Math.average(low, high); if (ckpts[mid].fromBlock > blockNumber) { high = mid; } else { low = mid + 1; } } return high == 0 ? 0 : ckpts[high - 1].votes; } /** * @dev Delegate votes from the sender to `delegatee`. */ function delegate(address delegatee) public virtual { return _delegate(_msgSender(), delegatee); } /** * @dev Delegates votes from signer to `delegatee` */ function delegateBySig( address delegatee, uint256 nonce, uint256 expiry, uint8 v, bytes32 r, bytes32 s ) public virtual { require(block.timestamp <= expiry, "ERC20Votes: signature expired"); address signer = ECDSA.recover( _hashTypedDataV4(keccak256(abi.encode(_DELEGATION_TYPEHASH, delegatee, nonce, expiry))), v, r, s ); require(nonce == _useNonce(signer), "ERC20Votes: invalid nonce"); return _delegate(signer, delegatee); } /** * @dev Maximum token supply. Defaults to `type(uint224).max` (2^224^ - 1). */ function _maxSupply() internal view virtual returns (uint224) { return type(uint224).max; } /** * @dev Snapshots the totalSupply after it has been increased. */ function _mint(address account, uint256 amount) internal virtual override { super._mint(account, amount); require(totalSupply() <= _maxSupply(), "ERC20Votes: total supply risks overflowing votes"); _writeCheckpoint(_totalSupplyCheckpoints, _add, amount); } /** * @dev Snapshots the totalSupply after it has been decreased. */ function _burn(address account, uint256 amount) internal virtual override { super._burn(account, amount); _writeCheckpoint(_totalSupplyCheckpoints, _subtract, amount); } /** * @dev Move voting power when tokens are transferred. * * Emits a {DelegateVotesChanged} event. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual override { super._afterTokenTransfer(from, to, amount); _moveVotingPower(delegates(from), delegates(to), amount); } /** * @dev Change delegation for `delegator` to `delegatee`. * * Emits events {DelegateChanged} and {DelegateVotesChanged}. */ function _delegate(address delegator, address delegatee) internal virtual { address currentDelegate = delegates(delegator); uint256 delegatorBalance = balanceOf(delegator); _delegates[delegator] = delegatee; emit DelegateChanged(delegator, currentDelegate, delegatee); _moveVotingPower(currentDelegate, delegatee, delegatorBalance); } function _moveVotingPower( address src, address dst, uint256 amount ) private { if (src != dst && amount > 0) { if (src != address(0)) { (uint256 oldWeight, uint256 newWeight) = _writeCheckpoint(_checkpoints[src], _subtract, amount); emit DelegateVotesChanged(src, oldWeight, newWeight); } if (dst != address(0)) { (uint256 oldWeight, uint256 newWeight) = _writeCheckpoint(_checkpoints[dst], _add, amount); emit DelegateVotesChanged(dst, oldWeight, newWeight); } } } function _writeCheckpoint( Checkpoint[] storage ckpts, function(uint256, uint256) view returns (uint256) op, uint256 delta ) private returns (uint256 oldWeight, uint256 newWeight) { uint256 pos = ckpts.length; oldWeight = pos == 0 ? 0 : ckpts[pos - 1].votes; newWeight = op(oldWeight, delta); if (pos > 0 && ckpts[pos - 1].fromBlock == block.number) { ckpts[pos - 1].votes = SafeCast.toUint224(newWeight); } else { ckpts.push(Checkpoint({fromBlock: SafeCast.toUint32(block.number), votes: SafeCast.toUint224(newWeight)})); } } function _add(uint256 a, uint256 b) private pure returns (uint256) { return a + b; } function _subtract(uint256 a, uint256 b) private pure returns (uint256) { return a - b; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @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 override 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 override onlyRole(getRoleAdmin(role)) { _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 override onlyRole(getRoleAdmin(role)) { _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 override { 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. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } function _grantRole(bytes32 role, address account) private { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./draft-IERC20Permit.sol"; import "../ERC20.sol"; import "../../../utils/cryptography/draft-EIP712.sol"; import "../../../utils/cryptography/ECDSA.sol"; import "../../../utils/Counters.sol"; /** * @dev Implementation of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. * * _Available since v3.4._ */ abstract contract ERC20Permit is ERC20, IERC20Permit, EIP712 { using Counters for Counters.Counter; mapping(address => Counters.Counter) private _nonces; // solhint-disable-next-line var-name-mixedcase bytes32 private immutable _PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); /** * @dev Initializes the {EIP712} domain separator using the `name` parameter, and setting `version` to `"1"`. * * It's a good idea to use the same `name` that is defined as the ERC20 token name. */ constructor(string memory name) EIP712(name, "1") {} /** * @dev See {IERC20Permit-permit}. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) public virtual override { require(block.timestamp <= deadline, "ERC20Permit: expired deadline"); bytes32 structHash = keccak256(abi.encode(_PERMIT_TYPEHASH, owner, spender, value, _useNonce(owner), deadline)); bytes32 hash = _hashTypedDataV4(structHash); address signer = ECDSA.recover(hash, v, r, s); require(signer == owner, "ERC20Permit: invalid signature"); _approve(owner, spender, value); } /** * @dev See {IERC20Permit-nonces}. */ function nonces(address owner) public view virtual override returns (uint256) { return _nonces[owner].current(); } /** * @dev See {IERC20Permit-DOMAIN_SEPARATOR}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view override returns (bytes32) { return _domainSeparatorV4(); } /** * @dev "Consume a nonce": return the current value and increment. * * _Available since v4.1._ */ function _useNonce(address owner) internal virtual returns (uint256 current) { Counters.Counter storage nonce = _nonces[owner]; current = nonce.current(); nonce.increment(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a / b + (a % b == 0 ? 0 : 1); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow * checks. * * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can * easily result in undesired exploitation or bugs, since developers usually * assume that overflows raise errors. `SafeCast` restores this intuition by * reverting the transaction when such 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. * * Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing * all math on `uint256` and `int256` and then downcasting. */ library SafeCast { /** * @dev Returns the downcasted uint224 from uint256, reverting on * overflow (when the input is greater than largest uint224). * * Counterpart to Solidity's `uint224` operator. * * Requirements: * * - input must fit into 224 bits */ function toUint224(uint256 value) internal pure returns (uint224) { require(value <= type(uint224).max, "SafeCast: value doesn't fit in 224 bits"); return uint224(value); } /** * @dev Returns the downcasted uint128 from uint256, reverting on * overflow (when the input is greater than largest uint128). * * Counterpart to Solidity's `uint128` operator. * * Requirements: * * - input must fit into 128 bits */ function toUint128(uint256 value) internal pure returns (uint128) { require(value <= type(uint128).max, "SafeCast: value doesn't fit in 128 bits"); return uint128(value); } /** * @dev Returns the downcasted uint96 from uint256, reverting on * overflow (when the input is greater than largest uint96). * * Counterpart to Solidity's `uint96` operator. * * Requirements: * * - input must fit into 96 bits */ function toUint96(uint256 value) internal pure returns (uint96) { require(value <= type(uint96).max, "SafeCast: value doesn't fit in 96 bits"); return uint96(value); } /** * @dev Returns the downcasted uint64 from uint256, reverting on * overflow (when the input is greater than largest uint64). * * Counterpart to Solidity's `uint64` operator. * * Requirements: * * - input must fit into 64 bits */ function toUint64(uint256 value) internal pure returns (uint64) { require(value <= type(uint64).max, "SafeCast: value doesn't fit in 64 bits"); return uint64(value); } /** * @dev Returns the downcasted uint32 from uint256, reverting on * overflow (when the input is greater than largest uint32). * * Counterpart to Solidity's `uint32` operator. * * Requirements: * * - input must fit into 32 bits */ function toUint32(uint256 value) internal pure returns (uint32) { require(value <= type(uint32).max, "SafeCast: value doesn't fit in 32 bits"); return uint32(value); } /** * @dev Returns the downcasted uint16 from uint256, reverting on * overflow (when the input is greater than largest uint16). * * Counterpart to Solidity's `uint16` operator. * * Requirements: * * - input must fit into 16 bits */ function toUint16(uint256 value) internal pure returns (uint16) { require(value <= type(uint16).max, "SafeCast: value doesn't fit in 16 bits"); return uint16(value); } /** * @dev Returns the downcasted uint8 from uint256, reverting on * overflow (when the input is greater than largest uint8). * * Counterpart to Solidity's `uint8` operator. * * Requirements: * * - input must fit into 8 bits. */ function toUint8(uint256 value) internal pure returns (uint8) { require(value <= type(uint8).max, "SafeCast: value doesn't fit in 8 bits"); return uint8(value); } /** * @dev Converts a signed int256 into an unsigned uint256. * * Requirements: * * - input must be greater than or equal to 0. */ function toUint256(int256 value) internal pure returns (uint256) { require(value >= 0, "SafeCast: value must be positive"); return uint256(value); } /** * @dev Returns the downcasted int128 from int256, reverting on * overflow (when the input is less than smallest int128 or * greater than largest int128). * * Counterpart to Solidity's `int128` operator. * * Requirements: * * - input must fit into 128 bits * * _Available since v3.1._ */ function toInt128(int256 value) internal pure returns (int128) { require(value >= type(int128).min && value <= type(int128).max, "SafeCast: value doesn't fit in 128 bits"); return int128(value); } /** * @dev Returns the downcasted int64 from int256, reverting on * overflow (when the input is less than smallest int64 or * greater than largest int64). * * Counterpart to Solidity's `int64` operator. * * Requirements: * * - input must fit into 64 bits * * _Available since v3.1._ */ function toInt64(int256 value) internal pure returns (int64) { require(value >= type(int64).min && value <= type(int64).max, "SafeCast: value doesn't fit in 64 bits"); return int64(value); } /** * @dev Returns the downcasted int32 from int256, reverting on * overflow (when the input is less than smallest int32 or * greater than largest int32). * * Counterpart to Solidity's `int32` operator. * * Requirements: * * - input must fit into 32 bits * * _Available since v3.1._ */ function toInt32(int256 value) internal pure returns (int32) { require(value >= type(int32).min && value <= type(int32).max, "SafeCast: value doesn't fit in 32 bits"); return int32(value); } /** * @dev Returns the downcasted int16 from int256, reverting on * overflow (when the input is less than smallest int16 or * greater than largest int16). * * Counterpart to Solidity's `int16` operator. * * Requirements: * * - input must fit into 16 bits * * _Available since v3.1._ */ function toInt16(int256 value) internal pure returns (int16) { require(value >= type(int16).min && value <= type(int16).max, "SafeCast: value doesn't fit in 16 bits"); return int16(value); } /** * @dev Returns the downcasted int8 from int256, reverting on * overflow (when the input is less than smallest int8 or * greater than largest int8). * * Counterpart to Solidity's `int8` operator. * * Requirements: * * - input must fit into 8 bits. * * _Available since v3.1._ */ function toInt8(int256 value) internal pure returns (int8) { require(value >= type(int8).min && value <= type(int8).max, "SafeCast: value doesn't fit in 8 bits"); return int8(value); } /** * @dev Converts an unsigned uint256 into a signed int256. * * Requirements: * * - input must be less than or equal to maxInt256. */ function toInt256(uint256 value) internal pure returns (int256) { // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive require(value <= uint256(type(int256).max), "SafeCast: value doesn't fit in an int256"); return int256(value); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @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 ECDSA { 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; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 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 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)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `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); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - amount); } return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./ECDSA.sol"; /** * @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 EIP712 { /* solhint-disable var-name-mixedcase */ // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to // invalidate the cached domain separator if the chain id changes. bytes32 private immutable _CACHED_DOMAIN_SEPARATOR; uint256 private immutable _CACHED_CHAIN_ID; bytes32 private immutable _HASHED_NAME; bytes32 private immutable _HASHED_VERSION; bytes32 private immutable _TYPE_HASH; /* 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]. */ constructor(string memory name, string memory version) { bytes32 hashedName = keccak256(bytes(name)); bytes32 hashedVersion = keccak256(bytes(version)); bytes32 typeHash = keccak256( "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)" ); _HASHED_NAME = hashedName; _HASHED_VERSION = hashedVersion; _CACHED_CHAIN_ID = block.chainid; _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion); _TYPE_HASH = typeHash; } /** * @dev Returns the domain separator for the current chain. */ function _domainSeparatorV4() internal view returns (bytes32) { if (block.chainid == _CACHED_CHAIN_ID) { return _CACHED_DOMAIN_SEPARATOR; } else { return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION); } } function _buildDomainSeparator( bytes32 typeHash, bytes32 nameHash, bytes32 versionHash ) private view returns (bytes32) { return keccak256(abi.encode(typeHash, nameHash, versionHash, block.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 ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.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); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_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) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @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) external; /** * @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) external; /** * @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) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { 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); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint256","name":"totalSupply_","type":"uint256"},{"internalType":"uint256","name":"mintingRestrictedBefore_","type":"uint256"},{"internalType":"address","name":"treasury_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"delegator","type":"address"},{"indexed":true,"internalType":"address","name":"fromDelegate","type":"address"},{"indexed":true,"internalType":"address","name":"toDelegate","type":"address"}],"name":"DelegateChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"delegate","type":"address"},{"indexed":false,"internalType":"uint256","name":"previousBalance","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newBalance","type":"uint256"}],"name":"DelegateVotesChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","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":"newTreasury","type":"address"}],"name":"TreasuryUpdated","type":"event"},{"inputs":[],"name":"ADMIN_ROLE","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":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_MAX_PERCENT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_MIN_INTERVAL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint32","name":"pos","type":"uint32"}],"name":"checkpoints","outputs":[{"components":[{"internalType":"uint32","name":"fromBlock","type":"uint32"},{"internalType":"uint224","name":"votes","type":"uint224"}],"internalType":"struct ERC20Votes.Checkpoint","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegatee","type":"address"}],"name":"delegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegatee","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"delegateBySig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"delegates","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getPastTotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getPastVotes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"address","name":"account","type":"address"}],"name":"getVotes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintingRestrictedBefore","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"numCheckpoints","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newTreasury","type":"address"}],"name":"updateTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6101406040527f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9610120908152503480156200003a57600080fd5b50604051620064ff380380620064ff833981810160405281019062000060919062000f13565b84806040518060400160405280600181526020017f310000000000000000000000000000000000000000000000000000000000000081525087878160039080519060200190620000b292919062000dc3565b508060049080519060200190620000cb92919062000dc3565b50505060008280519060200120905060008280519060200120905060007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f90508260c081815250508160e081815250504660a0818152505062000136818484620002b060201b60201c565b6080818152505080610100818152505050505050505042821162000191576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001889062001163565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141562000204576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001fb9062001141565b60405180910390fd5b81600a8190555080600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506200025e8184620002ec60201b60201c565b620002736000801b82620003aa60201b60201c565b620002a57fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177582620003aa60201b60201c565b5050505050620016cf565b60008383834630604051602001620002cd959493929190620010e4565b6040516020818303038152906040528051906020012090509392505050565b620003038282620003c060201b620018ab1760201c565b620003136200053960201b60201c565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16620003416200055d60201b60201c565b111562000385576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200037c9062001185565b60405180910390fd5b620003a460086200056760201b62001a0b17836200057f60201b60201c565b50505050565b620003bc82826200089c60201b60201c565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141562000433576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200042a90620011eb565b60405180910390fd5b62000447600083836200098e60201b60201c565b80600260008282546200045b9190620012c7565b92505081905550806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254620004b29190620012c7565b925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516200051991906200120d565b60405180910390a362000535600083836200099360201b60201c565b5050565b60007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff905090565b6000600254905090565b60008183620005779190620012c7565b905092915050565b60008060008580549050905060008114620006185785600182620005a4919062001324565b81548110620005dc577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160000160049054906101000a90047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166200061b565b60005b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1692506200064783858760201c565b9150600081118015620006c45750438660018362000666919062001324565b815481106200069e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160000160009054906101000a900463ffffffff1663ffffffff16145b156200078957620006e082620009e360201b62001a211760201c565b86600183620006f0919062001324565b8154811062000728577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160000160046101000a8154817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff02191690837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16021790555062000893565b856040518060400160405280620007ab4362000a5160201b62001a8c1760201c565b63ffffffff168152602001620007cc85620009e360201b62001a211760201c565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff168152509080600181540180825580915050600190039060005260206000200160009091909190915060008201518160000160006101000a81548163ffffffff021916908363ffffffff16021790555060208201518160000160046101000a8154817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff02191690837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16021790555050505b50935093915050565b620008ae828262000aa760201b60201c565b6200098a5760016009600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506200092f62000b1260201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b505050565b620009ab83838362000b1a60201b62001adf1760201c565b620009de620009c08462000b1f60201b60201c565b620009d18462000b1f60201b60201c565b8362000b8860201b60201c565b505050565b60007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff801682111562000a49576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000a4090620011a7565b60405180910390fd5b819050919050565b600063ffffffff801682111562000a9f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000a9690620011c9565b60405180910390fd5b819050919050565b60006009600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b505050565b6000600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415801562000bc55750600081115b1562000da657600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161462000cb85760008062000c5f600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002062000dab60201b62001ae417856200057f60201b60201c565b915091508473ffffffffffffffffffffffffffffffffffffffff167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724838360405162000cad9291906200122a565b60405180910390a250505b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161462000da55760008062000d4c600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206200056760201b62001a0b17856200057f60201b60201c565b915091508373ffffffffffffffffffffffffffffffffffffffff167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724838360405162000d9a9291906200122a565b60405180910390a250505b5b505050565b6000818362000dbb919062001324565b905092915050565b82805462000dd190620013dd565b90600052602060002090601f01602090048101928262000df5576000855562000e41565b82601f1062000e1057805160ff191683800117855562000e41565b8280016001018555821562000e41579182015b8281111562000e4057825182559160200191906001019062000e23565b5b50905062000e50919062000e54565b5090565b5b8082111562000e6f57600081600090555060010162000e55565b5090565b600062000e8a62000e848462001280565b62001257565b90508281526020810184848401111562000ea357600080fd5b62000eb0848285620013a7565b509392505050565b60008151905062000ec9816200169b565b92915050565b600082601f83011262000ee157600080fd5b815162000ef384826020860162000e73565b91505092915050565b60008151905062000f0d81620016b5565b92915050565b600080600080600060a0868803121562000f2c57600080fd5b600086015167ffffffffffffffff81111562000f4757600080fd5b62000f558882890162000ecf565b955050602086015167ffffffffffffffff81111562000f7357600080fd5b62000f818882890162000ecf565b945050604062000f948882890162000efc565b935050606062000fa78882890162000efc565b925050608062000fba8882890162000eb8565b9150509295509295909350565b62000fd2816200135f565b82525050565b62000fe38162001373565b82525050565b600062000ff8602b83620012b6565b91506200100582620014e7565b604082019050919050565b60006200101f602383620012b6565b91506200102c8262001536565b604082019050919050565b600062001046603083620012b6565b9150620010538262001585565b604082019050919050565b60006200106d602783620012b6565b91506200107a82620015d4565b604082019050919050565b600062001094602683620012b6565b9150620010a18262001623565b604082019050919050565b6000620010bb601f83620012b6565b9150620010c88262001672565b602082019050919050565b620010de816200139d565b82525050565b600060a082019050620010fb600083018862000fd8565b6200110a602083018762000fd8565b62001119604083018662000fd8565b620011286060830185620010d3565b62001137608083018462000fc7565b9695505050505050565b600060208201905081810360008301526200115c8162000fe9565b9050919050565b600060208201905081810360008301526200117e8162001010565b9050919050565b60006020820190508181036000830152620011a08162001037565b9050919050565b60006020820190508181036000830152620011c2816200105e565b9050919050565b60006020820190508181036000830152620011e48162001085565b9050919050565b600060208201905081810360008301526200120681620010ac565b9050919050565b6000602082019050620012246000830184620010d3565b92915050565b6000604082019050620012416000830185620010d3565b620012506020830184620010d3565b9392505050565b60006200126362001276565b905062001271828262001413565b919050565b6000604051905090565b600067ffffffffffffffff8211156200129e576200129d620014a7565b5b620012a982620014d6565b9050602081019050919050565b600082825260208201905092915050565b6000620012d4826200139d565b9150620012e1836200139d565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111562001319576200131862001449565b5b828201905092915050565b600062001331826200139d565b91506200133e836200139d565b92508282101562001354576200135362001449565b5b828203905092915050565b60006200136c826200137d565b9050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b83811015620013c7578082015181840152602081019050620013aa565b83811115620013d7576000848401525b50505050565b60006002820490506001821680620013f657607f821691505b602082108114156200140d576200140c62001478565b5b50919050565b6200141e82620014d6565b810181811067ffffffffffffffff8211171562001440576200143f620014a7565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f63616e6e6f7420736574206f72206d696e7420746f207a65726f20747265617360008201527f7572792061646472657373000000000000000000000000000000000000000000602082015250565b7f4d494e54494e475f524553545249435445445f4245464f52455f544f4f5f454160008201527f524c590000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433230566f7465733a20746f74616c20737570706c79207269736b73206f60008201527f766572666c6f77696e6720766f74657300000000000000000000000000000000602082015250565b7f53616665436173743a2076616c756520646f65736e27742066697420696e203260008201527f3234206269747300000000000000000000000000000000000000000000000000602082015250565b7f53616665436173743a2076616c756520646f65736e27742066697420696e203360008201527f3220626974730000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b620016a6816200135f565b8114620016b257600080fd5b50565b620016c0816200139d565b8114620016cc57600080fd5b50565b60805160a05160c05160e0516101005161012051614de06200171f60003960006115ca0152600061221a0152600061225c0152600061223b015260006121c7015260006121ef0152614de06000f3fe608060405234801561001057600080fd5b506004361061021c5760003560e01c806369e3b0d0116101255780639ab24eb0116100ad578063c3cda5201161007c578063c3cda520146106b5578063d505accf146106d1578063d547741f146106ed578063dd62ed3e14610709578063f1127ed8146107395761021c565b80639ab24eb014610607578063a217fddf14610637578063a457c2d714610655578063a9059cbb146106855761021c565b80637ecebe00116100f45780637ecebe001461053d5780637f51bb1f1461056d5780638e539e8c1461058957806391d14854146105b957806395d89b41146105e95761021c565b806369e3b0d0146104a15780636fcfff45146104bf57806370a08231146104ef57806375b238fc1461051f5761021c565b80633644e515116101a8578063449443f211610177578063449443f2146103fb578063587cde1e146104195780635c19a95c1461044957806361d027b314610465578063657c7a85146104835761021c565b80633644e5151461036157806336568abe1461037f578063395093511461039b5780633a46b1a8146103cb5761021c565b806318160ddd116101ef57806318160ddd146102a957806323b872dd146102c7578063248a9ca3146102f75780632f2ff15d14610327578063313ce567146103435761021c565b806301ffc9a71461022157806306fdde0314610251578063095ea7b31461026f5780631249c58b1461029f575b600080fd5b61023b60048036038101906102369190613737565b610769565b6040516102489190613d57565b60405180910390f35b6102596107e3565b6040516102669190613ecb565b60405180910390f35b610289600480360381019061028491906135d1565b610875565b6040516102969190613d57565b60405180910390f35b6102a7610893565b005b6102b1610a82565b6040516102be9190614268565b60405180910390f35b6102e160048036038101906102dc91906134e4565b610a8c565b6040516102ee9190613d57565b60405180910390f35b610311600480360381019061030c91906136d2565b610b84565b60405161031e9190613d72565b60405180910390f35b610341600480360381019061033c91906136fb565b610ba4565b005b61034b610bcd565b60405161035891906142c7565b60405180910390f35b610369610bd6565b6040516103769190613d72565b60405180910390f35b610399600480360381019061039491906136fb565b610be5565b005b6103b560048036038101906103b091906135d1565b610c68565b6040516103c29190613d57565b60405180910390f35b6103e560048036038101906103e091906135d1565b610d14565b6040516103f29190614268565b60405180910390f35b610403610da8565b6040516104109190614268565b60405180910390f35b610433600480360381019061042e919061347f565b610dae565b6040516104409190613d3c565b60405180910390f35b610463600480360381019061045e919061347f565b610e17565b005b61046d610e2b565b60405161047a9190613d3c565b60405180910390f35b61048b610e51565b6040516104989190614268565b60405180910390f35b6104a9610e57565b6040516104b69190614268565b60405180910390f35b6104d960048036038101906104d4919061347f565b610e5f565b6040516104e691906142ac565b60405180910390f35b6105096004803603810190610504919061347f565b610eb3565b6040516105169190614268565b60405180910390f35b610527610efb565b6040516105349190613d72565b60405180910390f35b6105576004803603810190610552919061347f565b610f1f565b6040516105649190614268565b60405180910390f35b6105876004803603810190610582919061347f565b610f6f565b005b6105a3600480360381019061059e9190613760565b6110e5565b6040516105b09190614268565b60405180910390f35b6105d360048036038101906105ce91906136fb565b61113b565b6040516105e09190613d57565b60405180910390f35b6105f16111a6565b6040516105fe9190613ecb565b60405180910390f35b610621600480360381019061061c919061347f565b611238565b60405161062e9190614268565b60405180910390f35b61063f61136f565b60405161064c9190613d72565b60405180910390f35b61066f600480360381019061066a91906135d1565b611376565b60405161067c9190613d57565b60405180910390f35b61069f600480360381019061069a91906135d1565b611461565b6040516106ac9190613d57565b60405180910390f35b6106cf60048036038101906106ca919061360d565b61147f565b005b6106eb60048036038101906106e69190613533565b611583565b005b610707600480360381019061070291906136fb565b6116c5565b005b610723600480360381019061071e91906134a8565b6116ee565b6040516107309190614268565b60405180910390f35b610753600480360381019061074e9190613696565b611775565b604051610760919061424d565b60405180910390f35b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806107dc57506107db82611afa565b5b9050919050565b6060600380546107f29061453e565b80601f016020809104026020016040519081016040528092919081815260200182805461081e9061453e565b801561086b5780601f106108405761010080835404028352916020019161086b565b820191906000526020600020905b81548152906001019060200180831161084e57829003601f168201915b5050505050905090565b6000610889610882611b64565b8484611b6c565b6001905092915050565b6108bd7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217753361113b565b6108fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906140cd565b60405180910390fd5b600a54421015610941576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161093890613fed565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156109d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109ca9061418d565b60405180910390fd5b6000620186a0610a9e6109e4610a82565b6109ee9190614390565b6109f8919061435f565b905060008111610a3d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3490613f6d565b60405180910390fd5b6301e1338042610a4d9190614309565b600a81905550610a7f600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682611d37565b50565b6000600254905090565b6000610a99848484611dc4565b6000600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000610ae4611b64565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015610b64576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5b9061410d565b60405180910390fd5b610b7885610b70611b64565b858403611b6c565b60019150509392505050565b600060096000838152602001908152602001600020600101549050919050565b610bad82610b84565b610bbe81610bb9611b64565b612045565b610bc883836120e2565b505050565b60006012905090565b6000610be06121c3565b905090565b610bed611b64565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610c5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c519061420d565b60405180910390fd5b610c648282612286565b5050565b6000610d0a610c75611b64565b848460016000610c83611b64565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610d059190614309565b611b6c565b6001905092915050565b6000438210610d58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4f90613f4d565b60405180910390fd5b610da0600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002083612368565b905092915050565b600a5481565b6000600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b610e28610e22611b64565b826124c0565b50565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610a9e81565b6301e1338081565b6000610eac600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050611a8c565b9050919050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b6000610f68600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206125da565b9050919050565b610f997fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217753361113b565b610fd8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fcf906140cd565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611048576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161103f9061402d565b60405180910390fd5b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f7dae230f18360d76a040c81f050aa14eb9d6dc7901b20fc5d855e2a20fe814d1600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040516110da9190613d3c565b60405180910390a150565b6000438210611129576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112090613f4d565b60405180910390fd5b611134600883612368565b9050919050565b60006009600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6060600480546111b59061453e565b80601f01602080910402602001604051908101604052809291908181526020018280546111e19061453e565b801561122e5780601f106112035761010080835404028352916020019161122e565b820191906000526020600020905b81548152906001019060200180831161121157829003601f168201915b5050505050905090565b600080600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054905090506000811461134657600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001826112d491906143ea565b8154811061130b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160000160049054906101000a90047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16611349565b60005b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16915050919050565b6000801b81565b60008060016000611385611b64565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015611442576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611439906141ed565b60405180910390fd5b61145661144d611b64565b85858403611b6c565b600191505092915050565b600061147561146e611b64565b8484611dc4565b6001905092915050565b834211156114c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114b990613f8d565b60405180910390fd5b600061152461151c7fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf8989896040516020016115019493929190613dee565b604051602081830303815290604052805190602001206125e8565b858585612602565b905061152f8161262d565b8614611570576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161156790613fcd565b60405180910390fd5b61157a81886124c0565b50505050505050565b834211156115c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115bd9061404d565b60405180910390fd5b60007f00000000000000000000000000000000000000000000000000000000000000008888886115f58c61262d565b8960405160200161160b96959493929190613d8d565b604051602081830303815290604052805190602001209050600061162e826125e8565b9050600061163e82878787612602565b90508973ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146116ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116a5906140ed565b60405180910390fd5b6116b98a8a8a611b6c565b50505050505050505050565b6116ce82610b84565b6116df816116da611b64565b612045565b6116e98383612286565b505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b61177d6133c3565b600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208263ffffffff16815481106117fa577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020016040518060400160405290816000820160009054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016000820160049054906101000a90047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1681525050905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561191b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119129061422d565b60405180910390fd5b6119276000838361268b565b80600260008282546119399190614309565b92505081905550806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461198e9190614309565b925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516119f39190614268565b60405180910390a3611a0760008383612690565b5050565b60008183611a199190614309565b905092915050565b60007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8016821115611a84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a7b9061414d565b60405180910390fd5b819050919050565b600063ffffffff8016821115611ad7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ace906141ad565b60405180910390fd5b819050919050565b505050565b60008183611af291906143ea565b905092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611bdc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bd3906141cd565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611c4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c439061400d565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051611d2a9190614268565b60405180910390a3505050565b611d4182826118ab565b611d496126bb565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16611d6f610a82565b1115611db0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611da79061412d565b60405180910390fd5b611dbe6008611a0b836126df565b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611e34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e2b9061416d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611ea4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e9b90613f2d565b60405180910390fd5b611eaf83838361268b565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611f35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f2c9061406d565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611fc89190614309565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161202c9190614268565b60405180910390a361203f848484612690565b50505050565b61204f828261113b565b6120de576120748173ffffffffffffffffffffffffffffffffffffffff1660146129c9565b6120828360001c60206129c9565b604051602001612093929190613d02565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120d59190613ecb565b60405180910390fd5b5050565b6120ec828261113b565b6121bf5760016009600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612164611b64565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60007f0000000000000000000000000000000000000000000000000000000000000000461415612215577f00000000000000000000000000000000000000000000000000000000000000009050612283565b6122807f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000612cc3565b90505b90565b612290828261113b565b156123645760006009600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612309611b64565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6000808380549050905060005b8181101561240d5760006123898284612cfd565b9050848682815481106123c5577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160000160009054906101000a900463ffffffff1663ffffffff1611156123f757809250612407565b6001816124049190614309565b91505b50612375565b60008214612495578460018361242391906143ea565b8154811061245a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160000160049054906101000a90047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16612498565b60005b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff169250505092915050565b60006124cb83610dae565b905060006124d884610eb3565b905082600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f60405160405180910390a46125d4828483612d23565b50505050565b600081600001549050919050565b60006125fb6125f56121c3565b83612f1c565b9050919050565b600080600061261387878787612f4f565b915091506126208161305c565b8192505050949350505050565b600080600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905061267a816125da565b9150612685816133ad565b50919050565b505050565b61269b838383611adf565b6126b66126a784610dae565b6126b084610dae565b83612d23565b505050565b60007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff905090565b60008060008580549050905060008114612773578560018261270191906143ea565b81548110612738577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160000160049054906101000a90047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16612776565b60005b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1692506127a483858763ffffffff16565b915060008111801561281d575043866001836127c091906143ea565b815481106127f7577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160000160009054906101000a900463ffffffff1663ffffffff16145b156128d05761282b82611a21565b8660018361283991906143ea565b81548110612870577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160000160046101000a8154817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff02191690837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1602179055506129c0565b8560405180604001604052806128e543611a8c565b63ffffffff1681526020016128f985611a21565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff168152509080600181540180825580915050600190039060005260206000200160009091909190915060008201518160000160006101000a81548163ffffffff021916908363ffffffff16021790555060208201518160000160046101000a8154817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff02191690837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16021790555050505b50935093915050565b6060600060028360026129dc9190614390565b6129e69190614309565b67ffffffffffffffff811115612a25577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612a575781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110612ab5577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612b3f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002612b7f9190614390565b612b899190614309565b90505b6001811115612c75577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110612bf1577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b828281518110612c2e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080612c6e90614514565b9050612b8c565b5060008414612cb9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cb090613f0d565b60405180910390fd5b8091505092915050565b60008383834630604051602001612cde959493929190613e33565b6040516020818303038152906040528051906020012090509392505050565b60006002828418612d0e919061435f565b828416612d1b9190614309565b905092915050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015612d5f5750600081115b15612f1757600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612e3d57600080612de6600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020611ae4856126df565b915091508473ffffffffffffffffffffffffffffffffffffffff167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248383604051612e32929190614283565b60405180910390a250505b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612f1657600080612ebf600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020611a0b856126df565b915091508373ffffffffffffffffffffffffffffffffffffffff167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248383604051612f0b929190614283565b60405180910390a250505b5b505050565b60008282604051602001612f31929190613ccb565b60405160208183030381529060405280519060200120905092915050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115612f8a576000600391509150613053565b601b8560ff1614158015612fa25750601c8560ff1614155b15612fb4576000600491509150613053565b600060018787878760405160008152602001604052604051612fd99493929190613e86565b6020604051602081039080840390855afa158015612ffb573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561304a57600060019250925050613053565b80600092509250505b94509492505050565b60006004811115613096577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8160048111156130cf577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14156130da576133aa565b60016004811115613114577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b81600481111561314d577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b141561318e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161318590613eed565b60405180910390fd5b600260048111156131c8577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613201577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613242576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161323990613fad565b60405180910390fd5b6003600481111561327c577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8160048111156132b5577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14156132f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132ed9061408d565b60405180910390fd5b60048081111561332f577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613368577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14156133a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133a0906140ad565b60405180910390fd5b5b50565b6001816000016000828254019250508190555050565b6040518060400160405280600063ffffffff16815260200160007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1681525090565b60008135905061341081614d20565b92915050565b60008135905061342581614d37565b92915050565b60008135905061343a81614d4e565b92915050565b60008135905061344f81614d65565b92915050565b60008135905061346481614d7c565b92915050565b60008135905061347981614d93565b92915050565b60006020828403121561349157600080fd5b600061349f84828501613401565b91505092915050565b600080604083850312156134bb57600080fd5b60006134c985828601613401565b92505060206134da85828601613401565b9150509250929050565b6000806000606084860312156134f957600080fd5b600061350786828701613401565b935050602061351886828701613401565b925050604061352986828701613440565b9150509250925092565b600080600080600080600060e0888a03121561354e57600080fd5b600061355c8a828b01613401565b975050602061356d8a828b01613401565b965050604061357e8a828b01613440565b955050606061358f8a828b01613440565b94505060806135a08a828b0161346a565b93505060a06135b18a828b01613416565b92505060c06135c28a828b01613416565b91505092959891949750929550565b600080604083850312156135e457600080fd5b60006135f285828601613401565b925050602061360385828601613440565b9150509250929050565b60008060008060008060c0878903121561362657600080fd5b600061363489828a01613401565b965050602061364589828a01613440565b955050604061365689828a01613440565b945050606061366789828a0161346a565b935050608061367889828a01613416565b92505060a061368989828a01613416565b9150509295509295509295565b600080604083850312156136a957600080fd5b60006136b785828601613401565b92505060206136c885828601613455565b9150509250929050565b6000602082840312156136e457600080fd5b60006136f284828501613416565b91505092915050565b6000806040838503121561370e57600080fd5b600061371c85828601613416565b925050602061372d85828601613401565b9150509250929050565b60006020828403121561374957600080fd5b60006137578482850161342b565b91505092915050565b60006020828403121561377257600080fd5b600061378084828501613440565b91505092915050565b6137928161441e565b82525050565b6137a181614430565b82525050565b6137b08161443c565b82525050565b6137c76137c28261443c565b614570565b82525050565b60006137d8826142e2565b6137e281856142ed565b93506137f28185602086016144e1565b6137fb81614607565b840191505092915050565b6000613811826142e2565b61381b81856142fe565b935061382b8185602086016144e1565b80840191505092915050565b60006138446018836142ed565b915061384f82614618565b602082019050919050565b60006138676020836142ed565b915061387282614641565b602082019050919050565b600061388a6023836142ed565b91506138958261466a565b604082019050919050565b60006138ad601f836142ed565b91506138b8826146b9565b602082019050919050565b60006138d06010836142ed565b91506138db826146e2565b602082019050919050565b60006138f3601d836142ed565b91506138fe8261470b565b602082019050919050565b6000613916601f836142ed565b915061392182614734565b602082019050919050565b60006139396019836142ed565b91506139448261475d565b602082019050919050565b600061395c600e836142ed565b915061396782614786565b602082019050919050565b600061397f6022836142ed565b915061398a826147af565b604082019050919050565b60006139a2602b836142ed565b91506139ad826147fe565b604082019050919050565b60006139c56002836142fe565b91506139d08261484d565b600282019050919050565b60006139e8601d836142ed565b91506139f382614876565b602082019050919050565b6000613a0b6026836142ed565b9150613a168261489f565b604082019050919050565b6000613a2e6022836142ed565b9150613a39826148ee565b604082019050919050565b6000613a516022836142ed565b9150613a5c8261493d565b604082019050919050565b6000613a746023836142ed565b9150613a7f8261498c565b604082019050919050565b6000613a97601e836142ed565b9150613aa2826149db565b602082019050919050565b6000613aba6028836142ed565b9150613ac582614a04565b604082019050919050565b6000613add6030836142ed565b9150613ae882614a53565b604082019050919050565b6000613b006027836142ed565b9150613b0b82614aa2565b604082019050919050565b6000613b236025836142ed565b9150613b2e82614af1565b604082019050919050565b6000613b466018836142ed565b9150613b5182614b40565b602082019050919050565b6000613b696026836142ed565b9150613b7482614b69565b604082019050919050565b6000613b8c6024836142ed565b9150613b9782614bb8565b604082019050919050565b6000613baf6017836142fe565b9150613bba82614c07565b601782019050919050565b6000613bd26025836142ed565b9150613bdd82614c30565b604082019050919050565b6000613bf56011836142fe565b9150613c0082614c7f565b601182019050919050565b6000613c18602f836142ed565b9150613c2382614ca8565b604082019050919050565b6000613c3b601f836142ed565b9150613c4682614cf7565b602082019050919050565b604082016000820151613c676000850182613c9e565b506020820151613c7a6020850182613c80565b50505050565b613c8981614492565b82525050565b613c98816144ba565b82525050565b613ca7816144c4565b82525050565b613cb6816144c4565b82525050565b613cc5816144d4565b82525050565b6000613cd6826139b8565b9150613ce282856137b6565b602082019150613cf282846137b6565b6020820191508190509392505050565b6000613d0d82613ba2565b9150613d198285613806565b9150613d2482613be8565b9150613d308284613806565b91508190509392505050565b6000602082019050613d516000830184613789565b92915050565b6000602082019050613d6c6000830184613798565b92915050565b6000602082019050613d8760008301846137a7565b92915050565b600060c082019050613da260008301896137a7565b613daf6020830188613789565b613dbc6040830187613789565b613dc96060830186613c8f565b613dd66080830185613c8f565b613de360a0830184613c8f565b979650505050505050565b6000608082019050613e0360008301876137a7565b613e106020830186613789565b613e1d6040830185613c8f565b613e2a6060830184613c8f565b95945050505050565b600060a082019050613e4860008301886137a7565b613e5560208301876137a7565b613e6260408301866137a7565b613e6f6060830185613c8f565b613e7c6080830184613789565b9695505050505050565b6000608082019050613e9b60008301876137a7565b613ea86020830186613cbc565b613eb560408301856137a7565b613ec260608301846137a7565b95945050505050565b60006020820190508181036000830152613ee581846137cd565b905092915050565b60006020820190508181036000830152613f0681613837565b9050919050565b60006020820190508181036000830152613f268161385a565b9050919050565b60006020820190508181036000830152613f468161387d565b9050919050565b60006020820190508181036000830152613f66816138a0565b9050919050565b60006020820190508181036000830152613f86816138c3565b9050919050565b60006020820190508181036000830152613fa6816138e6565b9050919050565b60006020820190508181036000830152613fc681613909565b9050919050565b60006020820190508181036000830152613fe68161392c565b9050919050565b600060208201905081810360008301526140068161394f565b9050919050565b6000602082019050818103600083015261402681613972565b9050919050565b6000602082019050818103600083015261404681613995565b9050919050565b60006020820190508181036000830152614066816139db565b9050919050565b60006020820190508181036000830152614086816139fe565b9050919050565b600060208201905081810360008301526140a681613a21565b9050919050565b600060208201905081810360008301526140c681613a44565b9050919050565b600060208201905081810360008301526140e681613a67565b9050919050565b6000602082019050818103600083015261410681613a8a565b9050919050565b6000602082019050818103600083015261412681613aad565b9050919050565b6000602082019050818103600083015261414681613ad0565b9050919050565b6000602082019050818103600083015261416681613af3565b9050919050565b6000602082019050818103600083015261418681613b16565b9050919050565b600060208201905081810360008301526141a681613b39565b9050919050565b600060208201905081810360008301526141c681613b5c565b9050919050565b600060208201905081810360008301526141e681613b7f565b9050919050565b6000602082019050818103600083015261420681613bc5565b9050919050565b6000602082019050818103600083015261422681613c0b565b9050919050565b6000602082019050818103600083015261424681613c2e565b9050919050565b60006040820190506142626000830184613c51565b92915050565b600060208201905061427d6000830184613c8f565b92915050565b60006040820190506142986000830185613c8f565b6142a56020830184613c8f565b9392505050565b60006020820190506142c16000830184613cad565b92915050565b60006020820190506142dc6000830184613cbc565b92915050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b6000614314826144ba565b915061431f836144ba565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156143545761435361457a565b5b828201905092915050565b600061436a826144ba565b9150614375836144ba565b925082614385576143846145a9565b5b828204905092915050565b600061439b826144ba565b91506143a6836144ba565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156143df576143de61457a565b5b828202905092915050565b60006143f5826144ba565b9150614400836144ba565b9250828210156144135761441261457a565b5b828203905092915050565b600061442982614472565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600063ffffffff82169050919050565b600060ff82169050919050565b60005b838110156144ff5780820151818401526020810190506144e4565b8381111561450e576000848401525b50505050565b600061451f826144ba565b915060008214156145335761453261457a565b5b600182039050919050565b6000600282049050600182168061455657607f821691505b6020821081141561456a576145696145d8565b5b50919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000601f19601f8301169050919050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433230566f7465733a20626c6f636b206e6f7420796574206d696e656400600082015250565b7f43414e4e4f545f4d494e545f5a45524f00000000000000000000000000000000600082015250565b7f4552433230566f7465733a207369676e61747572652065787069726564000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b7f4552433230566f7465733a20696e76616c6964206e6f6e636500000000000000600082015250565b7f4d494e545f544f4f5f4541524c59000000000000000000000000000000000000600082015250565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b7f63616e6e6f7420736574206f72206d696e7420746f207a65726f20747265617360008201527f7572792061646472657373000000000000000000000000000000000000000000602082015250565b7f1901000000000000000000000000000000000000000000000000000000000000600082015250565b7f45524332305065726d69743a206578706972656420646561646c696e65000000600082015250565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f43616c6c657220646f6573206e6f742068617665207468652041444d494e5f5260008201527f4f4c450000000000000000000000000000000000000000000000000000000000602082015250565b7f45524332305065726d69743a20696e76616c6964207369676e61747572650000600082015250565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206160008201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000602082015250565b7f4552433230566f7465733a20746f74616c20737570706c79207269736b73206f60008201527f766572666c6f77696e6720766f74657300000000000000000000000000000000602082015250565b7f53616665436173743a2076616c756520646f65736e27742066697420696e203260008201527f3234206269747300000000000000000000000000000000000000000000000000602082015250565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f494e56414c49445f54524541535552595f414444524553530000000000000000600082015250565b7f53616665436173743a2076616c756520646f65736e27742066697420696e203360008201527f3220626974730000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b614d298161441e565b8114614d3457600080fd5b50565b614d408161443c565b8114614d4b57600080fd5b50565b614d5781614446565b8114614d6257600080fd5b50565b614d6e816144ba565b8114614d7957600080fd5b50565b614d85816144c4565b8114614d9057600080fd5b50565b614d9c816144d4565b8114614da757600080fd5b5056fea264697066735822122057f8f198abcb477c4822b6aab22d840b3627e700a910c1b25731821db359d18064736f6c6343000804003300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000167c2f882c034b5149153a000000000000000000000000000000000000000000000000000000006955b90000000000000000000000000025aa4a183800ecab962d84ccc7ada58d4e126992000000000000000000000000000000000000000000000000000000000000000545756c6572000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000345554c0000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061021c5760003560e01c806369e3b0d0116101255780639ab24eb0116100ad578063c3cda5201161007c578063c3cda520146106b5578063d505accf146106d1578063d547741f146106ed578063dd62ed3e14610709578063f1127ed8146107395761021c565b80639ab24eb014610607578063a217fddf14610637578063a457c2d714610655578063a9059cbb146106855761021c565b80637ecebe00116100f45780637ecebe001461053d5780637f51bb1f1461056d5780638e539e8c1461058957806391d14854146105b957806395d89b41146105e95761021c565b806369e3b0d0146104a15780636fcfff45146104bf57806370a08231146104ef57806375b238fc1461051f5761021c565b80633644e515116101a8578063449443f211610177578063449443f2146103fb578063587cde1e146104195780635c19a95c1461044957806361d027b314610465578063657c7a85146104835761021c565b80633644e5151461036157806336568abe1461037f578063395093511461039b5780633a46b1a8146103cb5761021c565b806318160ddd116101ef57806318160ddd146102a957806323b872dd146102c7578063248a9ca3146102f75780632f2ff15d14610327578063313ce567146103435761021c565b806301ffc9a71461022157806306fdde0314610251578063095ea7b31461026f5780631249c58b1461029f575b600080fd5b61023b60048036038101906102369190613737565b610769565b6040516102489190613d57565b60405180910390f35b6102596107e3565b6040516102669190613ecb565b60405180910390f35b610289600480360381019061028491906135d1565b610875565b6040516102969190613d57565b60405180910390f35b6102a7610893565b005b6102b1610a82565b6040516102be9190614268565b60405180910390f35b6102e160048036038101906102dc91906134e4565b610a8c565b6040516102ee9190613d57565b60405180910390f35b610311600480360381019061030c91906136d2565b610b84565b60405161031e9190613d72565b60405180910390f35b610341600480360381019061033c91906136fb565b610ba4565b005b61034b610bcd565b60405161035891906142c7565b60405180910390f35b610369610bd6565b6040516103769190613d72565b60405180910390f35b610399600480360381019061039491906136fb565b610be5565b005b6103b560048036038101906103b091906135d1565b610c68565b6040516103c29190613d57565b60405180910390f35b6103e560048036038101906103e091906135d1565b610d14565b6040516103f29190614268565b60405180910390f35b610403610da8565b6040516104109190614268565b60405180910390f35b610433600480360381019061042e919061347f565b610dae565b6040516104409190613d3c565b60405180910390f35b610463600480360381019061045e919061347f565b610e17565b005b61046d610e2b565b60405161047a9190613d3c565b60405180910390f35b61048b610e51565b6040516104989190614268565b60405180910390f35b6104a9610e57565b6040516104b69190614268565b60405180910390f35b6104d960048036038101906104d4919061347f565b610e5f565b6040516104e691906142ac565b60405180910390f35b6105096004803603810190610504919061347f565b610eb3565b6040516105169190614268565b60405180910390f35b610527610efb565b6040516105349190613d72565b60405180910390f35b6105576004803603810190610552919061347f565b610f1f565b6040516105649190614268565b60405180910390f35b6105876004803603810190610582919061347f565b610f6f565b005b6105a3600480360381019061059e9190613760565b6110e5565b6040516105b09190614268565b60405180910390f35b6105d360048036038101906105ce91906136fb565b61113b565b6040516105e09190613d57565b60405180910390f35b6105f16111a6565b6040516105fe9190613ecb565b60405180910390f35b610621600480360381019061061c919061347f565b611238565b60405161062e9190614268565b60405180910390f35b61063f61136f565b60405161064c9190613d72565b60405180910390f35b61066f600480360381019061066a91906135d1565b611376565b60405161067c9190613d57565b60405180910390f35b61069f600480360381019061069a91906135d1565b611461565b6040516106ac9190613d57565b60405180910390f35b6106cf60048036038101906106ca919061360d565b61147f565b005b6106eb60048036038101906106e69190613533565b611583565b005b610707600480360381019061070291906136fb565b6116c5565b005b610723600480360381019061071e91906134a8565b6116ee565b6040516107309190614268565b60405180910390f35b610753600480360381019061074e9190613696565b611775565b604051610760919061424d565b60405180910390f35b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806107dc57506107db82611afa565b5b9050919050565b6060600380546107f29061453e565b80601f016020809104026020016040519081016040528092919081815260200182805461081e9061453e565b801561086b5780601f106108405761010080835404028352916020019161086b565b820191906000526020600020905b81548152906001019060200180831161084e57829003601f168201915b5050505050905090565b6000610889610882611b64565b8484611b6c565b6001905092915050565b6108bd7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217753361113b565b6108fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906140cd565b60405180910390fd5b600a54421015610941576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161093890613fed565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156109d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109ca9061418d565b60405180910390fd5b6000620186a0610a9e6109e4610a82565b6109ee9190614390565b6109f8919061435f565b905060008111610a3d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3490613f6d565b60405180910390fd5b6301e1338042610a4d9190614309565b600a81905550610a7f600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682611d37565b50565b6000600254905090565b6000610a99848484611dc4565b6000600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000610ae4611b64565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015610b64576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5b9061410d565b60405180910390fd5b610b7885610b70611b64565b858403611b6c565b60019150509392505050565b600060096000838152602001908152602001600020600101549050919050565b610bad82610b84565b610bbe81610bb9611b64565b612045565b610bc883836120e2565b505050565b60006012905090565b6000610be06121c3565b905090565b610bed611b64565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610c5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c519061420d565b60405180910390fd5b610c648282612286565b5050565b6000610d0a610c75611b64565b848460016000610c83611b64565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610d059190614309565b611b6c565b6001905092915050565b6000438210610d58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4f90613f4d565b60405180910390fd5b610da0600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002083612368565b905092915050565b600a5481565b6000600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b610e28610e22611b64565b826124c0565b50565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610a9e81565b6301e1338081565b6000610eac600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050611a8c565b9050919050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b6000610f68600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206125da565b9050919050565b610f997fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217753361113b565b610fd8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fcf906140cd565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611048576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161103f9061402d565b60405180910390fd5b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f7dae230f18360d76a040c81f050aa14eb9d6dc7901b20fc5d855e2a20fe814d1600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040516110da9190613d3c565b60405180910390a150565b6000438210611129576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112090613f4d565b60405180910390fd5b611134600883612368565b9050919050565b60006009600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6060600480546111b59061453e565b80601f01602080910402602001604051908101604052809291908181526020018280546111e19061453e565b801561122e5780601f106112035761010080835404028352916020019161122e565b820191906000526020600020905b81548152906001019060200180831161121157829003601f168201915b5050505050905090565b600080600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054905090506000811461134657600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001826112d491906143ea565b8154811061130b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160000160049054906101000a90047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16611349565b60005b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16915050919050565b6000801b81565b60008060016000611385611b64565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015611442576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611439906141ed565b60405180910390fd5b61145661144d611b64565b85858403611b6c565b600191505092915050565b600061147561146e611b64565b8484611dc4565b6001905092915050565b834211156114c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114b990613f8d565b60405180910390fd5b600061152461151c7fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf8989896040516020016115019493929190613dee565b604051602081830303815290604052805190602001206125e8565b858585612602565b905061152f8161262d565b8614611570576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161156790613fcd565b60405180910390fd5b61157a81886124c0565b50505050505050565b834211156115c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115bd9061404d565b60405180910390fd5b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98888886115f58c61262d565b8960405160200161160b96959493929190613d8d565b604051602081830303815290604052805190602001209050600061162e826125e8565b9050600061163e82878787612602565b90508973ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146116ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116a5906140ed565b60405180910390fd5b6116b98a8a8a611b6c565b50505050505050505050565b6116ce82610b84565b6116df816116da611b64565b612045565b6116e98383612286565b505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b61177d6133c3565b600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208263ffffffff16815481106117fa577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020016040518060400160405290816000820160009054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016000820160049054906101000a90047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1681525050905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561191b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119129061422d565b60405180910390fd5b6119276000838361268b565b80600260008282546119399190614309565b92505081905550806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461198e9190614309565b925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516119f39190614268565b60405180910390a3611a0760008383612690565b5050565b60008183611a199190614309565b905092915050565b60007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8016821115611a84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a7b9061414d565b60405180910390fd5b819050919050565b600063ffffffff8016821115611ad7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ace906141ad565b60405180910390fd5b819050919050565b505050565b60008183611af291906143ea565b905092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611bdc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bd3906141cd565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611c4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c439061400d565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051611d2a9190614268565b60405180910390a3505050565b611d4182826118ab565b611d496126bb565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16611d6f610a82565b1115611db0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611da79061412d565b60405180910390fd5b611dbe6008611a0b836126df565b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611e34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e2b9061416d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611ea4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e9b90613f2d565b60405180910390fd5b611eaf83838361268b565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611f35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f2c9061406d565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611fc89190614309565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161202c9190614268565b60405180910390a361203f848484612690565b50505050565b61204f828261113b565b6120de576120748173ffffffffffffffffffffffffffffffffffffffff1660146129c9565b6120828360001c60206129c9565b604051602001612093929190613d02565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120d59190613ecb565b60405180910390fd5b5050565b6120ec828261113b565b6121bf5760016009600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612164611b64565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60007f0000000000000000000000000000000000000000000000000000000000000001461415612215577f033df809c37647aaca6909da290b9c07248dee4ccc343f47191e584a60295e759050612283565b6122807f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f7f0c639763726f8d5be19355f6f79ceeef8434c10dac5ea71d01a38f92b135661f7fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6612cc3565b90505b90565b612290828261113b565b156123645760006009600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612309611b64565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6000808380549050905060005b8181101561240d5760006123898284612cfd565b9050848682815481106123c5577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160000160009054906101000a900463ffffffff1663ffffffff1611156123f757809250612407565b6001816124049190614309565b91505b50612375565b60008214612495578460018361242391906143ea565b8154811061245a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160000160049054906101000a90047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16612498565b60005b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff169250505092915050565b60006124cb83610dae565b905060006124d884610eb3565b905082600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f60405160405180910390a46125d4828483612d23565b50505050565b600081600001549050919050565b60006125fb6125f56121c3565b83612f1c565b9050919050565b600080600061261387878787612f4f565b915091506126208161305c565b8192505050949350505050565b600080600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905061267a816125da565b9150612685816133ad565b50919050565b505050565b61269b838383611adf565b6126b66126a784610dae565b6126b084610dae565b83612d23565b505050565b60007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff905090565b60008060008580549050905060008114612773578560018261270191906143ea565b81548110612738577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160000160049054906101000a90047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16612776565b60005b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1692506127a483858763ffffffff16565b915060008111801561281d575043866001836127c091906143ea565b815481106127f7577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160000160009054906101000a900463ffffffff1663ffffffff16145b156128d05761282b82611a21565b8660018361283991906143ea565b81548110612870577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160000160046101000a8154817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff02191690837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1602179055506129c0565b8560405180604001604052806128e543611a8c565b63ffffffff1681526020016128f985611a21565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff168152509080600181540180825580915050600190039060005260206000200160009091909190915060008201518160000160006101000a81548163ffffffff021916908363ffffffff16021790555060208201518160000160046101000a8154817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff02191690837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16021790555050505b50935093915050565b6060600060028360026129dc9190614390565b6129e69190614309565b67ffffffffffffffff811115612a25577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612a575781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110612ab5577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612b3f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002612b7f9190614390565b612b899190614309565b90505b6001811115612c75577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110612bf1577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b828281518110612c2e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080612c6e90614514565b9050612b8c565b5060008414612cb9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cb090613f0d565b60405180910390fd5b8091505092915050565b60008383834630604051602001612cde959493929190613e33565b6040516020818303038152906040528051906020012090509392505050565b60006002828418612d0e919061435f565b828416612d1b9190614309565b905092915050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015612d5f5750600081115b15612f1757600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612e3d57600080612de6600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020611ae4856126df565b915091508473ffffffffffffffffffffffffffffffffffffffff167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248383604051612e32929190614283565b60405180910390a250505b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612f1657600080612ebf600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020611a0b856126df565b915091508373ffffffffffffffffffffffffffffffffffffffff167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248383604051612f0b929190614283565b60405180910390a250505b5b505050565b60008282604051602001612f31929190613ccb565b60405160208183030381529060405280519060200120905092915050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115612f8a576000600391509150613053565b601b8560ff1614158015612fa25750601c8560ff1614155b15612fb4576000600491509150613053565b600060018787878760405160008152602001604052604051612fd99493929190613e86565b6020604051602081039080840390855afa158015612ffb573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561304a57600060019250925050613053565b80600092509250505b94509492505050565b60006004811115613096577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8160048111156130cf577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14156130da576133aa565b60016004811115613114577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b81600481111561314d577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b141561318e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161318590613eed565b60405180910390fd5b600260048111156131c8577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613201577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613242576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161323990613fad565b60405180910390fd5b6003600481111561327c577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8160048111156132b5577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14156132f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132ed9061408d565b60405180910390fd5b60048081111561332f577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613368577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14156133a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133a0906140ad565b60405180910390fd5b5b50565b6001816000016000828254019250508190555050565b6040518060400160405280600063ffffffff16815260200160007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1681525090565b60008135905061341081614d20565b92915050565b60008135905061342581614d37565b92915050565b60008135905061343a81614d4e565b92915050565b60008135905061344f81614d65565b92915050565b60008135905061346481614d7c565b92915050565b60008135905061347981614d93565b92915050565b60006020828403121561349157600080fd5b600061349f84828501613401565b91505092915050565b600080604083850312156134bb57600080fd5b60006134c985828601613401565b92505060206134da85828601613401565b9150509250929050565b6000806000606084860312156134f957600080fd5b600061350786828701613401565b935050602061351886828701613401565b925050604061352986828701613440565b9150509250925092565b600080600080600080600060e0888a03121561354e57600080fd5b600061355c8a828b01613401565b975050602061356d8a828b01613401565b965050604061357e8a828b01613440565b955050606061358f8a828b01613440565b94505060806135a08a828b0161346a565b93505060a06135b18a828b01613416565b92505060c06135c28a828b01613416565b91505092959891949750929550565b600080604083850312156135e457600080fd5b60006135f285828601613401565b925050602061360385828601613440565b9150509250929050565b60008060008060008060c0878903121561362657600080fd5b600061363489828a01613401565b965050602061364589828a01613440565b955050604061365689828a01613440565b945050606061366789828a0161346a565b935050608061367889828a01613416565b92505060a061368989828a01613416565b9150509295509295509295565b600080604083850312156136a957600080fd5b60006136b785828601613401565b92505060206136c885828601613455565b9150509250929050565b6000602082840312156136e457600080fd5b60006136f284828501613416565b91505092915050565b6000806040838503121561370e57600080fd5b600061371c85828601613416565b925050602061372d85828601613401565b9150509250929050565b60006020828403121561374957600080fd5b60006137578482850161342b565b91505092915050565b60006020828403121561377257600080fd5b600061378084828501613440565b91505092915050565b6137928161441e565b82525050565b6137a181614430565b82525050565b6137b08161443c565b82525050565b6137c76137c28261443c565b614570565b82525050565b60006137d8826142e2565b6137e281856142ed565b93506137f28185602086016144e1565b6137fb81614607565b840191505092915050565b6000613811826142e2565b61381b81856142fe565b935061382b8185602086016144e1565b80840191505092915050565b60006138446018836142ed565b915061384f82614618565b602082019050919050565b60006138676020836142ed565b915061387282614641565b602082019050919050565b600061388a6023836142ed565b91506138958261466a565b604082019050919050565b60006138ad601f836142ed565b91506138b8826146b9565b602082019050919050565b60006138d06010836142ed565b91506138db826146e2565b602082019050919050565b60006138f3601d836142ed565b91506138fe8261470b565b602082019050919050565b6000613916601f836142ed565b915061392182614734565b602082019050919050565b60006139396019836142ed565b91506139448261475d565b602082019050919050565b600061395c600e836142ed565b915061396782614786565b602082019050919050565b600061397f6022836142ed565b915061398a826147af565b604082019050919050565b60006139a2602b836142ed565b91506139ad826147fe565b604082019050919050565b60006139c56002836142fe565b91506139d08261484d565b600282019050919050565b60006139e8601d836142ed565b91506139f382614876565b602082019050919050565b6000613a0b6026836142ed565b9150613a168261489f565b604082019050919050565b6000613a2e6022836142ed565b9150613a39826148ee565b604082019050919050565b6000613a516022836142ed565b9150613a5c8261493d565b604082019050919050565b6000613a746023836142ed565b9150613a7f8261498c565b604082019050919050565b6000613a97601e836142ed565b9150613aa2826149db565b602082019050919050565b6000613aba6028836142ed565b9150613ac582614a04565b604082019050919050565b6000613add6030836142ed565b9150613ae882614a53565b604082019050919050565b6000613b006027836142ed565b9150613b0b82614aa2565b604082019050919050565b6000613b236025836142ed565b9150613b2e82614af1565b604082019050919050565b6000613b466018836142ed565b9150613b5182614b40565b602082019050919050565b6000613b696026836142ed565b9150613b7482614b69565b604082019050919050565b6000613b8c6024836142ed565b9150613b9782614bb8565b604082019050919050565b6000613baf6017836142fe565b9150613bba82614c07565b601782019050919050565b6000613bd26025836142ed565b9150613bdd82614c30565b604082019050919050565b6000613bf56011836142fe565b9150613c0082614c7f565b601182019050919050565b6000613c18602f836142ed565b9150613c2382614ca8565b604082019050919050565b6000613c3b601f836142ed565b9150613c4682614cf7565b602082019050919050565b604082016000820151613c676000850182613c9e565b506020820151613c7a6020850182613c80565b50505050565b613c8981614492565b82525050565b613c98816144ba565b82525050565b613ca7816144c4565b82525050565b613cb6816144c4565b82525050565b613cc5816144d4565b82525050565b6000613cd6826139b8565b9150613ce282856137b6565b602082019150613cf282846137b6565b6020820191508190509392505050565b6000613d0d82613ba2565b9150613d198285613806565b9150613d2482613be8565b9150613d308284613806565b91508190509392505050565b6000602082019050613d516000830184613789565b92915050565b6000602082019050613d6c6000830184613798565b92915050565b6000602082019050613d8760008301846137a7565b92915050565b600060c082019050613da260008301896137a7565b613daf6020830188613789565b613dbc6040830187613789565b613dc96060830186613c8f565b613dd66080830185613c8f565b613de360a0830184613c8f565b979650505050505050565b6000608082019050613e0360008301876137a7565b613e106020830186613789565b613e1d6040830185613c8f565b613e2a6060830184613c8f565b95945050505050565b600060a082019050613e4860008301886137a7565b613e5560208301876137a7565b613e6260408301866137a7565b613e6f6060830185613c8f565b613e7c6080830184613789565b9695505050505050565b6000608082019050613e9b60008301876137a7565b613ea86020830186613cbc565b613eb560408301856137a7565b613ec260608301846137a7565b95945050505050565b60006020820190508181036000830152613ee581846137cd565b905092915050565b60006020820190508181036000830152613f0681613837565b9050919050565b60006020820190508181036000830152613f268161385a565b9050919050565b60006020820190508181036000830152613f468161387d565b9050919050565b60006020820190508181036000830152613f66816138a0565b9050919050565b60006020820190508181036000830152613f86816138c3565b9050919050565b60006020820190508181036000830152613fa6816138e6565b9050919050565b60006020820190508181036000830152613fc681613909565b9050919050565b60006020820190508181036000830152613fe68161392c565b9050919050565b600060208201905081810360008301526140068161394f565b9050919050565b6000602082019050818103600083015261402681613972565b9050919050565b6000602082019050818103600083015261404681613995565b9050919050565b60006020820190508181036000830152614066816139db565b9050919050565b60006020820190508181036000830152614086816139fe565b9050919050565b600060208201905081810360008301526140a681613a21565b9050919050565b600060208201905081810360008301526140c681613a44565b9050919050565b600060208201905081810360008301526140e681613a67565b9050919050565b6000602082019050818103600083015261410681613a8a565b9050919050565b6000602082019050818103600083015261412681613aad565b9050919050565b6000602082019050818103600083015261414681613ad0565b9050919050565b6000602082019050818103600083015261416681613af3565b9050919050565b6000602082019050818103600083015261418681613b16565b9050919050565b600060208201905081810360008301526141a681613b39565b9050919050565b600060208201905081810360008301526141c681613b5c565b9050919050565b600060208201905081810360008301526141e681613b7f565b9050919050565b6000602082019050818103600083015261420681613bc5565b9050919050565b6000602082019050818103600083015261422681613c0b565b9050919050565b6000602082019050818103600083015261424681613c2e565b9050919050565b60006040820190506142626000830184613c51565b92915050565b600060208201905061427d6000830184613c8f565b92915050565b60006040820190506142986000830185613c8f565b6142a56020830184613c8f565b9392505050565b60006020820190506142c16000830184613cad565b92915050565b60006020820190506142dc6000830184613cbc565b92915050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b6000614314826144ba565b915061431f836144ba565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156143545761435361457a565b5b828201905092915050565b600061436a826144ba565b9150614375836144ba565b925082614385576143846145a9565b5b828204905092915050565b600061439b826144ba565b91506143a6836144ba565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156143df576143de61457a565b5b828202905092915050565b60006143f5826144ba565b9150614400836144ba565b9250828210156144135761441261457a565b5b828203905092915050565b600061442982614472565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600063ffffffff82169050919050565b600060ff82169050919050565b60005b838110156144ff5780820151818401526020810190506144e4565b8381111561450e576000848401525b50505050565b600061451f826144ba565b915060008214156145335761453261457a565b5b600182039050919050565b6000600282049050600182168061455657607f821691505b6020821081141561456a576145696145d8565b5b50919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000601f19601f8301169050919050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433230566f7465733a20626c6f636b206e6f7420796574206d696e656400600082015250565b7f43414e4e4f545f4d494e545f5a45524f00000000000000000000000000000000600082015250565b7f4552433230566f7465733a207369676e61747572652065787069726564000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b7f4552433230566f7465733a20696e76616c6964206e6f6e636500000000000000600082015250565b7f4d494e545f544f4f5f4541524c59000000000000000000000000000000000000600082015250565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b7f63616e6e6f7420736574206f72206d696e7420746f207a65726f20747265617360008201527f7572792061646472657373000000000000000000000000000000000000000000602082015250565b7f1901000000000000000000000000000000000000000000000000000000000000600082015250565b7f45524332305065726d69743a206578706972656420646561646c696e65000000600082015250565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f43616c6c657220646f6573206e6f742068617665207468652041444d494e5f5260008201527f4f4c450000000000000000000000000000000000000000000000000000000000602082015250565b7f45524332305065726d69743a20696e76616c6964207369676e61747572650000600082015250565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206160008201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000602082015250565b7f4552433230566f7465733a20746f74616c20737570706c79207269736b73206f60008201527f766572666c6f77696e6720766f74657300000000000000000000000000000000602082015250565b7f53616665436173743a2076616c756520646f65736e27742066697420696e203260008201527f3234206269747300000000000000000000000000000000000000000000000000602082015250565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f494e56414c49445f54524541535552595f414444524553530000000000000000600082015250565b7f53616665436173743a2076616c756520646f65736e27742066697420696e203360008201527f3220626974730000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b614d298161441e565b8114614d3457600080fd5b50565b614d408161443c565b8114614d4b57600080fd5b50565b614d5781614446565b8114614d6257600080fd5b50565b614d6e816144ba565b8114614d7957600080fd5b50565b614d85816144c4565b8114614d9057600080fd5b50565b614d9c816144d4565b8114614da757600080fd5b5056fea264697066735822122057f8f198abcb477c4822b6aab22d840b3627e700a910c1b25731821db359d18064736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000167c2f882c034b5149153a000000000000000000000000000000000000000000000000000000006955b90000000000000000000000000025aa4a183800ecab962d84ccc7ada58d4e126992000000000000000000000000000000000000000000000000000000000000000545756c6572000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000345554c0000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name (string): Euler
Arg [1] : symbol (string): EUL
Arg [2] : totalSupply_ (uint256): 27182818284590452353602874
Arg [3] : mintingRestrictedBefore_ (uint256): 1767225600
Arg [4] : treasury_ (address): 0x25Aa4a183800EcaB962d84ccC7ada58d4e126992
-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 000000000000000000000000000000000000000000167c2f882c034b5149153a
Arg [3] : 000000000000000000000000000000000000000000000000000000006955b900
Arg [4] : 00000000000000000000000025aa4a183800ecab962d84ccc7ada58d4e126992
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [6] : 45756c6572000000000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [8] : 45554c0000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.