ERC-20
Overview
Max Total Supply
20,000 SMX
Holders
10
Market
Price
-
Onchain Market Cap
-
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
13.448073637410691961 SMXValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
Contract Name:
SMX
Compiler Version
v0.8.10+commit.fc410830
Contract Source Code (Solidity)
/** *Submitted for verification at SonicScan.org on 2024-12-18 */ pragma solidity ^0.8.0; /** * @dev Interface of the ERC3156 FlashBorrower, as defined in * https://eips.ethereum.org/EIPS/eip-3156[ERC-3156]. * * _Available since v4.1._ */ interface IERC3156FlashBorrower { /** * @dev Receive a flash loan. * @param initiator The initiator of the loan. * @param token The loan currency. * @param amount The amount of tokens lent. * @param fee The additional amount of tokens to repay. * @param data Arbitrary data structure, intended to contain user-defined parameters. * @return The keccak256 hash of "ERC3156FlashBorrower.onFlashLoan" */ function onFlashLoan( address initiator, address token, uint256 amount, uint256 fee, bytes calldata data ) external returns (bytes32); } // File: https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/master/contracts/interfaces/IERC3156FlashLender.sol // OpenZeppelin Contracts v4.4.0 (interfaces/IERC3156FlashLender.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC3156 FlashLender, as defined in * https://eips.ethereum.org/EIPS/eip-3156[ERC-3156]. * * _Available since v4.1._ */ interface IERC3156FlashLender { /** * @dev The amount of currency available to be lended. * @param token The loan currency. * @return The amount of `token` that can be borrowed. */ function maxFlashLoan(address token) external view returns (uint256); /** * @dev The fee to be charged for a given loan. * @param token The loan currency. * @param amount The amount of tokens lent. * @return The amount of `token` to be charged for the loan, on top of the returned principal. */ function flashFee(address token, uint256 amount) external view returns (uint256); /** * @dev Initiate a flash loan. * @param receiver The receiver of the tokens in the loan, and the receiver of the callback. * @param token The loan currency. * @param amount The amount of tokens lent. * @param data Arbitrary data structure, intended to contain user-defined parameters. */ function flashLoan( IERC3156FlashBorrower receiver, address token, uint256 amount, bytes calldata data ) external returns (bool); } // File: https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/master/contracts/interfaces/IERC3156.sol // OpenZeppelin Contracts v4.4.0 (interfaces/IERC3156.sol) pragma solidity ^0.8.0; // File: https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/master/contracts/utils/math/SafeCast.sol // OpenZeppelin Contracts v4.4.0 (utils/math/SafeCast.sol) 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); } } // File: https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/master/contracts/utils/math/Math.sol // OpenZeppelin Contracts v4.4.0 (utils/math/Math.sol) 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); } /** * @dev Returns the absolute unsigned value of a signed value. */ function abs(int256 n) internal pure returns (uint256) { unchecked { // must be unchecked in order to support `n = type(int256).min` return uint256(n >= 0 ? n : -n); } } } // File: https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/master/contracts/utils/Counters.sol // OpenZeppelin Contracts v4.4.0 (utils/Counters.sol) 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; } } // File: https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/master/contracts/utils/Strings.sol // OpenZeppelin Contracts v4.4.0 (utils/Strings.sol) 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); } } // File: https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/master/contracts/utils/cryptography/ECDSA.sol // OpenZeppelin Contracts v4.4.0 (utils/cryptography/ECDSA.sol) 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 Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } } // File: https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/master/contracts/utils/cryptography/draft-EIP712.sol // OpenZeppelin Contracts v4.4.0 (utils/cryptography/draft-EIP712.sol) pragma solidity ^0.8.0; /** * @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; address private immutable _CACHED_THIS; 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); _CACHED_THIS = address(this); _TYPE_HASH = typeHash; } /** * @dev Returns the domain separator for the current chain. */ function _domainSeparatorV4() internal view returns (bytes32) { if (address(this) == _CACHED_THIS && 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); } } // File: https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/master/contracts/token/ERC20/extensions/draft-IERC20Permit.sol // OpenZeppelin Contracts v4.4.0 (token/ERC20/extensions/draft-IERC20Permit.sol) 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); } // File: https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/master/contracts/utils/Context.sol // OpenZeppelin Contracts v4.4.0 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File: https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/master/contracts/token/ERC20/IERC20.sol // OpenZeppelin Contracts v4.4.0 (token/ERC20/IERC20.sol) 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); } // File: https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/master/contracts/token/ERC20/extensions/IERC20Metadata.sol // OpenZeppelin Contracts v4.4.0 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); } // File: https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/master/contracts/token/ERC20/ERC20.sol // OpenZeppelin Contracts v4.4.0 (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.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 {} } // File: https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/master/contracts/token/ERC20/extensions/ERC20FlashMint.sol // OpenZeppelin Contracts v4.4.0 (token/ERC20/extensions/ERC20FlashMint.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the ERC3156 Flash loans extension, as defined in * https://eips.ethereum.org/EIPS/eip-3156[ERC-3156]. * * Adds the {flashLoan} method, which provides flash loan support at the token * level. By default there is no fee, but this can be changed by overriding {flashFee}. * * _Available since v4.1._ */ abstract contract ERC20FlashMint is ERC20, IERC3156FlashLender { bytes32 private constant _RETURN_VALUE = keccak256("ERC3156FlashBorrower.onFlashLoan"); /** * @dev Returns the maximum amount of tokens available for loan. * @param token The address of the token that is requested. * @return The amont of token that can be loaned. */ function maxFlashLoan(address token) public view override returns (uint256) { return token == address(this) ? type(uint256).max - ERC20.totalSupply() : 0; } /** * @dev Returns the fee applied when doing flash loans. By default this * implementation has 0 fees. This function can be overloaded to make * the flash loan mechanism deflationary. * @param token The token to be flash loaned. * @param amount The amount of tokens to be loaned. * @return The fees applied to the corresponding flash loan. */ function flashFee(address token, uint256 amount) public view virtual override returns (uint256) { require(token == address(this), "ERC20FlashMint: wrong token"); // silence warning about unused variable without the addition of bytecode. amount; return 0; } /** * @dev Performs a flash loan. New tokens are minted and sent to the * `receiver`, who is required to implement the {IERC3156FlashBorrower} * interface. By the end of the flash loan, the receiver is expected to own * amount + fee tokens and have them approved back to the token contract itself so * they can be burned. * @param receiver The receiver of the flash loan. Should implement the * {IERC3156FlashBorrower.onFlashLoan} interface. * @param token The token to be flash loaned. Only `address(this)` is * supported. * @param amount The amount of tokens to be loaned. * @param data An arbitrary datafield that is passed to the receiver. * @return `true` is the flash loan was successful. */ function flashLoan( IERC3156FlashBorrower receiver, address token, uint256 amount, bytes calldata data ) public virtual override returns (bool) { uint256 fee = flashFee(token, amount); _mint(address(receiver), amount); require( receiver.onFlashLoan(msg.sender, token, amount, fee, data) == _RETURN_VALUE, "ERC20FlashMint: invalid return value" ); uint256 currentAllowance = allowance(address(receiver), address(this)); require(currentAllowance >= amount + fee, "ERC20FlashMint: allowance does not allow refund"); _approve(address(receiver), address(this), currentAllowance - amount - fee); _burn(address(receiver), amount + fee); return true; } } // File: https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/master/contracts/token/ERC20/extensions/draft-ERC20Permit.sol // OpenZeppelin Contracts v4.4.0 (token/ERC20/extensions/draft-ERC20Permit.sol) pragma solidity ^0.8.0; /** * @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(); } } // File: https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/master/contracts/token/ERC20/extensions/ERC20Votes.sol // OpenZeppelin Contracts v4.4.0 (token/ERC20/extensions/ERC20Votes.sol) pragma solidity ^0.8.0; /** * @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 { _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"); _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; } } // File: https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/master/contracts/token/ERC20/extensions/ERC20Burnable.sol // OpenZeppelin Contracts v4.4.0 (token/ERC20/extensions/ERC20Burnable.sol) pragma solidity ^0.8.0; /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public virtual { uint256 currentAllowance = allowance(account, _msgSender()); require(currentAllowance >= amount, "ERC20: burn amount exceeds allowance"); unchecked { _approve(account, _msgSender(), currentAllowance - amount); } _burn(account, amount); } } pragma solidity ^0.8.10; 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); } abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } /** * @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; } 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 revoked `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}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ 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); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } } contract SMX is ERC20, ERC20Burnable, AccessControl, ERC20Permit, ERC20Votes, ERC20FlashMint { bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); constructor() ERC20("SMX", "SMX") ERC20Permit("SMX") { _mint(msg.sender, 600 * 10 ** decimals()); _grantRole(DEFAULT_ADMIN_ROLE, msg.sender); _grantRole(MINTER_ROLE, msg.sender); } function mint(address to, uint256 amount) public onlyRole(MINTER_ROLE) { _mint(to, amount); } // The following functions are overrides required by Solidity. function _afterTokenTransfer(address from, address to, uint256 amount) internal override(ERC20, ERC20Votes) { super._afterTokenTransfer(from, to, amount); } function _mint(address to, uint256 amount) internal override(ERC20, ERC20Votes) { super._mint(to, amount); } function _burn(address account, uint256 amount) internal override(ERC20, ERC20Votes) { super._burn(account, amount); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","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":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"flashFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC3156FlashBorrower","name":"receiver","type":"address"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"flashLoan","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","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":[{"internalType":"address","name":"token","type":"address"}],"name":"maxFlashLoan","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"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"}]
Contract Creation Code
6101606040527f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9610140523480156200003757600080fd5b506040805180820182526003808252620a69ab60eb1b60208084018290528451808601865260018152603160f81b818301528551808701875284815280830184815287518089019098528588529287019390935282519495869591949092620000a09262000865565b508051620000b690600490602084019062000865565b5050825160209384012082519284019290922060e08390526101008190524660a0818152604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818901819052818301979097526060810194909452608080850193909352308483018190528151808603909301835260c0948501909152815191909601209052929092526101205250620001719050336200015d6012600a62000a14565b6200016b9061025862000a25565b620001b0565b6200017e600033620001cb565b620001aa7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633620001cb565b62000acf565b620001c782826200025560201b620011081760201c565b5050565b620001d782826200030c565b620001c75760008281526005602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620002113390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6200026c82826200033960201b620011981760201c565b6001600160e01b0362000280620004288216565b1115620002ed5760405162461bcd60e51b815260206004820152603060248201527f4552433230566f7465733a20746f74616c20737570706c79207269736b73206f60448201526f766572666c6f77696e6720766f74657360801b60648201526084015b60405180910390fd5b6200030660096200127f6200042e60201b178362000443565b50505050565b60008281526005602090815260408083206001600160a01b038516845290915290205460ff165b92915050565b6001600160a01b038216620003915760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401620002e4565b8060026000828254620003a5919062000a47565b90915550506001600160a01b03821660009081526020819052604081208054839290620003d490849062000a47565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3620001c760008383620005fa565b60025490565b60006200043c828462000a47565b9392505050565b8254600090819080156200049557856200045f60018362000a62565b8154811062000472576200047262000a7c565b60009182526020909120015464010000000090046001600160e01b031662000498565b60005b6001600160e01b03169250620004af83858760201c565b9150600081118015620004f357504386620004cc60018462000a62565b81548110620004df57620004df62000a7c565b60009182526020909120015463ffffffff16145b1562000567576200050f826200061260201b6200128b1760201c565b866200051d60018462000a62565b8154811062000530576200053062000a7c565b9060005260206000200160000160046101000a8154816001600160e01b0302191690836001600160e01b03160217905550620005ec565b85604051806040016040528062000589436200068160201b620012f81760201c565b63ffffffff168152602001620005aa856200061260201b6200128b1760201c565b6001600160e01b0390811690915282546001810184556000938452602093849020835194909301519091166401000000000263ffffffff909316929092179101555b50935093915050565b505050565b620005f5838383620006e860201b6200135d1760201c565b60006001600160e01b038211156200067d5760405162461bcd60e51b815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e20326044820152663234206269747360c81b6064820152608401620002e4565b5090565b600063ffffffff8211156200067d5760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203360448201526532206269747360d01b6064820152608401620002e4565b62000700838383620005f560201b620007441760201c565b6001600160a01b03838116600090815260076020526040808220548584168352912054620005f5929182169116838183148015906200073f5750600081115b15620005f5576001600160a01b03831615620007cc576001600160a01b03831660009081526008602090815260408220829162000789919062000857901b6200138f178562000443565b91509150846001600160a01b0316600080516020620034318339815191528383604051620007c1929190918252602082015260400190565b60405180910390a250505b6001600160a01b03821615620005f5576001600160a01b0382166000908152600860209081526040822082916200081091906200042e901b6200127f178562000443565b91509150836001600160a01b031660008051602062003431833981519152838360405162000848929190918252602082015260400190565b60405180910390a25050505050565b60006200043c828462000a62565b828054620008739062000a92565b90600052602060002090601f016020900481019282620008975760008555620008e2565b82601f10620008b257805160ff1916838001178555620008e2565b82800160010185558215620008e2579182015b82811115620008e2578251825591602001919060010190620008c5565b506200067d9291505b808211156200067d5760008155600101620008eb565b634e487b7160e01b600052601160045260246000fd5b600181815b80851115620009585781600019048211156200093c576200093c62000901565b808516156200094a57918102915b93841c93908002906200091c565b509250929050565b600082620009715750600162000333565b81620009805750600062000333565b8160018114620009995760028114620009a457620009c4565b600191505062000333565b60ff841115620009b857620009b862000901565b50506001821b62000333565b5060208310610133831016604e8410600b8410161715620009e9575081810a62000333565b620009f5838362000917565b806000190482111562000a0c5762000a0c62000901565b029392505050565b60006200043c60ff84168362000960565b600081600019048311821515161562000a425762000a4262000901565b500290565b6000821982111562000a5d5762000a5d62000901565b500190565b60008282101562000a775762000a7762000901565b500390565b634e487b7160e01b600052603260045260246000fd5b600181811c9082168062000aa757607f821691505b6020821081141562000ac957634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e05161010051610120516101405161290762000b2a6000396000610eeb0152600061180701526000611856015260006118310152600061178a015260006117b4015260006117de01526129076000f3fe608060405234801561001057600080fd5b506004361061021c5760003560e01c80636fcfff4511610125578063a457c2d7116100ad578063d53913931161007c578063d5391393146104cd578063d547741f146104f4578063d9d98ce414610507578063dd62ed3e1461051a578063f1127ed81461055357600080fd5b8063a457c2d714610481578063a9059cbb14610494578063c3cda520146104a7578063d505accf146104ba57600080fd5b80638e539e8c116100f45780638e539e8c1461043857806391d148541461044b57806395d89b411461045e5780639ab24eb014610466578063a217fddf1461047957600080fd5b80636fcfff45146103c157806370a08231146103e957806379cc6790146104125780637ecebe001461042557600080fd5b806336568abe116101a857806342966c681161017757806342966c6814610331578063587cde1e146103445780635c19a95c146103885780635cffe9de1461039b578063613255ab146103ae57600080fd5b806336568abe146102e557806339509351146102f85780633a46b1a81461030b57806340c10f191461031e57600080fd5b806323b872dd116101ef57806323b872dd14610283578063248a9ca3146102965780632f2ff15d146102b9578063313ce567146102ce5780633644e515146102dd57600080fd5b806301ffc9a71461022157806306fdde0314610249578063095ea7b31461025e57806318160ddd14610271575b600080fd5b61023461022f366004612380565b610590565b60405190151581526020015b60405180910390f35b6102516105c7565b60405161024091906123d6565b61023461026c36600461241e565b610659565b6002545b604051908152602001610240565b61023461029136600461244a565b61066f565b6102756102a436600461248b565b60009081526005602052604090206001015490565b6102cc6102c73660046124a4565b61071e565b005b60405160128152602001610240565b610275610749565b6102cc6102f33660046124a4565b610758565b61023461030636600461241e565b6107d6565b61027561031936600461241e565b610812565b6102cc61032c36600461241e565b61088c565b6102cc61033f36600461248b565b6108c1565b6103706103523660046124d4565b6001600160a01b039081166000908152600760205260409020541690565b6040516001600160a01b039091168152602001610240565b6102cc6103963660046124d4565b6108ce565b6102346103a93660046124f1565b6108d8565b6102756103bc3660046124d4565b610ab5565b6103d46103cf3660046124d4565b610add565b60405163ffffffff9091168152602001610240565b6102756103f73660046124d4565b6001600160a01b031660009081526020819052604090205490565b6102cc61042036600461241e565b610aff565b6102756104333660046124d4565b610b80565b61027561044636600461248b565b610b9e565b6102346104593660046124a4565b610bfa565b610251610c25565b6102756104743660046124d4565b610c34565b610275600081565b61023461048f36600461241e565b610cbb565b6102346104a236600461241e565b610d54565b6102cc6104b53660046125a6565b610d61565b6102cc6104c8366004612600565b610e97565b6102757f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b6102cc6105023660046124a4565b610ffb565b61027561051536600461241e565b611021565b61027561052836600461266e565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61056661056136600461269c565b611084565b60408051825163ffffffff1681526020928301516001600160e01b03169281019290925201610240565b60006001600160e01b03198216637965db0b60e01b14806105c157506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600380546105d6906126d3565b80601f0160208091040260200160405190810160405280929190818152602001828054610602906126d3565b801561064f5780601f106106245761010080835404028352916020019161064f565b820191906000526020600020905b81548152906001019060200180831161063257829003601f168201915b5050505050905090565b600061066633848461139b565b50600192915050565b600061067c8484846114bf565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156107065760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b610713853385840361139b565b506001949350505050565b60008281526005602052604090206001015461073a8133611693565b61074483836116f7565b505050565b600061075361177d565b905090565b6001600160a01b03811633146107c85760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016106fd565b6107d282826118a4565b5050565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161066691859061080d90869061271e565b61139b565b60004382106108635760405162461bcd60e51b815260206004820152601f60248201527f4552433230566f7465733a20626c6f636b206e6f7420796574206d696e65640060448201526064016106fd565b6001600160a01b0383166000908152600860205260409020610885908361190b565b9392505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66108b78133611693565b61074483836119c8565b6108cb33826119d2565b50565b6108cb33826119dc565b6000806108e58686611021565b90506108f187866119c8565b6040516323e30c8b60e01b81527f439148f0bbc682ca079e46d6e2c2f0c1e3b820f1a291b069d8882abf8cf18dd9906001600160a01b038916906323e30c8b906109499033908b908b9088908c908c90600401612736565b6020604051808303816000875af1158015610968573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061098c9190612792565b146109e55760405162461bcd60e51b8152602060048201526024808201527f4552433230466c6173684d696e743a20696e76616c69642072657475726e2076604482015263616c756560e01b60648201526084016106fd565b6001600160a01b0387166000908152600160209081526040808320308452909152902054610a13828761271e565b811015610a7a5760405162461bcd60e51b815260206004820152602f60248201527f4552433230466c6173684d696e743a20616c6c6f77616e636520646f6573206e60448201526e1bdd08185b1b1bddc81c99599d5b99608a1b60648201526084016106fd565b610a94883084610a8a8a866127ab565b61080d91906127ab565b610aa788610aa2848961271e565b6119d2565b506001979650505050505050565b60006001600160a01b0382163014610ace5760006105c1565b6002546105c1906000196127ab565b6001600160a01b0381166000908152600860205260408120546105c1906112f8565b6000610b0b8333610528565b905081811015610b695760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77604482015263616e636560e01b60648201526084016106fd565b610b76833384840361139b565b61074483836119d2565b6001600160a01b0381166000908152600660205260408120546105c1565b6000438210610bef5760405162461bcd60e51b815260206004820152601f60248201527f4552433230566f7465733a20626c6f636b206e6f7420796574206d696e65640060448201526064016106fd565b6105c160098361190b565b60009182526005602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6060600480546105d6906126d3565b6001600160a01b0381166000908152600860205260408120548015610ca8576001600160a01b0383166000908152600860205260409020610c766001836127ab565b81548110610c8657610c866127c2565b60009182526020909120015464010000000090046001600160e01b0316610cab565b60005b6001600160e01b03169392505050565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015610d3d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016106fd565b610d4a338585840361139b565b5060019392505050565b60006106663384846114bf565b83421115610db15760405162461bcd60e51b815260206004820152601d60248201527f4552433230566f7465733a207369676e6174757265206578706972656400000060448201526064016106fd565b604080517fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60208201526001600160a01b038816918101919091526060810186905260808101859052600090610e2b90610e239060a00160405160208183030381529060405280519060200120611a55565b858585611aa3565b9050610e3681611acb565b8614610e845760405162461bcd60e51b815260206004820152601960248201527f4552433230566f7465733a20696e76616c6964206e6f6e63650000000000000060448201526064016106fd565b610e8e81886119dc565b50505050505050565b83421115610ee75760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e6500000060448201526064016106fd565b60007f0000000000000000000000000000000000000000000000000000000000000000888888610f168c611acb565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090506000610f7182611a55565b90506000610f8182878787611aa3565b9050896001600160a01b0316816001600160a01b031614610fe45760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e6174757265000060448201526064016106fd565b610fef8a8a8a61139b565b50505050505050505050565b6000828152600560205260409020600101546110178133611693565b61074483836118a4565b60006001600160a01b038316301461107b5760405162461bcd60e51b815260206004820152601b60248201527f4552433230466c6173684d696e743a2077726f6e6720746f6b656e000000000060448201526064016106fd565b50600092915050565b60408051808201909152600080825260208201526001600160a01b0383166000908152600860205260409020805463ffffffff84169081106110c8576110c86127c2565b60009182526020918290206040805180820190915291015463ffffffff8116825264010000000090046001600160e01b0316918101919091529392505050565b6111128282611198565b6002546001600160e01b0310156111845760405162461bcd60e51b815260206004820152603060248201527f4552433230566f7465733a20746f74616c20737570706c79207269736b73206f60448201526f766572666c6f77696e6720766f74657360801b60648201526084016106fd565b611192600961127f83611af3565b50505050565b6001600160a01b0382166111ee5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016106fd565b8060026000828254611200919061271e565b90915550506001600160a01b0382166000908152602081905260408120805483929061122d90849061271e565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a36107d260008383611c6c565b6000610885828461271e565b60006001600160e01b038211156112f45760405162461bcd60e51b815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e20326044820152663234206269747360c81b60648201526084016106fd565b5090565b600063ffffffff8211156112f45760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203360448201526532206269747360d01b60648201526084016106fd565b6001600160a01b0383811660009081526007602052604080822054858416835291205461074492918216911683611c77565b600061088582846127ab565b6001600160a01b0383166113fd5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016106fd565b6001600160a01b03821661145e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016106fd565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166115235760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016106fd565b6001600160a01b0382166115855760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016106fd565b6001600160a01b038316600090815260208190526040902054818110156115fd5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016106fd565b6001600160a01b0380851660009081526020819052604080822085850390559185168152908120805484929061163490849061271e565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161168091815260200190565b60405180910390a3611192848484611c6c565b61169d8282610bfa565b6107d2576116b5816001600160a01b03166014611db4565b6116c0836020611db4565b6040516020016116d19291906127d8565b60408051601f198184030181529082905262461bcd60e51b82526106fd916004016123d6565b6117018282610bfa565b6107d25760008281526005602090815260408083206001600160a01b03851684529091529020805460ff191660011790556117393390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480156117d657507f000000000000000000000000000000000000000000000000000000000000000046145b1561180057507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6118ae8282610bfa565b156107d25760008281526005602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b8154600090815b8181101561196f5760006119268284611f50565b90508486828154811061193b5761193b6127c2565b60009182526020909120015463ffffffff16111561195b57809250611969565b61196681600161271e565b91505b50611912565b81156119b357846119816001846127ab565b81548110611991576119916127c2565b60009182526020909120015464010000000090046001600160e01b03166119b6565b60005b6001600160e01b031695945050505050565b6107d28282611108565b6107d28282611f6b565b6001600160a01b038281166000818152600760208181526040808420805485845282862054949093528787166001600160a01b03198416811790915590519190951694919391928592917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a4611192828483611c77565b60006105c1611a6261177d565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b6000806000611ab487878787611f83565b91509150611ac181612070565b5095945050505050565b6001600160a01b03811660009081526006602052604090208054600181018255905b50919050565b825460009081908015611b3e5785611b0c6001836127ab565b81548110611b1c57611b1c6127c2565b60009182526020909120015464010000000090046001600160e01b0316611b41565b60005b6001600160e01b03169250611b5a83858763ffffffff16565b9150600081118015611b9857504386611b746001846127ab565b81548110611b8457611b846127c2565b60009182526020909120015463ffffffff16145b15611bf857611ba68261128b565b86611bb26001846127ab565b81548110611bc257611bc26127c2565b9060005260206000200160000160046101000a8154816001600160e01b0302191690836001600160e01b03160217905550611c63565b856040518060400160405280611c0d436112f8565b63ffffffff168152602001611c218561128b565b6001600160e01b0390811690915282546001810184556000938452602093849020835194909301519091166401000000000263ffffffff909316929092179101555b50935093915050565b61074483838361135d565b816001600160a01b0316836001600160a01b031614158015611c995750600081115b15610744576001600160a01b03831615611d27576001600160a01b03831660009081526008602052604081208190611cd49061138f85611af3565b91509150846001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248383604051611d1c929190918252602082015260400190565b60405180910390a250505b6001600160a01b03821615610744576001600160a01b03821660009081526008602052604081208190611d5d9061127f85611af3565b91509150836001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248383604051611da5929190918252602082015260400190565b60405180910390a25050505050565b60606000611dc383600261284d565b611dce90600261271e565b67ffffffffffffffff811115611de657611de661286c565b6040519080825280601f01601f191660200182016040528015611e10576020820181803683370190505b509050600360fc1b81600081518110611e2b57611e2b6127c2565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611e5a57611e5a6127c2565b60200101906001600160f81b031916908160001a9053506000611e7e84600261284d565b611e8990600161271e565b90505b6001811115611f01576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110611ebd57611ebd6127c2565b1a60f81b828281518110611ed357611ed36127c2565b60200101906001600160f81b031916908160001a90535060049490941c93611efa81612882565b9050611e8c565b5083156108855760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016106fd565b6000611f5f6002848418612899565b6108859084841661271e565b611f75828261222b565b611192600961138f83611af3565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115611fba5750600090506003612067565b8460ff16601b14158015611fd257508460ff16601c14155b15611fe35750600090506004612067565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612037573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661206057600060019250925050612067565b9150600090505b94509492505050565b6000816004811115612084576120846128bb565b141561208d5750565b60018160048111156120a1576120a16128bb565b14156120ef5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016106fd565b6002816004811115612103576121036128bb565b14156121515760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016106fd565b6003816004811115612165576121656128bb565b14156121be5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016106fd565b60048160048111156121d2576121d26128bb565b14156108cb5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016106fd565b6001600160a01b03821661228b5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016106fd565b6001600160a01b038216600090815260208190526040902054818110156122ff5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016106fd565b6001600160a01b038316600090815260208190526040812083830390556002805484929061232e9084906127ab565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a361074483600084611c6c565b60006020828403121561239257600080fd5b81356001600160e01b03198116811461088557600080fd5b60005b838110156123c55781810151838201526020016123ad565b838111156111925750506000910152565b60208152600082518060208401526123f58160408501602087016123aa565b601f01601f19169190910160400192915050565b6001600160a01b03811681146108cb57600080fd5b6000806040838503121561243157600080fd5b823561243c81612409565b946020939093013593505050565b60008060006060848603121561245f57600080fd5b833561246a81612409565b9250602084013561247a81612409565b929592945050506040919091013590565b60006020828403121561249d57600080fd5b5035919050565b600080604083850312156124b757600080fd5b8235915060208301356124c981612409565b809150509250929050565b6000602082840312156124e657600080fd5b813561088581612409565b60008060008060006080868803121561250957600080fd5b853561251481612409565b9450602086013561252481612409565b935060408601359250606086013567ffffffffffffffff8082111561254857600080fd5b818801915088601f83011261255c57600080fd5b81358181111561256b57600080fd5b89602082850101111561257d57600080fd5b9699959850939650602001949392505050565b803560ff811681146125a157600080fd5b919050565b60008060008060008060c087890312156125bf57600080fd5b86356125ca81612409565b955060208701359450604087013593506125e660608801612590565b92506080870135915060a087013590509295509295509295565b600080600080600080600060e0888a03121561261b57600080fd5b873561262681612409565b9650602088013561263681612409565b9550604088013594506060880135935061265260808901612590565b925060a0880135915060c0880135905092959891949750929550565b6000806040838503121561268157600080fd5b823561268c81612409565b915060208301356124c981612409565b600080604083850312156126af57600080fd5b82356126ba81612409565b9150602083013563ffffffff811681146124c957600080fd5b600181811c908216806126e757607f821691505b60208210811415611aed57634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000821982111561273157612731612708565b500190565b6001600160a01b03878116825286166020820152604081018590526060810184905260a06080820181905281018290526000828460c0840137600060c0848401015260c0601f19601f8501168301019050979650505050505050565b6000602082840312156127a457600080fd5b5051919050565b6000828210156127bd576127bd612708565b500390565b634e487b7160e01b600052603260045260246000fd5b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516128108160178501602088016123aa565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516128418160288401602088016123aa565b01602801949350505050565b600081600019048311821515161561286757612867612708565b500290565b634e487b7160e01b600052604160045260246000fd5b60008161289157612891612708565b506000190190565b6000826128b657634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052602160045260246000fdfea26469706673582212200bf64c9fd8d2033e1308f73bc9a5f47113faec62765a4d9e699d29ddeb0bfc1a64736f6c634300080a0033dec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061021c5760003560e01c80636fcfff4511610125578063a457c2d7116100ad578063d53913931161007c578063d5391393146104cd578063d547741f146104f4578063d9d98ce414610507578063dd62ed3e1461051a578063f1127ed81461055357600080fd5b8063a457c2d714610481578063a9059cbb14610494578063c3cda520146104a7578063d505accf146104ba57600080fd5b80638e539e8c116100f45780638e539e8c1461043857806391d148541461044b57806395d89b411461045e5780639ab24eb014610466578063a217fddf1461047957600080fd5b80636fcfff45146103c157806370a08231146103e957806379cc6790146104125780637ecebe001461042557600080fd5b806336568abe116101a857806342966c681161017757806342966c6814610331578063587cde1e146103445780635c19a95c146103885780635cffe9de1461039b578063613255ab146103ae57600080fd5b806336568abe146102e557806339509351146102f85780633a46b1a81461030b57806340c10f191461031e57600080fd5b806323b872dd116101ef57806323b872dd14610283578063248a9ca3146102965780632f2ff15d146102b9578063313ce567146102ce5780633644e515146102dd57600080fd5b806301ffc9a71461022157806306fdde0314610249578063095ea7b31461025e57806318160ddd14610271575b600080fd5b61023461022f366004612380565b610590565b60405190151581526020015b60405180910390f35b6102516105c7565b60405161024091906123d6565b61023461026c36600461241e565b610659565b6002545b604051908152602001610240565b61023461029136600461244a565b61066f565b6102756102a436600461248b565b60009081526005602052604090206001015490565b6102cc6102c73660046124a4565b61071e565b005b60405160128152602001610240565b610275610749565b6102cc6102f33660046124a4565b610758565b61023461030636600461241e565b6107d6565b61027561031936600461241e565b610812565b6102cc61032c36600461241e565b61088c565b6102cc61033f36600461248b565b6108c1565b6103706103523660046124d4565b6001600160a01b039081166000908152600760205260409020541690565b6040516001600160a01b039091168152602001610240565b6102cc6103963660046124d4565b6108ce565b6102346103a93660046124f1565b6108d8565b6102756103bc3660046124d4565b610ab5565b6103d46103cf3660046124d4565b610add565b60405163ffffffff9091168152602001610240565b6102756103f73660046124d4565b6001600160a01b031660009081526020819052604090205490565b6102cc61042036600461241e565b610aff565b6102756104333660046124d4565b610b80565b61027561044636600461248b565b610b9e565b6102346104593660046124a4565b610bfa565b610251610c25565b6102756104743660046124d4565b610c34565b610275600081565b61023461048f36600461241e565b610cbb565b6102346104a236600461241e565b610d54565b6102cc6104b53660046125a6565b610d61565b6102cc6104c8366004612600565b610e97565b6102757f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b6102cc6105023660046124a4565b610ffb565b61027561051536600461241e565b611021565b61027561052836600461266e565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61056661056136600461269c565b611084565b60408051825163ffffffff1681526020928301516001600160e01b03169281019290925201610240565b60006001600160e01b03198216637965db0b60e01b14806105c157506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600380546105d6906126d3565b80601f0160208091040260200160405190810160405280929190818152602001828054610602906126d3565b801561064f5780601f106106245761010080835404028352916020019161064f565b820191906000526020600020905b81548152906001019060200180831161063257829003601f168201915b5050505050905090565b600061066633848461139b565b50600192915050565b600061067c8484846114bf565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156107065760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b610713853385840361139b565b506001949350505050565b60008281526005602052604090206001015461073a8133611693565b61074483836116f7565b505050565b600061075361177d565b905090565b6001600160a01b03811633146107c85760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016106fd565b6107d282826118a4565b5050565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161066691859061080d90869061271e565b61139b565b60004382106108635760405162461bcd60e51b815260206004820152601f60248201527f4552433230566f7465733a20626c6f636b206e6f7420796574206d696e65640060448201526064016106fd565b6001600160a01b0383166000908152600860205260409020610885908361190b565b9392505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66108b78133611693565b61074483836119c8565b6108cb33826119d2565b50565b6108cb33826119dc565b6000806108e58686611021565b90506108f187866119c8565b6040516323e30c8b60e01b81527f439148f0bbc682ca079e46d6e2c2f0c1e3b820f1a291b069d8882abf8cf18dd9906001600160a01b038916906323e30c8b906109499033908b908b9088908c908c90600401612736565b6020604051808303816000875af1158015610968573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061098c9190612792565b146109e55760405162461bcd60e51b8152602060048201526024808201527f4552433230466c6173684d696e743a20696e76616c69642072657475726e2076604482015263616c756560e01b60648201526084016106fd565b6001600160a01b0387166000908152600160209081526040808320308452909152902054610a13828761271e565b811015610a7a5760405162461bcd60e51b815260206004820152602f60248201527f4552433230466c6173684d696e743a20616c6c6f77616e636520646f6573206e60448201526e1bdd08185b1b1bddc81c99599d5b99608a1b60648201526084016106fd565b610a94883084610a8a8a866127ab565b61080d91906127ab565b610aa788610aa2848961271e565b6119d2565b506001979650505050505050565b60006001600160a01b0382163014610ace5760006105c1565b6002546105c1906000196127ab565b6001600160a01b0381166000908152600860205260408120546105c1906112f8565b6000610b0b8333610528565b905081811015610b695760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77604482015263616e636560e01b60648201526084016106fd565b610b76833384840361139b565b61074483836119d2565b6001600160a01b0381166000908152600660205260408120546105c1565b6000438210610bef5760405162461bcd60e51b815260206004820152601f60248201527f4552433230566f7465733a20626c6f636b206e6f7420796574206d696e65640060448201526064016106fd565b6105c160098361190b565b60009182526005602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6060600480546105d6906126d3565b6001600160a01b0381166000908152600860205260408120548015610ca8576001600160a01b0383166000908152600860205260409020610c766001836127ab565b81548110610c8657610c866127c2565b60009182526020909120015464010000000090046001600160e01b0316610cab565b60005b6001600160e01b03169392505050565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015610d3d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016106fd565b610d4a338585840361139b565b5060019392505050565b60006106663384846114bf565b83421115610db15760405162461bcd60e51b815260206004820152601d60248201527f4552433230566f7465733a207369676e6174757265206578706972656400000060448201526064016106fd565b604080517fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60208201526001600160a01b038816918101919091526060810186905260808101859052600090610e2b90610e239060a00160405160208183030381529060405280519060200120611a55565b858585611aa3565b9050610e3681611acb565b8614610e845760405162461bcd60e51b815260206004820152601960248201527f4552433230566f7465733a20696e76616c6964206e6f6e63650000000000000060448201526064016106fd565b610e8e81886119dc565b50505050505050565b83421115610ee75760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e6500000060448201526064016106fd565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9888888610f168c611acb565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090506000610f7182611a55565b90506000610f8182878787611aa3565b9050896001600160a01b0316816001600160a01b031614610fe45760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e6174757265000060448201526064016106fd565b610fef8a8a8a61139b565b50505050505050505050565b6000828152600560205260409020600101546110178133611693565b61074483836118a4565b60006001600160a01b038316301461107b5760405162461bcd60e51b815260206004820152601b60248201527f4552433230466c6173684d696e743a2077726f6e6720746f6b656e000000000060448201526064016106fd565b50600092915050565b60408051808201909152600080825260208201526001600160a01b0383166000908152600860205260409020805463ffffffff84169081106110c8576110c86127c2565b60009182526020918290206040805180820190915291015463ffffffff8116825264010000000090046001600160e01b0316918101919091529392505050565b6111128282611198565b6002546001600160e01b0310156111845760405162461bcd60e51b815260206004820152603060248201527f4552433230566f7465733a20746f74616c20737570706c79207269736b73206f60448201526f766572666c6f77696e6720766f74657360801b60648201526084016106fd565b611192600961127f83611af3565b50505050565b6001600160a01b0382166111ee5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016106fd565b8060026000828254611200919061271e565b90915550506001600160a01b0382166000908152602081905260408120805483929061122d90849061271e565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a36107d260008383611c6c565b6000610885828461271e565b60006001600160e01b038211156112f45760405162461bcd60e51b815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e20326044820152663234206269747360c81b60648201526084016106fd565b5090565b600063ffffffff8211156112f45760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203360448201526532206269747360d01b60648201526084016106fd565b6001600160a01b0383811660009081526007602052604080822054858416835291205461074492918216911683611c77565b600061088582846127ab565b6001600160a01b0383166113fd5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016106fd565b6001600160a01b03821661145e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016106fd565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166115235760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016106fd565b6001600160a01b0382166115855760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016106fd565b6001600160a01b038316600090815260208190526040902054818110156115fd5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016106fd565b6001600160a01b0380851660009081526020819052604080822085850390559185168152908120805484929061163490849061271e565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161168091815260200190565b60405180910390a3611192848484611c6c565b61169d8282610bfa565b6107d2576116b5816001600160a01b03166014611db4565b6116c0836020611db4565b6040516020016116d19291906127d8565b60408051601f198184030181529082905262461bcd60e51b82526106fd916004016123d6565b6117018282610bfa565b6107d25760008281526005602090815260408083206001600160a01b03851684529091529020805460ff191660011790556117393390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000306001600160a01b037f000000000000000000000000b956a2eb2a6492097398f29b786a6a5453b6a274161480156117d657507f000000000000000000000000000000000000000000000000000000000000009246145b1561180057507f163389b03bb39e105f15b85315a6f53b3bb06ae1b104322cbc73a4d166599ed190565b50604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6020808301919091527fee98c10fa1826bfcd94d850488d088cf86b226cef75f08c3d78672c28dd6b16d828401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6118ae8282610bfa565b156107d25760008281526005602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b8154600090815b8181101561196f5760006119268284611f50565b90508486828154811061193b5761193b6127c2565b60009182526020909120015463ffffffff16111561195b57809250611969565b61196681600161271e565b91505b50611912565b81156119b357846119816001846127ab565b81548110611991576119916127c2565b60009182526020909120015464010000000090046001600160e01b03166119b6565b60005b6001600160e01b031695945050505050565b6107d28282611108565b6107d28282611f6b565b6001600160a01b038281166000818152600760208181526040808420805485845282862054949093528787166001600160a01b03198416811790915590519190951694919391928592917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a4611192828483611c77565b60006105c1611a6261177d565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b6000806000611ab487878787611f83565b91509150611ac181612070565b5095945050505050565b6001600160a01b03811660009081526006602052604090208054600181018255905b50919050565b825460009081908015611b3e5785611b0c6001836127ab565b81548110611b1c57611b1c6127c2565b60009182526020909120015464010000000090046001600160e01b0316611b41565b60005b6001600160e01b03169250611b5a83858763ffffffff16565b9150600081118015611b9857504386611b746001846127ab565b81548110611b8457611b846127c2565b60009182526020909120015463ffffffff16145b15611bf857611ba68261128b565b86611bb26001846127ab565b81548110611bc257611bc26127c2565b9060005260206000200160000160046101000a8154816001600160e01b0302191690836001600160e01b03160217905550611c63565b856040518060400160405280611c0d436112f8565b63ffffffff168152602001611c218561128b565b6001600160e01b0390811690915282546001810184556000938452602093849020835194909301519091166401000000000263ffffffff909316929092179101555b50935093915050565b61074483838361135d565b816001600160a01b0316836001600160a01b031614158015611c995750600081115b15610744576001600160a01b03831615611d27576001600160a01b03831660009081526008602052604081208190611cd49061138f85611af3565b91509150846001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248383604051611d1c929190918252602082015260400190565b60405180910390a250505b6001600160a01b03821615610744576001600160a01b03821660009081526008602052604081208190611d5d9061127f85611af3565b91509150836001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248383604051611da5929190918252602082015260400190565b60405180910390a25050505050565b60606000611dc383600261284d565b611dce90600261271e565b67ffffffffffffffff811115611de657611de661286c565b6040519080825280601f01601f191660200182016040528015611e10576020820181803683370190505b509050600360fc1b81600081518110611e2b57611e2b6127c2565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611e5a57611e5a6127c2565b60200101906001600160f81b031916908160001a9053506000611e7e84600261284d565b611e8990600161271e565b90505b6001811115611f01576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110611ebd57611ebd6127c2565b1a60f81b828281518110611ed357611ed36127c2565b60200101906001600160f81b031916908160001a90535060049490941c93611efa81612882565b9050611e8c565b5083156108855760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016106fd565b6000611f5f6002848418612899565b6108859084841661271e565b611f75828261222b565b611192600961138f83611af3565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115611fba5750600090506003612067565b8460ff16601b14158015611fd257508460ff16601c14155b15611fe35750600090506004612067565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612037573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661206057600060019250925050612067565b9150600090505b94509492505050565b6000816004811115612084576120846128bb565b141561208d5750565b60018160048111156120a1576120a16128bb565b14156120ef5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016106fd565b6002816004811115612103576121036128bb565b14156121515760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016106fd565b6003816004811115612165576121656128bb565b14156121be5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016106fd565b60048160048111156121d2576121d26128bb565b14156108cb5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016106fd565b6001600160a01b03821661228b5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016106fd565b6001600160a01b038216600090815260208190526040902054818110156122ff5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016106fd565b6001600160a01b038316600090815260208190526040812083830390556002805484929061232e9084906127ab565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a361074483600084611c6c565b60006020828403121561239257600080fd5b81356001600160e01b03198116811461088557600080fd5b60005b838110156123c55781810151838201526020016123ad565b838111156111925750506000910152565b60208152600082518060208401526123f58160408501602087016123aa565b601f01601f19169190910160400192915050565b6001600160a01b03811681146108cb57600080fd5b6000806040838503121561243157600080fd5b823561243c81612409565b946020939093013593505050565b60008060006060848603121561245f57600080fd5b833561246a81612409565b9250602084013561247a81612409565b929592945050506040919091013590565b60006020828403121561249d57600080fd5b5035919050565b600080604083850312156124b757600080fd5b8235915060208301356124c981612409565b809150509250929050565b6000602082840312156124e657600080fd5b813561088581612409565b60008060008060006080868803121561250957600080fd5b853561251481612409565b9450602086013561252481612409565b935060408601359250606086013567ffffffffffffffff8082111561254857600080fd5b818801915088601f83011261255c57600080fd5b81358181111561256b57600080fd5b89602082850101111561257d57600080fd5b9699959850939650602001949392505050565b803560ff811681146125a157600080fd5b919050565b60008060008060008060c087890312156125bf57600080fd5b86356125ca81612409565b955060208701359450604087013593506125e660608801612590565b92506080870135915060a087013590509295509295509295565b600080600080600080600060e0888a03121561261b57600080fd5b873561262681612409565b9650602088013561263681612409565b9550604088013594506060880135935061265260808901612590565b925060a0880135915060c0880135905092959891949750929550565b6000806040838503121561268157600080fd5b823561268c81612409565b915060208301356124c981612409565b600080604083850312156126af57600080fd5b82356126ba81612409565b9150602083013563ffffffff811681146124c957600080fd5b600181811c908216806126e757607f821691505b60208210811415611aed57634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000821982111561273157612731612708565b500190565b6001600160a01b03878116825286166020820152604081018590526060810184905260a06080820181905281018290526000828460c0840137600060c0848401015260c0601f19601f8501168301019050979650505050505050565b6000602082840312156127a457600080fd5b5051919050565b6000828210156127bd576127bd612708565b500390565b634e487b7160e01b600052603260045260246000fd5b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516128108160178501602088016123aa565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516128418160288401602088016123aa565b01602801949350505050565b600081600019048311821515161561286757612867612708565b500290565b634e487b7160e01b600052604160045260246000fd5b60008161289157612891612708565b506000190190565b6000826128b657634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052602160045260246000fdfea26469706673582212200bf64c9fd8d2033e1308f73bc9a5f47113faec62765a4d9e699d29ddeb0bfc1a64736f6c634300080a0033
Deployed Bytecode Sourcemap
76936:1088:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;71975:204;;;;;;:::i;:::-;;:::i;:::-;;;470:14:1;;463:22;445:41;;433:2;418:18;71975:204:0;;;;;;;;39783:100;;;:::i;:::-;;;;;;;:::i;41950:169::-;;;;;;:::i;:::-;;:::i;40903:108::-;40991:12;;40903:108;;;1750:25:1;;;1738:2;1723:18;40903:108:0;1604:177:1;42601:492:0;;;;;;:::i;:::-;;:::i;73386:123::-;;;;;;:::i;:::-;73452:7;73479:12;;;:6;:12;;;;;:22;;;;73386:123;73771:147;;;;;;:::i;:::-;;:::i;:::-;;40745:93;;;40828:2;3076:36:1;;3064:2;3049:18;40745:93:0;2934:184:1;55671:115:0;;;:::i;74819:218::-;;;;;;:::i;:::-;;:::i;43502:215::-;;;;;;:::i;:::-;;:::i;59497:251::-;;;;;;:::i;:::-;;:::i;77327:107::-;;;;;;:::i;:::-;;:::i;66702:91::-;;;;;;:::i;:::-;;:::i;58897:119::-;;;;;;:::i;:::-;-1:-1:-1;;;;;58989:19:0;;;58962:7;58989:19;;;:10;:19;;;;;;;;58897:119;;;;-1:-1:-1;;;;;3724:32:1;;;3706:51;;3694:2;3679:18;58897:119:0;3560:203:1;61936:105:0;;;;;;:::i;:::-;;:::i;52372:797::-;;;;;;:::i;:::-;;:::i;50717:170::-;;;;;;:::i;:::-;;:::i;58653:151::-;;;;;;:::i;:::-;;:::i;:::-;;;4911:10:1;4899:23;;;4881:42;;4869:2;4854:18;58653:151:0;4737:192:1;41074:127:0;;;;;;:::i;:::-;-1:-1:-1;;;;;41175:18:0;41148:7;41175:18;;;;;;;;;;;;41074:127;67112:368;;;;;;:::i;:::-;;:::i;55413:128::-;;;;;;:::i;:::-;;:::i;60037:242::-;;;;;;:::i;:::-;;:::i;72271:139::-;;;;;;:::i;:::-;;:::i;40002:104::-;;;:::i;59100:195::-;;;;;;:::i;:::-;;:::i;71362:49::-;;71407:4;71362:49;;44220:413;;;;;;:::i;:::-;;:::i;41414:175::-;;;;;;:::i;:::-;;:::i;62123:582::-;;;;;;:::i;:::-;;:::i;54702:645::-;;;;;;:::i;:::-;;:::i;77036:62::-;;77074:24;77036:62;;74163:149;;;;;;:::i;:::-;;:::i;51286:297::-;;;;;;:::i;:::-;;:::i;41652:151::-;;;;;;:::i;:::-;-1:-1:-1;;;;;41768:18:0;;;41741:7;41768:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;41652:151;58423:150;;;;;;:::i;:::-;;:::i;:::-;;;;7472:13:1;;7487:10;7468:30;7450:49;;7559:4;7547:17;;;7541:24;-1:-1:-1;;;;;7537:50:1;7515:20;;;7508:80;;;;7423:18;58423:150:0;7248:346:1;71975:204:0;72060:4;-1:-1:-1;;;;;;72084:47:0;;-1:-1:-1;;;72084:47:0;;:87;;-1:-1:-1;;;;;;;;;;68192:40:0;;;72135:36;72077:94;71975:204;-1:-1:-1;;71975:204:0:o;39783:100::-;39837:13;39870:5;39863:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39783:100;:::o;41950:169::-;42033:4;42050:39;33698:10;42073:7;42082:6;42050:8;:39::i;:::-;-1:-1:-1;42107:4:0;41950:169;;;;:::o;42601:492::-;42741:4;42758:36;42768:6;42776:9;42787:6;42758:9;:36::i;:::-;-1:-1:-1;;;;;42834:19:0;;42807:24;42834:19;;;:11;:19;;;;;;;;33698:10;42834:33;;;;;;;;42886:26;;;;42878:79;;;;-1:-1:-1;;;42878:79:0;;8186:2:1;42878:79:0;;;8168:21:1;8225:2;8205:18;;;8198:30;8264:34;8244:18;;;8237:62;-1:-1:-1;;;8315:18:1;;;8308:38;8363:19;;42878:79:0;;;;;;;;;42993:57;43002:6;33698:10;43043:6;43024:16;:25;42993:8;:57::i;:::-;-1:-1:-1;43081:4:0;;42601:492;-1:-1:-1;;;;42601:492:0:o;73771:147::-;73452:7;73479:12;;;:6;:12;;;;;:22;;;71853:30;71864:4;33698:10;71853;:30::i;:::-;73885:25:::1;73896:4;73902:7;73885:10;:25::i;:::-;73771:147:::0;;;:::o;55671:115::-;55731:7;55758:20;:18;:20::i;:::-;55751:27;;55671:115;:::o;74819:218::-;-1:-1:-1;;;;;74915:23:0;;33698:10;74915:23;74907:83;;;;-1:-1:-1;;;74907:83:0;;8595:2:1;74907:83:0;;;8577:21:1;8634:2;8614:18;;;8607:30;8673:34;8653:18;;;8646:62;-1:-1:-1;;;8724:18:1;;;8717:45;8779:19;;74907:83:0;8393:411:1;74907:83:0;75003:26;75015:4;75021:7;75003:11;:26::i;:::-;74819:218;;:::o;43502:215::-;33698:10;43590:4;43639:25;;;:11;:25;;;;;;;;-1:-1:-1;;;;;43639:34:0;;;;;;;;;;43590:4;;43607:80;;43630:7;;43639:47;;43676:10;;43639:47;:::i;:::-;43607:8;:80::i;59497:251::-;59578:7;59620:12;59606:11;:26;59598:70;;;;-1:-1:-1;;;59598:70:0;;9276:2:1;59598:70:0;;;9258:21:1;9315:2;9295:18;;;9288:30;9354:33;9334:18;;;9327:61;9405:18;;59598:70:0;9074:355:1;59598:70:0;-1:-1:-1;;;;;59705:21:0;;;;;;:12;:21;;;;;59686:54;;59728:11;59686:18;:54::i;:::-;59679:61;59497:251;-1:-1:-1;;;59497:251:0:o;77327:107::-;77074:24;71853:30;77074:24;33698:10;71853;:30::i;:::-;77409:17:::1;77415:2;77419:6;77409:5;:17::i;66702:91::-:0;66758:27;33698:10;66778:6;66758:5;:27::i;:::-;66702:91;:::o;61936:105::-;61999:34;33698:10;62023:9;61999;:34::i;52372:797::-;52551:4;52568:11;52582:23;52591:5;52598:6;52582:8;:23::i;:::-;52568:37;;52616:32;52630:8;52641:6;52616:5;:32::i;:::-;52681:58;;-1:-1:-1;;;52681:58:0;;50455:45;;-1:-1:-1;;;;;52681:20:0;;;;;:58;;52702:10;;52714:5;;52721:6;;52729:3;;52734:4;;;;52681:58;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:75;52659:161;;;;-1:-1:-1;;;52659:161:0;;10564:2:1;52659:161:0;;;10546:21:1;10603:2;10583:18;;;10576:30;10642:34;10622:18;;;10615:62;-1:-1:-1;;;10693:18:1;;;10686:34;10737:19;;52659:161:0;10362:400:1;52659:161:0;-1:-1:-1;;;;;41768:18:0;;52831:24;41768:18;;;:11;:18;;;;;;;;52895:4;41768:27;;;;;;;;52940:12;52949:3;52940:6;:12;:::i;:::-;52920:16;:32;;52912:92;;;;-1:-1:-1;;;52912:92:0;;10969:2:1;52912:92:0;;;10951:21:1;11008:2;10988:18;;;10981:30;11047:34;11027:18;;;11020:62;-1:-1:-1;;;11098:18:1;;;11091:45;11153:19;;52912:92:0;10767:411:1;52912:92:0;53015:75;53032:8;53051:4;53086:3;53058:25;53077:6;53058:16;:25;:::i;:::-;:31;;;;:::i;53015:75::-;53101:38;53115:8;53126:12;53135:3;53126:6;:12;:::i;:::-;53101:5;:38::i;:::-;-1:-1:-1;53157:4:0;;52372:797;-1:-1:-1;;;;;;;52372:797:0:o;50717:170::-;50784:7;-1:-1:-1;;;;;50811:22:0;;50828:4;50811:22;:68;;50878:1;50811:68;;;40991:12;;50836:39;;-1:-1:-1;;50836:39:0;:::i;58653:151::-;-1:-1:-1;;;;;58767:21:0;;58723:6;58767:21;;;:12;:21;;;;;:28;58749:47;;:17;:47::i;67112:368::-;67189:24;67216:32;67226:7;33698:10;41652:151;:::i;67216:32::-;67189:59;;67287:6;67267:16;:26;;67259:75;;;;-1:-1:-1;;;67259:75:0;;11515:2:1;67259:75:0;;;11497:21:1;11554:2;11534:18;;;11527:30;11593:34;11573:18;;;11566:62;-1:-1:-1;;;11644:18:1;;;11637:34;11688:19;;67259:75:0;11313:400:1;67259:75:0;67370:58;67379:7;33698:10;67421:6;67402:16;:25;67370:8;:58::i;:::-;67450:22;67456:7;67465:6;67450:5;:22::i;55413:128::-;-1:-1:-1;;;;;55509:14:0;;55482:7;55509:14;;;:7;:14;;;;;13437;55509:24;13345:114;60037:242;60107:7;60149:12;60135:11;:26;60127:70;;;;-1:-1:-1;;;60127:70:0;;9276:2:1;60127:70:0;;;9258:21:1;9315:2;9295:18;;;9288:30;9354:33;9334:18;;;9327:61;9405:18;;60127:70:0;9074:355:1;60127:70:0;60215:56;60234:23;60259:11;60215:18;:56::i;72271:139::-;72349:4;72373:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;72373:29:0;;;;;;;;;;;;;;;72271:139::o;40002:104::-;40058:13;40091:7;40084:14;;;;;:::i;59100:195::-;-1:-1:-1;;;;;59190:21:0;;59156:7;59190:21;;;:12;:21;;;;;:28;59236:8;;:51;;-1:-1:-1;;;;;59251:21:0;;;;;;:12;:21;;;;;59273:7;59279:1;59273:3;:7;:::i;:::-;59251:30;;;;;;;;:::i;:::-;;;;;;;;;;:36;;;;-1:-1:-1;;;;;59251:36:0;59236:51;;;59247:1;59236:51;-1:-1:-1;;;;;59229:58:0;;59100:195;-1:-1:-1;;;59100:195:0:o;44220:413::-;33698:10;44313:4;44357:25;;;:11;:25;;;;;;;;-1:-1:-1;;;;;44357:34:0;;;;;;;;;;44410:35;;;;44402:85;;;;-1:-1:-1;;;44402:85:0;;12052:2:1;44402:85:0;;;12034:21:1;12091:2;12071:18;;;12064:30;12130:34;12110:18;;;12103:62;-1:-1:-1;;;12181:18:1;;;12174:35;12226:19;;44402:85:0;11850:401:1;44402:85:0;44523:67;33698:10;44546:7;44574:15;44555:16;:34;44523:8;:67::i;:::-;-1:-1:-1;44621:4:0;;44220:413;-1:-1:-1;;;44220:413:0:o;41414:175::-;41500:4;41517:42;33698:10;41541:9;41552:6;41517:9;:42::i;62123:582::-;62341:6;62322:15;:25;;62314:67;;;;-1:-1:-1;;;62314:67:0;;12458:2:1;62314:67:0;;;12440:21:1;12497:2;12477:18;;;12470:30;12536:31;12516:18;;;12509:59;12585:18;;62314:67:0;12256:353:1;62314:67:0;62464:58;;;57674:71;62464:58;;;12845:25:1;-1:-1:-1;;;;;12906:32:1;;12886:18;;;12879:60;;;;12955:18;;;12948:34;;;12998:18;;;12991:34;;;62392:14:0;;62409:174;;62437:87;;12817:19:1;;62464:58:0;;;;;;;;;;;;62454:69;;;;;;62437:16;:87::i;:::-;62539:1;62555;62571;62409:13;:174::i;:::-;62392:191;;62611:17;62621:6;62611:9;:17::i;:::-;62602:5;:26;62594:64;;;;-1:-1:-1;;;62594:64:0;;13238:2:1;62594:64:0;;;13220:21:1;13277:2;13257:18;;;13250:30;13316:27;13296:18;;;13289:55;13361:18;;62594:64:0;13036:349:1;62594:64:0;62669:28;62679:6;62687:9;62669;:28::i;:::-;62303:402;62123:582;;;;;;:::o;54702:645::-;54946:8;54927:15;:27;;54919:69;;;;-1:-1:-1;;;54919:69:0;;13592:2:1;54919:69:0;;;13574:21:1;13631:2;13611:18;;;13604:30;13670:31;13650:18;;;13643:59;13719:18;;54919:69:0;13390:353:1;54919:69:0;55001:18;55043:16;55061:5;55068:7;55077:5;55084:16;55094:5;55084:9;:16::i;:::-;55032:79;;;;;;14035:25:1;;;;-1:-1:-1;;;;;14134:15:1;;;14114:18;;;14107:43;14186:15;;;;14166:18;;;14159:43;14218:18;;;14211:34;14261:19;;;14254:35;14305:19;;;14298:35;;;14007:19;;55032:79:0;;;;;;;;;;;;55022:90;;;;;;55001:111;;55125:12;55140:28;55157:10;55140:16;:28::i;:::-;55125:43;;55181:14;55198:28;55212:4;55218:1;55221;55224;55198:13;:28::i;:::-;55181:45;;55255:5;-1:-1:-1;;;;;55245:15:0;:6;-1:-1:-1;;;;;55245:15:0;;55237:58;;;;-1:-1:-1;;;55237:58:0;;14546:2:1;55237:58:0;;;14528:21:1;14585:2;14565:18;;;14558:30;14624:32;14604:18;;;14597:60;14674:18;;55237:58:0;14344:354:1;55237:58:0;55308:31;55317:5;55324:7;55333:5;55308:8;:31::i;:::-;54908:439;;;54702:645;;;;;;;:::o;74163:149::-;73452:7;73479:12;;;:6;:12;;;;;:22;;;71853:30;71864:4;33698:10;71853;:30::i;:::-;74278:26:::1;74290:4;74296:7;74278:11;:26::i;51286:297::-:0;51373:7;-1:-1:-1;;;;;51401:22:0;;51418:4;51401:22;51393:62;;;;-1:-1:-1;;;51393:62:0;;14905:2:1;51393:62:0;;;14887:21:1;14944:2;14924:18;;;14917:30;14983:29;14963:18;;;14956:57;15030:18;;51393:62:0;14703:351:1;51393:62:0;-1:-1:-1;51574:1:0;51286:297;;;;:::o;58423:150::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;58539:21:0;;;;;;:12;:21;;;;;:26;;;;;;;;;;;;:::i;:::-;;;;;;;;;;58532:33;;;;;;;;;58539:26;;58532:33;;;;;;;;;-1:-1:-1;;;;;58532:33:0;;;;;;;;;58423:150;-1:-1:-1;;;58423:150:0:o;63011:290::-;63096:28;63108:7;63117:6;63096:11;:28::i;:::-;40991:12;;-1:-1:-1;;;;;;63143:29:0;63135:90;;;;-1:-1:-1;;;63135:90:0;;15261:2:1;63135:90:0;;;15243:21:1;15300:2;15280:18;;;15273:30;15339:34;15319:18;;;15312:62;-1:-1:-1;;;15390:18:1;;;15383:46;15446:19;;63135:90:0;15059:412:1;63135:90:0;63238:55;63255:23;63280:4;63286:6;63238:16;:55::i;:::-;;;63011:290;;:::o;46143:399::-;-1:-1:-1;;;;;46227:21:0;;46219:65;;;;-1:-1:-1;;;46219:65:0;;15678:2:1;46219:65:0;;;15660:21:1;15717:2;15697:18;;;15690:30;15756:33;15736:18;;;15729:61;15807:18;;46219:65:0;15476:355:1;46219:65:0;46375:6;46359:12;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;46392:18:0;;:9;:18;;;;;;;;;;:28;;46414:6;;46392:9;:28;;46414:6;;46392:28;:::i;:::-;;;;-1:-1:-1;;46436:37:0;;1750:25:1;;;-1:-1:-1;;;;;46436:37:0;;;46453:1;;46436:37;;1738:2:1;1723:18;46436:37:0;;;;;;;46486:48;46514:1;46518:7;46527:6;46486:19;:48::i;65855:98::-;65913:7;65940:5;65944:1;65940;:5;:::i;3858:195::-;3915:7;-1:-1:-1;;;;;3943:26:0;;;3935:78;;;;-1:-1:-1;;;3935:78:0;;16038:2:1;3935:78:0;;;16020:21:1;16077:2;16057:18;;;16050:30;16116:34;16096:18;;;16089:62;-1:-1:-1;;;16167:18:1;;;16160:37;16214:19;;3935:78:0;15836:403:1;3935:78:0;-1:-1:-1;4039:5:0;3858:195::o;5828:190::-;5884:6;5920:16;5911:25;;;5903:76;;;;-1:-1:-1;;;5903:76:0;;16446:2:1;5903:76:0;;;16428:21:1;16485:2;16465:18;;;16458:30;16524:34;16504:18;;;16497:62;-1:-1:-1;;;16575:18:1;;;16568:36;16621:19;;5903:76:0;16244:402:1;63729:262:0;-1:-1:-1;;;;;58989:19:0;;;58962:7;58989:19;;;:10;:19;;;;;;;;;;;;;;;63927:56;;58989:19;;;;;63976:6;63927:16;:56::i;65961:103::-;66024:7;66051:5;66055:1;66051;:5;:::i;47904:380::-;-1:-1:-1;;;;;48040:19:0;;48032:68;;;;-1:-1:-1;;;48032:68:0;;16853:2:1;48032:68:0;;;16835:21:1;16892:2;16872:18;;;16865:30;16931:34;16911:18;;;16904:62;-1:-1:-1;;;16982:18:1;;;16975:34;17026:19;;48032:68:0;16651:400:1;48032:68:0;-1:-1:-1;;;;;48119:21:0;;48111:68;;;;-1:-1:-1;;;48111:68:0;;17258:2:1;48111:68:0;;;17240:21:1;17297:2;17277:18;;;17270:30;17336:34;17316:18;;;17309:62;-1:-1:-1;;;17387:18:1;;;17380:32;17429:19;;48111:68:0;17056:398:1;48111:68:0;-1:-1:-1;;;;;48192:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;48244:32;;1750:25:1;;;48244:32:0;;1723:18:1;48244:32:0;;;;;;;47904:380;;;:::o;45123:733::-;-1:-1:-1;;;;;45263:20:0;;45255:70;;;;-1:-1:-1;;;45255:70:0;;17661:2:1;45255:70:0;;;17643:21:1;17700:2;17680:18;;;17673:30;17739:34;17719:18;;;17712:62;-1:-1:-1;;;17790:18:1;;;17783:35;17835:19;;45255:70:0;17459:401:1;45255:70:0;-1:-1:-1;;;;;45344:23:0;;45336:71;;;;-1:-1:-1;;;45336:71:0;;18067:2:1;45336:71:0;;;18049:21:1;18106:2;18086:18;;;18079:30;18145:34;18125:18;;;18118:62;-1:-1:-1;;;18196:18:1;;;18189:33;18239:19;;45336:71:0;17865:399:1;45336:71:0;-1:-1:-1;;;;;45504:17:0;;45480:21;45504:17;;;;;;;;;;;45540:23;;;;45532:74;;;;-1:-1:-1;;;45532:74:0;;18471:2:1;45532:74:0;;;18453:21:1;18510:2;18490:18;;;18483:30;18549:34;18529:18;;;18522:62;-1:-1:-1;;;18600:18:1;;;18593:36;18646:19;;45532:74:0;18269:402:1;45532:74:0;-1:-1:-1;;;;;45642:17:0;;;:9;:17;;;;;;;;;;;45662:22;;;45642:42;;45706:20;;;;;;;;:30;;45678:6;;45642:9;45706:30;;45678:6;;45706:30;:::i;:::-;;;;;;;;45771:9;-1:-1:-1;;;;;45754:35:0;45763:6;-1:-1:-1;;;;;45754:35:0;;45782:6;45754:35;;;;1750:25:1;;1738:2;1723:18;;1604:177;45754:35:0;;;;;;;;45802:46;45822:6;45830:9;45841:6;45802:19;:46::i;72700:497::-;72781:22;72789:4;72795:7;72781;:22::i;:::-;72776:414;;72969:41;72997:7;-1:-1:-1;;;;;72969:41:0;73007:2;72969:19;:41::i;:::-;73083:38;73111:4;73118:2;73083:19;:38::i;:::-;72874:270;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;72874:270:0;;;;;;;;;;-1:-1:-1;;;72820:358:0;;;;;;;:::i;76320:238::-;76404:22;76412:4;76418:7;76404;:22::i;:::-;76399:152;;76443:12;;;;:6;:12;;;;;;;;-1:-1:-1;;;;;76443:29:0;;;;;;;;;:36;;-1:-1:-1;;76443:36:0;76475:4;76443:36;;;76526:12;33698:10;;33618:98;76526:12;-1:-1:-1;;;;;76499:40:0;76517:7;-1:-1:-1;;;;;76499:40:0;76511:4;76499:40;;;;;;;;;;76320:238;;:::o;29047:314::-;29100:7;29132:4;-1:-1:-1;;;;;29141:12:0;29124:29;;:66;;;;;29174:16;29157:13;:33;29124:66;29120:234;;;-1:-1:-1;29214:24:0;;29047:314::o;29120:234::-;-1:-1:-1;29550:73:0;;;29300:10;29550:73;;;;20786:25:1;;;;29312:12:0;20827:18:1;;;20820:34;29326:15:0;20870:18:1;;;20863:34;29594:13:0;20913:18:1;;;20906:34;29617:4:0;20956:19:1;;;;20949:61;;;;29550:73:0;;;;;;;;;;20758:19:1;;;;29550:73:0;;;29540:84;;;;;;55671:115::o;76690:239::-;76774:22;76782:4;76788:7;76774;:22::i;:::-;76770:152;;;76845:5;76813:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;76813:29:0;;;;;;;;;;:37;;-1:-1:-1;;76813:37:0;;;76870:40;33698:10;;76813:12;;76870:40;;76845:5;76870:40;76690:239;;:::o;60368:1482::-;61501:12;;60467:7;;;61550:236;61563:4;61557:3;:10;61550:236;;;61584:11;61598:23;61611:3;61616:4;61598:12;:23::i;:::-;61584:37;;61663:11;61640:5;61646:3;61640:10;;;;;;;;:::i;:::-;;;;;;;;;;:20;;;:34;61636:139;;;61702:3;61695:10;;61636:139;;;61752:7;:3;61758:1;61752:7;:::i;:::-;61746:13;;61636:139;61569:217;61550:236;;;61805:9;;:37;;61821:5;61827:8;61834:1;61827:4;:8;:::i;:::-;61821:15;;;;;;;;:::i;:::-;;;;;;;;;;:21;;;;-1:-1:-1;;;;;61821:21:0;61805:37;;;61817:1;61805:37;-1:-1:-1;;;;;61798:44:0;;60368:1482;-1:-1:-1;;;;;60368:1482:0:o;77713:145::-;77827:23;77839:2;77843:6;77827:11;:23::i;77866:155::-;77985:28;77997:7;78006:6;77985:11;:28::i;64155:388::-;-1:-1:-1;;;;;58989:19:0;;;64240:23;58989:19;;;:10;:19;;;;;;;;;;41175:18;;;;;;;64355:21;;;;:33;;;-1:-1:-1;;;;;;64355:33:0;;;;;;;64406:54;;58989:19;;;;;41175:18;;64355:33;;58989:19;;;64406:54;;64240:23;64406:54;64473:62;64490:15;64507:9;64518:16;64473;:62::i;30274:167::-;30351:7;30378:55;30400:20;:18;:20::i;:::-;30422:10;25681:57;;-1:-1:-1;;;25681:57:0;;;21501:27:1;21544:11;;;21537:27;;;21580:12;;;21573:28;;;25644:7:0;;21617:12:1;;25681:57:0;;;;;;;;;;;;25671:68;;;;;;25664:75;;25551:196;;;;;23860:279;23988:7;24009:17;24028:18;24050:25;24061:4;24067:1;24070;24073;24050:10;:25::i;:::-;24008:67;;;;24086:18;24098:5;24086:11;:18::i;:::-;-1:-1:-1;24122:9:0;23860:279;-1:-1:-1;;;;;23860:279:0:o;55924:207::-;-1:-1:-1;;;;;56045:14:0;;55984:15;56045:14;;;:7;:14;;;;;13437;;13574:1;13556:19;;;;13437:14;56106:17;56001:130;55924:207;;;:::o;65202:645::-;65439:12;;65376:17;;;;65474:8;;:35;;65489:5;65495:7;65501:1;65495:3;:7;:::i;:::-;65489:14;;;;;;;;:::i;:::-;;;;;;;;;;:20;;;;-1:-1:-1;;;;;65489:20:0;65474:35;;;65485:1;65474:35;-1:-1:-1;;;;;65462:47:0;;;65532:20;65535:9;65546:5;65532:2;:20;;:::i;:::-;65520:32;;65575:1;65569:3;:7;:51;;;;-1:-1:-1;65608:12:0;65580:5;65586:7;65592:1;65586:3;:7;:::i;:::-;65580:14;;;;;;;;:::i;:::-;;;;;;;;;;:24;;;:40;65569:51;65565:275;;;65660:29;65679:9;65660:18;:29::i;:::-;65637:5;65643:7;65649:1;65643:3;:7;:::i;:::-;65637:14;;;;;;;;:::i;:::-;;;;;;;;:20;;;:52;;;;;-1:-1:-1;;;;;65637:52:0;;;;;-1:-1:-1;;;;;65637:52:0;;;;;;65565:275;;;65722:5;65733:94;;;;;;;;65756:31;65774:12;65756:17;:31::i;:::-;65733:94;;;;;;65796:29;65815:9;65796:18;:29::i;:::-;-1:-1:-1;;;;;65733:94:0;;;;;;65722:106;;;;;;;-1:-1:-1;65722:106:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;65565:275;65414:433;65202:645;;;;;;:::o;77512:193::-;77654:43;77680:4;77686:2;77690:6;77654:25;:43::i;64551:643::-;64683:3;-1:-1:-1;;;;;64676:10:0;:3;-1:-1:-1;;;;;64676:10:0;;;:24;;;;;64699:1;64690:6;:10;64676:24;64672:515;;;-1:-1:-1;;;;;64721:17:0;;;64717:224;;-1:-1:-1;;;;;64817:17:0;;64760;64817;;;:12;:17;;;;;64760;;64800:54;;64836:9;64847:6;64800:16;:54::i;:::-;64759:95;;;;64899:3;-1:-1:-1;;;;;64878:47:0;;64904:9;64915;64878:47;;;;;;19641:25:1;;;19697:2;19682:18;;19675:34;19629:2;19614:18;;19467:248;64878:47:0;;;;;;;;64740:201;;64717:224;-1:-1:-1;;;;;64961:17:0;;;64957:219;;-1:-1:-1;;;;;65057:17:0;;65000;65057;;;:12;:17;;;;;65000;;65040:49;;65076:4;65082:6;65040:16;:49::i;:::-;64999:90;;;;65134:3;-1:-1:-1;;;;;65113:47:0;;65139:9;65150;65113:47;;;;;;19641:25:1;;;19697:2;19682:18;;19675:34;19629:2;19614:18;;19467:248;65113:47:0;;;;;;;;64980:196;;64551:643;;;:::o;15667:451::-;15742:13;15768:19;15800:10;15804:6;15800:1;:10;:::i;:::-;:14;;15813:1;15800:14;:::i;:::-;15790:25;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;15790:25:0;;15768:47;;-1:-1:-1;;;15826:6:0;15833:1;15826:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;15826:15:0;;;;;;;;;-1:-1:-1;;;15852:6:0;15859:1;15852:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;15852:15:0;;;;;;;;-1:-1:-1;15883:9:0;15895:10;15899:6;15895:1;:10;:::i;:::-;:14;;15908:1;15895:14;:::i;:::-;15883:26;;15878:135;15915:1;15911;:5;15878:135;;;-1:-1:-1;;;15963:5:0;15971:3;15963:11;15950:25;;;;;;;:::i;:::-;;;;15938:6;15945:1;15938:9;;;;;;;;:::i;:::-;;;;:37;-1:-1:-1;;;;;15938:37:0;;;;;;;;-1:-1:-1;16000:1:0;15990:11;;;;;15918:3;;;:::i;:::-;;;15878:135;;;-1:-1:-1;16031:10:0;;16023:55;;;;-1:-1:-1;;;16023:55:0;;20368:2:1;16023:55:0;;;20350:21:1;;;20387:18;;;20380:30;20446:34;20426:18;;;20419:62;20498:18;;16023:55:0;20166:356:1;11531:156:0;11593:7;11668:11;11678:1;11669:5;;;11668:11;:::i;:::-;11658:21;;11659:5;;;11658:21;:::i;63395:194::-;63480:28;63492:7;63501:6;63480:11;:28::i;:::-;63521:60;63538:23;63563:9;63574:6;63521:16;:60::i;22089:1632::-;22220:7;;23154:66;23141:79;;23137:163;;;-1:-1:-1;23253:1:0;;-1:-1:-1;23257:30:0;23237:51;;23137:163;23314:1;:7;;23319:2;23314:7;;:18;;;;;23325:1;:7;;23330:2;23325:7;;23314:18;23310:102;;;-1:-1:-1;23365:1:0;;-1:-1:-1;23369:30:0;23349:51;;23310:102;23526:24;;;23509:14;23526:24;;;;;;;;;21867:25:1;;;21940:4;21928:17;;21908:18;;;21901:45;;;;21962:18;;;21955:34;;;22005:18;;;21998:34;;;23526:24:0;;21839:19:1;;23526:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;23526:24:0;;-1:-1:-1;;23526:24:0;;;-1:-1:-1;;;;;;;23565:20:0;;23561:103;;23618:1;23622:29;23602:50;;;;;;;23561:103;23684:6;-1:-1:-1;23692:20:0;;-1:-1:-1;22089:1632:0;;;;;;;;:::o;16751:643::-;16829:20;16820:5;:29;;;;;;;;:::i;:::-;;16816:571;;;16751:643;:::o;16816:571::-;16927:29;16918:5;:38;;;;;;;;:::i;:::-;;16914:473;;;16973:34;;-1:-1:-1;;;16973:34:0;;22377:2:1;16973:34:0;;;22359:21:1;22416:2;22396:18;;;22389:30;22455:26;22435:18;;;22428:54;22499:18;;16973:34:0;22175:348:1;16914:473:0;17038:35;17029:5;:44;;;;;;;;:::i;:::-;;17025:362;;;17090:41;;-1:-1:-1;;;17090:41:0;;22730:2:1;17090:41:0;;;22712:21:1;22769:2;22749:18;;;22742:30;22808:33;22788:18;;;22781:61;22859:18;;17090:41:0;22528:355:1;17025:362:0;17162:30;17153:5;:39;;;;;;;;:::i;:::-;;17149:238;;;17209:44;;-1:-1:-1;;;17209:44:0;;23090:2:1;17209:44:0;;;23072:21:1;23129:2;23109:18;;;23102:30;23168:34;23148:18;;;23141:62;-1:-1:-1;;;23219:18:1;;;23212:32;23261:19;;17209:44:0;22888:398:1;17149:238:0;17284:30;17275:5;:39;;;;;;;;:::i;:::-;;17271:116;;;17331:44;;-1:-1:-1;;;17331:44:0;;23493:2:1;17331:44:0;;;23475:21:1;23532:2;23512:18;;;23505:30;23571:34;23551:18;;;23544:62;-1:-1:-1;;;23622:18:1;;;23615:32;23664:19;;17331:44:0;23291:398:1;46875:591:0;-1:-1:-1;;;;;46959:21:0;;46951:67;;;;-1:-1:-1;;;46951:67:0;;23896:2:1;46951:67:0;;;23878:21:1;23935:2;23915:18;;;23908:30;23974:34;23954:18;;;23947:62;-1:-1:-1;;;24025:18:1;;;24018:31;24066:19;;46951:67:0;23694:397:1;46951:67:0;-1:-1:-1;;;;;47118:18:0;;47093:22;47118:18;;;;;;;;;;;47155:24;;;;47147:71;;;;-1:-1:-1;;;47147:71:0;;24298:2:1;47147:71:0;;;24280:21:1;24337:2;24317:18;;;24310:30;24376:34;24356:18;;;24349:62;-1:-1:-1;;;24427:18:1;;;24420:32;24469:19;;47147:71:0;24096:398:1;47147:71:0;-1:-1:-1;;;;;47254:18:0;;:9;:18;;;;;;;;;;47275:23;;;47254:44;;47320:12;:22;;47292:6;;47254:9;47320:22;;47292:6;;47320:22;:::i;:::-;;;;-1:-1:-1;;47360:37:0;;1750:25:1;;;47386:1:0;;-1:-1:-1;;;;;47360:37:0;;;;;1738:2:1;1723:18;47360:37:0;;;;;;;47410:48;47430:7;47447:1;47451:6;47410:19;:48::i;14:286:1:-;72:6;125:2;113:9;104:7;100:23;96:32;93:52;;;141:1;138;131:12;93:52;167:23;;-1:-1:-1;;;;;;219:32:1;;209:43;;199:71;;266:1;263;256:12;497:258;569:1;579:113;593:6;590:1;587:13;579:113;;;669:11;;;663:18;650:11;;;643:39;615:2;608:10;579:113;;;710:6;707:1;704:13;701:48;;;-1:-1:-1;;745:1:1;727:16;;720:27;497:258::o;760:383::-;909:2;898:9;891:21;872:4;941:6;935:13;984:6;979:2;968:9;964:18;957:34;1000:66;1059:6;1054:2;1043:9;1039:18;1034:2;1026:6;1022:15;1000:66;:::i;:::-;1127:2;1106:15;-1:-1:-1;;1102:29:1;1087:45;;;;1134:2;1083:54;;760:383;-1:-1:-1;;760:383:1:o;1148:131::-;-1:-1:-1;;;;;1223:31:1;;1213:42;;1203:70;;1269:1;1266;1259:12;1284:315;1352:6;1360;1413:2;1401:9;1392:7;1388:23;1384:32;1381:52;;;1429:1;1426;1419:12;1381:52;1468:9;1455:23;1487:31;1512:5;1487:31;:::i;:::-;1537:5;1589:2;1574:18;;;;1561:32;;-1:-1:-1;;;1284:315:1:o;1786:456::-;1863:6;1871;1879;1932:2;1920:9;1911:7;1907:23;1903:32;1900:52;;;1948:1;1945;1938:12;1900:52;1987:9;1974:23;2006:31;2031:5;2006:31;:::i;:::-;2056:5;-1:-1:-1;2113:2:1;2098:18;;2085:32;2126:33;2085:32;2126:33;:::i;:::-;1786:456;;2178:7;;-1:-1:-1;;;2232:2:1;2217:18;;;;2204:32;;1786:456::o;2247:180::-;2306:6;2359:2;2347:9;2338:7;2334:23;2330:32;2327:52;;;2375:1;2372;2365:12;2327:52;-1:-1:-1;2398:23:1;;2247:180;-1:-1:-1;2247:180:1:o;2614:315::-;2682:6;2690;2743:2;2731:9;2722:7;2718:23;2714:32;2711:52;;;2759:1;2756;2749:12;2711:52;2795:9;2782:23;2772:33;;2855:2;2844:9;2840:18;2827:32;2868:31;2893:5;2868:31;:::i;:::-;2918:5;2908:15;;;2614:315;;;;;:::o;3308:247::-;3367:6;3420:2;3408:9;3399:7;3395:23;3391:32;3388:52;;;3436:1;3433;3426:12;3388:52;3475:9;3462:23;3494:31;3519:5;3494:31;:::i;3768:964::-;3893:6;3901;3909;3917;3925;3978:3;3966:9;3957:7;3953:23;3949:33;3946:53;;;3995:1;3992;3985:12;3946:53;4034:9;4021:23;4053:31;4078:5;4053:31;:::i;:::-;4103:5;-1:-1:-1;4160:2:1;4145:18;;4132:32;4173:33;4132:32;4173:33;:::i;:::-;4225:7;-1:-1:-1;4279:2:1;4264:18;;4251:32;;-1:-1:-1;4334:2:1;4319:18;;4306:32;4357:18;4387:14;;;4384:34;;;4414:1;4411;4404:12;4384:34;4452:6;4441:9;4437:22;4427:32;;4497:7;4490:4;4486:2;4482:13;4478:27;4468:55;;4519:1;4516;4509:12;4468:55;4559:2;4546:16;4585:2;4577:6;4574:14;4571:34;;;4601:1;4598;4591:12;4571:34;4646:7;4641:2;4632:6;4628:2;4624:15;4620:24;4617:37;4614:57;;;4667:1;4664;4657:12;4614:57;3768:964;;;;-1:-1:-1;3768:964:1;;-1:-1:-1;4698:2:1;4690:11;;4720:6;3768:964;-1:-1:-1;;;3768:964:1:o;4934:156::-;5000:20;;5060:4;5049:16;;5039:27;;5029:55;;5080:1;5077;5070:12;5029:55;4934:156;;;:::o;5095:592::-;5197:6;5205;5213;5221;5229;5237;5290:3;5278:9;5269:7;5265:23;5261:33;5258:53;;;5307:1;5304;5297:12;5258:53;5346:9;5333:23;5365:31;5390:5;5365:31;:::i;:::-;5415:5;-1:-1:-1;5467:2:1;5452:18;;5439:32;;-1:-1:-1;5518:2:1;5503:18;;5490:32;;-1:-1:-1;5541:36:1;5573:2;5558:18;;5541:36;:::i;:::-;5531:46;;5624:3;5613:9;5609:19;5596:33;5586:43;;5676:3;5665:9;5661:19;5648:33;5638:43;;5095:592;;;;;;;;:::o;5692:734::-;5803:6;5811;5819;5827;5835;5843;5851;5904:3;5892:9;5883:7;5879:23;5875:33;5872:53;;;5921:1;5918;5911:12;5872:53;5960:9;5947:23;5979:31;6004:5;5979:31;:::i;:::-;6029:5;-1:-1:-1;6086:2:1;6071:18;;6058:32;6099:33;6058:32;6099:33;:::i;:::-;6151:7;-1:-1:-1;6205:2:1;6190:18;;6177:32;;-1:-1:-1;6256:2:1;6241:18;;6228:32;;-1:-1:-1;6279:37:1;6311:3;6296:19;;6279:37;:::i;:::-;6269:47;;6363:3;6352:9;6348:19;6335:33;6325:43;;6415:3;6404:9;6400:19;6387:33;6377:43;;5692:734;;;;;;;;;;:::o;6431:388::-;6499:6;6507;6560:2;6548:9;6539:7;6535:23;6531:32;6528:52;;;6576:1;6573;6566:12;6528:52;6615:9;6602:23;6634:31;6659:5;6634:31;:::i;:::-;6684:5;-1:-1:-1;6741:2:1;6726:18;;6713:32;6754:33;6713:32;6754:33;:::i;6824:419::-;6891:6;6899;6952:2;6940:9;6931:7;6927:23;6923:32;6920:52;;;6968:1;6965;6958:12;6920:52;7007:9;6994:23;7026:31;7051:5;7026:31;:::i;:::-;7076:5;-1:-1:-1;7133:2:1;7118:18;;7105:32;7181:10;7168:24;;7156:37;;7146:65;;7207:1;7204;7197:12;7599:380;7678:1;7674:12;;;;7721;;;7742:61;;7796:4;7788:6;7784:17;7774:27;;7742:61;7849:2;7841:6;7838:14;7818:18;7815:38;7812:161;;;7895:10;7890:3;7886:20;7883:1;7876:31;7930:4;7927:1;7920:15;7958:4;7955:1;7948:15;8809:127;8870:10;8865:3;8861:20;8858:1;8851:31;8901:4;8898:1;8891:15;8925:4;8922:1;8915:15;8941:128;8981:3;9012:1;9008:6;9005:1;9002:13;8999:39;;;9018:18;;:::i;:::-;-1:-1:-1;9054:9:1;;8941:128::o;9434:734::-;-1:-1:-1;;;;;9741:15:1;;;9723:34;;9793:15;;9788:2;9773:18;;9766:43;9840:2;9825:18;;9818:34;;;9883:2;9868:18;;9861:34;;;9703:3;9926;9911:19;;9904:32;;;9952:19;;9945:35;;;9666:4;9973:6;10023;10017:3;10002:19;;9989:49;10088:1;10082:3;10073:6;10062:9;10058:22;10054:32;10047:43;10158:3;10151:2;10147:7;10142:2;10134:6;10130:15;10126:29;10115:9;10111:45;10107:55;10099:63;;9434:734;;;;;;;;;:::o;10173:184::-;10243:6;10296:2;10284:9;10275:7;10271:23;10267:32;10264:52;;;10312:1;10309;10302:12;10264:52;-1:-1:-1;10335:16:1;;10173:184;-1:-1:-1;10173:184:1:o;11183:125::-;11223:4;11251:1;11248;11245:8;11242:34;;;11256:18;;:::i;:::-;-1:-1:-1;11293:9:1;;11183:125::o;11718:127::-;11779:10;11774:3;11770:20;11767:1;11760:31;11810:4;11807:1;11800:15;11834:4;11831:1;11824:15;18676:786;19087:25;19082:3;19075:38;19057:3;19142:6;19136:13;19158:62;19213:6;19208:2;19203:3;19199:12;19192:4;19184:6;19180:17;19158:62;:::i;:::-;-1:-1:-1;;;19279:2:1;19239:16;;;19271:11;;;19264:40;19329:13;;19351:63;19329:13;19400:2;19392:11;;19385:4;19373:17;;19351:63;:::i;:::-;19434:17;19453:2;19430:26;;18676:786;-1:-1:-1;;;;18676:786:1:o;19720:168::-;19760:7;19826:1;19822;19818:6;19814:14;19811:1;19808:21;19803:1;19796:9;19789:17;19785:45;19782:71;;;19833:18;;:::i;:::-;-1:-1:-1;19873:9:1;;19720:168::o;19893:127::-;19954:10;19949:3;19945:20;19942:1;19935:31;19985:4;19982:1;19975:15;20009:4;20006:1;19999:15;20025:136;20064:3;20092:5;20082:39;;20101:18;;:::i;:::-;-1:-1:-1;;;20137:18:1;;20025:136::o;21021:217::-;21061:1;21087;21077:132;;21131:10;21126:3;21122:20;21119:1;21112:31;21166:4;21163:1;21156:15;21194:4;21191:1;21184:15;21077:132;-1:-1:-1;21223:9:1;;21021:217::o;22043:127::-;22104:10;22099:3;22095:20;22092:1;22085:31;22135:4;22132:1;22125:15;22159:4;22156:1;22149:15
Swarm Source
ipfs://0bf64c9fd8d2033e1308f73bc9a5f47113faec62765a4d9e699d29ddeb0bfc1a
[ 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.