POL Price: $0.444781 (-2.30%)
 

Overview

POL Balance

Polygon PoS Chain LogoPolygon PoS Chain LogoPolygon PoS Chain Logo0 POL

POL Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Attribute Conver...655954892024-12-17 14:20:2236 days ago1734445222IN
0xC38E3A10...54AAE45aF
0 POL0.0103487777.94275611
Attribute Conver...655618262024-12-16 18:12:1837 days ago1734372738IN
0xC38E3A10...54AAE45aF
0 POL0.0042825932.2577073
Attribute Conver...655488672024-12-16 10:30:4637 days ago1734345046IN
0xC38E3A10...54AAE45aF
0 POL0.0042586832.08341588
Attribute Conver...655483032024-12-16 10:10:4637 days ago1734343846IN
0xC38E3A10...54AAE45aF
0 POL0.0049442232.99186107
Attribute Conver...620595522024-09-20 14:35:11124 days ago1726842911IN
0xC38E3A10...54AAE45aF
0 POL0.0104614878.79879384
Attribute Conver...620588462024-09-20 14:10:09124 days ago1726841409IN
0xC38E3A10...54AAE45aF
0 POL0.0047908431.96583425
Claim620521322024-09-20 10:12:23124 days ago1726827143IN
0xC38E3A10...54AAE45aF
0 POL0.0036635736.00000003
Attribute Conver...620512222024-09-20 9:40:09124 days ago1726825209IN
0xC38E3A10...54AAE45aF
0 POL0.007274148.53478041
Claim620494802024-09-20 8:37:55124 days ago1726821475IN
0xC38E3A10...54AAE45aF
0 POL0.0048947735.99999993
Claim620494292024-09-20 8:36:07124 days ago1726821367IN
0xC38E3A10...54AAE45aF
0 POL0.0033750335.99999992
Attribute Conver...620478492024-09-20 7:40:09124 days ago1726818009IN
0xC38E3A10...54AAE45aF
0 POL0.0040032230.15066671
Attribute Conver...620472842024-09-20 7:20:09124 days ago1726816809IN
0xC38E3A10...54AAE45aF
0 POL0.0045561630.40000003
Claim619325842024-09-17 11:08:21127 days ago1726571301IN
0xC38E3A10...54AAE45aF
0 POL0.0041474430.00000067
Attribute Conver...619323532024-09-17 11:00:11127 days ago1726570811IN
0xC38E3A10...54AAE45aF
0 POL0.0054956232.365651
Claim571752202024-05-20 7:05:35247 days ago1716188735IN
0xC38E3A10...54AAE45aF
0 POL0.0039800230.00007706
Claim559346142024-04-17 16:44:40280 days ago1713372280IN
0xC38E3A10...54AAE45aF
0 POL0.01457008140
Attribute Conver...556768712024-04-10 20:40:57287 days ago1712781657IN
0xC38E3A10...54AAE45aF
0 POL0.2269270655.97009625
Attribute Conver...556768682024-04-10 20:40:51287 days ago1712781651IN
0xC38E3A10...54AAE45aF
0 POL0.284880956.43848045
Attribute Conver...556768642024-04-10 20:40:43287 days ago1712781643IN
0xC38E3A10...54AAE45aF
0 POL0.2746689954.47935374
Attribute Conver...556768592024-04-10 20:40:31287 days ago1712781631IN
0xC38E3A10...54AAE45aF
0 POL0.2770234454.82863778
Attribute Conver...556768552024-04-10 20:40:23287 days ago1712781623IN
0xC38E3A10...54AAE45aF
0 POL0.2815289455.88393331
Attribute Conver...556768512024-04-10 20:40:15287 days ago1712781615IN
0xC38E3A10...54AAE45aF
0 POL0.279022955.29919049
Attribute Conver...556757652024-04-10 20:00:08287 days ago1712779208IN
0xC38E3A10...54AAE45aF
0 POL0.03189851111.29472392
Attribute Conver...556749582024-04-10 19:30:26287 days ago1712777426IN
0xC38E3A10...54AAE45aF
0 POL0.10434831116.99185647
Attribute Conver...556741502024-04-10 19:00:16287 days ago1712775616IN
0xC38E3A10...54AAE45aF
0 POL0.4077941880.88143924
View all transactions

Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
FuulManager

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 15 : FuulManager.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.18;

import "@openzeppelin/contracts/access/AccessControlEnumerable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/security/Pausable.sol";

import "./interfaces/IFuulManager.sol";

contract FuulManager is
    IFuulManager,
    AccessControlEnumerable,
    ReentrancyGuard,
    Pausable
{
    // Attributor role
    bytes32 public constant ATTRIBUTOR_ROLE = keccak256("ATTRIBUTOR_ROLE");
    // Pauser role
    bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE");
    // UnPauser role
    bytes32 public constant UNPAUSER_ROLE = keccak256("UNPAUSER_ROLE");

    // Amount of time that must elapse after {claimCooldownPeriodStarted} for the cumulative amount to be restarted
    uint256 public claimCooldown = 1 days;

    // Mapping users and currency with total amount claimed
    mapping(address => mapping(address => uint256)) public usersClaims;

    // Mapping addresses with tokens info
    mapping(address => CurrencyTokenLimit) public currencyLimits;

    /*╔═════════════════════════════╗
      ║         CONSTRUCTOR         ║
      ╚═════════════════════════════╝*/

    /**
     * @dev Grants roles to `attributor`, `pauser` and DEFAULT_ADMIN_ROLE to the deployer.
     *
     * Adds the initial `acceptedERC20CurrencyToken` as an accepted currency with its `initialTokenLimit`.
     * Adds the zero address (native token) as an accepted currency with its `initialNativeTokenLimit`.
     */
    constructor(
        address attributor,
        address pauser,
        address unpauser,
        address acceptedERC20CurrencyToken,
        uint256 initialTokenLimit,
        uint256 initialNativeTokenLimit
    ) {
        if (attributor == address(0) || pauser == address(0)) {
            revert ZeroAddress();
        }

        _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
        _setupRole(ATTRIBUTOR_ROLE, attributor);
        _setupRole(PAUSER_ROLE, pauser);
        _setupRole(UNPAUSER_ROLE, unpauser);

        _addCurrencyLimit(acceptedERC20CurrencyToken, initialTokenLimit);
        _addCurrencyLimit(address(0), initialNativeTokenLimit);
    }

    /*╔═════════════════════════════╗
      ║       CLAIM VARIABLES       ║
      ╚═════════════════════════════╝*/

    /**
     * @dev Sets the period for `claimCooldown`.
     *
     * Requirements:
     *
     * - `period` must be different from the current one.
     * - Only admins can call this function.
     */
    function setClaimCooldown(
        uint256 period
    ) external onlyRole(DEFAULT_ADMIN_ROLE) {
        if (period == claimCooldown || period == 0) {
            revert InvalidArgument();
        }

        claimCooldown = period;
        emit ClaimCooldownUpdated(period);
    }

    /*╔═════════════════════════════╗
      ║       TOKEN CURRENCIES      ║
      ╚═════════════════════════════╝*/

    /**
     * @dev Adds a currency token.
     * See {_addCurrencyToken}.
     *
     * Requirements:
     *
     * - Only admins can call this function.
     * - Token limit was not added before.
     */
    function addCurrencyLimit(
        address tokenAddress,
        uint256 claimLimitPerCooldown
    ) external onlyRole(DEFAULT_ADMIN_ROLE) {
        if (currencyLimits[tokenAddress].claimLimitPerCooldown > 0) {
            revert LimitAlreadySet();
        }
        _addCurrencyLimit(tokenAddress, claimLimitPerCooldown);
    }

    /**
     * @dev Sets a new `claimLimitPerCooldown` for a currency token.
     *
     * Requirements:
     *
     * - `limit` must not be lower than current cumulativeClaimPerCooldown.
     * - `limit` must be different from the current one.
     * - Only admins can call this function.
     */
    function setCurrencyTokenLimit(
        address tokenAddress,
        uint256 limit
    ) external onlyRole(DEFAULT_ADMIN_ROLE) {
        CurrencyTokenLimit storage currency = currencyLimits[tokenAddress];

        if (
            limit == currency.claimLimitPerCooldown ||
            limit < currency.cumulativeClaimPerCooldown ||
            currency.claimLimitPerCooldown == 0
        ) {
            revert InvalidArgument();
        }

        currency.claimLimitPerCooldown = limit;

        emit TokenLimitUpdated(tokenAddress, limit);
    }

    /*╔═════════════════════════════╗
      ║            PAUSE            ║
      ╚═════════════════════════════╝*/

    /**
     * @dev Pauses the contract and all {FuulProject}s.
     * See {Pausable.sol}
     *
     * Requirements:
     *
     * - Only addresses with the PAUSER_ROLE or UNPAUSER_ROLE can call this function.
     */
    function pauseAll() external {
        if (
            !hasRole(PAUSER_ROLE, _msgSender()) &&
            !hasRole(UNPAUSER_ROLE, _msgSender())
        ) {
            revert Unauthorized();
        }
        _pause();
    }

    /**
     * @dev Unpauses the contract and all {FuulProject}s.
     * See {Pausable.sol}
     *
     * Requirements:
     *
     * - Only addresses with the UNPAUSER_ROLE can call this function.
     */
    function unpauseAll() external onlyRole(UNPAUSER_ROLE) {
        _unpause();
    }

    /**
     * @dev Returns whether the contract is paused.
     * See {Pausable.sol}
     */
    function isPaused() external view returns (bool) {
        return paused();
    }

    /*╔═════════════════════════════╗
      ║      ATTRIBUTE & CLAIM      ║
      ╚═════════════════════════════╝*/

    /**
     * @dev Attributes: calls the `attributeConversions` function in {FuulProject} from an array of `AttributionEntity`.
     *
     * Requirements:
     *
     * - Contract should not be paused.
     * - Only addresses with the `ATTRIBUTOR_ROLE` can call this function.
     */

    function attributeConversions(
        AttributionEntity[] calldata attributions,
        address attributorFeeCollector
    ) external whenNotPaused nonReentrant onlyRole(ATTRIBUTOR_ROLE) {
        uint256 attributionLength = attributions.length;
        for (uint256 i = 0; i < attributionLength; ) {
            IFuulProject(attributions[i].projectAddress).attributeConversions(
                attributions[i].projectAttributions,
                attributorFeeCollector
            );

            // Using unchecked to the next element in the loop optimize gas
            unchecked {
                i++;
            }
        }
    }

    /**
     * @dev Claims: calls the `claimFromProject` function in {FuulProject} from an array of of `ClaimCheck`.
     *
     * Requirements:
     *
     * - Contract should not be paused.
     */
    function claim(
        ClaimCheck[] calldata claimChecks
    ) external whenNotPaused nonReentrant {
        uint256 checksLength = claimChecks.length;

        for (uint256 i = 0; i < checksLength; ) {
            ClaimCheck memory claimCheck = claimChecks[i];

            address currency = claimCheck.currency;
            uint256 tokenAmount = claimCheck.amount;

            CurrencyTokenLimit storage currencyInfo = currencyLimits[currency];

            // Limit

            if (tokenAmount > currencyInfo.claimLimitPerCooldown) {
                revert OverTheLimit();
            }

            if (
                currencyInfo.claimCooldownPeriodStarted + claimCooldown >
                block.timestamp
            ) {
                // If cooldown not ended -> check that the limit is not reached and then sum amount to cumulative

                if (
                    currencyInfo.cumulativeClaimPerCooldown + tokenAmount >
                    currencyInfo.claimLimitPerCooldown
                ) {
                    revert OverTheLimit();
                }

                currencyInfo.cumulativeClaimPerCooldown += tokenAmount;
            } else {
                // If cooldown ended -> set new values for cumulative and time (amount limit is checked before)
                currencyInfo.cumulativeClaimPerCooldown = tokenAmount;
                currencyInfo.claimCooldownPeriodStarted = block.timestamp;
            }

            // Update values
            usersClaims[_msgSender()][currency] += tokenAmount;

            // Send
            IFuulProject(claimCheck.projectAddress).claimFromProject(
                currency,
                _msgSender(),
                claimCheck.amount,
                claimCheck.tokenIds,
                claimCheck.amounts
            );

            // Using unchecked to the next element in the loop optimize gas
            unchecked {
                i++;
            }
        }
    }

    /*╔═════════════════════════════╗
      ║      INTERNAL ADD TOKEN     ║
      ╚═════════════════════════════╝*/

    /**
     * @dev Adds a new `tokenAddress` to accepted currencies with its
     * corresponding `claimLimitPerCooldown`.
     *
     * Requirements:
     *
     * - `tokenAddress` must not be accepted yet.
     * - `claimLimitPerCooldown` should be greater than zero.
     */
    function _addCurrencyLimit(
        address tokenAddress,
        uint256 claimLimitPerCooldown
    ) internal {
        if (claimLimitPerCooldown == 0) {
            revert InvalidArgument();
        }

        if (currencyLimits[tokenAddress].claimLimitPerCooldown > 0) {
            revert LimitAlreadySet();
        }

        currencyLimits[tokenAddress] = CurrencyTokenLimit({
            claimLimitPerCooldown: claimLimitPerCooldown,
            cumulativeClaimPerCooldown: 0,
            claimCooldownPeriodStarted: block.timestamp
        });

        emit TokenLimitAdded(tokenAddress, claimLimitPerCooldown);
    }
}

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

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

    /**
     * @dev Revert with a standard message if `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(account),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

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

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

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

        _revokeRole(role, account);
    }

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

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

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

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

File 3 of 15 : AccessControlEnumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControlEnumerable.sol)

pragma solidity ^0.8.0;

import "./IAccessControlEnumerable.sol";
import "./AccessControl.sol";
import "../utils/structs/EnumerableSet.sol";

/**
 * @dev Extension of {AccessControl} that allows enumerating the members of each role.
 */
abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl {
    using EnumerableSet for EnumerableSet.AddressSet;

    mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers;

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

    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) public view virtual override returns (address) {
        return _roleMembers[role].at(index);
    }

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) public view virtual override returns (uint256) {
        return _roleMembers[role].length();
    }

    /**
     * @dev Overload {_grantRole} to track enumerable memberships
     */
    function _grantRole(bytes32 role, address account) internal virtual override {
        super._grantRole(role, account);
        _roleMembers[role].add(account);
    }

    /**
     * @dev Overload {_revokeRole} to track enumerable memberships
     */
    function _revokeRole(bytes32 role, address account) internal virtual override {
        super._revokeRole(role, account);
        _roleMembers[role].remove(account);
    }
}

File 4 of 15 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

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

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

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

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

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

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

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

File 5 of 15 : IAccessControlEnumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControlEnumerable.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";

/**
 * @dev External interface of AccessControlEnumerable declared to support ERC165 detection.
 */
interface IAccessControlEnumerable is IAccessControl {
    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) external view returns (address);

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) external view returns (uint256);
}

File 6 of 15 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        _requireNotPaused();
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        _requirePaused();
        _;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        require(paused(), "Pausable: not paused");
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 7 of 15 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 8 of 15 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 10 of 15 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface 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 11 of 15 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

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

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

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

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

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator,
        Rounding rounding
    ) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10**64) {
                value /= 10**64;
                result += 64;
            }
            if (value >= 10**32) {
                value /= 10**32;
                result += 32;
            }
            if (value >= 10**16) {
                value /= 10**16;
                result += 16;
            }
            if (value >= 10**8) {
                value /= 10**8;
                result += 8;
            }
            if (value >= 10**4) {
                value /= 10**4;
                result += 4;
            }
            if (value >= 10**2) {
                value /= 10**2;
                result += 2;
            }
            if (value >= 10**1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);
        }
    }
}

File 12 of 15 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

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

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

File 13 of 15 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/structs/EnumerableSet.sol)
// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 *
 * [WARNING]
 * ====
 * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure
 * unusable.
 * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.
 *
 * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an
 * array of EnumerableSet.
 * ====
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastValue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastValue;
                // Update the index for the moved value
                set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        bytes32[] memory store = _values(set._inner);
        bytes32[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }
}

File 14 of 15 : IFuulManager.sol
// SPDX-License-Identifier: MIT

import "./IFuulProject.sol";

pragma solidity ^0.8.18;

interface IFuulManager {
    struct CurrencyTokenLimit {
        uint256 claimLimitPerCooldown;
        uint256 cumulativeClaimPerCooldown;
        uint256 claimCooldownPeriodStarted;
    }

    struct ClaimCheck {
        address projectAddress;
        address currency;
        uint256 amount;
        uint256[] tokenIds;
        uint256[] amounts;
    }

    struct AttributionEntity {
        address projectAddress;
        IFuulProject.Attribution[] projectAttributions;
    }

    /*╔═════════════════════════════╗
      ║           EVENTS            ║
      ╚═════════════════════════════╝*/

    event ClaimCooldownUpdated(uint256 value);
    event TokenLimitAdded(address indexed token, uint256 value);
    event TokenLimitUpdated(address indexed token, uint256 value);

    /*╔═════════════════════════════╗
      ║           ERRORS            ║
      ╚═════════════════════════════╝*/

    error InvalidArgument();
    error LimitAlreadySet();
    error OverTheLimit();
    error ZeroAddress();
    error Unauthorized();

    /*╔═════════════════════════════╗
      ║       PUBLIC VARIABLES      ║
      ╚═════════════════════════════╝*/

    function claimCooldown() external view returns (uint256 period);

    function usersClaims(
        address user,
        address currency
    ) external view returns (uint256);

    /*╔═════════════════════════════╗
      ║       CLAIM VARIABLES       ║
      ╚═════════════════════════════╝*/

    function setClaimCooldown(uint256 period) external;

    /*╔═════════════════════════════╗
      ║       TOKEN CURRENCIES      ║
      ╚═════════════════════════════╝*/

    function currencyLimits(
        address currencyToken
    ) external view returns (uint256, uint256, uint256);

    function addCurrencyLimit(
        address tokenAddress,
        uint256 claimLimitPerCooldown
    ) external;

    function setCurrencyTokenLimit(
        address tokenAddress,
        uint256 limit
    ) external;

    /*╔═════════════════════════════╗
      ║            PAUSE            ║
      ╚═════════════════════════════╝*/

    function pauseAll() external;

    function unpauseAll() external;

    function isPaused() external view returns (bool);

    /*╔═════════════════════════════╗
      ║      ATTRIBUTE AND CLAIM    ║
      ╚═════════════════════════════╝*/

    function attributeConversions(
        AttributionEntity[] memory attributions,
        address attributorFeeCollector
    ) external;

    function claim(ClaimCheck[] calldata claimChecks) external;
}

File 15 of 15 : IFuulProject.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.18;

import "@openzeppelin/contracts/access/IAccessControlEnumerable.sol";

interface IFuulProject is IAccessControlEnumerable {
    /*╔═════════════════════════════╗
      ║           STRUCT            ║
      ╚═════════════════════════════╝*/

    // Attribution
    struct Attribution {
        address currency;
        address partner;
        address endUser;
        uint256 amountToPartner;
        uint256 amountToEndUser;
        bytes32 proof;
        bytes32 proofWithoutProject;
    }

    /*╔═════════════════════════════╗
      ║           EVENTS            ║
      ╚═════════════════════════════╝*/

    event ProjectInfoUpdated(string projectInfoURI);

    event FungibleBudgetDeposited(uint256 amount, address indexed currency);

    event ERC721BudgetDeposited(
        uint256 amount,
        address indexed currency,
        uint256[] tokenIds
    );

    event ERC1155BudgetDeposited(
        address indexed account,
        uint256 amount,
        address indexed currency,
        uint256[] tokenIds,
        uint256[] amounts
    );

    event FungibleBudgetRemoved(uint256 amount, address indexed currency);

    event ERC721BudgetRemoved(
        uint256 amount,
        address indexed currency,
        uint256[] tokenIds
    );

    event ERC1155BudgetRemoved(
        address indexed account,
        uint256 amount,
        address indexed currency,
        uint256[] tokenIds,
        uint256[] amounts
    );

    event Claimed(
        address indexed account,
        address indexed currency,
        uint256 amount,
        uint256[] rewardTokenIds,
        uint256[] amounts
    );

    // Array Order: protocol, client, attributor, partner, end user

    event Attributed(
        address indexed currency,
        uint256 totalAmount,
        address[5] receivers,
        uint256[5] amounts,
        bytes32 proof
    );

    event FeeBudgetDeposited(
        address indexed account,
        uint256 amount,
        address indexed currency
    );

    event FeeBudgetRemoved(
        address indexed account,
        uint256 amount,
        address indexed currency
    );

    event AppliedToRemove(uint256 timestamp);

    /*╔═════════════════════════════╗
      ║           ERRORS            ║
      ╚═════════════════════════════╝*/

    error ManagerIsPaused();
    error EmptyURI();
    error NoRemovalApplication();
    error IncorrectMsgValue();
    error OutsideRemovalWindow();
    error ZeroAmount();
    error AlreadyAttributed();
    error InvalidProof();
    error Forbidden();
    error InvalidCurrency();
    error InvalidArgument();

    /*╔═════════════════════════════╗
      ║       PUBLIC VARIABLES      ║
      ╚═════════════════════════════╝*/

    function fuulFactory() external view returns (address);

    function availableToClaim(
        address account,
        address currency
    ) external view returns (uint256);

    /*╔═════════════════════════════╗
      ║        PROJECT INFO         ║
      ╚═════════════════════════════╝*/

    function projectInfoURI() external view returns (string memory);

    function setProjectURI(string memory projectURI) external;

    function clientFeeCollector() external view returns (address);

    /*╔═════════════════════════════╗
      ║           DEPOSIT           ║
      ╚═════════════════════════════╝*/

    function depositFungibleToken(
        address currency,
        uint256 amount
    ) external payable;

    function depositNFTToken(
        address currency,
        uint256[] memory rewardTokenIds,
        uint256[] memory amounts
    ) external;

    /*╔═════════════════════════════╗
      ║           REMOVE            ║
      ╚═════════════════════════════╝*/

    function lastRemovalApplication() external view returns (uint256);

    function applyToRemoveBudget() external;

    function getBudgetRemovePeriod() external view returns (uint256, uint256);

    function canRemoveFunds() external view returns (bool insideRemovalWindow);

    function removeFungibleBudget(address currency, uint256 amount) external;

    function removeNFTBudget(
        address currency,
        uint256[] memory rewardTokenIds,
        uint256[] memory amounts
    ) external;

    /*╔═════════════════════════════╗
      ║          ATTRIBUTE          ║
      ╚═════════════════════════════╝*/

    function attributeConversions(
        Attribution[] calldata attributions,
        address attributorFeeCollector
    ) external;

    function attributionProofs(bytes32 proof) external view returns (bool);

    /*╔═════════════════════════════╗
      ║            CLAIM            ║
      ╚═════════════════════════════╝*/

    function claimFromProject(
        address currency,
        address receiver,
        uint256 amount,
        uint256[] memory tokenIds,
        uint256[] memory amounts
    ) external;
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"attributor","type":"address"},{"internalType":"address","name":"pauser","type":"address"},{"internalType":"address","name":"unpauser","type":"address"},{"internalType":"address","name":"acceptedERC20CurrencyToken","type":"address"},{"internalType":"uint256","name":"initialTokenLimit","type":"uint256"},{"internalType":"uint256","name":"initialNativeTokenLimit","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"InvalidArgument","type":"error"},{"inputs":[],"name":"LimitAlreadySet","type":"error"},{"inputs":[],"name":"OverTheLimit","type":"error"},{"inputs":[],"name":"Unauthorized","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"ClaimCooldownUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TokenLimitAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TokenLimitUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"ATTRIBUTOR_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":"PAUSER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UNPAUSER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"claimLimitPerCooldown","type":"uint256"}],"name":"addCurrencyLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"projectAddress","type":"address"},{"components":[{"internalType":"address","name":"currency","type":"address"},{"internalType":"address","name":"partner","type":"address"},{"internalType":"address","name":"endUser","type":"address"},{"internalType":"uint256","name":"amountToPartner","type":"uint256"},{"internalType":"uint256","name":"amountToEndUser","type":"uint256"},{"internalType":"bytes32","name":"proof","type":"bytes32"},{"internalType":"bytes32","name":"proofWithoutProject","type":"bytes32"}],"internalType":"struct IFuulProject.Attribution[]","name":"projectAttributions","type":"tuple[]"}],"internalType":"struct IFuulManager.AttributionEntity[]","name":"attributions","type":"tuple[]"},{"internalType":"address","name":"attributorFeeCollector","type":"address"}],"name":"attributeConversions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"projectAddress","type":"address"},{"internalType":"address","name":"currency","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"internalType":"struct IFuulManager.ClaimCheck[]","name":"claimChecks","type":"tuple[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimCooldown","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"currencyLimits","outputs":[{"internalType":"uint256","name":"claimLimitPerCooldown","type":"uint256"},{"internalType":"uint256","name":"cumulativeClaimPerCooldown","type":"uint256"},{"internalType":"uint256","name":"claimCooldownPeriodStarted","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"name":"isPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pauseAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"period","type":"uint256"}],"name":"setClaimCooldown","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"limit","type":"uint256"}],"name":"setCurrencyTokenLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpauseAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"usersClaims","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

6080604052620151806004553480156200001857600080fd5b50604051620032bc380380620032bc83398181016040528101906200003e9190620006b0565b60016002819055506000600360006101000a81548160ff021916908315150217905550600073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff161480620000c95750600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16145b1562000101576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b620001256000801b62000119620001ec60201b60201c565b620001f460201b60201c565b620001577f56db02ae633181fbdfb06b9409742715d7c9326e4ab10d25f443d644e7ac025d87620001f460201b60201c565b620001897f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a86620001f460201b60201c565b620001bb7f427da25fe773164f88948d3e215c94b6554e2ed5e5f203a821c9f2f6131cf75a85620001f460201b60201c565b620001cd83836200020a60201b60201c565b620001e06000826200020a60201b60201c565b5050505050506200077a565b600033905090565b6200020682826200039360201b60201c565b5050565b6000810362000245576040517fa9cb9e0d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001541115620002c3576040517fdd6f914400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60405180606001604052808281526020016000815260200142815250600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000820151816000015560208201518160010155604082015181600201559050508173ffffffffffffffffffffffffffffffffffffffff167f5cd914c3e9450bdc97363f4edb9c4e5abcd1ef53b7a14e0c6c6aea8509757583826040516200038791906200075d565b60405180910390a25050565b620003aa8282620003db60201b62000e9c1760201c565b620003d68160016000858152602001908152602001600020620004cc60201b62000f7c1790919060201c565b505050565b620003ed82826200050460201b60201c565b620004c857600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506200046d620001ec60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6000620004fc836000018373ffffffffffffffffffffffffffffffffffffffff1660001b6200056e60201b60201c565b905092915050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000620005828383620005e860201b60201c565b620005dd578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050620005e2565b600090505b92915050565b600080836001016000848152602001908152602001600020541415905092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200063d8262000610565b9050919050565b6200064f8162000630565b81146200065b57600080fd5b50565b6000815190506200066f8162000644565b92915050565b6000819050919050565b6200068a8162000675565b81146200069657600080fd5b50565b600081519050620006aa816200067f565b92915050565b60008060008060008060c08789031215620006d057620006cf6200060b565b5b6000620006e089828a016200065e565b9650506020620006f389828a016200065e565b95505060406200070689828a016200065e565b94505060606200071989828a016200065e565b93505060806200072c89828a0162000699565b92505060a06200073f89828a0162000699565b9150509295509295509295565b620007578162000675565b82525050565b60006020820190506200077460008301846200074c565b92915050565b612b32806200078a6000396000f3fe608060405234801561001057600080fd5b50600436106101585760003560e01c806391d14854116100c3578063ca15c8731161007c578063ca15c873146103b3578063d547741f146103e3578063e63ab1e9146103ff578063e8ff79361461041d578063fb1bb9de14610439578063fdea36571461045757610158565b806391d14854146102db578063a217fddf1461030b578063b187bd2614610329578063b1ee828c14610347578063b228c1c414610379578063b5eb54f91461039557610158565b806359c9eb901161011557806359c9eb901461021b5780635c975abb146102375780637ba191b91461025557806382eb1152146102715780638a2ddd03146102a15780639010d07c146102ab57610158565b806301ffc9a71461015d578063248a9ca31461018d5780632f2ff15d146101bd57806336568abe146101d957806355dff0e3146101f5578063595c6a6714610211575b600080fd5b61017760048036038101906101729190611ac6565b610475565b6040516101849190611b0e565b60405180910390f35b6101a760048036038101906101a29190611b5f565b6104ef565b6040516101b49190611b9b565b60405180910390f35b6101d760048036038101906101d29190611c14565b61050e565b005b6101f360048036038101906101ee9190611c14565b61052f565b005b61020f600480360381019061020a9190611c8a565b6105b2565b005b6102196106ba565b005b61023560048036038101906102309190611cca565b610767565b005b61023f6107fd565b60405161024c9190611b0e565b60405180910390f35b61026f600480360381019061026a9190611d5c565b610814565b005b61028b60048036038101906102869190611da9565b610ad8565b6040516102989190611df8565b60405180910390f35b6102a9610afd565b005b6102c560048036038101906102c09190611e13565b610b32565b6040516102d29190611e62565b60405180910390f35b6102f560048036038101906102f09190611c14565b610b61565b6040516103029190611b0e565b60405180910390f35b610313610bcb565b6040516103209190611b9b565b60405180910390f35b610331610bd2565b60405161033e9190611b0e565b60405180910390f35b610361600480360381019061035c9190611e7d565b610be1565b60405161037093929190611eaa565b60405180910390f35b610393600480360381019061038e9190611f37565b610c0b565b005b61039d610d4c565b6040516103aa9190611b9b565b60405180910390f35b6103cd60048036038101906103c89190611b5f565b610d70565b6040516103da9190611df8565b60405180910390f35b6103fd60048036038101906103f89190611c14565b610d94565b005b610407610db5565b6040516104149190611b9b565b60405180910390f35b61043760048036038101906104329190611c8a565b610dd9565b005b610441610e72565b60405161044e9190611b9b565b60405180910390f35b61045f610e96565b60405161046c9190611df8565b60405180910390f35b60007f5a05180f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806104e857506104e782610fac565b5b9050919050565b6000806000838152602001908152602001600020600101549050919050565b610517826104ef565b61052081611026565b61052a838361103a565b505050565b61053761106e565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146105a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161059b9061201a565b60405180910390fd5b6105ae8282611076565b5050565b6000801b6105bf81611026565b6000600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905080600001548314806106175750806001015483105b80610626575060008160000154145b1561065d576040517fa9cb9e0d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8281600001819055508373ffffffffffffffffffffffffffffffffffffffff167f3a22865564a15e1d9be087fd90192483ce3d3e86d8784aba2dafd45f85221283846040516106ac9190611df8565b60405180910390a250505050565b6106eb7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6106e661106e565b610b61565b15801561072657506107247f427da25fe773164f88948d3e215c94b6554e2ed5e5f203a821c9f2f6131cf75a61071f61106e565b610b61565b155b1561075d576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6107656110aa565b565b6000801b61077481611026565b6004548214806107845750600082145b156107bb576040517fa9cb9e0d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b816004819055507fcb7ee917d029d22a071ecb2b3db0556ca49424002997ae83d8a4fff552ef72f6826040516107f19190611df8565b60405180910390a15050565b6000600360009054906101000a900460ff16905090565b61081c61110d565b610824611157565b600082829050905060005b81811015610aca57600084848381811061084c5761084b61203a565b5b905060200281019061085e9190612078565b610867906122bd565b90506000816020015190506000826040015190506000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905080600001548211156108fc576040517f7329a9df00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b42600454826002015461090f91906122ff565b111561098257806000015482826001015461092a91906122ff565b1115610962576040517f7329a9df00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181600101600082825461097691906122ff565b92505081905550610995565b8181600101819055504281600201819055505b81600560006109a261106e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610a2891906122ff565b92505081905550836000015173ffffffffffffffffffffffffffffffffffffffff1663dc63f6ae84610a5861106e565b8760400151886060015189608001516040518663ffffffff1660e01b8152600401610a879594939291906123f1565b600060405180830381600087803b158015610aa157600080fd5b505af1158015610ab5573d6000803e3d6000fd5b5050505084806001019550505050505061082f565b5050610ad46111a4565b5050565b6005602052816000526040600020602052806000526040600020600091509150505481565b7f427da25fe773164f88948d3e215c94b6554e2ed5e5f203a821c9f2f6131cf75a610b2781611026565b610b2f6111ae565b50565b6000610b59826001600086815260200190815260200160002061121190919063ffffffff16565b905092915050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000801b81565b6000610bdc6107fd565b905090565b60066020528060005260406000206000915090508060000154908060010154908060020154905083565b610c1361110d565b610c1b611157565b7f56db02ae633181fbdfb06b9409742715d7c9326e4ab10d25f443d644e7ac025d610c4581611026565b600084849050905060005b81811015610d3c57858582818110610c6b57610c6a61203a565b5b9050602002810190610c7d9190612452565b6000016020810190610c8f9190611e7d565b73ffffffffffffffffffffffffffffffffffffffff1663564cd00b878784818110610cbd57610cbc61203a565b5b9050602002810190610ccf9190612452565b8060200190610cde919061247a565b876040518463ffffffff1660e01b8152600401610cfd939291906126ae565b600060405180830381600087803b158015610d1757600080fd5b505af1158015610d2b573d6000803e3d6000fd5b505050508080600101915050610c50565b505050610d476111a4565b505050565b7f56db02ae633181fbdfb06b9409742715d7c9326e4ab10d25f443d644e7ac025d81565b6000610d8d6001600084815260200190815260200160002061122b565b9050919050565b610d9d826104ef565b610da681611026565b610db08383611076565b505050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b6000801b610de681611026565b6000600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001541115610e63576040517fdd6f914400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610e6d8383611240565b505050565b7f427da25fe773164f88948d3e215c94b6554e2ed5e5f203a821c9f2f6131cf75a81565b60045481565b610ea68282610b61565b610f7857600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610f1d61106e565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6000610fa4836000018373ffffffffffffffffffffffffffffffffffffffff1660001b6113c5565b905092915050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061101f575061101e82611435565b5b9050919050565b6110378161103261106e565b61149f565b50565b6110448282610e9c565b6110698160016000858152602001908152602001600020610f7c90919063ffffffff16565b505050565b600033905090565b6110808282611524565b6110a5816001600085815260200190815260200160002061160590919063ffffffff16565b505050565b6110b261110d565b6001600360006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586110f661106e565b6040516111039190611e62565b60405180910390a1565b6111156107fd565b15611155576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114c9061272c565b60405180910390fd5b565b600280540361119b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119290612798565b60405180910390fd5b60028081905550565b6001600281905550565b6111b6611635565b6000600360006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6111fa61106e565b6040516112079190611e62565b60405180910390a1565b6000611220836000018361167e565b60001c905092915050565b6000611239826000016116a9565b9050919050565b6000810361127a576040517fa9cb9e0d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000015411156112f7576040517fdd6f914400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60405180606001604052808281526020016000815260200142815250600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000820151816000015560208201518160010155604082015181600201559050508173ffffffffffffffffffffffffffffffffffffffff167f5cd914c3e9450bdc97363f4edb9c4e5abcd1ef53b7a14e0c6c6aea8509757583826040516113b99190611df8565b60405180910390a25050565b60006113d183836116ba565b61142a57826000018290806001815401808255809150506001900390600052602060002001600090919091909150558260000180549050836001016000848152602001908152602001600020819055506001905061142f565b600090505b92915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6114a98282610b61565b611520576114b6816116dd565b6114c48360001c602061170a565b6040516020016114d59291906128c1565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115179190612934565b60405180910390fd5b5050565b61152e8282610b61565b1561160157600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506115a661106e565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b600061162d836000018373ffffffffffffffffffffffffffffffffffffffff1660001b611946565b905092915050565b61163d6107fd565b61167c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611673906129a2565b60405180910390fd5b565b60008260000182815481106116965761169561203a565b5b9060005260206000200154905092915050565b600081600001805490509050919050565b600080836001016000848152602001908152602001600020541415905092915050565b60606117038273ffffffffffffffffffffffffffffffffffffffff16601460ff1661170a565b9050919050565b60606000600283600261171d91906129c2565b61172791906122ff565b67ffffffffffffffff8111156117405761173f6120b6565b5b6040519080825280601f01601f1916602001820160405280156117725781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106117aa576117a961203a565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061180e5761180d61203a565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000600184600261184e91906129c2565b61185891906122ff565b90505b60018111156118f8577f3031323334353637383961626364656600000000000000000000000000000000600f86166010811061189a5761189961203a565b5b1a60f81b8282815181106118b1576118b061203a565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c9450806118f190612a04565b905061185b565b506000841461193c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161193390612a79565b60405180910390fd5b8091505092915050565b60008083600101600084815260200190815260200160002054905060008114611a4e5760006001826119789190612a99565b90506000600186600001805490506119909190612a99565b90508181146119ff5760008660000182815481106119b1576119b061203a565b5b90600052602060002001549050808760000184815481106119d5576119d461203a565b5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b85600001805480611a1357611a12612acd565b5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050611a54565b60009150505b92915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611aa381611a6e565b8114611aae57600080fd5b50565b600081359050611ac081611a9a565b92915050565b600060208284031215611adc57611adb611a64565b5b6000611aea84828501611ab1565b91505092915050565b60008115159050919050565b611b0881611af3565b82525050565b6000602082019050611b236000830184611aff565b92915050565b6000819050919050565b611b3c81611b29565b8114611b4757600080fd5b50565b600081359050611b5981611b33565b92915050565b600060208284031215611b7557611b74611a64565b5b6000611b8384828501611b4a565b91505092915050565b611b9581611b29565b82525050565b6000602082019050611bb06000830184611b8c565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611be182611bb6565b9050919050565b611bf181611bd6565b8114611bfc57600080fd5b50565b600081359050611c0e81611be8565b92915050565b60008060408385031215611c2b57611c2a611a64565b5b6000611c3985828601611b4a565b9250506020611c4a85828601611bff565b9150509250929050565b6000819050919050565b611c6781611c54565b8114611c7257600080fd5b50565b600081359050611c8481611c5e565b92915050565b60008060408385031215611ca157611ca0611a64565b5b6000611caf85828601611bff565b9250506020611cc085828601611c75565b9150509250929050565b600060208284031215611ce057611cdf611a64565b5b6000611cee84828501611c75565b91505092915050565b600080fd5b600080fd5b600080fd5b60008083601f840112611d1c57611d1b611cf7565b5b8235905067ffffffffffffffff811115611d3957611d38611cfc565b5b602083019150836020820283011115611d5557611d54611d01565b5b9250929050565b60008060208385031215611d7357611d72611a64565b5b600083013567ffffffffffffffff811115611d9157611d90611a69565b5b611d9d85828601611d06565b92509250509250929050565b60008060408385031215611dc057611dbf611a64565b5b6000611dce85828601611bff565b9250506020611ddf85828601611bff565b9150509250929050565b611df281611c54565b82525050565b6000602082019050611e0d6000830184611de9565b92915050565b60008060408385031215611e2a57611e29611a64565b5b6000611e3885828601611b4a565b9250506020611e4985828601611c75565b9150509250929050565b611e5c81611bd6565b82525050565b6000602082019050611e776000830184611e53565b92915050565b600060208284031215611e9357611e92611a64565b5b6000611ea184828501611bff565b91505092915050565b6000606082019050611ebf6000830186611de9565b611ecc6020830185611de9565b611ed96040830184611de9565b949350505050565b60008083601f840112611ef757611ef6611cf7565b5b8235905067ffffffffffffffff811115611f1457611f13611cfc565b5b602083019150836020820283011115611f3057611f2f611d01565b5b9250929050565b600080600060408486031215611f5057611f4f611a64565b5b600084013567ffffffffffffffff811115611f6e57611f6d611a69565b5b611f7a86828701611ee1565b93509350506020611f8d86828701611bff565b9150509250925092565b600082825260208201905092915050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000612004602f83611f97565b915061200f82611fa8565b604082019050919050565b6000602082019050818103600083015261203381611ff7565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160a00383360303811261209457612093612069565b5b80830191505092915050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6120ee826120a5565b810181811067ffffffffffffffff8211171561210d5761210c6120b6565b5b80604052505050565b6000612120611a5a565b905061212c82826120e5565b919050565b600080fd5b600067ffffffffffffffff821115612151576121506120b6565b5b602082029050602081019050919050565b600061217561217084612136565b612116565b9050808382526020820190506020840283018581111561219857612197611d01565b5b835b818110156121c157806121ad8882611c75565b84526020840193505060208101905061219a565b5050509392505050565b600082601f8301126121e0576121df611cf7565b5b81356121f0848260208601612162565b91505092915050565b600060a0828403121561220f5761220e6120a0565b5b61221960a0612116565b9050600061222984828501611bff565b600083015250602061223d84828501611bff565b602083015250604061225184828501611c75565b604083015250606082013567ffffffffffffffff81111561227557612274612131565b5b612281848285016121cb565b606083015250608082013567ffffffffffffffff8111156122a5576122a4612131565b5b6122b1848285016121cb565b60808301525092915050565b60006122c936836121f9565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061230a82611c54565b915061231583611c54565b925082820190508082111561232d5761232c6122d0565b5b92915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61236881611c54565b82525050565b600061237a838361235f565b60208301905092915050565b6000602082019050919050565b600061239e82612333565b6123a8818561233e565b93506123b38361234f565b8060005b838110156123e45781516123cb888261236e565b97506123d683612386565b9250506001810190506123b7565b5085935050505092915050565b600060a0820190506124066000830188611e53565b6124136020830187611e53565b6124206040830186611de9565b81810360608301526124328185612393565b905081810360808301526124468184612393565b90509695505050505050565b60008235600160400383360303811261246e5761246d612069565b5b80830191505092915050565b6000808335600160200384360303811261249757612496612069565b5b80840192508235915067ffffffffffffffff8211156124b9576124b861206e565b5b60208301925060e0820236038313156124d5576124d4612073565b5b509250929050565b600082825260208201905092915050565b6000819050919050565b60006125076020840184611bff565b905092915050565b61251881611bd6565b82525050565b600061252d6020840184611c75565b905092915050565b60006125446020840184611b4a565b905092915050565b61255581611b29565b82525050565b60e0820161256c60008301836124f8565b612579600085018261250f565b5061258760208301836124f8565b612594602085018261250f565b506125a260408301836124f8565b6125af604085018261250f565b506125bd606083018361251e565b6125ca606085018261235f565b506125d8608083018361251e565b6125e5608085018261235f565b506125f360a0830183612535565b61260060a085018261254c565b5061260e60c0830183612535565b61261b60c085018261254c565b50505050565b600061262d838361255b565b60e08301905092915050565b600082905092915050565b600060e082019050919050565b600061265d83856124dd565b9350612668826124ee565b8060005b858110156126a15761267e8284612639565b6126888882612621565b975061269383612644565b92505060018101905061266c565b5085925050509392505050565b600060408201905081810360008301526126c9818587612651565b90506126d86020830184611e53565b949350505050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000612716601083611f97565b9150612721826126e0565b602082019050919050565b6000602082019050818103600083015261274581612709565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000612782601f83611f97565b915061278d8261274c565b602082019050919050565b600060208201905081810360008301526127b181612775565b9050919050565b600081905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b60006127f96017836127b8565b9150612804826127c3565b601782019050919050565b600081519050919050565b60005b8381101561283857808201518184015260208101905061281d565b60008484015250505050565b600061284f8261280f565b61285981856127b8565b935061286981856020860161281a565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b60006128ab6011836127b8565b91506128b682612875565b601182019050919050565b60006128cc826127ec565b91506128d88285612844565b91506128e38261289e565b91506128ef8284612844565b91508190509392505050565b60006129068261280f565b6129108185611f97565b935061292081856020860161281a565b612929816120a5565b840191505092915050565b6000602082019050818103600083015261294e81846128fb565b905092915050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b600061298c601483611f97565b915061299782612956565b602082019050919050565b600060208201905081810360008301526129bb8161297f565b9050919050565b60006129cd82611c54565b91506129d883611c54565b92508282026129e681611c54565b915082820484148315176129fd576129fc6122d0565b5b5092915050565b6000612a0f82611c54565b915060008203612a2257612a216122d0565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000612a63602083611f97565b9150612a6e82612a2d565b602082019050919050565b60006020820190508181036000830152612a9281612a56565b9050919050565b6000612aa482611c54565b9150612aaf83611c54565b9250828203905081811115612ac757612ac66122d0565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea2646970667358221220811769ea8bed374c1cfe10196258b9f4efef06603eb2421068056ae334dc6ea764736f6c634300081200330000000000000000000000000bcc589731dad347b87751e294d4425fcba39751000000000000000000000000f3f207ee9e130830d51e46ba701f4bcb52403a39000000000000000000000000be8db15756fd0acaa3af7b6c7d9bfda59b4d2b730000000000000000000000006ae96cc93331c19148541d4d2f3136368491709200000000000000000000000000000000000000000000152d02c7e14af680000000000000000000000000000000000000000000000000152d02c7e14af6800000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101585760003560e01c806391d14854116100c3578063ca15c8731161007c578063ca15c873146103b3578063d547741f146103e3578063e63ab1e9146103ff578063e8ff79361461041d578063fb1bb9de14610439578063fdea36571461045757610158565b806391d14854146102db578063a217fddf1461030b578063b187bd2614610329578063b1ee828c14610347578063b228c1c414610379578063b5eb54f91461039557610158565b806359c9eb901161011557806359c9eb901461021b5780635c975abb146102375780637ba191b91461025557806382eb1152146102715780638a2ddd03146102a15780639010d07c146102ab57610158565b806301ffc9a71461015d578063248a9ca31461018d5780632f2ff15d146101bd57806336568abe146101d957806355dff0e3146101f5578063595c6a6714610211575b600080fd5b61017760048036038101906101729190611ac6565b610475565b6040516101849190611b0e565b60405180910390f35b6101a760048036038101906101a29190611b5f565b6104ef565b6040516101b49190611b9b565b60405180910390f35b6101d760048036038101906101d29190611c14565b61050e565b005b6101f360048036038101906101ee9190611c14565b61052f565b005b61020f600480360381019061020a9190611c8a565b6105b2565b005b6102196106ba565b005b61023560048036038101906102309190611cca565b610767565b005b61023f6107fd565b60405161024c9190611b0e565b60405180910390f35b61026f600480360381019061026a9190611d5c565b610814565b005b61028b60048036038101906102869190611da9565b610ad8565b6040516102989190611df8565b60405180910390f35b6102a9610afd565b005b6102c560048036038101906102c09190611e13565b610b32565b6040516102d29190611e62565b60405180910390f35b6102f560048036038101906102f09190611c14565b610b61565b6040516103029190611b0e565b60405180910390f35b610313610bcb565b6040516103209190611b9b565b60405180910390f35b610331610bd2565b60405161033e9190611b0e565b60405180910390f35b610361600480360381019061035c9190611e7d565b610be1565b60405161037093929190611eaa565b60405180910390f35b610393600480360381019061038e9190611f37565b610c0b565b005b61039d610d4c565b6040516103aa9190611b9b565b60405180910390f35b6103cd60048036038101906103c89190611b5f565b610d70565b6040516103da9190611df8565b60405180910390f35b6103fd60048036038101906103f89190611c14565b610d94565b005b610407610db5565b6040516104149190611b9b565b60405180910390f35b61043760048036038101906104329190611c8a565b610dd9565b005b610441610e72565b60405161044e9190611b9b565b60405180910390f35b61045f610e96565b60405161046c9190611df8565b60405180910390f35b60007f5a05180f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806104e857506104e782610fac565b5b9050919050565b6000806000838152602001908152602001600020600101549050919050565b610517826104ef565b61052081611026565b61052a838361103a565b505050565b61053761106e565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146105a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161059b9061201a565b60405180910390fd5b6105ae8282611076565b5050565b6000801b6105bf81611026565b6000600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905080600001548314806106175750806001015483105b80610626575060008160000154145b1561065d576040517fa9cb9e0d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8281600001819055508373ffffffffffffffffffffffffffffffffffffffff167f3a22865564a15e1d9be087fd90192483ce3d3e86d8784aba2dafd45f85221283846040516106ac9190611df8565b60405180910390a250505050565b6106eb7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6106e661106e565b610b61565b15801561072657506107247f427da25fe773164f88948d3e215c94b6554e2ed5e5f203a821c9f2f6131cf75a61071f61106e565b610b61565b155b1561075d576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6107656110aa565b565b6000801b61077481611026565b6004548214806107845750600082145b156107bb576040517fa9cb9e0d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b816004819055507fcb7ee917d029d22a071ecb2b3db0556ca49424002997ae83d8a4fff552ef72f6826040516107f19190611df8565b60405180910390a15050565b6000600360009054906101000a900460ff16905090565b61081c61110d565b610824611157565b600082829050905060005b81811015610aca57600084848381811061084c5761084b61203a565b5b905060200281019061085e9190612078565b610867906122bd565b90506000816020015190506000826040015190506000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905080600001548211156108fc576040517f7329a9df00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b42600454826002015461090f91906122ff565b111561098257806000015482826001015461092a91906122ff565b1115610962576040517f7329a9df00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181600101600082825461097691906122ff565b92505081905550610995565b8181600101819055504281600201819055505b81600560006109a261106e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610a2891906122ff565b92505081905550836000015173ffffffffffffffffffffffffffffffffffffffff1663dc63f6ae84610a5861106e565b8760400151886060015189608001516040518663ffffffff1660e01b8152600401610a879594939291906123f1565b600060405180830381600087803b158015610aa157600080fd5b505af1158015610ab5573d6000803e3d6000fd5b5050505084806001019550505050505061082f565b5050610ad46111a4565b5050565b6005602052816000526040600020602052806000526040600020600091509150505481565b7f427da25fe773164f88948d3e215c94b6554e2ed5e5f203a821c9f2f6131cf75a610b2781611026565b610b2f6111ae565b50565b6000610b59826001600086815260200190815260200160002061121190919063ffffffff16565b905092915050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000801b81565b6000610bdc6107fd565b905090565b60066020528060005260406000206000915090508060000154908060010154908060020154905083565b610c1361110d565b610c1b611157565b7f56db02ae633181fbdfb06b9409742715d7c9326e4ab10d25f443d644e7ac025d610c4581611026565b600084849050905060005b81811015610d3c57858582818110610c6b57610c6a61203a565b5b9050602002810190610c7d9190612452565b6000016020810190610c8f9190611e7d565b73ffffffffffffffffffffffffffffffffffffffff1663564cd00b878784818110610cbd57610cbc61203a565b5b9050602002810190610ccf9190612452565b8060200190610cde919061247a565b876040518463ffffffff1660e01b8152600401610cfd939291906126ae565b600060405180830381600087803b158015610d1757600080fd5b505af1158015610d2b573d6000803e3d6000fd5b505050508080600101915050610c50565b505050610d476111a4565b505050565b7f56db02ae633181fbdfb06b9409742715d7c9326e4ab10d25f443d644e7ac025d81565b6000610d8d6001600084815260200190815260200160002061122b565b9050919050565b610d9d826104ef565b610da681611026565b610db08383611076565b505050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b6000801b610de681611026565b6000600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001541115610e63576040517fdd6f914400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610e6d8383611240565b505050565b7f427da25fe773164f88948d3e215c94b6554e2ed5e5f203a821c9f2f6131cf75a81565b60045481565b610ea68282610b61565b610f7857600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610f1d61106e565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6000610fa4836000018373ffffffffffffffffffffffffffffffffffffffff1660001b6113c5565b905092915050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061101f575061101e82611435565b5b9050919050565b6110378161103261106e565b61149f565b50565b6110448282610e9c565b6110698160016000858152602001908152602001600020610f7c90919063ffffffff16565b505050565b600033905090565b6110808282611524565b6110a5816001600085815260200190815260200160002061160590919063ffffffff16565b505050565b6110b261110d565b6001600360006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586110f661106e565b6040516111039190611e62565b60405180910390a1565b6111156107fd565b15611155576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114c9061272c565b60405180910390fd5b565b600280540361119b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119290612798565b60405180910390fd5b60028081905550565b6001600281905550565b6111b6611635565b6000600360006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6111fa61106e565b6040516112079190611e62565b60405180910390a1565b6000611220836000018361167e565b60001c905092915050565b6000611239826000016116a9565b9050919050565b6000810361127a576040517fa9cb9e0d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000015411156112f7576040517fdd6f914400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60405180606001604052808281526020016000815260200142815250600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000820151816000015560208201518160010155604082015181600201559050508173ffffffffffffffffffffffffffffffffffffffff167f5cd914c3e9450bdc97363f4edb9c4e5abcd1ef53b7a14e0c6c6aea8509757583826040516113b99190611df8565b60405180910390a25050565b60006113d183836116ba565b61142a57826000018290806001815401808255809150506001900390600052602060002001600090919091909150558260000180549050836001016000848152602001908152602001600020819055506001905061142f565b600090505b92915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6114a98282610b61565b611520576114b6816116dd565b6114c48360001c602061170a565b6040516020016114d59291906128c1565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115179190612934565b60405180910390fd5b5050565b61152e8282610b61565b1561160157600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506115a661106e565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b600061162d836000018373ffffffffffffffffffffffffffffffffffffffff1660001b611946565b905092915050565b61163d6107fd565b61167c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611673906129a2565b60405180910390fd5b565b60008260000182815481106116965761169561203a565b5b9060005260206000200154905092915050565b600081600001805490509050919050565b600080836001016000848152602001908152602001600020541415905092915050565b60606117038273ffffffffffffffffffffffffffffffffffffffff16601460ff1661170a565b9050919050565b60606000600283600261171d91906129c2565b61172791906122ff565b67ffffffffffffffff8111156117405761173f6120b6565b5b6040519080825280601f01601f1916602001820160405280156117725781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106117aa576117a961203a565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061180e5761180d61203a565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000600184600261184e91906129c2565b61185891906122ff565b90505b60018111156118f8577f3031323334353637383961626364656600000000000000000000000000000000600f86166010811061189a5761189961203a565b5b1a60f81b8282815181106118b1576118b061203a565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c9450806118f190612a04565b905061185b565b506000841461193c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161193390612a79565b60405180910390fd5b8091505092915050565b60008083600101600084815260200190815260200160002054905060008114611a4e5760006001826119789190612a99565b90506000600186600001805490506119909190612a99565b90508181146119ff5760008660000182815481106119b1576119b061203a565b5b90600052602060002001549050808760000184815481106119d5576119d461203a565b5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b85600001805480611a1357611a12612acd565b5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050611a54565b60009150505b92915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611aa381611a6e565b8114611aae57600080fd5b50565b600081359050611ac081611a9a565b92915050565b600060208284031215611adc57611adb611a64565b5b6000611aea84828501611ab1565b91505092915050565b60008115159050919050565b611b0881611af3565b82525050565b6000602082019050611b236000830184611aff565b92915050565b6000819050919050565b611b3c81611b29565b8114611b4757600080fd5b50565b600081359050611b5981611b33565b92915050565b600060208284031215611b7557611b74611a64565b5b6000611b8384828501611b4a565b91505092915050565b611b9581611b29565b82525050565b6000602082019050611bb06000830184611b8c565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611be182611bb6565b9050919050565b611bf181611bd6565b8114611bfc57600080fd5b50565b600081359050611c0e81611be8565b92915050565b60008060408385031215611c2b57611c2a611a64565b5b6000611c3985828601611b4a565b9250506020611c4a85828601611bff565b9150509250929050565b6000819050919050565b611c6781611c54565b8114611c7257600080fd5b50565b600081359050611c8481611c5e565b92915050565b60008060408385031215611ca157611ca0611a64565b5b6000611caf85828601611bff565b9250506020611cc085828601611c75565b9150509250929050565b600060208284031215611ce057611cdf611a64565b5b6000611cee84828501611c75565b91505092915050565b600080fd5b600080fd5b600080fd5b60008083601f840112611d1c57611d1b611cf7565b5b8235905067ffffffffffffffff811115611d3957611d38611cfc565b5b602083019150836020820283011115611d5557611d54611d01565b5b9250929050565b60008060208385031215611d7357611d72611a64565b5b600083013567ffffffffffffffff811115611d9157611d90611a69565b5b611d9d85828601611d06565b92509250509250929050565b60008060408385031215611dc057611dbf611a64565b5b6000611dce85828601611bff565b9250506020611ddf85828601611bff565b9150509250929050565b611df281611c54565b82525050565b6000602082019050611e0d6000830184611de9565b92915050565b60008060408385031215611e2a57611e29611a64565b5b6000611e3885828601611b4a565b9250506020611e4985828601611c75565b9150509250929050565b611e5c81611bd6565b82525050565b6000602082019050611e776000830184611e53565b92915050565b600060208284031215611e9357611e92611a64565b5b6000611ea184828501611bff565b91505092915050565b6000606082019050611ebf6000830186611de9565b611ecc6020830185611de9565b611ed96040830184611de9565b949350505050565b60008083601f840112611ef757611ef6611cf7565b5b8235905067ffffffffffffffff811115611f1457611f13611cfc565b5b602083019150836020820283011115611f3057611f2f611d01565b5b9250929050565b600080600060408486031215611f5057611f4f611a64565b5b600084013567ffffffffffffffff811115611f6e57611f6d611a69565b5b611f7a86828701611ee1565b93509350506020611f8d86828701611bff565b9150509250925092565b600082825260208201905092915050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000612004602f83611f97565b915061200f82611fa8565b604082019050919050565b6000602082019050818103600083015261203381611ff7565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160a00383360303811261209457612093612069565b5b80830191505092915050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6120ee826120a5565b810181811067ffffffffffffffff8211171561210d5761210c6120b6565b5b80604052505050565b6000612120611a5a565b905061212c82826120e5565b919050565b600080fd5b600067ffffffffffffffff821115612151576121506120b6565b5b602082029050602081019050919050565b600061217561217084612136565b612116565b9050808382526020820190506020840283018581111561219857612197611d01565b5b835b818110156121c157806121ad8882611c75565b84526020840193505060208101905061219a565b5050509392505050565b600082601f8301126121e0576121df611cf7565b5b81356121f0848260208601612162565b91505092915050565b600060a0828403121561220f5761220e6120a0565b5b61221960a0612116565b9050600061222984828501611bff565b600083015250602061223d84828501611bff565b602083015250604061225184828501611c75565b604083015250606082013567ffffffffffffffff81111561227557612274612131565b5b612281848285016121cb565b606083015250608082013567ffffffffffffffff8111156122a5576122a4612131565b5b6122b1848285016121cb565b60808301525092915050565b60006122c936836121f9565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061230a82611c54565b915061231583611c54565b925082820190508082111561232d5761232c6122d0565b5b92915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61236881611c54565b82525050565b600061237a838361235f565b60208301905092915050565b6000602082019050919050565b600061239e82612333565b6123a8818561233e565b93506123b38361234f565b8060005b838110156123e45781516123cb888261236e565b97506123d683612386565b9250506001810190506123b7565b5085935050505092915050565b600060a0820190506124066000830188611e53565b6124136020830187611e53565b6124206040830186611de9565b81810360608301526124328185612393565b905081810360808301526124468184612393565b90509695505050505050565b60008235600160400383360303811261246e5761246d612069565b5b80830191505092915050565b6000808335600160200384360303811261249757612496612069565b5b80840192508235915067ffffffffffffffff8211156124b9576124b861206e565b5b60208301925060e0820236038313156124d5576124d4612073565b5b509250929050565b600082825260208201905092915050565b6000819050919050565b60006125076020840184611bff565b905092915050565b61251881611bd6565b82525050565b600061252d6020840184611c75565b905092915050565b60006125446020840184611b4a565b905092915050565b61255581611b29565b82525050565b60e0820161256c60008301836124f8565b612579600085018261250f565b5061258760208301836124f8565b612594602085018261250f565b506125a260408301836124f8565b6125af604085018261250f565b506125bd606083018361251e565b6125ca606085018261235f565b506125d8608083018361251e565b6125e5608085018261235f565b506125f360a0830183612535565b61260060a085018261254c565b5061260e60c0830183612535565b61261b60c085018261254c565b50505050565b600061262d838361255b565b60e08301905092915050565b600082905092915050565b600060e082019050919050565b600061265d83856124dd565b9350612668826124ee565b8060005b858110156126a15761267e8284612639565b6126888882612621565b975061269383612644565b92505060018101905061266c565b5085925050509392505050565b600060408201905081810360008301526126c9818587612651565b90506126d86020830184611e53565b949350505050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000612716601083611f97565b9150612721826126e0565b602082019050919050565b6000602082019050818103600083015261274581612709565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000612782601f83611f97565b915061278d8261274c565b602082019050919050565b600060208201905081810360008301526127b181612775565b9050919050565b600081905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b60006127f96017836127b8565b9150612804826127c3565b601782019050919050565b600081519050919050565b60005b8381101561283857808201518184015260208101905061281d565b60008484015250505050565b600061284f8261280f565b61285981856127b8565b935061286981856020860161281a565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b60006128ab6011836127b8565b91506128b682612875565b601182019050919050565b60006128cc826127ec565b91506128d88285612844565b91506128e38261289e565b91506128ef8284612844565b91508190509392505050565b60006129068261280f565b6129108185611f97565b935061292081856020860161281a565b612929816120a5565b840191505092915050565b6000602082019050818103600083015261294e81846128fb565b905092915050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b600061298c601483611f97565b915061299782612956565b602082019050919050565b600060208201905081810360008301526129bb8161297f565b9050919050565b60006129cd82611c54565b91506129d883611c54565b92508282026129e681611c54565b915082820484148315176129fd576129fc6122d0565b5b5092915050565b6000612a0f82611c54565b915060008203612a2257612a216122d0565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000612a63602083611f97565b9150612a6e82612a2d565b602082019050919050565b60006020820190508181036000830152612a9281612a56565b9050919050565b6000612aa482611c54565b9150612aaf83611c54565b9250828203905081811115612ac757612ac66122d0565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea2646970667358221220811769ea8bed374c1cfe10196258b9f4efef06603eb2421068056ae334dc6ea764736f6c63430008120033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000000bcc589731dad347b87751e294d4425fcba39751000000000000000000000000f3f207ee9e130830d51e46ba701f4bcb52403a39000000000000000000000000be8db15756fd0acaa3af7b6c7d9bfda59b4d2b730000000000000000000000006ae96cc93331c19148541d4d2f3136368491709200000000000000000000000000000000000000000000152d02c7e14af680000000000000000000000000000000000000000000000000152d02c7e14af6800000

-----Decoded View---------------
Arg [0] : attributor (address): 0x0bCC589731DaD347b87751e294d4425fCBa39751
Arg [1] : pauser (address): 0xf3F207Ee9e130830D51e46Ba701f4bCB52403A39
Arg [2] : unpauser (address): 0xbE8Db15756fd0Acaa3AF7B6C7d9bfda59B4D2B73
Arg [3] : acceptedERC20CurrencyToken (address): 0x6AE96Cc93331c19148541D4D2f31363684917092
Arg [4] : initialTokenLimit (uint256): 100000000000000000000000
Arg [5] : initialNativeTokenLimit (uint256): 100000000000000000000000

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000bcc589731dad347b87751e294d4425fcba39751
Arg [1] : 000000000000000000000000f3f207ee9e130830d51e46ba701f4bcb52403a39
Arg [2] : 000000000000000000000000be8db15756fd0acaa3af7b6c7d9bfda59b4d2b73
Arg [3] : 0000000000000000000000006ae96cc93331c19148541d4d2f31363684917092
Arg [4] : 00000000000000000000000000000000000000000000152d02c7e14af6800000
Arg [5] : 00000000000000000000000000000000000000000000152d02c7e14af6800000


Block Transaction Gas Used Reward
view all blocks produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.