Contract 0xf40CEd6869b9e35Dff4EC04cc11c2C50619742fa

Contract Overview

Balance:
0 CRO

CRO Value:
$0.00

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x69b90d6be3f0ce6efba285e7b233728283e890dd8e6625697d89ad37795502c7Transfer61984002022-12-26 14:28:2138 days 19 hrs ago0x0a9bfe0d4f4547da73ac5f2aa6e25ffb1cddcab6 IN  0xf40ced6869b9e35dff4ec04cc11c2c50619742fa0 CRO0.238527101778 4,848.308910504
0x323cac2d6b784ac14ac855f4e1dc4bd6c641927750c7ca5adf0c992d1c8589d4Approve61122342022-12-20 23:12:2244 days 11 hrs ago0x9f3c1d967cafc8c5c9d2c9c6173f1f63cdc2a473 IN  0xf40ced6869b9e35dff4ec04cc11c2c50619742fa0 CRO0.113078131118 4,852.305660769
0x7bfbf0b8926ed2775f94b16a1d56a5c702acaec58c5bb64a43cafdec1b1dfbb5Transfer61117772022-12-20 22:29:1744 days 11 hrs ago0x9f3c1d967cafc8c5c9d2c9c6173f1f63cdc2a473 IN  0xf40ced6869b9e35dff4ec04cc11c2c50619742fa0 CRO0.23872476773 4,852.326674464
0x51249169642c9b0165a3ec6f807374e3d21c255ba0b03fff820c191277ef498aApprove57395472022-11-26 12:13:3068 days 22 hrs ago0xf347da69cc8134556b23a01178a048918a37d584 IN  0xf40ced6869b9e35dff4ec04cc11c2c50619742fa0 CRO0.11347963066 4,869.534443047
0xafd59502e9da529bf929a8e4d6bd14f162679063926acd22f6b7acdb0a17710fApprove57395452022-11-26 12:13:1968 days 22 hrs ago0xf347da69cc8134556b23a01178a048918a37d584 IN  0xf40ced6869b9e35dff4ec04cc11c2c50619742fa0 CRO0.113435806998 4,869.534535249
0x275ecdac75083df73c2b7f8fb5c248058af295330b5e8ae846edd6b6886bf17fTransfer56043822022-11-17 15:16:4977 days 19 hrs ago0xf347da69cc8134556b23a01178a048918a37d584 IN  0xf40ced6869b9e35dff4ec04cc11c2c50619742fa0 CRO0.180574986357 4,875.792800264
0x1aeaeef6fff236b50d06e089781b6b7e7c24a35b9e4a25ed71901f266132b45eApprove55817002022-11-16 3:32:4079 days 6 hrs ago0xcbdd0c6fb48bc52e2b3f94f4d78cd85aac238078 IN  0xf40ced6869b9e35dff4ec04cc11c2c50619742fa0 CRO0.113614946233 4,875.340981516
0xfdc3f72cd92d332b51f8c5147758cb14c145dc12f18c871857788b2dc5508d8aTransfer55480472022-11-13 22:13:5381 days 12 hrs ago0x39fc8282251ec50ff2fd63876ff2865cd45a14a8 IN  0xf40ced6869b9e35dff4ec04cc11c2c50619742fa0 CRO0.226770041626 4,878.348749634
0xfb4e640cc10ae690b78607d0b5bf3ece4a4232d0aa13d95a593a0dedddcc4159Transfer53868862022-11-03 7:29:5292 days 2 hrs ago0x30e3b66cd947c72c3d347630d5defe89cf155a63 IN  0xf40ced6869b9e35dff4ec04cc11c2c50619742fa0 CRO0.107733925430
0xff3f705188f8c80dd7e6a619355add8a20307fecddb308a376d314c7ef922b9dTransfer50686092022-10-13 9:38:24113 days 49 mins ago0x70436da31486074976ae52f82c679d418b3b2fd0 IN  0xf40ced6869b9e35dff4ec04cc11c2c50619742fa0 CRO0.2410579127180
0x68ca0d1a772b2650e83af993e64c44af75bf9f1b54b9712738a88c7f0d916c26Transfer48996912022-10-02 7:09:14124 days 3 hrs ago0xf9bcecefdd53e70487fd90d9519031ffa4c23632 IN  0xf40ced6869b9e35dff4ec04cc11c2c50619742fa0 CRO0.18242653206 4,908.029058104
0x9f8505f761c40d88ab1251da6cb58de428ffe04a476184159e587e9fe611542fTransfer48765562022-09-30 18:41:34125 days 15 hrs ago0x8d15cb502918eeafb9eb2f8df6cc4685dbe29a67 IN  0xf40ced6869b9e35dff4ec04cc11c2c50619742fa0 CRO0.1672161391160
0x9d14224f45a25c43f8820d4e0c4aa7a5f0adb3eed3f355741efc793e07acd0edTransfer47486582022-09-22 8:39:18134 days 1 hr ago0x309a258c065f332ebfdd86e7ad3e003f33b0adfc IN  0xf40ced6869b9e35dff4ec04cc11c2c50619742fa0 CRO0.182825401526 4,914.925574674
0x14c28ca8b4d6fc20ea9d7ebc4e1d2db5277bd39aa856b7da920d16858338f064Transfer47341312022-09-21 9:44:43135 days 42 mins ago0x363c7e093190cac2fce4a44f1867fb4a30d0bd2e IN  0xf40ced6869b9e35dff4ec04cc11c2c50619742fa0 CRO0.228431414370
0x3cddc6ca19a85cace450bbe2288fa070b6580c1f510cb761bc4b4e30362d8b9bTransfer47210012022-09-20 13:04:38135 days 21 hrs ago0x363c7e093190cac2fce4a44f1867fb4a30d0bd2e IN  0xf40ced6869b9e35dff4ec04cc11c2c50619742fa0 CRO0.2284596548650
0x4e16b527ace171c2ca58ec3f1e12a98c081c3e615a02863b786ab822fae86b86Transfer46741222022-09-17 11:13:08138 days 23 hrs ago0x3853bdf2164fbe67ba134c44d710e348d14cba48 IN  0xf40ced6869b9e35dff4ec04cc11c2c50619742fa0 CRO0.1828973780520
0xeffca6c14235ab43f83c2c8336809797aa0576267f19ccd86cd4d23542dcb3d6Transfer46344262022-09-14 20:40:14141 days 13 hrs ago0x0239651e79826399e1e189730a6c7e0c264e23cc IN  0xf40ced6869b9e35dff4ec04cc11c2c50619742fa0 CRO0.2420387150610
0xa7d2ca264a1dba0cba3be56962ddfe713c95665d972cc03db7f7a8e647c0ce58Transfer46128722022-09-13 10:39:42142 days 23 hrs ago0x363c7e093190cac2fce4a44f1867fb4a30d0bd2e IN  0xf40ced6869b9e35dff4ec04cc11c2c50619742fa0 CRO0.2286914871080
0x44da63085a57791667410f81d5f2026b99493d17dc03ac2fc7aabbf5a1602b6fApprove45591932022-09-09 22:11:32146 days 12 hrs ago0x7971c5e70d1aa0a4c948877c40e8983767a67a95 IN  0xf40ced6869b9e35dff4ec04cc11c2c50619742fa0 CRO0.114697076204 4,923.677879571
0x2c5a3ad375ee904c1b12030b2e40b8df47a32fb0abcbe71120ab9ec216b13927Transfer45013952022-09-06 3:14:42150 days 7 hrs ago0x5c6d4f634cdb03faeb3e5225b00b4529a2137fd9 IN  0xf40ced6869b9e35dff4ec04cc11c2c50619742fa0 CRO0.18315639503 4,926.340004594
0x6955fdbad69b69d3d0186a0011cdd3076e583b7f8729887443d124b7dc6753cdTransfer44175862022-08-31 15:19:49155 days 19 hrs ago0x724b9420e8374ddad3a29bde3d16ea97f8b98937 IN  0xf40ced6869b9e35dff4ec04cc11c2c50619742fa0 CRO0.242604398725 4,930.182058314
0x3134a66e2d0182980c02c44380c49696ad3049568fda0653ae5d18c4d0514018Transfer43882222022-08-29 17:08:45157 days 17 hrs ago0x037b3dafd4fdf0a81820f578e142ab4e39510c51 IN  0xf40ced6869b9e35dff4ec04cc11c2c50619742fa0 CRO0.303097519461 4,931.54227008
0xbfd2afca16f7250ace1b3012be56562c26138f66966a20162329f186c12cd722Transfer43410462022-08-26 15:03:06160 days 19 hrs ago0x87bcf1cf20ea8a30d86c05c096c2b07814d4cb77 IN  0xf40ced6869b9e35dff4ec04cc11c2c50619742fa60 CRO0.1035770101390
0x430d9117eda0b9661a1377e5638d9d78ce4383b4f2df028fcc30daadeb27ff79Transfer43410342022-08-26 15:01:58160 days 19 hrs ago0x87bcf1cf20ea8a30d86c05c096c2b07814d4cb77 IN  0xf40ced6869b9e35dff4ec04cc11c2c50619742fa100 CRO0.1035770226730
0xa015cfaddf74a2a7c16bf41058ad6b65bf36b37e04b91e8b4fdddbbd89110dfdTransfer43410232022-08-26 15:00:55160 days 19 hrs ago0x87bcf1cf20ea8a30d86c05c096c2b07814d4cb77 IN  0xf40ced6869b9e35dff4ec04cc11c2c50619742fa140 CRO0.1035770309630
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CPB

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at cronoscan.com on 2022-06-20
*/

// File: @openzeppelin/contracts/utils/introspection/IERC165.sol


// 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: @openzeppelin/contracts/utils/introspection/ERC165.sol


// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;


/**
 * @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: @openzeppelin/contracts/access/IAccessControl.sol


// 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: @openzeppelin/contracts/governance/utils/IVotes.sol


// OpenZeppelin Contracts (last updated v4.5.0) (governance/utils/IVotes.sol)
pragma solidity ^0.8.0;

/**
 * @dev Common interface for {ERC20Votes}, {ERC721Votes}, and other {Votes}-enabled contracts.
 *
 * _Available since v4.5._
 */
interface IVotes {
    /**
     * @dev Emitted when an account changes their delegate.
     */
    event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate);

    /**
     * @dev Emitted when a token transfer or delegate change results in changes to a delegate's number of votes.
     */
    event DelegateVotesChanged(address indexed delegate, uint256 previousBalance, uint256 newBalance);

    /**
     * @dev Returns the current amount of votes that `account` has.
     */
    function getVotes(address account) external view returns (uint256);

    /**
     * @dev Returns the amount of votes that `account` had at the end of a past block (`blockNumber`).
     */
    function getPastVotes(address account, uint256 blockNumber) external view returns (uint256);

    /**
     * @dev Returns the total supply of votes available at the end of a past block (`blockNumber`).
     *
     * NOTE: This value is the sum of all available votes, which is not necessarily the sum of all delegated votes.
     * Votes that have not been delegated are still part of total supply, even though they would not participate in a
     * vote.
     */
    function getPastTotalSupply(uint256 blockNumber) external view returns (uint256);

    /**
     * @dev Returns the delegate that `account` has chosen.
     */
    function delegates(address account) external view returns (address);

    /**
     * @dev Delegates votes from the sender to `delegatee`.
     */
    function delegate(address delegatee) external;

    /**
     * @dev Delegates votes from signer to `delegatee`.
     */
    function delegateBySig(
        address delegatee,
        uint256 nonce,
        uint256 expiry,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;
}

// File: @openzeppelin/contracts/utils/math/Math.sol


// OpenZeppelin Contracts (last updated v4.5.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

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

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

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

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

// File: @openzeppelin/contracts/utils/Counters.sol


// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

// File: @openzeppelin/contracts/utils/Strings.sol


// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

// File: @openzeppelin/contracts/utils/cryptography/ECDSA.sol


// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;


/**
 * @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) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        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.
            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 if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } 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: @openzeppelin/contracts/utils/cryptography/draft-EIP712.sol


// OpenZeppelin Contracts v4.4.1 (utils/cryptography/draft-EIP712.sol)

pragma solidity ^0.8.0;


/**
 * @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: @openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol


// 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);
}

// File: @openzeppelin/contracts/utils/Context.sol


// 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: @openzeppelin/contracts/access/AccessControl.sol


// OpenZeppelin Contracts (last updated v4.6.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;





/**
 * @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.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

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

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

        _revokeRole(role, account);
    }

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

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

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

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

// File: contracts/CPBAccessControls.sol

//SPDX-License-Identifier: Unlicense
pragma solidity >=0.8.0 <0.9.0;


/**
 * @notice Access Controls contract for CPB Staking
 * @author Querty
 */
contract CPBAccessControls is AccessControl {
    
    /// @notice Role definitions
    bytes32 public constant MINTER_ROLE = keccak256("CPB_MINTER_ROLE");
    bytes32 public constant SMART_CONTRACT_ROLE = keccak256("SMART_CONTRACT_ROLE");


    /// @notice Adding/Removing roles
    event AdminRoleGranted(address indexed beneficiary, address indexed caller);
    event AdminRoleRemoved(address indexed beneficiary, address indexed caller);

    event MinterRoleGranted(address indexed beneficiary, address indexed caller);
    event MinterRoleRemoved(address indexed beneficiary, address indexed caller);

    event SmartContractRoleGranted(address indexed beneficiary, address indexed caller);
    event SmartContractRoleRemoved(address indexed beneficiary, address indexed caller);

    /**
     * @notice Admin role granted automatically to deployer address
     */
     constructor() {
        _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
    }

    /**
     * @notice Check if an address has the admin role
     * @param _address EOA or contract being checked
     * @return bool True if the account has the role or false if it does not
     */
    function hasAdminRole(address _address) external view returns (bool) {
        return hasRole(DEFAULT_ADMIN_ROLE, _address);
    }

    /**
     * @notice Check if an address has the minter role
     * @param _address EOA or contract being checked
     * @return bool True if the account has the role or false if it does not
     */
    function hasMinterRole(address _address) external view returns (bool) {
        return hasRole(MINTER_ROLE, _address);
    }

    /**
     * @notice Check if an address has the SC role
     * @param _address EOA or contract being checked
     * @return bool True if the account has the role or false if it does not
     */
    function hasSmartContractRole(address _address) external view returns (bool) {
        return hasRole(SMART_CONTRACT_ROLE, _address);
    }

    /**
     * @notice Grants the admin role to an address
     * @dev The sender must have the admin role
     * @param _address EOA or contract receiving the new role
     */
    function addAdminRole(address _address) external {
        grantRole(DEFAULT_ADMIN_ROLE, _address);
        emit AdminRoleGranted(_address, _msgSender());
    }

    /**
     * @notice Removes the admin role from an address
     * @dev The sender must have the admin role
     * @param _address EOA or contract affected
     */
    function removeAdminRole(address _address) external {
        revokeRole(DEFAULT_ADMIN_ROLE, _address);
        emit AdminRoleRemoved(_address, _msgSender());
    }

    /**
     * @notice Grants the minter role to an address
     * @dev The sender must have the admin role
     * @param _address EOA or contract receiving the new role
     */
    function addMinterRole(address _address) external {
        grantRole(MINTER_ROLE, _address);
        emit MinterRoleGranted(_address, _msgSender());
    }

    /**
     * @notice Removes the minter role from an address
     * @dev The sender must have the admin role
     * @param _address EOA or contract affected
     */
    function removeMinterRole(address _address) external {
        revokeRole(MINTER_ROLE, _address);
        emit MinterRoleRemoved(_address, _msgSender());
    }

    /**
     * @notice Grants the smart contract role to an address
     * @dev The sender must have the admin role
     * @param _address EOA or contract receiving the new role
     */
    function addSmartContractRole(address _address) external {
        grantRole(SMART_CONTRACT_ROLE, _address);
        emit SmartContractRoleGranted(_address, _msgSender());
    }

    /**
     * @notice Removes the smart contract role from an address
     * @dev The sender must have the admin role
     * @param _address EOA or contract affected
     */
    function removeSmartContractRole(address _address) external {
        revokeRole(SMART_CONTRACT_ROLE, _address);
        emit SmartContractRoleRemoved(_address, _msgSender());
    }
}
// File: @openzeppelin/contracts/token/ERC20/IERC20.sol


// 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: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;


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

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

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

// File: @openzeppelin/contracts/token/ERC20/ERC20.sol


// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;




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

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

        return true;
    }

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

        _beforeTokenTransfer(from, to, amount);

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

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts/token/ERC20/extensions/draft-ERC20Permit.sol


// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/extensions/draft-ERC20Permit.sol)

pragma solidity ^0.8.0;






/**
 * @dev Implementation 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.
 *
 * _Available since v3.4._
 */
abstract contract ERC20Permit is ERC20, IERC20Permit, EIP712 {
    using Counters for Counters.Counter;

    mapping(address => Counters.Counter) private _nonces;

    // solhint-disable-next-line var-name-mixedcase
    bytes32 private constant _PERMIT_TYPEHASH =
        keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");
    /**
     * @dev In previous versions `_PERMIT_TYPEHASH` was declared as `immutable`.
     * However, to ensure consistency with the upgradeable transpiler, we will continue
     * to reserve a slot.
     * @custom:oz-renamed-from _PERMIT_TYPEHASH
     */
    // solhint-disable-next-line var-name-mixedcase
    bytes32 private _PERMIT_TYPEHASH_DEPRECATED_SLOT;

    /**
     * @dev Initializes the {EIP712} domain separator using the `name` parameter, and setting `version` to `"1"`.
     *
     * It's a good idea to use the same `name` that is defined as the ERC20 token name.
     */
    constructor(string memory name) EIP712(name, "1") {}

    /**
     * @dev See {IERC20Permit-permit}.
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public virtual override {
        require(block.timestamp <= deadline, "ERC20Permit: expired deadline");

        bytes32 structHash = keccak256(abi.encode(_PERMIT_TYPEHASH, owner, spender, value, _useNonce(owner), deadline));

        bytes32 hash = _hashTypedDataV4(structHash);

        address signer = ECDSA.recover(hash, v, r, s);
        require(signer == owner, "ERC20Permit: invalid signature");

        _approve(owner, spender, value);
    }

    /**
     * @dev See {IERC20Permit-nonces}.
     */
    function nonces(address owner) public view virtual override returns (uint256) {
        return _nonces[owner].current();
    }

    /**
     * @dev See {IERC20Permit-DOMAIN_SEPARATOR}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view override returns (bytes32) {
        return _domainSeparatorV4();
    }

    /**
     * @dev "Consume a nonce": return the current value and increment.
     *
     * _Available since v4.1._
     */
    function _useNonce(address owner) internal virtual returns (uint256 current) {
        Counters.Counter storage nonce = _nonces[owner];
        current = nonce.current();
        nonce.increment();
    }
}

// File: @openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol


// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol)

pragma solidity ^0.8.0;



/**
 * @dev Extension of {ERC20} that allows token holders to destroy both their own
 * tokens and those that they have an allowance for, in a way that can be
 * recognized off-chain (via event analysis).
 */
abstract contract ERC20Burnable is Context, ERC20 {
    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) public virtual {
        _burn(_msgSender(), amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, deducting from the caller's
     * allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for ``accounts``'s tokens of at least
     * `amount`.
     */
    function burnFrom(address account, uint256 amount) public virtual {
        _spendAllowance(account, _msgSender(), amount);
        _burn(account, amount);
    }
}

// File: @openzeppelin/contracts/utils/math/SafeCast.sol


// OpenZeppelin Contracts v4.4.1 (utils/math/SafeCast.sol)

pragma solidity ^0.8.0;

/**
 * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow
 * checks.
 *
 * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can
 * easily result in undesired exploitation or bugs, since developers usually
 * assume that overflows raise errors. `SafeCast` restores this intuition by
 * reverting the transaction when such an operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 *
 * Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing
 * all math on `uint256` and `int256` and then downcasting.
 */
library SafeCast {
    /**
     * @dev Returns the downcasted uint224 from uint256, reverting on
     * overflow (when the input is greater than largest uint224).
     *
     * Counterpart to Solidity's `uint224` operator.
     *
     * Requirements:
     *
     * - input must fit into 224 bits
     */
    function toUint224(uint256 value) internal pure returns (uint224) {
        require(value <= type(uint224).max, "SafeCast: value doesn't fit in 224 bits");
        return uint224(value);
    }

    /**
     * @dev Returns the downcasted uint128 from uint256, reverting on
     * overflow (when the input is greater than largest uint128).
     *
     * Counterpart to Solidity's `uint128` operator.
     *
     * Requirements:
     *
     * - input must fit into 128 bits
     */
    function toUint128(uint256 value) internal pure returns (uint128) {
        require(value <= type(uint128).max, "SafeCast: value doesn't fit in 128 bits");
        return uint128(value);
    }

    /**
     * @dev Returns the downcasted uint96 from uint256, reverting on
     * overflow (when the input is greater than largest uint96).
     *
     * Counterpart to Solidity's `uint96` operator.
     *
     * Requirements:
     *
     * - input must fit into 96 bits
     */
    function toUint96(uint256 value) internal pure returns (uint96) {
        require(value <= type(uint96).max, "SafeCast: value doesn't fit in 96 bits");
        return uint96(value);
    }

    /**
     * @dev Returns the downcasted uint64 from uint256, reverting on
     * overflow (when the input is greater than largest uint64).
     *
     * Counterpart to Solidity's `uint64` operator.
     *
     * Requirements:
     *
     * - input must fit into 64 bits
     */
    function toUint64(uint256 value) internal pure returns (uint64) {
        require(value <= type(uint64).max, "SafeCast: value doesn't fit in 64 bits");
        return uint64(value);
    }

    /**
     * @dev Returns the downcasted uint32 from uint256, reverting on
     * overflow (when the input is greater than largest uint32).
     *
     * Counterpart to Solidity's `uint32` operator.
     *
     * Requirements:
     *
     * - input must fit into 32 bits
     */
    function toUint32(uint256 value) internal pure returns (uint32) {
        require(value <= type(uint32).max, "SafeCast: value doesn't fit in 32 bits");
        return uint32(value);
    }

    /**
     * @dev Returns the downcasted uint16 from uint256, reverting on
     * overflow (when the input is greater than largest uint16).
     *
     * Counterpart to Solidity's `uint16` operator.
     *
     * Requirements:
     *
     * - input must fit into 16 bits
     */
    function toUint16(uint256 value) internal pure returns (uint16) {
        require(value <= type(uint16).max, "SafeCast: value doesn't fit in 16 bits");
        return uint16(value);
    }

    /**
     * @dev Returns the downcasted uint8 from uint256, reverting on
     * overflow (when the input is greater than largest uint8).
     *
     * Counterpart to Solidity's `uint8` operator.
     *
     * Requirements:
     *
     * - input must fit into 8 bits.
     */
    function toUint8(uint256 value) internal pure returns (uint8) {
        require(value <= type(uint8).max, "SafeCast: value doesn't fit in 8 bits");
        return uint8(value);
    }

    /**
     * @dev Converts a signed int256 into an unsigned uint256.
     *
     * Requirements:
     *
     * - input must be greater than or equal to 0.
     */
    function toUint256(int256 value) internal pure returns (uint256) {
        require(value >= 0, "SafeCast: value must be positive");
        return uint256(value);
    }

    /**
     * @dev Returns the downcasted int128 from int256, reverting on
     * overflow (when the input is less than smallest int128 or
     * greater than largest int128).
     *
     * Counterpart to Solidity's `int128` operator.
     *
     * Requirements:
     *
     * - input must fit into 128 bits
     *
     * _Available since v3.1._
     */
    function toInt128(int256 value) internal pure returns (int128) {
        require(value >= type(int128).min && value <= type(int128).max, "SafeCast: value doesn't fit in 128 bits");
        return int128(value);
    }

    /**
     * @dev Returns the downcasted int64 from int256, reverting on
     * overflow (when the input is less than smallest int64 or
     * greater than largest int64).
     *
     * Counterpart to Solidity's `int64` operator.
     *
     * Requirements:
     *
     * - input must fit into 64 bits
     *
     * _Available since v3.1._
     */
    function toInt64(int256 value) internal pure returns (int64) {
        require(value >= type(int64).min && value <= type(int64).max, "SafeCast: value doesn't fit in 64 bits");
        return int64(value);
    }

    /**
     * @dev Returns the downcasted int32 from int256, reverting on
     * overflow (when the input is less than smallest int32 or
     * greater than largest int32).
     *
     * Counterpart to Solidity's `int32` operator.
     *
     * Requirements:
     *
     * - input must fit into 32 bits
     *
     * _Available since v3.1._
     */
    function toInt32(int256 value) internal pure returns (int32) {
        require(value >= type(int32).min && value <= type(int32).max, "SafeCast: value doesn't fit in 32 bits");
        return int32(value);
    }

    /**
     * @dev Returns the downcasted int16 from int256, reverting on
     * overflow (when the input is less than smallest int16 or
     * greater than largest int16).
     *
     * Counterpart to Solidity's `int16` operator.
     *
     * Requirements:
     *
     * - input must fit into 16 bits
     *
     * _Available since v3.1._
     */
    function toInt16(int256 value) internal pure returns (int16) {
        require(value >= type(int16).min && value <= type(int16).max, "SafeCast: value doesn't fit in 16 bits");
        return int16(value);
    }

    /**
     * @dev Returns the downcasted int8 from int256, reverting on
     * overflow (when the input is less than smallest int8 or
     * greater than largest int8).
     *
     * Counterpart to Solidity's `int8` operator.
     *
     * Requirements:
     *
     * - input must fit into 8 bits.
     *
     * _Available since v3.1._
     */
    function toInt8(int256 value) internal pure returns (int8) {
        require(value >= type(int8).min && value <= type(int8).max, "SafeCast: value doesn't fit in 8 bits");
        return int8(value);
    }

    /**
     * @dev Converts an unsigned uint256 into a signed int256.
     *
     * Requirements:
     *
     * - input must be less than or equal to maxInt256.
     */
    function toInt256(uint256 value) internal pure returns (int256) {
        // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive
        require(value <= uint256(type(int256).max), "SafeCast: value doesn't fit in an int256");
        return int256(value);
    }
}

// File: @openzeppelin/contracts/token/ERC20/extensions/ERC20Votes.sol


// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Votes.sol)

pragma solidity ^0.8.0;






/**
 * @dev Extension of ERC20 to support Compound-like voting and delegation. This version is more generic than Compound's,
 * and supports token supply up to 2^224^ - 1, while COMP is limited to 2^96^ - 1.
 *
 * NOTE: If exact COMP compatibility is required, use the {ERC20VotesComp} variant of this module.
 *
 * This extension keeps a history (checkpoints) of each account's vote power. Vote power can be delegated either
 * by calling the {delegate} function directly, or by providing a signature to be used with {delegateBySig}. Voting
 * power can be queried through the public accessors {getVotes} and {getPastVotes}.
 *
 * By default, token balance does not account for voting power. This makes transfers cheaper. The downside is that it
 * requires users to delegate to themselves in order to activate checkpoints and have their voting power tracked.
 *
 * _Available since v4.2._
 */
abstract contract ERC20Votes is IVotes, ERC20Permit {
    struct Checkpoint {
        uint32 fromBlock;
        uint224 votes;
    }

    bytes32 private constant _DELEGATION_TYPEHASH =
        keccak256("Delegation(address delegatee,uint256 nonce,uint256 expiry)");

    mapping(address => address) private _delegates;
    mapping(address => Checkpoint[]) private _checkpoints;
    Checkpoint[] private _totalSupplyCheckpoints;

    /**
     * @dev Get the `pos`-th checkpoint for `account`.
     */
    function checkpoints(address account, uint32 pos) public view virtual returns (Checkpoint memory) {
        return _checkpoints[account][pos];
    }

    /**
     * @dev Get number of checkpoints for `account`.
     */
    function numCheckpoints(address account) public view virtual returns (uint32) {
        return SafeCast.toUint32(_checkpoints[account].length);
    }

    /**
     * @dev Get the address `account` is currently delegating to.
     */
    function delegates(address account) public view virtual override returns (address) {
        return _delegates[account];
    }

    /**
     * @dev Gets the current votes balance for `account`
     */
    function getVotes(address account) public view virtual override returns (uint256) {
        uint256 pos = _checkpoints[account].length;
        return pos == 0 ? 0 : _checkpoints[account][pos - 1].votes;
    }

    /**
     * @dev Retrieve the number of votes for `account` at the end of `blockNumber`.
     *
     * Requirements:
     *
     * - `blockNumber` must have been already mined
     */
    function getPastVotes(address account, uint256 blockNumber) public view virtual override returns (uint256) {
        require(blockNumber < block.number, "ERC20Votes: block not yet mined");
        return _checkpointsLookup(_checkpoints[account], blockNumber);
    }

    /**
     * @dev Retrieve the `totalSupply` at the end of `blockNumber`. Note, this value is the sum of all balances.
     * It is but NOT the sum of all the delegated votes!
     *
     * Requirements:
     *
     * - `blockNumber` must have been already mined
     */
    function getPastTotalSupply(uint256 blockNumber) public view virtual override returns (uint256) {
        require(blockNumber < block.number, "ERC20Votes: block not yet mined");
        return _checkpointsLookup(_totalSupplyCheckpoints, blockNumber);
    }

    /**
     * @dev Lookup a value in a list of (sorted) checkpoints.
     */
    function _checkpointsLookup(Checkpoint[] storage ckpts, uint256 blockNumber) private view returns (uint256) {
        // We run a binary search to look for the earliest checkpoint taken after `blockNumber`.
        //
        // During the loop, the index of the wanted checkpoint remains in the range [low-1, high).
        // With each iteration, either `low` or `high` is moved towards the middle of the range to maintain the invariant.
        // - If the middle checkpoint is after `blockNumber`, we look in [low, mid)
        // - If the middle checkpoint is before or equal to `blockNumber`, we look in [mid+1, high)
        // Once we reach a single value (when low == high), we've found the right checkpoint at the index high-1, if not
        // out of bounds (in which case we're looking too far in the past and the result is 0).
        // Note that if the latest checkpoint available is exactly for `blockNumber`, we end up with an index that is
        // past the end of the array, so we technically don't find a checkpoint after `blockNumber`, but it works out
        // the same.
        uint256 high = ckpts.length;
        uint256 low = 0;
        while (low < high) {
            uint256 mid = Math.average(low, high);
            if (ckpts[mid].fromBlock > blockNumber) {
                high = mid;
            } else {
                low = mid + 1;
            }
        }

        return high == 0 ? 0 : ckpts[high - 1].votes;
    }

    /**
     * @dev Delegate votes from the sender to `delegatee`.
     */
    function delegate(address delegatee) public virtual override {
        _delegate(_msgSender(), delegatee);
    }

    /**
     * @dev Delegates votes from signer to `delegatee`
     */
    function delegateBySig(
        address delegatee,
        uint256 nonce,
        uint256 expiry,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public virtual override {
        require(block.timestamp <= expiry, "ERC20Votes: signature expired");
        address signer = ECDSA.recover(
            _hashTypedDataV4(keccak256(abi.encode(_DELEGATION_TYPEHASH, delegatee, nonce, expiry))),
            v,
            r,
            s
        );
        require(nonce == _useNonce(signer), "ERC20Votes: invalid nonce");
        _delegate(signer, delegatee);
    }

    /**
     * @dev Maximum token supply. Defaults to `type(uint224).max` (2^224^ - 1).
     */
    function _maxSupply() internal view virtual returns (uint224) {
        return type(uint224).max;
    }

    /**
     * @dev Snapshots the totalSupply after it has been increased.
     */
    function _mint(address account, uint256 amount) internal virtual override {
        super._mint(account, amount);
        require(totalSupply() <= _maxSupply(), "ERC20Votes: total supply risks overflowing votes");

        _writeCheckpoint(_totalSupplyCheckpoints, _add, amount);
    }

    /**
     * @dev Snapshots the totalSupply after it has been decreased.
     */
    function _burn(address account, uint256 amount) internal virtual override {
        super._burn(account, amount);

        _writeCheckpoint(_totalSupplyCheckpoints, _subtract, amount);
    }

    /**
     * @dev Move voting power when tokens are transferred.
     *
     * Emits a {DelegateVotesChanged} event.
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual override {
        super._afterTokenTransfer(from, to, amount);

        _moveVotingPower(delegates(from), delegates(to), amount);
    }

    /**
     * @dev Change delegation for `delegator` to `delegatee`.
     *
     * Emits events {DelegateChanged} and {DelegateVotesChanged}.
     */
    function _delegate(address delegator, address delegatee) internal virtual {
        address currentDelegate = delegates(delegator);
        uint256 delegatorBalance = balanceOf(delegator);
        _delegates[delegator] = delegatee;

        emit DelegateChanged(delegator, currentDelegate, delegatee);

        _moveVotingPower(currentDelegate, delegatee, delegatorBalance);
    }

    function _moveVotingPower(
        address src,
        address dst,
        uint256 amount
    ) private {
        if (src != dst && amount > 0) {
            if (src != address(0)) {
                (uint256 oldWeight, uint256 newWeight) = _writeCheckpoint(_checkpoints[src], _subtract, amount);
                emit DelegateVotesChanged(src, oldWeight, newWeight);
            }

            if (dst != address(0)) {
                (uint256 oldWeight, uint256 newWeight) = _writeCheckpoint(_checkpoints[dst], _add, amount);
                emit DelegateVotesChanged(dst, oldWeight, newWeight);
            }
        }
    }

    function _writeCheckpoint(
        Checkpoint[] storage ckpts,
        function(uint256, uint256) view returns (uint256) op,
        uint256 delta
    ) private returns (uint256 oldWeight, uint256 newWeight) {
        uint256 pos = ckpts.length;
        oldWeight = pos == 0 ? 0 : ckpts[pos - 1].votes;
        newWeight = op(oldWeight, delta);

        if (pos > 0 && ckpts[pos - 1].fromBlock == block.number) {
            ckpts[pos - 1].votes = SafeCast.toUint224(newWeight);
        } else {
            ckpts.push(Checkpoint({fromBlock: SafeCast.toUint32(block.number), votes: SafeCast.toUint224(newWeight)}));
        }
    }

    function _add(uint256 a, uint256 b) private pure returns (uint256) {
        return a + b;
    }

    function _subtract(uint256 a, uint256 b) private pure returns (uint256) {
        return a - b;
    }
}

// File: contracts/CPB.sol


pragma solidity >=0.8.0 <0.9.0;






contract CPB is ERC20, ERC20Burnable, ERC20Permit, ERC20Votes {

    uint public CPBBurnedAmount;
    uint public MAX_SUPPLY = 610000000 * 10 ** 18;
    CPBAccessControls public accessControls;

    constructor(CPBAccessControls _accessControls) ERC20("Primate", "CPB") ERC20Permit("Primate") {
        accessControls =_accessControls;
    }

    modifier onlyMinter() {
        address _minter = msg.sender;
        require(
            accessControls.hasMinterRole(_minter),
            "Caller has not the minter role"
        );
        _;
    }

    function mint(address _to, uint256 _amount) public onlyMinter() {
        uint _supply = MAX_SUPPLY;
        require(
            balanceOf(address(this)) + _amount <= _supply, 
            "ERROR: MAX SUPPLY REACHED"
        );
        _mint(_to, _amount);
    }

    function decimals() public override pure returns(uint8) {
        return 18;
    }

    // The following functions are overrides required by Solidity.

    function _afterTokenTransfer(address _from, address _to, uint256 _amount) internal override(ERC20, ERC20Votes)
    {
        super._afterTokenTransfer(_from, _to, _amount);
    }

    function _mint(address _to, uint256 _amount) internal override(ERC20, ERC20Votes)
    {
        super._mint(_to, _amount);
    }

    function _burn(address _account, uint256 _amount) internal override(ERC20, ERC20Votes)
    {
        super._burn(_account, _amount);
        CPBBurnedAmount += _amount;
    }

    
}

Contract ABI

[{"inputs":[{"internalType":"contract CPBAccessControls","name":"_accessControls","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"delegator","type":"address"},{"indexed":true,"internalType":"address","name":"fromDelegate","type":"address"},{"indexed":true,"internalType":"address","name":"toDelegate","type":"address"}],"name":"DelegateChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"delegate","type":"address"},{"indexed":false,"internalType":"uint256","name":"previousBalance","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newBalance","type":"uint256"}],"name":"DelegateVotesChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"CPBBurnedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"accessControls","outputs":[{"internalType":"contract CPBAccessControls","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint32","name":"pos","type":"uint32"}],"name":"checkpoints","outputs":[{"components":[{"internalType":"uint32","name":"fromBlock","type":"uint32"},{"internalType":"uint224","name":"votes","type":"uint224"}],"internalType":"struct ERC20Votes.Checkpoint","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegatee","type":"address"}],"name":"delegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegatee","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"delegateBySig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"delegates","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getPastTotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getPastVotes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getVotes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"numCheckpoints","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

6101406040526b01f8948642c44e39a2000000600b553480156200002257600080fd5b50604051620022eb380380620022eb833981016040819052620000459162000250565b604051806040016040528060078152602001665072696d61746560c81b81525080604051806040016040528060018152602001603160f81b815250604051806040016040528060078152602001665072696d61746560c81b8152506040518060400160405280600381526020016221a82160e91b8152508160039080519060200190620000d4929190620001aa565b508051620000ea906004906020840190620001aa565b5050825160208085019190912083518483012060e08290526101008190524660a0818152604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81880181905281830187905260608201869052608082019490945230818401528151808203909301835260c0019052805194019390932091935091906080523060601b60c052610120525050600c80546001600160a01b0319166001600160a01b03959095169490941790935550620002bf915050565b828054620001b89062000282565b90600052602060002090601f016020900481019282620001dc576000855562000227565b82601f10620001f757805160ff191683800117855562000227565b8280016001018555821562000227579182015b82811115620002275782518255916020019190600101906200020a565b506200023592915062000239565b5090565b5b808211156200023557600081556001016200023a565b6000602082840312156200026357600080fd5b81516001600160a01b03811681146200027b57600080fd5b9392505050565b600181811c908216806200029757607f821691505b60208210811415620002b957634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160601c60e0516101005161012051611fd9620003126000396000611045015260006110940152600061106f01526000610fc801526000610ff20152600061101c0152611fd96000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c806370a08231116100f95780639eb9006811610097578063c3cda52011610071578063c3cda520146103db578063d505accf146103ee578063dd62ed3e14610401578063f1127ed81461041457600080fd5b80639eb90068146103ac578063a457c2d7146103b5578063a9059cbb146103c857600080fd5b80637ecebe00116100d35780637ecebe001461036b5780638e539e8c1461037e57806395d89b41146103915780639ab24eb01461039957600080fd5b806370a082311461031c578063748365ef1461034557806379cc67901461035857600080fd5b8063395093511161016657806342966c681161014057806342966c681461028a578063587cde1e1461029d5780635c19a95c146102e15780636fcfff45146102f457600080fd5b8063395093511461024f5780633a46b1a81461026257806340c10f191461027557600080fd5b806323b872dd116101a257806323b872dd1461021c578063313ce5671461022f57806332cb6b0c1461023e5780633644e5151461024757600080fd5b806306fdde03146101c9578063095ea7b3146101e757806318160ddd1461020a575b600080fd5b6101d1610451565b6040516101de9190611e86565b60405180910390f35b6101fa6101f5366004611d89565b6104e3565b60405190151581526020016101de565b6002545b6040519081526020016101de565b6101fa61022a366004611ce3565b6104fb565b604051601281526020016101de565b61020e600b5481565b61020e61051f565b6101fa61025d366004611d89565b61052e565b61020e610270366004611d89565b610550565b610288610283366004611d89565b6105cf565b005b610288610298366004611e6d565b610715565b6102c96102ab366004611c95565b6001600160a01b039081166000908152600760205260409020541690565b6040516001600160a01b0390911681526020016101de565b6102886102ef366004611c95565b610722565b610307610302366004611c95565b61072c565b60405163ffffffff90911681526020016101de565b61020e61032a366004611c95565b6001600160a01b031660009081526020819052604090205490565b600c546102c9906001600160a01b031681565b610288610366366004611d89565b610754565b61020e610379366004611c95565b61076d565b61020e61038c366004611e6d565b61078b565b6101d16107e7565b61020e6103a7366004611c95565b6107f6565b61020e600a5481565b6101fa6103c3366004611d89565b61087d565b6101fa6103d6366004611d89565b6108f8565b6102886103e9366004611db3565b610906565b6102886103fc366004611d1f565b610a3c565b61020e61040f366004611cb0565b610ba0565b610427610422366004611e0b565b610bcb565b60408051825163ffffffff1681526020928301516001600160e01b031692810192909252016101de565b60606003805461046090611f2c565b80601f016020809104026020016040519081016040528092919081815260200182805461048c90611f2c565b80156104d95780601f106104ae576101008083540402835291602001916104d9565b820191906000526020600020905b8154815290600101906020018083116104bc57829003601f168201915b5050505050905090565b6000336104f1818585610c4f565b5060019392505050565b600033610509858285610d73565b610514858585610de7565b506001949350505050565b6000610529610fbb565b905090565b6000336104f18185856105418383610ba0565b61054b9190611edb565b610c4f565b60004382106105a65760405162461bcd60e51b815260206004820152601f60248201527f4552433230566f7465733a20626c6f636b206e6f7420796574206d696e65640060448201526064015b60405180910390fd5b6001600160a01b03831660009081526008602052604090206105c890836110e2565b9392505050565b600c5460405163099db01760e01b81523360048201819052916001600160a01b03169063099db0179060240160206040518083038186803b15801561061357600080fd5b505afa158015610627573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061064b9190611e4b565b6106975760405162461bcd60e51b815260206004820152601e60248201527f43616c6c657220686173206e6f7420746865206d696e74657220726f6c650000604482015260640161059d565b600b543060009081526020819052604090205481906106b7908590611edb565b11156107055760405162461bcd60e51b815260206004820152601960248201527f4552524f523a204d415820535550504c59205245414348454400000000000000604482015260640161059d565b61070f848461119f565b50505050565b61071f33826111a9565b50565b61071f33826111ce565b6001600160a01b03811660009081526008602052604081205461074e90611247565b92915050565b61075f823383610d73565b61076982826111a9565b5050565b6001600160a01b03811660009081526005602052604081205461074e565b60004382106107dc5760405162461bcd60e51b815260206004820152601f60248201527f4552433230566f7465733a20626c6f636b206e6f7420796574206d696e656400604482015260640161059d565b61074e6009836110e2565b60606004805461046090611f2c565b6001600160a01b038116600090815260086020526040812054801561086a576001600160a01b0383166000908152600860205260409020610838600183611f15565b8154811061084857610848611f8d565b60009182526020909120015464010000000090046001600160e01b031661086d565b60005b6001600160e01b03169392505050565b6000338161088b8286610ba0565b9050838110156108eb5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161059d565b6105148286868403610c4f565b6000336104f1818585610de7565b834211156109565760405162461bcd60e51b815260206004820152601d60248201527f4552433230566f7465733a207369676e61747572652065787069726564000000604482015260640161059d565b604080517fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60208201526001600160a01b0388169181019190915260608101869052608081018590526000906109d0906109c89060a001604051602081830303815290604052805190602001206112b0565b8585856112fe565b90506109db81611326565b8614610a295760405162461bcd60e51b815260206004820152601960248201527f4552433230566f7465733a20696e76616c6964206e6f6e636500000000000000604482015260640161059d565b610a3381886111ce565b50505050505050565b83421115610a8c5760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e65000000604482015260640161059d565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9888888610abb8c611326565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090506000610b16826112b0565b90506000610b26828787876112fe565b9050896001600160a01b0316816001600160a01b031614610b895760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e61747572650000604482015260640161059d565b610b948a8a8a610c4f565b50505050505050505050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60408051808201909152600080825260208201526001600160a01b0383166000908152600860205260409020805463ffffffff8416908110610c0f57610c0f611f8d565b60009182526020918290206040805180820190915291015463ffffffff8116825264010000000090046001600160e01b0316918101919091529392505050565b6001600160a01b038316610cb15760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161059d565b6001600160a01b038216610d125760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161059d565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000610d7f8484610ba0565b9050600019811461070f5781811015610dda5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161059d565b61070f8484848403610c4f565b6001600160a01b038316610e4b5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161059d565b6001600160a01b038216610ead5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161059d565b6001600160a01b03831660009081526020819052604090205481811015610f255760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161059d565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610f5c908490611edb565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610fa891815260200190565b60405180910390a361070f848484611353565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614801561101457507f000000000000000000000000000000000000000000000000000000000000000046145b1561103e57507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b8154600090815b818110156111465760006110fd828461135e565b90508486828154811061111257611112611f8d565b60009182526020909120015463ffffffff16111561113257809250611140565b61113d816001611edb565b91505b506110e9565b811561118a5784611158600184611f15565b8154811061116857611168611f8d565b60009182526020909120015464010000000090046001600160e01b031661118d565b60005b6001600160e01b031695945050505050565b6107698282611379565b6111b38282611403565b80600a60008282546111c59190611edb565b90915550505050565b6001600160a01b038281166000818152600760208181526040808420805485845282862054949093528787166001600160a01b03198416811790915590519190951694919391928592917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a461070f82848361141b565b600063ffffffff8211156112ac5760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203360448201526532206269747360d01b606482015260840161059d565b5090565b600061074e6112bd610fbb565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b600080600061130f87878787611558565b9150915061131c81611645565b5095945050505050565b6001600160a01b03811660009081526005602052604090208054600181018255905b50919050565b505050565b61134e838383611800565b600061136d6002848418611ef3565b6105c890848416611edb565b6113838282611832565b6002546001600160e01b0310156113f55760405162461bcd60e51b815260206004820152603060248201527f4552433230566f7465733a20746f74616c20737570706c79207269736b73206f60448201526f766572666c6f77696e6720766f74657360801b606482015260840161059d565b61070f600961191983611925565b61140d8282611a9e565b61070f6009611bf383611925565b816001600160a01b0316836001600160a01b03161415801561143d5750600081115b1561134e576001600160a01b038316156114cb576001600160a01b0383166000908152600860205260408120819061147890611bf385611925565b91509150846001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a72483836040516114c0929190918252602082015260400190565b60405180910390a250505b6001600160a01b0382161561134e576001600160a01b038216600090815260086020526040812081906115019061191985611925565b91509150836001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248383604051611549929190918252602082015260400190565b60405180910390a25050505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561158f575060009050600361163c565b8460ff16601b141580156115a757508460ff16601c14155b156115b8575060009050600461163c565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561160c573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166116355760006001925092505061163c565b9150600090505b94509492505050565b600081600481111561165957611659611f77565b14156116625750565b600181600481111561167657611676611f77565b14156116c45760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161059d565b60028160048111156116d8576116d8611f77565b14156117265760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161059d565b600381600481111561173a5761173a611f77565b14156117935760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161059d565b60048160048111156117a7576117a7611f77565b141561071f5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161059d565b6001600160a01b0383811660009081526007602052604080822054858416835291205461134e9291821691168361141b565b6001600160a01b0382166118885760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161059d565b806002600082825461189a9190611edb565b90915550506001600160a01b038216600090815260208190526040812080548392906118c7908490611edb565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a361076960008383611353565b60006105c88284611edb565b825460009081908015611970578561193e600183611f15565b8154811061194e5761194e611f8d565b60009182526020909120015464010000000090046001600160e01b0316611973565b60005b6001600160e01b0316925061198c83858763ffffffff16565b91506000811180156119ca575043866119a6600184611f15565b815481106119b6576119b6611f8d565b60009182526020909120015463ffffffff16145b15611a2a576119d882611bff565b866119e4600184611f15565b815481106119f4576119f4611f8d565b9060005260206000200160000160046101000a8154816001600160e01b0302191690836001600160e01b03160217905550611a95565b856040518060400160405280611a3f43611247565b63ffffffff168152602001611a5385611bff565b6001600160e01b0390811690915282546001810184556000938452602093849020835194909301519091166401000000000263ffffffff909316929092179101555b50935093915050565b6001600160a01b038216611afe5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161059d565b6001600160a01b03821660009081526020819052604090205481811015611b725760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161059d565b6001600160a01b0383166000908152602081905260408120838303905560028054849290611ba1908490611f15565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a361134e83600084611353565b60006105c88284611f15565b60006001600160e01b038211156112ac5760405162461bcd60e51b815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e20326044820152663234206269747360c81b606482015260840161059d565b80356001600160a01b0381168114611c7f57600080fd5b919050565b803560ff81168114611c7f57600080fd5b600060208284031215611ca757600080fd5b6105c882611c68565b60008060408385031215611cc357600080fd5b611ccc83611c68565b9150611cda60208401611c68565b90509250929050565b600080600060608486031215611cf857600080fd5b611d0184611c68565b9250611d0f60208501611c68565b9150604084013590509250925092565b600080600080600080600060e0888a031215611d3a57600080fd5b611d4388611c68565b9650611d5160208901611c68565b95506040880135945060608801359350611d6d60808901611c84565b925060a0880135915060c0880135905092959891949750929550565b60008060408385031215611d9c57600080fd5b611da583611c68565b946020939093013593505050565b60008060008060008060c08789031215611dcc57600080fd5b611dd587611c68565b95506020870135945060408701359350611df160608801611c84565b92506080870135915060a087013590509295509295509295565b60008060408385031215611e1e57600080fd5b611e2783611c68565b9150602083013563ffffffff81168114611e4057600080fd5b809150509250929050565b600060208284031215611e5d57600080fd5b815180151581146105c857600080fd5b600060208284031215611e7f57600080fd5b5035919050565b600060208083528351808285015260005b81811015611eb357858101830151858201604001528201611e97565b81811115611ec5576000604083870101525b50601f01601f1916929092016040019392505050565b60008219821115611eee57611eee611f61565b500190565b600082611f1057634e487b7160e01b600052601260045260246000fd5b500490565b600082821015611f2757611f27611f61565b500390565b600181811c90821680611f4057607f821691505b6020821081141561134857634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fdfea264697066735822122057dd1cccc08b705495c6eba0647c91520c54eb53b4f48a69d9aec86f7adcec4364736f6c63430008070033000000000000000000000000ab4bf27bb1f1085621943071e7ae29e6cc9bbaed

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

000000000000000000000000ab4bf27bb1f1085621943071e7ae29e6cc9bbaed

-----Decoded View---------------
Arg [0] : _accessControls (address): 0xab4bf27bb1f1085621943071e7ae29e6cc9bbaed

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000ab4bf27bb1f1085621943071e7ae29e6cc9bbaed


Deployed ByteCode Sourcemap

80316:1531:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47543:100;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;49894:201;;;;;;:::i;:::-;;:::i;:::-;;;4140:14:1;;4133:22;4115:41;;4103:2;4088:18;49894:201:0;3975:187:1;48663:108:0;48751:12;;48663:108;;;4313:25:1;;;4301:2;4286:18;48663:108:0;4167:177:1;50675:295:0;;;;;;:::i;:::-;;:::i;81168:84::-;;;81242:2;17432:36:1;;17420:2;17405:18;81168:84:0;17290:184:1;80421:45:0;;;;;;61157:115;;;:::i;51379:238::-;;;;;;:::i;:::-;;:::i;73613:268::-;;;;;;:::i;:::-;;:::i;80890:270::-;;;;;;:::i;:::-;;:::i;:::-;;62207:91;;;;;;:::i;:::-;;:::i;72987:128::-;;;;;;:::i;:::-;-1:-1:-1;;;;;73088:19:0;;;73061:7;73088:19;;;:10;:19;;;;;;;;72987:128;;;;-1:-1:-1;;;;;3931:32:1;;;3913:51;;3901:2;3886:18;72987:128:0;3767:203:1;76086:114:0;;;;;;:::i;:::-;;:::i;72743:151::-;;;;;;:::i;:::-;;:::i;:::-;;;17267:10:1;17255:23;;;17237:42;;17225:2;17210:18;72743:151:0;17093:192:1;48834:127:0;;;;;;:::i;:::-;-1:-1:-1;;;;;48935:18:0;48908:7;48935:18;;;;;;;;;;;;48834:127;80473:39;;;;;-1:-1:-1;;;;;80473:39:0;;;62617:164;;;;;;:::i;:::-;;:::i;60899:128::-;;;;;;:::i;:::-;;:::i;74170:259::-;;;;;;:::i;:::-;;:::i;47762:104::-;;;:::i;73199:212::-;;;;;;:::i;:::-;;:::i;80387:27::-;;;;;;52120:436;;;;;;:::i;:::-;;:::i;49167:193::-;;;;;;:::i;:::-;;:::i;76282:591::-;;;;;;:::i;:::-;;:::i;60188:645::-;;;;;;:::i;:::-;;:::i;49423:151::-;;;;;;:::i;:::-;;:::i;72513:150::-;;;;;;:::i;:::-;;:::i;:::-;;;;16531:13:1;;16546:10;16527:30;16509:49;;16618:4;16606:17;;;16600:24;-1:-1:-1;;;;;16596:50:1;16574:20;;;16567:80;;;;16482:18;72513:150:0;16307:346:1;47543:100:0;47597:13;47630:5;47623:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47543:100;:::o;49894:201::-;49977:4;29322:10;50033:32;29322:10;50049:7;50058:6;50033:8;:32::i;:::-;-1:-1:-1;50083:4:0;;49894:201;-1:-1:-1;;;49894:201:0:o;50675:295::-;50806:4;29322:10;50864:38;50880:4;29322:10;50895:6;50864:15;:38::i;:::-;50913:27;50923:4;50929:2;50933:6;50913:9;:27::i;:::-;-1:-1:-1;50958:4:0;;50675:295;-1:-1:-1;;;;50675:295:0:o;61157:115::-;61217:7;61244:20;:18;:20::i;:::-;61237:27;;61157:115;:::o;51379:238::-;51467:4;29322:10;51523:64;29322:10;51539:7;51576:10;51548:25;29322:10;51539:7;51548:9;:25::i;:::-;:38;;;;:::i;:::-;51523:8;:64::i;73613:268::-;73711:7;73753:12;73739:11;:26;73731:70;;;;-1:-1:-1;;;73731:70:0;;8418:2:1;73731:70:0;;;8400:21:1;8457:2;8437:18;;;8430:30;8496:33;8476:18;;;8469:61;8547:18;;73731:70:0;;;;;;;;;-1:-1:-1;;;;;73838:21:0;;;;;;:12;:21;;;;;73819:54;;73861:11;73819:18;:54::i;:::-;73812:61;73613:268;-1:-1:-1;;;73613:268:0:o;80890:270::-;80767:14;;:37;;-1:-1:-1;;;80767:37:0;;80724:10;80767:37;;;3913:51:1;;;80724:10:0;-1:-1:-1;;;;;80767:14:0;;:28;;3886:18:1;;80767:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;80745:117;;;;-1:-1:-1;;;80745:117:0;;7655:2:1;80745:117:0;;;7637:21:1;7694:2;7674:18;;;7667:30;7733:32;7713:18;;;7706:60;7783:18;;80745:117:0;7453:354:1;80745:117:0;80980:10:::1;::::0;81041:4:::1;48908:7:::0;48935:18;;;;;;;;;;;80980:10;;81023:34:::1;::::0;81050:7;;81023:34:::1;:::i;:::-;:45;;81001:121;;;::::0;-1:-1:-1;;;81001:121:0;;15389:2:1;81001:121:0::1;::::0;::::1;15371:21:1::0;15428:2;15408:18;;;15401:30;15467:27;15447:18;;;15440:55;15512:18;;81001:121:0::1;15187:349:1::0;81001:121:0::1;81133:19;81139:3;81144:7;81133:5;:19::i;:::-;80954:206;80695:187:::0;80890:270;;:::o;62207:91::-;62263:27;29322:10;62283:6;62263:5;:27::i;:::-;62207:91;:::o;76086:114::-;76158:34;29322:10;76182:9;76158;:34::i;72743:151::-;-1:-1:-1;;;;;72857:21:0;;72813:6;72857:21;;;:12;:21;;;;;:28;72839:47;;:17;:47::i;:::-;72832:54;72743:151;-1:-1:-1;;72743:151:0:o;62617:164::-;62694:46;62710:7;29322:10;62733:6;62694:15;:46::i;:::-;62751:22;62757:7;62766:6;62751:5;:22::i;:::-;62617:164;;:::o;60899:128::-;-1:-1:-1;;;;;60995:14:0;;60968:7;60995:14;;;:7;:14;;;;;9408;60995:24;9316:114;74170:259;74257:7;74299:12;74285:11;:26;74277:70;;;;-1:-1:-1;;;74277:70:0;;8418:2:1;74277:70:0;;;8400:21:1;8457:2;8437:18;;;8430:30;8496:33;8476:18;;;8469:61;8547:18;;74277:70:0;8216:355:1;74277:70:0;74365:56;74384:23;74409:11;74365:18;:56::i;47762:104::-;47818:13;47851:7;47844:14;;;;;:::i;73199:212::-;-1:-1:-1;;;;;73306:21:0;;73272:7;73306:21;;;:12;:21;;;;;:28;73352:8;;:51;;-1:-1:-1;;;;;73367:21:0;;;;;;:12;:21;;;;;73389:7;73395:1;73389:3;:7;:::i;:::-;73367:30;;;;;;;;:::i;:::-;;;;;;;;;;:36;;;;-1:-1:-1;;;;;73367:36:0;73352:51;;;73363:1;73352:51;-1:-1:-1;;;;;73345:58:0;;73199:212;-1:-1:-1;;;73199:212:0:o;52120:436::-;52213:4;29322:10;52213:4;52296:25;29322:10;52313:7;52296:9;:25::i;:::-;52269:52;;52360:15;52340:16;:35;;52332:85;;;;-1:-1:-1;;;52332:85:0;;15743:2:1;52332:85:0;;;15725:21:1;15782:2;15762:18;;;15755:30;15821:34;15801:18;;;15794:62;-1:-1:-1;;;15872:18:1;;;15865:35;15917:19;;52332:85:0;15541:401:1;52332:85:0;52453:60;52462:5;52469:7;52497:15;52478:16;:34;52453:8;:60::i;49167:193::-;49246:4;29322:10;49302:28;29322:10;49319:2;49323:6;49302:9;:28::i;76282:591::-;76509:6;76490:15;:25;;76482:67;;;;-1:-1:-1;;;76482:67:0;;8778:2:1;76482:67:0;;;8760:21:1;8817:2;8797:18;;;8790:30;8856:31;8836:18;;;8829:59;8905:18;;76482:67:0;8576:353:1;76482:67:0;76632:58;;;72193:71;76632:58;;;5176:25:1;-1:-1:-1;;;;;5237:32:1;;5217:18;;;5210:60;;;;5286:18;;;5279:34;;;5329:18;;;5322:34;;;76560:14:0;;76577:174;;76605:87;;5148:19:1;;76632:58:0;;;;;;;;;;;;76622:69;;;;;;76605:16;:87::i;:::-;76707:1;76723;76739;76577:13;:174::i;:::-;76560:191;;76779:17;76789:6;76779:9;:17::i;:::-;76770:5;:26;76762:64;;;;-1:-1:-1;;;76762:64:0;;9899:2:1;76762:64:0;;;9881:21:1;9938:2;9918:18;;;9911:30;9977:27;9957:18;;;9950:55;10022:18;;76762:64:0;9697:349:1;76762:64:0;76837:28;76847:6;76855:9;76837;:28::i;:::-;76471:402;76282:591;;;;;;:::o;60188:645::-;60432:8;60413:15;:27;;60405:69;;;;-1:-1:-1;;;60405:69:0;;11014:2:1;60405:69:0;;;10996:21:1;11053:2;11033:18;;;11026:30;11092:31;11072:18;;;11065:59;11141:18;;60405:69:0;10812:353:1;60405:69:0;60487:18;59363:95;60547:5;60554:7;60563:5;60570:16;60580:5;60570:9;:16::i;:::-;60518:79;;;;;;4636:25:1;;;;-1:-1:-1;;;;;4735:15:1;;;4715:18;;;4708:43;4787:15;;;;4767:18;;;4760:43;4819:18;;;4812:34;4862:19;;;4855:35;4906:19;;;4899:35;;;4608:19;;60518:79:0;;;;;;;;;;;;60508:90;;;;;;60487:111;;60611:12;60626:28;60643:10;60626:16;:28::i;:::-;60611:43;;60667:14;60684:28;60698:4;60704:1;60707;60710;60684:13;:28::i;:::-;60667:45;;60741:5;-1:-1:-1;;;;;60731:15:0;:6;-1:-1:-1;;;;;60731:15:0;;60723:58;;;;-1:-1:-1;;;60723:58:0;;12585:2:1;60723:58:0;;;12567:21:1;12624:2;12604:18;;;12597:30;12663:32;12643:18;;;12636:60;12713:18;;60723:58:0;12383:354:1;60723:58:0;60794:31;60803:5;60810:7;60819:5;60794:8;:31::i;:::-;60394:439;;;60188:645;;;;;;;:::o;49423:151::-;-1:-1:-1;;;;;49539:18:0;;;49512:7;49539:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;49423:151::o;72513:150::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;72629:21:0;;;;;;:12;:21;;;;;:26;;;;;;;;;;;;:::i;:::-;;;;;;;;;;72622:33;;;;;;;;;72629:26;;72622:33;;;;;;;;;-1:-1:-1;;;;;72622:33:0;;;;;;;;;72513:150;-1:-1:-1;;;72513:150:0:o;55754:380::-;-1:-1:-1;;;;;55890:19:0;;55882:68;;;;-1:-1:-1;;;55882:68:0;;14984:2:1;55882:68:0;;;14966:21:1;15023:2;15003:18;;;14996:30;15062:34;15042:18;;;15035:62;-1:-1:-1;;;15113:18:1;;;15106:34;15157:19;;55882:68:0;14782:400:1;55882:68:0;-1:-1:-1;;;;;55969:21:0;;55961:68;;;;-1:-1:-1;;;55961:68:0;;10253:2:1;55961:68:0;;;10235:21:1;10292:2;10272:18;;;10265:30;10331:34;10311:18;;;10304:62;-1:-1:-1;;;10382:18:1;;;10375:32;10424:19;;55961:68:0;10051:398:1;55961:68:0;-1:-1:-1;;;;;56042:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;56094:32;;4313:25:1;;;56094:32:0;;4286:18:1;56094:32:0;;;;;;;55754:380;;;:::o;56425:453::-;56560:24;56587:25;56597:5;56604:7;56587:9;:25::i;:::-;56560:52;;-1:-1:-1;;56627:16:0;:37;56623:248;;56709:6;56689:16;:26;;56681:68;;;;-1:-1:-1;;;56681:68:0;;10656:2:1;56681:68:0;;;10638:21:1;10695:2;10675:18;;;10668:30;10734:31;10714:18;;;10707:59;10783:18;;56681:68:0;10454:353:1;56681:68:0;56793:51;56802:5;56809:7;56837:6;56818:16;:25;56793:8;:51::i;53035:671::-;-1:-1:-1;;;;;53166:18:0;;53158:68;;;;-1:-1:-1;;;53158:68:0;;14171:2:1;53158:68:0;;;14153:21:1;14210:2;14190:18;;;14183:30;14249:34;14229:18;;;14222:62;-1:-1:-1;;;14300:18:1;;;14293:35;14345:19;;53158:68:0;13969:401:1;53158:68:0;-1:-1:-1;;;;;53245:16:0;;53237:64;;;;-1:-1:-1;;;53237:64:0;;8014:2:1;53237:64:0;;;7996:21:1;8053:2;8033:18;;;8026:30;8092:34;8072:18;;;8065:62;-1:-1:-1;;;8143:18:1;;;8136:33;8186:19;;53237:64:0;7812:399:1;53237:64:0;-1:-1:-1;;;;;53387:15:0;;53365:19;53387:15;;;;;;;;;;;53421:21;;;;53413:72;;;;-1:-1:-1;;;53413:72:0;;11372:2:1;53413:72:0;;;11354:21:1;11411:2;11391:18;;;11384:30;11450:34;11430:18;;;11423:62;-1:-1:-1;;;11501:18:1;;;11494:36;11547:19;;53413:72:0;11170:402:1;53413:72:0;-1:-1:-1;;;;;53521:15:0;;;:9;:15;;;;;;;;;;;53539:20;;;53521:38;;53581:13;;;;;;;;:23;;53553:6;;53521:9;53581:23;;53553:6;;53581:23;:::i;:::-;;;;;;;;53637:2;-1:-1:-1;;;;;53622:26:0;53631:4;-1:-1:-1;;;;;53622:26:0;;53641:6;53622:26;;;;4313:25:1;;4301:2;4286:18;;4167:177;53622:26:0;;;;;;;;53661:37;53681:4;53687:2;53691:6;53661:19;:37::i;24797:314::-;24850:7;24882:4;-1:-1:-1;;;;;24891:12:0;24874:29;;:66;;;;;24924:16;24907:13;:33;24874:66;24870:234;;;-1:-1:-1;24964:24:0;;24797:314::o;24870:234::-;-1:-1:-1;25300:73:0;;;25050:10;25300:73;;;;5626:25:1;;;;25062:12:0;5667:18:1;;;5660:34;25076:15:0;5710:18:1;;;5703:34;25344:13:0;5753:18:1;;;5746:34;25367:4:0;5796:19:1;;;;5789:61;;;;25300:73:0;;;;;;;;;;5598:19:1;;;;25300:73:0;;;25290:84;;;;;;61157:115::o;74518:1482::-;75651:12;;74617:7;;;75700:236;75713:4;75707:3;:10;75700:236;;;75734:11;75748:23;75761:3;75766:4;75748:12;:23::i;:::-;75734:37;;75813:11;75790:5;75796:3;75790:10;;;;;;;;:::i;:::-;;;;;;;;;;:20;;;:34;75786:139;;;75852:3;75845:10;;75786:139;;;75902:7;:3;75908:1;75902:7;:::i;:::-;75896:13;;75786:139;75719:217;75700:236;;;75955:9;;:37;;75971:5;75977:8;75984:1;75977:4;:8;:::i;:::-;75971:15;;;;;;;;:::i;:::-;;;;;;;;;;:21;;;;-1:-1:-1;;;;;75971:21:0;75955:37;;;75967:1;75955:37;-1:-1:-1;;;;;75948:44:0;;74518:1482;-1:-1:-1;;;;;74518:1482:0:o;81519:131::-;81617:25;81629:3;81634:7;81617:11;:25::i;81658:178::-;81761:30;81773:8;81783:7;81761:11;:30::i;:::-;81821:7;81802:15;;:26;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;81658:178:0:o;78323:388::-;-1:-1:-1;;;;;73088:19:0;;;78408:23;73088:19;;;:10;:19;;;;;;;;;;48935:18;;;;;;;78523:21;;;;:33;;;-1:-1:-1;;;;;;78523:33:0;;;;;;;78574:54;;73088:19;;;;;48935:18;;78523:33;;73088:19;;;78574:54;;78408:23;78574:54;78641:62;78658:15;78675:9;78686:16;78641;:62::i;65953:190::-;66009:6;66045:16;66036:25;;;66028:76;;;;-1:-1:-1;;;66028:76:0;;14577:2:1;66028:76:0;;;14559:21:1;14616:2;14596:18;;;14589:30;14655:34;14635:18;;;14628:62;-1:-1:-1;;;14706:18:1;;;14699:36;14752:19;;66028:76:0;14375:402:1;66028:76:0;-1:-1:-1;66129:5:0;65953:190::o;26024:167::-;26101:7;26128:55;26150:20;:18;:20::i;:::-;26172:10;21494:57;;-1:-1:-1;;;21494:57:0;;;3628:27:1;3671:11;;;3664:27;;;3707:12;;;3700:28;;;21457:7:0;;3744:12:1;;21494:57:0;;;;;;;;;;;;21484:68;;;;;;21477:75;;21364:196;;;;;19673:279;19801:7;19822:17;19841:18;19863:25;19874:4;19880:1;19883;19886;19863:10;:25::i;:::-;19821:67;;;;19899:18;19911:5;19899:11;:18::i;:::-;-1:-1:-1;19935:9:0;19673:279;-1:-1:-1;;;;;19673:279:0:o;61410:207::-;-1:-1:-1;;;;;61531:14:0;;61470:15;61531:14;;;:7;:14;;;;;9408;;9545:1;9527:19;;;;9408:14;61592:17;61487:130;61410:207;;;:::o;57478:125::-;;;;:::o;81330:181::-;81457:46;81483:5;81490:3;81495:7;81457:25;:46::i;7877:156::-;7939:7;8014:11;8024:1;8015:5;;;8014:11;:::i;:::-;8004:21;;8005:5;;;8004:21;:::i;77179:290::-;77264:28;77276:7;77285:6;77264:11;:28::i;:::-;48751:12;;-1:-1:-1;;;;;;77311:29:0;77303:90;;;;-1:-1:-1;;;77303:90:0;;12944:2:1;77303:90:0;;;12926:21:1;12983:2;12963:18;;;12956:30;13022:34;13002:18;;;12995:62;-1:-1:-1;;;13073:18:1;;;13066:46;13129:19;;77303:90:0;12742:412:1;77303:90:0;77406:55;77423:23;77448:4;77454:6;77406:16;:55::i;77563:194::-;77648:28;77660:7;77669:6;77648:11;:28::i;:::-;77689:60;77706:23;77731:9;77742:6;77689:16;:60::i;78719:643::-;78851:3;-1:-1:-1;;;;;78844:10:0;:3;-1:-1:-1;;;;;78844:10:0;;;:24;;;;;78867:1;78858:6;:10;78844:24;78840:515;;;-1:-1:-1;;;;;78889:17:0;;;78885:224;;-1:-1:-1;;;;;78985:17:0;;78928;78985;;;:12;:17;;;;;78928;;78968:54;;79004:9;79015:6;78968:16;:54::i;:::-;78927:95;;;;79067:3;-1:-1:-1;;;;;79046:47:0;;79072:9;79083;79046:47;;;;;;17014:25:1;;;17070:2;17055:18;;17048:34;17002:2;16987:18;;16840:248;79046:47:0;;;;;;;;78908:201;;78885:224;-1:-1:-1;;;;;79129:17:0;;;79125:219;;-1:-1:-1;;;;;79225:17:0;;79168;79225;;;:12;:17;;;;;79168;;79208:49;;79244:4;79250:6;79208:16;:49::i;:::-;79167:90;;;;79302:3;-1:-1:-1;;;;;79281:47:0;;79307:9;79318;79281:47;;;;;;17014:25:1;;;17070:2;17055:18;;17048:34;17002:2;16987:18;;16840:248;79281:47:0;;;;;;;;79148:196;;78719:643;;;:::o;17902:1632::-;18033:7;;18967:66;18954:79;;18950:163;;;-1:-1:-1;19066:1:0;;-1:-1:-1;19070:30:0;19050:51;;18950:163;19127:1;:7;;19132:2;19127:7;;:18;;;;;19138:1;:7;;19143:2;19138:7;;19127:18;19123:102;;;-1:-1:-1;19178:1:0;;-1:-1:-1;19182:30:0;19162:51;;19123:102;19339:24;;;19322:14;19339:24;;;;;;;;;6088:25:1;;;6161:4;6149:17;;6129:18;;;6122:45;;;;6183:18;;;6176:34;;;6226:18;;;6219:34;;;19339:24:0;;6060:19:1;;19339:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;19339:24:0;;-1:-1:-1;;19339:24:0;;;-1:-1:-1;;;;;;;19378:20:0;;19374:103;;19431:1;19435:29;19415:50;;;;;;;19374:103;19497:6;-1:-1:-1;19505:20:0;;-1:-1:-1;17902:1632:0;;;;;;;;:::o;12611:643::-;12689:20;12680:5;:29;;;;;;;;:::i;:::-;;12676:571;;;12611:643;:::o;12676:571::-;12787:29;12778:5;:38;;;;;;;;:::i;:::-;;12774:473;;;12833:34;;-1:-1:-1;;;12833:34:0;;7302:2:1;12833:34:0;;;7284:21:1;7341:2;7321:18;;;7314:30;7380:26;7360:18;;;7353:54;7424:18;;12833:34:0;7100:348:1;12774:473:0;12898:35;12889:5;:44;;;;;;;;:::i;:::-;;12885:362;;;12950:41;;-1:-1:-1;;;12950:41:0;;9539:2:1;12950:41:0;;;9521:21:1;9578:2;9558:18;;;9551:30;9617:33;9597:18;;;9590:61;9668:18;;12950:41:0;9337:355:1;12885:362:0;13022:30;13013:5;:39;;;;;;;;:::i;:::-;;13009:238;;;13069:44;;-1:-1:-1;;;13069:44:0;;11779:2:1;13069:44:0;;;11761:21:1;11818:2;11798:18;;;11791:30;11857:34;11837:18;;;11830:62;-1:-1:-1;;;11908:18:1;;;11901:32;11950:19;;13069:44:0;11577:398:1;13009:238:0;13144:30;13135:5;:39;;;;;;;;:::i;:::-;;13131:116;;;13191:44;;-1:-1:-1;;;13191:44:0;;12182:2:1;13191:44:0;;;12164:21:1;12221:2;12201:18;;;12194:30;12260:34;12240:18;;;12233:62;-1:-1:-1;;;12311:18:1;;;12304:32;12353:19;;13191:44:0;11980:398:1;77897:262:0;-1:-1:-1;;;;;73088:19:0;;;73061:7;73088:19;;;:10;:19;;;;;;;;;;;;;;;78095:56;;73088:19;;;;;78144:6;78095:16;:56::i;53993:399::-;-1:-1:-1;;;;;54077:21:0;;54069:65;;;;-1:-1:-1;;;54069:65:0;;16149:2:1;54069:65:0;;;16131:21:1;16188:2;16168:18;;;16161:30;16227:33;16207:18;;;16200:61;16278:18;;54069:65:0;15947:355:1;54069:65:0;54225:6;54209:12;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;54242:18:0;;:9;:18;;;;;;;;;;:28;;54264:6;;54242:9;:28;;54264:6;;54242:28;:::i;:::-;;;;-1:-1:-1;;54286:37:0;;4313:25:1;;;-1:-1:-1;;;;;54286:37:0;;;54303:1;;54286:37;;4301:2:1;4286:18;54286:37:0;;;;;;;54336:48;54364:1;54368:7;54377:6;54336:19;:48::i;80023:98::-;80081:7;80108:5;80112:1;80108;:5;:::i;79370:645::-;79607:12;;79544:17;;;;79642:8;;:35;;79657:5;79663:7;79669:1;79663:3;:7;:::i;:::-;79657:14;;;;;;;;:::i;:::-;;;;;;;;;;:20;;;;-1:-1:-1;;;;;79657:20:0;79642:35;;;79653:1;79642:35;-1:-1:-1;;;;;79630:47:0;;;79700:20;79703:9;79714:5;79700:2;:20;;:::i;:::-;79688:32;;79743:1;79737:3;:7;:51;;;;-1:-1:-1;79776:12:0;79748:5;79754:7;79760:1;79754:3;:7;:::i;:::-;79748:14;;;;;;;;:::i;:::-;;;;;;;;;;:24;;;:40;79737:51;79733:275;;;79828:29;79847:9;79828:18;:29::i;:::-;79805:5;79811:7;79817:1;79811:3;:7;:::i;:::-;79805:14;;;;;;;;:::i;:::-;;;;;;;;:20;;;:52;;;;;-1:-1:-1;;;;;79805:52:0;;;;;-1:-1:-1;;;;;79805:52:0;;;;;;79733:275;;;79890:5;79901:94;;;;;;;;79924:31;79942:12;79924:17;:31::i;:::-;79901:94;;;;;;79964:29;79983:9;79964:18;:29::i;:::-;-1:-1:-1;;;;;79901:94:0;;;;;;79890:106;;;;;;;-1:-1:-1;79890:106:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;79733:275;79582:433;79370:645;;;;;;:::o;54725:591::-;-1:-1:-1;;;;;54809:21:0;;54801:67;;;;-1:-1:-1;;;54801:67:0;;13769:2:1;54801:67:0;;;13751:21:1;13808:2;13788:18;;;13781:30;13847:34;13827:18;;;13820:62;-1:-1:-1;;;13898:18:1;;;13891:31;13939:19;;54801:67:0;13567:397:1;54801:67:0;-1:-1:-1;;;;;54968:18:0;;54943:22;54968:18;;;;;;;;;;;55005:24;;;;54997:71;;;;-1:-1:-1;;;54997:71:0;;9136:2:1;54997:71:0;;;9118:21:1;9175:2;9155:18;;;9148:30;9214:34;9194:18;;;9187:62;-1:-1:-1;;;9265:18:1;;;9258:32;9307:19;;54997:71:0;8934:398:1;54997:71:0;-1:-1:-1;;;;;55104:18:0;;:9;:18;;;;;;;;;;55125:23;;;55104:44;;55170:12;:22;;55142:6;;55104:9;55170:22;;55142:6;;55170:22;:::i;:::-;;;;-1:-1:-1;;55210:37:0;;4313:25:1;;;55236:1:0;;-1:-1:-1;;;;;55210:37:0;;;;;4301:2:1;4286:18;55210:37:0;;;;;;;55260:48;55280:7;55297:1;55301:6;55260:19;:48::i;80129:103::-;80192:7;80219:5;80223:1;80219;:5;:::i;63983:195::-;64040:7;-1:-1:-1;;;;;64068:26:0;;;64060:78;;;;-1:-1:-1;;;64060:78:0;;13361:2:1;64060:78:0;;;13343:21:1;13400:2;13380:18;;;13373:30;13439:34;13419:18;;;13412:62;-1:-1:-1;;;13490:18:1;;;13483:37;13537:19;;64060:78:0;13159:403:1;14:173;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:70;;177:1;174;167:12;111:70;14:173;;;:::o;192:156::-;258:20;;318:4;307:16;;297:27;;287:55;;338:1;335;328:12;353:186;412:6;465:2;453:9;444:7;440:23;436:32;433:52;;;481:1;478;471:12;433:52;504:29;523:9;504:29;:::i;544:260::-;612:6;620;673:2;661:9;652:7;648:23;644:32;641:52;;;689:1;686;679:12;641:52;712:29;731:9;712:29;:::i;:::-;702:39;;760:38;794:2;783:9;779:18;760:38;:::i;:::-;750:48;;544:260;;;;;:::o;809:328::-;886:6;894;902;955:2;943:9;934:7;930:23;926:32;923:52;;;971:1;968;961:12;923:52;994:29;1013:9;994:29;:::i;:::-;984:39;;1042:38;1076:2;1065:9;1061:18;1042:38;:::i;:::-;1032:48;;1127:2;1116:9;1112:18;1099:32;1089:42;;809:328;;;;;:::o;1142:606::-;1253:6;1261;1269;1277;1285;1293;1301;1354:3;1342:9;1333:7;1329:23;1325:33;1322:53;;;1371:1;1368;1361:12;1322:53;1394:29;1413:9;1394:29;:::i;:::-;1384:39;;1442:38;1476:2;1465:9;1461:18;1442:38;:::i;:::-;1432:48;;1527:2;1516:9;1512:18;1499:32;1489:42;;1578:2;1567:9;1563:18;1550:32;1540:42;;1601:37;1633:3;1622:9;1618:19;1601:37;:::i;:::-;1591:47;;1685:3;1674:9;1670:19;1657:33;1647:43;;1737:3;1726:9;1722:19;1709:33;1699:43;;1142:606;;;;;;;;;;:::o;1753:254::-;1821:6;1829;1882:2;1870:9;1861:7;1857:23;1853:32;1850:52;;;1898:1;1895;1888:12;1850:52;1921:29;1940:9;1921:29;:::i;:::-;1911:39;1997:2;1982:18;;;;1969:32;;-1:-1:-1;;;1753:254:1:o;2012:531::-;2114:6;2122;2130;2138;2146;2154;2207:3;2195:9;2186:7;2182:23;2178:33;2175:53;;;2224:1;2221;2214:12;2175:53;2247:29;2266:9;2247:29;:::i;:::-;2237:39;;2323:2;2312:9;2308:18;2295:32;2285:42;;2374:2;2363:9;2359:18;2346:32;2336:42;;2397:36;2429:2;2418:9;2414:18;2397:36;:::i;:::-;2387:46;;2480:3;2469:9;2465:19;2452:33;2442:43;;2532:3;2521:9;2517:19;2504:33;2494:43;;2012:531;;;;;;;;:::o;2548:350::-;2615:6;2623;2676:2;2664:9;2655:7;2651:23;2647:32;2644:52;;;2692:1;2689;2682:12;2644:52;2715:29;2734:9;2715:29;:::i;:::-;2705:39;;2794:2;2783:9;2779:18;2766:32;2838:10;2831:5;2827:22;2820:5;2817:33;2807:61;;2864:1;2861;2854:12;2807:61;2887:5;2877:15;;;2548:350;;;;;:::o;2903:277::-;2970:6;3023:2;3011:9;3002:7;2998:23;2994:32;2991:52;;;3039:1;3036;3029:12;2991:52;3071:9;3065:16;3124:5;3117:13;3110:21;3103:5;3100:32;3090:60;;3146:1;3143;3136:12;3185:180;3244:6;3297:2;3285:9;3276:7;3272:23;3268:32;3265:52;;;3313:1;3310;3303:12;3265:52;-1:-1:-1;3336:23:1;;3185:180;-1:-1:-1;3185:180:1:o;6498:597::-;6610:4;6639:2;6668;6657:9;6650:21;6700:6;6694:13;6743:6;6738:2;6727:9;6723:18;6716:34;6768:1;6778:140;6792:6;6789:1;6786:13;6778:140;;;6887:14;;;6883:23;;6877:30;6853:17;;;6872:2;6849:26;6842:66;6807:10;;6778:140;;;6936:6;6933:1;6930:13;6927:91;;;7006:1;7001:2;6992:6;6981:9;6977:22;6973:31;6966:42;6927:91;-1:-1:-1;7079:2:1;7058:15;-1:-1:-1;;7054:29:1;7039:45;;;;7086:2;7035:54;;6498:597;-1:-1:-1;;;6498:597:1:o;17479:128::-;17519:3;17550:1;17546:6;17543:1;17540:13;17537:39;;;17556:18;;:::i;:::-;-1:-1:-1;17592:9:1;;17479:128::o;17612:217::-;17652:1;17678;17668:132;;17722:10;17717:3;17713:20;17710:1;17703:31;17757:4;17754:1;17747:15;17785:4;17782:1;17775:15;17668:132;-1:-1:-1;17814:9:1;;17612:217::o;17834:125::-;17874:4;17902:1;17899;17896:8;17893:34;;;17907:18;;:::i;:::-;-1:-1:-1;17944:9:1;;17834:125::o;17964:380::-;18043:1;18039:12;;;;18086;;;18107:61;;18161:4;18153:6;18149:17;18139:27;;18107:61;18214:2;18206:6;18203:14;18183:18;18180:38;18177:161;;;18260:10;18255:3;18251:20;18248:1;18241:31;18295:4;18292:1;18285:15;18323:4;18320:1;18313:15;18349:127;18410:10;18405:3;18401:20;18398:1;18391:31;18441:4;18438:1;18431:15;18465:4;18462:1;18455:15;18481:127;18542:10;18537:3;18533:20;18530:1;18523:31;18573:4;18570:1;18563:15;18597:4;18594:1;18587:15;18613:127;18674:10;18669:3;18665:20;18662:1;18655:31;18705:4;18702:1;18695:15;18729:4;18726:1;18719:15

Swarm Source

ipfs://57dd1cccc08b705495c6eba0647c91520c54eb53b4f48a69d9aec86f7adcec43
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.