Contract 0x03eeedf76a007dce47b3a0044d9f0a04badd9cfa

 

Contract Overview

Seamless Protocol: Emission Manager 1
Balance:
0 ETH

ETHValue:
$0.00
Txn Hash Method
Block
From
To
Value
0x3a50d45c9577ee66d5e1866af19e817abd101f738a1a31407bedc6552cf2fb7a0x60a0604077310382023-12-10 23:37:03161 days 12 hrs agoSeamless Protocol: Deployer IN  Create: SeamEmissionManager0 ETH0.0047134735193.000000052
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.

Contract Source Code Verified (Exact Match)

Contract Name:
SeamEmissionManager

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 100 runs

Other Settings:
paris EvmVersion, MIT license
File 1 of 18 : SeamEmissionManager.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import {Initializable} from "openzeppelin-contracts-upgradeable/proxy/utils/Initializable.sol";
import {AccessControlUpgradeable} from "openzeppelin-contracts-upgradeable/access/AccessControlUpgradeable.sol";
import {UUPSUpgradeable} from "openzeppelin-contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol";
import {IERC20} from "openzeppelin-contracts/token/ERC20/IERC20.sol";
import {ISeamEmissionManager} from "./interfaces/ISeamEmissionManager.sol";
import {SafeERC20} from "openzeppelin-contracts/token/ERC20/utils/SafeERC20.sol";
import {SeamEmissionManagerStorage as Storage} from "./storage/SeamEmissionManagerStorage.sol";

/// @title SeamEmissionManager
/// @author Seamless Protocol
/// @notice This contract is responsible for managing SEAM token emission.
contract SeamEmissionManager is ISeamEmissionManager, Initializable, AccessControlUpgradeable, UUPSUpgradeable {
    bytes32 public constant CLAIMER_ROLE = keccak256("CLAIMER_ROLE");

    /// @custom:oz-upgrades-unsafe-allow constructor
    constructor() {
        _disableInitializers();
    }

    /// @notice Initializes the token storage and inherited contracts.
    /// @param seam SEAM token address
    /// @param emissionPerSecond Emission per second
    /// @param initialAdmin Initial admin of the contract
    function initialize(
        address seam,
        uint256 emissionPerSecond,
        address initialAdmin,
        address claimer,
        uint64 emissionStart
    ) external initializer {
        __AccessControl_init();
        __UUPSUpgradeable_init();
        _grantRole(DEFAULT_ADMIN_ROLE, initialAdmin);
        _grantRole(CLAIMER_ROLE, initialAdmin);
        _grantRole(CLAIMER_ROLE, claimer);

        Storage.Layout storage $ = Storage.layout();
        $.seam = IERC20(seam);
        $.emissionPerSecond = emissionPerSecond;
        $.emissionStartTimestamp = uint64(emissionStart);
        $.lastClaimedTimestamp = uint64(emissionStart);
    }

    /// @inheritdoc UUPSUpgradeable
    function _authorizeUpgrade(address) internal override onlyRole(DEFAULT_ADMIN_ROLE) {}

    /// @inheritdoc ISeamEmissionManager
    function getSeam() external view returns (address) {
        return address(Storage.layout().seam);
    }

    /// @inheritdoc ISeamEmissionManager
    function getEmissionStartTimestamp() external view returns (uint64) {
        return Storage.layout().emissionStartTimestamp;
    }

    /// @inheritdoc ISeamEmissionManager
    function setEmissionStartTimestamp(uint64 emissionStartTimestamp) external onlyRole(DEFAULT_ADMIN_ROLE) {
        Storage.Layout storage $ = Storage.layout();
        $.emissionStartTimestamp = emissionStartTimestamp;
        $.lastClaimedTimestamp = emissionStartTimestamp;
        emit SetEmissionStartTimestamp(emissionStartTimestamp);
    }

    /// @inheritdoc ISeamEmissionManager
    function getLastClaimedTimestamp() external view returns (uint64) {
        uint64 lastClaimedTimestamp = Storage.layout().lastClaimedTimestamp;
        return lastClaimedTimestamp > block.timestamp ? 0 : lastClaimedTimestamp;
    }

    /// @inheritdoc ISeamEmissionManager
    function getEmissionPerSecond() external view returns (uint256) {
        return Storage.layout().emissionPerSecond;
    }

    /// @inheritdoc ISeamEmissionManager
    function setEmissionPerSecond(uint256 emissionPerSecond) external onlyRole(DEFAULT_ADMIN_ROLE) {
        Storage.layout().emissionPerSecond = emissionPerSecond;
        emit SetEmissionPerSecond(emissionPerSecond);
    }

    /// @inheritdoc ISeamEmissionManager
    function claim(address receiver) external onlyRole(CLAIMER_ROLE) {
        Storage.Layout storage $ = Storage.layout();

        uint64 emissionStartTimestamp = $.emissionStartTimestamp;
        if (emissionStartTimestamp > block.timestamp) {
            revert EmissionsNotStarted(emissionStartTimestamp);
        }

        uint256 emissionPerSecond = $.emissionPerSecond;
        uint64 lastClaimedTimestamp = $.lastClaimedTimestamp;
        uint64 currentTimestamp = uint64(block.timestamp);
        uint256 emissionAmount = (currentTimestamp - lastClaimedTimestamp) * emissionPerSecond;

        SafeERC20.safeTransfer($.seam, receiver, emissionAmount);
        $.lastClaimedTimestamp = currentTimestamp;

        emit Claim(receiver, emissionAmount);
    }
}

File 2 of 18 : Initializable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/Initializable.sol)

pragma solidity ^0.8.20;

/**
 * @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.
 *
 * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be
 * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in
 * case an upgrade adds a module that needs to be initialized.
 *
 * For example:
 *
 * [.hljs-theme-light.nopadding]
 * ```solidity
 * contract MyToken is ERC20Upgradeable {
 *     function initialize() initializer public {
 *         __ERC20_init("MyToken", "MTK");
 *     }
 * }
 *
 * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {
 *     function initializeV2() reinitializer(2) public {
 *         __ERC20Permit_init("MyToken");
 *     }
 * }
 * ```
 *
 * 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 prevent the implementation contract from being used, you should invoke
 * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() {
 *     _disableInitializers();
 * }
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Storage of the initializable contract.
     *
     * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions
     * when using with upgradeable contracts.
     *
     * @custom:storage-location erc7201:openzeppelin.storage.Initializable
     */
    struct InitializableStorage {
        /**
         * @dev Indicates that the contract has been initialized.
         */
        uint64 _initialized;
        /**
         * @dev Indicates that the contract is in the process of being initialized.
         */
        bool _initializing;
    }

    // keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.Initializable")) - 1)) & ~bytes32(uint256(0xff))
    bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;

    /**
     * @dev The contract is already initialized.
     */
    error InvalidInitialization();

    /**
     * @dev The contract is not initializing.
     */
    error NotInitializing();

    /**
     * @dev Triggered when the contract has been initialized or reinitialized.
     */
    event Initialized(uint64 version);

    /**
     * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,
     * `onlyInitializing` functions can be used to initialize parent contracts.
     *
     * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any
     * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in
     * production.
     *
     * Emits an {Initialized} event.
     */
    modifier initializer() {
        // solhint-disable-next-line var-name-mixedcase
        InitializableStorage storage $ = _getInitializableStorage();

        // Cache values to avoid duplicated sloads
        bool isTopLevelCall = !$._initializing;
        uint64 initialized = $._initialized;

        // Allowed calls:
        // - initialSetup: the contract is not in the initializing state and no previous version was
        //                 initialized
        // - construction: the contract is initialized at version 1 (no reininitialization) and the
        //                 current contract is just being deployed
        bool initialSetup = initialized == 0 && isTopLevelCall;
        bool construction = initialized == 1 && address(this).code.length == 0;

        if (!initialSetup && !construction) {
            revert InvalidInitialization();
        }
        $._initialized = 1;
        if (isTopLevelCall) {
            $._initializing = true;
        }
        _;
        if (isTopLevelCall) {
            $._initializing = false;
            emit Initialized(1);
        }
    }

    /**
     * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the
     * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be
     * used to initialize parent contracts.
     *
     * A reinitializer may be used after the original initialization step. This is essential to configure modules that
     * are added through upgrades and that require initialization.
     *
     * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`
     * cannot be nested. If one is invoked in the context of another, execution will revert.
     *
     * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in
     * a contract, executing them in the right order is up to the developer or operator.
     *
     * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.
     *
     * Emits an {Initialized} event.
     */
    modifier reinitializer(uint64 version) {
        // solhint-disable-next-line var-name-mixedcase
        InitializableStorage storage $ = _getInitializableStorage();

        if ($._initializing || $._initialized >= version) {
            revert InvalidInitialization();
        }
        $._initialized = version;
        $._initializing = true;
        _;
        $._initializing = false;
        emit Initialized(version);
    }

    /**
     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
     * {initializer} and {reinitializer} modifiers, directly or indirectly.
     */
    modifier onlyInitializing() {
        _checkInitializing();
        _;
    }

    /**
     * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.
     */
    function _checkInitializing() internal view virtual {
        if (!_isInitializing()) {
            revert NotInitializing();
        }
    }

    /**
     * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.
     * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized
     * to any version. It is recommended to use this to lock implementation contracts that are designed to be called
     * through proxies.
     *
     * Emits an {Initialized} event the first time it is successfully executed.
     */
    function _disableInitializers() internal virtual {
        // solhint-disable-next-line var-name-mixedcase
        InitializableStorage storage $ = _getInitializableStorage();

        if ($._initializing) {
            revert InvalidInitialization();
        }
        if ($._initialized != type(uint64).max) {
            $._initialized = type(uint64).max;
            emit Initialized(type(uint64).max);
        }
    }

    /**
     * @dev Returns the highest version that has been initialized. See {reinitializer}.
     */
    function _getInitializedVersion() internal view returns (uint64) {
        return _getInitializableStorage()._initialized;
    }

    /**
     * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.
     */
    function _isInitializing() internal view returns (bool) {
        return _getInitializableStorage()._initializing;
    }

    /**
     * @dev Returns a pointer to the storage namespace.
     */
    // solhint-disable-next-line var-name-mixedcase
    function _getInitializableStorage() private pure returns (InitializableStorage storage $) {
        assembly {
            $.slot := INITIALIZABLE_STORAGE
        }
    }
}

File 3 of 18 : AccessControlUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/AccessControl.sol)

pragma solidity ^0.8.20;

import {IAccessControl} from "@openzeppelin/contracts/access/IAccessControl.sol";
import {ContextUpgradeable} from "../utils/ContextUpgradeable.sol";
import {ERC165Upgradeable} from "../utils/introspection/ERC165Upgradeable.sol";
import {Initializable} from "../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:
 *
 * ```solidity
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```solidity
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it. We recommend using {AccessControlDefaultAdminRules}
 * to enforce additional security measures for this role.
 */
abstract contract AccessControlUpgradeable is Initializable, ContextUpgradeable, IAccessControl, ERC165Upgradeable {
    struct RoleData {
        mapping(address account => bool) hasRole;
        bytes32 adminRole;
    }

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;


    /// @custom:storage-location erc7201:openzeppelin.storage.AccessControl
    struct AccessControlStorage {
        mapping(bytes32 role => RoleData) _roles;
    }

    // keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.AccessControl")) - 1)) & ~bytes32(uint256(0xff))
    bytes32 private constant AccessControlStorageLocation = 0x02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b626800;

    function _getAccessControlStorage() private pure returns (AccessControlStorage storage $) {
        assembly {
            $.slot := AccessControlStorageLocation
        }
    }

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with an {AccessControlUnauthorizedAccount} error including the required role.
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

    function __AccessControl_init() internal onlyInitializing {
    }

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual returns (bool) {
        AccessControlStorage storage $ = _getAccessControlStorage();
        return $._roles[role].hasRole[account];
    }

    /**
     * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `_msgSender()`
     * is missing `role`. Overriding this function changes the behavior of the {onlyRole} modifier.
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `account`
     * is missing `role`.
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert AccessControlUnauthorizedAccount(account, role);
        }
    }

    /**
     * @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 returns (bytes32) {
        AccessControlStorage storage $ = _getAccessControlStorage();
        return $._roles[role].adminRole;
    }

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

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleRevoked} event.
     */
    function revokeRole(bytes32 role, address account) public virtual 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 `callerConfirmation`.
     *
     * May emit a {RoleRevoked} event.
     */
    function renounceRole(bytes32 role, address callerConfirmation) public virtual {
        if (callerConfirmation != _msgSender()) {
            revert AccessControlBadConfirmation();
        }

        _revokeRole(role, callerConfirmation);
    }

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

    /**
     * @dev Attempts to grant `role` to `account` and returns a boolean indicating if `role` was granted.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleGranted} event.
     */
    function _grantRole(bytes32 role, address account) internal virtual returns (bool) {
        AccessControlStorage storage $ = _getAccessControlStorage();
        if (!hasRole(role, account)) {
            $._roles[role].hasRole[account] = true;
            emit RoleGranted(role, account, _msgSender());
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Attempts to revoke `role` to `account` and returns a boolean indicating if `role` was revoked.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleRevoked} event.
     */
    function _revokeRole(bytes32 role, address account) internal virtual returns (bool) {
        AccessControlStorage storage $ = _getAccessControlStorage();
        if (hasRole(role, account)) {
            $._roles[role].hasRole[account] = false;
            emit RoleRevoked(role, account, _msgSender());
            return true;
        } else {
            return false;
        }
    }
}

File 4 of 18 : UUPSUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/UUPSUpgradeable.sol)

pragma solidity ^0.8.20;

import {IERC1822Proxiable} from "@openzeppelin/contracts/interfaces/draft-IERC1822.sol";
import {ERC1967Utils} from "@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol";
import {Initializable} from "./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.
 */
abstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {
    /// @custom:oz-upgrades-unsafe-allow state-variable-immutable
    address private immutable __self = address(this);

    /**
     * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`
     * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,
     * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.
     * If the getter returns `"5.0.0"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must
     * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function
     * during an upgrade.
     */
    string public constant UPGRADE_INTERFACE_VERSION = "5.0.0";

    /**
     * @dev The call is from an unauthorized context.
     */
    error UUPSUnauthorizedCallContext();

    /**
     * @dev The storage `slot` is unsupported as a UUID.
     */
    error UUPSUnsupportedProxiableUUID(bytes32 slot);

    /**
     * @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() {
        _checkProxy();
        _;
    }

    /**
     * @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() {
        _checkNotDelegated();
        _;
    }

    function __UUPSUpgradeable_init() internal onlyInitializing {
    }

    function __UUPSUpgradeable_init_unchained() internal onlyInitializing {
    }
    /**
     * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the
     * implementation. It is used to validate the implementation's compatibility when performing 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 notDelegated returns (bytes32) {
        return ERC1967Utils.IMPLEMENTATION_SLOT;
    }

    /**
     * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call
     * encoded in `data`.
     *
     * Calls {_authorizeUpgrade}.
     *
     * Emits an {Upgraded} event.
     *
     * @custom:oz-upgrades-unsafe-allow-reachable delegatecall
     */
    function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {
        _authorizeUpgrade(newImplementation);
        _upgradeToAndCallUUPS(newImplementation, data);
    }

    /**
     * @dev Reverts if the execution is not performed via delegatecall or the execution
     * context is not of a proxy with an ERC1967-compliant implementation pointing to self.
     * See {_onlyProxy}.
     */
    function _checkProxy() internal view virtual {
        if (
            address(this) == __self || // Must be called through delegatecall
            ERC1967Utils.getImplementation() != __self // Must be called through an active proxy
        ) {
            revert UUPSUnauthorizedCallContext();
        }
    }

    /**
     * @dev Reverts if the execution is performed via delegatecall.
     * See {notDelegated}.
     */
    function _checkNotDelegated() internal view virtual {
        if (address(this) != __self) {
            // Must not be called through delegatecall
            revert UUPSUnauthorizedCallContext();
        }
    }

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

    /**
     * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.
     *
     * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value
     * is expected to be the implementation slot in ERC1967.
     *
     * Emits an {IERC1967-Upgraded} event.
     */
    function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {
        try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {
            if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {
                revert UUPSUnsupportedProxiableUUID(slot);
            }
            ERC1967Utils.upgradeToAndCall(newImplementation, data);
        } catch {
            // The implementation is not UUPS
            revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);
        }
    }
}

File 5 of 18 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

    /**
     * @dev Returns the value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the value of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the
     * allowance mechanism. `value` 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 value) external returns (bool);
}

File 6 of 18 : ISeamEmissionManager.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

/// @title ISeamEmissionManager
/// @notice Interface for the SEAM emission manager contract.
interface ISeamEmissionManager {
    /// @notice EmissionsNotStarted: emissions have not started, claiming cannot happen yet.
    /// @param emissionStartTimestamp When emissions begin
    error EmissionsNotStarted(uint64 emissionStartTimestamp);

    /// @notice Emitted when emission start timestamp is updated.
    /// @param emissionStartTimestamp When emissions begin
    event SetEmissionStartTimestamp(uint256 emissionStartTimestamp);

    /// @notice Emitted when emission per second is updated.
    /// @param emissionRate New emission per second
    event SetEmissionPerSecond(uint256 emissionRate);

    /// @notice Emitted when SEAM tokens are claimed.
    /// @param receiver Address that claimed SEAM tokens
    /// @param amount Amount of SEAM tokens claimed
    event Claim(address indexed receiver, uint256 amount);

    /// @notice Returns SEAM token address.
    function getSeam() external view returns (address);

    /// @notice Returns the timestamp when emissions start and claiming can begin.
    function getEmissionStartTimestamp() external view returns (uint64);

    /// @notice Sets the emissions start timestamp.
    /// @param emissionStartTimestamp When emissions should begin
    function setEmissionStartTimestamp(uint64 emissionStartTimestamp) external;

    /// @notice Returns last claimed timestamp.
    function getLastClaimedTimestamp() external view returns (uint64);

    /// @notice Returns emission per second.
    function getEmissionPerSecond() external view returns (uint256);

    /// @notice Sets emission per second.
    /// @dev Every time before calling this function claim function should be called to update last claimed timestamp,
    ///      otherwise new emission rate will be applied from the last claimed timestamp.
    /// @param emissionPerSecond Emission per second
    function setEmissionPerSecond(uint256 emissionPerSecond) external;

    /// @notice Claims SEAM tokens and sends them to given address.
    /// @param receiver Address to receive SEAM tokens
    function claim(address receiver) external;
}

File 7 of 18 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../IERC20.sol";
import {IERC20Permit} from "../extensions/IERC20Permit.sol";
import {Address} from "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    /**
     * @dev An operation with an ERC20 token failed.
     */
    error SafeERC20FailedOperation(address token);

    /**
     * @dev Indicates a failed `decreaseAllowance` request.
     */
    error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        forceApprove(token, spender, oldAllowance + value);
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
     * value, non-reverting calls are assumed to be successful.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
        unchecked {
            uint256 currentAllowance = token.allowance(address(this), spender);
            if (currentAllowance < requestedDecrease) {
                revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
            }
            forceApprove(token, spender, currentAllowance - requestedDecrease);
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
     * to be set to zero before setting it to a non-zero value, such as USDT.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data);
        if (returndata.length != 0 && !abi.decode(returndata, (bool))) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

        (bool success, bytes memory returndata) = address(token).call(data);
        return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && address(token).code.length > 0;
    }
}

File 8 of 18 : SeamEmissionManagerStorage.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import {IERC20} from "openzeppelin-contracts/token/ERC20/IERC20.sol";

library SeamEmissionManagerStorage {
    struct Layout {
        IERC20 seam;
        uint256 emissionPerSecond;
        uint64 emissionStartTimestamp;
        uint64 lastClaimedTimestamp;
    }

    // keccak256(abi.encode(uint256(keccak256("seamless.contracts.storage.SeamEmissionManager")) - 1)) & ~bytes32(uint256(0xff))
    bytes32 private constant STORAGE_SLOT = 0x499527223a0cbf0f8120b81b4a5c3bfc177472cf818369c98e27b6304d0f5000;

    function layout() internal pure returns (Layout storage l) {
        bytes32 slot = STORAGE_SLOT;
        assembly {
            l.slot := slot
        }
    }
}

File 9 of 18 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/IAccessControl.sol)

pragma solidity ^0.8.20;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev The `account` is missing a role.
     */
    error AccessControlUnauthorizedAccount(address account, bytes32 neededRole);

    /**
     * @dev The caller of a function is not the expected one.
     *
     * NOTE: Don't confuse with {AccessControlUnauthorizedAccount}.
     */
    error AccessControlBadConfirmation();

    /**
     * @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.
     */
    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 `callerConfirmation`.
     */
    function renounceRole(bytes32 role, address callerConfirmation) external;
}

File 10 of 18 : ContextUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Context.sol)

pragma solidity ^0.8.20;
import {Initializable} from "../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;
    }
}

File 11 of 18 : ERC165Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/ERC165.sol)

pragma solidity ^0.8.20;

import {IERC165} from "@openzeppelin/contracts/utils/introspection/IERC165.sol";
import {Initializable} from "../../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);
 * }
 * ```
 */
abstract contract ERC165Upgradeable is Initializable, IERC165 {
    function __ERC165_init() internal onlyInitializing {
    }

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

File 12 of 18 : draft-IERC1822.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC1822.sol)

pragma solidity ^0.8.20;

/**
 * @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 IERC1822Proxiable {
    /**
     * @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 13 of 18 : ERC1967Utils.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (proxy/ERC1967/ERC1967Utils.sol)

pragma solidity ^0.8.20;

import {IBeacon} from "../beacon/IBeacon.sol";
import {Address} from "../../utils/Address.sol";
import {StorageSlot} from "../../utils/StorageSlot.sol";

/**
 * @dev This abstract contract provides getters and event emitting update functions for
 * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.
 */
library ERC1967Utils {
    // We re-declare ERC-1967 events here because they can't be used directly from IERC1967.
    // This will be fixed in Solidity 0.8.21. At that point we should remove these events.
    /**
     * @dev Emitted when the implementation is upgraded.
     */
    event Upgraded(address indexed implementation);

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

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

    /**
     * @dev Storage slot with the address of the current implementation.
     * This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1.
     */
    // solhint-disable-next-line private-vars-leading-underscore
    bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;

    /**
     * @dev The `implementation` of the proxy is invalid.
     */
    error ERC1967InvalidImplementation(address implementation);

    /**
     * @dev The `admin` of the proxy is invalid.
     */
    error ERC1967InvalidAdmin(address admin);

    /**
     * @dev The `beacon` of the proxy is invalid.
     */
    error ERC1967InvalidBeacon(address beacon);

    /**
     * @dev An upgrade function sees `msg.value > 0` that may be lost.
     */
    error ERC1967NonPayable();

    /**
     * @dev Returns the current implementation address.
     */
    function getImplementation() internal view returns (address) {
        return StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value;
    }

    /**
     * @dev Stores a new address in the EIP1967 implementation slot.
     */
    function _setImplementation(address newImplementation) private {
        if (newImplementation.code.length == 0) {
            revert ERC1967InvalidImplementation(newImplementation);
        }
        StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;
    }

    /**
     * @dev Performs implementation upgrade with additional setup call if data is nonempty.
     * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected
     * to avoid stuck value in the contract.
     *
     * Emits an {IERC1967-Upgraded} event.
     */
    function upgradeToAndCall(address newImplementation, bytes memory data) internal {
        _setImplementation(newImplementation);
        emit Upgraded(newImplementation);

        if (data.length > 0) {
            Address.functionDelegateCall(newImplementation, data);
        } else {
            _checkNonPayable();
        }
    }

    /**
     * @dev Storage slot with the admin of the contract.
     * This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1.
     */
    // solhint-disable-next-line private-vars-leading-underscore
    bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;

    /**
     * @dev Returns the current admin.
     *
     * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using
     * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.
     * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`
     */
    function getAdmin() internal view returns (address) {
        return StorageSlot.getAddressSlot(ADMIN_SLOT).value;
    }

    /**
     * @dev Stores a new address in the EIP1967 admin slot.
     */
    function _setAdmin(address newAdmin) private {
        if (newAdmin == address(0)) {
            revert ERC1967InvalidAdmin(address(0));
        }
        StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;
    }

    /**
     * @dev Changes the admin of the proxy.
     *
     * Emits an {IERC1967-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 the keccak-256 hash of "eip1967.proxy.beacon" subtracted by 1.
     */
    // solhint-disable-next-line private-vars-leading-underscore
    bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;

    /**
     * @dev Returns the current beacon.
     */
    function getBeacon() internal view returns (address) {
        return StorageSlot.getAddressSlot(BEACON_SLOT).value;
    }

    /**
     * @dev Stores a new beacon in the EIP1967 beacon slot.
     */
    function _setBeacon(address newBeacon) private {
        if (newBeacon.code.length == 0) {
            revert ERC1967InvalidBeacon(newBeacon);
        }

        StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;

        address beaconImplementation = IBeacon(newBeacon).implementation();
        if (beaconImplementation.code.length == 0) {
            revert ERC1967InvalidImplementation(beaconImplementation);
        }
    }

    /**
     * @dev Change the beacon and trigger a setup call if data is nonempty.
     * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected
     * to avoid stuck value in the contract.
     *
     * Emits an {IERC1967-BeaconUpgraded} event.
     *
     * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since
     * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for
     * efficiency.
     */
    function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {
        _setBeacon(newBeacon);
        emit BeaconUpgraded(newBeacon);

        if (data.length > 0) {
            Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);
        } else {
            _checkNonPayable();
        }
    }

    /**
     * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract
     * if an upgrade doesn't perform an initialization call.
     */
    function _checkNonPayable() private {
        if (msg.value > 0) {
            revert ERC1967NonPayable();
        }
    }
}

File 14 of 18 : IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 *
 * ==== Security Considerations
 *
 * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
 * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
 * considered as an intention to spend the allowance in any specific way. The second is that because permits have
 * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
 * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
 * generally recommended is:
 *
 * ```solidity
 * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
 *     try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
 *     doThing(..., value);
 * }
 *
 * function doThing(..., uint256 value) public {
 *     token.safeTransferFrom(msg.sender, address(this), value);
 *     ...
 * }
 * ```
 *
 * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
 * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
 * {SafeERC20-safeTransferFrom}).
 *
 * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
 * contracts should have entry points that don't rely on permit.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     *
     * CAUTION: See Security Considerations above.
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

File 15 of 18 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)

pragma solidity ^0.8.20;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev The ETH balance of the account is not enough to perform the operation.
     */
    error AddressInsufficientBalance(address account);

    /**
     * @dev There's no code at `target` (it is not a contract).
     */
    error AddressEmptyCode(address target);

    /**
     * @dev A call to an address target failed. The target may have reverted.
     */
    error FailedInnerCall();

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        if (address(this).balance < amount) {
            revert AddressInsufficientBalance(address(this));
        }

        (bool success, ) = recipient.call{value: amount}("");
        if (!success) {
            revert FailedInnerCall();
        }
    }

    /**
     * @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 or custom error, it is bubbled
     * up by this function (like regular Solidity function calls). However, if
     * the call reverted with no returned reason, this function reverts with a
     * {FailedInnerCall} error.
     *
     * 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.
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0);
    }

    /**
     * @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`.
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        if (address(this).balance < value) {
            revert AddressInsufficientBalance(address(this));
        }
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
     * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an
     * unsuccessful call.
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata
    ) internal view returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            // only check if target is a contract if the call was successful and the return data is empty
            // otherwise we already know that it was a contract
            if (returndata.length == 0 && target.code.length == 0) {
                revert AddressEmptyCode(target);
            }
            return returndata;
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
     * revert reason or with a default {FailedInnerCall} error.
     */
    function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            return returndata;
        }
    }

    /**
     * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.
     */
    function _revert(bytes memory returndata) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert FailedInnerCall();
        }
    }
}

File 16 of 18 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 17 of 18 : IBeacon.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (proxy/beacon/IBeacon.sol)

pragma solidity ^0.8.20;

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

File 18 of 18 : StorageSlot.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/StorageSlot.sol)
// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.

pragma solidity ^0.8.20;

/**
 * @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:
 * ```solidity
 * 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(newImplementation.code.length > 0);
 *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
 *     }
 * }
 * ```
 */
library StorageSlot {
    struct AddressSlot {
        address value;
    }

    struct BooleanSlot {
        bool value;
    }

    struct Bytes32Slot {
        bytes32 value;
    }

    struct Uint256Slot {
        uint256 value;
    }

    struct StringSlot {
        string value;
    }

    struct BytesSlot {
        bytes value;
    }

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

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

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

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

    /**
     * @dev Returns an `StringSlot` with member `value` located at `slot`.
     */
    function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `StringSlot` representation of the string storage pointer `store`.
     */
    function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := store.slot
        }
    }

    /**
     * @dev Returns an `BytesSlot` with member `value` located at `slot`.
     */
    function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.
     */
    function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := store.slot
        }
    }
}

Settings
{
  "remappings": [
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "erc4626-tests/=lib/openzeppelin-contracts-upgradeable/lib/erc4626-tests/",
    "forge-std/=lib/forge-std/src/",
    "openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/",
    "@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/",
    "@openzeppelin/contracts/=lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 100
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "evmVersion": "paris",
  "debug": {
    "revertStrings": "strip"
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AccessControlBadConfirmation","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32","name":"neededRole","type":"bytes32"}],"name":"AccessControlUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AddressInsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"implementation","type":"address"}],"name":"ERC1967InvalidImplementation","type":"error"},{"inputs":[],"name":"ERC1967NonPayable","type":"error"},{"inputs":[{"internalType":"uint64","name":"emissionStartTimestamp","type":"uint64"}],"name":"EmissionsNotStarted","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"inputs":[],"name":"InvalidInitialization","type":"error"},{"inputs":[],"name":"NotInitializing","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"inputs":[],"name":"UUPSUnauthorizedCallContext","type":"error"},{"inputs":[{"internalType":"bytes32","name":"slot","type":"bytes32"}],"name":"UUPSUnsupportedProxiableUUID","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint64","name":"version","type":"uint64"}],"name":"Initialized","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":"emissionRate","type":"uint256"}],"name":"SetEmissionPerSecond","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"emissionStartTimestamp","type":"uint256"}],"name":"SetEmissionStartTimestamp","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"inputs":[],"name":"CLAIMER_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":"UPGRADE_INTERFACE_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getEmissionPerSecond","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getEmissionStartTimestamp","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLastClaimedTimestamp","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSeam","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"seam","type":"address"},{"internalType":"uint256","name":"emissionPerSecond","type":"uint256"},{"internalType":"address","name":"initialAdmin","type":"address"},{"internalType":"address","name":"claimer","type":"address"},{"internalType":"uint64","name":"emissionStart","type":"uint64"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"proxiableUUID","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"callerConfirmation","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":"uint256","name":"emissionPerSecond","type":"uint256"}],"name":"setEmissionPerSecond","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"emissionStartTimestamp","type":"uint64"}],"name":"setEmissionStartTimestamp","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":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"}]

60a06040523060805234801561001457600080fd5b5061001d610022565b6100d4565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100725760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d15780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b60805161133a6100fd60003960008181610aac01528181610ad50152610bfb015261133a6000f3fe6080604052600436106101045760003560e01c80635342c17a116100a0578063a217fddf11610064578063a217fddf146102da578063ad3cb1cc146102ef578063bbfa99491461032d578063d547741f14610342578063fc5f18d31461036257600080fd5b80635342c17a146102435780635b94fe01146102635780636e2d37861461028357806391d14854146102a557806397309eaa146102c557600080fd5b806301ffc9a71461010957806305b0e57d1461013e57806318f5b8ea146101605780631e83409a1461018d578063248a9ca3146101ad5780632f2ff15d146101db57806336568abe146101fb5780634f1ef2861461021b57806352d1902d1461022e575b600080fd5b34801561011557600080fd5b50610129610124366004610fa8565b610384565b60405190151581526020015b60405180910390f35b34801561014a57600080fd5b5061015e610159366004610fee565b6103bb565b005b34801561016c57600080fd5b50610175610433565b6040516001600160401b039091168152602001610135565b34801561019957600080fd5b5061015e6101a8366004611020565b61044f565b3480156101b957600080fd5b506101cd6101c836600461103b565b610576565b604051908152602001610135565b3480156101e757600080fd5b5061015e6101f6366004611054565b610596565b34801561020757600080fd5b5061015e610216366004611054565b6105b8565b61015e610229366004611096565b6105f0565b34801561023a57600080fd5b506101cd61060f565b34801561024f57600080fd5b5061015e61025e366004611157565b61062c565b34801561026f57600080fd5b5061015e61027e36600461103b565b6107d6565b34801561028f57600080fd5b50610298610825565b60405161013591906111b5565b3480156102b157600080fd5b506101296102c0366004611054565b61083e565b3480156102d157600080fd5b506101cd610874565b3480156102e657600080fd5b506101cd600081565b3480156102fb57600080fd5b50610320604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161013591906111ed565b34801561033957600080fd5b50610175610887565b34801561034e57600080fd5b5061015e61035d366004611054565b6108be565b34801561036e57600080fd5b506101cd6000805160206112c583398151915281565b60006001600160e01b03198216637965db0b60e01b14806103b557506301ffc9a760e01b6001600160e01b03198316145b92915050565b60006103c6816108da565b60006103d06108e7565b6002810180546001600160801b0319166001600160401b038616908117600160401b8202179091556040519081529091507f925f45c6bda314751239c71a6301a0061314639c4991c94895a003dbbe3ad6169060200160405180910390a1505050565b600061043d6108e7565b600201546001600160401b0316919050565b6000805160206112c5833981519152610467816108da565b60006104716108e7565b60028101549091506001600160401b0316428111156104b35760405163839747ab60e01b81526001600160401b03821660048201526024015b60405180910390fd5b60018201546002830154600160401b90046001600160401b0316426000836104db8484611236565b6001600160401b03166104ee9190611256565b8654909150610507906001600160a01b0316898361090b565b60028601805467ffffffffffffffff60401b1916600160401b6001600160401b038516021790556040518181526001600160a01b038916907f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d49060200160405180910390a25050505050505050565b60008061058161095d565b60009384526020525050604090206001015490565b61059f82610576565b6105a8816108da565b6105b28383610981565b50505050565b6001600160a01b03811633146105e15760405163334bd91960e11b815260040160405180910390fd5b6105eb8282610a29565b505050565b6105f8610aa1565b61060182610b31565b61060b8282610b3c565b5050565b6000610619610bf0565b506000805160206112e583398151915290565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff1615906001600160401b03166000811580156106715750825b90506000826001600160401b0316600114801561068d5750303b155b90508115801561069b575080155b156106b95760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff1916600117855583156106e357845460ff60401b1916600160401b1785555b6106eb610c39565b6106f3610c39565b6106fe600089610981565b506107176000805160206112c583398151915289610981565b506107306000805160206112c583398151915288610981565b50600061073b6108e7565b80546001600160a01b0319166001600160a01b038d16178155600181018b905560020180546001600160801b0319166001600160401b038916908117600160401b919091021790555083156107ca57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050505050565b60006107e1816108da565b816107ea6108e7565b600101556040518281527fff5bc3605e7ccfd2b0d6984dd984610ad9a0a1de5d16bc2d007ae4920f839fd19060200160405180910390a15050565b600061082f6108e7565b546001600160a01b0316919050565b60008061084961095d565b6000948552602090815260408086206001600160a01b03959095168652939052505090205460ff1690565b600061087e6108e7565b60010154905090565b6000806108926108e7565b60020154600160401b90046001600160401b031690504281116108b557806108b8565b60005b91505090565b6108c782610576565b6108d0816108da565b6105b28383610a29565b6108e48133610c41565b50565b7f499527223a0cbf0f8120b81b4a5c3bfc177472cf818369c98e27b6304d0f500090565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526105eb908490610c7a565b7f02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b62680090565b60008061098c61095d565b9050610998848461083e565b610a18576000848152602082815260408083206001600160a01b03871684529091529020805460ff191660011790556109ce3390565b6001600160a01b0316836001600160a01b0316857f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a460019150506103b5565b60009150506103b5565b5092915050565b600080610a3461095d565b9050610a40848461083e565b15610a18576000848152602082815260408083206001600160a01b0387168085529252808320805460ff1916905551339287917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a460019150506103b5565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480610b1157507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610b05610cd4565b6001600160a01b031614155b15610b2f5760405163703e46dd60e11b815260040160405180910390fd5b565b600061060b816108da565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610b96575060408051601f3d908101601f19168201909252610b939181019061126d565b60015b610bb55781604051634c9c8ce360e01b81526004016104aa91906111b5565b6000805160206112e58339815191528114610be657604051632a87526960e21b8152600481018290526024016104aa565b6105eb8383610cea565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610b2f5760405163703e46dd60e11b815260040160405180910390fd5b610b2f610d40565b610c4b828261083e565b61060b5760405163e2517d3f60e01b81526001600160a01b0382166004820152602481018390526044016104aa565b6000610c8f6001600160a01b03841683610d89565b90508051600014158015610cb4575080806020019051810190610cb29190611286565b155b156105eb5782604051635274afe760e01b81526004016104aa91906111b5565b60006000805160206112e583398151915261082f565b610cf382610d9e565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a2805115610d38576105eb8282610dfa565b61060b610e70565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054600160401b900460ff16610b2f57604051631afcd79f60e31b815260040160405180910390fd5b6060610d9783836000610e8f565b9392505050565b806001600160a01b03163b600003610dcb5780604051634c9c8ce360e01b81526004016104aa91906111b5565b6000805160206112e583398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b6060600080846001600160a01b031684604051610e1791906112a8565b600060405180830381855af49150503d8060008114610e52576040519150601f19603f3d011682016040523d82523d6000602084013e610e57565b606091505b5091509150610e67858383610f2c565b95945050505050565b3415610b2f5760405163b398979f60e01b815260040160405180910390fd5b606081471015610eb4573060405163cd78605960e01b81526004016104aa91906111b5565b600080856001600160a01b03168486604051610ed091906112a8565b60006040518083038185875af1925050503d8060008114610f0d576040519150601f19603f3d011682016040523d82523d6000602084013e610f12565b606091505b5091509150610f22868383610f2c565b9695505050505050565b606082610f4157610f3c82610f7f565b610d97565b8151158015610f5857506001600160a01b0384163b155b15610f785783604051639996b31560e01b81526004016104aa91906111b5565b5080610d97565b805115610f8f5780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b600060208284031215610fba57600080fd5b81356001600160e01b031981168114610d9757600080fd5b80356001600160401b0381168114610fe957600080fd5b919050565b60006020828403121561100057600080fd5b610d9782610fd2565b80356001600160a01b0381168114610fe957600080fd5b60006020828403121561103257600080fd5b610d9782611009565b60006020828403121561104d57600080fd5b5035919050565b6000806040838503121561106757600080fd5b8235915061107760208401611009565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b600080604083850312156110a957600080fd5b6110b283611009565b915060208301356001600160401b03808211156110ce57600080fd5b818501915085601f8301126110e257600080fd5b8135818111156110f4576110f4611080565b604051601f8201601f19908116603f0116810190838211818310171561111c5761111c611080565b8160405282815288602084870101111561113557600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b600080600080600060a0868803121561116f57600080fd5b61117886611009565b94506020860135935061118d60408701611009565b925061119b60608701611009565b91506111a960808701610fd2565b90509295509295909350565b6001600160a01b0391909116815260200190565b60005b838110156111e45781810151838201526020016111cc565b50506000910152565b602081526000825180602084015261120c8160408501602087016111c9565b601f01601f19169190910160400192915050565b634e487b7160e01b600052601160045260246000fd5b6001600160401b03828116828216039080821115610a2257610a22611220565b80820281158282048414176103b5576103b5611220565b60006020828403121561127f57600080fd5b5051919050565b60006020828403121561129857600080fd5b81518015158114610d9757600080fd5b600082516112ba8184602087016111c9565b919091019291505056fe11a8cb5a02bd6c42679835e867ef2118ba78f088f8300511420c6603c21d9c78360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122009eb004ce6e271790d54ebdccba51d37e4cc2e02a261c22ee6ee53470254d7ea64736f6c63430008140033

Deployed Bytecode

0x6080604052600436106101045760003560e01c80635342c17a116100a0578063a217fddf11610064578063a217fddf146102da578063ad3cb1cc146102ef578063bbfa99491461032d578063d547741f14610342578063fc5f18d31461036257600080fd5b80635342c17a146102435780635b94fe01146102635780636e2d37861461028357806391d14854146102a557806397309eaa146102c557600080fd5b806301ffc9a71461010957806305b0e57d1461013e57806318f5b8ea146101605780631e83409a1461018d578063248a9ca3146101ad5780632f2ff15d146101db57806336568abe146101fb5780634f1ef2861461021b57806352d1902d1461022e575b600080fd5b34801561011557600080fd5b50610129610124366004610fa8565b610384565b60405190151581526020015b60405180910390f35b34801561014a57600080fd5b5061015e610159366004610fee565b6103bb565b005b34801561016c57600080fd5b50610175610433565b6040516001600160401b039091168152602001610135565b34801561019957600080fd5b5061015e6101a8366004611020565b61044f565b3480156101b957600080fd5b506101cd6101c836600461103b565b610576565b604051908152602001610135565b3480156101e757600080fd5b5061015e6101f6366004611054565b610596565b34801561020757600080fd5b5061015e610216366004611054565b6105b8565b61015e610229366004611096565b6105f0565b34801561023a57600080fd5b506101cd61060f565b34801561024f57600080fd5b5061015e61025e366004611157565b61062c565b34801561026f57600080fd5b5061015e61027e36600461103b565b6107d6565b34801561028f57600080fd5b50610298610825565b60405161013591906111b5565b3480156102b157600080fd5b506101296102c0366004611054565b61083e565b3480156102d157600080fd5b506101cd610874565b3480156102e657600080fd5b506101cd600081565b3480156102fb57600080fd5b50610320604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161013591906111ed565b34801561033957600080fd5b50610175610887565b34801561034e57600080fd5b5061015e61035d366004611054565b6108be565b34801561036e57600080fd5b506101cd6000805160206112c583398151915281565b60006001600160e01b03198216637965db0b60e01b14806103b557506301ffc9a760e01b6001600160e01b03198316145b92915050565b60006103c6816108da565b60006103d06108e7565b6002810180546001600160801b0319166001600160401b038616908117600160401b8202179091556040519081529091507f925f45c6bda314751239c71a6301a0061314639c4991c94895a003dbbe3ad6169060200160405180910390a1505050565b600061043d6108e7565b600201546001600160401b0316919050565b6000805160206112c5833981519152610467816108da565b60006104716108e7565b60028101549091506001600160401b0316428111156104b35760405163839747ab60e01b81526001600160401b03821660048201526024015b60405180910390fd5b60018201546002830154600160401b90046001600160401b0316426000836104db8484611236565b6001600160401b03166104ee9190611256565b8654909150610507906001600160a01b0316898361090b565b60028601805467ffffffffffffffff60401b1916600160401b6001600160401b038516021790556040518181526001600160a01b038916907f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d49060200160405180910390a25050505050505050565b60008061058161095d565b60009384526020525050604090206001015490565b61059f82610576565b6105a8816108da565b6105b28383610981565b50505050565b6001600160a01b03811633146105e15760405163334bd91960e11b815260040160405180910390fd5b6105eb8282610a29565b505050565b6105f8610aa1565b61060182610b31565b61060b8282610b3c565b5050565b6000610619610bf0565b506000805160206112e583398151915290565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff1615906001600160401b03166000811580156106715750825b90506000826001600160401b0316600114801561068d5750303b155b90508115801561069b575080155b156106b95760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff1916600117855583156106e357845460ff60401b1916600160401b1785555b6106eb610c39565b6106f3610c39565b6106fe600089610981565b506107176000805160206112c583398151915289610981565b506107306000805160206112c583398151915288610981565b50600061073b6108e7565b80546001600160a01b0319166001600160a01b038d16178155600181018b905560020180546001600160801b0319166001600160401b038916908117600160401b919091021790555083156107ca57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050505050565b60006107e1816108da565b816107ea6108e7565b600101556040518281527fff5bc3605e7ccfd2b0d6984dd984610ad9a0a1de5d16bc2d007ae4920f839fd19060200160405180910390a15050565b600061082f6108e7565b546001600160a01b0316919050565b60008061084961095d565b6000948552602090815260408086206001600160a01b03959095168652939052505090205460ff1690565b600061087e6108e7565b60010154905090565b6000806108926108e7565b60020154600160401b90046001600160401b031690504281116108b557806108b8565b60005b91505090565b6108c782610576565b6108d0816108da565b6105b28383610a29565b6108e48133610c41565b50565b7f499527223a0cbf0f8120b81b4a5c3bfc177472cf818369c98e27b6304d0f500090565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526105eb908490610c7a565b7f02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b62680090565b60008061098c61095d565b9050610998848461083e565b610a18576000848152602082815260408083206001600160a01b03871684529091529020805460ff191660011790556109ce3390565b6001600160a01b0316836001600160a01b0316857f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a460019150506103b5565b60009150506103b5565b5092915050565b600080610a3461095d565b9050610a40848461083e565b15610a18576000848152602082815260408083206001600160a01b0387168085529252808320805460ff1916905551339287917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a460019150506103b5565b306001600160a01b037f00000000000000000000000003eeedf76a007dce47b3a0044d9f0a04badd9cfa161480610b1157507f00000000000000000000000003eeedf76a007dce47b3a0044d9f0a04badd9cfa6001600160a01b0316610b05610cd4565b6001600160a01b031614155b15610b2f5760405163703e46dd60e11b815260040160405180910390fd5b565b600061060b816108da565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610b96575060408051601f3d908101601f19168201909252610b939181019061126d565b60015b610bb55781604051634c9c8ce360e01b81526004016104aa91906111b5565b6000805160206112e58339815191528114610be657604051632a87526960e21b8152600481018290526024016104aa565b6105eb8383610cea565b306001600160a01b037f00000000000000000000000003eeedf76a007dce47b3a0044d9f0a04badd9cfa1614610b2f5760405163703e46dd60e11b815260040160405180910390fd5b610b2f610d40565b610c4b828261083e565b61060b5760405163e2517d3f60e01b81526001600160a01b0382166004820152602481018390526044016104aa565b6000610c8f6001600160a01b03841683610d89565b90508051600014158015610cb4575080806020019051810190610cb29190611286565b155b156105eb5782604051635274afe760e01b81526004016104aa91906111b5565b60006000805160206112e583398151915261082f565b610cf382610d9e565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a2805115610d38576105eb8282610dfa565b61060b610e70565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054600160401b900460ff16610b2f57604051631afcd79f60e31b815260040160405180910390fd5b6060610d9783836000610e8f565b9392505050565b806001600160a01b03163b600003610dcb5780604051634c9c8ce360e01b81526004016104aa91906111b5565b6000805160206112e583398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b6060600080846001600160a01b031684604051610e1791906112a8565b600060405180830381855af49150503d8060008114610e52576040519150601f19603f3d011682016040523d82523d6000602084013e610e57565b606091505b5091509150610e67858383610f2c565b95945050505050565b3415610b2f5760405163b398979f60e01b815260040160405180910390fd5b606081471015610eb4573060405163cd78605960e01b81526004016104aa91906111b5565b600080856001600160a01b03168486604051610ed091906112a8565b60006040518083038185875af1925050503d8060008114610f0d576040519150601f19603f3d011682016040523d82523d6000602084013e610f12565b606091505b5091509150610f22868383610f2c565b9695505050505050565b606082610f4157610f3c82610f7f565b610d97565b8151158015610f5857506001600160a01b0384163b155b15610f785783604051639996b31560e01b81526004016104aa91906111b5565b5080610d97565b805115610f8f5780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b600060208284031215610fba57600080fd5b81356001600160e01b031981168114610d9757600080fd5b80356001600160401b0381168114610fe957600080fd5b919050565b60006020828403121561100057600080fd5b610d9782610fd2565b80356001600160a01b0381168114610fe957600080fd5b60006020828403121561103257600080fd5b610d9782611009565b60006020828403121561104d57600080fd5b5035919050565b6000806040838503121561106757600080fd5b8235915061107760208401611009565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b600080604083850312156110a957600080fd5b6110b283611009565b915060208301356001600160401b03808211156110ce57600080fd5b818501915085601f8301126110e257600080fd5b8135818111156110f4576110f4611080565b604051601f8201601f19908116603f0116810190838211818310171561111c5761111c611080565b8160405282815288602084870101111561113557600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b600080600080600060a0868803121561116f57600080fd5b61117886611009565b94506020860135935061118d60408701611009565b925061119b60608701611009565b91506111a960808701610fd2565b90509295509295909350565b6001600160a01b0391909116815260200190565b60005b838110156111e45781810151838201526020016111cc565b50506000910152565b602081526000825180602084015261120c8160408501602087016111c9565b601f01601f19169190910160400192915050565b634e487b7160e01b600052601160045260246000fd5b6001600160401b03828116828216039080821115610a2257610a22611220565b80820281158282048414176103b5576103b5611220565b60006020828403121561127f57600080fd5b5051919050565b60006020828403121561129857600080fd5b81518015158114610d9757600080fd5b600082516112ba8184602087016111c9565b919091019291505056fe11a8cb5a02bd6c42679835e867ef2118ba78f088f8300511420c6603c21d9c78360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122009eb004ce6e271790d54ebdccba51d37e4cc2e02a261c22ee6ee53470254d7ea64736f6c63430008140033

Deployed ByteCode Sourcemap

828:3550:15:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3443:202:0;;;;;;;;;;-1:-1:-1;3443:202:0;;;;;:::i;:::-;;:::i;:::-;;;470:14:18;;463:22;445:41;;433:2;418:18;3443:202:0;;;;;;;;2508:344:15;;;;;;;;;;-1:-1:-1;2508:344:15;;;;;:::i;:::-;;:::i;:::-;;2330:131;;;;;;;;;;;;;:::i;:::-;;;-1:-1:-1;;;;;1024:31:18;;;1006:50;;994:2;979:18;2330:131:15;862:200:18;3614:762:15;;;;;;;;;;-1:-1:-1;3614:762:15;;;;;:::i;:::-;;:::i;4759:191:0:-;;;;;;;;;;-1:-1:-1;4759:191:0;;;;;:::i;:::-;;:::i;:::-;;;1767:25:18;;;1755:2;1740:18;4759:191:0;1621:177:18;5246:136:0;;;;;;;;;;-1:-1:-1;5246:136:0;;;;;:::i;:::-;;:::i;6348:245::-;;;;;;;;;;-1:-1:-1;6348:245:0;;;;;:::i;:::-;;:::i;4158:214:2:-;;;;;;:::i;:::-;;:::i;3705:134::-;;;;;;;;;;;;;:::i;1349:655:15:-;;;;;;;;;;-1:-1:-1;1349:655:15;;;;;:::i;:::-;;:::i;3347:220::-;;;;;;;;;;-1:-1:-1;3347:220:15;;;;;:::i;:::-;;:::i;2178:105::-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;3732:207:0:-;;;;;;;;;;-1:-1:-1;3732:207:0;;;;;:::i;:::-;;:::i;3178:122:15:-;;;;;;;;;;;;;:::i;2317:49:0:-;;;;;;;;;;-1:-1:-1;2317:49:0;2362:4;2317:49;;1819:58:2;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;1819:58:2;;;;;;;;;;;;:::i;2899:232:15:-;;;;;;;;;;;;;:::i;5662:138:0:-;;;;;;;;;;-1:-1:-1;5662:138:0;;;;;:::i;:::-;;:::i;945:64:15:-;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;945:64:15;;3443:202:0;3528:4;-1:-1:-1;;;;;;3551:47:0;;-1:-1:-1;;;3551:47:0;;:87;;-1:-1:-1;;;;;;;;;;1133:40:4;;;3602:36:0;3544:94;3443:202;-1:-1:-1;;3443:202:0:o;2508:344:15:-;2362:4:0;3191:16;2362:4;3191:10;:16::i;:::-;2622:24:15::1;2649:16;:14;:16::i;:::-;2675:24;::::0;::::1;:49:::0;;-1:-1:-1;;;;;;2734:47:15;-1:-1:-1;;;;;2675:49:15;::::1;2734:47:::0;;;-1:-1:-1;;;2734:47:15;::::1;;::::0;;;2796:49:::1;::::0;1006:50:18;;;2675:24:15;;-1:-1:-1;2796:49:15::1;::::0;994:2:18;979:18;2796:49:15::1;;;;;;;2612:240;2508:344:::0;;:::o;2330:131::-;2390:6;2415:16;:14;:16::i;:::-;:39;;;-1:-1:-1;;;;;2415:39:15;;2330:131;-1:-1:-1;2330:131:15:o;3614:762::-;-1:-1:-1;;;;;;;;;;;3191:16:0;3202:4;3191:10;:16::i;:::-;3689:24:15::1;3716:16;:14;:16::i;:::-;3775:24;::::0;::::1;::::0;3689:43;;-1:-1:-1;;;;;;3775:24:15::1;3838:15;3813:40:::0;::::1;3809:121;;;3876:43;::::0;-1:-1:-1;;;3876:43:15;;-1:-1:-1;;;;;1024:31:18;;3876:43:15::1;::::0;::::1;1006:50:18::0;979:18;;3876:43:15::1;;;;;;;;3809:121;3968:19;::::0;::::1;::::0;4027:22:::1;::::0;::::1;::::0;-1:-1:-1;;;4027:22:15;::::1;-1:-1:-1::0;;;;;4027:22:15::1;4092:15;3940:25;3968:19:::0;4144:39:::1;4027:22:::0;4092:15;4144:39:::1;:::i;:::-;-1:-1:-1::0;;;;;4143:61:15::1;;;;;:::i;:::-;4238:6:::0;;4118:86;;-1:-1:-1;4215:56:15::1;::::0;-1:-1:-1;;;;;4238:6:15::1;4246:8:::0;4118:86;4215:22:::1;:56::i;:::-;4281:22;::::0;::::1;:41:::0;;-1:-1:-1;;;;4281:41:15::1;-1:-1:-1::0;;;;;;;;4281:41:15;::::1;;;::::0;;4338:31:::1;::::0;1767:25:18;;;-1:-1:-1;;;;;4338:31:15;::::1;::::0;::::1;::::0;1755:2:18;1740:18;4338:31:15::1;;;;;;;3679:697;;;;;;3614:762:::0;;:::o;4759:191:0:-;4824:7;4843:30;4876:26;:24;:26::i;:::-;4919:8;:14;;;;;-1:-1:-1;;4919:14:0;;;:24;;;;4759:191::o;5246:136::-;5320:18;5333:4;5320:12;:18::i;:::-;3191:16;3202:4;3191:10;:16::i;:::-;5350:25:::1;5361:4;5367:7;5350:10;:25::i;:::-;;5246:136:::0;;;:::o;6348:245::-;-1:-1:-1;;;;;6441:34:0;;966:10:3;6441:34:0;6437:102;;6498:30;;-1:-1:-1;;;6498:30:0;;;;;;;;;;;6437:102;6549:37;6561:4;6567:18;6549:11;:37::i;:::-;;6348:245;;:::o;4158:214:2:-;2653:13;:11;:13::i;:::-;4273:36:::1;4291:17;4273;:36::i;:::-;4319:46;4341:17;4360:4;4319:21;:46::i;:::-;4158:214:::0;;:::o;3705:134::-;3774:7;2924:20;:18;:20::i;:::-;-1:-1:-1;;;;;;;;;;;;3705:134:2;:::o;1349:655:15:-;8870:21:1;4302:15;;-1:-1:-1;;;4302:15:1;;;;4301:16;;-1:-1:-1;;;;;4348:14:1;4158:30;4726:16;;:34;;;;;4746:14;4726:34;4706:54;;4770:17;4790:11;-1:-1:-1;;;;;4790:16:1;4805:1;4790:16;:50;;;;-1:-1:-1;4818:4:1;4810:25;:30;4790:50;4770:70;;4856:12;4855:13;:30;;;;;4873:12;4872:13;4855:30;4851:91;;;4908:23;;-1:-1:-1;;;4908:23:1;;;;;;;;;;;4851:91;4951:18;;-1:-1:-1;;4951:18:1;4968:1;4951:18;;;4979:67;;;;5013:22;;-1:-1:-1;;;;5013:22:1;-1:-1:-1;;;5013:22:1;;;4979:67;1548:22:15::1;:20;:22::i;:::-;1580:24;:22;:24::i;:::-;1614:44;2362:4:0;1645:12:15::0;1614:10:::1;:44::i;:::-;;1668:38;-1:-1:-1::0;;;;;;;;;;;1693:12:15::1;1668:10;:38::i;:::-;;1716:33;-1:-1:-1::0;;;;;;;;;;;1741:7:15::1;1716:10;:33::i;:::-;;1760:24;1787:16;:14;:16::i;:::-;1813:21:::0;;-1:-1:-1;;;;;;1813:21:15::1;-1:-1:-1::0;;;;;1813:21:15;::::1;;::::0;;-1:-1:-1;1844:19:15;::::1;:39:::0;;;1893:24:::1;;:48:::0;;-1:-1:-1;;;;;;1951:46:15;-1:-1:-1;;;;;1893:48:15;::::1;1951:46:::0;;;-1:-1:-1;;;1951:46:15;;;::::1;;::::0;;-1:-1:-1;5066:101:1;;;;5100:23;;-1:-1:-1;;;;5100:23:1;;;5142:14;;-1:-1:-1;1006:50:18;;5142:14:1;;994:2:18;979:18;5142:14:1;;;;;;;5066:101;4092:1081;;;;;1349:655:15;;;;;:::o;3347:220::-;2362:4:0;3191:16;2362:4;3191:10;:16::i;:::-;3489:17:15::1;3452:16;:14;:16::i;:::-;:34;;:54:::0;3521:39:::1;::::0;1767:25:18;;;3521:39:15::1;::::0;1755:2:18;1740:18;3521:39:15::1;;;;;;;3347:220:::0;;:::o;2178:105::-;2220:7;2254:16;:14;:16::i;:::-;:21;-1:-1:-1;;;;;2254:21:15;;2178:105;-1:-1:-1;2178:105:15:o;3732:207:0:-;3809:4;3825:30;3858:26;:24;:26::i;:::-;3901:8;:14;;;;;;;;;;;-1:-1:-1;;;;;3901:31:0;;;;;;;;;-1:-1:-1;;3901:31:0;;;;;;3732:207::o;3178:122:15:-;3233:7;3259:16;:14;:16::i;:::-;:34;;;3252:41;;3178:122;:::o;2899:232::-;2957:6;2975:27;3005:16;:14;:16::i;:::-;:37;;;-1:-1:-1;;;3005:37:15;;-1:-1:-1;;;;;3005:37:15;;-1:-1:-1;3082:15:15;3059:38;;:65;;3104:20;3059:65;;;3100:1;3059:65;3052:72;;;2899:232;:::o;5662:138:0:-;5737:18;5750:4;5737:12;:18::i;:::-;3191:16;3202:4;3191:10;:16::i;:::-;5767:26:::1;5779:4;5785:7;5767:11;:26::i;4148:103::-:0;4214:30;4225:4;966:10:3;4214::0;:30::i;:::-;4148:103;:::o;571:159:17:-;498:66;;571:159::o;1303:160:11:-;1412:43;;;-1:-1:-1;;;;;6011:32:18;;1412:43:11;;;5993:51:18;6060:18;;;;6053:34;;;1412:43:11;;;;;;;;;;5966:18:18;;;;1412:43:11;;;;;;;;-1:-1:-1;;;;;1412:43:11;-1:-1:-1;;;1412:43:11;;;1385:71;;1405:5;;1385:19;:71::i;2787:177:0:-;2920:28;;2787:177::o;7270:387::-;7347:4;7363:30;7396:26;:24;:26::i;:::-;7363:59;;7437:22;7445:4;7451:7;7437;:22::i;:::-;7432:219;;7475:8;:14;;;;;;;;;;;-1:-1:-1;;;;;7475:31:0;;;;;;;;;:38;;-1:-1:-1;;7475:38:0;7509:4;7475:38;;;7559:12;966:10:3;;887:96;7559:12:0;-1:-1:-1;;;;;7532:40:0;7550:7;-1:-1:-1;;;;;7532:40:0;7544:4;7532:40;;;;;;;;;;7593:4;7586:11;;;;;7432:219;7635:5;7628:12;;;;;7432:219;7353:304;7270:387;;;;:::o;7892:388::-;7970:4;7986:30;8019:26;:24;:26::i;:::-;7986:59;;8059:22;8067:4;8073:7;8059;:22::i;:::-;8055:219;;;8131:5;8097:14;;;;;;;;;;;-1:-1:-1;;;;;8097:31:0;;;;;;;;;;:39;;-1:-1:-1;;8097:39:0;;;8155:40;966:10:3;;8097:14:0;;8155:40;;8131:5;8155:40;8216:4;8209:11;;;;;4599:312:2;4679:4;-1:-1:-1;;;;;4688:6:2;4671:23;;;:120;;;4785:6;-1:-1:-1;;;;;4749:42:2;:32;:30;:32::i;:::-;-1:-1:-1;;;;;4749:42:2;;;4671:120;4654:251;;;4865:29;;-1:-1:-1;;;4865:29:2;;;;;;;;;;;4654:251;4599:312::o;2046:85:15:-;2362:4:0;3191:16;2362:4;3191:10;:16::i;6052:538:2:-;6169:17;-1:-1:-1;;;;;6151:50:2;;:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;6151:52:2;;;;;;;;-1:-1:-1;;6151:52:2;;;;;;;;;;;;:::i;:::-;;;6147:437;;6555:17;6513:60;;-1:-1:-1;;;6513:60:2;;;;;;;;:::i;6147:437::-;-1:-1:-1;;;;;;;;;;;6245:40:2;;6241:120;;6312:34;;-1:-1:-1;;;6312:34:2;;;;;1767:25:18;;;1740:18;;6312:34:2;1621:177:18;6241:120:2;6374:54;6404:17;6423:4;6374:29;:54::i;5028:213::-;5102:4;-1:-1:-1;;;;;5111:6:2;5094:23;;5090:145;;5195:29;;-1:-1:-1;;;5195:29:2;;;;;;;;;;;3231:65:0;6931:20:1;:18;:20::i;4381:197:0:-;4469:22;4477:4;4483:7;4469;:22::i;:::-;4464:108;;4514:47;;-1:-1:-1;;;4514:47:0;;-1:-1:-1;;;;;6011:32:18;;4514:47:0;;;5993:51:18;6060:18;;;6053:34;;;5966:18;;4514:47:0;5819:274:18;4059:629:11;4478:23;4504:33;-1:-1:-1;;;;;4504:27:11;;4532:4;4504:27;:33::i;:::-;4478:59;;4551:10;:17;4572:1;4551:22;;:57;;;;;4589:10;4578:30;;;;;;;;;;;;:::i;:::-;4577:31;4551:57;4547:135;;;4664:5;4631:40;;-1:-1:-1;;;4631:40:11;;;;;;;;:::i;1957:138:7:-;2009:7;-1:-1:-1;;;;;;;;;;;2035:47:7;1684:190:13;2779:335:7;2870:37;2889:17;2870:18;:37::i;:::-;2922:27;;-1:-1:-1;;;;;2922:27:7;;;;;;;;2964:11;;:15;2960:148;;2995:53;3024:17;3043:4;2995:28;:53::i;2960:148::-;3079:18;:16;:18::i;7084:141:1:-;8870:21;8560:40;-1:-1:-1;;;8560:40:1;;;;7146:73;;7191:17;;-1:-1:-1;;;7191:17:1;;;;;;;;;;;2705:151:12;2780:12;2811:38;2833:6;2841:4;2847:1;2811:21;:38::i;:::-;2804:45;2705:151;-1:-1:-1;;;2705:151:12:o;2186:281:7:-;2263:17;-1:-1:-1;;;;;2263:29:7;;2296:1;2263:34;2259:119;;2349:17;2320:47;;-1:-1:-1;;;2320:47:7;;;;;;;;:::i;2259:119::-;-1:-1:-1;;;;;;;;;;;2387:73:7;;-1:-1:-1;;;;;;2387:73:7;-1:-1:-1;;;;;2387:73:7;;;;;;;;;;2186:281::o;4106:253:12:-;4189:12;4214;4228:23;4255:6;-1:-1:-1;;;;;4255:19:12;4275:4;4255:25;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4213:67;;;;4297:55;4324:6;4332:7;4341:10;4297:26;:55::i;:::-;4290:62;4106:253;-1:-1:-1;;;;;4106:253:12:o;6598:122:7:-;6648:9;:13;6644:70;;6684:19;;-1:-1:-1;;;6684:19:7;;;;;;;;;;;3180:392:12;3279:12;3331:5;3307:21;:29;3303:108;;;3394:4;3359:41;;-1:-1:-1;;;3359:41:12;;;;;;;;:::i;3303:108::-;3421:12;3435:23;3462:6;-1:-1:-1;;;;;3462:11:12;3481:5;3488:4;3462:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3420:73;;;;3510:55;3537:6;3545:7;3554:10;3510:26;:55::i;:::-;3503:62;3180:392;-1:-1:-1;;;;;;3180:392:12:o;4625:582::-;4769:12;4798:7;4793:408;;4821:19;4829:10;4821:7;:19::i;:::-;4793:408;;;5045:17;;:22;:49;;;;-1:-1:-1;;;;;;5071:18:12;;;:23;5045:49;5041:119;;;5138:6;5121:24;;-1:-1:-1;;;5121:24:12;;;;;;;;:::i;5041:119::-;-1:-1:-1;5180:10:12;5173:17;;5743:516;5874:17;;:21;5870:383;;6102:10;6096:17;6158:15;6145:10;6141:2;6137:19;6130:44;5870:383;6225:17;;-1:-1:-1;;;6225:17:12;;;;;;;;;;;14:286:18;72:6;125:2;113:9;104:7;100:23;96:32;93:52;;;141:1;138;131:12;93:52;167:23;;-1:-1:-1;;;;;;219:32:18;;209:43;;199:71;;266:1;263;256:12;497:171;564:20;;-1:-1:-1;;;;;613:30:18;;603:41;;593:69;;658:1;655;648:12;593:69;497:171;;;:::o;673:184::-;731:6;784:2;772:9;763:7;759:23;755:32;752:52;;;800:1;797;790:12;752:52;823:28;841:9;823:28;:::i;1067:173::-;1135:20;;-1:-1:-1;;;;;1184:31:18;;1174:42;;1164:70;;1230:1;1227;1220:12;1245:186;1304:6;1357:2;1345:9;1336:7;1332:23;1328:32;1325:52;;;1373:1;1370;1363:12;1325:52;1396:29;1415:9;1396:29;:::i;1436:180::-;1495:6;1548:2;1536:9;1527:7;1523:23;1519:32;1516:52;;;1564:1;1561;1554:12;1516:52;-1:-1:-1;1587:23:18;;1436:180;-1:-1:-1;1436:180:18:o;1803:254::-;1871:6;1879;1932:2;1920:9;1911:7;1907:23;1903:32;1900:52;;;1948:1;1945;1938:12;1900:52;1984:9;1971:23;1961:33;;2013:38;2047:2;2036:9;2032:18;2013:38;:::i;:::-;2003:48;;1803:254;;;;;:::o;2062:127::-;2123:10;2118:3;2114:20;2111:1;2104:31;2154:4;2151:1;2144:15;2178:4;2175:1;2168:15;2194:995;2271:6;2279;2332:2;2320:9;2311:7;2307:23;2303:32;2300:52;;;2348:1;2345;2338:12;2300:52;2371:29;2390:9;2371:29;:::i;:::-;2361:39;;2451:2;2440:9;2436:18;2423:32;-1:-1:-1;;;;;2515:2:18;2507:6;2504:14;2501:34;;;2531:1;2528;2521:12;2501:34;2569:6;2558:9;2554:22;2544:32;;2614:7;2607:4;2603:2;2599:13;2595:27;2585:55;;2636:1;2633;2626:12;2585:55;2672:2;2659:16;2694:2;2690;2687:10;2684:36;;;2700:18;;:::i;:::-;2775:2;2769:9;2743:2;2829:13;;-1:-1:-1;;2825:22:18;;;2849:2;2821:31;2817:40;2805:53;;;2873:18;;;2893:22;;;2870:46;2867:72;;;2919:18;;:::i;:::-;2959:10;2955:2;2948:22;2994:2;2986:6;2979:18;3034:7;3029:2;3024;3020;3016:11;3012:20;3009:33;3006:53;;;3055:1;3052;3045:12;3006:53;3111:2;3106;3102;3098:11;3093:2;3085:6;3081:15;3068:46;3156:1;3151:2;3146;3138:6;3134:15;3130:24;3123:35;3177:6;3167:16;;;;;;;2194:995;;;;;:::o;3194:476::-;3288:6;3296;3304;3312;3320;3373:3;3361:9;3352:7;3348:23;3344:33;3341:53;;;3390:1;3387;3380:12;3341:53;3413:29;3432:9;3413:29;:::i;:::-;3403:39;;3489:2;3478:9;3474:18;3461:32;3451:42;;3512:38;3546:2;3535:9;3531:18;3512:38;:::i;:::-;3502:48;;3569:38;3603:2;3592:9;3588:18;3569:38;:::i;:::-;3559:48;;3626:38;3659:3;3648:9;3644:19;3626:38;:::i;:::-;3616:48;;3194:476;;;;;;;;:::o;3860:203::-;-1:-1:-1;;;;;4024:32:18;;;;4006:51;;3994:2;3979:18;;3860:203::o;4250:250::-;4335:1;4345:113;4359:6;4356:1;4353:13;4345:113;;;4435:11;;;4429:18;4416:11;;;4409:39;4381:2;4374:10;4345:113;;;-1:-1:-1;;4492:1:18;4474:16;;4467:27;4250:250::o;4505:396::-;4654:2;4643:9;4636:21;4617:4;4686:6;4680:13;4729:6;4724:2;4713:9;4709:18;4702:34;4745:79;4817:6;4812:2;4801:9;4797:18;4792:2;4784:6;4780:15;4745:79;:::i;:::-;4885:2;4864:15;-1:-1:-1;;4860:29:18;4845:45;;;;4892:2;4841:54;;4505:396;-1:-1:-1;;4505:396:18:o;5112:127::-;5173:10;5168:3;5164:20;5161:1;5154:31;5204:4;5201:1;5194:15;5228:4;5225:1;5218:15;5244:183;-1:-1:-1;;;;;5363:10:18;;;5351;;;5347:27;;5386:12;;;5383:38;;;5401:18;;:::i;5432:168::-;5505:9;;;5536;;5553:15;;;5547:22;;5533:37;5523:71;;5574:18;;:::i;6098:184::-;6168:6;6221:2;6209:9;6200:7;6196:23;6192:32;6189:52;;;6237:1;6234;6227:12;6189:52;-1:-1:-1;6260:16:18;;6098:184;-1:-1:-1;6098:184:18:o;6566:277::-;6633:6;6686:2;6674:9;6665:7;6661:23;6657:32;6654:52;;;6702:1;6699;6692:12;6654:52;6734:9;6728:16;6787:5;6780:13;6773:21;6766:5;6763:32;6753:60;;6809:1;6806;6799:12;6848:287;6977:3;7015:6;7009:13;7031:66;7090:6;7085:3;7078:4;7070:6;7066:17;7031:66;:::i;:::-;7113:16;;;;;6848:287;-1:-1:-1;;6848:287:18:o

Swarm Source

ipfs://09eb004ce6e271790d54ebdccba51d37e4cc2e02a261c22ee6ee53470254d7ea
Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.