ETH Price: $3,327.20 (-0.97%)

Contract

0x93298241417A63469b6F8f080b4878749aCB4C47
 

Overview

ETH Balance

0.945194195861907648 ETH

Eth Value

$3,144.85 (@ $3,327.20/ETH)

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Claim212428072024-11-22 10:54:5912 hrs ago1732272899IN
0x93298241...49aCB4C47
0 ETH0.00059711.95186979
Claim212389472024-11-21 21:58:4725 hrs ago1732226327IN
0x93298241...49aCB4C47
0 ETH0.0007521615.05200676
Claim212347422024-11-21 7:53:5939 hrs ago1732175639IN
0x93298241...49aCB4C47
0 ETH0.0005013110.03454904
Claim212283082024-11-20 10:19:112 days ago1732097951IN
0x93298241...49aCB4C47
0 ETH0.00035379
Claim212258032024-11-20 1:56:112 days ago1732067771IN
0x93298241...49aCB4C47
0 ETH0.000478129.57183448
Claim212245302024-11-19 21:40:353 days ago1732052435IN
0x93298241...49aCB4C47
0 ETH0.0010450620.91854699
Claim212242442024-11-19 20:42:473 days ago1732048967IN
0x93298241...49aCB4C47
0 ETH0.0009679619.37976737
Claim212242102024-11-19 20:35:593 days ago1732048559IN
0x93298241...49aCB4C47
0 ETH0.0010121720.26338657
Claim212235282024-11-19 18:19:353 days ago1732040375IN
0x93298241...49aCB4C47
0 ETH0.0011938123.89597868
Claim212232802024-11-19 17:29:473 days ago1732037387IN
0x93298241...49aCB4C47
0 ETH0.0011931123.88577673
Claim212210382024-11-19 9:59:593 days ago1732010399IN
0x93298241...49aCB4C47
0 ETH0.000405428.12101738
Claim212205442024-11-19 8:20:593 days ago1732004459IN
0x93298241...49aCB4C47
0 ETH0.0005179510.36514945
Claim212192152024-11-19 3:53:593 days ago1731988439IN
0x93298241...49aCB4C47
0 ETH0.000437918.76338998
Claim212156142024-11-18 15:51:354 days ago1731945095IN
0x93298241...49aCB4C47
0 ETH0.0010169820.35153821
Claim212155752024-11-18 15:43:474 days ago1731944627IN
0x93298241...49aCB4C47
0 ETH0.0010426120.86934806
Claim212153632024-11-18 15:00:594 days ago1731942059IN
0x93298241...49aCB4C47
0 ETH0.0007838515.7
Claim212037662024-11-17 0:12:355 days ago1731802355IN
0x93298241...49aCB4C47
0 ETH0.000450589.02276532
Claim212001462024-11-16 12:05:596 days ago1731758759IN
0x93298241...49aCB4C47
0 ETH0.000740814.8283001
Claim211958372024-11-15 21:40:597 days ago1731706859IN
0x93298241...49aCB4C47
0 ETH0.0012514625.07193583
Claim211948552024-11-15 18:22:477 days ago1731694967IN
0x93298241...49aCB4C47
0 ETH0.000978819.6047885
Claim211932252024-11-15 12:54:357 days ago1731675275IN
0x93298241...49aCB4C47
0 ETH0.0008330916.67556098
Claim211918762024-11-15 8:23:117 days ago1731658991IN
0x93298241...49aCB4C47
0 ETH0.0008153616.32712093
Claim211900172024-11-15 2:09:477 days ago1731636587IN
0x93298241...49aCB4C47
0 ETH0.0007993416
Claim211891192024-11-14 23:09:118 days ago1731625751IN
0x93298241...49aCB4C47
0 ETH0.0012388924.8082546
Claim211891152024-11-14 23:08:238 days ago1731625703IN
0x93298241...49aCB4C47
0 ETH0.0012837425.68972253
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
212428072024-11-22 10:54:5912 hrs ago1732272899
0x93298241...49aCB4C47
0.14264173 ETH
212389472024-11-21 21:58:4725 hrs ago1732226327
0x93298241...49aCB4C47
0.16235245 ETH
212347422024-11-21 7:53:5939 hrs ago1732175639
0x93298241...49aCB4C47
0.02189106 ETH
212258032024-11-20 1:56:112 days ago1732067771
0x93298241...49aCB4C47
0.4767273 ETH
212245302024-11-19 21:40:353 days ago1732052435
0x93298241...49aCB4C47
0.04932201 ETH
212242442024-11-19 20:42:473 days ago1732048967
0x93298241...49aCB4C47
0.01886241 ETH
212242102024-11-19 20:35:593 days ago1732048559
0x93298241...49aCB4C47
0.9023808 ETH
212235282024-11-19 18:19:353 days ago1732040375
0x93298241...49aCB4C47
0.01161979 ETH
212232802024-11-19 17:29:473 days ago1732037387
0x93298241...49aCB4C47
0.10452937 ETH
212210382024-11-19 9:59:593 days ago1732010399
0x93298241...49aCB4C47
0.04190185 ETH
212205442024-11-19 8:20:593 days ago1732004459
0x93298241...49aCB4C47
0.2854278 ETH
212192152024-11-19 3:53:593 days ago1731988439
0x93298241...49aCB4C47
0.10375263 ETH
212156142024-11-18 15:51:354 days ago1731945095
0x93298241...49aCB4C47
0.08645594 ETH
212155752024-11-18 15:43:474 days ago1731944627
0x93298241...49aCB4C47
1.23802412 ETH
212153632024-11-18 15:00:594 days ago1731942059
0x93298241...49aCB4C47
0.00802255 ETH
212037662024-11-17 0:12:355 days ago1731802355
0x93298241...49aCB4C47
0.01090554 ETH
212001462024-11-16 12:05:596 days ago1731758759
0x93298241...49aCB4C47
0.01030177 ETH
211958372024-11-15 21:40:597 days ago1731706859
0x93298241...49aCB4C47
0.05323154 ETH
211948552024-11-15 18:22:477 days ago1731694967
0x93298241...49aCB4C47
0.00830743 ETH
211932252024-11-15 12:54:357 days ago1731675275
0x93298241...49aCB4C47
0.01499041 ETH
211918762024-11-15 8:23:117 days ago1731658991
0x93298241...49aCB4C47
0.0146237 ETH
211900172024-11-15 2:09:477 days ago1731636587
0x93298241...49aCB4C47
0.05951326 ETH
211891192024-11-14 23:09:118 days ago1731625751
0x93298241...49aCB4C47
0.04250689 ETH
211891152024-11-14 23:08:238 days ago1731625703
0x93298241...49aCB4C47
0.12376754 ETH
211872722024-11-14 16:57:358 days ago1731603455
0x93298241...49aCB4C47
0.15011775 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BottoActiveRewards

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 13 : BottoActiveRewards.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/utils/cryptography/draft-EIP712.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

// Uncomment this line to use console.log
// import "hardhat/console.sol";

contract BottoActiveRewards is AccessControl, EIP712 {
    using SafeERC20 for IERC20;

    bytes32 public constant REWARD_ROLE = keccak256("REWARD_ROLE");

    // Invalidated permits due to being already claimed
    uint256 private _permitNonce;

    struct RedeemPermit {
        uint256 amount; // Amount to reward
        uint256 nonce; //
        address currency; // using the zero address means Ether
        uint256 kickoff; // block epoch timestamp in seconds when the permit is valid
        uint256 deadline; // block epoch timestamp in seconds when the permit is expired
        address recipient;
        bytes data;
    }

    bytes32 public constant REDEEM_PERMIT_TYPEHASH =
        keccak256(
            "RedeemPermit(uint256 amount,uint256 nonce,address currency,uint256 kickoff,uint256 deadline,address recipient,bytes data)"
        );

    constructor() EIP712("BOTTO-ACTIVE-REWARDS", "1.0.0") {
        _grantRole(DEFAULT_ADMIN_ROLE, _msgSender());
        _grantRole(REWARD_ROLE, _msgSender());
    }

    function claim(
        RedeemPermit calldata permit_,
        address recipient_,
        bytes memory signature_
    ) external payable {
        address signer = _verify(_hash(permit_), signature_);

        // Make sure that the signer is authorized to create rewards and permit is valid
        require(
            hasRole(REWARD_ROLE, signer),
            "BottoActiveRewards: signature invalid"
        );

        // Check if permit is already claimed
        require(
            permit_.nonce >= _permitNonce,
            "BottoActiveRewards: permit invalid"
        );

        // Check if permit is expired
        require(
            permit_.kickoff <= block.timestamp &&
                permit_.deadline >= block.timestamp,
            "BottoActiveRewards: permit expired"
        );

        // Check if recipient matches permit
        require(
            recipient_ == permit_.recipient,
            "BottoActiveRewards: recipient does not match permit"
        );

        // Invalidate used permit
        _permitNonce = permit_.nonce + 1;

        // Transfer reward amount
        if (permit_.currency == address(0)) {
            (bool success, ) = recipient_.call{value: permit_.amount}("");
            require(success, "BottoActiveRewards: transfer failed.");
        } else {
            IERC20 token = IERC20(permit_.currency);
            token.safeTransfer(recipient_, permit_.amount);
        }
    }

    receive() external payable {}

    function deposit(address token_, uint256 amount_) external {
        IERC20 token = IERC20(token_);
        token.safeTransferFrom(_msgSender(), address(this), amount_);
    }

    /**
     * @dev see https://eips.ethereum.org/EIPS/eip-712#definition-of-encodedata
     */
    function _hash(RedeemPermit memory permit_)
        internal
        view
        returns (bytes32)
    {
        return
            _hashTypedDataV4(
                keccak256(
                    abi.encode(
                        REDEEM_PERMIT_TYPEHASH,
                        permit_.amount,
                        permit_.nonce,
                        permit_.currency,
                        permit_.kickoff,
                        permit_.deadline,
                        permit_.recipient,
                        keccak256(permit_.data)
                    )
                )
            );
    }

    /**
     * @dev recover signer from `signature_`
     */
    function _verify(bytes32 digest_, bytes memory signature_)
        internal
        pure
        returns (address)
    {
        return ECDSA.recover(digest_, signature_);
    }

    /**
     * @dev recover ERC20 tokens
     * @param token_ The ERC20 token contract address
     * @param amount_ The amount to recover
     * @param recipient_ The recipient of the recovered tokens
     */
    function recoverERC20(
        address token_,
        uint256 amount_,
        address payable recipient_
    ) external virtual {
        require(
            hasRole(DEFAULT_ADMIN_ROLE, _msgSender()),
            "BottoActiveRewards: must have admin role"
        );

        require(amount_ > 0, "BottoActiveRewards: invalid amount");

        IERC20 token = IERC20(token_);
        token.safeTransfer(recipient_, amount_);
    }

    /**
     * @dev recover ETH
     * @param amount_ The amount to recover
     * @param recipient_ The recipient of the recovered tokens
     */
    function recover(uint256 amount_, address payable recipient_)
        external
        virtual
    {
        require(
            hasRole(DEFAULT_ADMIN_ROLE, _msgSender()),
            "BottoActiveRewards: must have admin role"
        );

        require(amount_ > 0, "BottoActiveRewards: invalid amount");

        (bool success, ) = recipient_.call{value: amount_}("");
        require(success, "BottoActiveRewards: transfer failed.");
    }
}

File 2 of 13 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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(uint160(account), 20),
                        " 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 13 : draft-EIP712.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/cryptography/draft-EIP712.sol)

pragma solidity ^0.8.0;

import "./ECDSA.sol";

/**
 * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
 *
 * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,
 * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding
 * they need in their contracts using a combination of `abi.encode` and `keccak256`.
 *
 * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
 * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
 * ({_hashTypedDataV4}).
 *
 * The implementation of the domain separator was designed to be as efficient as possible while still properly updating
 * the chain id to protect against replay attacks on an eventual fork of the chain.
 *
 * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
 * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
 *
 * _Available since v3.4._
 */
abstract contract EIP712 {
    /* solhint-disable var-name-mixedcase */
    // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to
    // invalidate the cached domain separator if the chain id changes.
    bytes32 private immutable _CACHED_DOMAIN_SEPARATOR;
    uint256 private immutable _CACHED_CHAIN_ID;
    address private immutable _CACHED_THIS;

    bytes32 private immutable _HASHED_NAME;
    bytes32 private immutable _HASHED_VERSION;
    bytes32 private immutable _TYPE_HASH;

    /* solhint-enable var-name-mixedcase */

    /**
     * @dev Initializes the domain separator and parameter caches.
     *
     * The meaning of `name` and `version` is specified in
     * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
     *
     * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
     * - `version`: the current major version of the signing domain.
     *
     * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
     * contract upgrade].
     */
    constructor(string memory name, string memory version) {
        bytes32 hashedName = keccak256(bytes(name));
        bytes32 hashedVersion = keccak256(bytes(version));
        bytes32 typeHash = keccak256(
            "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
        );
        _HASHED_NAME = hashedName;
        _HASHED_VERSION = hashedVersion;
        _CACHED_CHAIN_ID = block.chainid;
        _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion);
        _CACHED_THIS = address(this);
        _TYPE_HASH = typeHash;
    }

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view returns (bytes32) {
        if (address(this) == _CACHED_THIS && block.chainid == _CACHED_CHAIN_ID) {
            return _CACHED_DOMAIN_SEPARATOR;
        } else {
            return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION);
        }
    }

    function _buildDomainSeparator(
        bytes32 typeHash,
        bytes32 nameHash,
        bytes32 versionHash
    ) private view returns (bytes32) {
        return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this)));
    }

    /**
     * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
     * function returns the hash of the fully encoded EIP712 message for this domain.
     *
     * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
     *
     * ```solidity
     * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
     *     keccak256("Mail(address to,string contents)"),
     *     mailTo,
     *     keccak256(bytes(mailContents))
     * )));
     * address signer = ECDSA.recover(digest, signature);
     * ```
     */
    function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
        return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash);
    }
}

File 4 of 13 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.3) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            /// @solidity memory-safe-assembly
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 5 of 13 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

File 6 of 13 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/draft-IERC20Permit.sol";
import "../../../utils/Address.sol";

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

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

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

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 7 of 13 : 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 8 of 13 : 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 13 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_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) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

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

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

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

    /**
     * @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 10 of 13 : 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 11 of 13 : 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 12 of 13 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

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

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 13 of 13 : draft-IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"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"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REDEEM_PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REWARD_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"address","name":"currency","type":"address"},{"internalType":"uint256","name":"kickoff","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct BottoActiveRewards.RedeemPermit","name":"permit_","type":"tuple"},{"internalType":"address","name":"recipient_","type":"address"},{"internalType":"bytes","name":"signature_","type":"bytes"}],"name":"claim","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token_","type":"address"},{"internalType":"uint256","name":"amount_","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount_","type":"uint256"},{"internalType":"address payable","name":"recipient_","type":"address"}],"name":"recover","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token_","type":"address"},{"internalType":"uint256","name":"amount_","type":"uint256"},{"internalType":"address payable","name":"recipient_","type":"address"}],"name":"recoverERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

6101406040523480156200001257600080fd5b506040518060400160405280601481526020017f424f54544f2d4143544956452d524557415244530000000000000000000000008152506040518060400160405280600581526020017f312e302e3000000000000000000000000000000000000000000000000000000081525060008280519060200120905060008280519060200120905060007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f90508260e081815250508161010081815250504660a08181525050620000e88184846200019c60201b60201c565b608081815250503073ffffffffffffffffffffffffffffffffffffffff1660c08173ffffffffffffffffffffffffffffffffffffffff16815250508061012081815250505050505050620001556000801b62000149620001d860201b60201c565b620001e060201b60201c565b620001967fc002a6b5f9f56101ba6339b1b95d171fadf6e41e005b91c80d686aef7516e7596200018a620001d860201b60201c565b620001e060201b60201c565b62000413565b60008383834630604051602001620001b9959493929190620003b6565b6040516020818303038152906040528051906020012090509392505050565b600033905090565b620001f28282620002d160201b60201c565b620002cd57600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555062000272620001d860201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000819050919050565b62000350816200033b565b82525050565b6000819050919050565b6200036b8162000356565b82525050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200039e8262000371565b9050919050565b620003b08162000391565b82525050565b600060a082019050620003cd600083018862000345565b620003dc602083018762000345565b620003eb604083018662000345565b620003fa606083018562000360565b620004096080830184620003a5565b9695505050505050565b60805160a05160c05160e0516101005161012051612df662000463600039600061132701526000611369015260006113480152600061127d015260006112d3015260006112fc0152612df66000f3fe6080604052600436106100c65760003560e01c80635c0c0fc91161007f578063a217fddf11610059578063a217fddf14610274578063b51609b41461029f578063d547741f146102c8578063e8884f2b146102f1576100cd565b80635c0c0fc9146101f05780638d108ef11461020c57806391d1485414610237576100cd565b806301ffc9a7146100d2578063248a9ca31461010f5780632f2ff15d1461014c57806336568abe1461017557806347e7ef241461019e5780634eea48e2146101c7576100cd565b366100cd57005b600080fd5b3480156100de57600080fd5b506100f960048036038101906100f49190611933565b61031c565b604051610106919061197b565b60405180910390f35b34801561011b57600080fd5b50610136600480360381019061013191906119cc565b610396565b6040516101439190611a08565b60405180910390f35b34801561015857600080fd5b50610173600480360381019061016e9190611a81565b6103b5565b005b34801561018157600080fd5b5061019c60048036038101906101979190611a81565b6103d6565b005b3480156101aa57600080fd5b506101c560048036038101906101c09190611af7565b610459565b005b3480156101d357600080fd5b506101ee60048036038101906101e99190611b75565b610497565b005b61020a60048036038101906102059190611d1f565b6105de565b005b34801561021857600080fd5b506102216108e7565b60405161022e9190611a08565b60405180910390f35b34801561024357600080fd5b5061025e60048036038101906102599190611a81565b61090b565b60405161026b919061197b565b60405180910390f35b34801561028057600080fd5b50610289610975565b6040516102969190611a08565b60405180910390f35b3480156102ab57600080fd5b506102c660048036038101906102c19190611daa565b61097c565b005b3480156102d457600080fd5b506102ef60048036038101906102ea9190611a81565b610a48565b005b3480156102fd57600080fd5b50610306610a69565b6040516103139190611a08565b60405180910390f35b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061038f575061038e82610a8d565b5b9050919050565b6000806000838152602001908152602001600020600101549050919050565b6103be82610396565b6103c781610af7565b6103d18383610b0b565b505050565b6103de610beb565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461044b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161044290611e80565b60405180910390fd5b6104558282610bf3565b5050565b6000829050610492610469610beb565b30848473ffffffffffffffffffffffffffffffffffffffff16610cd4909392919063ffffffff16565b505050565b6104ab6000801b6104a6610beb565b61090b565b6104ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104e190611f12565b60405180910390fd5b6000821161052d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161052490611fa4565b60405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff168360405161055390611ff5565b60006040518083038185875af1925050503d8060008114610590576040519150601f19603f3d011682016040523d82523d6000602084013e610595565b606091505b50509050806105d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105d09061207c565b60405180910390fd5b505050565b60006105fb6105f5856105f090612176565b610d5d565b83610de6565b90506106277fc002a6b5f9f56101ba6339b1b95d171fadf6e41e005b91c80d686aef7516e7598261090b565b610666576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161065d906121fb565b60405180910390fd5b600154846020013510156106af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106a69061228d565b60405180910390fd5b428460600135111580156106c7575042846080013510155b610706576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106fd9061231f565b60405180910390fd5b8360a0016020810190610719919061233f565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614610786576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161077d906123de565b60405180910390fd5b60018460200135610797919061242d565b600181905550600073ffffffffffffffffffffffffffffffffffffffff168460400160208101906107c8919061233f565b73ffffffffffffffffffffffffffffffffffffffff16036108995760008373ffffffffffffffffffffffffffffffffffffffff16856000013560405161080d90611ff5565b60006040518083038185875af1925050503d806000811461084a576040519150601f19603f3d011682016040523d82523d6000602084013e61084f565b606091505b5050905080610893576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161088a9061207c565b60405180910390fd5b506108e1565b60008460400160208101906108ae919061233f565b90506108df8486600001358373ffffffffffffffffffffffffffffffffffffffff16610dfa9092919063ffffffff16565b505b50505050565b7ffae2ef5413d701dfe4ba5bc340086f28bfafc845c9c64806d94fed756085a1f281565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000801b81565b6109906000801b61098b610beb565b61090b565b6109cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109c690611f12565b60405180910390fd5b60008211610a12576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a0990611fa4565b60405180910390fd5b6000839050610a4282848373ffffffffffffffffffffffffffffffffffffffff16610dfa9092919063ffffffff16565b50505050565b610a5182610396565b610a5a81610af7565b610a648383610bf3565b505050565b7fc002a6b5f9f56101ba6339b1b95d171fadf6e41e005b91c80d686aef7516e75981565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b610b0881610b03610beb565b610e80565b50565b610b15828261090b565b610be757600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610b8c610beb565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600033905090565b610bfd828261090b565b15610cd057600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610c75610beb565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b610d57846323b872dd60e01b858585604051602401610cf59392919061247f565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610f1d565b50505050565b6000610ddf7ffae2ef5413d701dfe4ba5bc340086f28bfafc845c9c64806d94fed756085a1f2836000015184602001518560400151866060015187608001518860a001518960c0015180519060200120604051602001610dc49897969594939291906124b6565b60405160208183030381529060405280519060200120610fe4565b9050919050565b6000610df28383610ffe565b905092915050565b610e7b8363a9059cbb60e01b8484604051602401610e19929190612534565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610f1d565b505050565b610e8a828261090b565b610f1957610eaf8173ffffffffffffffffffffffffffffffffffffffff166014611025565b610ebd8360001c6020611025565b604051602001610ece929190612666565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1091906126d9565b60405180910390fd5b5050565b6000610f7f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166112619092919063ffffffff16565b9050600081511115610fdf5780806020019051810190610f9f9190612727565b610fde576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fd5906127c6565b60405180910390fd5b5b505050565b6000610ff7610ff1611279565b83611393565b9050919050565b600080600061100d85856113c6565b9150915061101a81611417565b819250505092915050565b60606000600283600261103891906127e6565b611042919061242d565b67ffffffffffffffff81111561105b5761105a611bf4565b5b6040519080825280601f01601f19166020018201604052801561108d5781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106110c5576110c4612828565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061112957611128612828565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000600184600261116991906127e6565b611173919061242d565b90505b6001811115611213577f3031323334353637383961626364656600000000000000000000000000000000600f8616601081106111b5576111b4612828565b5b1a60f81b8282815181106111cc576111cb612828565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c94508061120c90612857565b9050611176565b5060008414611257576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161124e906128cc565b60405180910390fd5b8091505092915050565b606061127084846000856115e3565b90509392505050565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff161480156112f557507f000000000000000000000000000000000000000000000000000000000000000046145b15611322577f00000000000000000000000000000000000000000000000000000000000000009050611390565b61138d7f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000006116f7565b90505b90565b600082826040516020016113a8929190612959565b60405160208183030381529060405280519060200120905092915050565b60008060418351036114075760008060006020860151925060408601519150606086015160001a90506113fb87828585611731565b94509450505050611410565b60006002915091505b9250929050565b6000600481111561142b5761142a612990565b5b81600481111561143e5761143d612990565b5b03156115e0576001600481111561145857611457612990565b5b81600481111561146b5761146a612990565b5b036114ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114a290612a0b565b60405180910390fd5b600260048111156114bf576114be612990565b5b8160048111156114d2576114d1612990565b5b03611512576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161150990612a77565b60405180910390fd5b6003600481111561152657611525612990565b5b81600481111561153957611538612990565b5b03611579576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161157090612b09565b60405180910390fd5b60048081111561158c5761158b612990565b5b81600481111561159f5761159e612990565b5b036115df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115d690612b9b565b60405180910390fd5b5b50565b606082471015611628576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161f90612c2d565b60405180910390fd5b6116318561183d565b611670576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161166790612c99565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516116999190612cf5565b60006040518083038185875af1925050503d80600081146116d6576040519150601f19603f3d011682016040523d82523d6000602084013e6116db565b606091505b50915091506116eb828286611860565b92505050949350505050565b60008383834630604051602001611712959493929190612d0c565b6040516020818303038152906040528051906020012090509392505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c111561176c576000600391509150611834565b601b8560ff16141580156117845750601c8560ff1614155b15611796576000600491509150611834565b6000600187878787604051600081526020016040526040516117bb9493929190612d7b565b6020604051602081039080840390855afa1580156117dd573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361182b57600060019250925050611834565b80600092509250505b94509492505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60608315611870578290506118c0565b6000835111156118835782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118b791906126d9565b60405180910390fd5b9392505050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611910816118db565b811461191b57600080fd5b50565b60008135905061192d81611907565b92915050565b600060208284031215611949576119486118d1565b5b60006119578482850161191e565b91505092915050565b60008115159050919050565b61197581611960565b82525050565b6000602082019050611990600083018461196c565b92915050565b6000819050919050565b6119a981611996565b81146119b457600080fd5b50565b6000813590506119c6816119a0565b92915050565b6000602082840312156119e2576119e16118d1565b5b60006119f0848285016119b7565b91505092915050565b611a0281611996565b82525050565b6000602082019050611a1d60008301846119f9565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611a4e82611a23565b9050919050565b611a5e81611a43565b8114611a6957600080fd5b50565b600081359050611a7b81611a55565b92915050565b60008060408385031215611a9857611a976118d1565b5b6000611aa6858286016119b7565b9250506020611ab785828601611a6c565b9150509250929050565b6000819050919050565b611ad481611ac1565b8114611adf57600080fd5b50565b600081359050611af181611acb565b92915050565b60008060408385031215611b0e57611b0d6118d1565b5b6000611b1c85828601611a6c565b9250506020611b2d85828601611ae2565b9150509250929050565b6000611b4282611a23565b9050919050565b611b5281611b37565b8114611b5d57600080fd5b50565b600081359050611b6f81611b49565b92915050565b60008060408385031215611b8c57611b8b6118d1565b5b6000611b9a85828601611ae2565b9250506020611bab85828601611b60565b9150509250929050565b600080fd5b600060e08284031215611bd057611bcf611bb5565b5b81905092915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b611c2c82611be3565b810181811067ffffffffffffffff82111715611c4b57611c4a611bf4565b5b80604052505050565b6000611c5e6118c7565b9050611c6a8282611c23565b919050565b600067ffffffffffffffff821115611c8a57611c89611bf4565b5b611c9382611be3565b9050602081019050919050565b82818337600083830152505050565b6000611cc2611cbd84611c6f565b611c54565b905082815260208101848484011115611cde57611cdd611bde565b5b611ce9848285611ca0565b509392505050565b600082601f830112611d0657611d05611bd9565b5b8135611d16848260208601611caf565b91505092915050565b600080600060608486031215611d3857611d376118d1565b5b600084013567ffffffffffffffff811115611d5657611d556118d6565b5b611d6286828701611bba565b9350506020611d7386828701611a6c565b925050604084013567ffffffffffffffff811115611d9457611d936118d6565b5b611da086828701611cf1565b9150509250925092565b600080600060608486031215611dc357611dc26118d1565b5b6000611dd186828701611a6c565b9350506020611de286828701611ae2565b9250506040611df386828701611b60565b9150509250925092565b600082825260208201905092915050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000611e6a602f83611dfd565b9150611e7582611e0e565b604082019050919050565b60006020820190508181036000830152611e9981611e5d565b9050919050565b7f426f74746f416374697665526577617264733a206d757374206861766520616460008201527f6d696e20726f6c65000000000000000000000000000000000000000000000000602082015250565b6000611efc602883611dfd565b9150611f0782611ea0565b604082019050919050565b60006020820190508181036000830152611f2b81611eef565b9050919050565b7f426f74746f416374697665526577617264733a20696e76616c696420616d6f7560008201527f6e74000000000000000000000000000000000000000000000000000000000000602082015250565b6000611f8e602283611dfd565b9150611f9982611f32565b604082019050919050565b60006020820190508181036000830152611fbd81611f81565b9050919050565b600081905092915050565b50565b6000611fdf600083611fc4565b9150611fea82611fcf565b600082019050919050565b600061200082611fd2565b9150819050919050565b7f426f74746f416374697665526577617264733a207472616e736665722066616960008201527f6c65642e00000000000000000000000000000000000000000000000000000000602082015250565b6000612066602483611dfd565b91506120718261200a565b604082019050919050565b6000602082019050818103600083015261209581612059565b9050919050565b600080fd5b600080fd5b600060e082840312156120bc576120bb61209c565b5b6120c660e0611c54565b905060006120d684828501611ae2565b60008301525060206120ea84828501611ae2565b60208301525060406120fe84828501611a6c565b604083015250606061211284828501611ae2565b606083015250608061212684828501611ae2565b60808301525060a061213a84828501611a6c565b60a08301525060c082013567ffffffffffffffff81111561215e5761215d6120a1565b5b61216a84828501611cf1565b60c08301525092915050565b600061218236836120a6565b9050919050565b7f426f74746f416374697665526577617264733a207369676e617475726520696e60008201527f76616c6964000000000000000000000000000000000000000000000000000000602082015250565b60006121e5602583611dfd565b91506121f082612189565b604082019050919050565b60006020820190508181036000830152612214816121d8565b9050919050565b7f426f74746f416374697665526577617264733a207065726d697420696e76616c60008201527f6964000000000000000000000000000000000000000000000000000000000000602082015250565b6000612277602283611dfd565b91506122828261221b565b604082019050919050565b600060208201905081810360008301526122a68161226a565b9050919050565b7f426f74746f416374697665526577617264733a207065726d697420657870697260008201527f6564000000000000000000000000000000000000000000000000000000000000602082015250565b6000612309602283611dfd565b9150612314826122ad565b604082019050919050565b60006020820190508181036000830152612338816122fc565b9050919050565b600060208284031215612355576123546118d1565b5b600061236384828501611a6c565b91505092915050565b7f426f74746f416374697665526577617264733a20726563697069656e7420646f60008201527f6573206e6f74206d61746368207065726d697400000000000000000000000000602082015250565b60006123c8603383611dfd565b91506123d38261236c565b604082019050919050565b600060208201905081810360008301526123f7816123bb565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061243882611ac1565b915061244383611ac1565b925082820190508082111561245b5761245a6123fe565b5b92915050565b61246a81611a43565b82525050565b61247981611ac1565b82525050565b60006060820190506124946000830186612461565b6124a16020830185612461565b6124ae6040830184612470565b949350505050565b6000610100820190506124cc600083018b6119f9565b6124d9602083018a612470565b6124e66040830189612470565b6124f36060830188612461565b6125006080830187612470565b61250d60a0830186612470565b61251a60c0830185612461565b61252760e08301846119f9565b9998505050505050505050565b60006040820190506125496000830185612461565b6125566020830184612470565b9392505050565b600081905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b600061259e60178361255d565b91506125a982612568565b601782019050919050565b600081519050919050565b60005b838110156125dd5780820151818401526020810190506125c2565b60008484015250505050565b60006125f4826125b4565b6125fe818561255d565b935061260e8185602086016125bf565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b600061265060118361255d565b915061265b8261261a565b601182019050919050565b600061267182612591565b915061267d82856125e9565b915061268882612643565b915061269482846125e9565b91508190509392505050565b60006126ab826125b4565b6126b58185611dfd565b93506126c58185602086016125bf565b6126ce81611be3565b840191505092915050565b600060208201905081810360008301526126f381846126a0565b905092915050565b61270481611960565b811461270f57600080fd5b50565b600081519050612721816126fb565b92915050565b60006020828403121561273d5761273c6118d1565b5b600061274b84828501612712565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b60006127b0602a83611dfd565b91506127bb82612754565b604082019050919050565b600060208201905081810360008301526127df816127a3565b9050919050565b60006127f182611ac1565b91506127fc83611ac1565b925082820261280a81611ac1565b91508282048414831517612821576128206123fe565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061286282611ac1565b915060008203612875576128746123fe565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b60006128b6602083611dfd565b91506128c182612880565b602082019050919050565b600060208201905081810360008301526128e5816128a9565b9050919050565b7f1901000000000000000000000000000000000000000000000000000000000000600082015250565b600061292260028361255d565b915061292d826128ec565b600282019050919050565b6000819050919050565b61295361294e82611996565b612938565b82525050565b600061296482612915565b91506129708285612942565b6020820191506129808284612942565b6020820191508190509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b60006129f5601883611dfd565b9150612a00826129bf565b602082019050919050565b60006020820190508181036000830152612a24816129e8565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000612a61601f83611dfd565b9150612a6c82612a2b565b602082019050919050565b60006020820190508181036000830152612a9081612a54565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000612af3602283611dfd565b9150612afe82612a97565b604082019050919050565b60006020820190508181036000830152612b2281612ae6565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000612b85602283611dfd565b9150612b9082612b29565b604082019050919050565b60006020820190508181036000830152612bb481612b78565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000612c17602683611dfd565b9150612c2282612bbb565b604082019050919050565b60006020820190508181036000830152612c4681612c0a565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000612c83601d83611dfd565b9150612c8e82612c4d565b602082019050919050565b60006020820190508181036000830152612cb281612c76565b9050919050565b600081519050919050565b6000612ccf82612cb9565b612cd98185611fc4565b9350612ce98185602086016125bf565b80840191505092915050565b6000612d018284612cc4565b915081905092915050565b600060a082019050612d2160008301886119f9565b612d2e60208301876119f9565b612d3b60408301866119f9565b612d486060830185612470565b612d556080830184612461565b9695505050505050565b600060ff82169050919050565b612d7581612d5f565b82525050565b6000608082019050612d9060008301876119f9565b612d9d6020830186612d6c565b612daa60408301856119f9565b612db760608301846119f9565b9594505050505056fea26469706673582212203cd76ac4cbc1debb32fdec0b5240960a691cd9350520a6d4a47415ca70da87a364736f6c63430008110033

Deployed Bytecode

0x6080604052600436106100c65760003560e01c80635c0c0fc91161007f578063a217fddf11610059578063a217fddf14610274578063b51609b41461029f578063d547741f146102c8578063e8884f2b146102f1576100cd565b80635c0c0fc9146101f05780638d108ef11461020c57806391d1485414610237576100cd565b806301ffc9a7146100d2578063248a9ca31461010f5780632f2ff15d1461014c57806336568abe1461017557806347e7ef241461019e5780634eea48e2146101c7576100cd565b366100cd57005b600080fd5b3480156100de57600080fd5b506100f960048036038101906100f49190611933565b61031c565b604051610106919061197b565b60405180910390f35b34801561011b57600080fd5b50610136600480360381019061013191906119cc565b610396565b6040516101439190611a08565b60405180910390f35b34801561015857600080fd5b50610173600480360381019061016e9190611a81565b6103b5565b005b34801561018157600080fd5b5061019c60048036038101906101979190611a81565b6103d6565b005b3480156101aa57600080fd5b506101c560048036038101906101c09190611af7565b610459565b005b3480156101d357600080fd5b506101ee60048036038101906101e99190611b75565b610497565b005b61020a60048036038101906102059190611d1f565b6105de565b005b34801561021857600080fd5b506102216108e7565b60405161022e9190611a08565b60405180910390f35b34801561024357600080fd5b5061025e60048036038101906102599190611a81565b61090b565b60405161026b919061197b565b60405180910390f35b34801561028057600080fd5b50610289610975565b6040516102969190611a08565b60405180910390f35b3480156102ab57600080fd5b506102c660048036038101906102c19190611daa565b61097c565b005b3480156102d457600080fd5b506102ef60048036038101906102ea9190611a81565b610a48565b005b3480156102fd57600080fd5b50610306610a69565b6040516103139190611a08565b60405180910390f35b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061038f575061038e82610a8d565b5b9050919050565b6000806000838152602001908152602001600020600101549050919050565b6103be82610396565b6103c781610af7565b6103d18383610b0b565b505050565b6103de610beb565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461044b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161044290611e80565b60405180910390fd5b6104558282610bf3565b5050565b6000829050610492610469610beb565b30848473ffffffffffffffffffffffffffffffffffffffff16610cd4909392919063ffffffff16565b505050565b6104ab6000801b6104a6610beb565b61090b565b6104ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104e190611f12565b60405180910390fd5b6000821161052d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161052490611fa4565b60405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff168360405161055390611ff5565b60006040518083038185875af1925050503d8060008114610590576040519150601f19603f3d011682016040523d82523d6000602084013e610595565b606091505b50509050806105d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105d09061207c565b60405180910390fd5b505050565b60006105fb6105f5856105f090612176565b610d5d565b83610de6565b90506106277fc002a6b5f9f56101ba6339b1b95d171fadf6e41e005b91c80d686aef7516e7598261090b565b610666576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161065d906121fb565b60405180910390fd5b600154846020013510156106af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106a69061228d565b60405180910390fd5b428460600135111580156106c7575042846080013510155b610706576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106fd9061231f565b60405180910390fd5b8360a0016020810190610719919061233f565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614610786576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161077d906123de565b60405180910390fd5b60018460200135610797919061242d565b600181905550600073ffffffffffffffffffffffffffffffffffffffff168460400160208101906107c8919061233f565b73ffffffffffffffffffffffffffffffffffffffff16036108995760008373ffffffffffffffffffffffffffffffffffffffff16856000013560405161080d90611ff5565b60006040518083038185875af1925050503d806000811461084a576040519150601f19603f3d011682016040523d82523d6000602084013e61084f565b606091505b5050905080610893576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161088a9061207c565b60405180910390fd5b506108e1565b60008460400160208101906108ae919061233f565b90506108df8486600001358373ffffffffffffffffffffffffffffffffffffffff16610dfa9092919063ffffffff16565b505b50505050565b7ffae2ef5413d701dfe4ba5bc340086f28bfafc845c9c64806d94fed756085a1f281565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000801b81565b6109906000801b61098b610beb565b61090b565b6109cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109c690611f12565b60405180910390fd5b60008211610a12576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a0990611fa4565b60405180910390fd5b6000839050610a4282848373ffffffffffffffffffffffffffffffffffffffff16610dfa9092919063ffffffff16565b50505050565b610a5182610396565b610a5a81610af7565b610a648383610bf3565b505050565b7fc002a6b5f9f56101ba6339b1b95d171fadf6e41e005b91c80d686aef7516e75981565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b610b0881610b03610beb565b610e80565b50565b610b15828261090b565b610be757600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610b8c610beb565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600033905090565b610bfd828261090b565b15610cd057600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610c75610beb565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b610d57846323b872dd60e01b858585604051602401610cf59392919061247f565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610f1d565b50505050565b6000610ddf7ffae2ef5413d701dfe4ba5bc340086f28bfafc845c9c64806d94fed756085a1f2836000015184602001518560400151866060015187608001518860a001518960c0015180519060200120604051602001610dc49897969594939291906124b6565b60405160208183030381529060405280519060200120610fe4565b9050919050565b6000610df28383610ffe565b905092915050565b610e7b8363a9059cbb60e01b8484604051602401610e19929190612534565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610f1d565b505050565b610e8a828261090b565b610f1957610eaf8173ffffffffffffffffffffffffffffffffffffffff166014611025565b610ebd8360001c6020611025565b604051602001610ece929190612666565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1091906126d9565b60405180910390fd5b5050565b6000610f7f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166112619092919063ffffffff16565b9050600081511115610fdf5780806020019051810190610f9f9190612727565b610fde576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fd5906127c6565b60405180910390fd5b5b505050565b6000610ff7610ff1611279565b83611393565b9050919050565b600080600061100d85856113c6565b9150915061101a81611417565b819250505092915050565b60606000600283600261103891906127e6565b611042919061242d565b67ffffffffffffffff81111561105b5761105a611bf4565b5b6040519080825280601f01601f19166020018201604052801561108d5781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106110c5576110c4612828565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061112957611128612828565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000600184600261116991906127e6565b611173919061242d565b90505b6001811115611213577f3031323334353637383961626364656600000000000000000000000000000000600f8616601081106111b5576111b4612828565b5b1a60f81b8282815181106111cc576111cb612828565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c94508061120c90612857565b9050611176565b5060008414611257576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161124e906128cc565b60405180910390fd5b8091505092915050565b606061127084846000856115e3565b90509392505050565b60007f00000000000000000000000093298241417a63469b6f8f080b4878749acb4c4773ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff161480156112f557507f000000000000000000000000000000000000000000000000000000000000000146145b15611322577f77c10826193d4eb1f1d706c541a3eb11eff9549d4efdc151a4964770278eb1679050611390565b61138d7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f7f4e6a01f255069b443a5247cbb79dd328a902b23d3ffc9add79b5d313f7a776497f06c015bd22b4c69690933c1058878ebdfef31f9aaae40bbe86d8a09fe1b2972c6116f7565b90505b90565b600082826040516020016113a8929190612959565b60405160208183030381529060405280519060200120905092915050565b60008060418351036114075760008060006020860151925060408601519150606086015160001a90506113fb87828585611731565b94509450505050611410565b60006002915091505b9250929050565b6000600481111561142b5761142a612990565b5b81600481111561143e5761143d612990565b5b03156115e0576001600481111561145857611457612990565b5b81600481111561146b5761146a612990565b5b036114ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114a290612a0b565b60405180910390fd5b600260048111156114bf576114be612990565b5b8160048111156114d2576114d1612990565b5b03611512576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161150990612a77565b60405180910390fd5b6003600481111561152657611525612990565b5b81600481111561153957611538612990565b5b03611579576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161157090612b09565b60405180910390fd5b60048081111561158c5761158b612990565b5b81600481111561159f5761159e612990565b5b036115df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115d690612b9b565b60405180910390fd5b5b50565b606082471015611628576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161f90612c2d565b60405180910390fd5b6116318561183d565b611670576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161166790612c99565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516116999190612cf5565b60006040518083038185875af1925050503d80600081146116d6576040519150601f19603f3d011682016040523d82523d6000602084013e6116db565b606091505b50915091506116eb828286611860565b92505050949350505050565b60008383834630604051602001611712959493929190612d0c565b6040516020818303038152906040528051906020012090509392505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c111561176c576000600391509150611834565b601b8560ff16141580156117845750601c8560ff1614155b15611796576000600491509150611834565b6000600187878787604051600081526020016040526040516117bb9493929190612d7b565b6020604051602081039080840390855afa1580156117dd573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361182b57600060019250925050611834565b80600092509250505b94509492505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60608315611870578290506118c0565b6000835111156118835782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118b791906126d9565b60405180910390fd5b9392505050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611910816118db565b811461191b57600080fd5b50565b60008135905061192d81611907565b92915050565b600060208284031215611949576119486118d1565b5b60006119578482850161191e565b91505092915050565b60008115159050919050565b61197581611960565b82525050565b6000602082019050611990600083018461196c565b92915050565b6000819050919050565b6119a981611996565b81146119b457600080fd5b50565b6000813590506119c6816119a0565b92915050565b6000602082840312156119e2576119e16118d1565b5b60006119f0848285016119b7565b91505092915050565b611a0281611996565b82525050565b6000602082019050611a1d60008301846119f9565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611a4e82611a23565b9050919050565b611a5e81611a43565b8114611a6957600080fd5b50565b600081359050611a7b81611a55565b92915050565b60008060408385031215611a9857611a976118d1565b5b6000611aa6858286016119b7565b9250506020611ab785828601611a6c565b9150509250929050565b6000819050919050565b611ad481611ac1565b8114611adf57600080fd5b50565b600081359050611af181611acb565b92915050565b60008060408385031215611b0e57611b0d6118d1565b5b6000611b1c85828601611a6c565b9250506020611b2d85828601611ae2565b9150509250929050565b6000611b4282611a23565b9050919050565b611b5281611b37565b8114611b5d57600080fd5b50565b600081359050611b6f81611b49565b92915050565b60008060408385031215611b8c57611b8b6118d1565b5b6000611b9a85828601611ae2565b9250506020611bab85828601611b60565b9150509250929050565b600080fd5b600060e08284031215611bd057611bcf611bb5565b5b81905092915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b611c2c82611be3565b810181811067ffffffffffffffff82111715611c4b57611c4a611bf4565b5b80604052505050565b6000611c5e6118c7565b9050611c6a8282611c23565b919050565b600067ffffffffffffffff821115611c8a57611c89611bf4565b5b611c9382611be3565b9050602081019050919050565b82818337600083830152505050565b6000611cc2611cbd84611c6f565b611c54565b905082815260208101848484011115611cde57611cdd611bde565b5b611ce9848285611ca0565b509392505050565b600082601f830112611d0657611d05611bd9565b5b8135611d16848260208601611caf565b91505092915050565b600080600060608486031215611d3857611d376118d1565b5b600084013567ffffffffffffffff811115611d5657611d556118d6565b5b611d6286828701611bba565b9350506020611d7386828701611a6c565b925050604084013567ffffffffffffffff811115611d9457611d936118d6565b5b611da086828701611cf1565b9150509250925092565b600080600060608486031215611dc357611dc26118d1565b5b6000611dd186828701611a6c565b9350506020611de286828701611ae2565b9250506040611df386828701611b60565b9150509250925092565b600082825260208201905092915050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000611e6a602f83611dfd565b9150611e7582611e0e565b604082019050919050565b60006020820190508181036000830152611e9981611e5d565b9050919050565b7f426f74746f416374697665526577617264733a206d757374206861766520616460008201527f6d696e20726f6c65000000000000000000000000000000000000000000000000602082015250565b6000611efc602883611dfd565b9150611f0782611ea0565b604082019050919050565b60006020820190508181036000830152611f2b81611eef565b9050919050565b7f426f74746f416374697665526577617264733a20696e76616c696420616d6f7560008201527f6e74000000000000000000000000000000000000000000000000000000000000602082015250565b6000611f8e602283611dfd565b9150611f9982611f32565b604082019050919050565b60006020820190508181036000830152611fbd81611f81565b9050919050565b600081905092915050565b50565b6000611fdf600083611fc4565b9150611fea82611fcf565b600082019050919050565b600061200082611fd2565b9150819050919050565b7f426f74746f416374697665526577617264733a207472616e736665722066616960008201527f6c65642e00000000000000000000000000000000000000000000000000000000602082015250565b6000612066602483611dfd565b91506120718261200a565b604082019050919050565b6000602082019050818103600083015261209581612059565b9050919050565b600080fd5b600080fd5b600060e082840312156120bc576120bb61209c565b5b6120c660e0611c54565b905060006120d684828501611ae2565b60008301525060206120ea84828501611ae2565b60208301525060406120fe84828501611a6c565b604083015250606061211284828501611ae2565b606083015250608061212684828501611ae2565b60808301525060a061213a84828501611a6c565b60a08301525060c082013567ffffffffffffffff81111561215e5761215d6120a1565b5b61216a84828501611cf1565b60c08301525092915050565b600061218236836120a6565b9050919050565b7f426f74746f416374697665526577617264733a207369676e617475726520696e60008201527f76616c6964000000000000000000000000000000000000000000000000000000602082015250565b60006121e5602583611dfd565b91506121f082612189565b604082019050919050565b60006020820190508181036000830152612214816121d8565b9050919050565b7f426f74746f416374697665526577617264733a207065726d697420696e76616c60008201527f6964000000000000000000000000000000000000000000000000000000000000602082015250565b6000612277602283611dfd565b91506122828261221b565b604082019050919050565b600060208201905081810360008301526122a68161226a565b9050919050565b7f426f74746f416374697665526577617264733a207065726d697420657870697260008201527f6564000000000000000000000000000000000000000000000000000000000000602082015250565b6000612309602283611dfd565b9150612314826122ad565b604082019050919050565b60006020820190508181036000830152612338816122fc565b9050919050565b600060208284031215612355576123546118d1565b5b600061236384828501611a6c565b91505092915050565b7f426f74746f416374697665526577617264733a20726563697069656e7420646f60008201527f6573206e6f74206d61746368207065726d697400000000000000000000000000602082015250565b60006123c8603383611dfd565b91506123d38261236c565b604082019050919050565b600060208201905081810360008301526123f7816123bb565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061243882611ac1565b915061244383611ac1565b925082820190508082111561245b5761245a6123fe565b5b92915050565b61246a81611a43565b82525050565b61247981611ac1565b82525050565b60006060820190506124946000830186612461565b6124a16020830185612461565b6124ae6040830184612470565b949350505050565b6000610100820190506124cc600083018b6119f9565b6124d9602083018a612470565b6124e66040830189612470565b6124f36060830188612461565b6125006080830187612470565b61250d60a0830186612470565b61251a60c0830185612461565b61252760e08301846119f9565b9998505050505050505050565b60006040820190506125496000830185612461565b6125566020830184612470565b9392505050565b600081905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b600061259e60178361255d565b91506125a982612568565b601782019050919050565b600081519050919050565b60005b838110156125dd5780820151818401526020810190506125c2565b60008484015250505050565b60006125f4826125b4565b6125fe818561255d565b935061260e8185602086016125bf565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b600061265060118361255d565b915061265b8261261a565b601182019050919050565b600061267182612591565b915061267d82856125e9565b915061268882612643565b915061269482846125e9565b91508190509392505050565b60006126ab826125b4565b6126b58185611dfd565b93506126c58185602086016125bf565b6126ce81611be3565b840191505092915050565b600060208201905081810360008301526126f381846126a0565b905092915050565b61270481611960565b811461270f57600080fd5b50565b600081519050612721816126fb565b92915050565b60006020828403121561273d5761273c6118d1565b5b600061274b84828501612712565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b60006127b0602a83611dfd565b91506127bb82612754565b604082019050919050565b600060208201905081810360008301526127df816127a3565b9050919050565b60006127f182611ac1565b91506127fc83611ac1565b925082820261280a81611ac1565b91508282048414831517612821576128206123fe565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061286282611ac1565b915060008203612875576128746123fe565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b60006128b6602083611dfd565b91506128c182612880565b602082019050919050565b600060208201905081810360008301526128e5816128a9565b9050919050565b7f1901000000000000000000000000000000000000000000000000000000000000600082015250565b600061292260028361255d565b915061292d826128ec565b600282019050919050565b6000819050919050565b61295361294e82611996565b612938565b82525050565b600061296482612915565b91506129708285612942565b6020820191506129808284612942565b6020820191508190509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b60006129f5601883611dfd565b9150612a00826129bf565b602082019050919050565b60006020820190508181036000830152612a24816129e8565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000612a61601f83611dfd565b9150612a6c82612a2b565b602082019050919050565b60006020820190508181036000830152612a9081612a54565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000612af3602283611dfd565b9150612afe82612a97565b604082019050919050565b60006020820190508181036000830152612b2281612ae6565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000612b85602283611dfd565b9150612b9082612b29565b604082019050919050565b60006020820190508181036000830152612bb481612b78565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000612c17602683611dfd565b9150612c2282612bbb565b604082019050919050565b60006020820190508181036000830152612c4681612c0a565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000612c83601d83611dfd565b9150612c8e82612c4d565b602082019050919050565b60006020820190508181036000830152612cb281612c76565b9050919050565b600081519050919050565b6000612ccf82612cb9565b612cd98185611fc4565b9350612ce98185602086016125bf565b80840191505092915050565b6000612d018284612cc4565b915081905092915050565b600060a082019050612d2160008301886119f9565b612d2e60208301876119f9565b612d3b60408301866119f9565b612d486060830185612470565b612d556080830184612461565b9695505050505050565b600060ff82169050919050565b612d7581612d5f565b82525050565b6000608082019050612d9060008301876119f9565b612d9d6020830186612d6c565b612daa60408301856119f9565b612db760608301846119f9565b9594505050505056fea26469706673582212203cd76ac4cbc1debb32fdec0b5240960a691cd9350520a6d4a47415ca70da87a364736f6c63430008110033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ 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.