Contract 0xE1C110E1B1b4A1deD0cAf3E42BfBdbB7b5d7cE1C 8

Txn Hash Method
Block
From
To
Value [Txn Fee]
0xbdf85b00d8d474d6337d25acdf5a70378a9cb40542e2567eb94c435cb92149b1Approve92995992021-10-21 5:05:576 hrs 29 mins ago0xf5fd328aa8589dc5c81627fc7024f65b96860188 IN  0xe1c110e1b1b4a1ded0caf3e42bfbdbb7b5d7ce1c0 HT0.0001397913
0x8e1642823197f2aa0b7d39cc42afa68d91f0e46384e56882647cc33d67f84db8Approve92924972021-10-20 23:10:5112 hrs 24 mins ago0x44eda39d3cbcb04c90acd211aa20f8aa0cb99b58 IN  0xe1c110e1b1b4a1ded0caf3e42bfbdbb7b5d7ce1c0 HT0.00010489725 2.25
0x28c925aee8d9b36e8fe4360e5d5ce695ac025558c8fa100c3769469416336befApprove92912312021-10-20 22:07:3313 hrs 28 mins ago0x9992e717677fe655c522dbc38103ca1a24862c25 IN  0xe1c110e1b1b4a1ded0caf3e42bfbdbb7b5d7ce1c0 HT0.00010489725 2.25
0x585544a263a31fdb5463843f099afb07149bbddd5499a9d3325c2d13813423c5Approve92866422021-10-20 18:18:0617 hrs 17 mins ago0x78298487706051b52d7e2beb9bea248d71a2973c IN  0xe1c110e1b1b4a1ded0caf3e42bfbdbb7b5d7ce1c0 HT0.00010489725 2.25
0xd8f1227239389fcf094de5f00c4920e82097ccc3858f5273ccf212e2708c675aApprove92864952021-10-20 18:10:4517 hrs 25 mins ago0x774f10750fe3e8be3e031ccf4a26f7317760a2c8 IN  0xe1c110e1b1b4a1ded0caf3e42bfbdbb7b5d7ce1c0 HT0.000073011 3
0xf19a15b9dd101b992937770eac70cc502cace5857c5a09d3f05f0d3734a0c86dApprove92809392021-10-20 13:32:5722 hrs 2 mins ago0xa3564954b55029ff52ab0dc898eba6c6413e1653 IN  0xe1c110e1b1b4a1ded0caf3e42bfbdbb7b5d7ce1c0 HT0.00010489725 2.25
0x78f99c120b22ca8bd9f1eed15c929e706e0fe1070cc6993d346cc7fcec276c01Approve92785212021-10-20 11:32:021 day 3 mins ago0x8bf99e2f55ed90bdc40d3cf668bee3a4a12fc754 IN  0xe1c110e1b1b4a1ded0caf3e42bfbdbb7b5d7ce1c0 HT0.00010489725 2.25
0x4e38178b8e682474200e042b5ce04bffc2f790c830ac442d5aae7054555997d6Approve92784912021-10-20 11:30:321 day 5 mins ago0x8bf99e2f55ed90bdc40d3cf668bee3a4a12fc754 IN  0xe1c110e1b1b4a1ded0caf3e42bfbdbb7b5d7ce1c0 HT0.00010489725 2.25
0xd0391773b36ac9a9d1c2d9102d06a6919b2ac252e2f5ecd7eac1711cde0c996aApprove92664402021-10-20 1:27:591 day 10 hrs ago0x2e665cd2fcca29e638469281015a846221dd2a19 IN  0xe1c110e1b1b4a1ded0caf3e42bfbdbb7b5d7ce1c0 HT0.00010489725 2.25
0xc1cf108fcbdb5a72fbe2b47d588f1f115d9fa3098cd5a92ce3b5d921718bac68Approve92652872021-10-20 0:30:201 day 11 hrs ago0xd28731f314357b40b1ae1e12e5cdef6bd33fe63f IN  0xe1c110e1b1b4a1ded0caf3e42bfbdbb7b5d7ce1c0 HT0.00010489725 2.25
0x4504b041aaeab5afbb50cde9d44b9ddc1013e967c2e73c909ca5a7d2c702b8a9Approve92607782021-10-19 20:44:531 day 14 hrs ago0x4e93fa03afbae1d171189be4878a101113499a7f IN  0xe1c110e1b1b4a1ded0caf3e42bfbdbb7b5d7ce1c0 HT0.00010489725 2.25
0x34cfc0988802dfe14f9561b17004dc10e60c54ddc8c70916aaa2bf69cb18b0d4Approve92604012021-10-19 20:26:021 day 15 hrs ago0x048cf49c28ad745ba86c2800d444389abe9c007a IN  0xe1c110e1b1b4a1ded0caf3e42bfbdbb7b5d7ce1c0 HT0.00010489725 2.25
0x85308452ead190c4f5bd66ae67d0d87069ce9506c1af758ecd8749d18f833ebfApprove92560372021-10-19 16:47:481 day 18 hrs ago0xc2c7f4266e96f8bf6eebf06983a8ab11035e469d IN  0xe1c110e1b1b4a1ded0caf3e42bfbdbb7b5d7ce1c0 HT0.00010489725 2.25
0x6bf75f89a2e04ff2c3ab450d28291f8a229fad598a4f45a20acb11ca36050ff0Transfer92552762021-10-19 16:09:451 day 19 hrs ago0x3f36bf311148c319c88446cb07032b6fce5f9430 IN  0xe1c110e1b1b4a1ded0caf3e42bfbdbb7b5d7ce1c0 HT0.00008885925 2.25
0xba1b53a626dd170d4d90c15251a39195c63eaf744a992b1e50b9b058f36f99eaApprove92541292021-10-19 15:12:241 day 20 hrs ago0xacedd0a9945ca2c2b56cad648de82708108dfa6f IN  0xe1c110e1b1b4a1ded0caf3e42bfbdbb7b5d7ce1c0 HT0.00010489725 2.25
0x583823f94330938356c3289a1043a32684f720672a4c9a3bcdd0826fbedc28a5Approve92365792021-10-19 0:34:532 days 11 hrs ago0xfa91815214c738016fe800a3ffca9f5ca76225c9 IN  0xe1c110e1b1b4a1ded0caf3e42bfbdbb7b5d7ce1c0 HT0.00011649252.5
0x20c641d88107521f6d75322595f295ae4c3a59449f41c972646f5a20962693c7Approve92331522021-10-18 21:43:322 days 13 hrs ago0xbe93d14c5defb8f41af8fb092f58e3c71c712b85 IN  0xe1c110e1b1b4a1ded0caf3e42bfbdbb7b5d7ce1c0 HT0.00010489725 2.25
0x3bc409188f50f9633258ba9c09dcf55399945b0a2f0fce46db159180e4e9f4a5Approve92322842021-10-18 21:00:082 days 14 hrs ago0x01a454a576b5475cd677c1019827403b0fcad92b IN  0xe1c110e1b1b4a1ded0caf3e42bfbdbb7b5d7ce1c0 HT0.000104843252.25
0xc84f415ff9b9220573f0c143225f6619decbaad2aa2630c5230f7877020a4b59Approve92318482021-10-18 20:38:202 days 14 hrs ago0xdd97e7ffb2ae6d44c5b864aa79cc7fdc3aa97f1f IN  0xe1c110e1b1b4a1ded0caf3e42bfbdbb7b5d7ce1c0 HT0.00010489725 2.25
0x8a4e05008c23abfcc7441793dff9b9448e1b02d752d829befced070b879b7332Approve92274892021-10-18 17:00:232 days 18 hrs ago0xc28e85aa96459f2104ac5d73f469dd32ecc6fa10 IN  0xe1c110e1b1b4a1ded0caf3e42bfbdbb7b5d7ce1c0 HT0.000104897252.25
0x293c5ce313f4fbbb85d93b95f68b8748eb7db37a3ed427899a7749f466d302c9Approve92238182021-10-18 13:56:492 days 21 hrs ago0x6d77d2ca287a7c8cd95eb4f378e95f770c420bda IN  0xe1c110e1b1b4a1ded0caf3e42bfbdbb7b5d7ce1c0 HT0.000151906223.26
0x2943fae319020e2632bde9e35ff53a05292e4cb32cc6cbceaafcb59c3ca01b1bApprove92236002021-10-18 13:45:552 days 21 hrs ago0x54df625c4ebbdcc640e5a4b54729419e27c702f9 IN  0xe1c110e1b1b4a1ded0caf3e42bfbdbb7b5d7ce1c0 HT0.00011649252.5
0x664447af1f2bab801bf985b9e0bb618270eb35959bcea0f32bff865a0d4fd514Approve92231602021-10-18 13:23:502 days 22 hrs ago0x5d137074c91bc15e7f7cd619a733a3b28aa78856 IN  0xe1c110e1b1b4a1ded0caf3e42bfbdbb7b5d7ce1c0 HT0.00010489725 2.25
0xb8505e2006a94d83b61fb869a9fffe685a82be6143ef9acdbb32637c646d2b8bApprove92214012021-10-18 11:55:522 days 23 hrs ago0xca79ddb6a65b3c3af58a372b33c3d7eef8c4ebc4 IN  0xe1c110e1b1b4a1ded0caf3e42bfbdbb7b5d7ce1c0 HT0.00010484325 2.25
0xb1d9db3c5c39e31959b81dc7b2bf683ba5a77796aacbf51da0f38e88f4734d22Transfer92084252021-10-18 1:07:043 days 10 hrs ago0x33510ba8618f8a34b7119ae19fc37a423bb95291 IN  0xe1c110e1b1b4a1ded0caf3e42bfbdbb7b5d7ce1c0 HT0.000099686252.25
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Elk

Compiler Version
v0.8.5+commit.a4f2e591

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at hecoinfo.com on 2021-09-03
*/

// File: https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/release-v4.1/contracts/utils/math/SafeMath.sol



pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

// File: https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/release-v4.1/contracts/utils/structs/EnumerableSet.sol



pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;

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

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

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

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

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

            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            bytes32 lastvalue = set._values[lastIndex];

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

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

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

            return true;
        } else {
            return false;
        }
    }

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

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

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

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

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

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

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

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

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

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

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

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

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

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

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


    // UintSet

    struct UintSet {
        Set _inner;
    }

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

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

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

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

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

// File: https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/release-v4.1/contracts/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: https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/release-v4.1/contracts/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: https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/release-v4.1/contracts/utils/Strings.sol



pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant alphabet = "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] = alphabet[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

}

// File: https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/release-v4.1/contracts/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) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

// File: https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/release-v4.1/contracts/access/AccessControl.sol



pragma solidity ^0.8.0;




/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    function hasRole(bytes32 role, address account) external view returns (bool);
    function getRoleAdmin(bytes32 role) external view returns (bytes32);
    function grantRole(bytes32 role, address account) external;
    function revokeRole(bytes32 role, address account) external;
    function renounceRole(bytes32 role, address account) external;
}

/**
 * @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 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 {_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 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]{20}) is missing role (0x[0-9a-f]{32})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role, _msgSender());
        _;
    }

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

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

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{20}) is missing role (0x[0-9a-f]{32})$/
     */
    function _checkRole(bytes32 role, address account) internal view {
        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 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 granted `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}.
     * ====
     */
    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 {
        emit RoleAdminChanged(role, getRoleAdmin(role), adminRole);
        _roles[role].adminRole = adminRole;
    }

    function _grantRole(bytes32 role, address account) private {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    function _revokeRole(bytes32 role, address account) private {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

// File: https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/release-v4.1/contracts/access/AccessControlEnumerable.sol



pragma solidity ^0.8.0;



/**
 * @dev External interface of AccessControlEnumerable declared to support ERC165 detection.
 */
interface IAccessControlEnumerable {
    function getRoleMember(bytes32 role, uint256 index) external view returns (address);
    function getRoleMemberCount(bytes32 role) external view returns (uint256);
}

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

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

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

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

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

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

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

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

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

// File: https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/release-v4.1/contracts/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 {
    /**
     * @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) {
        // Divide the signature in r, s and v variables
        bytes32 r;
        bytes32 s;
        uint8 v;

        // 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) {
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            // solhint-disable-next-line no-inline-assembly
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
        } else if (signature.length == 64) {
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            // solhint-disable-next-line no-inline-assembly
            assembly {
                let vs := mload(add(signature, 0x40))
                r := mload(add(signature, 0x20))
                s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
                v := add(shr(255, vs), 27)
            }
        } else {
            revert("ECDSA: invalid signature length");
        }

        return recover(hash, v, r, s);
    }

    /**
     * @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) {
        // 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 (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): 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.
        require(uint256(s) <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0, "ECDSA: invalid signature 's' value");
        require(v == 27 || v == 28, "ECDSA: invalid signature 'v' value");

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        require(signer != address(0), "ECDSA: invalid signature");

        return signer;
    }

    /**
     * @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 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: https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/release-v4.1/contracts/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;

    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);
        _TYPE_HASH = typeHash;
    }

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

    function _buildDomainSeparator(bytes32 typeHash, bytes32 name, bytes32 version) private view returns (bytes32) {
        return keccak256(
            abi.encode(
                typeHash,
                name,
                version,
                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: https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/release-v4.1/contracts/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: https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/release-v4.1/contracts/token/ERC20/IERC20.sol



pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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 `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, 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 `sender` to `recipient` 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 sender, address recipient, uint256 amount) external returns (bool);

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

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

// File: https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/release-v4.1/contracts/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: https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/release-v4.1/contracts/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 guidelines: functions revert instead
 * of 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 defaut 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:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, 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}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), 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}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        _approve(sender, _msgSender(), currentAllowance - 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) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][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) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        _approve(_msgSender(), spender, currentAllowance - subtractedValue);

        return true;
    }

    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is 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:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(address sender, address recipient, uint256 amount) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        _balances[sender] = senderBalance - amount;
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, 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:
     *
     * - `to` 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);
    }

    /**
     * @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");
        _balances[account] = accountBalance - amount;
        _totalSupply -= amount;

        emit Transfer(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 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 to 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 { }
}

// File: https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/release-v4.1/contracts/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 immutable _PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");

    /**
     * @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 {
        // solhint-disable-next-line not-rely-on-time
        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: https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/release-v4.1/contracts/utils/Counters.sol



pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented or decremented by one. 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;
        }
    }
}

// File: https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/release-v4.1/contracts/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, so we distribute
        return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2);
    }
}

// File: https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/release-v4.1/contracts/utils/Arrays.sol



pragma solidity ^0.8.0;


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

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

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

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

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

// File: https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/release-v4.1/contracts/token/ERC20/extensions/ERC20Snapshot.sol



pragma solidity ^0.8.0;




/**
 * @dev This contract extends an ERC20 token with a snapshot mechanism. When a snapshot is created, the balances and
 * total supply at the time are recorded for later access.
 *
 * This can be used to safely create mechanisms based on token balances such as trustless dividends or weighted voting.
 * In naive implementations it's possible to perform a "double spend" attack by reusing the same balance from different
 * accounts. By using snapshots to calculate dividends or voting power, those attacks no longer apply. It can also be
 * used to create an efficient ERC20 forking mechanism.
 *
 * Snapshots are created by the internal {_snapshot} function, which will emit the {Snapshot} event and return a
 * snapshot id. To get the total supply at the time of a snapshot, call the function {totalSupplyAt} with the snapshot
 * id. To get the balance of an account at the time of a snapshot, call the {balanceOfAt} function with the snapshot id
 * and the account address.
 *
 * ==== Gas Costs
 *
 * Snapshots are efficient. Snapshot creation is _O(1)_. Retrieval of balances or total supply from a snapshot is _O(log
 * n)_ in the number of snapshots that have been created, although _n_ for a specific account will generally be much
 * smaller since identical balances in subsequent snapshots are stored as a single entry.
 *
 * There is a constant overhead for normal ERC20 transfers due to the additional snapshot bookkeeping. This overhead is
 * only significant for the first transfer that immediately follows a snapshot for a particular account. Subsequent
 * transfers will have normal cost until the next snapshot, and so on.
 */
abstract contract ERC20Snapshot is ERC20 {
    // Inspired by Jordi Baylina's MiniMeToken to record historical balances:
    // https://github.com/Giveth/minimd/blob/ea04d950eea153a04c51fa510b068b9dded390cb/contracts/MiniMeToken.sol

    using Arrays for uint256[];
    using Counters for Counters.Counter;

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

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

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

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

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

        uint256 currentId = _currentSnapshotId.current();
        emit Snapshot(currentId);
        return currentId;
    }

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

        return snapshotted ? value : balanceOf(account);
    }

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

        return snapshotted ? value : totalSupply();
    }


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

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

    function _valueAt(uint256 snapshotId, Snapshots storage snapshots)
        private view returns (bool, uint256)
    {
        require(snapshotId > 0, "ERC20Snapshot: id is 0");
        // solhint-disable-next-line max-line-length
        require(snapshotId <= _currentSnapshotId.current(), "ERC20Snapshot: nonexistent id");

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

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

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

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

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

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

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

// File: https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/release-v4.1/contracts/security/Pausable.sol



pragma solidity ^0.8.0;


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

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

    bool private _paused;

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

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

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

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

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

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

// File: https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/release-v4.1/contracts/token/ERC20/extensions/ERC20Pausable.sol



pragma solidity ^0.8.0;



/**
 * @dev ERC20 token with pausable token transfers, minting and burning.
 *
 * Useful for scenarios such as preventing trades until the end of an evaluation
 * period, or having an emergency switch for freezing all token transfers in the
 * event of a large bug.
 */
abstract contract ERC20Pausable is ERC20, Pausable {
    /**
     * @dev See {ERC20-_beforeTokenTransfer}.
     *
     * Requirements:
     *
     * - the contract must not be paused.
     */
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override {
        super._beforeTokenTransfer(from, to, amount);

        require(!paused(), "ERC20Pausable: token transfer while paused");
    }
}

// File: https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/release-v4.1/contracts/token/ERC20/extensions/ERC20Capped.sol



pragma solidity ^0.8.0;


/**
 * @dev Extension of {ERC20} that adds a cap to the supply of tokens.
 */
abstract contract ERC20Capped is ERC20 {
    uint256 immutable private _cap;

    /**
     * @dev Sets the value of the `cap`. This value is immutable, it can only be
     * set once during construction.
     */
    constructor (uint256 cap_) {
        require(cap_ > 0, "ERC20Capped: cap is 0");
        _cap = cap_;
    }

    /**
     * @dev Returns the cap on the token's total supply.
     */
    function cap() public view virtual returns (uint256) {
        return _cap;
    }

    /**
     * @dev See {ERC20-_mint}.
     */
    function _mint(address account, uint256 amount) internal virtual override {
        require(ERC20.totalSupply() + amount <= cap(), "ERC20Capped: cap exceeded");
        super._mint(account, amount);
    }
}

// File: https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/release-v4.1/contracts/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 {
        uint256 currentAllowance = allowance(account, _msgSender());
        require(currentAllowance >= amount, "ERC20: burn amount exceeds allowance");
        _approve(account, _msgSender(), currentAllowance - amount);
        _burn(account, amount);
    }
}

// File: contracts/ElkV2.sol



pragma solidity ^0.8.0;










/**
 * @dev {ERC20} token, including:
 *
 *  - ability for holders to burn (destroy) their tokens
 *  - a minter role that allows for token minting (creation)
 *  - a pauser role that allows to stop all token transfers
 *
 * This contract uses {AccessControl} to lock permissioned functions using the
 * different roles - head to its documentation for details.
 *
 * The account that deploys the contract will be granted the minter and pauser
 * roles, as well as the default admin role, which will let it grant both minter
 * and pauser roles to other accounts.
 */
contract Elk is Context, AccessControlEnumerable, ERC20Burnable, ERC20Capped, ERC20Pausable, ERC20Snapshot, ERC20Permit {
    using SafeMath for uint256;

    bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
    bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE");

    /**
     * @dev Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROLE` and `PAUSER_ROLE` to the
     * account that deploys the contract.
     *
     * See {ERC20-constructor}.
     */
    constructor(string memory name, string memory symbol, uint256 cap) ERC20(name, symbol) ERC20Capped(cap) ERC20Permit(name) {
        _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());

        _setupRole(MINTER_ROLE, _msgSender());
        _setupRole(PAUSER_ROLE, _msgSender());
    }

    /**
     * @dev Creates `amount` new tokens for `to`.
     *
     * See {ERC20-_mint}.
     *
     * Requirements:
     *
     * - the caller must have the `MINTER_ROLE`.
     */
    function mint(address to, uint256 amount) public virtual {
        require(hasRole(MINTER_ROLE, _msgSender()), "Elk: must have minter role to mint");
        _mint(to, amount);
    }

    /**
     * @dev Pauses all token transfers.
     *
     * See {ERC20Pausable} and {Pausable-_pause}.
     *
     * Requirements:
     *
     * - the caller must have the `PAUSER_ROLE`.
     */
    function pause() public virtual {
        require(hasRole(PAUSER_ROLE, _msgSender()), "Elk: must have pauser role to pause");
        _pause();
    }

    /**
     * @dev Unpauses all token transfers.
     *
     * See {ERC20Pausable} and {Pausable-_unpause}.
     *
     * Requirements:
     *
     * - the caller must have the `PAUSER_ROLE`.
     */
    function unpause() public virtual {
        require(hasRole(PAUSER_ROLE, _msgSender()), "Elk: must have pauser role to unpause");
        _unpause();
    }

    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override(ERC20, ERC20Pausable, ERC20Snapshot) {
        ERC20Pausable._beforeTokenTransfer(from, to, amount);
        ERC20Snapshot._beforeTokenTransfer(from, to, amount);
    }

    function _mint(address account, uint256 amount) internal virtual override(ERC20Capped, ERC20) {
        ERC20Capped._mint(account, amount);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint256","name":"cap","type":"uint256"}],"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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Snapshot","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAUSER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"snapshotId","type":"uint256"}],"name":"balanceOfAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"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":"uint256","name":"snapshotId","type":"uint256"}],"name":"totalSupplyAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6101606040527f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9610140523480156200003757600080fd5b5060405162002ce738038062002ce78339810160408190526200005a91620004e6565b8280604051806040016040528060018152602001603160f81b81525083868681600590805190602001906200009192919062000389565b508051620000a790600690602084019062000389565b50505060008111620000ff5760405162461bcd60e51b815260206004820152601560248201527f45524332304361707065643a2063617020697320300000000000000000000000604482015260640160405180910390fd5b6080526007805460ff19169055815160208084019190912082519183019190912060e08290526101008190524660c0527f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f620001a08184846040805160208101859052908101839052606081018290524660808201523060a082015260009060c0016040516020818303038152906040528051906020012090509392505050565b60a0526101205250620001c3935060009250620001bd9150503390565b62000224565b620001ef7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a63362000224565b6200021b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a3362000224565b505050620005ac565b6200023b82826200026760201b62000d411760201c565b60008281526001602090815260409091206200026291839062000d4b62000277821b17901c565b505050565b62000273828262000297565b5050565b60006200028e836001600160a01b03841662000337565b90505b92915050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1662000273576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620002f33390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000818152600183016020526040812054620003805750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915562000291565b50600062000291565b828054620003979062000559565b90600052602060002090601f016020900481019282620003bb576000855562000406565b82601f10620003d657805160ff191683800117855562000406565b8280016001018555821562000406579182015b8281111562000406578251825591602001919060010190620003e9565b506200041492915062000418565b5090565b5b8082111562000414576000815560010162000419565b600082601f8301126200044157600080fd5b81516001600160401b03808211156200045e576200045e62000596565b604051601f8301601f19908116603f0116810190828211818310171562000489576200048962000596565b81604052838152602092508683858801011115620004a657600080fd5b600091505b83821015620004ca5785820183015181830184015290820190620004ab565b83821115620004dc5760008385830101525b9695505050505050565b600080600060608486031215620004fc57600080fd5b83516001600160401b03808211156200051457600080fd5b62000522878388016200042f565b945060208601519150808211156200053957600080fd5b5062000548868287016200042f565b925050604084015190509250925092565b600181811c908216806200056e57607f821691505b602082108114156200059057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b60805160a05160c05160e0516101005161012051610140516126d96200060e6000396000610c27015260006111c801526000611217015260006111f2015260006111760152600061119f0152600081816102e90152611c1701526126d96000f3fe608060405234801561001057600080fd5b50600436106102265760003560e01c806370a082311161012a578063a217fddf116100bd578063d505accf1161008c578063d547741f11610071578063d547741f146104d6578063dd62ed3e146104e9578063e63ab1e91461052257600080fd5b8063d505accf1461049c578063d5391393146104af57600080fd5b8063a217fddf1461045b578063a457c2d714610463578063a9059cbb14610476578063ca15c8731461048957600080fd5b80639010d07c116100f95780639010d07c146103de57806391d148541461040957806395d89b4114610440578063981b24d01461044857600080fd5b806370a082311461038757806379cc6790146103b05780637ecebe00146103c35780638456cb59146103d657600080fd5b8063355274ea116101bd5780633f4ba83a1161018c57806342966c681161017157806342966c68146103565780634ee2cd7e146103695780635c975abb1461037c57600080fd5b80633f4ba83a1461033b57806340c10f191461034357600080fd5b8063355274ea146102e75780633644e5151461030d57806336568abe14610315578063395093511461032857600080fd5b806323b872dd116101f957806323b872dd1461028d578063248a9ca3146102a05780632f2ff15d146102c3578063313ce567146102d857600080fd5b806301ffc9a71461022b57806306fdde0314610253578063095ea7b31461026857806318160ddd1461027b575b600080fd5b61023e610239366004612465565b610549565b60405190151581526020015b60405180910390f35b61025b61058d565b60405161024a9190612510565b61023e6102763660046123dd565b61061f565b6004545b60405190815260200161024a565b61023e61029b36600461232e565b610635565b61027f6102ae366004612407565b60009081526020819052604090206001015490565b6102d66102d1366004612420565b610700565b005b6040516012815260200161024a565b7f000000000000000000000000000000000000000000000000000000000000000061027f565b61027f610727565b6102d6610323366004612420565b610736565b61023e6103363660046123dd565b610758565b6102d661078f565b6102d66103513660046123dd565b610835565b6102d6610364366004612407565b6108df565b61027f6103773660046123dd565b6108ec565b60075460ff1661023e565b61027f6103953660046122e0565b6001600160a01b031660009081526002602052604090205490565b6102d66103be3660046123dd565b610945565b61027f6103d13660046122e0565b6109e1565b6102d66109ff565b6103f16103ec366004612443565b610aa3565b6040516001600160a01b03909116815260200161024a565b61023e610417366004612420565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b61025b610ac2565b61027f610456366004612407565b610ad1565b61027f600081565b61023e6104713660046123dd565b610afc565b61023e6104843660046123dd565b610baf565b61027f610497366004612407565b610bbc565b6102d66104aa36600461236a565b610bd3565b61027f7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b6102d66104e4366004612420565b610d37565b61027f6104f73660046122fb565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b61027f7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b60006001600160e01b031982167f5a05180f000000000000000000000000000000000000000000000000000000001480610587575061058782610d60565b92915050565b60606005805461059c906125ec565b80601f01602080910402602001604051908101604052809291908181526020018280546105c8906125ec565b80156106155780601f106105ea57610100808354040283529160200191610615565b820191906000526020600020905b8154815290600101906020018083116105f857829003601f168201915b5050505050905090565b600061062c338484610dc7565b50600192915050565b6000610642848484610f20565b6001600160a01b0384166000908152600360209081526040808320338452909152902054828110156106e15760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e636500000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6106f585336106f0868561258e565b610dc7565b506001949350505050565b61070a828261114c565b60008281526001602052604090206107229082610d4b565b505050565b6000610731611172565b905090565b6107408282611265565b600082815260016020526040902061072290826112ed565b3360008181526003602090815260408083206001600160a01b0387168452909152812054909161062c9185906106f0908690612543565b6107b97f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a33610417565b61082b5760405162461bcd60e51b815260206004820152602560248201527f456c6b3a206d75737420686176652070617573657220726f6c6520746f20756e60448201527f706175736500000000000000000000000000000000000000000000000000000060648201526084016106d8565b610833611302565b565b61085f7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633610417565b6108d15760405162461bcd60e51b815260206004820152602260248201527f456c6b3a206d7573742068617665206d696e74657220726f6c6520746f206d6960448201527f6e7400000000000000000000000000000000000000000000000000000000000060648201526084016106d8565b6108db828261139e565b5050565b6108e933826113a8565b50565b6001600160a01b03821660009081526008602052604081208190819061091390859061153a565b915091508161093a576001600160a01b03851660009081526002602052604090205461093c565b805b95945050505050565b600061095183336104f7565b9050818110156109c85760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f7760448201527f616e63650000000000000000000000000000000000000000000000000000000060648201526084016106d8565b6109d783336106f0858561258e565b61072283836113a8565b6001600160a01b0381166000908152600c6020526040812054610587565b610a297f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a33610417565b610a9b5760405162461bcd60e51b815260206004820152602360248201527f456c6b3a206d75737420686176652070617573657220726f6c6520746f20706160448201527f757365000000000000000000000000000000000000000000000000000000000060648201526084016106d8565b610833611633565b6000828152600160205260408120610abb90836116bb565b9392505050565b60606006805461059c906125ec565b6000806000610ae184600961153a565b9150915081610af257600454610af4565b805b949350505050565b3360009081526003602090815260408083206001600160a01b038616845290915281205482811015610b965760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f00000000000000000000000000000000000000000000000000000060648201526084016106d8565b610ba533856106f0868561258e565b5060019392505050565b600061062c338484610f20565b6000818152600160205260408120610587906116c7565b83421115610c235760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e6500000060448201526064016106d8565b60007f0000000000000000000000000000000000000000000000000000000000000000888888610c528c6116d1565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090506000610cad826116f9565b90506000610cbd82878787611762565b9050896001600160a01b0316816001600160a01b031614610d205760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e6174757265000060448201526064016106d8565b610d2b8a8a8a610dc7565b50505050505050505050565b6107408282611902565b6108db8282611928565b6000610abb836001600160a01b0384166119c6565b60006001600160e01b031982167f7965db0b00000000000000000000000000000000000000000000000000000000148061058757507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610587565b6001600160a01b038316610e425760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016106d8565b6001600160a01b038216610ebe5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f737300000000000000000000000000000000000000000000000000000000000060648201526084016106d8565b6001600160a01b0383811660008181526003602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038316610f9c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016106d8565b6001600160a01b0382166110185760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f657373000000000000000000000000000000000000000000000000000000000060648201526084016106d8565b611023838383611a15565b6001600160a01b038316600090815260026020526040902054818110156110b25760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e6365000000000000000000000000000000000000000000000000000060648201526084016106d8565b6110bc828261258e565b6001600160a01b0380861660009081526002602052604080822093909355908516815290812080548492906110f2908490612543565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161113e91815260200190565b60405180910390a350505050565b6000828152602081905260409020600101546111688133611a2b565b6107228383611928565b60007f00000000000000000000000000000000000000000000000000000000000000004614156111c157507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6001600160a01b03811633146112e35760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084016106d8565b6108db8282611aa9565b6000610abb836001600160a01b038416611b28565b60075460ff166113545760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f742070617573656400000000000000000000000060448201526064016106d8565b6007805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6108db8282611c15565b6001600160a01b0382166114245760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016106d8565b61143082600083611a15565b6001600160a01b038216600090815260026020526040902054818110156114bf5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f636500000000000000000000000000000000000000000000000000000000000060648201526084016106d8565b6114c9828261258e565b6001600160a01b038416600090815260026020526040812091909155600480548492906114f790849061258e565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610f13565b6000806000841161158d5760405162461bcd60e51b815260206004820152601660248201527f4552433230536e617073686f743a20696420697320300000000000000000000060448201526064016106d8565b600b548411156115df5760405162461bcd60e51b815260206004820152601d60248201527f4552433230536e617073686f743a206e6f6e6578697374656e7420696400000060448201526064016106d8565b60006115eb8486611ca2565b845490915081141561160457600080925092505061162c565b600184600101828154811061161b5761161b612677565b906000526020600020015492509250505b9250929050565b60075460ff16156116865760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016106d8565b6007805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586113813390565b6000610abb8383611d65565b6000610587825490565b6001600160a01b0381166000908152600c602052604090208054600181018255905b50919050565b6000610587611706611172565b836040517f19010000000000000000000000000000000000000000000000000000000000006020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08211156117df5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016106d8565b8360ff16601b14806117f457508360ff16601c145b61184b5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016106d8565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa15801561189f573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661093c5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016106d8565b60008281526020819052604090206001015461191e8133611a2b565b6107228383611aa9565b6000828152602081815260408083206001600160a01b038516845290915290205460ff166108db576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556119823390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000818152600183016020526040812054611a0d57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610587565b506000610587565b611a20838383611e06565b610722838383611e7f565b6000828152602081815260408083206001600160a01b038516845290915290205460ff166108db57611a67816001600160a01b03166014611ed2565b611a72836020611ed2565b604051602001611a8392919061248f565b60408051601f198184030181529082905262461bcd60e51b82526106d891600401612510565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16156108db576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60008181526001830160205260408120548015611c0b576000611b4c60018361258e565b8554909150600090611b609060019061258e565b90506000866000018281548110611b7957611b79612677565b9060005260206000200154905080876000018481548110611b9c57611b9c612677565b600091825260208083209091019290925582815260018901909152604090208490558654879080611bcf57611bcf612661565b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610587565b6000915050610587565b7f000000000000000000000000000000000000000000000000000000000000000081611c4060045490565b611c4a9190612543565b1115611c985760405162461bcd60e51b815260206004820152601960248201527f45524332304361707065643a206361702065786365656465640000000000000060448201526064016106d8565b6108db82826120b3565b8154600090611cb357506000610587565b82546000905b80821015611d0f576000611ccd838361219e565b905084868281548110611ce257611ce2612677565b90600052602060002001541115611cfb57809150611d09565b611d06816001612543565b92505b50611cb9565b600082118015611d4457508385611d2760018561258e565b81548110611d3757611d37612677565b9060005260206000200154145b15611d5d57611d5460018361258e565b92505050610587565b509050610587565b81546000908210611dde5760405162461bcd60e51b815260206004820152602260248201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e60448201527f647300000000000000000000000000000000000000000000000000000000000060648201526084016106d8565b826000018281548110611df357611df3612677565b9060005260206000200154905092915050565b60075460ff16156107225760405162461bcd60e51b815260206004820152602a60248201527f45524332305061757361626c653a20746f6b656e207472616e7366657220776860448201527f696c65207061757365640000000000000000000000000000000000000000000060648201526084016106d8565b611e8a838383611e06565b6001600160a01b038316611ea957611ea1826121f5565b610722612228565b6001600160a01b038216611ec057611ea1836121f5565b611ec9836121f5565b610722826121f5565b60606000611ee183600261256f565b611eec906002612543565b67ffffffffffffffff811115611f0457611f0461268d565b6040519080825280601f01601f191660200182016040528015611f2e576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110611f6557611f65612677565b60200101906001600160f81b031916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110611fb057611fb0612677565b60200101906001600160f81b031916908160001a9053506000611fd484600261256f565b611fdf906001612543565b90505b6001811115612064577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061202057612020612677565b1a60f81b82828151811061203657612036612677565b60200101906001600160f81b031916908160001a90535060049490941c9361205d816125d5565b9050611fe2565b508315610abb5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016106d8565b6001600160a01b0382166121095760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016106d8565b61211560008383611a15565b80600460008282546121279190612543565b90915550506001600160a01b03821660009081526002602052604081208054839290612154908490612543565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b600060026121ac8184612621565b6121b7600286612621565b6121c19190612543565b6121cb919061255b565b6121d660028461255b565b6121e160028661255b565b6121eb9190612543565b610abb9190612543565b6001600160a01b03811660009081526008602090815260408083206002909252909120546108e99190612236565b612236565b610833600961222360045490565b6000612241600b5490565b90508061224d84612281565b1015610722578254600180820185556000858152602080822090930193909355938401805494850181558252902090910155565b805460009061229257506000919050565b815482906122a29060019061258e565b815481106122b2576122b2612677565b90600052602060002001549050919050565b919050565b80356001600160a01b03811681146122c457600080fd5b6000602082840312156122f257600080fd5b610abb826122c9565b6000806040838503121561230e57600080fd5b612317836122c9565b9150612325602084016122c9565b90509250929050565b60008060006060848603121561234357600080fd5b61234c846122c9565b925061235a602085016122c9565b9150604084013590509250925092565b600080600080600080600060e0888a03121561238557600080fd5b61238e886122c9565b965061239c602089016122c9565b95506040880135945060608801359350608088013560ff811681146123c057600080fd5b9699959850939692959460a0840135945060c09093013592915050565b600080604083850312156123f057600080fd5b6123f9836122c9565b946020939093013593505050565b60006020828403121561241957600080fd5b5035919050565b6000806040838503121561243357600080fd5b82359150612325602084016122c9565b6000806040838503121561245657600080fd5b50508035926020909101359150565b60006020828403121561247757600080fd5b81356001600160e01b031981168114610abb57600080fd5b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516124c78160178501602088016125a5565b7f206973206d697373696e6720726f6c652000000000000000000000000000000060179184019182015283516125048160288401602088016125a5565b01602801949350505050565b602081526000825180602084015261252f8160408501602087016125a5565b601f01601f19169190910160400192915050565b6000821982111561255657612556612635565b500190565b60008261256a5761256a61264b565b500490565b600081600019048311821515161561258957612589612635565b500290565b6000828210156125a0576125a0612635565b500390565b60005b838110156125c05781810151838201526020016125a8565b838111156125cf576000848401525b50505050565b6000816125e4576125e4612635565b506000190190565b600181811c9082168061260057607f821691505b602082108114156116f357634e487b7160e01b600052602260045260246000fd5b6000826126305761263061264b565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fdfea264697066735822122068500a19f8f66bee7c48e9bc2387becbe8002fa5e1165671d220eedeb6c3a79664736f6c63430008050033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000002317b8a224084260a000000000000000000000000000000000000000000000000000000000000000000003456c6b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003454c4b0000000000000000000000000000000000000000000000000000000000

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

000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000002317b8a224084260a000000000000000000000000000000000000000000000000000000000000000000003456c6b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003454c4b0000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name (string): Elk
Arg [1] : symbol (string): ELK
Arg [2] : cap (uint256): 42424424000000000000000000

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 0000000000000000000000000000000000000000002317b8a224084260a00000
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [4] : 456c6b0000000000000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [6] : 454c4b0000000000000000000000000000000000000000000000000000000000


Deployed ByteCode Sourcemap

82019:2330:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31590:227;;;;;;:::i;:::-;;:::i;:::-;;;4816:14:1;;4809:22;4791:41;;4779:2;4764:18;31590:227:0;;;;;;;;51877:100;;;:::i;:::-;;;;;;;:::i;54044:169::-;;;;;;:::i;:::-;;:::i;52997:108::-;53085:12;;52997:108;;;4989:25:1;;;4977:2;4962:18;52997:108:0;4944:76:1;54695:422:0;;;;;;:::i;:::-;;:::i;27558:123::-;;;;;;:::i;:::-;27624:7;27651:12;;;;;;;;;;:22;;;;27558:123;32961:165;;;;;;:::i;:::-;;:::i;:::-;;52839:93;;;52922:2;18123:36:1;;18111:2;18096:18;52839:93:0;18078:87:1;79693:83:0;79764:4;79693:83;;63192:115;;;:::i;33484:174::-;;;;;;:::i;:::-;;:::i;55526:215::-;;;;;;:::i;:::-;;:::i;83756:158::-;;;:::i;82987:185::-;;;;;;:::i;:::-;;:::i;80608:91::-;;;;;;:::i;:::-;;:::i;71887:266::-;;;;;;:::i;:::-;;:::i;76925:86::-;76996:7;;;;76925:86;;53168:127;;;;;;:::i;:::-;-1:-1:-1;;;;;53269:18:0;53242:7;53269:18;;;:9;:18;;;;;;;53168:127;81018:332;;;;;;:::i;:::-;;:::i;62934:128::-;;;;;;:::i;:::-;;:::i;83386:152::-;;;:::i;32416:145::-;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;4584:55:1;;;4566:74;;4554:2;4539:18;32416:145:0;4521:125:1;26556:139:0;;;;;;:::i;:::-;26634:4;26658:12;;;;;;;;;;;-1:-1:-1;;;;;26658:29:0;;;;;;;;;;;;;;;26556:139;52096:104;;;:::i;72257:233::-;;;;;;:::i;:::-;;:::i;24521:49::-;;24566:4;24521:49;;56244:377;;;;;;:::i;:::-;;:::i;53508:175::-;;;;;;:::i;:::-;;:::i;32735:134::-;;;;;;:::i;:::-;;:::i;62097:771::-;;;;;;:::i;:::-;;:::i;82181:62::-;;82219:24;82181:62;;33219:170;;;;;;:::i;:::-;;:::i;53746:151::-;;;;;;:::i;:::-;-1:-1:-1;;;;;53862:18:0;;;53835:7;53862:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;53746:151;82250:62;;82288:24;82250:62;;31590:227;31675:4;-1:-1:-1;;;;;;31699:57:0;;31714:42;31699:57;;:110;;;31773:36;31797:11;31773:23;:36::i;:::-;31692:117;31590:227;-1:-1:-1;;31590:227:0:o;51877:100::-;51931:13;51964:5;51957:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51877:100;:::o;54044:169::-;54127:4;54144:39;21800:10;54167:7;54176:6;54144:8;:39::i;:::-;-1:-1:-1;54201:4:0;54044:169;;;;:::o;54695:422::-;54801:4;54818:36;54828:6;54836:9;54847:6;54818:9;:36::i;:::-;-1:-1:-1;;;;;54894:19:0;;54867:24;54894:19;;;:11;:19;;;;;;;;21800:10;54894:33;;;;;;;;54946:26;;;;54938:79;;;;-1:-1:-1;;;54938:79:0;;12866:2:1;54938:79:0;;;12848:21:1;12905:2;12885:18;;;12878:30;12944:34;12924:18;;;12917:62;13015:10;12995:18;;;12988:38;13043:19;;54938:79:0;;;;;;;;;55028:57;55037:6;21800:10;55059:25;55078:6;55059:16;:25;:::i;:::-;55028:8;:57::i;:::-;-1:-1:-1;55105:4:0;;54695:422;-1:-1:-1;;;;54695:422:0:o;32961:165::-;33046:30;33062:4;33068:7;33046:15;:30::i;:::-;33087:18;;;;:12;:18;;;;;:31;;33110:7;33087:22;:31::i;:::-;;32961:165;;:::o;63192:115::-;63252:7;63279:20;:18;:20::i;:::-;63272:27;;63192:115;:::o;33484:174::-;33572:33;33591:4;33597:7;33572:18;:33::i;:::-;33616:18;;;;:12;:18;;;;;:34;;33642:7;33616:25;:34::i;55526:215::-;21800:10;55614:4;55663:25;;;:11;:25;;;;;;;;-1:-1:-1;;;;;55663:34:0;;;;;;;;;;55614:4;;55631:80;;55654:7;;55663:47;;55700:10;;55663:47;:::i;83756:158::-;83809:34;82288:24;21800:10;26556:139;:::i;83809:34::-;83801:84;;;;-1:-1:-1;;;83801:84:0;;15247:2:1;83801:84:0;;;15229:21:1;15286:2;15266:18;;;15259:30;15325:34;15305:18;;;15298:62;15396:7;15376:18;;;15369:35;15421:19;;83801:84:0;15219:227:1;83801:84:0;83896:10;:8;:10::i;:::-;83756:158::o;82987:185::-;83063:34;82219:24;21800:10;26556:139;:::i;83063:34::-;83055:81;;;;-1:-1:-1;;;83055:81:0;;12104:2:1;83055:81:0;;;12086:21:1;12143:2;12123:18;;;12116:30;12182:34;12162:18;;;12155:62;12253:4;12233:18;;;12226:32;12275:19;;83055:81:0;12076:224:1;83055:81:0;83147:17;83153:2;83157:6;83147:5;:17::i;:::-;82987:185;;:::o;80608:91::-;80664:27;21800:10;80684:6;80664:5;:27::i;:::-;80608:91;:::o;71887:266::-;-1:-1:-1;;;;;72051:33:0;;71974:7;72051:33;;;:24;:33;;;;;71974:7;;;;72030:55;;72039:10;;72030:8;:55::i;:::-;71994:91;;;;72105:11;:40;;-1:-1:-1;;;;;53269:18:0;;53242:7;53269:18;;;:9;:18;;;;;;72105:40;;;72119:5;72105:40;72098:47;71887:266;-1:-1:-1;;;;;71887:266:0:o;81018:332::-;81095:24;81122:32;81132:7;21800:10;53746:151;:::i;81122:32::-;81095:59;;81193:6;81173:16;:26;;81165:75;;;;-1:-1:-1;;;81165:75:0;;13275:2:1;81165:75:0;;;13257:21:1;13314:2;13294:18;;;13287:30;13353:34;13333:18;;;13326:62;13424:6;13404:18;;;13397:34;13448:19;;81165:75:0;13247:226:1;81165:75:0;81251:58;81260:7;21800:10;81283:25;81302:6;81283:16;:25;:::i;81251:58::-;81320:22;81326:7;81335:6;81320:5;:22::i;62934:128::-;-1:-1:-1;;;;;63030:14:0;;63003:7;63030:14;;;:7;:14;;;;;64637;63030:24;64545:114;83386:152;83437:34;82288:24;21800:10;26556:139;:::i;83437:34::-;83429:82;;;;-1:-1:-1;;;83429:82:0;;16004:2:1;83429:82:0;;;15986:21:1;16043:2;16023:18;;;16016:30;16082:34;16062:18;;;16055:62;16153:5;16133:18;;;16126:33;16176:19;;83429:82:0;15976:225:1;83429:82:0;83522:8;:6;:8::i;32416:145::-;32498:7;32525:18;;;:12;:18;;;;;:28;;32547:5;32525:21;:28::i;:::-;32518:35;32416:145;-1:-1:-1;;;32416:145:0:o;52096:104::-;52152:13;52185:7;52178:14;;;;;:::i;72257:233::-;72328:7;72349:16;72367:13;72384:43;72393:10;72405:21;72384:8;:43::i;:::-;72348:79;;;;72447:11;:35;;53085:12;;72447:35;;;72461:5;72447:35;72440:42;72257:233;-1:-1:-1;;;;72257:233:0:o;56244:377::-;21800:10;56337:4;56381:25;;;:11;:25;;;;;;;;-1:-1:-1;;;;;56381:34:0;;;;;;;;;;56434:35;;;;56426:85;;;;-1:-1:-1;;;56426:85:0;;16408:2:1;56426:85:0;;;16390:21:1;16447:2;16427:18;;;16420:30;16486:34;16466:18;;;16459:62;16557:7;16537:18;;;16530:35;16582:19;;56426:85:0;16380:227:1;56426:85:0;56522:67;21800:10;56545:7;56554:34;56573:15;56554:16;:34;:::i;56522:67::-;-1:-1:-1;56609:4:0;;56244:377;-1:-1:-1;;;56244:377:0:o;53508:175::-;53594:4;53611:42;21800:10;53635:9;53646:6;53611:9;:42::i;32735:134::-;32807:7;32834:18;;;:12;:18;;;;;:27;;:25;:27::i;62097:771::-;62326:8;62307:15;:27;;62299:69;;;;-1:-1:-1;;;62299:69:0;;10188:2:1;62299:69:0;;;10170:21:1;10227:2;10207:18;;;10200:30;10266:31;10246:18;;;10239:59;10315:18;;62299:69:0;10160:179:1;62299:69:0;62381:18;62455:16;62490:5;62514:7;62540:5;62564:16;62574:5;62564:9;:16::i;:::-;62426:196;;;;;;5312:25:1;;;;-1:-1:-1;;;;;5434:15:1;;;5414:18;;;5407:43;5486:15;;;;5466:18;;;5459:43;5518:18;;;5511:34;5561:19;;;5554:35;5605:19;;;5598:35;;;5284:19;;62426:196:0;;;;;;;;;;;;62402:231;;;;;;62381:252;;62646:12;62661:28;62678:10;62661:16;:28::i;:::-;62646:43;;62702:14;62719:28;62733:4;62739:1;62742;62745;62719:13;:28::i;:::-;62702:45;;62776:5;-1:-1:-1;;;;;62766:15:0;:6;-1:-1:-1;;;;;62766:15:0;;62758:58;;;;-1:-1:-1;;;62758:58:0;;12507:2:1;62758:58:0;;;12489:21:1;12546:2;12526:18;;;12519:30;12585:32;12565:18;;;12558:60;12635:18;;62758:58:0;12479:180:1;62758:58:0;62829:31;62838:5;62845:7;62854:5;62829:8;:31::i;:::-;62233:635;;;62097:771;;;;;;;:::o;33219:170::-;33305:31;33322:4;33328:7;33305:16;:31::i;29792:112::-;29871:25;29882:4;29888:7;29871:10;:25::i;13887:152::-;13957:4;13981:50;13986:3;-1:-1:-1;;;;;14006:23:0;;13981:4;:50::i;26247:217::-;26332:4;-1:-1:-1;;;;;;26356:47:0;;26371:32;26356:47;;:100;;-1:-1:-1;18854:25:0;-1:-1:-1;;;;;;18839:40:0;;;26420:36;18730:157;59600:346;-1:-1:-1;;;;;59702:19:0;;59694:68;;;;-1:-1:-1;;;59694:68:0;;14842:2:1;59694:68:0;;;14824:21:1;14881:2;14861:18;;;14854:30;14920:34;14900:18;;;14893:62;14991:6;14971:18;;;14964:34;15015:19;;59694:68:0;14814:226:1;59694:68:0;-1:-1:-1;;;;;59781:21:0;;59773:68;;;;-1:-1:-1;;;59773:68:0;;9785:2:1;59773:68:0;;;9767:21:1;9824:2;9804:18;;;9797:30;9863:34;9843:18;;;9836:62;9934:4;9914:18;;;9907:32;9956:19;;59773:68:0;9757:224:1;59773:68:0;-1:-1:-1;;;;;59854:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;59906:32;;4989:25:1;;;59906:32:0;;4962:18:1;59906:32:0;;;;;;;;59600:346;;;:::o;57111:604::-;-1:-1:-1;;;;;57217:20:0;;57209:70;;;;-1:-1:-1;;;57209:70:0;;14082:2:1;57209:70:0;;;14064:21:1;14121:2;14101:18;;;14094:30;14160:34;14140:18;;;14133:62;14231:7;14211:18;;;14204:35;14256:19;;57209:70:0;14054:227:1;57209:70:0;-1:-1:-1;;;;;57298:23:0;;57290:71;;;;-1:-1:-1;;;57290:71:0;;8629:2:1;57290:71:0;;;8611:21:1;8668:2;8648:18;;;8641:30;8707:34;8687:18;;;8680:62;8778:5;8758:18;;;8751:33;8801:19;;57290:71:0;8601:225:1;57290:71:0;57374:47;57395:6;57403:9;57414:6;57374:20;:47::i;:::-;-1:-1:-1;;;;;57458:17:0;;57434:21;57458:17;;;:9;:17;;;;;;57494:23;;;;57486:74;;;;-1:-1:-1;;;57486:74:0;;10546:2:1;57486:74:0;;;10528:21:1;10585:2;10565:18;;;10558:30;10624:34;10604:18;;;10597:62;10695:8;10675:18;;;10668:36;10721:19;;57486:74:0;10518:228:1;57486:74:0;57591:22;57607:6;57591:13;:22;:::i;:::-;-1:-1:-1;;;;;57571:17:0;;;;;;;:9;:17;;;;;;:42;;;;57624:20;;;;;;;;:30;;57648:6;;57571:17;57624:30;;57648:6;;57624:30;:::i;:::-;;;;;;;;57689:9;-1:-1:-1;;;;;57672:35:0;57681:6;-1:-1:-1;;;;;57672:35:0;;57700:6;57672:35;;;;4989:25:1;;4977:2;4962:18;;4944:76;57672:35:0;;;;;;;;57198:517;57111:604;;;:::o;27943:147::-;27624:7;27651:12;;;;;;;;;;:22;;;26125:30;26136:4;21800:10;26125;:30::i;:::-;28057:25:::1;28068:4;28074:7;28057:10;:25::i;42421:281::-:0;42474:7;42515:16;42498:13;:33;42494:201;;;-1:-1:-1;42555:24:0;;42421:281::o;42494:201::-;-1:-1:-1;42863:165:0;;;42641:10;42863:165;;;;5903:25:1;;;;42653:12:0;5944:18:1;;;5937:34;42667:15:0;5987:18:1;;;5980:34;42968:13:0;6030:18:1;;;6023:34;43008:4:0;6073:19:1;;;;6066:84;;;;42863:165:0;;;;;;;;;;5875:19:1;;;;42863:165:0;;;42839:200;;;;;;63192:115::o;28991:218::-;-1:-1:-1;;;;;29087:23:0;;21800:10;29087:23;29079:83;;;;-1:-1:-1;;;29079:83:0;;16814:2:1;29079:83:0;;;16796:21:1;16853:2;16833:18;;;16826:30;16892:34;16872:18;;;16865:62;16963:17;16943:18;;;16936:45;16998:19;;29079:83:0;16786:237:1;29079:83:0;29175:26;29187:4;29193:7;29175:11;:26::i;14215:158::-;14288:4;14312:53;14320:3;-1:-1:-1;;;;;14340:23:0;;14312:7;:53::i;77984:120::-;76996:7;;;;77520:41;;;;-1:-1:-1;;;77520:41:0;;9033:2:1;77520:41:0;;;9015:21:1;9072:2;9052:18;;;9045:30;9111:22;9091:18;;;9084:50;9151:18;;77520:41:0;9005:170:1;77520:41:0;78043:7:::1;:15:::0;;-1:-1:-1;;78043:15:0::1;::::0;;78074:22:::1;21800:10:::0;78083:12:::1;78074:22;::::0;-1:-1:-1;;;;;4584:55:1;;;4566:74;;4554:2;4539:18;78074:22:0::1;;;;;;;77984:120::o:0;84199:147::-;84304:34;84322:7;84331:6;84304:17;:34::i;58668:494::-;-1:-1:-1;;;;;58752:21:0;;58744:67;;;;-1:-1:-1;;;58744:67:0;;13680:2:1;58744:67:0;;;13662:21:1;13719:2;13699:18;;;13692:30;13758:34;13738:18;;;13731:62;13829:3;13809:18;;;13802:31;13850:19;;58744:67:0;13652:223:1;58744:67:0;58824:49;58845:7;58862:1;58866:6;58824:20;:49::i;:::-;-1:-1:-1;;;;;58911:18:0;;58886:22;58911:18;;;:9;:18;;;;;;58948:24;;;;58940:71;;;;-1:-1:-1;;;58940:71:0;;9382:2:1;58940:71:0;;;9364:21:1;9421:2;9401:18;;;9394:30;9460:34;9440:18;;;9433:62;9531:4;9511:18;;;9504:32;9553:19;;58940:71:0;9354:224:1;58940:71:0;59043:23;59060:6;59043:14;:23;:::i;:::-;-1:-1:-1;;;;;59022:18:0;;;;;;:9;:18;;;;;:44;;;;59077:12;:22;;59093:6;;59022:18;59077:22;;59093:6;;59077:22;:::i;:::-;;;;-1:-1:-1;;59117:37:0;;4989:25:1;;;59143:1:0;;-1:-1:-1;;;;;59117:37:0;;;;;4977:2:1;4962:18;59117:37:0;4944:76:1;73259:1692:0;73357:4;73363:7;73409:1;73396:10;:14;73388:49;;;;-1:-1:-1;;;73388:49:0;;15653:2:1;73388:49:0;;;15635:21:1;15692:2;15672:18;;;15665:30;15731:24;15711:18;;;15704:52;15773:18;;73388:49:0;15625:172:1;73388:49:0;73524:18;64637:14;73510:10;:42;;73502:84;;;;-1:-1:-1;;;73502:84:0;;7507:2:1;73502:84:0;;;7489:21:1;7546:2;7526:18;;;7519:30;7585:31;7565:18;;;7558:59;7634:18;;73502:84:0;7479:179:1;73502:84:0;74725:13;74741:40;:9;74770:10;74741:28;:40::i;:::-;74807:20;;74725:56;;-1:-1:-1;74798:29:0;;74794:150;;;74852:5;74859:1;74844:17;;;;;;;74794:150;74902:4;74908:9;:16;;74925:5;74908:23;;;;;;;;:::i;:::-;;;;;;;;;74894:38;;;;;73259:1692;;;;;;:::o;77725:118::-;76996:7;;;;77250:9;77242:38;;;;-1:-1:-1;;;77242:38:0;;11356:2:1;77242:38:0;;;11338:21:1;11395:2;11375:18;;;11368:30;11434:18;11414;;;11407:46;11470:18;;77242:38:0;11328:166:1;77242:38:0;77785:7:::1;:14:::0;;-1:-1:-1;;77785:14:0::1;77795:4;77785:14;::::0;;77815:20:::1;77822:12;21800:10:::0;;21720:98;15173:158;15247:7;15298:22;15302:3;15314:5;15298:3;:22::i;14712:117::-;14775:7;14802:19;14810:3;11469:18;;11386:109;63445:207;-1:-1:-1;;;;;63566:14:0;;63505:15;63566:14;;;:7;:14;;;;;64637;;64774:1;64756:19;;;;64637:14;63627:17;63522:130;63445:207;;;:::o;43689:167::-;43766:7;43793:55;43815:20;:18;:20::i;:::-;43837:10;39231:57;;3450:66:1;39231:57:0;;;3438:79:1;3533:11;;;3526:27;;;3569:12;;;3562:28;;;39194:7:0;;3606:12:1;;39231:57:0;;;;;;;;;;;;39221:68;;;;;;39214:75;;39101:196;;;;;36750:1432;36835:7;37760:66;37746:80;;;37738:127;;;;-1:-1:-1;;;37738:127:0;;10953:2:1;37738:127:0;;;10935:21:1;10992:2;10972:18;;;10965:30;11031:34;11011:18;;;11004:62;-1:-1:-1;;;11082:18:1;;;11075:32;11124:19;;37738:127:0;10925:224:1;37738:127:0;37884:1;:7;;37889:2;37884:7;:18;;;;37895:1;:7;;37900:2;37895:7;37884:18;37876:65;;;;-1:-1:-1;;;37876:65:0;;11701:2:1;37876:65:0;;;11683:21:1;11740:2;11720:18;;;11713:30;11779:34;11759:18;;;11752:62;-1:-1:-1;;;11830:18:1;;;11823:32;11872:19;;37876:65:0;11673:224:1;37876:65:0;38056:24;;;38039:14;38056:24;;;;;;;;;6388:25:1;;;6461:4;6449:17;;6429:18;;;6422:45;;;;6483:18;;;6476:34;;;6526:18;;;6519:34;;;38056:24:0;;6360:19:1;;38056:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;38056:24:0;;-1:-1:-1;;38056:24:0;;;-1:-1:-1;;;;;;;38099:20:0;;38091:57;;;;-1:-1:-1;;;38091:57:0;;7154:2:1;38091:57:0;;;7136:21:1;7193:2;7173:18;;;7166:30;7232:26;7212:18;;;7205:54;7276:18;;38091:57:0;7126:174:1;28335:149:0;27624:7;27651:12;;;;;;;;;;:22;;;26125:30;26136:4;21800:10;26125;:30::i;:::-;28450:26:::1;28462:4;28468:7;28450:11;:26::i;30239:229::-:0;26634:4;26658:12;;;;;;;;;;;-1:-1:-1;;;;;26658:29:0;;;;;;;;;;;;30309:152;;30353:6;:12;;;;;;;;;;;-1:-1:-1;;;;;30353:29:0;;;;;;;;;:36;;-1:-1:-1;;30353:36:0;30385:4;30353:36;;;30436:12;21800:10;;21720:98;30436:12;-1:-1:-1;;;;;30409:40:0;30427:7;-1:-1:-1;;;;;30409:40:0;30421:4;30409:40;;;;;;;;;;30239:229;;:::o;8942:414::-;9005:4;11268:19;;;:12;;;:19;;;;;;9022:327;;-1:-1:-1;9065:23:0;;;;;;;;:11;:23;;;;;;;;;;;;;9248:18;;9226:19;;;:12;;;:19;;;;;;:40;;;;9281:11;;9022:327;-1:-1:-1;9332:5:0;9325:12;;83922:269;84068:52;84103:4;84109:2;84113:6;84068:34;:52::i;:::-;84131;84166:4;84172:2;84176:6;84131:34;:52::i;26985:384::-;26634:4;26658:12;;;;;;;;;;;-1:-1:-1;;;;;26658:29:0;;;;;;;;;;;;27061:301;;27197:41;27225:7;-1:-1:-1;;;;;27197:41:0;27235:2;27197:19;:41::i;:::-;27295:38;27323:4;27330:2;27295:19;:38::i;:::-;27118:230;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;27118:230:0;;;;;;;;;;-1:-1:-1;;;27104:246:0;;;;;;;:::i;30476:230::-;26634:4;26658:12;;;;;;;;;;;-1:-1:-1;;;;;26658:29:0;;;;;;;;;;;;30547:152;;;30622:5;30590:12;;;;;;;;;;;-1:-1:-1;;;;;30590:29:0;;;;;;;;;;:37;;-1:-1:-1;;30590:37:0;;;30647:40;21800:10;;30590:12;;30647:40;;30622:5;30647:40;30476:230;;:::o;9532:1553::-;9598:4;9737:19;;;:12;;;:19;;;;;;9773:15;;9769:1309;;10135:21;10159:14;10172:1;10159:10;:14;:::i;:::-;10208:18;;10135:38;;-1:-1:-1;10188:17:0;;10208:22;;10229:1;;10208:22;:::i;:::-;10188:42;;10475:17;10495:3;:11;;10507:9;10495:22;;;;;;;;:::i;:::-;;;;;;;;;10475:42;;10641:9;10612:3;:11;;10624:13;10612:26;;;;;;;;:::i;:::-;;;;;;;;;;;;:38;;;;10718:23;;;:12;;;:23;;;;;;:36;;;10879:17;;10718:3;;10879:17;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;10974:3;:12;;:19;10987:5;10974:19;;;;;;;;;;;10967:26;;;11017:4;11010:11;;;;;;;;9769:1309;11061:5;11054:12;;;;;79834:207;79764:4;79949:6;79927:19;53085:12;;;52997:108;79927:19;:28;;;;:::i;:::-;:37;;79919:75;;;;-1:-1:-1;;;79919:75:0;;14488:2:1;79919:75:0;;;14470:21:1;14527:2;14507:18;;;14500:30;14566:27;14546:18;;;14539:55;14611:18;;79919:75:0;14460:175:1;79919:75:0;80005:28;80017:7;80026:6;80005:11;:28::i;66636:918::-;66749:12;;66725:7;;66745:58;;-1:-1:-1;66790:1:0;66783:8;;66745:58;66856:12;;66815:11;;66881:424;66894:4;66888:3;:10;66881:424;;;66915:11;66929:23;66942:3;66947:4;66929:12;:23::i;:::-;66915:37;;67186:7;67173:5;67179:3;67173:10;;;;;;;;:::i;:::-;;;;;;;;;:20;67169:125;;;67221:3;67214:10;;67169:125;;;67271:7;:3;67277:1;67271:7;:::i;:::-;67265:13;;67169:125;66900:405;66881:424;;;67431:1;67425:3;:7;:36;;;;-1:-1:-1;67454:7:0;67436:5;67442:7;67448:1;67442:3;:7;:::i;:::-;67436:14;;;;;;;;:::i;:::-;;;;;;;;;:25;67425:36;67421:126;;;67485:7;67491:1;67485:3;:7;:::i;:::-;67478:14;;;;;;67421:126;-1:-1:-1;67532:3:0;-1:-1:-1;67525:10:0;;11839:204;11934:18;;11906:7;;11934:26;-1:-1:-1;11926:73:0;;;;-1:-1:-1;;;11926:73:0;;7865:2:1;11926:73:0;;;7847:21:1;7904:2;7884:18;;;7877:30;7943:34;7923:18;;;7916:62;8014:4;7994:18;;;7987:32;8036:19;;11926:73:0;7837:224:1;11926:73:0;12017:3;:11;;12029:5;12017:18;;;;;;;;:::i;:::-;;;;;;;;;12010:25;;11839:204;;;;:::o;78773:238::-;76996:7;;;;78947:9;78939:64;;;;-1:-1:-1;;;78939:64:0;;17590:2:1;78939:64:0;;;17572:21:1;17629:2;17609:18;;;17602:30;17668:34;17648:18;;;17641:62;17739:12;17719:18;;;17712:40;17769:19;;78939:64:0;17562:232:1;72709:542:0;72816:44;72843:4;72849:2;72853:6;72816:26;:44::i;:::-;-1:-1:-1;;;;;72875:18:0;;72871:373;;72923:26;72946:2;72923:22;:26::i;:::-;72960:28;:26;:28::i;72871:373::-;-1:-1:-1;;;;;73008:16:0;;73004:240;;73054:28;73077:4;73054:22;:28::i;73004:240::-;73169:28;73192:4;73169:22;:28::i;:::-;73208:26;73231:2;73208:22;:26::i;20571:447::-;20646:13;20672:19;20704:10;20708:6;20704:1;:10;:::i;:::-;:14;;20717:1;20704:14;:::i;:::-;20694:25;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;20694:25:0;;20672:47;;20730:15;:6;20737:1;20730:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;20730:15:0;;;;;;;;;20756;:6;20763:1;20756:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;20756:15:0;;;;;;;;-1:-1:-1;20787:9:0;20799:10;20803:6;20799:1;:10;:::i;:::-;:14;;20812:1;20799:14;:::i;:::-;20787:26;;20782:131;20819:1;20815;:5;20782:131;;;20854:8;20863:5;20871:3;20863:11;20854:21;;;;;;;:::i;:::-;;;;20842:6;20849:1;20842:9;;;;;;;;:::i;:::-;;;;:33;-1:-1:-1;;;;;20842:33:0;;;;;;;;-1:-1:-1;20900:1:0;20890:11;;;;;20822:3;;;:::i;:::-;;;20782:131;;;-1:-1:-1;20931:10:0;;20923:55;;;;-1:-1:-1;;;20923:55:0;;8268:2:1;20923:55:0;;;8250:21:1;;;8287:18;;;8280:30;8346:34;8326:18;;;8319:62;8398:18;;20923:55:0;8240:182:1;57997:338:0;-1:-1:-1;;;;;58081:21:0;;58073:65;;;;-1:-1:-1;;;58073:65:0;;17230:2:1;58073:65:0;;;17212:21:1;17269:2;17249:18;;;17242:30;17308:33;17288:18;;;17281:61;17359:18;;58073:65:0;17202:181:1;58073:65:0;58151:49;58180:1;58184:7;58193:6;58151:20;:49::i;:::-;58229:6;58213:12;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;58246:18:0;;;;;;:9;:18;;;;;:28;;58268:6;;58246:18;:28;;58268:6;;58246:28;:::i;:::-;;;;-1:-1:-1;;58290:37:0;;4989:25:1;;;-1:-1:-1;;;;;58290:37:0;;;58307:1;;58290:37;;4977:2:1;4962:18;58290:37:0;;;;;;;57997:338;;:::o;65772:193::-;65834:7;65955:1;65946:5;65955:1;65946;:5;:::i;:::-;65938;65942:1;65938;:5;:::i;:::-;:13;;;;:::i;:::-;65937:19;;;;:::i;:::-;65927:5;65931:1;65927;:5;:::i;:::-;65917;65921:1;65917;:5;:::i;:::-;65916:17;;;;:::i;:::-;:41;;;;:::i;74959:146::-;-1:-1:-1;;;;;75043:33:0;;;;;;:24;:33;;;;;;;;53269:9;:18;;;;;;;75027:70;;75043:33;75027:15;:70::i;75078:18::-;75027:15;:70::i;75113:118::-;75170:53;75186:21;75209:13;53085:12;;;52997:108;75239:315;75334:17;75354:28;:18;64637:14;;64545:114;75354:28;75334:48;-1:-1:-1;75334:48:0;75397:30;75413:9;75397:15;:30::i;:::-;:42;75393:154;;;75456:29;;;;;;;;-1:-1:-1;75456:29:0;;;;;;;;;;;;;;75500:16;;;:35;;;;;;;;;;;;;;;75239:315::o;75562:212::-;75656:10;;75632:7;;75652:115;;-1:-1:-1;75695:1:0;;75562:212;-1:-1:-1;75562:212:0:o;75652:115::-;75740:10;;75736:3;;75740:14;;75753:1;;75740:14;:::i;:::-;75736:19;;;;;;;;:::i;:::-;;;;;;;;;75729:26;;75562:212;;;:::o;75652:115::-;75562:212;;;:::o;14:196:1:-;82:20;;-1:-1:-1;;;;;131:54:1;;121:65;;111:2;;200:1;197;190:12;215:186;274:6;327:2;315:9;306:7;302:23;298:32;295:2;;;343:1;340;333:12;295:2;366:29;385:9;366:29;:::i;406:260::-;474:6;482;535:2;523:9;514:7;510:23;506:32;503:2;;;551:1;548;541:12;503:2;574:29;593:9;574:29;:::i;:::-;564:39;;622:38;656:2;645:9;641:18;622:38;:::i;:::-;612:48;;493:173;;;;;:::o;671:328::-;748:6;756;764;817:2;805:9;796:7;792:23;788:32;785:2;;;833:1;830;823:12;785:2;856:29;875:9;856:29;:::i;:::-;846:39;;904:38;938:2;927:9;923:18;904:38;:::i;:::-;894:48;;989:2;978:9;974:18;961:32;951:42;;775:224;;;;;:::o;1004:693::-;1115:6;1123;1131;1139;1147;1155;1163;1216:3;1204:9;1195:7;1191:23;1187:33;1184:2;;;1233:1;1230;1223:12;1184:2;1256:29;1275:9;1256:29;:::i;:::-;1246:39;;1304:38;1338:2;1327:9;1323:18;1304:38;:::i;:::-;1294:48;;1389:2;1378:9;1374:18;1361:32;1351:42;;1440:2;1429:9;1425:18;1412:32;1402:42;;1494:3;1483:9;1479:19;1466:33;1539:4;1532:5;1528:16;1521:5;1518:27;1508:2;;1559:1;1556;1549:12;1508:2;1174:523;;;;-1:-1:-1;1174:523:1;;;;1582:5;1634:3;1619:19;;1606:33;;-1:-1:-1;1686:3:1;1671:19;;;1658:33;;1174:523;-1:-1:-1;;1174:523:1:o;1702:254::-;1770:6;1778;1831:2;1819:9;1810:7;1806:23;1802:32;1799:2;;;1847:1;1844;1837:12;1799:2;1870:29;1889:9;1870:29;:::i;:::-;1860:39;1946:2;1931:18;;;;1918:32;;-1:-1:-1;;;1789:167:1:o;1961:180::-;2020:6;2073:2;2061:9;2052:7;2048:23;2044:32;2041:2;;;2089:1;2086;2079:12;2041:2;-1:-1:-1;2112:23:1;;2031:110;-1:-1:-1;2031:110:1:o;2146:254::-;2214:6;2222;2275:2;2263:9;2254:7;2250:23;2246:32;2243:2;;;2291:1;2288;2281:12;2243:2;2327:9;2314:23;2304:33;;2356:38;2390:2;2379:9;2375:18;2356:38;:::i;2405:248::-;2473:6;2481;2534:2;2522:9;2513:7;2509:23;2505:32;2502:2;;;2550:1;2547;2540:12;2502:2;-1:-1:-1;;2573:23:1;;;2643:2;2628:18;;;2615:32;;-1:-1:-1;2492:161:1:o;2658:332::-;2716:6;2769:2;2757:9;2748:7;2744:23;2740:32;2737:2;;;2785:1;2782;2775:12;2737:2;2824:9;2811:23;-1:-1:-1;;;;;;2867:5:1;2863:78;2856:5;2853:89;2843:2;;2956:1;2953;2946:12;3629:786;4040:25;4035:3;4028:38;4010:3;4095:6;4089:13;4111:62;4166:6;4161:2;4156:3;4152:12;4145:4;4137:6;4133:17;4111:62;:::i;:::-;4237:19;4232:2;4192:16;;;4224:11;;;4217:40;4282:13;;4304:63;4282:13;4353:2;4345:11;;4338:4;4326:17;;4304:63;:::i;:::-;4387:17;4406:2;4383:26;;4018:397;-1:-1:-1;;;;4018:397:1:o;6564:383::-;6713:2;6702:9;6695:21;6676:4;6745:6;6739:13;6788:6;6783:2;6772:9;6768:18;6761:34;6804:66;6863:6;6858:2;6847:9;6843:18;6838:2;6830:6;6826:15;6804:66;:::i;:::-;6931:2;6910:15;-1:-1:-1;;6906:29:1;6891:45;;;;6938:2;6887:54;;6685:262;-1:-1:-1;;6685:262:1:o;18170:128::-;18210:3;18241:1;18237:6;18234:1;18231:13;18228:2;;;18247:18;;:::i;:::-;-1:-1:-1;18283:9:1;;18218:80::o;18303:120::-;18343:1;18369;18359:2;;18374:18;;:::i;:::-;-1:-1:-1;18408:9:1;;18349:74::o;18428:168::-;18468:7;18534:1;18530;18526:6;18522:14;18519:1;18516:21;18511:1;18504:9;18497:17;18493:45;18490:2;;;18541:18;;:::i;:::-;-1:-1:-1;18581:9:1;;18480:116::o;18601:125::-;18641:4;18669:1;18666;18663:8;18660:2;;;18674:18;;:::i;:::-;-1:-1:-1;18711:9:1;;18650:76::o;18731:258::-;18803:1;18813:113;18827:6;18824:1;18821:13;18813:113;;;18903:11;;;18897:18;18884:11;;;18877:39;18849:2;18842:10;18813:113;;;18944:6;18941:1;18938:13;18935:2;;;18979:1;18970:6;18965:3;18961:16;18954:27;18935:2;;18784:205;;;:::o;18994:136::-;19033:3;19061:5;19051:2;;19070:18;;:::i;:::-;-1:-1:-1;;;19106:18:1;;19041:89::o;19135:437::-;19214:1;19210:12;;;;19257;;;19278:2;;19332:4;19324:6;19320:17;19310:27;;19278:2;19385;19377:6;19374:14;19354:18;19351:38;19348:2;;;-1:-1:-1;;;19419:1:1;19412:88;19523:4;19520:1;19513:15;19551:4;19548:1;19541:15;19577:112;19609:1;19635;19625:2;;19640:18;;:::i;:::-;-1:-1:-1;19674:9:1;;19615:74::o;19694:184::-;-1:-1:-1;;;19743:1:1;19736:88;19843:4;19840:1;19833:15;19867:4;19864:1;19857:15;19883:184;-1:-1:-1;;;19932:1:1;19925:88;20032:4;20029:1;20022:15;20056:4;20053:1;20046:15;20072:184;-1:-1:-1;;;20121:1:1;20114:88;20221:4;20218:1;20211:15;20245:4;20242:1;20235:15;20261:184;-1:-1:-1;;;20310:1:1;20303:88;20410:4;20407:1;20400:15;20434:4;20431:1;20424:15;20450:184;-1:-1:-1;;;20499:1:1;20492:88;20599:4;20596:1;20589:15;20623:4;20620:1;20613:15

Swarm Source

ipfs://68500a19f8f66bee7c48e9bc2387becbe8002fa5e1165671d220eedeb6c3a796
Block Transaction Gas Used Reward
Age Block Fee Address Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading