Transactions
Token Transfers
Tokens
Internal Transactions
Coin Balance History
Logs
Code
Read Contract
Write Contract
- Contract name:
- FadoToken
- Optimization enabled
- true
- Compiler version
- v0.8.11+commit.d7f03943
- Optimization runs
- 200
- EVM Version
- default
- Verified at
- 2022-02-08T09:38:52.432291Z
Constructor Arguments
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000204fce5e3e2502611000000000000000000000000000000000000000000000000000000000000000000000074661646f20476f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044641444f00000000000000000000000000000000000000000000000000000000
Arg [0] (string) : Fado Go
Arg [1] (string) : FADO
Arg [2] (uint256) : 10000000000000000000000000000
Contract source code
/** * SourceUnit: c:\Projects\fado\smart-contracts\contracts\token\FadoToken.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT pragma solidity ^0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } /** * SourceUnit: c:\Projects\fado\smart-contracts\contracts\token\FadoToken.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * ////IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } /** * SourceUnit: c:\Projects\fado\smart-contracts\contracts\token\FadoToken.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT pragma solidity ^0.8.0; ////import "./IERC20.sol"; ////import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20 { mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The defaut value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All three of these values are immutable: they can only be set once during * construction. */ constructor (string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overloaded; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); _approve(sender, _msgSender(), currentAllowance - amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); _approve(_msgSender(), spender, currentAllowance - subtractedValue); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); _balances[sender] = senderBalance - amount; _balances[recipient] += amount; emit Transfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `to` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); _balances[account] = accountBalance - amount; _totalSupply -= amount; emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be 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 from, address to, uint256 amount) internal virtual { } } /** * SourceUnit: c:\Projects\fado\smart-contracts\contracts\token\FadoToken.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT pragma solidity ^0.8.0; ////import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor () { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } } /** * SourceUnit: c:\Projects\fado\smart-contracts\contracts\token\FadoToken.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } /** * SourceUnit: c:\Projects\fado\smart-contracts\contracts\token\FadoToken.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT pragma solidity ^0.8.0; ////import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } /** * SourceUnit: c:\Projects\fado\smart-contracts\contracts\token\FadoToken.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping (bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement. bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { require(set._values.length > index, "EnumerableSet: index out of bounds"); return set._values[index]; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } } /** * SourceUnit: c:\Projects\fado\smart-contracts\contracts\token\FadoToken.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT pragma solidity ^0.8.0; ////import "../utils/Context.sol"; ////import "../utils/introspection/ERC165.sol"; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { function hasRole(bytes32 role, address account) external view returns (bool); function getRoleAdmin(bytes32 role) external view returns (bytes32); function grantRole(bytes32 role, address account) external; function revokeRole(bytes32 role, address account) external; function renounceRole(bytes32 role, address account) external; } /** * @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 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 {_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 See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view override returns (bool) { return _roles[role].members[account]; } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override { require(hasRole(getRoleAdmin(role), _msgSender()), "AccessControl: sender must be an admin to grant"); _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override { require(hasRole(getRoleAdmin(role), _msgSender()), "AccessControl: sender must be an admin to revoke"); _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { emit RoleAdminChanged(role, getRoleAdmin(role), adminRole); _roles[role].adminRole = adminRole; } function _grantRole(bytes32 role, address account) private { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } } /** * SourceUnit: c:\Projects\fado\smart-contracts\contracts\token\FadoToken.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT pragma solidity ^0.8.0; ////import "../ERC20.sol"; /** * @dev Extension of {ERC20} that adds a cap to the supply of tokens. */ abstract contract ERC20Capped is ERC20 { uint256 immutable private _cap; /** * @dev Sets the value of the `cap`. This value is immutable, it can only be * set once during construction. */ constructor (uint256 cap_) { require(cap_ > 0, "ERC20Capped: cap is 0"); _cap = cap_; } /** * @dev Returns the cap on the token's total supply. */ function cap() public view virtual returns (uint256) { return _cap; } /** * @dev See {ERC20-_mint}. */ function _mint(address account, uint256 amount) internal virtual override { require(ERC20.totalSupply() + amount <= cap(), "ERC20Capped: cap exceeded"); super._mint(account, amount); } } /** * SourceUnit: c:\Projects\fado\smart-contracts\contracts\token\FadoToken.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT pragma solidity ^0.8.0; ////import "../ERC20.sol"; ////import "../../../security/Pausable.sol"; /** * @dev ERC20 token with pausable token transfers, minting and burning. * * Useful for scenarios such as preventing trades until the end of an evaluation * period, or having an emergency switch for freezing all token transfers in the * event of a large bug. */ abstract contract ERC20Pausable is ERC20, Pausable { /** * @dev See {ERC20-_beforeTokenTransfer}. * * Requirements: * * - the contract must not be paused. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override { super._beforeTokenTransfer(from, to, amount); require(!paused(), "ERC20Pausable: token transfer while paused"); } } /** * SourceUnit: c:\Projects\fado\smart-contracts\contracts\token\FadoToken.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT pragma solidity ^0.8.0; ////import "../ERC20.sol"; ////import "../../../utils/Context.sol"; /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public virtual { uint256 currentAllowance = allowance(account, _msgSender()); require(currentAllowance >= amount, "ERC20: burn amount exceeds allowance"); _approve(account, _msgSender(), currentAllowance - amount); _burn(account, amount); } } /** * SourceUnit: c:\Projects\fado\smart-contracts\contracts\token\FadoToken.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT pragma solidity ^0.8.0; ////import "./AccessControl.sol"; ////import "../utils/structs/EnumerableSet.sol"; /** * @dev External interface of AccessControlEnumerable declared to support ERC165 detection. */ interface IAccessControlEnumerable { function getRoleMember(bytes32 role, uint256 index) external view returns (address); function getRoleMemberCount(bytes32 role) external view returns (uint256); } /** * @dev Extension of {AccessControl} that allows enumerating the members of each role. */ abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl { using EnumerableSet for EnumerableSet.AddressSet; mapping (bytes32 => EnumerableSet.AddressSet) private _roleMembers; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControlEnumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) public view override returns (address) { return _roleMembers[role].at(index); } /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) public view override returns (uint256) { return _roleMembers[role].length(); } /** * @dev Overload {grantRole} to track enumerable memberships */ function grantRole(bytes32 role, address account) public virtual override { super.grantRole(role, account); _roleMembers[role].add(account); } /** * @dev Overload {revokeRole} to track enumerable memberships */ function revokeRole(bytes32 role, address account) public virtual override { super.revokeRole(role, account); _roleMembers[role].remove(account); } /** * @dev Overload {renounceRole} to track enumerable memberships */ function renounceRole(bytes32 role, address account) public virtual override { super.renounceRole(role, account); _roleMembers[role].remove(account); } /** * @dev Overload {_setupRole} to track enumerable memberships */ function _setupRole(bytes32 role, address account) internal virtual override { super._setupRole(role, account); _roleMembers[role].add(account); } } /** * SourceUnit: c:\Projects\fado\smart-contracts\contracts\token\FadoToken.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT pragma solidity ^0.8.0; ////import "@openzeppelin/contracts/access/AccessControlEnumerable.sol"; ////import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol"; ////import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Pausable.sol"; ////import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Capped.sol"; interface IBPContract { function protect(address sender, address receiver, uint256 amount) external; } contract FadoToken is AccessControlEnumerable, ERC20Burnable, ERC20Pausable, ERC20Capped { bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE"); IBPContract public bpContract; bool public bpEnabled; bool public bpDisabledForever; modifier onlyAdmin() { require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "FadoToken: must have admin role to call"); _; } constructor(string memory name, string memory symbol, uint256 maxSupply) ERC20(name, symbol) ERC20Capped(maxSupply) { address msgSender = _msgSender(); _setupRole(DEFAULT_ADMIN_ROLE, msgSender); _setupRole(MINTER_ROLE, msgSender); _setupRole(PAUSER_ROLE, msgSender); } function mint(address to, uint256 amount) public virtual { require(hasRole(MINTER_ROLE, _msgSender()), "FadoToken: must have minter role to mint"); _mint(to, amount); } function pause() public virtual { require(hasRole(PAUSER_ROLE, _msgSender()), "FadoToken: must have pauser role to pause"); _pause(); } function unpause() public virtual { require(hasRole(PAUSER_ROLE, _msgSender()), "FadoToken: must have pauser role to unpause"); _unpause(); } function _mint(address account, uint256 amount) internal virtual override(ERC20, ERC20Capped) { super._mint(account, amount); } function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override(ERC20, ERC20Pausable) { super._beforeTokenTransfer(from, to, amount); if (bpEnabled && !bpDisabledForever) { bpContract.protect(from, to, amount); } } function setBPContract(address addr) public onlyAdmin { require(address(bpContract) == address(0), "FadoToken: can only be initialized once"); bpContract = IBPContract(addr); } function setBPEnabled(bool enabled) public onlyAdmin { bpEnabled = enabled; } function setBPDisableForever() public onlyAdmin { require(!bpDisabledForever, "FadoToken: bot prevention disabled"); bpDisabledForever = true; } }
Contract ABI
[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"string","name":"name","internalType":"string"},{"type":"string","name":"symbol","internalType":"string"},{"type":"uint256","name":"maxSupply","internalType":"uint256"}]},{"type":"event","name":"Approval","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"spender","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Paused","inputs":[{"type":"address","name":"account","internalType":"address","indexed":false}],"anonymous":false},{"type":"event","name":"RoleAdminChanged","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32","indexed":true},{"type":"bytes32","name":"previousAdminRole","internalType":"bytes32","indexed":true},{"type":"bytes32","name":"newAdminRole","internalType":"bytes32","indexed":true}],"anonymous":false},{"type":"event","name":"RoleGranted","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32","indexed":true},{"type":"address","name":"account","internalType":"address","indexed":true},{"type":"address","name":"sender","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"RoleRevoked","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32","indexed":true},{"type":"address","name":"account","internalType":"address","indexed":true},{"type":"address","name":"sender","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Unpaused","inputs":[{"type":"address","name":"account","internalType":"address","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"DEFAULT_ADMIN_ROLE","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"MINTER_ROLE","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"PAUSER_ROLE","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"allowance","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"address","name":"spender","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"approve","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IBPContract"}],"name":"bpContract","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"bpDisabledForever","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"bpEnabled","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"burn","inputs":[{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"burnFrom","inputs":[{"type":"address","name":"account","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"cap","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint8","name":"","internalType":"uint8"}],"name":"decimals","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"decreaseAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"subtractedValue","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"getRoleAdmin","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"getRoleMember","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"uint256","name":"index","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getRoleMemberCount","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"grantRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"hasRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"increaseAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"addedValue","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"mint","inputs":[{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"pause","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"paused","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"revokeRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setBPContract","inputs":[{"type":"address","name":"addr","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setBPDisableForever","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setBPEnabled","inputs":[{"type":"bool","name":"enabled","internalType":"bool"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"supportsInterface","inputs":[{"type":"bytes4","name":"interfaceId","internalType":"bytes4"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"symbol","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSupply","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transfer","inputs":[{"type":"address","name":"recipient","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transferFrom","inputs":[{"type":"address","name":"sender","internalType":"address"},{"type":"address","name":"recipient","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"unpause","inputs":[]}]
Contract Creation Code
0x60a06040523480156200001157600080fd5b50604051620020c9380380620020c983398101604081905262000034916200040f565b80838381600590805190602001906200004f9291906200029c565b508051620000659060069060208401906200029c565b50506007805460ff191690555080620000c45760405162461bcd60e51b815260206004820152601560248201527f45524332304361707065643a2063617020697320300000000000000000000000604482015260640160405180910390fd5b60805233620000d560008262000137565b620001017f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a68262000137565b6200012d7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a8262000137565b50505050620004bf565b6200014e82826200017a60201b62000c3f1760201c565b60008281526001602090815260409091206200017591839062000c496200018a821b17901c565b505050565b620001868282620001aa565b5050565b6000620001a1836001600160a01b0384166200024a565b90505b92915050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1662000186576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620002063390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008181526001830160205260408120546200029357508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155620001a4565b506000620001a4565b828054620002aa9062000482565b90600052602060002090601f016020900481019282620002ce576000855562000319565b82601f10620002e957805160ff191683800117855562000319565b8280016001018555821562000319579182015b8281111562000319578251825591602001919060010190620002fc565b50620003279291506200032b565b5090565b5b808211156200032757600081556001016200032c565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200036a57600080fd5b81516001600160401b038082111562000387576200038762000342565b604051601f8301601f19908116603f01168101908282118183101715620003b257620003b262000342565b81604052838152602092508683858801011115620003cf57600080fd5b600091505b83821015620003f35785820183015181830184015290820190620003d4565b83821115620004055760008385830101525b9695505050505050565b6000806000606084860312156200042557600080fd5b83516001600160401b03808211156200043d57600080fd5b6200044b8783880162000358565b945060208601519150808211156200046257600080fd5b50620004718682870162000358565b925050604084015190509250925092565b600181811c908216806200049757607f821691505b60208210811415620004b957634e487b7160e01b600052602260045260246000fd5b50919050565b608051611be7620004e2600039600081816102e8015261168d0152611be76000f3fe608060405234801561001057600080fd5b50600436106102115760003560e01c80635c975abb11610125578063a457c2d7116100ad578063ca15c8731161007c578063ca15c8731461047d578063d539139314610490578063d547741f146104b7578063dd62ed3e146104ca578063e63ab1e91461050357600080fd5b8063a457c2d71461043c578063a9059cbb1461044f578063af20025214610462578063c17d2a061461047557600080fd5b80638456cb59116100f45780638456cb59146103fe5780639010d07c1461040657806391d148541461041957806395d89b411461042c578063a217fddf1461043457600080fd5b80635c975abb146103a457806370a08231146103af57806378f74560146103d857806379cc6790146103eb57600080fd5b8063313ce567116101a85780633f4ba83a116101775780633f4ba83a1461033257806340c10f191461033a57806342966c681461034d5780634aaee1121461036057806359c002271461037457600080fd5b8063313ce567146102d7578063355274ea146102e657806336568abe1461030c578063395093511461031f57600080fd5b806323b872dd116101e457806323b872dd14610278578063248a9ca31461028b57806326898da9146102ae5780632f2ff15d146102c257600080fd5b806301ffc9a71461021657806306fdde031461023e578063095ea7b31461025357806318160ddd14610266575b600080fd5b6102296102243660046118ef565b61052a565b60405190151581526020015b60405180910390f35b610246610555565b6040516102359190611919565b61022961026136600461198a565b6105e7565b6004545b604051908152602001610235565b6102296102863660046119b4565b6105fd565b61026a6102993660046119f0565b60009081526020819052604090206001015490565b60075461022990600160a81b900460ff1681565b6102d56102d0366004611a09565b6106b3565b005b60405160128152602001610235565b7f000000000000000000000000000000000000000000000000000000000000000061026a565b6102d561031a366004611a09565b6106da565b61022961032d36600461198a565b6106fc565b6102d5610733565b6102d561034836600461198a565b6107c7565b6102d561035b3660046119f0565b61085c565b60075461022990600160b01b900460ff1681565b60075461038c9061010090046001600160a01b031681565b6040516001600160a01b039091168152602001610235565b60075460ff16610229565b61026a6103bd366004611a35565b6001600160a01b031660009081526002602052604090205490565b6102d56103e6366004611a35565b610869565b6102d56103f936600461198a565b610926565b6102d56109a9565b61038c610414366004611a50565b610a39565b610229610427366004611a09565b610a58565b610246610a81565b61026a600081565b61022961044a36600461198a565b610a90565b61022961045d36600461198a565b610b2b565b6102d5610470366004611a72565b610b38565b6102d5610b7d565b61026a61048b3660046119f0565b610c1e565b61026a7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b6102d56104c5366004611a09565b610c35565b61026a6104d8366004611a94565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b61026a7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b60006001600160e01b03198216635a05180f60e01b148061054f575061054f82610c5e565b92915050565b60606005805461056490611abe565b80601f016020809104026020016040519081016040528092919081815260200182805461059090611abe565b80156105dd5780601f106105b2576101008083540402835291602001916105dd565b820191906000526020600020905b8154815290600101906020018083116105c057829003601f168201915b5050505050905090565b60006105f4338484610c93565b50600192915050565b600061060a848484610db8565b6001600160a01b0384166000908152600360209081526040808320338452909152902054828110156106945760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6106a885336106a38685611b0f565b610c93565b506001949350505050565b6106bd8282610f9b565b60008281526001602052604090206106d59082610c49565b505050565b6106e4828261101c565b60008281526001602052604090206106d59082611096565b3360008181526003602090815260408083206001600160a01b038716845290915281205490916105f49185906106a3908690611b26565b61075d7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a33610a58565b6107bd5760405162461bcd60e51b815260206004820152602b60248201527f4661646f546f6b656e3a206d75737420686176652070617573657220726f6c6560448201526a20746f20756e706175736560a81b606482015260840161068b565b6107c56110ab565b565b6107f17f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633610a58565b61084e5760405162461bcd60e51b815260206004820152602860248201527f4661646f546f6b656e3a206d7573742068617665206d696e74657220726f6c65604482015267081d1bc81b5a5b9d60c21b606482015260840161068b565b610858828261113e565b5050565b6108663382611148565b50565b610874600033610a58565b6108905760405162461bcd60e51b815260040161068b90611b3e565b60075461010090046001600160a01b0316156108fe5760405162461bcd60e51b815260206004820152602760248201527f4661646f546f6b656e3a2063616e206f6e6c7920626520696e697469616c697a6044820152666564206f6e636560c81b606482015260840161068b565b600780546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b600061093283336104d8565b9050818110156109905760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77604482015263616e636560e01b606482015260840161068b565b61099f83336106a38585611b0f565b6106d58383611148565b6109d37f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a33610a58565b610a315760405162461bcd60e51b815260206004820152602960248201527f4661646f546f6b656e3a206d75737420686176652070617573657220726f6c6560448201526820746f20706175736560b81b606482015260840161068b565b6107c56112a3565b6000828152600160205260408120610a51908361131e565b9392505050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b60606006805461056490611abe565b3360009081526003602090815260408083206001600160a01b038616845290915281205482811015610b125760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161068b565b610b2133856106a38685611b0f565b5060019392505050565b60006105f4338484610db8565b610b43600033610a58565b610b5f5760405162461bcd60e51b815260040161068b90611b3e565b60078054911515600160a81b0260ff60a81b19909216919091179055565b610b88600033610a58565b610ba45760405162461bcd60e51b815260040161068b90611b3e565b600754600160b01b900460ff1615610c095760405162461bcd60e51b815260206004820152602260248201527f4661646f546f6b656e3a20626f742070726576656e74696f6e2064697361626c604482015261195960f21b606482015260840161068b565b6007805460ff60b01b1916600160b01b179055565b600081815260016020526040812061054f9061132a565b6106e48282611334565b61085882826113b4565b6000610a51836001600160a01b038416611438565b60006001600160e01b03198216637965db0b60e01b148061054f57506301ffc9a760e01b6001600160e01b031983161461054f565b6001600160a01b038316610cf55760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161068b565b6001600160a01b038216610d565760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161068b565b6001600160a01b0383811660008181526003602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038316610e1c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161068b565b6001600160a01b038216610e7e5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161068b565b610e89838383611487565b6001600160a01b03831660009081526002602052604090205481811015610f015760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161068b565b610f0b8282611b0f565b6001600160a01b038086166000908152600260205260408082209390935590851681529081208054849290610f41908490611b26565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610f8d91815260200190565b60405180910390a350505050565b600082815260208190526040902060010154610fb8905b33610a58565b610c3f5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60448201526e0818591b5a5b881d1bc819dc985b9d608a1b606482015260840161068b565b6001600160a01b038116331461108c5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b606482015260840161068b565b6108588282611533565b6000610a51836001600160a01b038416611598565b60075460ff166110f45760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161068b565b6007805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b610858828261168b565b6001600160a01b0382166111a85760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161068b565b6111b482600083611487565b6001600160a01b038216600090815260026020526040902054818110156112285760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161068b565b6112328282611b0f565b6001600160a01b03841660009081526002602052604081209190915560048054849290611260908490611b0f565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610dab565b60075460ff16156112e95760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161068b565b6007805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586111213390565b6000610a518383611718565b600061054f825490565b60008281526020819052604090206001015461134f90610fb2565b61108c5760405162461bcd60e51b815260206004820152603060248201527f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60448201526f2061646d696e20746f207265766f6b6560801b606482015260840161068b565b6113be8282610a58565b610858576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556113f43390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600081815260018301602052604081205461147f5750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561054f565b50600061054f565b61149283838361179e565b600754600160a81b900460ff1680156114b55750600754600160b01b900460ff16155b156106d557600754604051637e2f3afd60e01b81526001600160a01b03858116600483015284811660248301526044820184905261010090920490911690637e2f3afd90606401600060405180830381600087803b15801561151657600080fd5b505af115801561152a573d6000803e3d6000fd5b50505050505050565b61153d8282610a58565b15610858576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600081815260018301602052604081205480156116815760006115bc600183611b0f565b85549091506000906115d090600190611b0f565b905060008660000182815481106115e9576115e9611b85565b906000526020600020015490508087600001848154811061160c5761160c611b85565b600091825260209091200155611623836001611b26565b6000828152600189016020526040902055865487908061164557611645611b9b565b6001900381819060005260206000200160009055905586600101600087815260200190815260200160002060009055600194505050505061054f565b600091505061054f565b7f0000000000000000000000000000000000000000000000000000000000000000816116b660045490565b6116c09190611b26565b111561170e5760405162461bcd60e51b815260206004820152601960248201527f45524332304361707065643a2063617020657863656564656400000000000000604482015260640161068b565b6108588282611804565b815460009082106117765760405162461bcd60e51b815260206004820152602260248201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e604482015261647360f01b606482015260840161068b565b82600001828154811061178b5761178b611b85565b9060005260206000200154905092915050565b60075460ff16156106d55760405162461bcd60e51b815260206004820152602a60248201527f45524332305061757361626c653a20746f6b656e207472616e736665722077686044820152691a5b19481c185d5cd95960b21b606482015260840161068b565b6001600160a01b03821661185a5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161068b565b61186660008383611487565b80600460008282546118789190611b26565b90915550506001600160a01b038216600090815260026020526040812080548392906118a5908490611b26565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b60006020828403121561190157600080fd5b81356001600160e01b031981168114610a5157600080fd5b600060208083528351808285015260005b818110156119465785810183015185820160400152820161192a565b81811115611958576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b038116811461198557600080fd5b919050565b6000806040838503121561199d57600080fd5b6119a68361196e565b946020939093013593505050565b6000806000606084860312156119c957600080fd5b6119d28461196e565b92506119e06020850161196e565b9150604084013590509250925092565b600060208284031215611a0257600080fd5b5035919050565b60008060408385031215611a1c57600080fd5b82359150611a2c6020840161196e565b90509250929050565b600060208284031215611a4757600080fd5b610a518261196e565b60008060408385031215611a6357600080fd5b50508035926020909101359150565b600060208284031215611a8457600080fd5b81358015158114610a5157600080fd5b60008060408385031215611aa757600080fd5b611ab08361196e565b9150611a2c6020840161196e565b600181811c90821680611ad257607f821691505b60208210811415611af357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082821015611b2157611b21611af9565b500390565b60008219821115611b3957611b39611af9565b500190565b60208082526027908201527f4661646f546f6b656e3a206d75737420686176652061646d696e20726f6c65206040820152661d1bc818d85b1b60ca1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fdfea2646970667358221220ad776e5d8b4fc0b0afe7ecca5da2b1774d21778dee9031a2f67fad7ca3fe2d3764736f6c634300080b0033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000204fce5e3e2502611000000000000000000000000000000000000000000000000000000000000000000000074661646f20476f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044641444f00000000000000000000000000000000000000000000000000000000
Deployed ByteCode
0x608060405234801561001057600080fd5b50600436106102115760003560e01c80635c975abb11610125578063a457c2d7116100ad578063ca15c8731161007c578063ca15c8731461047d578063d539139314610490578063d547741f146104b7578063dd62ed3e146104ca578063e63ab1e91461050357600080fd5b8063a457c2d71461043c578063a9059cbb1461044f578063af20025214610462578063c17d2a061461047557600080fd5b80638456cb59116100f45780638456cb59146103fe5780639010d07c1461040657806391d148541461041957806395d89b411461042c578063a217fddf1461043457600080fd5b80635c975abb146103a457806370a08231146103af57806378f74560146103d857806379cc6790146103eb57600080fd5b8063313ce567116101a85780633f4ba83a116101775780633f4ba83a1461033257806340c10f191461033a57806342966c681461034d5780634aaee1121461036057806359c002271461037457600080fd5b8063313ce567146102d7578063355274ea146102e657806336568abe1461030c578063395093511461031f57600080fd5b806323b872dd116101e457806323b872dd14610278578063248a9ca31461028b57806326898da9146102ae5780632f2ff15d146102c257600080fd5b806301ffc9a71461021657806306fdde031461023e578063095ea7b31461025357806318160ddd14610266575b600080fd5b6102296102243660046118ef565b61052a565b60405190151581526020015b60405180910390f35b610246610555565b6040516102359190611919565b61022961026136600461198a565b6105e7565b6004545b604051908152602001610235565b6102296102863660046119b4565b6105fd565b61026a6102993660046119f0565b60009081526020819052604090206001015490565b60075461022990600160a81b900460ff1681565b6102d56102d0366004611a09565b6106b3565b005b60405160128152602001610235565b7f0000000000000000000000000000000000000000204fce5e3e2502611000000061026a565b6102d561031a366004611a09565b6106da565b61022961032d36600461198a565b6106fc565b6102d5610733565b6102d561034836600461198a565b6107c7565b6102d561035b3660046119f0565b61085c565b60075461022990600160b01b900460ff1681565b60075461038c9061010090046001600160a01b031681565b6040516001600160a01b039091168152602001610235565b60075460ff16610229565b61026a6103bd366004611a35565b6001600160a01b031660009081526002602052604090205490565b6102d56103e6366004611a35565b610869565b6102d56103f936600461198a565b610926565b6102d56109a9565b61038c610414366004611a50565b610a39565b610229610427366004611a09565b610a58565b610246610a81565b61026a600081565b61022961044a36600461198a565b610a90565b61022961045d36600461198a565b610b2b565b6102d5610470366004611a72565b610b38565b6102d5610b7d565b61026a61048b3660046119f0565b610c1e565b61026a7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b6102d56104c5366004611a09565b610c35565b61026a6104d8366004611a94565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b61026a7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b60006001600160e01b03198216635a05180f60e01b148061054f575061054f82610c5e565b92915050565b60606005805461056490611abe565b80601f016020809104026020016040519081016040528092919081815260200182805461059090611abe565b80156105dd5780601f106105b2576101008083540402835291602001916105dd565b820191906000526020600020905b8154815290600101906020018083116105c057829003601f168201915b5050505050905090565b60006105f4338484610c93565b50600192915050565b600061060a848484610db8565b6001600160a01b0384166000908152600360209081526040808320338452909152902054828110156106945760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6106a885336106a38685611b0f565b610c93565b506001949350505050565b6106bd8282610f9b565b60008281526001602052604090206106d59082610c49565b505050565b6106e4828261101c565b60008281526001602052604090206106d59082611096565b3360008181526003602090815260408083206001600160a01b038716845290915281205490916105f49185906106a3908690611b26565b61075d7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a33610a58565b6107bd5760405162461bcd60e51b815260206004820152602b60248201527f4661646f546f6b656e3a206d75737420686176652070617573657220726f6c6560448201526a20746f20756e706175736560a81b606482015260840161068b565b6107c56110ab565b565b6107f17f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633610a58565b61084e5760405162461bcd60e51b815260206004820152602860248201527f4661646f546f6b656e3a206d7573742068617665206d696e74657220726f6c65604482015267081d1bc81b5a5b9d60c21b606482015260840161068b565b610858828261113e565b5050565b6108663382611148565b50565b610874600033610a58565b6108905760405162461bcd60e51b815260040161068b90611b3e565b60075461010090046001600160a01b0316156108fe5760405162461bcd60e51b815260206004820152602760248201527f4661646f546f6b656e3a2063616e206f6e6c7920626520696e697469616c697a6044820152666564206f6e636560c81b606482015260840161068b565b600780546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b600061093283336104d8565b9050818110156109905760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77604482015263616e636560e01b606482015260840161068b565b61099f83336106a38585611b0f565b6106d58383611148565b6109d37f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a33610a58565b610a315760405162461bcd60e51b815260206004820152602960248201527f4661646f546f6b656e3a206d75737420686176652070617573657220726f6c6560448201526820746f20706175736560b81b606482015260840161068b565b6107c56112a3565b6000828152600160205260408120610a51908361131e565b9392505050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b60606006805461056490611abe565b3360009081526003602090815260408083206001600160a01b038616845290915281205482811015610b125760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161068b565b610b2133856106a38685611b0f565b5060019392505050565b60006105f4338484610db8565b610b43600033610a58565b610b5f5760405162461bcd60e51b815260040161068b90611b3e565b60078054911515600160a81b0260ff60a81b19909216919091179055565b610b88600033610a58565b610ba45760405162461bcd60e51b815260040161068b90611b3e565b600754600160b01b900460ff1615610c095760405162461bcd60e51b815260206004820152602260248201527f4661646f546f6b656e3a20626f742070726576656e74696f6e2064697361626c604482015261195960f21b606482015260840161068b565b6007805460ff60b01b1916600160b01b179055565b600081815260016020526040812061054f9061132a565b6106e48282611334565b61085882826113b4565b6000610a51836001600160a01b038416611438565b60006001600160e01b03198216637965db0b60e01b148061054f57506301ffc9a760e01b6001600160e01b031983161461054f565b6001600160a01b038316610cf55760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161068b565b6001600160a01b038216610d565760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161068b565b6001600160a01b0383811660008181526003602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038316610e1c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161068b565b6001600160a01b038216610e7e5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161068b565b610e89838383611487565b6001600160a01b03831660009081526002602052604090205481811015610f015760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161068b565b610f0b8282611b0f565b6001600160a01b038086166000908152600260205260408082209390935590851681529081208054849290610f41908490611b26565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610f8d91815260200190565b60405180910390a350505050565b600082815260208190526040902060010154610fb8905b33610a58565b610c3f5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60448201526e0818591b5a5b881d1bc819dc985b9d608a1b606482015260840161068b565b6001600160a01b038116331461108c5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b606482015260840161068b565b6108588282611533565b6000610a51836001600160a01b038416611598565b60075460ff166110f45760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161068b565b6007805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b610858828261168b565b6001600160a01b0382166111a85760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161068b565b6111b482600083611487565b6001600160a01b038216600090815260026020526040902054818110156112285760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161068b565b6112328282611b0f565b6001600160a01b03841660009081526002602052604081209190915560048054849290611260908490611b0f565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610dab565b60075460ff16156112e95760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161068b565b6007805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586111213390565b6000610a518383611718565b600061054f825490565b60008281526020819052604090206001015461134f90610fb2565b61108c5760405162461bcd60e51b815260206004820152603060248201527f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60448201526f2061646d696e20746f207265766f6b6560801b606482015260840161068b565b6113be8282610a58565b610858576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556113f43390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600081815260018301602052604081205461147f5750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561054f565b50600061054f565b61149283838361179e565b600754600160a81b900460ff1680156114b55750600754600160b01b900460ff16155b156106d557600754604051637e2f3afd60e01b81526001600160a01b03858116600483015284811660248301526044820184905261010090920490911690637e2f3afd90606401600060405180830381600087803b15801561151657600080fd5b505af115801561152a573d6000803e3d6000fd5b50505050505050565b61153d8282610a58565b15610858576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600081815260018301602052604081205480156116815760006115bc600183611b0f565b85549091506000906115d090600190611b0f565b905060008660000182815481106115e9576115e9611b85565b906000526020600020015490508087600001848154811061160c5761160c611b85565b600091825260209091200155611623836001611b26565b6000828152600189016020526040902055865487908061164557611645611b9b565b6001900381819060005260206000200160009055905586600101600087815260200190815260200160002060009055600194505050505061054f565b600091505061054f565b7f0000000000000000000000000000000000000000204fce5e3e25026110000000816116b660045490565b6116c09190611b26565b111561170e5760405162461bcd60e51b815260206004820152601960248201527f45524332304361707065643a2063617020657863656564656400000000000000604482015260640161068b565b6108588282611804565b815460009082106117765760405162461bcd60e51b815260206004820152602260248201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e604482015261647360f01b606482015260840161068b565b82600001828154811061178b5761178b611b85565b9060005260206000200154905092915050565b60075460ff16156106d55760405162461bcd60e51b815260206004820152602a60248201527f45524332305061757361626c653a20746f6b656e207472616e736665722077686044820152691a5b19481c185d5cd95960b21b606482015260840161068b565b6001600160a01b03821661185a5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161068b565b61186660008383611487565b80600460008282546118789190611b26565b90915550506001600160a01b038216600090815260026020526040812080548392906118a5908490611b26565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b60006020828403121561190157600080fd5b81356001600160e01b031981168114610a5157600080fd5b600060208083528351808285015260005b818110156119465785810183015185820160400152820161192a565b81811115611958576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b038116811461198557600080fd5b919050565b6000806040838503121561199d57600080fd5b6119a68361196e565b946020939093013593505050565b6000806000606084860312156119c957600080fd5b6119d28461196e565b92506119e06020850161196e565b9150604084013590509250925092565b600060208284031215611a0257600080fd5b5035919050565b60008060408385031215611a1c57600080fd5b82359150611a2c6020840161196e565b90509250929050565b600060208284031215611a4757600080fd5b610a518261196e565b60008060408385031215611a6357600080fd5b50508035926020909101359150565b600060208284031215611a8457600080fd5b81358015158114610a5157600080fd5b60008060408385031215611aa757600080fd5b611ab08361196e565b9150611a2c6020840161196e565b600181811c90821680611ad257607f821691505b60208210811415611af357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082821015611b2157611b21611af9565b500390565b60008219821115611b3957611b39611af9565b500190565b60208082526027908201527f4661646f546f6b656e3a206d75737420686176652061646d696e20726f6c65206040820152661d1bc818d85b1b60ca1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fdfea2646970667358221220ad776e5d8b4fc0b0afe7ecca5da2b1774d21778dee9031a2f67fad7ca3fe2d3764736f6c634300080b0033