ERC-20
Overview
Max Total Supply
2,967,382 wBAI
Holders
5,966
Total Transfers
-
Market
Price
$1.73 @ 0.000481 ETH (+52.84%)
Onchain Market Cap
$5,127,293.88
Circulating Supply Market Cap
$0.00
Other Info
Token Contract (WITH 9 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
wBAI
Compiler Version
v0.8.19+commit.7dd6d404
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-11-07 */ /* ██████╗ █████╗ ██╗ █████╗ ███╗ ██╗ ██████╗███████╗ █████╗ ██╗ ██╔══██╗██╔══██╗██║ ██╔══██╗████╗ ██║██╔════╝██╔════╝ ██╔══██╗██║ ██████╔╝███████║██║ ███████║██╔██╗ ██║██║ █████╗ ███████║██║ ██╔══██╗██╔══██║██║ ██╔══██║██║╚██╗██║██║ ██╔══╝ ██╔══██║██║ ██████╔╝██║ ██║███████╗██║ ██║██║ ╚████║╚██████╗███████╗ ██║ ██║██║ ╚═════╝ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═════╝╚══════╝ ╚═╝ ╚═╝╚═╝ WWW: https://www.balancedao.io/ Twitter: https://twitter.com/Balance_AI Telegram: https://t.me/Balance_AI Discord: https://discord.gg/PgPkJPqXGG Medium: https://balancedao.medium.com/ Wrapped $BAI on ETH Mainnet */ // Sources flattened with hardhat v2.17.0 https://hardhat.org // File @openzeppelin/contracts/access/[email protected] // SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; } // File @openzeppelin/contracts/utils/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File @openzeppelin/contracts/utils/introspection/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File @openzeppelin/contracts/utils/introspection/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } // File @openzeppelin/contracts/utils/math/[email protected] // OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1, "Math: mulDiv overflow"); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10 ** 64) { value /= 10 ** 64; result += 64; } if (value >= 10 ** 32) { value /= 10 ** 32; result += 32; } if (value >= 10 ** 16) { value /= 10 ** 16; result += 16; } if (value >= 10 ** 8) { value /= 10 ** 8; result += 8; } if (value >= 10 ** 4) { value /= 10 ** 4; result += 4; } if (value >= 10 ** 2) { value /= 10 ** 2; result += 2; } if (value >= 10 ** 1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 256, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0); } } } // File @openzeppelin/contracts/utils/math/[email protected] // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol) pragma solidity ^0.8.0; /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMath { /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return a > b ? a : b; } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return a < b ? a : b; } /** * @dev Returns the average of two signed numbers without overflow. * The result is rounded towards zero. */ function average(int256 a, int256 b) internal pure returns (int256) { // Formula from the book "Hacker's Delight" int256 x = (a & b) + ((a ^ b) >> 1); return x + (int256(uint256(x) >> 255) & (a ^ b)); } /** * @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 @openzeppelin/contracts/utils/[email protected] // OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `int256` to its ASCII `string` decimal representation. */ function toString(int256 value) internal pure returns (string memory) { return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value)))); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @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] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return keccak256(bytes(a)) == keccak256(bytes(b)); } } // File @openzeppelin/contracts/access/[email protected] // OpenZeppelin Contracts (last updated v4.9.0) (access/AccessControl.sol) pragma solidity ^0.8.0; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ```solidity * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ```solidity * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. We recommend using {AccessControlDefaultAdminRules} * to enforce additional security measures for this role. */ 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); _; } /** * @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 virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `_msgSender()` is missing `role`. * Overriding this function changes the behavior of the {onlyRole} modifier. * * Format of the revert message is described in {_checkRole}. * * _Available since v4.6._ */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @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 virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(account), " 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 virtual 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. * * May emit a {RoleGranted} event. */ 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. * * May emit a {RoleRevoked} event. */ 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`. * * May emit a {RoleRevoked} event. */ 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. * * May emit a {RoleGranted} event. * * [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. * * May emit a {RoleGranted} event. */ 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. * * May emit a {RoleRevoked} event. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } } // File @openzeppelin/contracts/access/[email protected] // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File @openzeppelin/contracts/token/ERC20/[email protected] // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); } // File @openzeppelin/contracts/token/ERC20/extensions/[email protected] // OpenZeppelin Contracts v4.4.1 (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 @openzeppelin/contracts/token/ERC20/[email protected] // OpenZeppelin Contracts (last updated v4.9.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.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * The default value of {decimals} is 18. To change this, you should override * this function so it returns a different value. * * 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}. * * 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 default value returned by this function, unless * it's overridden. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer(address from, address to, uint256 amount) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by // decrementing then incrementing. _balances[to] += amount; } emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _balances[account] += amount; } emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; // Overflow not possible: amount <= accountBalance <= totalSupply. _totalSupply -= amount; } emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance(address owner, address spender, uint256 amount) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {} } // File @openzeppelin/contracts/token/ERC20/extensions/[email protected] // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/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 @openzeppelin/contracts/utils/[email protected] // OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } // File @openzeppelin/contracts/token/ERC20/utils/[email protected] // OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; /** * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } /** * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful. */ function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } /** * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value)); } /** * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value)); } } /** * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval * to be set to zero before setting it to a non-zero value, such as USDT. */ function forceApprove(IERC20 token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0)); _callOptionalReturn(token, approvalCall); } } /** * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`. * Revert on invalid signature. */ function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). * * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false // and not revert is the subcall reverts. (bool success, bytes memory returndata) = address(token).call(data); return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token)); } } // File @openzeppelin/contracts/utils/math/[email protected] // OpenZeppelin Contracts (last updated v4.9.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } } // File contracts/wBAI.sol /* ██████╗ █████╗ ██╗ █████╗ ███╗ ██╗ ██████╗███████╗ █████╗ ██╗ ██╔══██╗██╔══██╗██║ ██╔══██╗████╗ ██║██╔════╝██╔════╝ ██╔══██╗██║ ██████╔╝███████║██║ ███████║██╔██╗ ██║██║ █████╗ ███████║██║ ██╔══██╗██╔══██║██║ ██╔══██║██║╚██╗██║██║ ██╔══╝ ██╔══██║██║ ██████╔╝██║ ██║███████╗██║ ██║██║ ╚████║╚██████╗███████╗ ██║ ██║██║ ╚═════╝ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═════╝╚══════╝ ╚═╝ ╚═╝╚═╝ WWW: https://www.balancedao.io/ Twitter: https://twitter.com/Balance_AI Telegram: https://t.me/Balance_AI Discord: https://discord.gg/PgPkJPqXGG Medium: https://balancedao.medium.com/ */ pragma solidity ^0.8.19; // Uncomment this line to use console.log // import "hardhat/console.sol"; contract wBAI is ERC20, Ownable, AccessControl { using SafeMath for uint256; bytes32 public constant BRIDGE_ROLE = keccak256("BRIDGE_ROLE"); uint256 public BALANCE_FEE = 123000321; // 0.123 wBAI uint256 public _nonce = 0; uint256 public cumulative_bridged = 0; uint256 public cumulative_bridged_back = 0; bool public bridge_back_active = false; event Mint(address indexed to, uint256 amount); event BridgedTo(string from, address indexed to, uint256 amount, uint256 nonce); event BridgedBack(address indexed from, uint256 amount, string to, uint256 nonce); event BridgeSet(address indexed bridge); event BridgeBackEnabled(); constructor() ERC20("Wrapped Balance AI", "wBAI") { _setupRole(DEFAULT_ADMIN_ROLE, _msgSender()); } function decimals() public view virtual override returns (uint8) { return 9; } function setBridge(address _bridge) external onlyOwner returns(bool) { _setupRole(BRIDGE_ROLE, _bridge); emit BridgeSet(_bridge); return true; } function enableBridgeBack() external onlyOwner returns(bool) { bridge_back_active = true; emit BridgeBackEnabled(); return true; } function adjustFee(uint256 _fee) external onlyOwner returns(bool) { require(_fee < 123000321, "Fee can not be higher then initial setup."); BALANCE_FEE = _fee; return true; } function bridgedTo(string[] memory _froms, address[] memory _tos, uint256[] memory _amounts) public returns(bool) { require(hasRole(BRIDGE_ROLE, _msgSender()), "Caller is not the bridge"); // require all arrays are the same length require(_froms.length == _tos.length && _froms.length == _amounts.length, "Arrays are not the same length"); // loop through arrays and mint for (uint256 i = 0; i < _froms.length; i++) { _mint(_tos[i], _amounts[i]); cumulative_bridged = cumulative_bridged.add(_amounts[i]); emit BridgedTo(_froms[i], _tos[i], _amounts[i], _nonce); _nonce++; } return true; } function bridgeBack(uint256 _amount, string memory _to) public returns(bool) { require(bridge_back_active, "Bridge back is not active yet."); require(_amount <= balanceOf(_msgSender()), "Not enough balance"); // require greater than 0.123000321 wBAI for gas purposes. require(_amount > BALANCE_FEE, "Does not meet minimum amount for gas (0.123000321 wBAI)"); _burn(msg.sender, _amount); _nonce++; cumulative_bridged_back = cumulative_bridged_back.add(_amount); emit BridgedBack(_msgSender(), _amount, _to, _nonce); return true; } function deployer() public view returns (address) { return owner(); } // reclaim stuck sent tokens function reclaimToken(address _token) public onlyOwner { ERC20 token = ERC20(_token); uint256 balance = token.balanceOf(address(this)); token.transfer(owner(), balance); payable(owner()).transfer(address(this).balance); } }
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":[],"name":"BridgeBackEnabled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"bridge","type":"address"}],"name":"BridgeSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"string","name":"to","type":"string"},{"indexed":false,"internalType":"uint256","name":"nonce","type":"uint256"}],"name":"BridgedBack","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"from","type":"string"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"nonce","type":"uint256"}],"name":"BridgedTo","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"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":"BALANCE_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BRIDGE_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_nonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"adjustFee","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","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"},{"internalType":"string","name":"_to","type":"string"}],"name":"bridgeBack","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"bridge_back_active","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string[]","name":"_froms","type":"string[]"},{"internalType":"address[]","name":"_tos","type":"address[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"bridgedTo","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cumulative_bridged","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cumulative_bridged_back","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"deployer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"enableBridgeBack","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"reclaimToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","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":"address","name":"_bridge","type":"address"}],"name":"setBridge","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052630754d601600755600060088190556009819055600a55600b805460ff191690553480156200003257600080fd5b5060405180604001604052806012815260200171577261707065642042616c616e636520414960701b815250604051806040016040528060048152602001637742414960e01b81525081600390816200008c91906200027a565b5060046200009b82826200027a565b505050620000b8620000b2620000cb60201b60201c565b620000cf565b620000c560003362000121565b62000346565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6200012d828262000131565b5050565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff166200012d5760008281526006602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620001913390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200020057607f821691505b6020821081036200022157634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200027557600081815260208120601f850160051c81016020861015620002505750805b601f850160051c820191505b8181101562000271578281556001016200025c565b5050505b505050565b81516001600160401b03811115620002965762000296620001d5565b620002ae81620002a78454620001eb565b8462000227565b602080601f831160018114620002e65760008415620002cd5750858301515b600019600386901b1c1916600185901b17855562000271565b600085815260208120601f198616915b828110156200031757888601518255948401946001909101908401620002f6565b5085821015620003365787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61201580620003566000396000f3fe608060405234801561001057600080fd5b50600436106102265760003560e01c80635d1222aa1161012a578063a457c2d7116100bd578063d547741f1161008c578063dd0200fa11610071578063dd0200fa146104a7578063dd62ed3e146104b0578063f2fde38b146104e957600080fd5b8063d547741f1461048c578063d5f394881461049f57600080fd5b8063a457c2d71461042c578063a9059cbb1461043f578063b5bfddea14610452578063c079c3181461047957600080fd5b80638dd14802116100f95780638dd14802146103d057806391d14854146103e357806395d89b411461041c578063a217fddf1461042457600080fd5b80635d1222aa1461037157806370a082311461037a578063715018a6146103a35780638da5cb5b146103ab57600080fd5b806323b872dd116101bd578063313ce5671161018c578063395093511161017157806339509351146103495780633d1326301461035c5780634b27cd961461036457600080fd5b8063313ce5671461032757806336568abe1461033657600080fd5b806323b872dd146102cb578063248a9ca3146102de5780632a383090146103015780632f2ff15d1461031457600080fd5b80631264612a116101f95780631264612a1461029257806317ffc320146102a557806318160ddd146102ba5780631bd3c1c8146102c257600080fd5b806301ffc9a71461022b57806306fdde03146102535780630705d87d14610268578063095ea7b31461027f575b600080fd5b61023e61023936600461199a565b6104fc565b60405190151581526020015b60405180910390f35b61025b610565565b60405161024a9190611a14565b61027160095481565b60405190815260200161024a565b61023e61028d366004611a3e565b6105f7565b61023e6102a0366004611c10565b61060f565b6102b86102b3366004611d08565b61082a565b005b600254610271565b61027160075481565b61023e6102d9366004611d23565b61098c565b6102716102ec366004611d5f565b60009081526006602052604090206001015490565b61023e61030f366004611d78565b6109a5565b6102b8610322366004611dbf565b610b48565b6040516009815260200161024a565b6102b8610344366004611dbf565b610b72565b61023e610357366004611a3e565b610bfe565b61023e610c3d565b600b5461023e9060ff1681565b61027160085481565b610271610388366004611d08565b6001600160a01b031660009081526020819052604090205490565b6102b8610c83565b6005546001600160a01b03165b6040516001600160a01b03909116815260200161024a565b61023e6103de366004611d08565b610c97565b61023e6103f1366004611dbf565b60009182526006602090815260408084206001600160a01b0393909316845291905290205460ff1690565b61025b610d08565b610271600081565b61023e61043a366004611a3e565b610d17565b61023e61044d366004611a3e565b610dc1565b6102717f52ba824bfabc2bcfcdf7f0edbb486ebb05e1836c90e78047efeb949990f72e5f81565b61023e610487366004611d5f565b610dcf565b6102b861049a366004611dbf565b610e5b565b6103b8610e80565b610271600a5481565b6102716104be366004611deb565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6102b86104f7366004611d08565b610e99565b60006001600160e01b031982167f7965db0b00000000000000000000000000000000000000000000000000000000148061055f57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b60606003805461057490611e15565b80601f01602080910402602001604051908101604052809291908181526020018280546105a090611e15565b80156105ed5780601f106105c2576101008083540402835291602001916105ed565b820191906000526020600020905b8154815290600101906020018083116105d057829003601f168201915b5050505050905090565b600033610605818585610f29565b5060019392505050565b600061063b7f52ba824bfabc2bcfcdf7f0edbb486ebb05e1836c90e78047efeb949990f72e5f336103f1565b61068c5760405162461bcd60e51b815260206004820152601860248201527f43616c6c6572206973206e6f742074686520627269646765000000000000000060448201526064015b60405180910390fd5b8251845114801561069e575081518451145b6106ea5760405162461bcd60e51b815260206004820152601e60248201527f41727261797320617265206e6f74207468652073616d65206c656e67746800006044820152606401610683565b60005b845181101561081f5761073284828151811061070b5761070b611e4f565b602002602001015184838151811061072557610725611e4f565b6020026020010151611081565b61076083828151811061074757610747611e4f565b602002602001015160095461114090919063ffffffff16565b600955835184908290811061077757610777611e4f565b60200260200101516001600160a01b03167f0fbbc01bbb8a23dcd9d7a3574a59cfc1d9666fe58f809db2f15c8b4c947af5b78683815181106107bb576107bb611e4f565b60200260200101518584815181106107d5576107d5611e4f565b60200260200101516008546040516107ef93929190611e65565b60405180910390a26008805490600061080783611ea0565b9190505550808061081790611ea0565b9150506106ed565b506001949350505050565b610832611153565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015281906000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610894573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108b89190611eb9565b9050816001600160a01b031663a9059cbb6108db6005546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016020604051808303816000875af1158015610928573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061094c9190611ed2565b506005546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610986573d6000803e3d6000fd5b50505050565b60003361099a8582856111ad565b61081f858585611239565b600b5460009060ff166109fa5760405162461bcd60e51b815260206004820152601e60248201527f427269646765206261636b206973206e6f7420616374697665207965742e00006044820152606401610683565b610a0333610388565b831115610a525760405162461bcd60e51b815260206004820152601260248201527f4e6f7420656e6f7567682062616c616e636500000000000000000000000000006044820152606401610683565b6007548311610ac95760405162461bcd60e51b815260206004820152603760248201527f446f6573206e6f74206d656574206d696e696d756d20616d6f756e7420666f7260448201527f206761732028302e3132333030303332312077424149290000000000000000006064820152608401610683565b610ad33384611426565b60088054906000610ae383611ea0565b9091555050600a54610af59084611140565b600a55336001600160a01b03167f4afd1bdc25334c0d6cc44e4d4d5d27197d8904b74146e9bb318349fc67db1afc8484600854604051610b3793929190611ef4565b60405180910390a250600192915050565b600082815260066020526040902060010154610b638161158f565b610b6d8383611599565b505050565b6001600160a01b0381163314610bf05760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610683565b610bfa828261163b565b5050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091906106059082908690610c38908790611f1d565b610f29565b6000610c47611153565b600b805460ff191660011790556040517f9d816fe9b236dc4dcc77c5bf3350d44fe900a0502bcaa400c0afa151b36fc95a90600090a150600190565b610c8b611153565b610c9560006116be565b565b6000610ca1611153565b610ccb7f52ba824bfabc2bcfcdf7f0edbb486ebb05e1836c90e78047efeb949990f72e5f83611728565b6040516001600160a01b038316907fa49730bff544fd0b716395c592e39c6fd2d2481a19b9229b5b240483db95a49590600090a25060015b919050565b60606004805461057490611e15565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919083811015610db45760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610683565b61081f8286868403610f29565b600033610605818585611239565b6000610dd9611153565b630754d6018210610e525760405162461bcd60e51b815260206004820152602960248201527f4665652063616e206e6f7420626520686967686572207468656e20696e69746960448201527f616c2073657475702e00000000000000000000000000000000000000000000006064820152608401610683565b50600755600190565b600082815260066020526040902060010154610e768161158f565b610b6d838361163b565b6000610e946005546001600160a01b031690565b905090565b610ea1611153565b6001600160a01b038116610f1d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610683565b610f26816116be565b50565b6001600160a01b038316610fa45760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610683565b6001600160a01b0382166110205760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610683565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0382166110d75760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610683565b80600260008282546110e99190611f1d565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b600061114c8284611f1d565b9392505050565b6005546001600160a01b03163314610c955760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610683565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114610986578181101561122c5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610683565b6109868484848403610f29565b6001600160a01b0383166112b55760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610683565b6001600160a01b0382166113315760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610683565b6001600160a01b038316600090815260208190526040902054818110156113c05760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610683565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610986565b6001600160a01b0382166114a25760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610683565b6001600160a01b038216600090815260208190526040902054818110156115315760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f63650000000000000000000000000000000000000000000000000000000000006064820152608401610683565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b610f268133611732565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff16610bfa5760008281526006602090815260408083206001600160a01b03851684529091529020805460ff191660011790556115f73390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff1615610bfa5760008281526006602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600580546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610bfa8282611599565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff16610bfa57611765816117a7565b6117708360206117b9565b604051602001611781929190611f30565b60408051601f198184030181529082905262461bcd60e51b825261068391600401611a14565b606061055f6001600160a01b03831660145b606060006117c8836002611fb1565b6117d3906002611f1d565b67ffffffffffffffff8111156117eb576117eb611a68565b6040519080825280601f01601f191660200182016040528015611815576020820181803683370190505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061184c5761184c611e4f565b60200101906001600160f81b031916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061189757611897611e4f565b60200101906001600160f81b031916908160001a90535060006118bb846002611fb1565b6118c6906001611f1d565b90505b600181111561194b577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061190757611907611e4f565b1a60f81b82828151811061191d5761191d611e4f565b60200101906001600160f81b031916908160001a90535060049490941c9361194481611fc8565b90506118c9565b50831561114c5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610683565b6000602082840312156119ac57600080fd5b81356001600160e01b03198116811461114c57600080fd5b60005b838110156119df5781810151838201526020016119c7565b50506000910152565b60008151808452611a008160208601602086016119c4565b601f01601f19169290920160200192915050565b60208152600061114c60208301846119e8565b80356001600160a01b0381168114610d0357600080fd5b60008060408385031215611a5157600080fd5b611a5a83611a27565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611aa757611aa7611a68565b604052919050565b600067ffffffffffffffff821115611ac957611ac9611a68565b5060051b60200190565b600082601f830112611ae457600080fd5b813567ffffffffffffffff811115611afe57611afe611a68565b611b11601f8201601f1916602001611a7e565b818152846020838601011115611b2657600080fd5b816020850160208301376000918101602001919091529392505050565b600082601f830112611b5457600080fd5b81356020611b69611b6483611aaf565b611a7e565b82815260059290921b84018101918181019086841115611b8857600080fd5b8286015b84811015611baa57611b9d81611a27565b8352918301918301611b8c565b509695505050505050565b600082601f830112611bc657600080fd5b81356020611bd6611b6483611aaf565b82815260059290921b84018101918181019086841115611bf557600080fd5b8286015b84811015611baa5780358352918301918301611bf9565b600080600060608486031215611c2557600080fd5b833567ffffffffffffffff80821115611c3d57600080fd5b818601915086601f830112611c5157600080fd5b81356020611c61611b6483611aaf565b82815260059290921b8401810191818101908a841115611c8057600080fd5b8286015b84811015611cb857803586811115611c9c5760008081fd5b611caa8d86838b0101611ad3565b845250918301918301611c84565b5097505087013592505080821115611ccf57600080fd5b611cdb87838801611b43565b93506040860135915080821115611cf157600080fd5b50611cfe86828701611bb5565b9150509250925092565b600060208284031215611d1a57600080fd5b61114c82611a27565b600080600060608486031215611d3857600080fd5b611d4184611a27565b9250611d4f60208501611a27565b9150604084013590509250925092565b600060208284031215611d7157600080fd5b5035919050565b60008060408385031215611d8b57600080fd5b82359150602083013567ffffffffffffffff811115611da957600080fd5b611db585828601611ad3565b9150509250929050565b60008060408385031215611dd257600080fd5b82359150611de260208401611a27565b90509250929050565b60008060408385031215611dfe57600080fd5b611e0783611a27565b9150611de260208401611a27565b600181811c90821680611e2957607f821691505b602082108103611e4957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b606081526000611e7860608301866119e8565b60208301949094525060400152919050565b634e487b7160e01b600052601160045260246000fd5b600060018201611eb257611eb2611e8a565b5060010190565b600060208284031215611ecb57600080fd5b5051919050565b600060208284031215611ee457600080fd5b8151801515811461114c57600080fd5b838152606060208201526000611f0d60608301856119e8565b9050826040830152949350505050565b8082018082111561055f5761055f611e8a565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351611f688160178501602088016119c4565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351611fa58160288401602088016119c4565b01602801949350505050565b808202811582820484141761055f5761055f611e8a565b600081611fd757611fd7611e8a565b50600019019056fea26469706673582212205910a7691ab48a6fd5d7950e7969d1d890a236112bebecb241c2b9e45236232c64736f6c63430008130033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102265760003560e01c80635d1222aa1161012a578063a457c2d7116100bd578063d547741f1161008c578063dd0200fa11610071578063dd0200fa146104a7578063dd62ed3e146104b0578063f2fde38b146104e957600080fd5b8063d547741f1461048c578063d5f394881461049f57600080fd5b8063a457c2d71461042c578063a9059cbb1461043f578063b5bfddea14610452578063c079c3181461047957600080fd5b80638dd14802116100f95780638dd14802146103d057806391d14854146103e357806395d89b411461041c578063a217fddf1461042457600080fd5b80635d1222aa1461037157806370a082311461037a578063715018a6146103a35780638da5cb5b146103ab57600080fd5b806323b872dd116101bd578063313ce5671161018c578063395093511161017157806339509351146103495780633d1326301461035c5780634b27cd961461036457600080fd5b8063313ce5671461032757806336568abe1461033657600080fd5b806323b872dd146102cb578063248a9ca3146102de5780632a383090146103015780632f2ff15d1461031457600080fd5b80631264612a116101f95780631264612a1461029257806317ffc320146102a557806318160ddd146102ba5780631bd3c1c8146102c257600080fd5b806301ffc9a71461022b57806306fdde03146102535780630705d87d14610268578063095ea7b31461027f575b600080fd5b61023e61023936600461199a565b6104fc565b60405190151581526020015b60405180910390f35b61025b610565565b60405161024a9190611a14565b61027160095481565b60405190815260200161024a565b61023e61028d366004611a3e565b6105f7565b61023e6102a0366004611c10565b61060f565b6102b86102b3366004611d08565b61082a565b005b600254610271565b61027160075481565b61023e6102d9366004611d23565b61098c565b6102716102ec366004611d5f565b60009081526006602052604090206001015490565b61023e61030f366004611d78565b6109a5565b6102b8610322366004611dbf565b610b48565b6040516009815260200161024a565b6102b8610344366004611dbf565b610b72565b61023e610357366004611a3e565b610bfe565b61023e610c3d565b600b5461023e9060ff1681565b61027160085481565b610271610388366004611d08565b6001600160a01b031660009081526020819052604090205490565b6102b8610c83565b6005546001600160a01b03165b6040516001600160a01b03909116815260200161024a565b61023e6103de366004611d08565b610c97565b61023e6103f1366004611dbf565b60009182526006602090815260408084206001600160a01b0393909316845291905290205460ff1690565b61025b610d08565b610271600081565b61023e61043a366004611a3e565b610d17565b61023e61044d366004611a3e565b610dc1565b6102717f52ba824bfabc2bcfcdf7f0edbb486ebb05e1836c90e78047efeb949990f72e5f81565b61023e610487366004611d5f565b610dcf565b6102b861049a366004611dbf565b610e5b565b6103b8610e80565b610271600a5481565b6102716104be366004611deb565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6102b86104f7366004611d08565b610e99565b60006001600160e01b031982167f7965db0b00000000000000000000000000000000000000000000000000000000148061055f57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b60606003805461057490611e15565b80601f01602080910402602001604051908101604052809291908181526020018280546105a090611e15565b80156105ed5780601f106105c2576101008083540402835291602001916105ed565b820191906000526020600020905b8154815290600101906020018083116105d057829003601f168201915b5050505050905090565b600033610605818585610f29565b5060019392505050565b600061063b7f52ba824bfabc2bcfcdf7f0edbb486ebb05e1836c90e78047efeb949990f72e5f336103f1565b61068c5760405162461bcd60e51b815260206004820152601860248201527f43616c6c6572206973206e6f742074686520627269646765000000000000000060448201526064015b60405180910390fd5b8251845114801561069e575081518451145b6106ea5760405162461bcd60e51b815260206004820152601e60248201527f41727261797320617265206e6f74207468652073616d65206c656e67746800006044820152606401610683565b60005b845181101561081f5761073284828151811061070b5761070b611e4f565b602002602001015184838151811061072557610725611e4f565b6020026020010151611081565b61076083828151811061074757610747611e4f565b602002602001015160095461114090919063ffffffff16565b600955835184908290811061077757610777611e4f565b60200260200101516001600160a01b03167f0fbbc01bbb8a23dcd9d7a3574a59cfc1d9666fe58f809db2f15c8b4c947af5b78683815181106107bb576107bb611e4f565b60200260200101518584815181106107d5576107d5611e4f565b60200260200101516008546040516107ef93929190611e65565b60405180910390a26008805490600061080783611ea0565b9190505550808061081790611ea0565b9150506106ed565b506001949350505050565b610832611153565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015281906000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610894573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108b89190611eb9565b9050816001600160a01b031663a9059cbb6108db6005546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016020604051808303816000875af1158015610928573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061094c9190611ed2565b506005546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610986573d6000803e3d6000fd5b50505050565b60003361099a8582856111ad565b61081f858585611239565b600b5460009060ff166109fa5760405162461bcd60e51b815260206004820152601e60248201527f427269646765206261636b206973206e6f7420616374697665207965742e00006044820152606401610683565b610a0333610388565b831115610a525760405162461bcd60e51b815260206004820152601260248201527f4e6f7420656e6f7567682062616c616e636500000000000000000000000000006044820152606401610683565b6007548311610ac95760405162461bcd60e51b815260206004820152603760248201527f446f6573206e6f74206d656574206d696e696d756d20616d6f756e7420666f7260448201527f206761732028302e3132333030303332312077424149290000000000000000006064820152608401610683565b610ad33384611426565b60088054906000610ae383611ea0565b9091555050600a54610af59084611140565b600a55336001600160a01b03167f4afd1bdc25334c0d6cc44e4d4d5d27197d8904b74146e9bb318349fc67db1afc8484600854604051610b3793929190611ef4565b60405180910390a250600192915050565b600082815260066020526040902060010154610b638161158f565b610b6d8383611599565b505050565b6001600160a01b0381163314610bf05760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610683565b610bfa828261163b565b5050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091906106059082908690610c38908790611f1d565b610f29565b6000610c47611153565b600b805460ff191660011790556040517f9d816fe9b236dc4dcc77c5bf3350d44fe900a0502bcaa400c0afa151b36fc95a90600090a150600190565b610c8b611153565b610c9560006116be565b565b6000610ca1611153565b610ccb7f52ba824bfabc2bcfcdf7f0edbb486ebb05e1836c90e78047efeb949990f72e5f83611728565b6040516001600160a01b038316907fa49730bff544fd0b716395c592e39c6fd2d2481a19b9229b5b240483db95a49590600090a25060015b919050565b60606004805461057490611e15565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919083811015610db45760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610683565b61081f8286868403610f29565b600033610605818585611239565b6000610dd9611153565b630754d6018210610e525760405162461bcd60e51b815260206004820152602960248201527f4665652063616e206e6f7420626520686967686572207468656e20696e69746960448201527f616c2073657475702e00000000000000000000000000000000000000000000006064820152608401610683565b50600755600190565b600082815260066020526040902060010154610e768161158f565b610b6d838361163b565b6000610e946005546001600160a01b031690565b905090565b610ea1611153565b6001600160a01b038116610f1d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610683565b610f26816116be565b50565b6001600160a01b038316610fa45760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610683565b6001600160a01b0382166110205760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610683565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0382166110d75760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610683565b80600260008282546110e99190611f1d565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b600061114c8284611f1d565b9392505050565b6005546001600160a01b03163314610c955760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610683565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114610986578181101561122c5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610683565b6109868484848403610f29565b6001600160a01b0383166112b55760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610683565b6001600160a01b0382166113315760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610683565b6001600160a01b038316600090815260208190526040902054818110156113c05760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610683565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610986565b6001600160a01b0382166114a25760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610683565b6001600160a01b038216600090815260208190526040902054818110156115315760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f63650000000000000000000000000000000000000000000000000000000000006064820152608401610683565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b610f268133611732565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff16610bfa5760008281526006602090815260408083206001600160a01b03851684529091529020805460ff191660011790556115f73390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff1615610bfa5760008281526006602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600580546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610bfa8282611599565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff16610bfa57611765816117a7565b6117708360206117b9565b604051602001611781929190611f30565b60408051601f198184030181529082905262461bcd60e51b825261068391600401611a14565b606061055f6001600160a01b03831660145b606060006117c8836002611fb1565b6117d3906002611f1d565b67ffffffffffffffff8111156117eb576117eb611a68565b6040519080825280601f01601f191660200182016040528015611815576020820181803683370190505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061184c5761184c611e4f565b60200101906001600160f81b031916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061189757611897611e4f565b60200101906001600160f81b031916908160001a90535060006118bb846002611fb1565b6118c6906001611f1d565b90505b600181111561194b577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061190757611907611e4f565b1a60f81b82828151811061191d5761191d611e4f565b60200101906001600160f81b031916908160001a90535060049490941c9361194481611fc8565b90506118c9565b50831561114c5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610683565b6000602082840312156119ac57600080fd5b81356001600160e01b03198116811461114c57600080fd5b60005b838110156119df5781810151838201526020016119c7565b50506000910152565b60008151808452611a008160208601602086016119c4565b601f01601f19169290920160200192915050565b60208152600061114c60208301846119e8565b80356001600160a01b0381168114610d0357600080fd5b60008060408385031215611a5157600080fd5b611a5a83611a27565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611aa757611aa7611a68565b604052919050565b600067ffffffffffffffff821115611ac957611ac9611a68565b5060051b60200190565b600082601f830112611ae457600080fd5b813567ffffffffffffffff811115611afe57611afe611a68565b611b11601f8201601f1916602001611a7e565b818152846020838601011115611b2657600080fd5b816020850160208301376000918101602001919091529392505050565b600082601f830112611b5457600080fd5b81356020611b69611b6483611aaf565b611a7e565b82815260059290921b84018101918181019086841115611b8857600080fd5b8286015b84811015611baa57611b9d81611a27565b8352918301918301611b8c565b509695505050505050565b600082601f830112611bc657600080fd5b81356020611bd6611b6483611aaf565b82815260059290921b84018101918181019086841115611bf557600080fd5b8286015b84811015611baa5780358352918301918301611bf9565b600080600060608486031215611c2557600080fd5b833567ffffffffffffffff80821115611c3d57600080fd5b818601915086601f830112611c5157600080fd5b81356020611c61611b6483611aaf565b82815260059290921b8401810191818101908a841115611c8057600080fd5b8286015b84811015611cb857803586811115611c9c5760008081fd5b611caa8d86838b0101611ad3565b845250918301918301611c84565b5097505087013592505080821115611ccf57600080fd5b611cdb87838801611b43565b93506040860135915080821115611cf157600080fd5b50611cfe86828701611bb5565b9150509250925092565b600060208284031215611d1a57600080fd5b61114c82611a27565b600080600060608486031215611d3857600080fd5b611d4184611a27565b9250611d4f60208501611a27565b9150604084013590509250925092565b600060208284031215611d7157600080fd5b5035919050565b60008060408385031215611d8b57600080fd5b82359150602083013567ffffffffffffffff811115611da957600080fd5b611db585828601611ad3565b9150509250929050565b60008060408385031215611dd257600080fd5b82359150611de260208401611a27565b90509250929050565b60008060408385031215611dfe57600080fd5b611e0783611a27565b9150611de260208401611a27565b600181811c90821680611e2957607f821691505b602082108103611e4957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b606081526000611e7860608301866119e8565b60208301949094525060400152919050565b634e487b7160e01b600052601160045260246000fd5b600060018201611eb257611eb2611e8a565b5060010190565b600060208284031215611ecb57600080fd5b5051919050565b600060208284031215611ee457600080fd5b8151801515811461114c57600080fd5b838152606060208201526000611f0d60608301856119e8565b9050826040830152949350505050565b8082018082111561055f5761055f611e8a565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351611f688160178501602088016119c4565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351611fa58160288401602088016119c4565b01602801949350505050565b808202811582820484141761055f5761055f611e8a565b600081611fd757611fd7611e8a565b50600019019056fea26469706673582212205910a7691ab48a6fd5d7950e7969d1d890a236112bebecb241c2b9e45236232c64736f6c63430008130033
Deployed Bytecode Sourcemap
80250:3234:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27545:204;;;;;;:::i;:::-;;:::i;:::-;;;516:14:1;;509:22;491:41;;479:2;464:18;27545:204:0;;;;;;;;41661:100;;;:::i;:::-;;;;;;;:::i;80505:37::-;;;;;;;;;1445:25:1;;;1433:2;1418:18;80505:37:0;1299:177:1;44021:201:0;;;;;;:::i;:::-;;:::i;81749:708::-;;;;;;:::i;:::-;;:::i;83213:262::-;;;;;;:::i;:::-;;:::i;:::-;;42790:108;42878:12;;42790:108;;80410:38;;;;;;44802:261;;;;;;:::i;:::-;;:::i;29368:131::-;;;;;;:::i;:::-;29442:7;29469:12;;;:6;:12;;;;;:22;;;;29368:131;82465:615;;;;;;:::i;:::-;;:::i;29809:147::-;;;;;;:::i;:::-;;:::i;81081:92::-;;;81164:1;7749:36:1;;7737:2;7722:18;81081:92:0;7607:184:1;30953:218:0;;;;;;:::i;:::-;;:::i;45472:238::-;;;;;;:::i;:::-;;:::i;81365:162::-;;;:::i;80600:38::-;;;;;;;;;80471:25;;;;;;42961:127;;;;;;:::i;:::-;-1:-1:-1;;;;;43062:18:0;43035:7;43062:18;;;;;;;;;;;;42961:127;35096:103;;;:::i;34455:87::-;34528:6;;-1:-1:-1;;;;;34528:6:0;34455:87;;;-1:-1:-1;;;;;7960:55:1;;;7942:74;;7930:2;7915:18;34455:87:0;7796:226:1;81181:176:0;;;;;;:::i;:::-;;:::i;27841:147::-;;;;;;:::i;:::-;27927:4;27951:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;27951:29:0;;;;;;;;;;;;;;;27841:147;41880:104;;;:::i;26946:49::-;;26991:4;26946:49;;46213:436;;;;;;:::i;:::-;;:::i;43294:193::-;;;;;;:::i;:::-;;:::i;80339:62::-;;80377:24;80339:62;;81535:206;;;;;;:::i;:::-;;:::i;30249:149::-;;;;;;:::i;:::-;;:::i;83088:83::-;;;:::i;80549:42::-;;;;;;43550:151;;;;;;:::i;:::-;-1:-1:-1;;;;;43666:18:0;;;43639:7;43666:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;43550:151;35354:201;;;;;;:::i;:::-;;:::i;27545:204::-;27630:4;-1:-1:-1;;;;;;27654:47:0;;27669:32;27654:47;;:87;;-1:-1:-1;7451:25:0;-1:-1:-1;;;;;;7436:40:0;;;27705:36;27647:94;27545:204;-1:-1:-1;;27545:204:0:o;41661:100::-;41715:13;41748:5;41741:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41661:100;:::o;44021:201::-;44104:4;5397:10;44160:32;5397:10;44176:7;44185:6;44160:8;:32::i;:::-;-1:-1:-1;44210:4:0;;44021:201;-1:-1:-1;;;44021:201:0:o;81749:708::-;81857:4;81882:34;80377:24;5397:10;27841:147;:::i;81882:34::-;81874:71;;;;-1:-1:-1;;;81874:71:0;;9121:2:1;81874:71:0;;;9103:21:1;9160:2;9140:18;;;9133:30;9199:26;9179:18;;;9172:54;9243:18;;81874:71:0;;;;;;;;;82032:4;:11;82015:6;:13;:28;:64;;;;;82064:8;:15;82047:6;:13;:32;82015:64;82007:107;;;;-1:-1:-1;;;82007:107:0;;9474:2:1;82007:107:0;;;9456:21:1;9513:2;9493:18;;;9486:30;9552:32;9532:18;;;9525:60;9602:18;;82007:107:0;9272:354:1;82007:107:0;82171:9;82166:262;82190:6;:13;82186:1;:17;82166:262;;;82225:27;82231:4;82236:1;82231:7;;;;;;;;:::i;:::-;;;;;;;82240:8;82249:1;82240:11;;;;;;;;:::i;:::-;;;;;;;82225:5;:27::i;:::-;82288:35;82311:8;82320:1;82311:11;;;;;;;;:::i;:::-;;;;;;;82288:18;;:22;;:35;;;;:::i;:::-;82267:18;:56;82364:7;;:4;;82369:1;;82364:7;;;;;;:::i;:::-;;;;;;;-1:-1:-1;;;;;82343:50:0;;82353:6;82360:1;82353:9;;;;;;;;:::i;:::-;;;;;;;82373:8;82382:1;82373:11;;;;;;;;:::i;:::-;;;;;;;82386:6;;82343:50;;;;;;;;:::i;:::-;;;;;;;;82408:6;:8;;;:6;:8;;;:::i;:::-;;;;;;82205:3;;;;;:::i;:::-;;;;82166:262;;;-1:-1:-1;82445:4:0;;81749:708;-1:-1:-1;;;;81749:708:0:o;83213:262::-;34341:13;:11;:13::i;:::-;83335:30:::1;::::0;;;;83359:4:::1;83335:30;::::0;::::1;7942:74:1::0;83299:6:0;;83279:11:::1;::::0;-1:-1:-1;;;;;83335:15:0;::::1;::::0;::::1;::::0;7915:18:1;;83335:30:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;83317:48;;83376:5;-1:-1:-1::0;;;;;83376:14:0::1;;83391:7;34528:6:::0;;-1:-1:-1;;;;;34528:6:0;;34455:87;83391:7:::1;83376:32;::::0;-1:-1:-1;;;;;;83376:32:0::1;::::0;;;;;;-1:-1:-1;;;;;10897:55:1;;;83376:32:0::1;::::0;::::1;10879:74:1::0;10969:18;;;10962:34;;;10852:18;;83376:32:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;34528:6:0;;83419:48:::1;::::0;-1:-1:-1;;;;;34528:6:0;;;;83445:21:::1;83419:48:::0;::::1;;;::::0;::::1;::::0;;;83445:21;34528:6;83419:48;::::1;;;;;;;;;;;;;::::0;::::1;;;;;;83268:207;;83213:262:::0;:::o;44802:261::-;44899:4;5397:10;44957:38;44973:4;5397:10;44988:6;44957:15;:38::i;:::-;45006:27;45016:4;45022:2;45026:6;45006:9;:27::i;82465:615::-;82561:18;;82536:4;;82561:18;;82553:61;;;;-1:-1:-1;;;82553:61:0;;11491:2:1;82553:61:0;;;11473:21:1;11530:2;11510:18;;;11503:30;11569:32;11549:18;;;11542:60;11619:18;;82553:61:0;11289:354:1;82553:61:0;82644:23;5397:10;82654:12;5317:98;82644:23;82633:7;:34;;82625:65;;;;-1:-1:-1;;;82625:65:0;;11850:2:1;82625:65:0;;;11832:21:1;11889:2;11869:18;;;11862:30;11928:20;11908:18;;;11901:48;11966:18;;82625:65:0;11648:342:1;82625:65:0;82787:11;;82777:7;:21;82769:89;;;;-1:-1:-1;;;82769:89:0;;12197:2:1;82769:89:0;;;12179:21:1;12236:2;12216:18;;;12209:30;12275:34;12255:18;;;12248:62;12346:25;12326:18;;;12319:53;12389:19;;82769:89:0;11995:419:1;82769:89:0;82869:26;82875:10;82887:7;82869:5;:26::i;:::-;82906:6;:8;;;:6;:8;;;:::i;:::-;;;;-1:-1:-1;;82951:23:0;;:36;;82979:7;82951:27;:36::i;:::-;82925:23;:62;5397:10;-1:-1:-1;;;;;83003:47:0;;83029:7;83038:3;83043:6;;83003:47;;;;;;;;:::i;:::-;;;;;;;;-1:-1:-1;83068:4:0;82465:615;;;;:::o;29809:147::-;29442:7;29469:12;;;:6;:12;;;;;:22;;;27437:16;27448:4;27437:10;:16::i;:::-;29923:25:::1;29934:4;29940:7;29923:10;:25::i;:::-;29809:147:::0;;;:::o;30953:218::-;-1:-1:-1;;;;;31049:23:0;;5397:10;31049:23;31041:83;;;;-1:-1:-1;;;31041:83:0;;12988:2:1;31041:83:0;;;12970:21:1;13027:2;13007:18;;;13000:30;13066:34;13046:18;;;13039:62;13137:17;13117:18;;;13110:45;13172:19;;31041:83:0;12786:411:1;31041:83:0;31137:26;31149:4;31155:7;31137:11;:26::i;:::-;30953:218;;:::o;45472:238::-;5397:10;45560:4;43666:18;;;:11;:18;;;;;;;;-1:-1:-1;;;;;43666:27:0;;;;;;;;;;45560:4;;5397:10;45616:64;;5397:10;;43666:27;;45641:38;;45669:10;;45641:38;:::i;:::-;45616:8;:64::i;81365:162::-;81420:4;34341:13;:11;:13::i;:::-;81437:18:::1;:25:::0;;-1:-1:-1;;81437:25:0::1;81458:4;81437:25;::::0;;81478:19:::1;::::0;::::1;::::0;81437:18:::1;::::0;81478:19:::1;-1:-1:-1::0;81515:4:0::1;81365:162:::0;:::o;35096:103::-;34341:13;:11;:13::i;:::-;35161:30:::1;35188:1;35161:18;:30::i;:::-;35096:103::o:0;81181:176::-;81244:4;34341:13;:11;:13::i;:::-;81261:32:::1;80377:24;81285:7;81261:10;:32::i;:::-;81309:18;::::0;-1:-1:-1;;;;;81309:18:0;::::1;::::0;::::1;::::0;;;::::1;-1:-1:-1::0;81345:4:0::1;34365:1;81181:176:::0;;;:::o;41880:104::-;41936:13;41969:7;41962:14;;;;;:::i;46213:436::-;5397:10;46306:4;43666:18;;;:11;:18;;;;;;;;-1:-1:-1;;;;;43666:27:0;;;;;;;;;;46306:4;;5397:10;46453:15;46433:16;:35;;46425:85;;;;-1:-1:-1;;;46425:85:0;;13534:2:1;46425:85:0;;;13516:21:1;13573:2;13553:18;;;13546:30;13612:34;13592:18;;;13585:62;13683:7;13663:18;;;13656:35;13708:19;;46425:85:0;13332:401:1;46425:85:0;46546:60;46555:5;46562:7;46590:15;46571:16;:34;46546:8;:60::i;43294:193::-;43373:4;5397:10;43429:28;5397:10;43446:2;43450:6;43429:9;:28::i;81535:206::-;81595:4;34341:13;:11;:13::i;:::-;81627:9:::1;81620:4;:16;81612:70;;;::::0;-1:-1:-1;;;81612:70:0;;13940:2:1;81612:70:0::1;::::0;::::1;13922:21:1::0;13979:2;13959:18;;;13952:30;14018:34;13998:18;;;13991:62;14089:11;14069:18;;;14062:39;14118:19;;81612:70:0::1;13738:405:1::0;81612:70:0::1;-1:-1:-1::0;81693:11:0::1;:18:::0;81729:4:::1;::::0;81535:206::o;30249:149::-;29442:7;29469:12;;;:6;:12;;;;;:22;;;27437:16;27448:4;27437:10;:16::i;:::-;30364:26:::1;30376:4;30382:7;30364:11;:26::i;83088:83::-:0;83129:7;83156;34528:6;;-1:-1:-1;;;;;34528:6:0;;34455:87;83156:7;83149:14;;83088:83;:::o;35354:201::-;34341:13;:11;:13::i;:::-;-1:-1:-1;;;;;35443:22:0;::::1;35435:73;;;::::0;-1:-1:-1;;;35435:73:0;;14350:2:1;35435:73:0::1;::::0;::::1;14332:21:1::0;14389:2;14369:18;;;14362:30;14428:34;14408:18;;;14401:62;14499:8;14479:18;;;14472:36;14525:19;;35435:73:0::1;14148:402:1::0;35435:73:0::1;35519:28;35538:8;35519:18;:28::i;:::-;35354:201:::0;:::o;50206:346::-;-1:-1:-1;;;;;50308:19:0;;50300:68;;;;-1:-1:-1;;;50300:68:0;;14757:2:1;50300:68:0;;;14739:21:1;14796:2;14776:18;;;14769:30;14835:34;14815:18;;;14808:62;14906:6;14886:18;;;14879:34;14930:19;;50300:68:0;14555:400:1;50300:68:0;-1:-1:-1;;;;;50387:21:0;;50379:68;;;;-1:-1:-1;;;50379:68:0;;15162:2:1;50379:68:0;;;15144:21:1;15201:2;15181:18;;;15174:30;15240:34;15220:18;;;15213:62;15311:4;15291:18;;;15284:32;15333:19;;50379:68:0;14960:398:1;50379:68:0;-1:-1:-1;;;;;50460:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;50512:32;;1445:25:1;;;50512:32:0;;1418:18:1;50512:32:0;;;;;;;50206:346;;;:::o;48212:548::-;-1:-1:-1;;;;;48296:21:0;;48288:65;;;;-1:-1:-1;;;48288:65:0;;15565:2:1;48288:65:0;;;15547:21:1;15604:2;15584:18;;;15577:30;15643:33;15623:18;;;15616:61;15694:18;;48288:65:0;15363:355:1;48288:65:0;48444:6;48428:12;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;48599:18:0;;:9;:18;;;;;;;;;;;:28;;;;;;48654:37;1445:25:1;;;48654:37:0;;1418:18:1;48654:37:0;;;;;;;30953:218;;:::o;74578:98::-;74636:7;74663:5;74667:1;74663;:5;:::i;:::-;74656:12;74578:98;-1:-1:-1;;;74578:98:0:o;34620:132::-;34528:6;;-1:-1:-1;;;;;34528:6:0;5397:10;34684:23;34676:68;;;;-1:-1:-1;;;34676:68:0;;15925:2:1;34676:68:0;;;15907:21:1;;;15944:18;;;15937:30;16003:34;15983:18;;;15976:62;16055:18;;34676:68:0;15723:356:1;50843:419:0;-1:-1:-1;;;;;43666:18:0;;;50944:24;43666:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;-1:-1:-1;;51011:37:0;;51007:248;;51093:6;51073:16;:26;;51065:68;;;;-1:-1:-1;;;51065:68:0;;16286:2:1;51065:68:0;;;16268:21:1;16325:2;16305:18;;;16298:30;16364:31;16344:18;;;16337:59;16413:18;;51065:68:0;16084:353:1;51065:68:0;51177:51;51186:5;51193:7;51221:6;51202:16;:25;51177:8;:51::i;47119:806::-;-1:-1:-1;;;;;47216:18:0;;47208:68;;;;-1:-1:-1;;;47208:68:0;;16644:2:1;47208:68:0;;;16626:21:1;16683:2;16663:18;;;16656:30;16722:34;16702:18;;;16695:62;16793:7;16773:18;;;16766:35;16818:19;;47208:68:0;16442:401:1;47208:68:0;-1:-1:-1;;;;;47295:16:0;;47287:64;;;;-1:-1:-1;;;47287:64:0;;17050:2:1;47287:64:0;;;17032:21:1;17089:2;17069:18;;;17062:30;17128:34;17108:18;;;17101:62;17199:5;17179:18;;;17172:33;17222:19;;47287:64:0;16848:399:1;47287:64:0;-1:-1:-1;;;;;47437:15:0;;47415:19;47437:15;;;;;;;;;;;47471:21;;;;47463:72;;;;-1:-1:-1;;;47463:72:0;;17454:2:1;47463:72:0;;;17436:21:1;17493:2;17473:18;;;17466:30;17532:34;17512:18;;;17505:62;17603:8;17583:18;;;17576:36;17629:19;;47463:72:0;17252:402:1;47463:72:0;-1:-1:-1;;;;;47571:15:0;;;:9;:15;;;;;;;;;;;47589:20;;;47571:38;;47789:13;;;;;;;;;;:23;;;;;;47841:26;;1445:25:1;;;47789:13:0;;47841:26;;1418:18:1;47841:26:0;;;;;;;47880:37;29809:147;49093:675;-1:-1:-1;;;;;49177:21:0;;49169:67;;;;-1:-1:-1;;;49169:67:0;;17861:2:1;49169:67:0;;;17843:21:1;17900:2;17880:18;;;17873:30;17939:34;17919:18;;;17912:62;18010:3;17990:18;;;17983:31;18031:19;;49169:67:0;17659:397:1;49169:67:0;-1:-1:-1;;;;;49336:18:0;;49311:22;49336:18;;;;;;;;;;;49373:24;;;;49365:71;;;;-1:-1:-1;;;49365:71:0;;18263:2:1;49365:71:0;;;18245:21:1;18302:2;18282:18;;;18275:30;18341:34;18321:18;;;18314:62;18412:4;18392:18;;;18385:32;18434:19;;49365:71:0;18061:398:1;49365:71:0;-1:-1:-1;;;;;49472:18:0;;:9;:18;;;;;;;;;;;49493:23;;;49472:44;;49611:12;:22;;;;;;;49662:37;1445:25:1;;;49472:9:0;;:18;49662:37;;1418:18:1;49662:37:0;;;;;;;29809:147;;;:::o;28292:105::-;28359:30;28370:4;5397:10;28359;:30::i;32550:238::-;27927:4;27951:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;27951:29:0;;;;;;;;;;;;32629:152;;32673:12;;;;:6;:12;;;;;;;;-1:-1:-1;;;;;32673:29:0;;;;;;;;;:36;;-1:-1:-1;;32673:36:0;32705:4;32673:36;;;32756:12;5397:10;;5317:98;32756:12;-1:-1:-1;;;;;32729:40:0;32747:7;-1:-1:-1;;;;;32729:40:0;32741:4;32729:40;;;;;;;;;;32550:238;;:::o;32968:239::-;27927:4;27951:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;27951:29:0;;;;;;;;;;;;33048:152;;;33123:5;33091:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;33091:29:0;;;;;;;;;;:37;;-1:-1:-1;;33091:37:0;;;33148:40;5397:10;;33091:12;;33148:40;;33123:5;33148:40;32968:239;;:::o;35715:191::-;35808:6;;;-1:-1:-1;;;;;35825:17:0;;;;;;;;;;;35858:40;;35808:6;;;35825:17;35808:6;;35858:40;;35789:16;;35858:40;35778:128;35715:191;:::o;31878:112::-;31957:25;31968:4;31974:7;31957:10;:25::i;28687:492::-;27927:4;27951:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;27951:29:0;;;;;;;;;;;;28771:401;;28964:28;28984:7;28964:19;:28::i;:::-;29065:38;29093:4;29100:2;29065:19;:38::i;:::-;28869:257;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;28869:257:0;;;;;;;;;;-1:-1:-1;;;28815:345:0;;;;;;;:::i;24449:151::-;24507:13;24540:52;-1:-1:-1;;;;;24552:22:0;;22324:2;23845:447;23920:13;23946:19;23978:10;23982:6;23978:1;:10;:::i;:::-;:14;;23991:1;23978:14;:::i;:::-;23968:25;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;23968:25:0;;23946:47;;24004:15;:6;24011:1;24004:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;24004:15:0;;;;;;;;;24030;:6;24037:1;24030:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;24030:15:0;;;;;;;;-1:-1:-1;24061:9:0;24073:10;24077:6;24073:1;:10;:::i;:::-;:14;;24086:1;24073:14;:::i;:::-;24061:26;;24056:131;24093:1;24089;:5;24056:131;;;24128:8;24137:5;24145:3;24137:11;24128:21;;;;;;;:::i;:::-;;;;24116:6;24123:1;24116:9;;;;;;;;:::i;:::-;;;;:33;-1:-1:-1;;;;;24116:33:0;;;;;;;;-1:-1:-1;24174:1:0;24164:11;;;;;24096:3;;;:::i;:::-;;;24056:131;;;-1:-1:-1;24205:10:0;;24197:55;;;;-1:-1:-1;;;24197:55:0;;19797:2:1;24197:55:0;;;19779:21:1;;;19816:18;;;19809:30;19875:34;19855:18;;;19848:62;19927:18;;24197:55:0;19595:356:1;14:332;72:6;125:2;113:9;104:7;100:23;96:32;93:52;;;141:1;138;131:12;93:52;180:9;167:23;-1:-1:-1;;;;;;223:5:1;219:78;212:5;209:89;199:117;;312:1;309;302:12;543:250;628:1;638:113;652:6;649:1;646:13;638:113;;;728:11;;;722:18;709:11;;;702:39;674:2;667:10;638:113;;;-1:-1:-1;;785:1:1;767:16;;760:27;543:250::o;798:271::-;840:3;878:5;872:12;905:6;900:3;893:19;921:76;990:6;983:4;978:3;974:14;967:4;960:5;956:16;921:76;:::i;:::-;1051:2;1030:15;-1:-1:-1;;1026:29:1;1017:39;;;;1058:4;1013:50;;798:271;-1:-1:-1;;798:271:1:o;1074:220::-;1223:2;1212:9;1205:21;1186:4;1243:45;1284:2;1273:9;1269:18;1261:6;1243:45;:::i;1481:196::-;1549:20;;-1:-1:-1;;;;;1598:54:1;;1588:65;;1578:93;;1667:1;1664;1657:12;1682:254;1750:6;1758;1811:2;1799:9;1790:7;1786:23;1782:32;1779:52;;;1827:1;1824;1817:12;1779:52;1850:29;1869:9;1850:29;:::i;:::-;1840:39;1926:2;1911:18;;;;1898:32;;-1:-1:-1;;;1682:254:1:o;1941:184::-;-1:-1:-1;;;1990:1:1;1983:88;2090:4;2087:1;2080:15;2114:4;2111:1;2104:15;2130:275;2201:2;2195:9;2266:2;2247:13;;-1:-1:-1;;2243:27:1;2231:40;;2301:18;2286:34;;2322:22;;;2283:62;2280:88;;;2348:18;;:::i;:::-;2384:2;2377:22;2130:275;;-1:-1:-1;2130:275:1:o;2410:182::-;2469:4;2502:18;2494:6;2491:30;2488:56;;;2524:18;;:::i;:::-;-1:-1:-1;2569:1:1;2565:14;2581:4;2561:25;;2410:182::o;2597:531::-;2640:5;2693:3;2686:4;2678:6;2674:17;2670:27;2660:55;;2711:1;2708;2701:12;2660:55;2747:6;2734:20;2773:18;2769:2;2766:26;2763:52;;;2795:18;;:::i;:::-;2839:55;2882:2;2863:13;;-1:-1:-1;;2859:27:1;2888:4;2855:38;2839:55;:::i;:::-;2919:2;2910:7;2903:19;2965:3;2958:4;2953:2;2945:6;2941:15;2937:26;2934:35;2931:55;;;2982:1;2979;2972:12;2931:55;3047:2;3040:4;3032:6;3028:17;3021:4;3012:7;3008:18;2995:55;3095:1;3070:16;;;3088:4;3066:27;3059:38;;;;3074:7;2597:531;-1:-1:-1;;;2597:531:1:o;3133:667::-;3187:5;3240:3;3233:4;3225:6;3221:17;3217:27;3207:55;;3258:1;3255;3248:12;3207:55;3294:6;3281:20;3320:4;3344:59;3360:42;3399:2;3360:42;:::i;:::-;3344:59;:::i;:::-;3437:15;;;3523:1;3519:10;;;;3507:23;;3503:32;;;3468:12;;;;3547:15;;;3544:35;;;3575:1;3572;3565:12;3544:35;3611:2;3603:6;3599:15;3623:148;3639:6;3634:3;3631:15;3623:148;;;3705:23;3724:3;3705:23;:::i;:::-;3693:36;;3749:12;;;;3656;;3623:148;;;-1:-1:-1;3789:5:1;3133:667;-1:-1:-1;;;;;;3133:667:1:o;3805:661::-;3859:5;3912:3;3905:4;3897:6;3893:17;3889:27;3879:55;;3930:1;3927;3920:12;3879:55;3966:6;3953:20;3992:4;4016:59;4032:42;4071:2;4032:42;:::i;4016:59::-;4109:15;;;4195:1;4191:10;;;;4179:23;;4175:32;;;4140:12;;;;4219:15;;;4216:35;;;4247:1;4244;4237:12;4216:35;4283:2;4275:6;4271:15;4295:142;4311:6;4306:3;4303:15;4295:142;;;4377:17;;4365:30;;4415:12;;;;4328;;4295:142;;4471:1586;4633:6;4641;4649;4702:2;4690:9;4681:7;4677:23;4673:32;4670:52;;;4718:1;4715;4708:12;4670:52;4758:9;4745:23;4787:18;4828:2;4820:6;4817:14;4814:34;;;4844:1;4841;4834:12;4814:34;4882:6;4871:9;4867:22;4857:32;;4927:7;4920:4;4916:2;4912:13;4908:27;4898:55;;4949:1;4946;4939:12;4898:55;4985:2;4972:16;5007:4;5031:59;5047:42;5086:2;5047:42;:::i;5031:59::-;5124:15;;;5206:1;5202:10;;;;5194:19;;5190:28;;;5155:12;;;;5230:19;;;5227:39;;;5262:1;5259;5252:12;5227:39;5294:2;5290;5286:11;5306:353;5322:6;5317:3;5314:15;5306:353;;;5408:3;5395:17;5444:2;5431:11;5428:19;5425:109;;;5488:1;5517:2;5513;5506:14;5425:109;5559:57;5608:7;5603:2;5589:11;5585:2;5581:20;5577:29;5559:57;:::i;:::-;5547:70;;-1:-1:-1;5637:12:1;;;;5339;;5306:353;;;-1:-1:-1;5678:5:1;-1:-1:-1;;5721:18:1;;5708:32;;-1:-1:-1;;5752:16:1;;;5749:36;;;5781:1;5778;5771:12;5749:36;5804:63;5859:7;5848:8;5837:9;5833:24;5804:63;:::i;:::-;5794:73;;5920:2;5909:9;5905:18;5892:32;5876:48;;5949:2;5939:8;5936:16;5933:36;;;5965:1;5962;5955:12;5933:36;;5988:63;6043:7;6032:8;6021:9;6017:24;5988:63;:::i;:::-;5978:73;;;4471:1586;;;;;:::o;6062:186::-;6121:6;6174:2;6162:9;6153:7;6149:23;6145:32;6142:52;;;6190:1;6187;6180:12;6142:52;6213:29;6232:9;6213:29;:::i;6253:328::-;6330:6;6338;6346;6399:2;6387:9;6378:7;6374:23;6370:32;6367:52;;;6415:1;6412;6405:12;6367:52;6438:29;6457:9;6438:29;:::i;:::-;6428:39;;6486:38;6520:2;6509:9;6505:18;6486:38;:::i;:::-;6476:48;;6571:2;6560:9;6556:18;6543:32;6533:42;;6253:328;;;;;:::o;6586:180::-;6645:6;6698:2;6686:9;6677:7;6673:23;6669:32;6666:52;;;6714:1;6711;6704:12;6666:52;-1:-1:-1;6737:23:1;;6586:180;-1:-1:-1;6586:180:1:o;6953:390::-;7031:6;7039;7092:2;7080:9;7071:7;7067:23;7063:32;7060:52;;;7108:1;7105;7098:12;7060:52;7144:9;7131:23;7121:33;;7205:2;7194:9;7190:18;7177:32;7232:18;7224:6;7221:30;7218:50;;;7264:1;7261;7254:12;7218:50;7287;7329:7;7320:6;7309:9;7305:22;7287:50;:::i;:::-;7277:60;;;6953:390;;;;;:::o;7348:254::-;7416:6;7424;7477:2;7465:9;7456:7;7452:23;7448:32;7445:52;;;7493:1;7490;7483:12;7445:52;7529:9;7516:23;7506:33;;7558:38;7592:2;7581:9;7577:18;7558:38;:::i;:::-;7548:48;;7348:254;;;;;:::o;8212:260::-;8280:6;8288;8341:2;8329:9;8320:7;8316:23;8312:32;8309:52;;;8357:1;8354;8347:12;8309:52;8380:29;8399:9;8380:29;:::i;:::-;8370:39;;8428:38;8462:2;8451:9;8447:18;8428:38;:::i;8477:437::-;8556:1;8552:12;;;;8599;;;8620:61;;8674:4;8666:6;8662:17;8652:27;;8620:61;8727:2;8719:6;8716:14;8696:18;8693:38;8690:218;;-1:-1:-1;;;8761:1:1;8754:88;8865:4;8862:1;8855:15;8893:4;8890:1;8883:15;8690:218;;8477:437;;;:::o;9631:184::-;-1:-1:-1;;;9680:1:1;9673:88;9780:4;9777:1;9770:15;9804:4;9801:1;9794:15;9820:362;10025:2;10014:9;10007:21;9988:4;10045:45;10086:2;10075:9;10071:18;10063:6;10045:45;:::i;:::-;10121:2;10106:18;;10099:34;;;;-1:-1:-1;10164:2:1;10149:18;10142:34;10037:53;9820:362;-1:-1:-1;9820:362:1:o;10187:184::-;-1:-1:-1;;;10236:1:1;10229:88;10336:4;10333:1;10326:15;10360:4;10357:1;10350:15;10376:135;10415:3;10436:17;;;10433:43;;10456:18;;:::i;:::-;-1:-1:-1;10503:1:1;10492:13;;10376:135::o;10516:184::-;10586:6;10639:2;10627:9;10618:7;10614:23;10610:32;10607:52;;;10655:1;10652;10645:12;10607:52;-1:-1:-1;10678:16:1;;10516:184;-1:-1:-1;10516:184:1:o;11007:277::-;11074:6;11127:2;11115:9;11106:7;11102:23;11098:32;11095:52;;;11143:1;11140;11133:12;11095:52;11175:9;11169:16;11228:5;11221:13;11214:21;11207:5;11204:32;11194:60;;11250:1;11247;11240:12;12419:362;12624:6;12613:9;12606:25;12667:2;12662;12651:9;12647:18;12640:30;12587:4;12687:45;12728:2;12717:9;12713:18;12705:6;12687:45;:::i;:::-;12679:53;;12768:6;12763:2;12752:9;12748:18;12741:34;12419:362;;;;;;:::o;13202:125::-;13267:9;;;13288:10;;;13285:36;;;13301:18;;:::i;18464:812::-;18875:25;18870:3;18863:38;18845:3;18930:6;18924:13;18946:75;19014:6;19009:2;19004:3;19000:12;18993:4;18985:6;18981:17;18946:75;:::i;:::-;19085:19;19080:2;19040:16;;;19072:11;;;19065:40;19130:13;;19152:76;19130:13;19214:2;19206:11;;19199:4;19187:17;;19152:76;:::i;:::-;19248:17;19267:2;19244:26;;18464:812;-1:-1:-1;;;;18464:812:1:o;19281:168::-;19354:9;;;19385;;19402:15;;;19396:22;;19382:37;19372:71;;19423:18;;:::i;19454:136::-;19493:3;19521:5;19511:39;;19530:18;;:::i;:::-;-1:-1:-1;;;19566:18:1;;19454:136::o
Swarm Source
ipfs://5910a7691ab48a6fd5d7950e7969d1d890a236112bebecb241c2b9e45236232c
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.