MATIC Price: $1.00 (-1.67%)
Gas: 370 GWei
 

Overview

MATIC Balance

Polygon PoS Chain LogoPolygon PoS Chain LogoPolygon PoS Chain Logo0 MATIC

MATIC Value

$0.00

Sponsored

Transaction Hash
Method
Block
From
To
Value
0x60a06040299475002022-06-24 14:12:29644 days ago1656079949IN
 Create: Token
0 MATIC0.151410530.00023738

Parent Txn Hash Block From To Value
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Token

Compiler Version
v0.8.15+commit.e14f2714

Optimization Enabled:
Yes with 1000000 runs

Other Settings:
default evmVersion
File 1 of 26 : Token.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20PausableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20BurnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20SnapshotUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol";
import "./LosslessERC20.sol";

contract Token is 
        Initializable, 
        ContextUpgradeable, 
        UUPSUpgradeable, 
        AccessControlUpgradeable, 
        ERC20Upgradeable,
        ERC20PausableUpgradeable,
        ERC20BurnableUpgradeable, 
        ERC20SnapshotUpgradeable,
        LosslessERC20
    {
    string constant SYMBOL  = 'KOLnet';
    string constant NAME    = 'KOLnet Token';

    bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
    bytes32 public constant SNAPSHOT_MANAGER_ROLE = keccak256("SNAPSHOT_MANAGER_ROLE");
    bytes32 public constant PAUSE_MANAGER_ROLE = keccak256("PAUSE_MANAGER_ROLE");
    bytes32 public constant WHITELISTED_FROM_ROLE = keccak256("WHITELISTED_FROM_ROLE");
    bytes32 public constant WHITELISTED_SENDER_ROLE = keccak256("WHITELISTED_SENDER_ROLE");
    bytes32 public constant BLACKLIST_MANAGER_ROLE = keccak256("BLACKLIST_MANAGER_ROLE");
    bytes32 public constant BLACKLISTED_ROLE = keccak256("BLACKLISTED_ROLE");
    bytes32 public constant TXFEE_MANAGER_ROLE = keccak256("TXFEE_MANAGER_ROLE");
    bytes32 public constant TXFEE_WHITELISTED_ROLE = keccak256("TXFEE_WHITELISTED_ROLE");


    uint256 public txFee; //100% fee = 1e18
    address public txFeeBeneficiary;

    constructor() initializer{
        // Here we need to initialize storage to not allow anyone to use this implementation-only contract.
        // This contract should only be used via Proxy.
        __Token_init("", "", address(0), address(0), 0, ILosslessController(address(0)));
        renounceRole(MINTER_ROLE, _msgSender());        
        renounceRole(PAUSE_MANAGER_ROLE, _msgSender());        
        renounceRole(SNAPSHOT_MANAGER_ROLE, _msgSender());        
        renounceRole(TXFEE_MANAGER_ROLE, _msgSender());        
        renounceRole(DEFAULT_ADMIN_ROLE, _msgSender());
    }
    
    function initialize(address _admin, address _recoveryAdmin, uint256 _timelockPeriod, ILosslessController _lossless) public virtual initializer {
        require(_admin != address(0), "admin required for Lossless");
        require(_recoveryAdmin != address(0), "recoveryAdmin required for Lossless");
        require(address(_lossless) != address(0), "lossless controller required for Lossless");
        require(_timelockPeriod >= 86400, "timelockPeriod should be greater than 24 hrs");

        __Token_init(NAME, SYMBOL, _admin, _recoveryAdmin, _timelockPeriod, _lossless);
    }

    function __Token_init(string memory name, string memory symbol, address _admin, address _recoveryAdmin, uint256 _timelockPeriod, ILosslessController _lossless) internal onlyInitializing {
        __UUPSUpgradeable_init_unchained();
        __AccessControl_init_unchained();        
        __Pausable_init_unchained();
        __ERC20_init_unchained(name, symbol);
        __ERC20Pausable_init_unchained();
        __ERC20Burnable_init_unchained();
        __ERC20Snapshot_init_unchained();
        __LosslessERC20_init_unchained(_admin, _recoveryAdmin, _timelockPeriod, _lossless);
        __Token_init_unchained();
    }

    function __Token_init_unchained() internal onlyInitializing {
        _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());

        _setupRole(MINTER_ROLE, _msgSender());
        _setupRole(PAUSE_MANAGER_ROLE, _msgSender());
        _setupRole(SNAPSHOT_MANAGER_ROLE, _msgSender());
        _setupRole(TXFEE_MANAGER_ROLE, _msgSender());
    	_setRoleAdmin(WHITELISTED_FROM_ROLE, PAUSE_MANAGER_ROLE);
		_setRoleAdmin(WHITELISTED_SENDER_ROLE, PAUSE_MANAGER_ROLE);
		_setRoleAdmin(TXFEE_WHITELISTED_ROLE, TXFEE_MANAGER_ROLE);
    }

    function approve(address spender, uint256 amount) public virtual override(ERC20Upgradeable,LosslessERC20) returns (bool) {
        return LosslessERC20.approve(spender, amount);
    }

    function increaseAllowance(address spender, uint256 addedValue) public virtual override(ERC20Upgradeable,LosslessERC20) returns (bool) {
        return LosslessERC20.increaseAllowance(spender, addedValue);
    }

    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual override(ERC20Upgradeable,LosslessERC20) returns (bool) {
        return LosslessERC20.decreaseAllowance(spender, subtractedValue);
    }

    function transfer(address to, uint256 amount) public virtual override(ERC20Upgradeable,LosslessERC20) returns (bool) {
        return LosslessERC20.transfer(to, amount);
    }

    function transferFrom(address from, address to, uint256 amount) public virtual override(ERC20Upgradeable,LosslessERC20) returns (bool) {
        return LosslessERC20.transferFrom(from, to, amount);
    }


    function mint(address account, uint256 amount) external onlyRole(MINTER_ROLE) {
        _mint(account, amount);
    }

    function snapshot() external onlyRole(SNAPSHOT_MANAGER_ROLE) {
        _snapshot();
    }

    function currentSnapshotId() external view returns (uint256) {
        return _getCurrentSnapshotId();
    }

    function pause() external onlyRole(PAUSE_MANAGER_ROLE) {
        _pause();
    }

    function unpause() external onlyRole(PAUSE_MANAGER_ROLE) {
        _unpause();
    }

    function setupTxFee(uint256 _txFee, address _txFeeBeneficiary)  external onlyRole(TXFEE_MANAGER_ROLE) {
        require(_txFee <= 1e18, "bad tx fee");
        txFee = _txFee;
        txFeeBeneficiary = _txFeeBeneficiary;
    }

    function grantRole(bytes32 role, address account) public override(AccessControlUpgradeable) {
        require(!hasRole(BLACKLISTED_ROLE, account), "can not assign role to blacklisted");
        super.grantRole(role, account);
    }

    function renounceRole(bytes32 role, address account) public override(AccessControlUpgradeable) {
        require(role != BLACKLISTED_ROLE, "can not renounce blacklisted role");
        super.renounceRole(role, account);
    }


    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override(ERC20PausableUpgradeable, ERC20SnapshotUpgradeable, ERC20Upgradeable) {
        require(!paused() || _checkWhitelist(from, _msgSender()), "transfers are paused");
        require(!_checkBlacklist(_msgSender(), from, to),  "blacklisted");
        super._beforeTokenTransfer(from, to, amount);
    }

    function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual override {
        _withdrawTxFee(from, to, amount);
        super._afterTokenTransfer(from, to, amount);        
    }

    function _checkWhitelist(address from, address sender) internal view returns(bool) {
        return hasRole(WHITELISTED_FROM_ROLE, from) || hasRole(WHITELISTED_SENDER_ROLE, sender);
    }

    function _checkBlacklist(address sender, address from, address to) internal view returns(bool) {
        return (
            hasRole(BLACKLISTED_ROLE, from) || 
            hasRole(BLACKLISTED_ROLE, sender) ||
            hasRole(BLACKLISTED_ROLE, to)
        );
    }

    function _withdrawTxFee(address from, address to, uint256 amount) internal virtual {
        if( 
            txFee == 0 ||                   // No txFee
            txFeeBeneficiary == to ||       // Send txFee itself
            txFeeBeneficiary == from ||     // Use the fee
            address(0) == from ||           // Mint
            address(0) == to ||             // Burn
            hasRole(TXFEE_WHITELISTED_ROLE, from) // Sender is txfee-whitelisted
        ){
            return;
        }
        uint256 txFeeAmount = amount * txFee / 1e18;
        _transfer(from, txFeeBeneficiary, txFeeAmount);
    }


    function _authorizeUpgrade(address /*newImplementation*/) internal virtual override {
        require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "admin role required");
    }




}

File 2 of 26 : AccessControlUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControlUpgradeable.sol";
import "../utils/ContextUpgradeable.sol";
import "../utils/StringsUpgradeable.sol";
import "../utils/introspection/ERC165Upgradeable.sol";
import "../proxy/utils/Initializable.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 AccessControlUpgradeable is Initializable, ContextUpgradeable, IAccessControlUpgradeable, ERC165Upgradeable {
    function __AccessControl_init() internal onlyInitializing {
    }

    function __AccessControl_init_unchained() internal onlyInitializing {
    }
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role, _msgSender());
        _;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IAccessControlUpgradeable).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 `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 ",
                        StringsUpgradeable.toHexString(uint160(account), 20),
                        " is missing role ",
                        StringsUpgradeable.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.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}

File 3 of 26 : Initializable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (proxy/utils/Initializable.sol)

pragma solidity ^0.8.0;

import "../../utils/AddressUpgradeable.sol";

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the
 * initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() initializer {}
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        // If the contract is initializing we ignore whether _initialized is set in order to support multiple
        // inheritance patterns, but we only do this in the context of a constructor, because in other contexts the
        // contract may have been reentered.
        require(_initializing ? _isConstructor() : !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }

    /**
     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
     * {initializer} modifier, directly or indirectly.
     */
    modifier onlyInitializing() {
        require(_initializing, "Initializable: contract is not initializing");
        _;
    }

    function _isConstructor() private view returns (bool) {
        return !AddressUpgradeable.isContract(address(this));
    }
}

File 4 of 26 : UUPSUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (proxy/utils/UUPSUpgradeable.sol)

pragma solidity ^0.8.0;

import "../../interfaces/draft-IERC1822Upgradeable.sol";
import "../ERC1967/ERC1967UpgradeUpgradeable.sol";
import "./Initializable.sol";

/**
 * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an
 * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.
 *
 * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is
 * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing
 * `UUPSUpgradeable` with a custom implementation of upgrades.
 *
 * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.
 *
 * _Available since v4.1._
 */
abstract contract UUPSUpgradeable is Initializable, IERC1822ProxiableUpgradeable, ERC1967UpgradeUpgradeable {
    function __UUPSUpgradeable_init() internal onlyInitializing {
    }

    function __UUPSUpgradeable_init_unchained() internal onlyInitializing {
    }
    /// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment
    address private immutable __self = address(this);

    /**
     * @dev Check that the execution is being performed through a delegatecall call and that the execution context is
     * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case
     * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a
     * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to
     * fail.
     */
    modifier onlyProxy() {
        require(address(this) != __self, "Function must be called through delegatecall");
        require(_getImplementation() == __self, "Function must be called through active proxy");
        _;
    }

    /**
     * @dev Check that the execution is not being performed through a delegate call. This allows a function to be
     * callable on the implementing contract but not through proxies.
     */
    modifier notDelegated() {
        require(address(this) == __self, "UUPSUpgradeable: must not be called through delegatecall");
        _;
    }

    /**
     * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the
     * implementation. It is used to validate that the this implementation remains valid after an upgrade.
     *
     * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks
     * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this
     * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.
     */
    function proxiableUUID() external view virtual override notDelegated returns (bytes32) {
        return _IMPLEMENTATION_SLOT;
    }

    /**
     * @dev Upgrade the implementation of the proxy to `newImplementation`.
     *
     * Calls {_authorizeUpgrade}.
     *
     * Emits an {Upgraded} event.
     */
    function upgradeTo(address newImplementation) external virtual onlyProxy {
        _authorizeUpgrade(newImplementation);
        _upgradeToAndCallUUPS(newImplementation, new bytes(0), false);
    }

    /**
     * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call
     * encoded in `data`.
     *
     * Calls {_authorizeUpgrade}.
     *
     * Emits an {Upgraded} event.
     */
    function upgradeToAndCall(address newImplementation, bytes memory data) external payable virtual onlyProxy {
        _authorizeUpgrade(newImplementation);
        _upgradeToAndCallUUPS(newImplementation, data, true);
    }

    /**
     * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by
     * {upgradeTo} and {upgradeToAndCall}.
     *
     * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.
     *
     * ```solidity
     * function _authorizeUpgrade(address) internal override onlyOwner {}
     * ```
     */
    function _authorizeUpgrade(address newImplementation) internal virtual;

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

File 5 of 26 : ERC20Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20Upgradeable.sol";
import "./extensions/IERC20MetadataUpgradeable.sol";
import "../../utils/ContextUpgradeable.sol";
import "../../proxy/utils/Initializable.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20Upgradeable is Initializable, ContextUpgradeable, IERC20Upgradeable, IERC20MetadataUpgradeable {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    function __ERC20_init(string memory name_, string memory symbol_) internal onlyInitializing {
        __ERC20_init_unchained(name_, symbol_);
    }

    function __ERC20_init_unchained(string memory name_, string memory symbol_) internal onlyInitializing {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, _allowances[owner][spender] + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        address owner = _msgSender();
        uint256 currentAllowance = _allowances[owner][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
        }
        _balances[to] += amount;

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Spend `amount` form the allowance of `owner` toward `spender`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[45] private __gap;
}

File 6 of 26 : ERC20PausableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/ERC20Pausable.sol)

pragma solidity ^0.8.0;

import "../ERC20Upgradeable.sol";
import "../../../security/PausableUpgradeable.sol";
import "../../../proxy/utils/Initializable.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 ERC20PausableUpgradeable is Initializable, ERC20Upgradeable, PausableUpgradeable {
    function __ERC20Pausable_init() internal onlyInitializing {
        __Pausable_init_unchained();
    }

    function __ERC20Pausable_init_unchained() internal onlyInitializing {
    }
    /**
     * @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");
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

File 7 of 26 : ERC20BurnableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol)

pragma solidity ^0.8.0;

import "../ERC20Upgradeable.sol";
import "../../../utils/ContextUpgradeable.sol";
import "../../../proxy/utils/Initializable.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 ERC20BurnableUpgradeable is Initializable, ContextUpgradeable, ERC20Upgradeable {
    function __ERC20Burnable_init() internal onlyInitializing {
    }

    function __ERC20Burnable_init_unchained() internal onlyInitializing {
    }
    /**
     * @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 {
        _spendAllowance(account, _msgSender(), amount);
        _burn(account, amount);
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

File 8 of 26 : ERC20SnapshotUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/ERC20Snapshot.sol)

pragma solidity ^0.8.0;

import "../ERC20Upgradeable.sol";
import "../../../utils/ArraysUpgradeable.sol";
import "../../../utils/CountersUpgradeable.sol";
import "../../../proxy/utils/Initializable.sol";

/**
 * @dev This contract extends an ERC20 token with a snapshot mechanism. When a snapshot is created, the balances and
 * total supply at the time are recorded for later access.
 *
 * This can be used to safely create mechanisms based on token balances such as trustless dividends or weighted voting.
 * In naive implementations it's possible to perform a "double spend" attack by reusing the same balance from different
 * accounts. By using snapshots to calculate dividends or voting power, those attacks no longer apply. It can also be
 * used to create an efficient ERC20 forking mechanism.
 *
 * Snapshots are created by the internal {_snapshot} function, which will emit the {Snapshot} event and return a
 * snapshot id. To get the total supply at the time of a snapshot, call the function {totalSupplyAt} with the snapshot
 * id. To get the balance of an account at the time of a snapshot, call the {balanceOfAt} function with the snapshot id
 * and the account address.
 *
 * NOTE: Snapshot policy can be customized by overriding the {_getCurrentSnapshotId} method. For example, having it
 * return `block.number` will trigger the creation of snapshot at the begining of each new block. When overridding this
 * function, be careful about the monotonicity of its result. Non-monotonic snapshot ids will break the contract.
 *
 * Implementing snapshots for every block using this method will incur significant gas costs. For a gas-efficient
 * alternative consider {ERC20Votes}.
 *
 * ==== Gas Costs
 *
 * Snapshots are efficient. Snapshot creation is _O(1)_. Retrieval of balances or total supply from a snapshot is _O(log
 * n)_ in the number of snapshots that have been created, although _n_ for a specific account will generally be much
 * smaller since identical balances in subsequent snapshots are stored as a single entry.
 *
 * There is a constant overhead for normal ERC20 transfers due to the additional snapshot bookkeeping. This overhead is
 * only significant for the first transfer that immediately follows a snapshot for a particular account. Subsequent
 * transfers will have normal cost until the next snapshot, and so on.
 */

abstract contract ERC20SnapshotUpgradeable is Initializable, ERC20Upgradeable {
    function __ERC20Snapshot_init() internal onlyInitializing {
    }

    function __ERC20Snapshot_init_unchained() internal onlyInitializing {
    }
    // Inspired by Jordi Baylina's MiniMeToken to record historical balances:
    // https://github.com/Giveth/minimd/blob/ea04d950eea153a04c51fa510b068b9dded390cb/contracts/MiniMeToken.sol

    using ArraysUpgradeable for uint256[];
    using CountersUpgradeable for CountersUpgradeable.Counter;

    // Snapshotted values have arrays of ids and the value corresponding to that id. These could be an array of a
    // Snapshot struct, but that would impede usage of functions that work on an array.
    struct Snapshots {
        uint256[] ids;
        uint256[] values;
    }

    mapping(address => Snapshots) private _accountBalanceSnapshots;
    Snapshots private _totalSupplySnapshots;

    // Snapshot ids increase monotonically, with the first value being 1. An id of 0 is invalid.
    CountersUpgradeable.Counter private _currentSnapshotId;

    /**
     * @dev Emitted by {_snapshot} when a snapshot identified by `id` is created.
     */
    event Snapshot(uint256 id);

    /**
     * @dev Creates a new snapshot and returns its snapshot id.
     *
     * Emits a {Snapshot} event that contains the same id.
     *
     * {_snapshot} is `internal` and you have to decide how to expose it externally. Its usage may be restricted to a
     * set of accounts, for example using {AccessControl}, or it may be open to the public.
     *
     * [WARNING]
     * ====
     * While an open way of calling {_snapshot} is required for certain trust minimization mechanisms such as forking,
     * you must consider that it can potentially be used by attackers in two ways.
     *
     * First, it can be used to increase the cost of retrieval of values from snapshots, although it will grow
     * logarithmically thus rendering this attack ineffective in the long term. Second, it can be used to target
     * specific accounts and increase the cost of ERC20 transfers for them, in the ways specified in the Gas Costs
     * section above.
     *
     * We haven't measured the actual numbers; if this is something you're interested in please reach out to us.
     * ====
     */
    function _snapshot() internal virtual returns (uint256) {
        _currentSnapshotId.increment();

        uint256 currentId = _getCurrentSnapshotId();
        emit Snapshot(currentId);
        return currentId;
    }

    /**
     * @dev Get the current snapshotId
     */
    function _getCurrentSnapshotId() internal view virtual returns (uint256) {
        return _currentSnapshotId.current();
    }

    /**
     * @dev Retrieves the balance of `account` at the time `snapshotId` was created.
     */
    function balanceOfAt(address account, uint256 snapshotId) public view virtual returns (uint256) {
        (bool snapshotted, uint256 value) = _valueAt(snapshotId, _accountBalanceSnapshots[account]);

        return snapshotted ? value : balanceOf(account);
    }

    /**
     * @dev Retrieves the total supply at the time `snapshotId` was created.
     */
    function totalSupplyAt(uint256 snapshotId) public view virtual returns (uint256) {
        (bool snapshotted, uint256 value) = _valueAt(snapshotId, _totalSupplySnapshots);

        return snapshotted ? value : totalSupply();
    }

    // Update balance and/or total supply snapshots before the values are modified. This is implemented
    // in the _beforeTokenTransfer hook, which is executed for _mint, _burn, and _transfer operations.
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, amount);

        if (from == address(0)) {
            // mint
            _updateAccountSnapshot(to);
            _updateTotalSupplySnapshot();
        } else if (to == address(0)) {
            // burn
            _updateAccountSnapshot(from);
            _updateTotalSupplySnapshot();
        } else {
            // transfer
            _updateAccountSnapshot(from);
            _updateAccountSnapshot(to);
        }
    }

    function _valueAt(uint256 snapshotId, Snapshots storage snapshots) private view returns (bool, uint256) {
        require(snapshotId > 0, "ERC20Snapshot: id is 0");
        require(snapshotId <= _getCurrentSnapshotId(), "ERC20Snapshot: nonexistent id");

        // When a valid snapshot is queried, there are three possibilities:
        //  a) The queried value was not modified after the snapshot was taken. Therefore, a snapshot entry was never
        //  created for this id, and all stored snapshot ids are smaller than the requested one. The value that corresponds
        //  to this id is the current one.
        //  b) The queried value was modified after the snapshot was taken. Therefore, there will be an entry with the
        //  requested id, and its value is the one to return.
        //  c) More snapshots were created after the requested one, and the queried value was later modified. There will be
        //  no entry for the requested id: the value that corresponds to it is that of the smallest snapshot id that is
        //  larger than the requested one.
        //
        // In summary, we need to find an element in an array, returning the index of the smallest value that is larger if
        // it is not found, unless said value doesn't exist (e.g. when all values are smaller). Arrays.findUpperBound does
        // exactly this.

        uint256 index = snapshots.ids.findUpperBound(snapshotId);

        if (index == snapshots.ids.length) {
            return (false, 0);
        } else {
            return (true, snapshots.values[index]);
        }
    }

    function _updateAccountSnapshot(address account) private {
        _updateSnapshot(_accountBalanceSnapshots[account], balanceOf(account));
    }

    function _updateTotalSupplySnapshot() private {
        _updateSnapshot(_totalSupplySnapshots, totalSupply());
    }

    function _updateSnapshot(Snapshots storage snapshots, uint256 currentValue) private {
        uint256 currentId = _getCurrentSnapshotId();
        if (_lastSnapshotId(snapshots.ids) < currentId) {
            snapshots.ids.push(currentId);
            snapshots.values.push(currentValue);
        }
    }

    function _lastSnapshotId(uint256[] storage ids) private view returns (uint256) {
        if (ids.length == 0) {
            return 0;
        } else {
            return ids[ids.length - 1];
        }
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[46] private __gap;
}

File 9 of 26 : ContextUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";

/**
 * @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 ContextUpgradeable is Initializable {
    function __Context_init() internal onlyInitializing {
    }

    function __Context_init_unchained() internal onlyInitializing {
    }
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

File 10 of 26 : LosslessERC20.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol";
import "./ILosslessController.sol";

/**
 * @notice Implements Lossless protocol
 & @dev Based on https://github.com/Lossless-Cash/lossless-v2/blob/master/contracts/LERC20.sol
 */
contract LosslessERC20 is ERC20Upgradeable {

    event LosslessAdminChanged(address indexed previousAdmin, address indexed newAdmin);
    event RecoveryAdminChangeProposed(address indexed candidate);
    event RecoveryAdminChanged(address indexed previousAdmin, address indexed newAdmin);
    event LosslessTurnOffProposed(uint256 turnOffDate);
    event LosslessTurnedOff();
    event LosslessTurnedOn();
    
    
    address public admin;
    address public recoveryAdmin;
    address private recoveryAdminCanditate;
    bytes32 private recoveryAdminKeyHash;
    uint256 public timelockPeriod;
    uint256 public losslessTurnOffTimestamp;
    bool public isLosslessTurnOffProposed;
    bool public isLosslessOn;
    ILosslessController public lossless;

    /**
     * @notice Initialize Lossless data
     * @param _admin Project owner’s administrative wallet address, this will be used in Lossless governance decision. Token creators should set a wallet that they are planning on using to interact with Lossless protocol.
     * @param _recoveryAdmin Project owner’s wallet that is used to change admin. Token creators should use multisig for this and keep it as secure as possible as this wallet allows changing the admin wallet.
     * @param _timelockPeriod Timelock period in seconds dedicated for turning Lossless turn off. In case project decides to turn off Lossless they would have to wait for this period after initially proposing to turn the Lossless functionality off. Recommended timelockPeriod is 24 hours or 86400 seconds. Any lower timelockPeriod will be considered unsafe and will be marked as such in Lossless platform.
     * @param _lossless Lossless protocol controller address. Should be set to Lossless Controller address. Lossless Controller address is different on different chains. Any other address will not allow the token to function properly. You can find appropriate controller address here: https://lossless-cash.gitbook.io/lossless/technical-reference/lossless-controller/deployments
     */
    function __LosslessERC20_init_unchained(address _admin, address _recoveryAdmin, uint256 _timelockPeriod, ILosslessController _lossless) internal onlyInitializing {
        admin = _admin;
        recoveryAdmin = _recoveryAdmin;
        timelockPeriod = _timelockPeriod;
        lossless = _lossless;
        if(address(lossless) != address(0)){
            isLosslessOn = true;
        }
    }

    // --- LOSSLESS modifiers ---

    modifier lssAprove(address spender, uint256 amount) {
        if (isLosslessOn) {
            lossless.beforeApprove(_msgSender(), spender, amount);
        } 
        _;
    }

    modifier lssTransfer(address recipient, uint256 amount) {
        if (isLosslessOn) {
            lossless.beforeTransfer(_msgSender(), recipient, amount);
        } 
        _;
    }

    modifier lssTransferFrom(address sender, address recipient, uint256 amount) {
        if (isLosslessOn) {
            lossless.beforeTransferFrom(_msgSender(), sender, recipient, amount);
        }
        _;
    }

    modifier lssIncreaseAllowance(address spender, uint256 addedValue) {
        if (isLosslessOn) {
            lossless.beforeIncreaseAllowance(_msgSender(), spender, addedValue);
        }
        _;
    }

    modifier lssDecreaseAllowance(address spender, uint256 subtractedValue) {
        if (isLosslessOn) {
            lossless.beforeDecreaseAllowance(_msgSender(), spender, subtractedValue);
        }
        _;
    }

    modifier onlyRecoveryAdmin() {
        require(_msgSender() == recoveryAdmin, "LosslessERC20: Must be recovery admin");
        _;
    }


    // --- LOSSLESS management ---

    function getAdmin() external view returns (address) {
        return admin;
    }

    function transferOutBlacklistedFunds(address[] calldata from) external {
        require(_msgSender() == address(lossless), "LERC20: Only lossless contract");
        for (uint i = 0; i < from.length; i++) {
            _transfer(from[i], address(lossless), balanceOf(from[i]));
        }
    }

    function setLosslessAdmin(address newAdmin) external onlyRecoveryAdmin {
        require(newAdmin != address(0), "LERC20: Cannot be zero address");
        emit LosslessAdminChanged(admin, newAdmin);
        admin = newAdmin;
    }

    function transferRecoveryAdminOwnership(address candidate, bytes32 keyHash) external onlyRecoveryAdmin {
        require(candidate != address(0), "LERC20: Cannot be zero address");
        recoveryAdminCanditate = candidate;
        recoveryAdminKeyHash = keyHash;
        emit RecoveryAdminChangeProposed(candidate);
    }

    function acceptRecoveryAdminOwnership(bytes memory key) external {
        require(_msgSender() == recoveryAdminCanditate, "LERC20: Must be canditate");
        require(keccak256(key) == recoveryAdminKeyHash, "LERC20: Invalid key");
        emit RecoveryAdminChanged(recoveryAdmin, recoveryAdminCanditate);
        recoveryAdmin = recoveryAdminCanditate;
        recoveryAdminCanditate = address(0);
        recoveryAdminKeyHash = bytes32(0);
    }

    function proposeLosslessTurnOff() external onlyRecoveryAdmin {
        losslessTurnOffTimestamp = block.timestamp + timelockPeriod;
        isLosslessTurnOffProposed = true;
        emit LosslessTurnOffProposed(losslessTurnOffTimestamp);
    }

    function executeLosslessTurnOff() external onlyRecoveryAdmin {
        require(isLosslessTurnOffProposed, "LERC20: TurnOff not proposed");
        require(losslessTurnOffTimestamp <= block.timestamp, "LERC20: Time lock in progress");
        isLosslessOn = false;
        isLosslessTurnOffProposed = false;
        emit LosslessTurnedOff();
    }

    function executeLosslessTurnOn() external onlyRecoveryAdmin {
        isLosslessTurnOffProposed = false;
        isLosslessOn = true;
        emit LosslessTurnedOn();
    }

    // --- ERC20 overriden methods ---

    function approve(address spender, uint256 amount) public virtual override lssAprove(spender, amount) returns (bool) {
        return super.approve(spender, amount);
    }

    function increaseAllowance(address spender, uint256 addedValue) public virtual override lssIncreaseAllowance(spender, addedValue) returns (bool) {
        return super.increaseAllowance(spender, addedValue);
    }

    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual override lssDecreaseAllowance(spender, subtractedValue) returns (bool) {
        return super.decreaseAllowance(spender, subtractedValue);
    }

    function transfer(address to, uint256 amount) public virtual override lssTransfer(to, amount) returns (bool) {
        return super.transfer(to, amount);
    }

    function transferFrom(address from, address to, uint256 amount) public virtual override lssTransferFrom(from, to, amount) returns (bool) {
        return super.transferFrom(from, to, amount);
    }


    uint256[50] private __gap;
}

File 11 of 26 : IAccessControlUpgradeable.sol
// 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 IAccessControlUpgradeable {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

File 12 of 26 : StringsUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library StringsUpgradeable {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

File 13 of 26 : ERC165Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165Upgradeable.sol";
import "../../proxy/utils/Initializable.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 ERC165Upgradeable is Initializable, IERC165Upgradeable {
    function __ERC165_init() internal onlyInitializing {
    }

    function __ERC165_init_unchained() internal onlyInitializing {
    }
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165Upgradeable).interfaceId;
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

File 14 of 26 : AddressUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library AddressUpgradeable {
    /**
     * @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 functionCall(target, data, "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");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(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) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason 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 {
            // 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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 15 of 26 : IERC165Upgradeable.sol
// 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 IERC165Upgradeable {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 16 of 26 : draft-IERC1822Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol)

pragma solidity ^0.8.0;

/**
 * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified
 * proxy whose upgrades are fully controlled by the current implementation.
 */
interface IERC1822ProxiableUpgradeable {
    /**
     * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation
     * address.
     *
     * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks
     * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this
     * function revert if invoked through a proxy.
     */
    function proxiableUUID() external view returns (bytes32);
}

File 17 of 26 : ERC1967UpgradeUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (proxy/ERC1967/ERC1967Upgrade.sol)

pragma solidity ^0.8.2;

import "../beacon/IBeaconUpgradeable.sol";
import "../../interfaces/draft-IERC1822Upgradeable.sol";
import "../../utils/AddressUpgradeable.sol";
import "../../utils/StorageSlotUpgradeable.sol";
import "../utils/Initializable.sol";

/**
 * @dev This abstract contract provides getters and event emitting update functions for
 * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.
 *
 * _Available since v4.1._
 *
 * @custom:oz-upgrades-unsafe-allow delegatecall
 */
abstract contract ERC1967UpgradeUpgradeable is Initializable {
    function __ERC1967Upgrade_init() internal onlyInitializing {
    }

    function __ERC1967Upgrade_init_unchained() internal onlyInitializing {
    }
    // This is the keccak-256 hash of "eip1967.proxy.rollback" subtracted by 1
    bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;

    /**
     * @dev Storage slot with the address of the current implementation.
     * This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is
     * validated in the constructor.
     */
    bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;

    /**
     * @dev Emitted when the implementation is upgraded.
     */
    event Upgraded(address indexed implementation);

    /**
     * @dev Returns the current implementation address.
     */
    function _getImplementation() internal view returns (address) {
        return StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value;
    }

    /**
     * @dev Stores a new address in the EIP1967 implementation slot.
     */
    function _setImplementation(address newImplementation) private {
        require(AddressUpgradeable.isContract(newImplementation), "ERC1967: new implementation is not a contract");
        StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
    }

    /**
     * @dev Perform implementation upgrade
     *
     * Emits an {Upgraded} event.
     */
    function _upgradeTo(address newImplementation) internal {
        _setImplementation(newImplementation);
        emit Upgraded(newImplementation);
    }

    /**
     * @dev Perform implementation upgrade with additional setup call.
     *
     * Emits an {Upgraded} event.
     */
    function _upgradeToAndCall(
        address newImplementation,
        bytes memory data,
        bool forceCall
    ) internal {
        _upgradeTo(newImplementation);
        if (data.length > 0 || forceCall) {
            _functionDelegateCall(newImplementation, data);
        }
    }

    /**
     * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.
     *
     * Emits an {Upgraded} event.
     */
    function _upgradeToAndCallUUPS(
        address newImplementation,
        bytes memory data,
        bool forceCall
    ) internal {
        // Upgrades from old implementations will perform a rollback test. This test requires the new
        // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing
        // this special case will break upgrade paths from old UUPS implementation to new ones.
        if (StorageSlotUpgradeable.getBooleanSlot(_ROLLBACK_SLOT).value) {
            _setImplementation(newImplementation);
        } else {
            try IERC1822ProxiableUpgradeable(newImplementation).proxiableUUID() returns (bytes32 slot) {
                require(slot == _IMPLEMENTATION_SLOT, "ERC1967Upgrade: unsupported proxiableUUID");
            } catch {
                revert("ERC1967Upgrade: new implementation is not UUPS");
            }
            _upgradeToAndCall(newImplementation, data, forceCall);
        }
    }

    /**
     * @dev Storage slot with the admin of the contract.
     * This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1, and is
     * validated in the constructor.
     */
    bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;

    /**
     * @dev Emitted when the admin account has changed.
     */
    event AdminChanged(address previousAdmin, address newAdmin);

    /**
     * @dev Returns the current admin.
     */
    function _getAdmin() internal view returns (address) {
        return StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value;
    }

    /**
     * @dev Stores a new address in the EIP1967 admin slot.
     */
    function _setAdmin(address newAdmin) private {
        require(newAdmin != address(0), "ERC1967: new admin is the zero address");
        StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value = newAdmin;
    }

    /**
     * @dev Changes the admin of the proxy.
     *
     * Emits an {AdminChanged} event.
     */
    function _changeAdmin(address newAdmin) internal {
        emit AdminChanged(_getAdmin(), newAdmin);
        _setAdmin(newAdmin);
    }

    /**
     * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.
     * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor.
     */
    bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;

    /**
     * @dev Emitted when the beacon is upgraded.
     */
    event BeaconUpgraded(address indexed beacon);

    /**
     * @dev Returns the current beacon.
     */
    function _getBeacon() internal view returns (address) {
        return StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value;
    }

    /**
     * @dev Stores a new beacon in the EIP1967 beacon slot.
     */
    function _setBeacon(address newBeacon) private {
        require(AddressUpgradeable.isContract(newBeacon), "ERC1967: new beacon is not a contract");
        require(
            AddressUpgradeable.isContract(IBeaconUpgradeable(newBeacon).implementation()),
            "ERC1967: beacon implementation is not a contract"
        );
        StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value = newBeacon;
    }

    /**
     * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does
     * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).
     *
     * Emits a {BeaconUpgraded} event.
     */
    function _upgradeBeaconToAndCall(
        address newBeacon,
        bytes memory data,
        bool forceCall
    ) internal {
        _setBeacon(newBeacon);
        emit BeaconUpgraded(newBeacon);
        if (data.length > 0 || forceCall) {
            _functionDelegateCall(IBeaconUpgradeable(newBeacon).implementation(), data);
        }
    }

    /**
     * @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) private returns (bytes memory) {
        require(AddressUpgradeable.isContract(target), "Address: delegate call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return AddressUpgradeable.verifyCallResult(success, returndata, "Address: low-level delegate call failed");
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

File 18 of 26 : IBeaconUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)

pragma solidity ^0.8.0;

/**
 * @dev This is the interface that {BeaconProxy} expects of its beacon.
 */
interface IBeaconUpgradeable {
    /**
     * @dev Must return an address that can be used as a delegate call target.
     *
     * {BeaconProxy} will check that this address is a contract.
     */
    function implementation() external view returns (address);
}

File 19 of 26 : StorageSlotUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/StorageSlot.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for reading and writing primitive types to specific storage slots.
 *
 * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
 * This library helps with reading and writing to such slots without the need for inline assembly.
 *
 * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
 *
 * Example usage to set ERC1967 implementation slot:
 * ```
 * contract ERC1967 {
 *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
 *
 *     function _getImplementation() internal view returns (address) {
 *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
 *     }
 *
 *     function _setImplementation(address newImplementation) internal {
 *         require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract");
 *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
 *     }
 * }
 * ```
 *
 * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._
 */
library StorageSlotUpgradeable {
    struct AddressSlot {
        address value;
    }

    struct BooleanSlot {
        bool value;
    }

    struct Bytes32Slot {
        bytes32 value;
    }

    struct Uint256Slot {
        uint256 value;
    }

    /**
     * @dev Returns an `AddressSlot` with member `value` located at `slot`.
     */
    function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BooleanSlot` with member `value` located at `slot`.
     */
    function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.
     */
    function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Uint256Slot` with member `value` located at `slot`.
     */
    function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
        assembly {
            r.slot := slot
        }
    }
}

File 20 of 26 : IERC20Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20Upgradeable {
    /**
     * @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);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 21 of 26 : IERC20MetadataUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20Upgradeable.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20MetadataUpgradeable is IERC20Upgradeable {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

File 22 of 26 : PausableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.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 PausableUpgradeable is Initializable, ContextUpgradeable {
    /**
     * @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.
     */
    function __Pausable_init() internal onlyInitializing {
        __Pausable_init_unchained();
    }

    function __Pausable_init_unchained() internal onlyInitializing {
        _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());
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}

File 23 of 26 : ArraysUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Arrays.sol)

pragma solidity ^0.8.0;

import "./math/MathUpgradeable.sol";

/**
 * @dev Collection of functions related to array types.
 */
library ArraysUpgradeable {
    /**
     * @dev Searches a sorted `array` and returns the first index that contains
     * a value greater or equal to `element`. If no such index exists (i.e. all
     * values in the array are strictly less than `element`), the array length is
     * returned. Time complexity O(log n).
     *
     * `array` is expected to be sorted in ascending order, and to contain no
     * repeated elements.
     */
    function findUpperBound(uint256[] storage array, uint256 element) internal view returns (uint256) {
        if (array.length == 0) {
            return 0;
        }

        uint256 low = 0;
        uint256 high = array.length;

        while (low < high) {
            uint256 mid = MathUpgradeable.average(low, high);

            // Note that mid will always be strictly less than high (i.e. it will be a valid array index)
            // because Math.average rounds down (it does integer division with truncation).
            if (array[mid] > element) {
                high = mid;
            } else {
                low = mid + 1;
            }
        }

        // At this point `low` is the exclusive upper bound. We will return the inclusive upper bound.
        if (low > 0 && array[low - 1] == element) {
            return low - 1;
        } else {
            return low;
        }
    }
}

File 24 of 26 : CountersUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library CountersUpgradeable {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 25 of 26 : MathUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library MathUpgradeable {
    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a / b + (a % b == 0 ? 0 : 1);
    }
}

File 26 of 26 : ILosslessController.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;


// Based on https://github.com/Lossless-Cash/lossless-v2/blob/master/contracts/LERC20.sol#L33
interface ILosslessController {
    function beforeTransfer(address sender, address recipient, uint256 amount) external;

    function beforeTransferFrom(address msgSender, address sender, address recipient, uint256 amount) external;

    function beforeApprove(address sender, address spender, uint256 amount) external;

    function beforeIncreaseAllowance(address msgSender, address spender, uint256 addedValue) external;

    function beforeDecreaseAllowance(address msgSender, address spender, uint256 subtractedValue) external;
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 1000000
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"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":"beacon","type":"address"}],"name":"BeaconUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":true,"internalType":"address","name":"newAdmin","type":"address"}],"name":"LosslessAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"turnOffDate","type":"uint256"}],"name":"LosslessTurnOffProposed","type":"event"},{"anonymous":false,"inputs":[],"name":"LosslessTurnedOff","type":"event"},{"anonymous":false,"inputs":[],"name":"LosslessTurnedOn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"candidate","type":"address"}],"name":"RecoveryAdminChangeProposed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":true,"internalType":"address","name":"newAdmin","type":"address"}],"name":"RecoveryAdminChanged","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":false,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Snapshot","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"inputs":[],"name":"BLACKLISTED_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BLACKLIST_MANAGER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAUSE_MANAGER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SNAPSHOT_MANAGER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TXFEE_MANAGER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TXFEE_WHITELISTED_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELISTED_FROM_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELISTED_SENDER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"key","type":"bytes"}],"name":"acceptRecoveryAdminOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"snapshotId","type":"uint256"}],"name":"balanceOfAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentSnapshotId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"executeLosslessTurnOff","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"executeLosslessTurnOn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAdmin","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":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_admin","type":"address"},{"internalType":"address","name":"_recoveryAdmin","type":"address"},{"internalType":"uint256","name":"_timelockPeriod","type":"uint256"},{"internalType":"contract ILosslessController","name":"_lossless","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isLosslessOn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isLosslessTurnOffProposed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lossless","outputs":[{"internalType":"contract ILosslessController","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"losslessTurnOffTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","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":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proposeLosslessTurnOff","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"proxiableUUID","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"recoveryAdmin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"setLosslessAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_txFee","type":"uint256"},{"internalType":"address","name":"_txFeeBeneficiary","type":"address"}],"name":"setupTxFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"snapshot","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":"timelockPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"snapshotId","type":"uint256"}],"name":"totalSupplyAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"from","type":"address[]"}],"name":"transferOutBlacklistedFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"candidate","type":"address"},{"internalType":"bytes32","name":"keyHash","type":"bytes32"}],"name":"transferRecoveryAdminOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"txFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"txFeeBeneficiary","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"}]

60a0604052306080523480156200001557600080fd5b50600054610100900460ff16620000335760005460ff16156200003d565b6200003d62000185565b620000a65760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084015b60405180910390fd5b600054610100900460ff16158015620000c9576000805461ffff19166101011790555b604080516020808201835260008083528351918201909352828152620000f292808080620001a3565b6200010d600080516020620062578339815191523362000267565b62000128600080516020620062378339815191523362000267565b62000143600080516020620061d78339815191523362000267565b6200015e600080516020620061f78339815191523362000267565b6200016b60003362000267565b80156200017e576000805461ff00191690555b5062000a11565b60006200019d30620002fd60201b6200255a1760201c565b15905090565b600054610100900460ff16620001ff5760405162461bcd60e51b815260206004820152602b60248201526000805160206200621783398151915260448201526a6e697469616c697a696e6760a81b60648201526084016200009d565b620002096200030c565b620002136200030c565b6200021d6200036a565b620002298686620003d3565b620002336200030c565b6200023d6200030c565b620002476200030c565b620002558484848462000451565b6200025f62000526565b505050505050565b7f548c7f0307ab2a7ea894e5c7e8c5353cc750bb9385ee2e945f189a9a83daa8ed8203620002e25760405162461bcd60e51b815260206004820152602160248201527f63616e206e6f742072656e6f756e636520626c61636b6c697374656420726f6c6044820152606560f81b60648201526084016200009d565b620002f98282620006ac60201b620025761760201c565b5050565b6001600160a01b03163b151590565b600054610100900460ff16620003685760405162461bcd60e51b815260206004820152602b60248201526000805160206200621783398151915260448201526a6e697469616c697a696e6760a81b60648201526084016200009d565b565b600054610100900460ff16620003c65760405162461bcd60e51b815260206004820152602b60248201526000805160206200621783398151915260448201526a6e697469616c697a696e6760a81b60648201526084016200009d565b61012d805460ff19169055565b600054610100900460ff166200042f5760405162461bcd60e51b815260206004820152602b60248201526000805160206200621783398151915260448201526a6e697469616c697a696e6760a81b60648201526084016200009d565b60fe6200043d838262000945565b5060ff6200044c828262000945565b505050565b600054610100900460ff16620004ad5760405162461bcd60e51b815260206004820152602b60248201526000805160206200621783398151915260448201526a6e697469616c697a696e6760a81b60648201526084016200009d565b6101f580546001600160a01b03199081166001600160a01b03878116919091179092556101f680549091168583161790556101f98390556101fb805462010000600160b01b03191662010000848416810291909117918290559004161562000520576101fb805461ff0019166101001790555b50505050565b600054610100900460ff16620005825760405162461bcd60e51b815260206004820152602b60248201526000805160206200621783398151915260448201526a6e697469616c697a696e6760a81b60648201526084016200009d565b6200058f6000336200072a565b620005aa60008051602062006257833981519152336200072a565b620005c560008051602062006237833981519152336200072a565b620005e0600080516020620061d7833981519152336200072a565b620005fb600080516020620061f7833981519152336200072a565b620006367fce108bcc5e0f50fe603649304cbbbd94de794a404db82d884c0afc9ba9328e616000805160206200623783398151915262000736565b620006717fe1ac655ab58995133a870d1fd307ddc1d624c8ad919a09e67867a7a1483e439a6000805160206200623783398151915262000736565b620003687f605d3c80d2295e9de2e3afbe54c07aa6189c069e6aa987c57ed1f075668df0ad600080516020620061f783398151915262000736565b6001600160a01b03811633146200071e5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016200009d565b620002f9828262000781565b620002f9828262000805565b600082815260c96020526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b600082815260c9602090815260408083206001600160a01b038516845290915290205460ff1615620002f957600082815260c9602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600082815260c9602090815260408083206001600160a01b038516845290915290205460ff16620002f957600082815260c9602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620008653390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620008d457607f821691505b602082108103620008f557634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200044c57600081815260208120601f850160051c81016020861015620009245750805b601f850160051c820191505b818110156200025f5782815560010162000930565b81516001600160401b03811115620009615762000961620008a9565b6200097981620009728454620008bf565b84620008fb565b602080601f831160018114620009b15760008415620009985750858301515b600019600386901b1c1916600185901b1785556200025f565b600085815260208120601f198616915b82811015620009e257888601518255948401946001909101908401620009c1565b508582101562000a015787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60805161578e62000a49600039600081816110f5015281816111a5015281816113f1015281816114a101526115e6015261578e6000f3fe60806040526004361061038c5760003560e01c80636e9960c3116101dc578063a9059cbb11610102578063cf820461116100a0578063d84f91e81161006f578063d84f91e814610b4f578063dd62ed3e14610b83578063efab831c14610bd6578063f851a44014610bf157600080fd5b8063cf82046114610acf578063d539139314610ae6578063d547741f14610b1a578063d6e242b814610b3a57600080fd5b8063b38fe957116100dc578063b38fe95714610a5a578063b5c2287714610a6f578063be20309414610a8f578063ccfa214f14610aaf57600080fd5b8063a9059cbb146109d2578063aa74a34a146109f2578063b30edc9514610a2657600080fd5b806393310ffe1161017a5780639711715a116101495780639711715a14610968578063981b24d01461097d578063a217fddf1461099d578063a457c2d7146109b257600080fd5b806393310ffe146108fe578063936af9111461091e57806395d89b411461093e578063970875ce1461095357600080fd5b806379cc6790116101b657806379cc6790146108425780637c51a28b146108625780638456cb591461089657806391d14854146108ab57600080fd5b80636e9960c31461079f57806370a08231146107cb578063731ce8fc1461080e57600080fd5b806339509351116102c15780634f1ef2861161025f5780635c975abb1161022e5780635c975abb1461070d5780635f6529a31461072657806361086b001461075457806362b199c51461076b57600080fd5b80634f1ef286146106b057806352d1902d146106c357806354e29014146106d85780635b8a194a146106f857600080fd5b806340c10f191161029b57806340c10f191461061c578063410b24241461063c57806342966c68146106705780634ee2cd7e1461069057600080fd5b806339509351146105b95780633bcac608146105d95780633f4ba83a1461060757600080fd5b80632baa3c9e1161032e578063313ce56711610308578063313ce5671461050457806334f6ebf51461052057806336568abe146105795780633659cfe61461059957600080fd5b80632baa3c9e146104ab5780632ecaf675146104cd5780632f2ff15d146104e457600080fd5b806318160ddd1161036a57806318160ddd146104085780631f98ac0a1461042757806323b872dd1461045b578063248a9ca31461047b57600080fd5b806301ffc9a71461039157806306fdde03146103c6578063095ea7b3146103e8575b600080fd5b34801561039d57600080fd5b506103b16103ac366004614f4d565b610c1f565b60405190151581526020015b60405180910390f35b3480156103d257600080fd5b506103db610cb8565b6040516103bd9190614fbb565b3480156103f457600080fd5b506103b161040336600461502e565b610d4a565b34801561041457600080fd5b5060fd545b6040519081526020016103bd565b34801561043357600080fd5b506104197f605d3c80d2295e9de2e3afbe54c07aa6189c069e6aa987c57ed1f075668df0ad81565b34801561046757600080fd5b506103b161047636600461505a565b610d5d565b34801561048757600080fd5b5061041961049636600461509b565b600090815260c9602052604090206001015490565b3480156104b757600080fd5b506104cb6104c63660046150b4565b610d72565b005b3480156104d957600080fd5b506104196101f95481565b3480156104f057600080fd5b506104cb6104ff3660046150d1565b610f42565b34801561051057600080fd5b50604051601281526020016103bd565b34801561052c57600080fd5b506101fb546105549062010000900473ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016103bd565b34801561058557600080fd5b506104cb6105943660046150d1565b611025565b3480156105a557600080fd5b506104cb6105b43660046150b4565b6110de565b3480156105c557600080fd5b506103b16105d436600461502e565b6112e3565b3480156105e557600080fd5b5061022f546105549073ffffffffffffffffffffffffffffffffffffffff1681565b34801561061357600080fd5b506104cb6112ef565b34801561062857600080fd5b506104cb61063736600461502e565b611322565b34801561064857600080fd5b506104197ff988e4fb62b8e14f4820fed03192306ddf4d7dbfa215595ba1c6ba4b76b369ee81565b34801561067c57600080fd5b506104cb61068b36600461509b565b61135c565b34801561069c57600080fd5b506104196106ab36600461502e565b611366565b6104cb6106be3660046151db565b6113da565b3480156106cf57600080fd5b506104196115cc565b3480156106e457600080fd5b506104cb6106f33660046150d1565b6116b8565b34801561070457600080fd5b506104cb6117a4565b34801561071957600080fd5b5061012d5460ff166103b1565b34801561073257600080fd5b506101f6546105549073ffffffffffffffffffffffffffffffffffffffff1681565b34801561076057600080fd5b506104196101fa5481565b34801561077757600080fd5b506104197f548c7f0307ab2a7ea894e5c7e8c5353cc750bb9385ee2e945f189a9a83daa8ed81565b3480156107ab57600080fd5b506101f55473ffffffffffffffffffffffffffffffffffffffff16610554565b3480156107d757600080fd5b506104196107e63660046150b4565b73ffffffffffffffffffffffffffffffffffffffff16600090815260fb602052604090205490565b34801561081a57600080fd5b506104197fce108bcc5e0f50fe603649304cbbbd94de794a404db82d884c0afc9ba9328e6181565b34801561084e57600080fd5b506104cb61085d36600461502e565b6118ba565b34801561086e57600080fd5b506104197fbf2bed86c8a3194367aaafe806055a320c3de06a2c0e1a2a013547ff4643cad081565b3480156108a257600080fd5b506104cb6118cf565b3480156108b757600080fd5b506103b16108c63660046150d1565b600091825260c96020908152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b34801561090a57600080fd5b506104cb61091936600461502e565b611902565b34801561092a57600080fd5b506104cb61093936600461522b565b611ab4565b34801561094a57600080fd5b506103db611be8565b34801561095f57600080fd5b50610419611bf7565b34801561097457600080fd5b506104cb611c06565b34801561098957600080fd5b5061041961099836600461509b565b611c39565b3480156109a957600080fd5b50610419600081565b3480156109be57600080fd5b506103b16109cd36600461502e565b611c5b565b3480156109de57600080fd5b506103b16109ed36600461502e565b611c67565b3480156109fe57600080fd5b506104197fe1ac655ab58995133a870d1fd307ddc1d624c8ad919a09e67867a7a1483e439a81565b348015610a3257600080fd5b506104197ff4e74f9890fc31a3d6250913d0bf47a6226fb5344963481dc4e4e7d19e88166881565b348015610a6657600080fd5b506104cb611c73565b348015610a7b57600080fd5b506104cb610a8a3660046152a0565b611e5f565b348015610a9b57600080fd5b506104cb610aaa3660046152d5565b61200c565b348015610abb57600080fd5b506101fb546103b190610100900460ff1681565b348015610adb57600080fd5b5061041961022e5481565b348015610af257600080fd5b506104197f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b348015610b2657600080fd5b506104cb610b353660046150d1565b6123fa565b348015610b4657600080fd5b506104cb612420565b348015610b5b57600080fd5b506104197f356a809dfdea9198dd76fb76bf6d403ecf13ea675eb89e1eda2db2c4a4676a2681565b348015610b8f57600080fd5b50610419610b9e366004615328565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260fc6020908152604080832093909416825291909152205490565b348015610be257600080fd5b506101fb546103b19060ff1681565b348015610bfd57600080fd5b506101f5546105549073ffffffffffffffffffffffffffffffffffffffff1681565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b000000000000000000000000000000000000000000000000000000001480610cb257507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b606060fe8054610cc790615356565b80601f0160208091040260200160405190810160405280929190818152602001828054610cf390615356565b8015610d405780601f10610d1557610100808354040283529160200191610d40565b820191906000526020600020905b815481529060010190602001808311610d2357829003601f168201915b5050505050905090565b6000610d568383612625565b9392505050565b6000610d6a8484846126fd565b949350505050565b6101f65473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610e35576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f4c6f73736c65737345524332303a204d757374206265207265636f766572792060448201527f61646d696e00000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8116610eb2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f4c45524332303a2043616e6e6f74206265207a65726f206164647265737300006044820152606401610e2c565b6101f55460405173ffffffffffffffffffffffffffffffffffffffff8084169216907f5865ee538f2b40de67a2fc2c27facc515b4facd8f5fec548e0089089b6e2a72c90600090a36101f580547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b73ffffffffffffffffffffffffffffffffffffffff811660009081527f51f5b7346d0af1c04933b933f7763b58521db671b12e331fbcfc4a75b05b5c3b602052604090205460ff1615611017576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f63616e206e6f742061737369676e20726f6c6520746f20626c61636b6c69737460448201527f65640000000000000000000000000000000000000000000000000000000000006064820152608401610e2c565b61102182826127ea565b5050565b7f548c7f0307ab2a7ea894e5c7e8c5353cc750bb9385ee2e945f189a9a83daa8ed82036110d4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f63616e206e6f742072656e6f756e636520626c61636b6c697374656420726f6c60448201527f65000000000000000000000000000000000000000000000000000000000000006064820152608401610e2c565b6110218282612576565b73ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001630036111a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201527f64656c656761746563616c6c00000000000000000000000000000000000000006064820152608401610e2c565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166112187f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16146112bb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201527f6163746976652070726f787900000000000000000000000000000000000000006064820152608401610e2c565b6112c481612810565b604080516000808252602082019092526112e091839190612881565b50565b6000610d568383612a80565b7f356a809dfdea9198dd76fb76bf6d403ecf13ea675eb89e1eda2db2c4a4676a2661131a8133612b58565b6112e0612c2a565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661134d8133612b58565b6113578383612d08565b505050565b6112e03382612e3c565b73ffffffffffffffffffffffffffffffffffffffff821660009081526101c3602052604081208190819061139b90859061303c565b91509150816113cf5773ffffffffffffffffffffffffffffffffffffffff8516600090815260fb60205260409020546113d1565b805b95945050505050565b73ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016300361149f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201527f64656c656761746563616c6c00000000000000000000000000000000000000006064820152608401610e2c565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166115147f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16146115b7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201527f6163746976652070726f787900000000000000000000000000000000000000006064820152608401610e2c565b6115c082612810565b61102182826001612881565b60003073ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614611693576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c00000000000000006064820152608401610e2c565b507f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc90565b7ff4e74f9890fc31a3d6250913d0bf47a6226fb5344963481dc4e4e7d19e8816686116e38133612b58565b670de0b6b3a7640000831115611755576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f62616420747820666565000000000000000000000000000000000000000000006044820152606401610e2c565b5061022e9190915561022f80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff909216919091179055565b6101f65473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611862576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f4c6f73736c65737345524332303a204d757374206265207265636f766572792060448201527f61646d696e0000000000000000000000000000000000000000000000000000006064820152608401610e2c565b6101fb80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000166101001790556040517fa4a40bdd0a809720a61b44f1b3497ce7dad87741a0ba3b961c2e65e645060e7090600090a1565b6118c582338361316d565b6110218282612e3c565b7f356a809dfdea9198dd76fb76bf6d403ecf13ea675eb89e1eda2db2c4a4676a266118fa8133612b58565b6112e0613244565b6101f65473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146119c0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f4c6f73736c65737345524332303a204d757374206265207265636f766572792060448201527f61646d696e0000000000000000000000000000000000000000000000000000006064820152608401610e2c565b73ffffffffffffffffffffffffffffffffffffffff8216611a3d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f4c45524332303a2043616e6e6f74206265207a65726f206164647265737300006044820152606401610e2c565b6101f780547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff84169081179091556101f88290556040517fc5666bfdfb79a4b0b4abdbc565d6e9937a263233b2b378c55132d34dc5784a3690600090a25050565b6101fb5462010000900473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611b52576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f4c45524332303a204f6e6c79206c6f73736c65737320636f6e747261637400006044820152606401610e2c565b60005b8181101561135757611bd6838383818110611b7257611b726153a9565b9050602002016020810190611b8791906150b4565b6101fb5462010000900473ffffffffffffffffffffffffffffffffffffffff16611bd1868686818110611bbc57611bbc6153a9565b90506020020160208101906107e691906150b4565b613306565b80611be081615407565b915050611b55565b606060ff8054610cc790615356565b6000611c016135ca565b905090565b7fbf2bed86c8a3194367aaafe806055a320c3de06a2c0e1a2a013547ff4643cad0611c318133612b58565b6110216135d6565b6000806000611c4a846101c461303c565b9150915081610d565760fd54610d6a565b6000610d568383613631565b6000610d568383613709565b6101f65473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611d31576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f4c6f73736c65737345524332303a204d757374206265207265636f766572792060448201527f61646d696e0000000000000000000000000000000000000000000000000000006064820152608401610e2c565b6101fb5460ff16611d9e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4c45524332303a205475726e4f6666206e6f742070726f706f736564000000006044820152606401610e2c565b426101fa541115611e0b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f4c45524332303a2054696d65206c6f636b20696e2070726f67726573730000006044820152606401610e2c565b6101fb80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00001690556040517f5b534e2716e5ad68b9f67521378f8199a7ceb9d3f6f354275dad33fe42cf710a90600090a1565b6101f75473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611ef7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4c45524332303a204d7573742062652063616e646974617465000000000000006044820152606401610e2c565b6101f8548151602083012014611f69576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4c45524332303a20496e76616c6964206b6579000000000000000000000000006044820152606401610e2c565b6101f7546101f65460405173ffffffffffffffffffffffffffffffffffffffff92831692909116907f1c7f382531621f02aefb4212478bba8871ffad078202bdbba87f3e21d639aebb90600090a3506101f780546101f680547fffffffffffffffffffffffff000000000000000000000000000000000000000090811673ffffffffffffffffffffffffffffffffffffffff84161790915516905560006101f855565b600054610100900460ff166120275760005460ff161561202b565b303b155b6120b7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610e2c565b600054610100900460ff161580156120f657600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000166101011790555b73ffffffffffffffffffffffffffffffffffffffff8516612173576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f61646d696e20726571756972656420666f72204c6f73736c65737300000000006044820152606401610e2c565b73ffffffffffffffffffffffffffffffffffffffff8416612216576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f7265636f7665727941646d696e20726571756972656420666f72204c6f73736c60448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610e2c565b73ffffffffffffffffffffffffffffffffffffffff82166122b9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f6c6f73736c65737320636f6e74726f6c6c657220726571756972656420666f7260448201527f204c6f73736c65737300000000000000000000000000000000000000000000006064820152608401610e2c565b6201518083101561234c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f74696d656c6f636b506572696f642073686f756c64206265206772656174657260448201527f207468616e2032342068727300000000000000000000000000000000000000006064820152608401610e2c565b6123c46040518060400160405280600c81526020017f4b4f4c6e657420546f6b656e00000000000000000000000000000000000000008152506040518060400160405280600681526020017f4b4f4c6e65740000000000000000000000000000000000000000000000000000815250878787876137e1565b80156123f357600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff1690555b5050505050565b600082815260c960205260409020600101546124168133612b58565b61135783836138ce565b6101f65473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146124de576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f4c6f73736c65737345524332303a204d757374206265207265636f766572792060448201527f61646d696e0000000000000000000000000000000000000000000000000000006064820152608401610e2c565b6101f9546124ec904261543f565b6101fa8190556101fb80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556040517f88e0be0448355c71674462d3cb36342f0d085f7b43a1deab03052c95eb158709916125509190815260200190565b60405180910390a1565b73ffffffffffffffffffffffffffffffffffffffff163b151590565b73ffffffffffffffffffffffffffffffffffffffff8116331461261b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610e2c565b61102182826138ce565b600082826101fb60019054906101000a900460ff16156126f3576101fb5462010000900473ffffffffffffffffffffffffffffffffffffffff166347abf3be336040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815273ffffffffffffffffffffffffffffffffffffffff9182166004820152908516602482015260448101849052606401600060405180830381600087803b1580156126da57600080fd5b505af11580156126ee573d6000803e3d6000fd5b505050505b6113d18585613989565b60008383836101fb60019054906101000a900460ff16156127d4576101fb5462010000900473ffffffffffffffffffffffffffffffffffffffff1663379f5c69336040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815273ffffffffffffffffffffffffffffffffffffffff91821660048201528187166024820152908516604482015260648101849052608401600060405180830381600087803b1580156127bb57600080fd5b505af11580156127cf573d6000803e3d6000fd5b505050505b6127df8787876139a1565b979650505050505050565b600082815260c960205260409020600101546128068133612b58565b61135783836139c5565b61281b6000336108c6565b6112e0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f61646d696e20726f6c65207265717569726564000000000000000000000000006044820152606401610e2c565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff16156128b45761135783613ab9565b8273ffffffffffffffffffffffffffffffffffffffff166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015612939575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261293691810190615457565b60015b6129c5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201527f6f6e206973206e6f7420555550530000000000000000000000000000000000006064820152608401610e2c565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8114612a74576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f7860448201527f6961626c655555494400000000000000000000000000000000000000000000006064820152608401610e2c565b50611357838383613bc3565b600082826101fb60019054906101000a900460ff1615612b4e576101fb5462010000900473ffffffffffffffffffffffffffffffffffffffff1663cf5961bb336040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815273ffffffffffffffffffffffffffffffffffffffff9182166004820152908516602482015260448101849052606401600060405180830381600087803b158015612b3557600080fd5b505af1158015612b49573d6000803e3d6000fd5b505050505b6113d18585613be8565b600082815260c96020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1661102157612bb08173ffffffffffffffffffffffffffffffffffffffff166014613c34565b612bbb836020613c34565b604051602001612bcc929190615470565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a0000000000000000000000000000000000000000000000000000000008252610e2c91600401614fbb565b61012d5460ff16612c97576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610e2c565b61012d80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001612550565b73ffffffffffffffffffffffffffffffffffffffff8216612d85576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610e2c565b612d9160008383613e77565b8060fd6000828254612da3919061543f565b909155505073ffffffffffffffffffffffffffffffffffffffff8216600090815260fb602052604081208054839290612ddd90849061543f565b909155505060405181815273ffffffffffffffffffffffffffffffffffffffff8316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a361102160008383613f72565b73ffffffffffffffffffffffffffffffffffffffff8216612edf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610e2c565b612eeb82600083613e77565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260fb602052604090205481811015612fa1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f63650000000000000000000000000000000000000000000000000000000000006064820152608401610e2c565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260fb60205260408120838303905560fd8054849290612fdd9084906154f1565b909155505060405182815260009073ffffffffffffffffffffffffffffffffffffffff8516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a361135783600084613f72565b600080600084116130a9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4552433230536e617073686f743a2069642069732030000000000000000000006044820152606401610e2c565b6130b16135ca565b84111561311a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f4552433230536e617073686f743a206e6f6e6578697374656e742069640000006044820152606401610e2c565b60006131268486613f7d565b8454909150810361313e576000809250925050613166565b6001846001018281548110613155576131556153a9565b906000526020600020015492509250505b9250929050565b73ffffffffffffffffffffffffffffffffffffffff838116600090815260fc60209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811461323e5781811015613231576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610e2c565b61323e8484848403614042565b50505050565b61012d5460ff16156132b2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610e2c565b61012d80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612ce33390565b73ffffffffffffffffffffffffffffffffffffffff83166133a9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610e2c565b73ffffffffffffffffffffffffffffffffffffffff821661344c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610e2c565b613457838383613e77565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260fb60205260409020548181101561350d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610e2c565b73ffffffffffffffffffffffffffffffffffffffff808516600090815260fb602052604080822085850390559185168152908120805484929061355190849061543f565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516135b791815260200190565b60405180910390a361323e848484613f72565b6000611c016101c65490565b60006135e76101c680546001019055565b60006135f16135ca565b90507f8030e83b04d87bef53480e26263266d6ca66863aa8506aca6f2559d18aa1cb678160405161362491815260200190565b60405180910390a1919050565b600082826101fb60019054906101000a900460ff16156136ff576101fb5462010000900473ffffffffffffffffffffffffffffffffffffffff1663568c75a9336040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815273ffffffffffffffffffffffffffffffffffffffff9182166004820152908516602482015260448101849052606401600060405180830381600087803b1580156136e657600080fd5b505af11580156136fa573d6000803e3d6000fd5b505050505b6113d185856141f5565b600082826101fb60019054906101000a900460ff16156137d7576101fb5462010000900473ffffffffffffffffffffffffffffffffffffffff16631ffb811f336040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815273ffffffffffffffffffffffffffffffffffffffff9182166004820152908516602482015260448101849052606401600060405180830381600087803b1580156137be57600080fd5b505af11580156137d2573d6000803e3d6000fd5b505050505b6113d185856142c6565b600054610100900460ff16613878576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610e2c565b6138806142d4565b6138886142d4565b61389061436d565b61389a868661442f565b6138a26142d4565b6138aa6142d4565b6138b26142d4565b6138be848484846144df565b6138c6614645565b505050505050565b600082815260c96020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff161561102157600082815260c96020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600033613997818585614042565b5060019392505050565b6000336139af85828561316d565b6139ba858585613306565b506001949350505050565b600082815260c96020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1661102157600082815260c96020908152604080832073ffffffffffffffffffffffffffffffffffffffff85168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055613a5b3390565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b73ffffffffffffffffffffffffffffffffffffffff81163b613b5d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201527f6f74206120636f6e7472616374000000000000000000000000000000000000006064820152608401610e2c565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b613bcc8361486d565b600082511180613bd95750805b156113575761323e83836148ba565b33600081815260fc6020908152604080832073ffffffffffffffffffffffffffffffffffffffff871684529091528120549091906139979082908690613c2f90879061543f565b614042565b60606000613c43836002615508565b613c4e90600261543f565b67ffffffffffffffff811115613c6657613c66615101565b6040519080825280601f01601f191660200182016040528015613c90576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110613cc757613cc76153a9565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110613d2a57613d2a6153a9565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000613d66846002615508565b613d7190600161543f565b90505b6001811115613e0e577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110613db257613db26153a9565b1a60f81b828281518110613dc857613dc86153a9565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c93613e0781615545565b9050613d74565b508315610d56576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610e2c565b61012d5460ff161580613e8f5750613e8f83336149f0565b613ef5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f7472616e736665727320617265207061757365640000000000000000000000006044820152606401610e2c565b613f00338484614a8b565b15613f67576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f626c61636b6c69737465640000000000000000000000000000000000000000006044820152606401610e2c565b611357838383614b75565b611357838383614be2565b81546000908103613f9057506000610cb2565b82546000905b80821015613fec576000613faa8383614d17565b905084868281548110613fbf57613fbf6153a9565b90600052602060002001541115613fd857809150613fe6565b613fe381600161543f565b92505b50613f96565b600082118015614021575083856140046001856154f1565b81548110614014576140146153a9565b9060005260206000200154145b1561403a576140316001836154f1565b92505050610cb2565b509050610cb2565b73ffffffffffffffffffffffffffffffffffffffff83166140e4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610e2c565b73ffffffffffffffffffffffffffffffffffffffff8216614187576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610e2c565b73ffffffffffffffffffffffffffffffffffffffff838116600081815260fc602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b33600081815260fc6020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168452909152812054909190838110156142b9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610e2c565b6139ba8286868403614042565b600033613997818585613306565b600054610100900460ff1661436b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610e2c565b565b600054610100900460ff16614404576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610e2c565b61012d80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b600054610100900460ff166144c6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610e2c565b60fe6144d283826155c0565b5060ff61135782826155c0565b600054610100900460ff16614576576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610e2c565b6101f580547fffffffffffffffffffffffff000000000000000000000000000000000000000090811673ffffffffffffffffffffffffffffffffffffffff878116919091179092556101f680549091168583161790556101f98390556101fb80547fffffffffffffffffffff0000000000000000000000000000000000000000ffff1662010000848416810291909117918290559004161561323e576101fb80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff1661010017905550505050565b600054610100900460ff166146dc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610e2c565b6146e7600033614d32565b6147117f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633614d32565b61473b7f356a809dfdea9198dd76fb76bf6d403ecf13ea675eb89e1eda2db2c4a4676a2633614d32565b6147657fbf2bed86c8a3194367aaafe806055a320c3de06a2c0e1a2a013547ff4643cad033614d32565b61478f7ff4e74f9890fc31a3d6250913d0bf47a6226fb5344963481dc4e4e7d19e88166833614d32565b6147d97fce108bcc5e0f50fe603649304cbbbd94de794a404db82d884c0afc9ba9328e617f356a809dfdea9198dd76fb76bf6d403ecf13ea675eb89e1eda2db2c4a4676a26614d3c565b6148237fe1ac655ab58995133a870d1fd307ddc1d624c8ad919a09e67867a7a1483e439a7f356a809dfdea9198dd76fb76bf6d403ecf13ea675eb89e1eda2db2c4a4676a26614d3c565b61436b7f605d3c80d2295e9de2e3afbe54c07aa6189c069e6aa987c57ed1f075668df0ad7ff4e74f9890fc31a3d6250913d0bf47a6226fb5344963481dc4e4e7d19e881668614d3c565b61487681613ab9565b60405173ffffffffffffffffffffffffffffffffffffffff8216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b606073ffffffffffffffffffffffffffffffffffffffff83163b614960576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e747261637400000000000000000000000000000000000000000000000000006064820152608401610e2c565b6000808473ffffffffffffffffffffffffffffffffffffffff168460405161498891906156da565b600060405180830381855af49150503d80600081146149c3576040519150601f19603f3d011682016040523d82523d6000602084013e6149c8565b606091505b50915091506113d1828260405180606001604052806027815260200161573260279139614d87565b73ffffffffffffffffffffffffffffffffffffffff821660009081527fc0e4e01bd6a3878ca3f9ad9fc052d77f683a202d4c446fcf497063f3a096dd13602052604081205460ff1680610d56575073ffffffffffffffffffffffffffffffffffffffff821660009081527f457221fd631f7880b9dd111030e26e6abab3a3cd007d00d3f36f0463b7ce6125602052604090205460ff16610d56565b73ffffffffffffffffffffffffffffffffffffffff821660009081527f51f5b7346d0af1c04933b933f7763b58521db671b12e331fbcfc4a75b05b5c3b602052604081205460ff1680614b22575073ffffffffffffffffffffffffffffffffffffffff841660009081527f51f5b7346d0af1c04933b933f7763b58521db671b12e331fbcfc4a75b05b5c3b602052604090205460ff165b80610d6a575073ffffffffffffffffffffffffffffffffffffffff821660009081527f51f5b7346d0af1c04933b933f7763b58521db671b12e331fbcfc4a75b05b5c3b602052604090205460ff16610d6a565b614b80838383614dda565b73ffffffffffffffffffffffffffffffffffffffff8316614bac57614ba482614e6e565b611357614eaf565b73ffffffffffffffffffffffffffffffffffffffff8216614bd057614ba483614e6e565b614bd983614e6e565b61135782614e6e565b61022e541580614c0d575061022f5473ffffffffffffffffffffffffffffffffffffffff8381169116145b80614c33575061022f5473ffffffffffffffffffffffffffffffffffffffff8481169116145b80614c52575073ffffffffffffffffffffffffffffffffffffffff8316155b80614c71575073ffffffffffffffffffffffffffffffffffffffff8216155b80614cc0575073ffffffffffffffffffffffffffffffffffffffff831660009081527f3bbb96c0e856422e8bc2ad22ba50872a1bc758a51c2a1c52e271f323527bb740602052604090205460ff165b15614cca57505050565b6000670de0b6b3a764000061022e5483614ce49190615508565b614cee91906156f6565b61022f5490915061323e90859073ffffffffffffffffffffffffffffffffffffffff1683613306565b6000614d2660028484186156f6565b610d569084841661543f565b61102182826139c5565b600082815260c96020526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b60608315614d96575081610d56565b825115614da65782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2c9190614fbb565b61012d5460ff1615611357576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f45524332305061757361626c653a20746f6b656e207472616e7366657220776860448201527f696c6520706175736564000000000000000000000000000000000000000000006064820152608401610e2c565b73ffffffffffffffffffffffffffffffffffffffff811660009081526101c36020908152604080832060fb909252909120546112e09190614ebe565b614ebe565b61436b6101c4614eaa60fd5490565b6000614ec86135ca565b905080614ed484614f08565b1015611357578254600180820185556000858152602080822090930193909355938401805494850181558252902090910155565b80546000908103614f1b57506000919050565b81548290614f2b906001906154f1565b81548110614f3b57614f3b6153a9565b90600052602060002001549050919050565b600060208284031215614f5f57600080fd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114610d5657600080fd5b60005b83811015614faa578181015183820152602001614f92565b8381111561323e5750506000910152565b6020815260008251806020840152614fda816040850160208701614f8f565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b73ffffffffffffffffffffffffffffffffffffffff811681146112e057600080fd5b6000806040838503121561504157600080fd5b823561504c8161500c565b946020939093013593505050565b60008060006060848603121561506f57600080fd5b833561507a8161500c565b9250602084013561508a8161500c565b929592945050506040919091013590565b6000602082840312156150ad57600080fd5b5035919050565b6000602082840312156150c657600080fd5b8135610d568161500c565b600080604083850312156150e457600080fd5b8235915060208301356150f68161500c565b809150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600082601f83011261514157600080fd5b813567ffffffffffffffff8082111561515c5761515c615101565b604051601f83017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f011681019082821181831017156151a2576151a2615101565b816040528381528660208588010111156151bb57600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080604083850312156151ee57600080fd5b82356151f98161500c565b9150602083013567ffffffffffffffff81111561521557600080fd5b61522185828601615130565b9150509250929050565b6000806020838503121561523e57600080fd5b823567ffffffffffffffff8082111561525657600080fd5b818501915085601f83011261526a57600080fd5b81358181111561527957600080fd5b8660208260051b850101111561528e57600080fd5b60209290920196919550909350505050565b6000602082840312156152b257600080fd5b813567ffffffffffffffff8111156152c957600080fd5b610d6a84828501615130565b600080600080608085870312156152eb57600080fd5b84356152f68161500c565b935060208501356153068161500c565b925060408501359150606085013561531d8161500c565b939692955090935050565b6000806040838503121561533b57600080fd5b82356153468161500c565b915060208301356150f68161500c565b600181811c9082168061536a57607f821691505b6020821081036153a3577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203615438576154386153d8565b5060010190565b60008219821115615452576154526153d8565b500190565b60006020828403121561546957600080fd5b5051919050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516154a8816017850160208801614f8f565b7f206973206d697373696e6720726f6c652000000000000000000000000000000060179184019182015283516154e5816028840160208801614f8f565b01602801949350505050565b600082821015615503576155036153d8565b500390565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615615540576155406153d8565b500290565b600081615554576155546153d8565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b601f82111561135757600081815260208120601f850160051c810160208610156155a15750805b601f850160051c820191505b818110156138c6578281556001016155ad565b815167ffffffffffffffff8111156155da576155da615101565b6155ee816155e88454615356565b8461557a565b602080601f831160018114615641576000841561560b5750858301515b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600386901b1c1916600185901b1785556138c6565b6000858152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08616915b8281101561568e5788860151825594840194600190910190840161566f565b50858210156156ca57878501517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600388901b60f8161c191681555b5050505050600190811b01905550565b600082516156ec818460208701614f8f565b9190910192915050565b60008261572c577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b50049056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220cfe8da84d179719231efc23baf8be1e6b9413a642bdabd408fe9e1ca60e6e91664736f6c634300080f0033bf2bed86c8a3194367aaafe806055a320c3de06a2c0e1a2a013547ff4643cad0f4e74f9890fc31a3d6250913d0bf47a6226fb5344963481dc4e4e7d19e881668496e697469616c697a61626c653a20636f6e7472616374206973206e6f742069356a809dfdea9198dd76fb76bf6d403ecf13ea675eb89e1eda2db2c4a4676a269f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6

Deployed Bytecode

0x60806040526004361061038c5760003560e01c80636e9960c3116101dc578063a9059cbb11610102578063cf820461116100a0578063d84f91e81161006f578063d84f91e814610b4f578063dd62ed3e14610b83578063efab831c14610bd6578063f851a44014610bf157600080fd5b8063cf82046114610acf578063d539139314610ae6578063d547741f14610b1a578063d6e242b814610b3a57600080fd5b8063b38fe957116100dc578063b38fe95714610a5a578063b5c2287714610a6f578063be20309414610a8f578063ccfa214f14610aaf57600080fd5b8063a9059cbb146109d2578063aa74a34a146109f2578063b30edc9514610a2657600080fd5b806393310ffe1161017a5780639711715a116101495780639711715a14610968578063981b24d01461097d578063a217fddf1461099d578063a457c2d7146109b257600080fd5b806393310ffe146108fe578063936af9111461091e57806395d89b411461093e578063970875ce1461095357600080fd5b806379cc6790116101b657806379cc6790146108425780637c51a28b146108625780638456cb591461089657806391d14854146108ab57600080fd5b80636e9960c31461079f57806370a08231146107cb578063731ce8fc1461080e57600080fd5b806339509351116102c15780634f1ef2861161025f5780635c975abb1161022e5780635c975abb1461070d5780635f6529a31461072657806361086b001461075457806362b199c51461076b57600080fd5b80634f1ef286146106b057806352d1902d146106c357806354e29014146106d85780635b8a194a146106f857600080fd5b806340c10f191161029b57806340c10f191461061c578063410b24241461063c57806342966c68146106705780634ee2cd7e1461069057600080fd5b806339509351146105b95780633bcac608146105d95780633f4ba83a1461060757600080fd5b80632baa3c9e1161032e578063313ce56711610308578063313ce5671461050457806334f6ebf51461052057806336568abe146105795780633659cfe61461059957600080fd5b80632baa3c9e146104ab5780632ecaf675146104cd5780632f2ff15d146104e457600080fd5b806318160ddd1161036a57806318160ddd146104085780631f98ac0a1461042757806323b872dd1461045b578063248a9ca31461047b57600080fd5b806301ffc9a71461039157806306fdde03146103c6578063095ea7b3146103e8575b600080fd5b34801561039d57600080fd5b506103b16103ac366004614f4d565b610c1f565b60405190151581526020015b60405180910390f35b3480156103d257600080fd5b506103db610cb8565b6040516103bd9190614fbb565b3480156103f457600080fd5b506103b161040336600461502e565b610d4a565b34801561041457600080fd5b5060fd545b6040519081526020016103bd565b34801561043357600080fd5b506104197f605d3c80d2295e9de2e3afbe54c07aa6189c069e6aa987c57ed1f075668df0ad81565b34801561046757600080fd5b506103b161047636600461505a565b610d5d565b34801561048757600080fd5b5061041961049636600461509b565b600090815260c9602052604090206001015490565b3480156104b757600080fd5b506104cb6104c63660046150b4565b610d72565b005b3480156104d957600080fd5b506104196101f95481565b3480156104f057600080fd5b506104cb6104ff3660046150d1565b610f42565b34801561051057600080fd5b50604051601281526020016103bd565b34801561052c57600080fd5b506101fb546105549062010000900473ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016103bd565b34801561058557600080fd5b506104cb6105943660046150d1565b611025565b3480156105a557600080fd5b506104cb6105b43660046150b4565b6110de565b3480156105c557600080fd5b506103b16105d436600461502e565b6112e3565b3480156105e557600080fd5b5061022f546105549073ffffffffffffffffffffffffffffffffffffffff1681565b34801561061357600080fd5b506104cb6112ef565b34801561062857600080fd5b506104cb61063736600461502e565b611322565b34801561064857600080fd5b506104197ff988e4fb62b8e14f4820fed03192306ddf4d7dbfa215595ba1c6ba4b76b369ee81565b34801561067c57600080fd5b506104cb61068b36600461509b565b61135c565b34801561069c57600080fd5b506104196106ab36600461502e565b611366565b6104cb6106be3660046151db565b6113da565b3480156106cf57600080fd5b506104196115cc565b3480156106e457600080fd5b506104cb6106f33660046150d1565b6116b8565b34801561070457600080fd5b506104cb6117a4565b34801561071957600080fd5b5061012d5460ff166103b1565b34801561073257600080fd5b506101f6546105549073ffffffffffffffffffffffffffffffffffffffff1681565b34801561076057600080fd5b506104196101fa5481565b34801561077757600080fd5b506104197f548c7f0307ab2a7ea894e5c7e8c5353cc750bb9385ee2e945f189a9a83daa8ed81565b3480156107ab57600080fd5b506101f55473ffffffffffffffffffffffffffffffffffffffff16610554565b3480156107d757600080fd5b506104196107e63660046150b4565b73ffffffffffffffffffffffffffffffffffffffff16600090815260fb602052604090205490565b34801561081a57600080fd5b506104197fce108bcc5e0f50fe603649304cbbbd94de794a404db82d884c0afc9ba9328e6181565b34801561084e57600080fd5b506104cb61085d36600461502e565b6118ba565b34801561086e57600080fd5b506104197fbf2bed86c8a3194367aaafe806055a320c3de06a2c0e1a2a013547ff4643cad081565b3480156108a257600080fd5b506104cb6118cf565b3480156108b757600080fd5b506103b16108c63660046150d1565b600091825260c96020908152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b34801561090a57600080fd5b506104cb61091936600461502e565b611902565b34801561092a57600080fd5b506104cb61093936600461522b565b611ab4565b34801561094a57600080fd5b506103db611be8565b34801561095f57600080fd5b50610419611bf7565b34801561097457600080fd5b506104cb611c06565b34801561098957600080fd5b5061041961099836600461509b565b611c39565b3480156109a957600080fd5b50610419600081565b3480156109be57600080fd5b506103b16109cd36600461502e565b611c5b565b3480156109de57600080fd5b506103b16109ed36600461502e565b611c67565b3480156109fe57600080fd5b506104197fe1ac655ab58995133a870d1fd307ddc1d624c8ad919a09e67867a7a1483e439a81565b348015610a3257600080fd5b506104197ff4e74f9890fc31a3d6250913d0bf47a6226fb5344963481dc4e4e7d19e88166881565b348015610a6657600080fd5b506104cb611c73565b348015610a7b57600080fd5b506104cb610a8a3660046152a0565b611e5f565b348015610a9b57600080fd5b506104cb610aaa3660046152d5565b61200c565b348015610abb57600080fd5b506101fb546103b190610100900460ff1681565b348015610adb57600080fd5b5061041961022e5481565b348015610af257600080fd5b506104197f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b348015610b2657600080fd5b506104cb610b353660046150d1565b6123fa565b348015610b4657600080fd5b506104cb612420565b348015610b5b57600080fd5b506104197f356a809dfdea9198dd76fb76bf6d403ecf13ea675eb89e1eda2db2c4a4676a2681565b348015610b8f57600080fd5b50610419610b9e366004615328565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260fc6020908152604080832093909416825291909152205490565b348015610be257600080fd5b506101fb546103b19060ff1681565b348015610bfd57600080fd5b506101f5546105549073ffffffffffffffffffffffffffffffffffffffff1681565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b000000000000000000000000000000000000000000000000000000001480610cb257507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b606060fe8054610cc790615356565b80601f0160208091040260200160405190810160405280929190818152602001828054610cf390615356565b8015610d405780601f10610d1557610100808354040283529160200191610d40565b820191906000526020600020905b815481529060010190602001808311610d2357829003601f168201915b5050505050905090565b6000610d568383612625565b9392505050565b6000610d6a8484846126fd565b949350505050565b6101f65473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610e35576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f4c6f73736c65737345524332303a204d757374206265207265636f766572792060448201527f61646d696e00000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8116610eb2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f4c45524332303a2043616e6e6f74206265207a65726f206164647265737300006044820152606401610e2c565b6101f55460405173ffffffffffffffffffffffffffffffffffffffff8084169216907f5865ee538f2b40de67a2fc2c27facc515b4facd8f5fec548e0089089b6e2a72c90600090a36101f580547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b73ffffffffffffffffffffffffffffffffffffffff811660009081527f51f5b7346d0af1c04933b933f7763b58521db671b12e331fbcfc4a75b05b5c3b602052604090205460ff1615611017576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f63616e206e6f742061737369676e20726f6c6520746f20626c61636b6c69737460448201527f65640000000000000000000000000000000000000000000000000000000000006064820152608401610e2c565b61102182826127ea565b5050565b7f548c7f0307ab2a7ea894e5c7e8c5353cc750bb9385ee2e945f189a9a83daa8ed82036110d4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f63616e206e6f742072656e6f756e636520626c61636b6c697374656420726f6c60448201527f65000000000000000000000000000000000000000000000000000000000000006064820152608401610e2c565b6110218282612576565b73ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000bc5e5d843638f8b2f332a195b4ad2cb6063535d1630036111a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201527f64656c656761746563616c6c00000000000000000000000000000000000000006064820152608401610e2c565b7f0000000000000000000000000bc5e5d843638f8b2f332a195b4ad2cb6063535d73ffffffffffffffffffffffffffffffffffffffff166112187f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16146112bb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201527f6163746976652070726f787900000000000000000000000000000000000000006064820152608401610e2c565b6112c481612810565b604080516000808252602082019092526112e091839190612881565b50565b6000610d568383612a80565b7f356a809dfdea9198dd76fb76bf6d403ecf13ea675eb89e1eda2db2c4a4676a2661131a8133612b58565b6112e0612c2a565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661134d8133612b58565b6113578383612d08565b505050565b6112e03382612e3c565b73ffffffffffffffffffffffffffffffffffffffff821660009081526101c3602052604081208190819061139b90859061303c565b91509150816113cf5773ffffffffffffffffffffffffffffffffffffffff8516600090815260fb60205260409020546113d1565b805b95945050505050565b73ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000bc5e5d843638f8b2f332a195b4ad2cb6063535d16300361149f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201527f64656c656761746563616c6c00000000000000000000000000000000000000006064820152608401610e2c565b7f0000000000000000000000000bc5e5d843638f8b2f332a195b4ad2cb6063535d73ffffffffffffffffffffffffffffffffffffffff166115147f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16146115b7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201527f6163746976652070726f787900000000000000000000000000000000000000006064820152608401610e2c565b6115c082612810565b61102182826001612881565b60003073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000bc5e5d843638f8b2f332a195b4ad2cb6063535d1614611693576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c00000000000000006064820152608401610e2c565b507f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc90565b7ff4e74f9890fc31a3d6250913d0bf47a6226fb5344963481dc4e4e7d19e8816686116e38133612b58565b670de0b6b3a7640000831115611755576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f62616420747820666565000000000000000000000000000000000000000000006044820152606401610e2c565b5061022e9190915561022f80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff909216919091179055565b6101f65473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611862576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f4c6f73736c65737345524332303a204d757374206265207265636f766572792060448201527f61646d696e0000000000000000000000000000000000000000000000000000006064820152608401610e2c565b6101fb80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000166101001790556040517fa4a40bdd0a809720a61b44f1b3497ce7dad87741a0ba3b961c2e65e645060e7090600090a1565b6118c582338361316d565b6110218282612e3c565b7f356a809dfdea9198dd76fb76bf6d403ecf13ea675eb89e1eda2db2c4a4676a266118fa8133612b58565b6112e0613244565b6101f65473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146119c0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f4c6f73736c65737345524332303a204d757374206265207265636f766572792060448201527f61646d696e0000000000000000000000000000000000000000000000000000006064820152608401610e2c565b73ffffffffffffffffffffffffffffffffffffffff8216611a3d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f4c45524332303a2043616e6e6f74206265207a65726f206164647265737300006044820152606401610e2c565b6101f780547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff84169081179091556101f88290556040517fc5666bfdfb79a4b0b4abdbc565d6e9937a263233b2b378c55132d34dc5784a3690600090a25050565b6101fb5462010000900473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611b52576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f4c45524332303a204f6e6c79206c6f73736c65737320636f6e747261637400006044820152606401610e2c565b60005b8181101561135757611bd6838383818110611b7257611b726153a9565b9050602002016020810190611b8791906150b4565b6101fb5462010000900473ffffffffffffffffffffffffffffffffffffffff16611bd1868686818110611bbc57611bbc6153a9565b90506020020160208101906107e691906150b4565b613306565b80611be081615407565b915050611b55565b606060ff8054610cc790615356565b6000611c016135ca565b905090565b7fbf2bed86c8a3194367aaafe806055a320c3de06a2c0e1a2a013547ff4643cad0611c318133612b58565b6110216135d6565b6000806000611c4a846101c461303c565b9150915081610d565760fd54610d6a565b6000610d568383613631565b6000610d568383613709565b6101f65473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611d31576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f4c6f73736c65737345524332303a204d757374206265207265636f766572792060448201527f61646d696e0000000000000000000000000000000000000000000000000000006064820152608401610e2c565b6101fb5460ff16611d9e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4c45524332303a205475726e4f6666206e6f742070726f706f736564000000006044820152606401610e2c565b426101fa541115611e0b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f4c45524332303a2054696d65206c6f636b20696e2070726f67726573730000006044820152606401610e2c565b6101fb80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00001690556040517f5b534e2716e5ad68b9f67521378f8199a7ceb9d3f6f354275dad33fe42cf710a90600090a1565b6101f75473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611ef7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4c45524332303a204d7573742062652063616e646974617465000000000000006044820152606401610e2c565b6101f8548151602083012014611f69576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4c45524332303a20496e76616c6964206b6579000000000000000000000000006044820152606401610e2c565b6101f7546101f65460405173ffffffffffffffffffffffffffffffffffffffff92831692909116907f1c7f382531621f02aefb4212478bba8871ffad078202bdbba87f3e21d639aebb90600090a3506101f780546101f680547fffffffffffffffffffffffff000000000000000000000000000000000000000090811673ffffffffffffffffffffffffffffffffffffffff84161790915516905560006101f855565b600054610100900460ff166120275760005460ff161561202b565b303b155b6120b7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610e2c565b600054610100900460ff161580156120f657600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000166101011790555b73ffffffffffffffffffffffffffffffffffffffff8516612173576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f61646d696e20726571756972656420666f72204c6f73736c65737300000000006044820152606401610e2c565b73ffffffffffffffffffffffffffffffffffffffff8416612216576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f7265636f7665727941646d696e20726571756972656420666f72204c6f73736c60448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610e2c565b73ffffffffffffffffffffffffffffffffffffffff82166122b9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f6c6f73736c65737320636f6e74726f6c6c657220726571756972656420666f7260448201527f204c6f73736c65737300000000000000000000000000000000000000000000006064820152608401610e2c565b6201518083101561234c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f74696d656c6f636b506572696f642073686f756c64206265206772656174657260448201527f207468616e2032342068727300000000000000000000000000000000000000006064820152608401610e2c565b6123c46040518060400160405280600c81526020017f4b4f4c6e657420546f6b656e00000000000000000000000000000000000000008152506040518060400160405280600681526020017f4b4f4c6e65740000000000000000000000000000000000000000000000000000815250878787876137e1565b80156123f357600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff1690555b5050505050565b600082815260c960205260409020600101546124168133612b58565b61135783836138ce565b6101f65473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146124de576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f4c6f73736c65737345524332303a204d757374206265207265636f766572792060448201527f61646d696e0000000000000000000000000000000000000000000000000000006064820152608401610e2c565b6101f9546124ec904261543f565b6101fa8190556101fb80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556040517f88e0be0448355c71674462d3cb36342f0d085f7b43a1deab03052c95eb158709916125509190815260200190565b60405180910390a1565b73ffffffffffffffffffffffffffffffffffffffff163b151590565b73ffffffffffffffffffffffffffffffffffffffff8116331461261b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610e2c565b61102182826138ce565b600082826101fb60019054906101000a900460ff16156126f3576101fb5462010000900473ffffffffffffffffffffffffffffffffffffffff166347abf3be336040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815273ffffffffffffffffffffffffffffffffffffffff9182166004820152908516602482015260448101849052606401600060405180830381600087803b1580156126da57600080fd5b505af11580156126ee573d6000803e3d6000fd5b505050505b6113d18585613989565b60008383836101fb60019054906101000a900460ff16156127d4576101fb5462010000900473ffffffffffffffffffffffffffffffffffffffff1663379f5c69336040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815273ffffffffffffffffffffffffffffffffffffffff91821660048201528187166024820152908516604482015260648101849052608401600060405180830381600087803b1580156127bb57600080fd5b505af11580156127cf573d6000803e3d6000fd5b505050505b6127df8787876139a1565b979650505050505050565b600082815260c960205260409020600101546128068133612b58565b61135783836139c5565b61281b6000336108c6565b6112e0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f61646d696e20726f6c65207265717569726564000000000000000000000000006044820152606401610e2c565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff16156128b45761135783613ab9565b8273ffffffffffffffffffffffffffffffffffffffff166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015612939575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261293691810190615457565b60015b6129c5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201527f6f6e206973206e6f7420555550530000000000000000000000000000000000006064820152608401610e2c565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8114612a74576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f7860448201527f6961626c655555494400000000000000000000000000000000000000000000006064820152608401610e2c565b50611357838383613bc3565b600082826101fb60019054906101000a900460ff1615612b4e576101fb5462010000900473ffffffffffffffffffffffffffffffffffffffff1663cf5961bb336040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815273ffffffffffffffffffffffffffffffffffffffff9182166004820152908516602482015260448101849052606401600060405180830381600087803b158015612b3557600080fd5b505af1158015612b49573d6000803e3d6000fd5b505050505b6113d18585613be8565b600082815260c96020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1661102157612bb08173ffffffffffffffffffffffffffffffffffffffff166014613c34565b612bbb836020613c34565b604051602001612bcc929190615470565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a0000000000000000000000000000000000000000000000000000000008252610e2c91600401614fbb565b61012d5460ff16612c97576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610e2c565b61012d80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001612550565b73ffffffffffffffffffffffffffffffffffffffff8216612d85576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610e2c565b612d9160008383613e77565b8060fd6000828254612da3919061543f565b909155505073ffffffffffffffffffffffffffffffffffffffff8216600090815260fb602052604081208054839290612ddd90849061543f565b909155505060405181815273ffffffffffffffffffffffffffffffffffffffff8316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a361102160008383613f72565b73ffffffffffffffffffffffffffffffffffffffff8216612edf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610e2c565b612eeb82600083613e77565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260fb602052604090205481811015612fa1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f63650000000000000000000000000000000000000000000000000000000000006064820152608401610e2c565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260fb60205260408120838303905560fd8054849290612fdd9084906154f1565b909155505060405182815260009073ffffffffffffffffffffffffffffffffffffffff8516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a361135783600084613f72565b600080600084116130a9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4552433230536e617073686f743a2069642069732030000000000000000000006044820152606401610e2c565b6130b16135ca565b84111561311a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f4552433230536e617073686f743a206e6f6e6578697374656e742069640000006044820152606401610e2c565b60006131268486613f7d565b8454909150810361313e576000809250925050613166565b6001846001018281548110613155576131556153a9565b906000526020600020015492509250505b9250929050565b73ffffffffffffffffffffffffffffffffffffffff838116600090815260fc60209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811461323e5781811015613231576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610e2c565b61323e8484848403614042565b50505050565b61012d5460ff16156132b2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610e2c565b61012d80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612ce33390565b73ffffffffffffffffffffffffffffffffffffffff83166133a9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610e2c565b73ffffffffffffffffffffffffffffffffffffffff821661344c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610e2c565b613457838383613e77565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260fb60205260409020548181101561350d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610e2c565b73ffffffffffffffffffffffffffffffffffffffff808516600090815260fb602052604080822085850390559185168152908120805484929061355190849061543f565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516135b791815260200190565b60405180910390a361323e848484613f72565b6000611c016101c65490565b60006135e76101c680546001019055565b60006135f16135ca565b90507f8030e83b04d87bef53480e26263266d6ca66863aa8506aca6f2559d18aa1cb678160405161362491815260200190565b60405180910390a1919050565b600082826101fb60019054906101000a900460ff16156136ff576101fb5462010000900473ffffffffffffffffffffffffffffffffffffffff1663568c75a9336040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815273ffffffffffffffffffffffffffffffffffffffff9182166004820152908516602482015260448101849052606401600060405180830381600087803b1580156136e657600080fd5b505af11580156136fa573d6000803e3d6000fd5b505050505b6113d185856141f5565b600082826101fb60019054906101000a900460ff16156137d7576101fb5462010000900473ffffffffffffffffffffffffffffffffffffffff16631ffb811f336040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815273ffffffffffffffffffffffffffffffffffffffff9182166004820152908516602482015260448101849052606401600060405180830381600087803b1580156137be57600080fd5b505af11580156137d2573d6000803e3d6000fd5b505050505b6113d185856142c6565b600054610100900460ff16613878576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610e2c565b6138806142d4565b6138886142d4565b61389061436d565b61389a868661442f565b6138a26142d4565b6138aa6142d4565b6138b26142d4565b6138be848484846144df565b6138c6614645565b505050505050565b600082815260c96020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff161561102157600082815260c96020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600033613997818585614042565b5060019392505050565b6000336139af85828561316d565b6139ba858585613306565b506001949350505050565b600082815260c96020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1661102157600082815260c96020908152604080832073ffffffffffffffffffffffffffffffffffffffff85168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055613a5b3390565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b73ffffffffffffffffffffffffffffffffffffffff81163b613b5d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201527f6f74206120636f6e7472616374000000000000000000000000000000000000006064820152608401610e2c565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b613bcc8361486d565b600082511180613bd95750805b156113575761323e83836148ba565b33600081815260fc6020908152604080832073ffffffffffffffffffffffffffffffffffffffff871684529091528120549091906139979082908690613c2f90879061543f565b614042565b60606000613c43836002615508565b613c4e90600261543f565b67ffffffffffffffff811115613c6657613c66615101565b6040519080825280601f01601f191660200182016040528015613c90576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110613cc757613cc76153a9565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110613d2a57613d2a6153a9565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000613d66846002615508565b613d7190600161543f565b90505b6001811115613e0e577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110613db257613db26153a9565b1a60f81b828281518110613dc857613dc86153a9565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c93613e0781615545565b9050613d74565b508315610d56576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610e2c565b61012d5460ff161580613e8f5750613e8f83336149f0565b613ef5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f7472616e736665727320617265207061757365640000000000000000000000006044820152606401610e2c565b613f00338484614a8b565b15613f67576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f626c61636b6c69737465640000000000000000000000000000000000000000006044820152606401610e2c565b611357838383614b75565b611357838383614be2565b81546000908103613f9057506000610cb2565b82546000905b80821015613fec576000613faa8383614d17565b905084868281548110613fbf57613fbf6153a9565b90600052602060002001541115613fd857809150613fe6565b613fe381600161543f565b92505b50613f96565b600082118015614021575083856140046001856154f1565b81548110614014576140146153a9565b9060005260206000200154145b1561403a576140316001836154f1565b92505050610cb2565b509050610cb2565b73ffffffffffffffffffffffffffffffffffffffff83166140e4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610e2c565b73ffffffffffffffffffffffffffffffffffffffff8216614187576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610e2c565b73ffffffffffffffffffffffffffffffffffffffff838116600081815260fc602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b33600081815260fc6020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168452909152812054909190838110156142b9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610e2c565b6139ba8286868403614042565b600033613997818585613306565b600054610100900460ff1661436b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610e2c565b565b600054610100900460ff16614404576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610e2c565b61012d80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b600054610100900460ff166144c6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610e2c565b60fe6144d283826155c0565b5060ff61135782826155c0565b600054610100900460ff16614576576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610e2c565b6101f580547fffffffffffffffffffffffff000000000000000000000000000000000000000090811673ffffffffffffffffffffffffffffffffffffffff878116919091179092556101f680549091168583161790556101f98390556101fb80547fffffffffffffffffffff0000000000000000000000000000000000000000ffff1662010000848416810291909117918290559004161561323e576101fb80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff1661010017905550505050565b600054610100900460ff166146dc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610e2c565b6146e7600033614d32565b6147117f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633614d32565b61473b7f356a809dfdea9198dd76fb76bf6d403ecf13ea675eb89e1eda2db2c4a4676a2633614d32565b6147657fbf2bed86c8a3194367aaafe806055a320c3de06a2c0e1a2a013547ff4643cad033614d32565b61478f7ff4e74f9890fc31a3d6250913d0bf47a6226fb5344963481dc4e4e7d19e88166833614d32565b6147d97fce108bcc5e0f50fe603649304cbbbd94de794a404db82d884c0afc9ba9328e617f356a809dfdea9198dd76fb76bf6d403ecf13ea675eb89e1eda2db2c4a4676a26614d3c565b6148237fe1ac655ab58995133a870d1fd307ddc1d624c8ad919a09e67867a7a1483e439a7f356a809dfdea9198dd76fb76bf6d403ecf13ea675eb89e1eda2db2c4a4676a26614d3c565b61436b7f605d3c80d2295e9de2e3afbe54c07aa6189c069e6aa987c57ed1f075668df0ad7ff4e74f9890fc31a3d6250913d0bf47a6226fb5344963481dc4e4e7d19e881668614d3c565b61487681613ab9565b60405173ffffffffffffffffffffffffffffffffffffffff8216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b606073ffffffffffffffffffffffffffffffffffffffff83163b614960576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e747261637400000000000000000000000000000000000000000000000000006064820152608401610e2c565b6000808473ffffffffffffffffffffffffffffffffffffffff168460405161498891906156da565b600060405180830381855af49150503d80600081146149c3576040519150601f19603f3d011682016040523d82523d6000602084013e6149c8565b606091505b50915091506113d1828260405180606001604052806027815260200161573260279139614d87565b73ffffffffffffffffffffffffffffffffffffffff821660009081527fc0e4e01bd6a3878ca3f9ad9fc052d77f683a202d4c446fcf497063f3a096dd13602052604081205460ff1680610d56575073ffffffffffffffffffffffffffffffffffffffff821660009081527f457221fd631f7880b9dd111030e26e6abab3a3cd007d00d3f36f0463b7ce6125602052604090205460ff16610d56565b73ffffffffffffffffffffffffffffffffffffffff821660009081527f51f5b7346d0af1c04933b933f7763b58521db671b12e331fbcfc4a75b05b5c3b602052604081205460ff1680614b22575073ffffffffffffffffffffffffffffffffffffffff841660009081527f51f5b7346d0af1c04933b933f7763b58521db671b12e331fbcfc4a75b05b5c3b602052604090205460ff165b80610d6a575073ffffffffffffffffffffffffffffffffffffffff821660009081527f51f5b7346d0af1c04933b933f7763b58521db671b12e331fbcfc4a75b05b5c3b602052604090205460ff16610d6a565b614b80838383614dda565b73ffffffffffffffffffffffffffffffffffffffff8316614bac57614ba482614e6e565b611357614eaf565b73ffffffffffffffffffffffffffffffffffffffff8216614bd057614ba483614e6e565b614bd983614e6e565b61135782614e6e565b61022e541580614c0d575061022f5473ffffffffffffffffffffffffffffffffffffffff8381169116145b80614c33575061022f5473ffffffffffffffffffffffffffffffffffffffff8481169116145b80614c52575073ffffffffffffffffffffffffffffffffffffffff8316155b80614c71575073ffffffffffffffffffffffffffffffffffffffff8216155b80614cc0575073ffffffffffffffffffffffffffffffffffffffff831660009081527f3bbb96c0e856422e8bc2ad22ba50872a1bc758a51c2a1c52e271f323527bb740602052604090205460ff165b15614cca57505050565b6000670de0b6b3a764000061022e5483614ce49190615508565b614cee91906156f6565b61022f5490915061323e90859073ffffffffffffffffffffffffffffffffffffffff1683613306565b6000614d2660028484186156f6565b610d569084841661543f565b61102182826139c5565b600082815260c96020526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b60608315614d96575081610d56565b825115614da65782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2c9190614fbb565b61012d5460ff1615611357576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f45524332305061757361626c653a20746f6b656e207472616e7366657220776860448201527f696c6520706175736564000000000000000000000000000000000000000000006064820152608401610e2c565b73ffffffffffffffffffffffffffffffffffffffff811660009081526101c36020908152604080832060fb909252909120546112e09190614ebe565b614ebe565b61436b6101c4614eaa60fd5490565b6000614ec86135ca565b905080614ed484614f08565b1015611357578254600180820185556000858152602080822090930193909355938401805494850181558252902090910155565b80546000908103614f1b57506000919050565b81548290614f2b906001906154f1565b81548110614f3b57614f3b6153a9565b90600052602060002001549050919050565b600060208284031215614f5f57600080fd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114610d5657600080fd5b60005b83811015614faa578181015183820152602001614f92565b8381111561323e5750506000910152565b6020815260008251806020840152614fda816040850160208701614f8f565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b73ffffffffffffffffffffffffffffffffffffffff811681146112e057600080fd5b6000806040838503121561504157600080fd5b823561504c8161500c565b946020939093013593505050565b60008060006060848603121561506f57600080fd5b833561507a8161500c565b9250602084013561508a8161500c565b929592945050506040919091013590565b6000602082840312156150ad57600080fd5b5035919050565b6000602082840312156150c657600080fd5b8135610d568161500c565b600080604083850312156150e457600080fd5b8235915060208301356150f68161500c565b809150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600082601f83011261514157600080fd5b813567ffffffffffffffff8082111561515c5761515c615101565b604051601f83017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f011681019082821181831017156151a2576151a2615101565b816040528381528660208588010111156151bb57600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080604083850312156151ee57600080fd5b82356151f98161500c565b9150602083013567ffffffffffffffff81111561521557600080fd5b61522185828601615130565b9150509250929050565b6000806020838503121561523e57600080fd5b823567ffffffffffffffff8082111561525657600080fd5b818501915085601f83011261526a57600080fd5b81358181111561527957600080fd5b8660208260051b850101111561528e57600080fd5b60209290920196919550909350505050565b6000602082840312156152b257600080fd5b813567ffffffffffffffff8111156152c957600080fd5b610d6a84828501615130565b600080600080608085870312156152eb57600080fd5b84356152f68161500c565b935060208501356153068161500c565b925060408501359150606085013561531d8161500c565b939692955090935050565b6000806040838503121561533b57600080fd5b82356153468161500c565b915060208301356150f68161500c565b600181811c9082168061536a57607f821691505b6020821081036153a3577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203615438576154386153d8565b5060010190565b60008219821115615452576154526153d8565b500190565b60006020828403121561546957600080fd5b5051919050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516154a8816017850160208801614f8f565b7f206973206d697373696e6720726f6c652000000000000000000000000000000060179184019182015283516154e5816028840160208801614f8f565b01602801949350505050565b600082821015615503576155036153d8565b500390565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615615540576155406153d8565b500290565b600081615554576155546153d8565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b601f82111561135757600081815260208120601f850160051c810160208610156155a15750805b601f850160051c820191505b818110156138c6578281556001016155ad565b815167ffffffffffffffff8111156155da576155da615101565b6155ee816155e88454615356565b8461557a565b602080601f831160018114615641576000841561560b5750858301515b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600386901b1c1916600185901b1785556138c6565b6000858152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08616915b8281101561568e5788860151825594840194600190910190840161566f565b50858210156156ca57878501517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600388901b60f8161c191681555b5050505050600190811b01905550565b600082516156ec818460208701614f8f565b9190910192915050565b60008261572c577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b50049056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220cfe8da84d179719231efc23baf8be1e6b9413a642bdabd408fe9e1ca60e6e91664736f6c634300080f0033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Txn Hash Block Value Eth2 PubKey Valid
View All Deposits
[ 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.