Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00Latest 25 from a total of 757 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer | 21535978 | 10 days ago | IN | 0 ETH | 0.0007723 | ||||
Approve | 21526492 | 12 days ago | IN | 0 ETH | 0.00018239 | ||||
Transfer | 21515690 | 13 days ago | IN | 0 ETH | 0.00045711 | ||||
Transfer | 21515403 | 13 days ago | IN | 0 ETH | 0.00026122 | ||||
Transfer | 21513462 | 13 days ago | IN | 0 ETH | 0.00014283 | ||||
Transfer | 21513118 | 14 days ago | IN | 0 ETH | 0.00012177 | ||||
Transfer | 21513110 | 14 days ago | IN | 0 ETH | 0.00027754 | ||||
Transfer | 21511608 | 14 days ago | IN | 0 ETH | 0.00054383 | ||||
Transfer | 21510827 | 14 days ago | IN | 0 ETH | 0.00021802 | ||||
Transfer | 21508934 | 14 days ago | IN | 0 ETH | 0.00024941 | ||||
Transfer | 21500900 | 15 days ago | IN | 0 ETH | 0.0003804 | ||||
Approve | 21493051 | 16 days ago | IN | 0 ETH | 0.00041627 | ||||
Approve | 21493051 | 16 days ago | IN | 0 ETH | 0.00041627 | ||||
Transfer | 21467627 | 20 days ago | IN | 0 ETH | 0.00070525 | ||||
Transfer | 21467442 | 20 days ago | IN | 0 ETH | 0.00083318 | ||||
Transfer | 21462570 | 21 days ago | IN | 0 ETH | 0.00024049 | ||||
Transfer | 21462537 | 21 days ago | IN | 0 ETH | 0.00068413 | ||||
Transfer | 21460499 | 21 days ago | IN | 0 ETH | 0.00052736 | ||||
Transfer | 21460340 | 21 days ago | IN | 0 ETH | 0.00054668 | ||||
Transfer | 21460337 | 21 days ago | IN | 0 ETH | 0.00042256 | ||||
Transfer | 21460337 | 21 days ago | IN | 0 ETH | 0.0005733 | ||||
Transfer | 21460335 | 21 days ago | IN | 0 ETH | 0.00041449 | ||||
Transfer | 21460245 | 21 days ago | IN | 0 ETH | 0.00041392 | ||||
Transfer | 21460174 | 21 days ago | IN | 0 ETH | 0.000533 | ||||
Transfer | 21458824 | 21 days ago | IN | 0 ETH | 0.00045801 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
Mun
Compiler Version
v0.8.19+commit.7dd6d404
Contract Source Code (Solidity Multiple files format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; import "./ERC777.sol"; import "./AccessControl.sol"; contract Mun is ERC777, AccessControl { bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); constructor() ERC777("Joseon Mun", "JSM", new address[](0)) { _grantRole(DEFAULT_ADMIN_ROLE, address(0x8EbF6F0Ec8e4E179652F445747c1F4426D8B0a8d)); _grantRole(MINTER_ROLE, address(0x8EbF6F0Ec8e4E179652F445747c1F4426D8B0a8d)); _mint(msg.sender, 2400000000000 * 10 ** decimals(), "", ""); } function mint(address to, uint256 amount) public onlyRole(MINTER_ROLE) { _mint(to, amount, "", ""); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "./Context.sol"; import "./Strings.sol"; import "./ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role); _; } /** * @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()); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.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 * ==== * * [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://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (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); } } }
// SPDX-License-Identifier: MIT // 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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC777/ERC777.sol) pragma solidity ^0.8.0; import "./IERC777.sol"; import "./IERC777Recipient.sol"; import "./IERC777Sender.sol"; import "./IERC20.sol"; import "./Address.sol"; import "./Context.sol"; import "./IERC1820Registry.sol"; /** * @dev Implementation of the {IERC777} 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}. * * Support for ERC20 is included in this contract, as specified by the EIP: both * the ERC777 and ERC20 interfaces can be safely used when interacting with it. * Both {IERC777-Sent} and {IERC20-Transfer} events are emitted on token * movements. * * Additionally, the {IERC777-granularity} value is hard-coded to `1`, meaning that there * are no special restrictions in the amount of tokens that created, moved, or * destroyed. This makes integration with ERC20 applications seamless. */ contract ERC777 is Context, IERC777, IERC20 { using Address for address; IERC1820Registry internal constant _ERC1820_REGISTRY = IERC1820Registry(0x1820a4B7618BdE71Dce8cdc73aAB6C95905faD24); mapping(address => uint256) private _balances; uint256 private _totalSupply; string private _name; string private _symbol; bytes32 private constant _TOKENS_SENDER_INTERFACE_HASH = keccak256("ERC777TokensSender"); bytes32 private constant _TOKENS_RECIPIENT_INTERFACE_HASH = keccak256("ERC777TokensRecipient"); // This isn't ever read from - it's only used to respond to the defaultOperators query. address[] private _defaultOperatorsArray; // Immutable, but accounts may revoke them (tracked in __revokedDefaultOperators). mapping(address => bool) private _defaultOperators; // For each account, a mapping of its operators and revoked default operators. mapping(address => mapping(address => bool)) private _operators; mapping(address => mapping(address => bool)) private _revokedDefaultOperators; // ERC20-allowances mapping(address => mapping(address => uint256)) private _allowances; /** * @dev `defaultOperators` may be an empty array. */ constructor( string memory name_, string memory symbol_, address[] memory defaultOperators_ ) { _name = name_; _symbol = symbol_; _defaultOperatorsArray = defaultOperators_; for (uint256 i = 0; i < defaultOperators_.length; i++) { _defaultOperators[defaultOperators_[i]] = true; } // register interfaces _ERC1820_REGISTRY.setInterfaceImplementer(address(this), keccak256("ERC777Token"), address(this)); _ERC1820_REGISTRY.setInterfaceImplementer(address(this), keccak256("ERC20Token"), address(this)); } /** * @dev See {IERC777-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC777-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {ERC20-decimals}. * * Always returns 18, as per the * [ERC777 EIP](https://eips.ethereum.org/EIPS/eip-777#backward-compatibility). */ function decimals() public pure virtual returns (uint8) { return 18; } /** * @dev See {IERC777-granularity}. * * This implementation always returns `1`. */ function granularity() public view virtual override returns (uint256) { return 1; } /** * @dev See {IERC777-totalSupply}. */ function totalSupply() public view virtual override(IERC20, IERC777) returns (uint256) { return _totalSupply; } /** * @dev Returns the amount of tokens owned by an account (`tokenHolder`). */ function balanceOf(address tokenHolder) public view virtual override(IERC20, IERC777) returns (uint256) { return _balances[tokenHolder]; } /** * @dev See {IERC777-send}. * * Also emits a {IERC20-Transfer} event for ERC20 compatibility. */ function send( address recipient, uint256 amount, bytes memory data ) public virtual override { _send(_msgSender(), recipient, amount, data, "", true); } /** * @dev See {IERC20-transfer}. * * Unlike `send`, `recipient` is _not_ required to implement the {IERC777Recipient} * interface if it is a contract. * * Also emits a {Sent} event. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _send(_msgSender(), recipient, amount, "", "", false); return true; } /** * @dev See {IERC777-burn}. * * Also emits a {IERC20-Transfer} event for ERC20 compatibility. */ function burn(uint256 amount, bytes memory data) public virtual override { _burn(_msgSender(), amount, data, ""); } /** * @dev See {IERC777-isOperatorFor}. */ function isOperatorFor(address operator, address tokenHolder) public view virtual override returns (bool) { return operator == tokenHolder || (_defaultOperators[operator] && !_revokedDefaultOperators[tokenHolder][operator]) || _operators[tokenHolder][operator]; } /** * @dev See {IERC777-authorizeOperator}. */ function authorizeOperator(address operator) public virtual override { require(_msgSender() != operator, "ERC777: authorizing self as operator"); if (_defaultOperators[operator]) { delete _revokedDefaultOperators[_msgSender()][operator]; } else { _operators[_msgSender()][operator] = true; } emit AuthorizedOperator(operator, _msgSender()); } /** * @dev See {IERC777-revokeOperator}. */ function revokeOperator(address operator) public virtual override { require(operator != _msgSender(), "ERC777: revoking self as operator"); if (_defaultOperators[operator]) { _revokedDefaultOperators[_msgSender()][operator] = true; } else { delete _operators[_msgSender()][operator]; } emit RevokedOperator(operator, _msgSender()); } /** * @dev See {IERC777-defaultOperators}. */ function defaultOperators() public view virtual override returns (address[] memory) { return _defaultOperatorsArray; } /** * @dev See {IERC777-operatorSend}. * * Emits {Sent} and {IERC20-Transfer} events. */ function operatorSend( address sender, address recipient, uint256 amount, bytes memory data, bytes memory operatorData ) public virtual override { require(isOperatorFor(_msgSender(), sender), "ERC777: caller is not an operator for holder"); _send(sender, recipient, amount, data, operatorData, true); } /** * @dev See {IERC777-operatorBurn}. * * Emits {Burned} and {IERC20-Transfer} events. */ function operatorBurn( address account, uint256 amount, bytes memory data, bytes memory operatorData ) public virtual override { require(isOperatorFor(_msgSender(), account), "ERC777: caller is not an operator for holder"); _burn(account, amount, data, operatorData); } /** * @dev See {IERC20-allowance}. * * Note that operator and allowance concepts are orthogonal: operators may * not have allowance, and accounts with allowance may not be operators * themselves. */ function allowance(address holder, address spender) public view virtual override returns (uint256) { return _allowances[holder][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `value` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Note that accounts cannot have allowance issued by their operators. */ function approve(address spender, uint256 value) public virtual override returns (bool) { address holder = _msgSender(); _approve(holder, spender, value); return true; } /** * @dev See {IERC20-transferFrom}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Note that operator and allowance concepts are orthogonal: operators cannot * call `transferFrom` (unless they have allowance), and accounts with * allowance cannot call `operatorSend` (unless they are operators). * * Emits {Sent}, {IERC20-Transfer} and {IERC20-Approval} events. */ function transferFrom( address holder, address recipient, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(holder, spender, amount); _send(holder, recipient, amount, "", "", false); return true; } /** * @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * If a send hook is registered for `account`, the corresponding function * will be called with the caller address as the `operator` and with * `userData` and `operatorData`. * * See {IERC777Sender} and {IERC777Recipient}. * * Emits {Minted} and {IERC20-Transfer} events. * * Requirements * * - `account` cannot be the zero address. * - if `account` is a contract, it must implement the {IERC777Recipient} * interface. */ function _mint( address account, uint256 amount, bytes memory userData, bytes memory operatorData ) internal virtual { _mint(account, amount, userData, operatorData, true); } /** * @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * If `requireReceptionAck` is set to true, and if a send hook is * registered for `account`, the corresponding function will be called with * `operator`, `data` and `operatorData`. * * See {IERC777Sender} and {IERC777Recipient}. * * Emits {Minted} and {IERC20-Transfer} events. * * Requirements * * - `account` cannot be the zero address. * - if `account` is a contract, it must implement the {IERC777Recipient} * interface. */ function _mint( address account, uint256 amount, bytes memory userData, bytes memory operatorData, bool requireReceptionAck ) internal virtual { require(account != address(0), "ERC777: mint to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), account, amount); // Update state variables _totalSupply += amount; _balances[account] += amount; _callTokensReceived(operator, address(0), account, amount, userData, operatorData, requireReceptionAck); emit Minted(operator, account, amount, userData, operatorData); emit Transfer(address(0), account, amount); } /** * @dev Send tokens * @param from address token holder address * @param to address recipient address * @param amount uint256 amount of tokens to transfer * @param userData bytes extra information provided by the token holder (if any) * @param operatorData bytes extra information provided by the operator (if any) * @param requireReceptionAck if true, contract recipients are required to implement ERC777TokensRecipient */ function _send( address from, address to, uint256 amount, bytes memory userData, bytes memory operatorData, bool requireReceptionAck ) internal virtual { require(from != address(0), "ERC777: transfer from the zero address"); require(to != address(0), "ERC777: transfer to the zero address"); address operator = _msgSender(); _callTokensToSend(operator, from, to, amount, userData, operatorData); _move(operator, from, to, amount, userData, operatorData); _callTokensReceived(operator, from, to, amount, userData, operatorData, requireReceptionAck); } /** * @dev Burn tokens * @param from address token holder address * @param amount uint256 amount of tokens to burn * @param data bytes extra information provided by the token holder * @param operatorData bytes extra information provided by the operator (if any) */ function _burn( address from, uint256 amount, bytes memory data, bytes memory operatorData ) internal virtual { require(from != address(0), "ERC777: burn from the zero address"); address operator = _msgSender(); _callTokensToSend(operator, from, address(0), amount, data, operatorData); _beforeTokenTransfer(operator, from, address(0), amount); // Update state variables uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC777: burn amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; } _totalSupply -= amount; emit Burned(operator, from, amount, data, operatorData); emit Transfer(from, address(0), amount); } function _move( address operator, address from, address to, uint256 amount, bytes memory userData, bytes memory operatorData ) private { _beforeTokenTransfer(operator, from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC777: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; } _balances[to] += amount; emit Sent(operator, from, to, amount, userData, operatorData); emit Transfer(from, to, amount); } /** * @dev See {ERC20-_approve}. * * Note that accounts cannot have allowance issued by their operators. */ function _approve( address holder, address spender, uint256 value ) internal virtual { require(holder != address(0), "ERC777: approve from the zero address"); require(spender != address(0), "ERC777: approve to the zero address"); _allowances[holder][spender] = value; emit Approval(holder, spender, value); } /** * @dev Call from.tokensToSend() if the interface is registered * @param operator address operator requesting the transfer * @param from address token holder address * @param to address recipient address * @param amount uint256 amount of tokens to transfer * @param userData bytes extra information provided by the token holder (if any) * @param operatorData bytes extra information provided by the operator (if any) */ function _callTokensToSend( address operator, address from, address to, uint256 amount, bytes memory userData, bytes memory operatorData ) private { address implementer = _ERC1820_REGISTRY.getInterfaceImplementer(from, _TOKENS_SENDER_INTERFACE_HASH); if (implementer != address(0)) { IERC777Sender(implementer).tokensToSend(operator, from, to, amount, userData, operatorData); } } /** * @dev Call to.tokensReceived() if the interface is registered. Reverts if the recipient is a contract but * tokensReceived() was not registered for the recipient * @param operator address operator requesting the transfer * @param from address token holder address * @param to address recipient address * @param amount uint256 amount of tokens to transfer * @param userData bytes extra information provided by the token holder (if any) * @param operatorData bytes extra information provided by the operator (if any) * @param requireReceptionAck if true, contract recipients are required to implement ERC777TokensRecipient */ function _callTokensReceived( address operator, address from, address to, uint256 amount, bytes memory userData, bytes memory operatorData, bool requireReceptionAck ) private { address implementer = _ERC1820_REGISTRY.getInterfaceImplementer(to, _TOKENS_RECIPIENT_INTERFACE_HASH); if (implementer != address(0)) { IERC777Recipient(implementer).tokensReceived(operator, from, to, amount, userData, operatorData); } else if (requireReceptionAck) { require(!to.isContract(), "ERC777: token recipient contract has no implementer for ERC777TokensRecipient"); } } /** * @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 {IERC20-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, "ERC777: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any token transfer. This includes * calls to {send}, {transfer}, {operatorSend}, minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address operator, address from, address to, uint256 amount ) internal virtual {} }
// 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; }
// SPDX-License-Identifier: MIT // 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/introspection/IERC1820Registry.sol) pragma solidity ^0.8.0; /** * @dev Interface of the global ERC1820 Registry, as defined in the * https://eips.ethereum.org/EIPS/eip-1820[EIP]. Accounts may register * implementers for interfaces in this registry, as well as query support. * * Implementers may be shared by multiple accounts, and can also implement more * than a single interface for each account. Contracts can implement interfaces * for themselves, but externally-owned accounts (EOA) must delegate this to a * contract. * * {IERC165} interfaces can also be queried via the registry. * * For an in-depth explanation and source code analysis, see the EIP text. */ interface IERC1820Registry { event InterfaceImplementerSet(address indexed account, bytes32 indexed interfaceHash, address indexed implementer); event ManagerChanged(address indexed account, address indexed newManager); /** * @dev Sets `newManager` as the manager for `account`. A manager of an * account is able to set interface implementers for it. * * By default, each account is its own manager. Passing a value of `0x0` in * `newManager` will reset the manager to this initial state. * * Emits a {ManagerChanged} event. * * Requirements: * * - the caller must be the current manager for `account`. */ function setManager(address account, address newManager) external; /** * @dev Returns the manager for `account`. * * See {setManager}. */ function getManager(address account) external view returns (address); /** * @dev Sets the `implementer` contract as ``account``'s implementer for * `interfaceHash`. * * `account` being the zero address is an alias for the caller's address. * The zero address can also be used in `implementer` to remove an old one. * * See {interfaceHash} to learn how these are created. * * Emits an {InterfaceImplementerSet} event. * * Requirements: * * - the caller must be the current manager for `account`. * - `interfaceHash` must not be an {IERC165} interface id (i.e. it must not * end in 28 zeroes). * - `implementer` must implement {IERC1820Implementer} and return true when * queried for support, unless `implementer` is the caller. See * {IERC1820Implementer-canImplementInterfaceForAddress}. */ function setInterfaceImplementer( address account, bytes32 _interfaceHash, address implementer ) external; /** * @dev Returns the implementer of `interfaceHash` for `account`. If no such * implementer is registered, returns the zero address. * * If `interfaceHash` is an {IERC165} interface id (i.e. it ends with 28 * zeroes), `account` will be queried for support of it. * * `account` being the zero address is an alias for the caller's address. */ function getInterfaceImplementer(address account, bytes32 _interfaceHash) external view returns (address); /** * @dev Returns the interface hash for an `interfaceName`, as defined in the * corresponding * https://eips.ethereum.org/EIPS/eip-1820#interface-name[section of the EIP]. */ function interfaceHash(string calldata interfaceName) external pure returns (bytes32); /** * @notice Updates the cache with whether the contract implements an ERC165 interface or not. * @param account Address of the contract for which to update the cache. * @param interfaceId ERC165 interface for which to update the cache. */ function updateERC165Cache(address account, bytes4 interfaceId) external; /** * @notice Checks whether a contract implements an ERC165 interface or not. * If the result is not cached a direct lookup on the contract address is performed. * If the result is not cached or the cached value is out-of-date, the cache MUST be updated manually by calling * {updateERC165Cache} with the contract address. * @param account Address of the contract to check. * @param interfaceId ERC165 interface to check. * @return True if `account` implements `interfaceId`, false otherwise. */ function implementsERC165Interface(address account, bytes4 interfaceId) external view returns (bool); /** * @notice Checks whether a contract implements an ERC165 interface or not without using or updating the cache. * @param account Address of the contract to check. * @param interfaceId ERC165 interface to check. * @return True if `account` implements `interfaceId`, false otherwise. */ function implementsERC165InterfaceNoCache(address account, bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC777/IERC777.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC777Token standard as defined in the EIP. * * This contract uses the * https://eips.ethereum.org/EIPS/eip-1820[ERC1820 registry standard] to let * token holders and recipients react to token movements by using setting implementers * for the associated interfaces in said registry. See {IERC1820Registry} and * {ERC1820Implementer}. */ interface IERC777 { /** * @dev Emitted when `amount` tokens are created by `operator` and assigned to `to`. * * Note that some additional user `data` and `operatorData` can be logged in the event. */ event Minted(address indexed operator, address indexed to, uint256 amount, bytes data, bytes operatorData); /** * @dev Emitted when `operator` destroys `amount` tokens from `account`. * * Note that some additional user `data` and `operatorData` can be logged in the event. */ event Burned(address indexed operator, address indexed from, uint256 amount, bytes data, bytes operatorData); /** * @dev Emitted when `operator` is made operator for `tokenHolder`. */ event AuthorizedOperator(address indexed operator, address indexed tokenHolder); /** * @dev Emitted when `operator` is revoked its operator status for `tokenHolder`. */ event RevokedOperator(address indexed operator, address indexed tokenHolder); /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() external view returns (string memory); /** * @dev Returns the smallest part of the token that is not divisible. This * means all token operations (creation, movement and destruction) must have * amounts that are a multiple of this number. * * For most token contracts, this value will equal 1. */ function granularity() external view returns (uint256); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by an account (`owner`). */ function balanceOf(address owner) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * If send or receive hooks are registered for the caller and `recipient`, * the corresponding functions will be called with `data` and empty * `operatorData`. See {IERC777Sender} and {IERC777Recipient}. * * Emits a {Sent} event. * * Requirements * * - the caller must have at least `amount` tokens. * - `recipient` cannot be the zero address. * - if `recipient` is a contract, it must implement the {IERC777Recipient} * interface. */ function send( address recipient, uint256 amount, bytes calldata data ) external; /** * @dev Destroys `amount` tokens from the caller's account, reducing the * total supply. * * If a send hook is registered for the caller, the corresponding function * will be called with `data` and empty `operatorData`. See {IERC777Sender}. * * Emits a {Burned} event. * * Requirements * * - the caller must have at least `amount` tokens. */ function burn(uint256 amount, bytes calldata data) external; /** * @dev Returns true if an account is an operator of `tokenHolder`. * Operators can send and burn tokens on behalf of their owners. All * accounts are their own operator. * * See {operatorSend} and {operatorBurn}. */ function isOperatorFor(address operator, address tokenHolder) external view returns (bool); /** * @dev Make an account an operator of the caller. * * See {isOperatorFor}. * * Emits an {AuthorizedOperator} event. * * Requirements * * - `operator` cannot be calling address. */ function authorizeOperator(address operator) external; /** * @dev Revoke an account's operator status for the caller. * * See {isOperatorFor} and {defaultOperators}. * * Emits a {RevokedOperator} event. * * Requirements * * - `operator` cannot be calling address. */ function revokeOperator(address operator) external; /** * @dev Returns the list of default operators. These accounts are operators * for all token holders, even if {authorizeOperator} was never called on * them. * * This list is immutable, but individual holders may revoke these via * {revokeOperator}, in which case {isOperatorFor} will return false. */ function defaultOperators() external view returns (address[] memory); /** * @dev Moves `amount` tokens from `sender` to `recipient`. The caller must * be an operator of `sender`. * * If send or receive hooks are registered for `sender` and `recipient`, * the corresponding functions will be called with `data` and * `operatorData`. See {IERC777Sender} and {IERC777Recipient}. * * Emits a {Sent} event. * * Requirements * * - `sender` cannot be the zero address. * - `sender` must have at least `amount` tokens. * - the caller must be an operator for `sender`. * - `recipient` cannot be the zero address. * - if `recipient` is a contract, it must implement the {IERC777Recipient} * interface. */ function operatorSend( address sender, address recipient, uint256 amount, bytes calldata data, bytes calldata operatorData ) external; /** * @dev Destroys `amount` tokens from `account`, reducing the total supply. * The caller must be an operator of `account`. * * If a send hook is registered for `account`, the corresponding function * will be called with `data` and `operatorData`. See {IERC777Sender}. * * Emits a {Burned} event. * * Requirements * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. * - the caller must be an operator for `account`. */ function operatorBurn( address account, uint256 amount, bytes calldata data, bytes calldata operatorData ) external; event Sent( address indexed operator, address indexed from, address indexed to, uint256 amount, bytes data, bytes operatorData ); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC777/IERC777Recipient.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC777TokensRecipient standard as defined in the EIP. * * Accounts can be notified of {IERC777} tokens being sent to them by having a * contract implement this interface (contract holders can be their own * implementer) and registering it on the * https://eips.ethereum.org/EIPS/eip-1820[ERC1820 global registry]. * * See {IERC1820Registry} and {ERC1820Implementer}. */ interface IERC777Recipient { /** * @dev Called by an {IERC777} token contract whenever tokens are being * moved or created into a registered account (`to`). The type of operation * is conveyed by `from` being the zero address or not. * * This call occurs _after_ the token contract's state is updated, so * {IERC777-balanceOf}, etc., can be used to query the post-operation state. * * This function may revert to prevent the operation from being executed. */ function tokensReceived( address operator, address from, address to, uint256 amount, bytes calldata userData, bytes calldata operatorData ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC777/IERC777Sender.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC777TokensSender standard as defined in the EIP. * * {IERC777} Token holders can be notified of operations performed on their * tokens by having a contract implement this interface (contract holders can be * their own implementer) and registering it on the * https://eips.ethereum.org/EIPS/eip-1820[ERC1820 global registry]. * * See {IERC1820Registry} and {ERC1820Implementer}. */ interface IERC777Sender { /** * @dev Called by an {IERC777} token contract whenever a registered holder's * (`from`) tokens are about to be moved or destroyed. The type of operation * is conveyed by `to` being the zero address or not. * * This call occurs _before_ the token contract's state is updated, so * {IERC777-balanceOf}, etc., can be used to query the pre-operation state. * * This function may revert to prevent the operation from being executed. */ function tokensToSend( address operator, address from, address to, uint256 amount, bytes calldata userData, bytes calldata operatorData ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.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) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 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 10, 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 * 8) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./Math.sol"; /** * @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 `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); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"tokenHolder","type":"address"}],"name":"AuthorizedOperator","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"operatorData","type":"bytes"}],"name":"Burned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"operatorData","type":"bytes"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"tokenHolder","type":"address"}],"name":"RevokedOperator","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":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"operatorData","type":"bytes"}],"name":"Sent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"holder","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":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"authorizeOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenHolder","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"defaultOperators","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"granularity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"operator","type":"address"},{"internalType":"address","name":"tokenHolder","type":"address"}],"name":"isOperatorFor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"bytes","name":"operatorData","type":"bytes"}],"name":"operatorBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"bytes","name":"operatorData","type":"bytes"}],"name":"operatorSend","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":"address","name":"operator","type":"address"}],"name":"revokeOperator","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":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"send","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604080518082018252600a8152692537b9b2b7b71026bab760b11b6020808301919091528251808401845260038152624a534d60e81b818301528351600081529182019093529091906002620000698482620007f9565b506003620000788382620007f9565b5080516200008e906004906020840190620006d3565b5060005b8151811015620000fe57600160056000848481518110620000b757620000b7620008c5565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905580620000f581620008f1565b91505062000092565b506040516329965a1d60e01b815230600482018190527fac7fbab5f54a3ca8194167523c6753bfeb96a445279294b6125b68cce217705460248301526044820152731820a4b7618bde71dce8cdc73aab6c95905fad24906329965a1d90606401600060405180830381600087803b1580156200017957600080fd5b505af11580156200018e573d6000803e3d6000fd5b50506040516329965a1d60e01b815230600482018190527faea199e31a596269b42cdafd93407f14436db6e4cad65417994c2eb37381e05a60248301526044820152731820a4b7618bde71dce8cdc73aab6c95905fad2492506329965a1d9150606401600060405180830381600087803b1580156200020c57600080fd5b505af115801562000221573d6000803e3d6000fd5b50505050505050620002516000801b738ebf6f0ec8e4e179652f445747c1f4426d8b0a8d620002de60201b60201c565b620002917f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6738ebf6f0ec8e4e179652f445747c1f4426d8b0a8d620002de565b620002d833620002a46012600a62000a0a565b620002b69065022ecb25c00062000a22565b6040805160208082018352600080835283519182019093529182529062000369565b62000b5c565b620002ea82826200037f565b620003655760008281526009602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620003243390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b62000379848484846001620003ac565b50505050565b60008281526009602090815260408083206001600160a01b038516845290915290205460ff165b92915050565b6001600160a01b038516620004085760405162461bcd60e51b815260206004820181905260248201527f4552433737373a206d696e7420746f20746865207a65726f206164647265737360448201526064015b60405180910390fd5b6000339050846001600082825462000421919062000a3c565b90915550506001600160a01b038616600090815260208190526040812080548792906200045090849062000a3c565b90915550620004689050816000888888888862000502565b856001600160a01b0316816001600160a01b03167f2fe5be0146f74c5bce36c0b80911af6c7d86ff27e89d5cfa61fc681327954e5d878787604051620004b19392919062000a9a565b60405180910390a36040518581526001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050505050565b60405163555ddc6560e11b81526001600160a01b03861660048201527fb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b6024820152600090731820a4b7618bde71dce8cdc73aab6c95905fad249063aabbb8ca90604401602060405180830381865afa15801562000584573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620005aa919062000ad3565b90506001600160a01b038116156200062c576040516223de2960e01b81526001600160a01b038216906223de2990620005f2908b908b908b908b908b908b9060040162000afe565b600060405180830381600087803b1580156200060d57600080fd5b505af115801562000622573d6000803e3d6000fd5b50505050620006c9565b8115620006c9576001600160a01b0386163b15620006c95760405162461bcd60e51b815260206004820152604d60248201527f4552433737373a20746f6b656e20726563697069656e7420636f6e747261637460448201527f20686173206e6f20696d706c656d656e74657220666f7220455243373737546f60648201526c1ad95b9cd49958da5c1a595b9d609a1b608482015260a401620003ff565b5050505050505050565b8280548282559060005260206000209081019282156200072b579160200282015b828111156200072b57825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190620006f4565b50620007399291506200073d565b5090565b5b808211156200073957600081556001016200073e565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200077f57607f821691505b602082108103620007a057634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620007f457600081815260208120601f850160051c81016020861015620007cf5750805b601f850160051c820191505b81811015620007f057828155600101620007db565b5050505b505050565b81516001600160401b0381111562000815576200081562000754565b6200082d816200082684546200076a565b84620007a6565b602080601f8311600181146200086557600084156200084c5750858301515b600019600386901b1c1916600185901b178555620007f0565b600085815260208120601f198616915b82811015620008965788860151825594840194600190910190840162000875565b5085821015620008b55787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201620009065762000906620008db565b5060010190565b600181815b808511156200094e578160001904821115620009325762000932620008db565b808516156200094057918102915b93841c939080029062000912565b509250929050565b6000826200096757506001620003a6565b816200097657506000620003a6565b81600181146200098f57600281146200099a57620009ba565b6001915050620003a6565b60ff841115620009ae57620009ae620008db565b50506001821b620003a6565b5060208310610133831016604e8410600b8410161715620009df575081810a620003a6565b620009eb83836200090d565b806000190482111562000a025762000a02620008db565b029392505050565b600062000a1b60ff84168362000956565b9392505050565b8082028115828204841417620003a657620003a6620008db565b80820180821115620003a657620003a6620008db565b6000815180845260005b8181101562000a7a5760208185018101518683018201520162000a5c565b506000602082860101526020601f19601f83011685010191505092915050565b83815260606020820152600062000ab5606083018562000a52565b828103604084015262000ac9818562000a52565b9695505050505050565b60006020828403121562000ae657600080fd5b81516001600160a01b038116811462000a1b57600080fd5b6001600160a01b0387811682528681166020830152851660408201526060810184905260c06080820181905260009062000b3b9083018562000a52565b82810360a084015262000b4f818562000a52565b9998505050505050505050565b611e478062000b6c6000396000f3fe608060405234801561001057600080fd5b50600436106101a95760003560e01c806370a08231116100f9578063d539139311610097578063dd62ed3e11610071578063dd62ed3e14610391578063fad8b32a146103ca578063fc673c4f146103dd578063fe9d9303146103f057600080fd5b8063d539139314610344578063d547741f1461036b578063d95b63711461037e57600080fd5b806395d89b41116100d357806395d89b411461030e5780639bd9bbc614610316578063a217fddf14610329578063a9059cbb1461033157600080fd5b806370a08231146102bf57806391d14854146102e8578063959b8c3f146102fb57600080fd5b8063248a9ca31161016657806336568abe1161014057806336568abe1461027f57806340c10f1914610292578063556f0dc7146102a557806362ad1b83146102ac57600080fd5b8063248a9ca3146102385780632f2ff15d1461025b578063313ce5671461027057600080fd5b806301ffc9a7146101ae57806306e48538146101d657806306fdde03146101eb578063095ea7b31461020057806318160ddd1461021357806323b872dd14610225575b600080fd5b6101c16101bc3660046117a4565b610403565b60405190151581526020015b60405180910390f35b6101de61043a565b6040516101cd91906117ce565b6101f361049c565b6040516101cd919061186b565b6101c161020e366004611893565b610525565b6001545b6040519081526020016101cd565b6101c16102333660046118bf565b61053d565b610217610246366004611900565b60009081526009602052604090206001015490565b61026e610269366004611919565b610583565b005b604051601281526020016101cd565b61026e61028d366004611919565b6105ad565b61026e6102a0366004611893565b610630565b6001610217565b61026e6102ba3660046119ec565b610684565b6102176102cd366004611a7f565b6001600160a01b031660009081526020819052604090205490565b6101c16102f6366004611919565b6106c0565b61026e610309366004611a7f565b6106eb565b6101f3610808565b61026e610324366004611a9c565b610817565b610217600081565b6101c161033f366004611893565b610835565b6102177f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b61026e610379366004611919565b61086d565b6101c161038c366004611af5565b610892565b61021761039f366004611af5565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205490565b61026e6103d8366004611a7f565b610934565b61026e6103eb366004611b23565b610a4f565b61026e6103fe366004611ba3565b610a87565b60006001600160e01b03198216637965db0b60e01b148061043457506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600480548060200260200160405190810160405280929190818152602001828054801561049257602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610474575b5050505050905090565b6060600280546104ab90611bea565b80601f01602080910402602001604051908101604052809291908181526020018280546104d790611bea565b80156104925780601f106104f957610100808354040283529160200191610492565b820191906000526020600020905b81548152906001019060200180831161050757509395945050505050565b600033610533818585610aa2565b5060019392505050565b60003361054b858285610bc9565b61057885858560405180602001604052806000815250604051806020016040528060008152506000610c55565b506001949350505050565b60008281526009602052604090206001015461059e81610d51565b6105a88383610d5e565b505050565b6001600160a01b03811633146106225760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b61062c8282610de4565b5050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661065a81610d51565b6105a883836040518060200160405280600081525060405180602001604052806000815250610e4b565b61068e3386610892565b6106aa5760405162461bcd60e51b815260040161061990611c24565b6106b985858585856001610c55565b5050505050565b60009182526009602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6001600160a01b038116330361074f5760405162461bcd60e51b8152602060048201526024808201527f4552433737373a20617574686f72697a696e672073656c66206173206f70657260448201526330ba37b960e11b6064820152608401610619565b6001600160a01b03811660009081526005602052604090205460ff16156107a0573360009081526007602090815260408083206001600160a01b03851684529091529020805460ff191690556107cf565b3360009081526006602090815260408083206001600160a01b03851684529091529020805460ff191660011790555b60405133906001600160a01b038316907ff4caeb2d6ca8932a215a353d0703c326ec2d81fc68170f320eb2ab49e9df61f990600090a350565b6060600380546104ab90611bea565b6105a833848484604051806020016040528060008152506001610c55565b600061086433848460405180602001604052806000815250604051806020016040528060008152506000610c55565b50600192915050565b60008281526009602052604090206001015461088881610d51565b6105a88383610de4565b6000816001600160a01b0316836001600160a01b031614806108fd57506001600160a01b03831660009081526005602052604090205460ff1680156108fd57506001600160a01b0380831660009081526007602090815260408083209387168352929052205460ff16155b8061092d57506001600160a01b0380831660009081526006602090815260408083209387168352929052205460ff165b9392505050565b336001600160a01b038216036109965760405162461bcd60e51b815260206004820152602160248201527f4552433737373a207265766f6b696e672073656c66206173206f70657261746f6044820152603960f91b6064820152608401610619565b6001600160a01b03811660009081526005602052604090205460ff16156109ea573360009081526007602090815260408083206001600160a01b03851684529091529020805460ff19166001179055610a16565b3360009081526006602090815260408083206001600160a01b03851684529091529020805460ff191690555b60405133906001600160a01b038316907f50546e66e5f44d728365dc3908c63bc5cfeeab470722c1677e3073a6ac294aa190600090a350565b610a593385610892565b610a755760405162461bcd60e51b815260040161061990611c24565b610a8184848484610e59565b50505050565b61062c33838360405180602001604052806000815250610e59565b6001600160a01b038316610b065760405162461bcd60e51b815260206004820152602560248201527f4552433737373a20617070726f76652066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610619565b6001600160a01b038216610b685760405162461bcd60e51b815260206004820152602360248201527f4552433737373a20617070726f766520746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610619565b6001600160a01b0383811660008181526008602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038381166000908152600860209081526040808320938616835292905220546000198114610a815781811015610c485760405162461bcd60e51b815260206004820152601e60248201527f4552433737373a20696e73756666696369656e7420616c6c6f77616e636500006044820152606401610619565b610a818484848403610aa2565b6001600160a01b038616610cba5760405162461bcd60e51b815260206004820152602660248201527f4552433737373a207472616e736665722066726f6d20746865207a65726f206160448201526564647265737360d01b6064820152608401610619565b6001600160a01b038516610d1c5760405162461bcd60e51b8152602060048201526024808201527f4552433737373a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610619565b33610d2b81888888888861100e565b610d39818888888888611135565b610d488188888888888861129b565b50505050505050565b610d5b8133611460565b50565b610d6882826106c0565b61062c5760008281526009602090815260408083206001600160a01b03851684529091529020805460ff19166001179055610da03390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b610dee82826106c0565b1561062c5760008281526009602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b610a818484848460016114b9565b6001600160a01b038416610eba5760405162461bcd60e51b815260206004820152602260248201527f4552433737373a206275726e2066726f6d20746865207a65726f206164647265604482015261737360f01b6064820152608401610619565b33610eca8186600087878761100e565b6001600160a01b03851660009081526020819052604090205484811015610f3f5760405162461bcd60e51b815260206004820152602360248201527f4552433737373a206275726e20616d6f756e7420657863656564732062616c616044820152626e636560e81b6064820152608401610619565b6001600160a01b0386166000908152602081905260408120868303905560018054879290610f6e908490611c86565b92505081905550856001600160a01b0316826001600160a01b03167fa78a9be3a7b862d26933ad85fb11d80ef66b8f972d7cbba06621d583943a4098878787604051610fbc93929190611c99565b60405180910390a36040518581526000906001600160a01b038816907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020015b60405180910390a3505050505050565b60405163555ddc6560e11b81526001600160a01b03861660048201527f29ddb589b1fb5fc7cf394961c1adf5f8c6454761adf795e67fe149f658abe8956024820152600090731820a4b7618bde71dce8cdc73aab6c95905fad249063aabbb8ca90604401602060405180830381865afa15801561108f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110b39190611cce565b90506001600160a01b03811615610d4857604051633ad5cbc160e11b81526001600160a01b038216906375ab9782906110fa908a908a908a908a908a908a90600401611ceb565b600060405180830381600087803b15801561111457600080fd5b505af1158015611128573d6000803e3d6000fd5b5050505050505050505050565b6001600160a01b038516600090815260208190526040902054838110156111ae5760405162461bcd60e51b815260206004820152602760248201527f4552433737373a207472616e7366657220616d6f756e7420657863656564732060448201526662616c616e636560c81b6064820152608401610619565b6001600160a01b038087166000908152602081905260408082208785039055918716815290812080548692906111e5908490611d45565b92505081905550846001600160a01b0316866001600160a01b0316886001600160a01b03167f06b541ddaa720db2b10a4d0cdac39b8d360425fc073085fac19bc8261467798787878760405161123d93929190611c99565b60405180910390a4846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8660405161128a91815260200190565b60405180910390a350505050505050565b60405163555ddc6560e11b81526001600160a01b03861660048201527fb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b6024820152600090731820a4b7618bde71dce8cdc73aab6c95905fad249063aabbb8ca90604401602060405180830381865afa15801561131c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113409190611cce565b90506001600160a01b038116156113bc576040516223de2960e01b81526001600160a01b038216906223de2990611385908b908b908b908b908b908b90600401611ceb565b600060405180830381600087803b15801561139f57600080fd5b505af11580156113b3573d6000803e3d6000fd5b50505050611456565b8115611456576001600160a01b0386163b156114565760405162461bcd60e51b815260206004820152604d60248201527f4552433737373a20746f6b656e20726563697069656e7420636f6e747261637460448201527f20686173206e6f20696d706c656d656e74657220666f7220455243373737546f60648201526c1ad95b9cd49958da5c1a595b9d609a1b608482015260a401610619565b5050505050505050565b61146a82826106c0565b61062c57611477816115f6565b611482836020611608565b604051602001611493929190611d58565b60408051601f198184030181529082905262461bcd60e51b82526106199160040161186b565b6001600160a01b03851661150f5760405162461bcd60e51b815260206004820181905260248201527f4552433737373a206d696e7420746f20746865207a65726f20616464726573736044820152606401610619565b600033905084600160008282546115269190611d45565b90915550506001600160a01b03861660009081526020819052604081208054879290611553908490611d45565b909155506115699050816000888888888861129b565b856001600160a01b0316816001600160a01b03167f2fe5be0146f74c5bce36c0b80911af6c7d86ff27e89d5cfa61fc681327954e5d8787876040516115b093929190611c99565b60405180910390a36040518581526001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610ffe565b60606104346001600160a01b03831660145b60606000611617836002611dcd565b611622906002611d45565b67ffffffffffffffff81111561163a5761163a611949565b6040519080825280601f01601f191660200182016040528015611664576020820181803683370190505b509050600360fc1b8160008151811061167f5761167f611de4565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106116ae576116ae611de4565b60200101906001600160f81b031916908160001a90535060006116d2846002611dcd565b6116dd906001611d45565b90505b6001811115611755576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061171157611711611de4565b1a60f81b82828151811061172757611727611de4565b60200101906001600160f81b031916908160001a90535060049490941c9361174e81611dfa565b90506116e0565b50831561092d5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610619565b6000602082840312156117b657600080fd5b81356001600160e01b03198116811461092d57600080fd5b6020808252825182820181905260009190848201906040850190845b8181101561180f5783516001600160a01b0316835292840192918401916001016117ea565b50909695505050505050565b60005b8381101561183657818101518382015260200161181e565b50506000910152565b6000815180845261185781602086016020860161181b565b601f01601f19169290920160200192915050565b60208152600061092d602083018461183f565b6001600160a01b0381168114610d5b57600080fd5b600080604083850312156118a657600080fd5b82356118b18161187e565b946020939093013593505050565b6000806000606084860312156118d457600080fd5b83356118df8161187e565b925060208401356118ef8161187e565b929592945050506040919091013590565b60006020828403121561191257600080fd5b5035919050565b6000806040838503121561192c57600080fd5b82359150602083013561193e8161187e565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261197057600080fd5b813567ffffffffffffffff8082111561198b5761198b611949565b604051601f8301601f19908116603f011681019082821181831017156119b3576119b3611949565b816040528381528660208588010111156119cc57600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600080600060a08688031215611a0457600080fd5b8535611a0f8161187e565b94506020860135611a1f8161187e565b935060408601359250606086013567ffffffffffffffff80821115611a4357600080fd5b611a4f89838a0161195f565b93506080880135915080821115611a6557600080fd5b50611a728882890161195f565b9150509295509295909350565b600060208284031215611a9157600080fd5b813561092d8161187e565b600080600060608486031215611ab157600080fd5b8335611abc8161187e565b925060208401359150604084013567ffffffffffffffff811115611adf57600080fd5b611aeb8682870161195f565b9150509250925092565b60008060408385031215611b0857600080fd5b8235611b138161187e565b9150602083013561193e8161187e565b60008060008060808587031215611b3957600080fd5b8435611b448161187e565b935060208501359250604085013567ffffffffffffffff80821115611b6857600080fd5b611b748883890161195f565b93506060870135915080821115611b8a57600080fd5b50611b978782880161195f565b91505092959194509250565b60008060408385031215611bb657600080fd5b82359150602083013567ffffffffffffffff811115611bd457600080fd5b611be08582860161195f565b9150509250929050565b600181811c90821680611bfe57607f821691505b602082108103611c1e57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602c908201527f4552433737373a2063616c6c6572206973206e6f7420616e206f70657261746f60408201526b39103337b9103437b63232b960a11b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b8181038181111561043457610434611c70565b838152606060208201526000611cb2606083018561183f565b8281036040840152611cc4818561183f565b9695505050505050565b600060208284031215611ce057600080fd5b815161092d8161187e565b6001600160a01b0387811682528681166020830152851660408201526060810184905260c060808201819052600090611d269083018561183f565b82810360a0840152611d38818561183f565b9998505050505050505050565b8082018082111561043457610434611c70565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351611d9081601785016020880161181b565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351611dc181602884016020880161181b565b01602801949350505050565b808202811582820484141761043457610434611c70565b634e487b7160e01b600052603260045260246000fd5b600081611e0957611e09611c70565b50600019019056fea2646970667358221220ee794cbba283404b251323203972979804c9e0beb9087cfa38855a5cf59e210564736f6c63430008130033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101a95760003560e01c806370a08231116100f9578063d539139311610097578063dd62ed3e11610071578063dd62ed3e14610391578063fad8b32a146103ca578063fc673c4f146103dd578063fe9d9303146103f057600080fd5b8063d539139314610344578063d547741f1461036b578063d95b63711461037e57600080fd5b806395d89b41116100d357806395d89b411461030e5780639bd9bbc614610316578063a217fddf14610329578063a9059cbb1461033157600080fd5b806370a08231146102bf57806391d14854146102e8578063959b8c3f146102fb57600080fd5b8063248a9ca31161016657806336568abe1161014057806336568abe1461027f57806340c10f1914610292578063556f0dc7146102a557806362ad1b83146102ac57600080fd5b8063248a9ca3146102385780632f2ff15d1461025b578063313ce5671461027057600080fd5b806301ffc9a7146101ae57806306e48538146101d657806306fdde03146101eb578063095ea7b31461020057806318160ddd1461021357806323b872dd14610225575b600080fd5b6101c16101bc3660046117a4565b610403565b60405190151581526020015b60405180910390f35b6101de61043a565b6040516101cd91906117ce565b6101f361049c565b6040516101cd919061186b565b6101c161020e366004611893565b610525565b6001545b6040519081526020016101cd565b6101c16102333660046118bf565b61053d565b610217610246366004611900565b60009081526009602052604090206001015490565b61026e610269366004611919565b610583565b005b604051601281526020016101cd565b61026e61028d366004611919565b6105ad565b61026e6102a0366004611893565b610630565b6001610217565b61026e6102ba3660046119ec565b610684565b6102176102cd366004611a7f565b6001600160a01b031660009081526020819052604090205490565b6101c16102f6366004611919565b6106c0565b61026e610309366004611a7f565b6106eb565b6101f3610808565b61026e610324366004611a9c565b610817565b610217600081565b6101c161033f366004611893565b610835565b6102177f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b61026e610379366004611919565b61086d565b6101c161038c366004611af5565b610892565b61021761039f366004611af5565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205490565b61026e6103d8366004611a7f565b610934565b61026e6103eb366004611b23565b610a4f565b61026e6103fe366004611ba3565b610a87565b60006001600160e01b03198216637965db0b60e01b148061043457506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600480548060200260200160405190810160405280929190818152602001828054801561049257602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610474575b5050505050905090565b6060600280546104ab90611bea565b80601f01602080910402602001604051908101604052809291908181526020018280546104d790611bea565b80156104925780601f106104f957610100808354040283529160200191610492565b820191906000526020600020905b81548152906001019060200180831161050757509395945050505050565b600033610533818585610aa2565b5060019392505050565b60003361054b858285610bc9565b61057885858560405180602001604052806000815250604051806020016040528060008152506000610c55565b506001949350505050565b60008281526009602052604090206001015461059e81610d51565b6105a88383610d5e565b505050565b6001600160a01b03811633146106225760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b61062c8282610de4565b5050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661065a81610d51565b6105a883836040518060200160405280600081525060405180602001604052806000815250610e4b565b61068e3386610892565b6106aa5760405162461bcd60e51b815260040161061990611c24565b6106b985858585856001610c55565b5050505050565b60009182526009602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6001600160a01b038116330361074f5760405162461bcd60e51b8152602060048201526024808201527f4552433737373a20617574686f72697a696e672073656c66206173206f70657260448201526330ba37b960e11b6064820152608401610619565b6001600160a01b03811660009081526005602052604090205460ff16156107a0573360009081526007602090815260408083206001600160a01b03851684529091529020805460ff191690556107cf565b3360009081526006602090815260408083206001600160a01b03851684529091529020805460ff191660011790555b60405133906001600160a01b038316907ff4caeb2d6ca8932a215a353d0703c326ec2d81fc68170f320eb2ab49e9df61f990600090a350565b6060600380546104ab90611bea565b6105a833848484604051806020016040528060008152506001610c55565b600061086433848460405180602001604052806000815250604051806020016040528060008152506000610c55565b50600192915050565b60008281526009602052604090206001015461088881610d51565b6105a88383610de4565b6000816001600160a01b0316836001600160a01b031614806108fd57506001600160a01b03831660009081526005602052604090205460ff1680156108fd57506001600160a01b0380831660009081526007602090815260408083209387168352929052205460ff16155b8061092d57506001600160a01b0380831660009081526006602090815260408083209387168352929052205460ff165b9392505050565b336001600160a01b038216036109965760405162461bcd60e51b815260206004820152602160248201527f4552433737373a207265766f6b696e672073656c66206173206f70657261746f6044820152603960f91b6064820152608401610619565b6001600160a01b03811660009081526005602052604090205460ff16156109ea573360009081526007602090815260408083206001600160a01b03851684529091529020805460ff19166001179055610a16565b3360009081526006602090815260408083206001600160a01b03851684529091529020805460ff191690555b60405133906001600160a01b038316907f50546e66e5f44d728365dc3908c63bc5cfeeab470722c1677e3073a6ac294aa190600090a350565b610a593385610892565b610a755760405162461bcd60e51b815260040161061990611c24565b610a8184848484610e59565b50505050565b61062c33838360405180602001604052806000815250610e59565b6001600160a01b038316610b065760405162461bcd60e51b815260206004820152602560248201527f4552433737373a20617070726f76652066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610619565b6001600160a01b038216610b685760405162461bcd60e51b815260206004820152602360248201527f4552433737373a20617070726f766520746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610619565b6001600160a01b0383811660008181526008602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038381166000908152600860209081526040808320938616835292905220546000198114610a815781811015610c485760405162461bcd60e51b815260206004820152601e60248201527f4552433737373a20696e73756666696369656e7420616c6c6f77616e636500006044820152606401610619565b610a818484848403610aa2565b6001600160a01b038616610cba5760405162461bcd60e51b815260206004820152602660248201527f4552433737373a207472616e736665722066726f6d20746865207a65726f206160448201526564647265737360d01b6064820152608401610619565b6001600160a01b038516610d1c5760405162461bcd60e51b8152602060048201526024808201527f4552433737373a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610619565b33610d2b81888888888861100e565b610d39818888888888611135565b610d488188888888888861129b565b50505050505050565b610d5b8133611460565b50565b610d6882826106c0565b61062c5760008281526009602090815260408083206001600160a01b03851684529091529020805460ff19166001179055610da03390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b610dee82826106c0565b1561062c5760008281526009602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b610a818484848460016114b9565b6001600160a01b038416610eba5760405162461bcd60e51b815260206004820152602260248201527f4552433737373a206275726e2066726f6d20746865207a65726f206164647265604482015261737360f01b6064820152608401610619565b33610eca8186600087878761100e565b6001600160a01b03851660009081526020819052604090205484811015610f3f5760405162461bcd60e51b815260206004820152602360248201527f4552433737373a206275726e20616d6f756e7420657863656564732062616c616044820152626e636560e81b6064820152608401610619565b6001600160a01b0386166000908152602081905260408120868303905560018054879290610f6e908490611c86565b92505081905550856001600160a01b0316826001600160a01b03167fa78a9be3a7b862d26933ad85fb11d80ef66b8f972d7cbba06621d583943a4098878787604051610fbc93929190611c99565b60405180910390a36040518581526000906001600160a01b038816907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020015b60405180910390a3505050505050565b60405163555ddc6560e11b81526001600160a01b03861660048201527f29ddb589b1fb5fc7cf394961c1adf5f8c6454761adf795e67fe149f658abe8956024820152600090731820a4b7618bde71dce8cdc73aab6c95905fad249063aabbb8ca90604401602060405180830381865afa15801561108f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110b39190611cce565b90506001600160a01b03811615610d4857604051633ad5cbc160e11b81526001600160a01b038216906375ab9782906110fa908a908a908a908a908a908a90600401611ceb565b600060405180830381600087803b15801561111457600080fd5b505af1158015611128573d6000803e3d6000fd5b5050505050505050505050565b6001600160a01b038516600090815260208190526040902054838110156111ae5760405162461bcd60e51b815260206004820152602760248201527f4552433737373a207472616e7366657220616d6f756e7420657863656564732060448201526662616c616e636560c81b6064820152608401610619565b6001600160a01b038087166000908152602081905260408082208785039055918716815290812080548692906111e5908490611d45565b92505081905550846001600160a01b0316866001600160a01b0316886001600160a01b03167f06b541ddaa720db2b10a4d0cdac39b8d360425fc073085fac19bc8261467798787878760405161123d93929190611c99565b60405180910390a4846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8660405161128a91815260200190565b60405180910390a350505050505050565b60405163555ddc6560e11b81526001600160a01b03861660048201527fb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b6024820152600090731820a4b7618bde71dce8cdc73aab6c95905fad249063aabbb8ca90604401602060405180830381865afa15801561131c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113409190611cce565b90506001600160a01b038116156113bc576040516223de2960e01b81526001600160a01b038216906223de2990611385908b908b908b908b908b908b90600401611ceb565b600060405180830381600087803b15801561139f57600080fd5b505af11580156113b3573d6000803e3d6000fd5b50505050611456565b8115611456576001600160a01b0386163b156114565760405162461bcd60e51b815260206004820152604d60248201527f4552433737373a20746f6b656e20726563697069656e7420636f6e747261637460448201527f20686173206e6f20696d706c656d656e74657220666f7220455243373737546f60648201526c1ad95b9cd49958da5c1a595b9d609a1b608482015260a401610619565b5050505050505050565b61146a82826106c0565b61062c57611477816115f6565b611482836020611608565b604051602001611493929190611d58565b60408051601f198184030181529082905262461bcd60e51b82526106199160040161186b565b6001600160a01b03851661150f5760405162461bcd60e51b815260206004820181905260248201527f4552433737373a206d696e7420746f20746865207a65726f20616464726573736044820152606401610619565b600033905084600160008282546115269190611d45565b90915550506001600160a01b03861660009081526020819052604081208054879290611553908490611d45565b909155506115699050816000888888888861129b565b856001600160a01b0316816001600160a01b03167f2fe5be0146f74c5bce36c0b80911af6c7d86ff27e89d5cfa61fc681327954e5d8787876040516115b093929190611c99565b60405180910390a36040518581526001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610ffe565b60606104346001600160a01b03831660145b60606000611617836002611dcd565b611622906002611d45565b67ffffffffffffffff81111561163a5761163a611949565b6040519080825280601f01601f191660200182016040528015611664576020820181803683370190505b509050600360fc1b8160008151811061167f5761167f611de4565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106116ae576116ae611de4565b60200101906001600160f81b031916908160001a90535060006116d2846002611dcd565b6116dd906001611d45565b90505b6001811115611755576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061171157611711611de4565b1a60f81b82828151811061172757611727611de4565b60200101906001600160f81b031916908160001a90535060049490941c9361174e81611dfa565b90506116e0565b50831561092d5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610619565b6000602082840312156117b657600080fd5b81356001600160e01b03198116811461092d57600080fd5b6020808252825182820181905260009190848201906040850190845b8181101561180f5783516001600160a01b0316835292840192918401916001016117ea565b50909695505050505050565b60005b8381101561183657818101518382015260200161181e565b50506000910152565b6000815180845261185781602086016020860161181b565b601f01601f19169290920160200192915050565b60208152600061092d602083018461183f565b6001600160a01b0381168114610d5b57600080fd5b600080604083850312156118a657600080fd5b82356118b18161187e565b946020939093013593505050565b6000806000606084860312156118d457600080fd5b83356118df8161187e565b925060208401356118ef8161187e565b929592945050506040919091013590565b60006020828403121561191257600080fd5b5035919050565b6000806040838503121561192c57600080fd5b82359150602083013561193e8161187e565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261197057600080fd5b813567ffffffffffffffff8082111561198b5761198b611949565b604051601f8301601f19908116603f011681019082821181831017156119b3576119b3611949565b816040528381528660208588010111156119cc57600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600080600060a08688031215611a0457600080fd5b8535611a0f8161187e565b94506020860135611a1f8161187e565b935060408601359250606086013567ffffffffffffffff80821115611a4357600080fd5b611a4f89838a0161195f565b93506080880135915080821115611a6557600080fd5b50611a728882890161195f565b9150509295509295909350565b600060208284031215611a9157600080fd5b813561092d8161187e565b600080600060608486031215611ab157600080fd5b8335611abc8161187e565b925060208401359150604084013567ffffffffffffffff811115611adf57600080fd5b611aeb8682870161195f565b9150509250925092565b60008060408385031215611b0857600080fd5b8235611b138161187e565b9150602083013561193e8161187e565b60008060008060808587031215611b3957600080fd5b8435611b448161187e565b935060208501359250604085013567ffffffffffffffff80821115611b6857600080fd5b611b748883890161195f565b93506060870135915080821115611b8a57600080fd5b50611b978782880161195f565b91505092959194509250565b60008060408385031215611bb657600080fd5b82359150602083013567ffffffffffffffff811115611bd457600080fd5b611be08582860161195f565b9150509250929050565b600181811c90821680611bfe57607f821691505b602082108103611c1e57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602c908201527f4552433737373a2063616c6c6572206973206e6f7420616e206f70657261746f60408201526b39103337b9103437b63232b960a11b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b8181038181111561043457610434611c70565b838152606060208201526000611cb2606083018561183f565b8281036040840152611cc4818561183f565b9695505050505050565b600060208284031215611ce057600080fd5b815161092d8161187e565b6001600160a01b0387811682528681166020830152851660408201526060810184905260c060808201819052600090611d269083018561183f565b82810360a0840152611d38818561183f565b9998505050505050505050565b8082018082111561043457610434611c70565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351611d9081601785016020880161181b565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351611dc181602884016020880161181b565b01602801949350505050565b808202811582820484141761043457610434611c70565b634e487b7160e01b600052603260045260246000fd5b600081611e0957611e09611c70565b50600019019056fea2646970667358221220ee794cbba283404b251323203972979804c9e0beb9087cfa38855a5cf59e210564736f6c63430008130033
Deployed Bytecode Sourcemap
112:511:13:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2571:202:0;;;;;;:::i;:::-;;:::i;:::-;;;470:14:15;;463:22;445:41;;433:2;418:18;2571:202:0;;;;;;;;6477:130:4;;;:::i;:::-;;;;;;;:::i;2931:98::-;;;:::i;:::-;;;;;;;:::i;8235:197::-;;;;;;:::i;:::-;;:::i;3724:123::-;3828:12;;3724:123;;;2518:25:15;;;2506:2;2491:18;3724:123:4;2372:177:15;8914:317:4;;;;;;:::i;:::-;;:::i;4343:129:0:-;;;;;;:::i;:::-;4417:7;4443:12;;;:6;:12;;;;;:22;;;;4343:129;4768:145;;;;;;:::i;:::-;;:::i;:::-;;3371:82:4;;;3444:2;3844:36:15;;3832:2;3817:18;3371:82:4;3702:184:15;5877:214:0;;;;;;:::i;:::-;;:::i;517:104:13:-;;;;;;:::i;:::-;;:::i;3568:95:4:-;3655:1;3568:95;;6726:366;;;;;;:::i;:::-;;:::i;3947:150::-;;;;;;:::i;:::-;-1:-1:-1;;;;;4068:22:4;4042:7;4068:22;;;;;;;;;;;;3947:150;2860:145:0;;;;;;:::i;:::-;;:::i;5532:412:4:-;;;;;;:::i;:::-;;:::i;3085:102::-;;;:::i;4227:193::-;;;;;;:::i;:::-;;:::i;1992:49:0:-;;2037:4;1992:49;;4651:183:4;;;;;;:::i;:::-;;:::i;153:62:13:-;;191:24;153:62;;5193:147:0;;;;;;:::i;:::-;;:::i;5154:311:4:-;;;;;;:::i;:::-;;:::i;7777:151::-;;;;;;:::i;:::-;-1:-1:-1;;;;;7893:19:4;;;7867:7;7893:19;;;:11;:19;;;;;;;;:28;;;;;;;;;;;;;7777:151;6008:403;;;;;;:::i;:::-;;:::i;7213:325::-;;;;;;:::i;:::-;;:::i;4964:127::-;;;;;;:::i;:::-;;:::i;2571:202:0:-;2656:4;-1:-1:-1;;;;;;2679:47:0;;-1:-1:-1;;;2679:47:0;;:87;;-1:-1:-1;;;;;;;;;;937:40:3;;;2730:36:0;2672:94;2571:202;-1:-1:-1;;2571:202:0:o;6477:130:4:-;6543:16;6578:22;6571:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;6571:29:4;;;;;;;;;;;;;;;;;;;;;;;6477:130;:::o;2931:98::-;2985:13;3017:5;3010:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3010:12:4;;2931:98;-1:-1:-1;;;;;2931:98:4:o;8235:197::-;8317:4;719:10:2;8372:32:4;719:10:2;8389:7:4;8398:5;8372:8;:32::i;:::-;-1:-1:-1;8421:4:4;;8235:197;-1:-1:-1;;;8235:197:4:o;8914:317::-;9050:4;719:10:2;9106:40:4;9122:6;719:10:2;9139:6:4;9106:15;:40::i;:::-;9156:47;9162:6;9170:9;9181:6;9156:47;;;;;;;;;;;;;;;;;;;;;;;;9197:5;9156;:47::i;:::-;-1:-1:-1;9220:4:4;;8914:317;-1:-1:-1;;;;8914:317:4:o;4768:145:0:-;4417:7;4443:12;;;:6;:12;;;;;:22;;;2470:16;2481:4;2470:10;:16::i;:::-;4881:25:::1;4892:4;4898:7;4881:10;:25::i;:::-;4768:145:::0;;;:::o;5877:214::-;-1:-1:-1;;;;;5972:23:0;;719:10:2;5972:23:0;5964:83;;;;-1:-1:-1;;;5964:83:0;;8537:2:15;5964:83:0;;;8519:21:15;8576:2;8556:18;;;8549:30;8615:34;8595:18;;;8588:62;-1:-1:-1;;;8666:18:15;;;8659:45;8721:19;;5964:83:0;;;;;;;;;6058:26;6070:4;6076:7;6058:11;:26::i;:::-;5877:214;;:::o;517:104:13:-;191:24;2470:16:0;2481:4;2470:10;:16::i;:::-;592:25:13::1;598:2;602:6;592:25;;;;;;;;;;;::::0;::::1;;;;;;;;;;;::::0;:5:::1;:25::i;6726:366:4:-:0;6933:35;719:10:2;6961:6:4;6933:13;:35::i;:::-;6925:92;;;;-1:-1:-1;;;6925:92:4;;;;;;;:::i;:::-;7027:58;7033:6;7041:9;7052:6;7060:4;7066:12;7080:4;7027:5;:58::i;:::-;6726:366;;;;;:::o;2860:145:0:-;2946:4;2969:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;2969:29:0;;;;;;;;;;;;;;;2860:145::o;5532:412:4:-;-1:-1:-1;;;;;5619:24:4;;719:10:2;5619:24:4;5611:73;;;;-1:-1:-1;;;5611:73:4;;9366:2:15;5611:73:4;;;9348:21:15;9405:2;9385:18;;;9378:30;9444:34;9424:18;;;9417:62;-1:-1:-1;;;9495:18:15;;;9488:34;9539:19;;5611:73:4;9164:400:15;5611:73:4;-1:-1:-1;;;;;5699:27:4;;;;;;:17;:27;;;;;;;;5695:185;;;719:10:2;5749:38:4;;;;:24;:38;;;;;;;;-1:-1:-1;;;;;5749:48:4;;;;;;;;;5742:55;;-1:-1:-1;;5742:55:4;;;5695:185;;;719:10:2;5828:24:4;;;;:10;:24;;;;;;;;-1:-1:-1;;;;;5828:34:4;;;;;;;;;:41;;-1:-1:-1;;5828:41:4;5865:4;5828:41;;;5695:185;5895:42;;719:10:2;;-1:-1:-1;;;;;5895:42:4;;;;;;;;5532:412;:::o;3085:102::-;3141:13;3173:7;3166:14;;;;;:::i;4227:193::-;4359:54;719:10:2;4379:9:4;4390:6;4398:4;4359:54;;;;;;;;;;;;4408:4;4359:5;:54::i;4651:183::-;4737:4;4753:53;719:10:2;4773:9:4;4784:6;4753:53;;;;;;;;;;;;;;;;;;;;;;;;4800:5;4753;:53::i;:::-;-1:-1:-1;4823:4:4;4651:183;;;;:::o;5193:147:0:-;4417:7;4443:12;;;:6;:12;;;;;:22;;;2470:16;2481:4;2470:10;:16::i;:::-;5307:26:::1;5319:4;5325:7;5307:11;:26::i;5154:311:4:-:0;5254:4;5301:11;-1:-1:-1;;;;;5289:23:4;:8;-1:-1:-1;;;;;5289:23:4;;:120;;;-1:-1:-1;;;;;;5329:27:4;;;;;;:17;:27;;;;;;;;:79;;;;-1:-1:-1;;;;;;5361:37:4;;;;;;;:24;:37;;;;;;;;:47;;;;;;;;;;;;5360:48;5329:79;5289:169;;;-1:-1:-1;;;;;;5425:23:4;;;;;;;:10;:23;;;;;;;;:33;;;;;;;;;;;;5289:169;5270:188;5154:311;-1:-1:-1;;;5154:311:4:o;6008:403::-;719:10:2;-1:-1:-1;;;;;6092:24:4;;;6084:70;;;;-1:-1:-1;;;6084:70:4;;9771:2:15;6084:70:4;;;9753:21:15;9810:2;9790:18;;;9783:30;9849:34;9829:18;;;9822:62;-1:-1:-1;;;9900:18:15;;;9893:31;9941:19;;6084:70:4;9569:397:15;6084:70:4;-1:-1:-1;;;;;6169:27:4;;;;;;:17;:27;;;;;;;;6165:185;;;719:10:2;6212:38:4;;;;:24;:38;;;;;;;;-1:-1:-1;;;;;6212:48:4;;;;;;;;;:55;;-1:-1:-1;;6212:55:4;6263:4;6212:55;;;6165:185;;;719:10:2;6305:24:4;;;;:10;:24;;;;;;;;-1:-1:-1;;;;;6305:34:4;;;;;;;;;6298:41;;-1:-1:-1;;6298:41:4;;;6165:185;6365:39;;719:10:2;;-1:-1:-1;;;;;6365:39:4;;;;;;;;6008:403;:::o;7213:325::-;7394:36;719:10:2;7422:7:4;7394:13;:36::i;:::-;7386:93;;;;-1:-1:-1;;;7386:93:4;;;;;;;:::i;:::-;7489:42;7495:7;7504:6;7512:4;7518:12;7489:5;:42::i;:::-;7213:325;;;;:::o;4964:127::-;5047:37;719:10:2;5067:6:4;5075:4;5047:37;;;;;;;;;;;;:5;:37::i;14421:373::-;-1:-1:-1;;;;;14552:20:4;;14544:70;;;;-1:-1:-1;;;14544:70:4;;10173:2:15;14544:70:4;;;10155:21:15;10212:2;10192:18;;;10185:30;10251:34;10231:18;;;10224:62;-1:-1:-1;;;10302:18:15;;;10295:35;10347:19;;14544:70:4;9971:401:15;14544:70:4;-1:-1:-1;;;;;14632:21:4;;14624:69;;;;-1:-1:-1;;;14624:69:4;;10579:2:15;14624:69:4;;;10561:21:15;10618:2;10598:18;;;10591:30;10657:34;10637:18;;;10630:62;-1:-1:-1;;;10708:18:15;;;10701:33;10751:19;;14624:69:4;10377:399:15;14624:69:4;-1:-1:-1;;;;;14704:19:4;;;;;;;:11;:19;;;;;;;;:28;;;;;;;;;;;;;:36;;;14755:32;;2518:25:15;;;14755:32:4;;2491:18:15;14755:32:4;;;;;;;14421:373;;;:::o;17392:442::-;-1:-1:-1;;;;;7893:19:4;;;17522:24;7893:19;;;:11;:19;;;;;;;;:28;;;;;;;;;;-1:-1:-1;;17588:37:4;;17584:244;;17669:6;17649:16;:26;;17641:69;;;;-1:-1:-1;;;17641:69:4;;10983:2:15;17641:69:4;;;10965:21:15;11022:2;11002:18;;;10995:30;11061:32;11041:18;;;11034:60;11111:18;;17641:69:4;10781:354:15;17641:69:4;17752:51;17761:5;17768:7;17796:6;17777:16;:25;17752:8;:51::i;11892:658::-;-1:-1:-1;;;;;12114:18:4;;12106:69;;;;-1:-1:-1;;;12106:69:4;;11342:2:15;12106:69:4;;;11324:21:15;11381:2;11361:18;;;11354:30;11420:34;11400:18;;;11393:62;-1:-1:-1;;;11471:18:15;;;11464:36;11517:19;;12106:69:4;11140:402:15;12106:69:4;-1:-1:-1;;;;;12193:16:4;;12185:65;;;;-1:-1:-1;;;12185:65:4;;11749:2:15;12185:65:4;;;11731:21:15;11788:2;11768:18;;;11761:30;11827:34;11807:18;;;11800:62;-1:-1:-1;;;11878:18:15;;;11871:34;11922:19;;12185:65:4;11547:400:15;12185:65:4;719:10:2;12303:69:4;719:10:2;12331:4:4;12337:2;12341:6;12349:8;12359:12;12303:17;:69::i;:::-;12383:57;12389:8;12399:4;12405:2;12409:6;12417:8;12427:12;12383:5;:57::i;:::-;12451:92;12471:8;12481:4;12487:2;12491:6;12499:8;12509:12;12523:19;12451;:92::i;:::-;12096:454;11892:658;;;;;;:::o;3299:103:0:-;3365:30;3376:4;719:10:2;3365::0;:30::i;:::-;3299:103;:::o;7426:233::-;7509:22;7517:4;7523:7;7509;:22::i;:::-;7504:149;;7547:12;;;;:6;:12;;;;;;;;-1:-1:-1;;;;;7547:29:0;;;;;;;;;:36;;-1:-1:-1;;7547:36:0;7579:4;7547:36;;;7629:12;719:10:2;;640:96;7629:12:0;-1:-1:-1;;;;;7602:40:0;7620:7;-1:-1:-1;;;;;7602:40:0;7614:4;7602:40;;;;;;;;;;7426:233;;:::o;7830:234::-;7913:22;7921:4;7927:7;7913;:22::i;:::-;7909:149;;;7983:5;7951:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;7951:29:0;;;;;;;;;;:37;;-1:-1:-1;;7951:37:0;;;8007:40;719:10:2;;7951:12:0;;8007:40;;7983:5;8007:40;7830:234;;:::o;9846:222:4:-;10009:52;10015:7;10024:6;10032:8;10042:12;10056:4;10009:5;:52::i;12855:811::-;-1:-1:-1;;;;;13019:18:4;;13011:65;;;;-1:-1:-1;;;13011:65:4;;12154:2:15;13011:65:4;;;12136:21:15;12193:2;12173:18;;;12166:30;12232:34;12212:18;;;12205:62;-1:-1:-1;;;12283:18:15;;;12276:32;12325:19;;13011:65:4;11952:398:15;13011:65:4;719:10:2;13129:73:4;719:10:2;13157:4:4;13087:16;13175:6;13183:4;13189:12;13129:17;:73::i;:::-;-1:-1:-1;;;;;13336:15:4;;13314:19;13336:15;;;;;;;;;;;13369:21;;;;13361:69;;;;-1:-1:-1;;;13361:69:4;;12557:2:15;13361:69:4;;;12539:21:15;12596:2;12576:18;;;12569:30;12635:34;12615:18;;;12608:62;-1:-1:-1;;;12686:18:15;;;12679:33;12729:19;;13361:69:4;12355:399:15;13361:69:4;-1:-1:-1;;;;;13464:15:4;;:9;:15;;;;;;;;;;13482:20;;;13464:38;;13522:12;:22;;13496:6;;13464:9;13522:22;;13496:6;;13522:22;:::i;:::-;;;;;;;;13577:4;-1:-1:-1;;;;;13560:50:4;13567:8;-1:-1:-1;;;;;13560:50:4;;13583:6;13591:4;13597:12;13560:50;;;;;;;;:::i;:::-;;;;;;;;13625:34;;2518:25:15;;;13648:1:4;;-1:-1:-1;;;;;13625:34:4;;;;;2506:2:15;2491:18;13625:34:4;;;;;;;;13001:665;;12855:811;;;;:::o;15267:472::-;15498:78;;-1:-1:-1;;;15498:78:4;;-1:-1:-1;;;;;13671:32:15;;15498:78:4;;;13653:51:15;1440:31:4;13720:18:15;;;13713:34;15476:19:4;;1191:42;;15498:41;;13626:18:15;;15498:78:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;15476:100;-1:-1:-1;;;;;;15590:25:4;;;15586:147;;15631:91;;-1:-1:-1;;;15631:91:4;;-1:-1:-1;;;;;15631:39:4;;;;;:91;;15671:8;;15681:4;;15687:2;;15691:6;;15699:8;;15709:12;;15631:91;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15466:273;15267:472;;;;;;:::o;13672:611::-;-1:-1:-1;;;;;13950:15:4;;13928:19;13950:15;;;;;;;;;;;13983:21;;;;13975:73;;;;-1:-1:-1;;;13975:73:4;;14953:2:15;13975:73:4;;;14935:21:15;14992:2;14972:18;;;14965:30;15031:34;15011:18;;;15004:62;-1:-1:-1;;;15082:18:15;;;15075:37;15129:19;;13975:73:4;14751:403:15;13975:73:4;-1:-1:-1;;;;;14082:15:4;;;:9;:15;;;;;;;;;;;14100:20;;;14082:38;;14140:13;;;;;;;;:23;;14114:6;;14082:9;14140:23;;14114:6;;14140:23;:::i;:::-;;;;;;;;14200:2;-1:-1:-1;;;;;14179:56:4;14194:4;-1:-1:-1;;;;;14179:56:4;14184:8;-1:-1:-1;;;;;14179:56:4;;14204:6;14212:8;14222:12;14179:56;;;;;;;;:::i;:::-;;;;;;;;14265:2;-1:-1:-1;;;;;14250:26:4;14259:4;-1:-1:-1;;;;;14250:26:4;;14269:6;14250:26;;;;2518:25:15;;2506:2;2491:18;;2372:177;14250:26:4;;;;;;;;13859:424;13672:611;;;;;;:::o;16428:676::-;16695:79;;-1:-1:-1;;;16695:79:4;;-1:-1:-1;;;;;13671:32:15;;16695:79:4;;;13653:51:15;1537:34:4;13720:18:15;;;13713:34;16673:19:4;;1191:42;;16695:41;;13626:18:15;;16695:79:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;16673:101;-1:-1:-1;;;;;;16788:25:4;;;16784:314;;16829:96;;-1:-1:-1;;;16829:96:4;;-1:-1:-1;;;;;16829:44:4;;;;;:96;;16874:8;;16884:4;;16890:2;;16894:6;;16902:8;;16912:12;;16829:96;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16784:314;;;16946:19;16942:156;;;-1:-1:-1;;;;;16990:13:4;;1465:19:1;:23;16981:106:4;;;;-1:-1:-1;;;16981:106:4;;15491:2:15;16981:106:4;;;15473:21:15;15530:2;15510:18;;;15503:30;15569:34;15549:18;;;15542:62;15640:34;15620:18;;;15613:62;-1:-1:-1;;;15691:19:15;;;15684:44;15745:19;;16981:106:4;15289:481:15;16981:106:4;16663:441;16428:676;;;;;;;:::o;3683:479:0:-;3771:22;3779:4;3785:7;3771;:22::i;:::-;3766:390;;3954:28;3974:7;3954:19;:28::i;:::-;4053:38;4081:4;4088:2;4053:19;:38::i;:::-;3861:252;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;3861:252:0;;;;;;;;;;-1:-1:-1;;;3809:336:0;;;;;;;:::i;10690:726:4:-;-1:-1:-1;;;;;10895:21:4;;10887:66;;;;-1:-1:-1;;;10887:66:4;;16794:2:15;10887:66:4;;;16776:21:15;;;16813:18;;;16806:30;16872:34;16852:18;;;16845:62;16924:18;;10887:66:4;16592:356:15;10887:66:4;10964:16;719:10:2;10964:31:4;;11126:6;11110:12;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;11142:18:4;;:9;:18;;;;;;;;;;:28;;11164:6;;11142:9;:28;;11164:6;;11142:28;:::i;:::-;;;;-1:-1:-1;11181:103:4;;-1:-1:-1;11201:8:4;11219:1;11223:7;11232:6;11240:8;11250:12;11264:19;11181;:103::i;:::-;11317:7;-1:-1:-1;;;;;11300:57:4;11307:8;-1:-1:-1;;;;;11300:57:4;;11326:6;11334:8;11344:12;11300:57;;;;;;;;:::i;:::-;;;;;;;;11372:37;;2518:25:15;;;-1:-1:-1;;;;;11372:37:4;;;11389:1;;11372:37;;2506:2:15;2491:18;11372:37:4;2372:177:15;2097:149:14;2155:13;2187:52;-1:-1:-1;;;;;2199:22:14;;306:2;1508:437;1583:13;1608:19;1640:10;1644:6;1640:1;:10;:::i;:::-;:14;;1653:1;1640:14;:::i;:::-;1630:25;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1630:25:14;;1608:47;;-1:-1:-1;;;1665:6:14;1672:1;1665:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;1665:15:14;;;;;;;;;-1:-1:-1;;;1690:6:14;1697:1;1690:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;1690:15:14;;;;;;;;-1:-1:-1;1720:9:14;1732:10;1736:6;1732:1;:10;:::i;:::-;:14;;1745:1;1732:14;:::i;:::-;1720:26;;1715:128;1752:1;1748;:5;1715:128;;;-1:-1:-1;;;1795:5:14;1803:3;1795:11;1786:21;;;;;;;:::i;:::-;;;;1774:6;1781:1;1774:9;;;;;;;;:::i;:::-;;;;:33;-1:-1:-1;;;;;1774:33:14;;;;;;;;-1:-1:-1;1831:1:14;1821:11;;;;;1755:3;;;:::i;:::-;;;1715:128;;;-1:-1:-1;1860:10:14;;1852:55;;;;-1:-1:-1;;;1852:55:14;;17601:2:15;1852:55:14;;;17583:21:15;;;17620:18;;;17613:30;17679:34;17659:18;;;17652:62;17731:18;;1852:55:14;17399:356:15;14:286;72:6;125:2;113:9;104:7;100:23;96:32;93:52;;;141:1;138;131:12;93:52;167:23;;-1:-1:-1;;;;;;219:32:15;;209:43;;199:71;;266:1;263;256:12;497:658;668:2;720:21;;;790:13;;693:18;;;812:22;;;639:4;;668:2;891:15;;;;865:2;850:18;;;639:4;934:195;948:6;945:1;942:13;934:195;;;1013:13;;-1:-1:-1;;;;;1009:39:15;997:52;;1104:15;;;;1069:12;;;;1045:1;963:9;934:195;;;-1:-1:-1;1146:3:15;;497:658;-1:-1:-1;;;;;;497:658:15:o;1160:250::-;1245:1;1255:113;1269:6;1266:1;1263:13;1255:113;;;1345:11;;;1339:18;1326:11;;;1319:39;1291:2;1284:10;1255:113;;;-1:-1:-1;;1402:1:15;1384:16;;1377:27;1160:250::o;1415:271::-;1457:3;1495:5;1489:12;1522:6;1517:3;1510:19;1538:76;1607:6;1600:4;1595:3;1591:14;1584:4;1577:5;1573:16;1538:76;:::i;:::-;1668:2;1647:15;-1:-1:-1;;1643:29:15;1634:39;;;;1675:4;1630:50;;1415:271;-1:-1:-1;;1415:271:15:o;1691:220::-;1840:2;1829:9;1822:21;1803:4;1860:45;1901:2;1890:9;1886:18;1878:6;1860:45;:::i;1916:131::-;-1:-1:-1;;;;;1991:31:15;;1981:42;;1971:70;;2037:1;2034;2027:12;2052:315;2120:6;2128;2181:2;2169:9;2160:7;2156:23;2152:32;2149:52;;;2197:1;2194;2187:12;2149:52;2236:9;2223:23;2255:31;2280:5;2255:31;:::i;:::-;2305:5;2357:2;2342:18;;;;2329:32;;-1:-1:-1;;;2052:315:15:o;2554:456::-;2631:6;2639;2647;2700:2;2688:9;2679:7;2675:23;2671:32;2668:52;;;2716:1;2713;2706:12;2668:52;2755:9;2742:23;2774:31;2799:5;2774:31;:::i;:::-;2824:5;-1:-1:-1;2881:2:15;2866:18;;2853:32;2894:33;2853:32;2894:33;:::i;:::-;2554:456;;2946:7;;-1:-1:-1;;;3000:2:15;2985:18;;;;2972:32;;2554:456::o;3015:180::-;3074:6;3127:2;3115:9;3106:7;3102:23;3098:32;3095:52;;;3143:1;3140;3133:12;3095:52;-1:-1:-1;3166:23:15;;3015:180;-1:-1:-1;3015:180:15:o;3382:315::-;3450:6;3458;3511:2;3499:9;3490:7;3486:23;3482:32;3479:52;;;3527:1;3524;3517:12;3479:52;3563:9;3550:23;3540:33;;3623:2;3612:9;3608:18;3595:32;3636:31;3661:5;3636:31;:::i;:::-;3686:5;3676:15;;;3382:315;;;;;:::o;3891:127::-;3952:10;3947:3;3943:20;3940:1;3933:31;3983:4;3980:1;3973:15;4007:4;4004:1;3997:15;4023:718;4065:5;4118:3;4111:4;4103:6;4099:17;4095:27;4085:55;;4136:1;4133;4126:12;4085:55;4172:6;4159:20;4198:18;4235:2;4231;4228:10;4225:36;;;4241:18;;:::i;:::-;4316:2;4310:9;4284:2;4370:13;;-1:-1:-1;;4366:22:15;;;4390:2;4362:31;4358:40;4346:53;;;4414:18;;;4434:22;;;4411:46;4408:72;;;4460:18;;:::i;:::-;4500:10;4496:2;4489:22;4535:2;4527:6;4520:18;4581:3;4574:4;4569:2;4561:6;4557:15;4553:26;4550:35;4547:55;;;4598:1;4595;4588:12;4547:55;4662:2;4655:4;4647:6;4643:17;4636:4;4628:6;4624:17;4611:54;4709:1;4702:4;4697:2;4689:6;4685:15;4681:26;4674:37;4729:6;4720:15;;;;;;4023:718;;;;:::o;4746:885::-;4859:6;4867;4875;4883;4891;4944:3;4932:9;4923:7;4919:23;4915:33;4912:53;;;4961:1;4958;4951:12;4912:53;5000:9;4987:23;5019:31;5044:5;5019:31;:::i;:::-;5069:5;-1:-1:-1;5126:2:15;5111:18;;5098:32;5139:33;5098:32;5139:33;:::i;:::-;5191:7;-1:-1:-1;5245:2:15;5230:18;;5217:32;;-1:-1:-1;5300:2:15;5285:18;;5272:32;5323:18;5353:14;;;5350:34;;;5380:1;5377;5370:12;5350:34;5403:49;5444:7;5435:6;5424:9;5420:22;5403:49;:::i;:::-;5393:59;;5505:3;5494:9;5490:19;5477:33;5461:49;;5535:2;5525:8;5522:16;5519:36;;;5551:1;5548;5541:12;5519:36;;5574:51;5617:7;5606:8;5595:9;5591:24;5574:51;:::i;:::-;5564:61;;;4746:885;;;;;;;;:::o;5636:247::-;5695:6;5748:2;5736:9;5727:7;5723:23;5719:32;5716:52;;;5764:1;5761;5754:12;5716:52;5803:9;5790:23;5822:31;5847:5;5822:31;:::i;5888:523::-;5974:6;5982;5990;6043:2;6031:9;6022:7;6018:23;6014:32;6011:52;;;6059:1;6056;6049:12;6011:52;6098:9;6085:23;6117:31;6142:5;6117:31;:::i;:::-;6167:5;-1:-1:-1;6219:2:15;6204:18;;6191:32;;-1:-1:-1;6274:2:15;6259:18;;6246:32;6301:18;6290:30;;6287:50;;;6333:1;6330;6323:12;6287:50;6356:49;6397:7;6388:6;6377:9;6373:22;6356:49;:::i;:::-;6346:59;;;5888:523;;;;;:::o;6416:388::-;6484:6;6492;6545:2;6533:9;6524:7;6520:23;6516:32;6513:52;;;6561:1;6558;6551:12;6513:52;6600:9;6587:23;6619:31;6644:5;6619:31;:::i;:::-;6669:5;-1:-1:-1;6726:2:15;6711:18;;6698:32;6739:33;6698:32;6739:33;:::i;6809:743::-;6913:6;6921;6929;6937;6990:3;6978:9;6969:7;6965:23;6961:33;6958:53;;;7007:1;7004;6997:12;6958:53;7046:9;7033:23;7065:31;7090:5;7065:31;:::i;:::-;7115:5;-1:-1:-1;7167:2:15;7152:18;;7139:32;;-1:-1:-1;7222:2:15;7207:18;;7194:32;7245:18;7275:14;;;7272:34;;;7302:1;7299;7292:12;7272:34;7325:49;7366:7;7357:6;7346:9;7342:22;7325:49;:::i;:::-;7315:59;;7427:2;7416:9;7412:18;7399:32;7383:48;;7456:2;7446:8;7443:16;7440:36;;;7472:1;7469;7462:12;7440:36;;7495:51;7538:7;7527:8;7516:9;7512:24;7495:51;:::i;:::-;7485:61;;;6809:743;;;;;;;:::o;7557:388::-;7634:6;7642;7695:2;7683:9;7674:7;7670:23;7666:32;7663:52;;;7711:1;7708;7701:12;7663:52;7747:9;7734:23;7724:33;;7808:2;7797:9;7793:18;7780:32;7835:18;7827:6;7824:30;7821:50;;;7867:1;7864;7857:12;7821:50;7890:49;7931:7;7922:6;7911:9;7907:22;7890:49;:::i;:::-;7880:59;;;7557:388;;;;;:::o;7950:380::-;8029:1;8025:12;;;;8072;;;8093:61;;8147:4;8139:6;8135:17;8125:27;;8093:61;8200:2;8192:6;8189:14;8169:18;8166:38;8163:161;;8246:10;8241:3;8237:20;8234:1;8227:31;8281:4;8278:1;8271:15;8309:4;8306:1;8299:15;8163:161;;7950:380;;;:::o;8751:408::-;8953:2;8935:21;;;8992:2;8972:18;;;8965:30;9031:34;9026:2;9011:18;;9004:62;-1:-1:-1;;;9097:2:15;9082:18;;9075:42;9149:3;9134:19;;8751:408::o;12759:127::-;12820:10;12815:3;12811:20;12808:1;12801:31;12851:4;12848:1;12841:15;12875:4;12872:1;12865:15;12891:128;12958:9;;;12979:11;;;12976:37;;;12993:18;;:::i;13024:450::-;13245:6;13234:9;13227:25;13288:2;13283;13272:9;13268:18;13261:30;13208:4;13314:45;13355:2;13344:9;13340:18;13332:6;13314:45;:::i;:::-;13407:9;13399:6;13395:22;13390:2;13379:9;13375:18;13368:50;13435:33;13461:6;13453;13435:33;:::i;:::-;13427:41;13024:450;-1:-1:-1;;;;;;13024:450:15:o;13758:251::-;13828:6;13881:2;13869:9;13860:7;13856:23;13852:32;13849:52;;;13897:1;13894;13887:12;13849:52;13929:9;13923:16;13948:31;13973:5;13948:31;:::i;14014:732::-;-1:-1:-1;;;;;14357:15:15;;;14339:34;;14409:15;;;14404:2;14389:18;;14382:43;14461:15;;14456:2;14441:18;;14434:43;14508:2;14493:18;;14486:34;;;14557:3;14551;14536:19;;14529:32;;;14282:4;;14584:46;;14610:19;;14602:6;14584:46;:::i;:::-;14679:9;14671:6;14667:22;14661:3;14650:9;14646:19;14639:51;14707:33;14733:6;14725;14707:33;:::i;:::-;14699:41;14014:732;-1:-1:-1;;;;;;;;;14014:732:15:o;15159:125::-;15224:9;;;15245:10;;;15242:36;;;15258:18;;:::i;15775:812::-;16186:25;16181:3;16174:38;16156:3;16241:6;16235:13;16257:75;16325:6;16320:2;16315:3;16311:12;16304:4;16296:6;16292:17;16257:75;:::i;:::-;-1:-1:-1;;;16391:2:15;16351:16;;;16383:11;;;16376:40;16441:13;;16463:76;16441:13;16525:2;16517:11;;16510:4;16498:17;;16463:76;:::i;:::-;16559:17;16578:2;16555:26;;15775:812;-1:-1:-1;;;;15775:812:15:o;16953:168::-;17026:9;;;17057;;17074:15;;;17068:22;;17054:37;17044:71;;17095:18;;:::i;17126:127::-;17187:10;17182:3;17178:20;17175:1;17168:31;17218:4;17215:1;17208:15;17242:4;17239:1;17232:15;17258:136;17297:3;17325:5;17315:39;;17334:18;;:::i;:::-;-1:-1:-1;;;17370:18:15;;17258:136::o
Swarm Source
ipfs://ee794cbba283404b251323203972979804c9e0beb9087cfa38855a5cf59e2105
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.