ETH Price: $2,811.22 (+1.48%)

Token

BlockFi Token (BFI)
 

Overview

Max Total Supply

4,769,213.056706693818096442 BFI

Holders

44

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
56.819882481410603492 BFI

Value
$0.00
0x68c672c718323cf6d11e0c27d2968f1ca4fa9d45
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
BlockFiToken

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2020-12-31
*/

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.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 GSN 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 payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @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) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @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 sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @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) {
        // 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 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * 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) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * 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) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts 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 mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message 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, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

/**
 * @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.0.0, only sets of type `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] = toDeleteIndex + 1; // All indexes are 1-based

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

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



/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

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

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms.
 *
 * 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 {
    using EnumerableSet for EnumerableSet.AddressSet;
    using Address for address;

    struct RoleData {
        EnumerableSet.AddressSet 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 Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view returns (bool) {
        return _roles[role].members.contains(account);
    }

    /**
     * @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 returns (uint256) {
        return _roles[role].members.length();
    }

    /**
     * @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 returns (address) {
        return _roles[role].members.at(index);
    }

    /**
     * @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 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 {
        require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to grant");

        _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 {
        require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to revoke");

        _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 {
        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, _roles[role].adminRole, adminRole);
        _roles[role].adminRole = adminRole;
    }

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

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


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


/**
 * @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 {TK}.
 *
 * 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 {
    using SafeMath for uint256;

    mapping (address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for {name} and {symbol}, initializes {decimals} with
     * a default value of 18.
     *
     * To select a different value for {decimals}, use {_setupDecimals}.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name, string memory symbol) public {
        _name = name;
        _symbol = symbol;
        _decimals = 18;
    }

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

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view 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 {_setupDecimals} is
     * called.
     *
     * 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 returns (uint8) {
        return _decimals;
    }

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

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view 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);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        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].add(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) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
        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);

        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(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 = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(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);

        _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(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 Sets {decimals} to a value other than the default one of 18.
     *
     * WARNING: This function should only be called from the constructor. Most
     * applications that interact with token contracts will not expect
     * {decimals} to ever change, and may work incorrectly if it does.
     */
    function _setupDecimals(uint8 decimals_) internal {
        _decimals = decimals_;
    }

    /**
     * @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 { }
}


/**
 * @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.
 */
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 () internal {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view 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());
    }
}

/**
 * @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 decreasedAllowance = allowance(account, _msgSender()).sub(amount, "ERC20: burn amount exceeds allowance");

        _approve(account, _msgSender(), decreasedAllowance);
        _burn(account, amount);
    }
}

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

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

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

    /**
     * @dev Sets Token cap
     * @param limit Token limit
     */
    function _setCap(uint256 limit) internal virtual {
        require(limit > 0, "ERC20Capped: cap is 0");
        _cap = limit;
    }

    /**
     * @dev See {ERC20-_beforeTokenTransfer}.
     *
     * Requirements:
     *
     * - minted tokens must not cause the total supply to go over the cap.
     */
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override {
        super._beforeTokenTransfer(from, to, amount);

        if (from == address(0)) { // When minting tokens
            require(totalSupply().add(amount) <= _cap, "ERC20Capped: cap exceeded");
        }
    }
}

/**
 * @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 BlockFiToken is Context, AccessControl, Pausable, ERC20Burnable, ERC20Capped {
    bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
    bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE");
    bytes32 public constant CAPPER_ROLE = keccak256("CAPPER_ROLE");

    mapping (address => uint256) private _exceptionsFrom;
    mapping (address => uint256) private _exceptionsTo;

    /// @dev A record of each accounts delegate
    mapping (address => address) internal _delegates;

    /// @notice A checkpoint for marking number of votes from a given block
    struct Checkpoint {
        uint32 fromBlock;
        uint256 votes;
    }

    /// @notice A record of votes checkpoints for each account, by index
    mapping (address => mapping (uint32 => Checkpoint)) public checkpoints;

    /// @notice The number of checkpoints for each account
    mapping (address => uint32) public numCheckpoints;

    /// @notice The EIP-712 typehash for the contract's domain
    bytes32 public constant DOMAIN_TYPEHASH = keccak256("EIP712Domain(string name,uint256 chainId,address verifyingContract)");

    /// @notice The EIP-712 typehash for the delegation struct used by the contract
    bytes32 public constant DELEGATION_TYPEHASH = keccak256("Delegation(address delegatee,uint256 nonce,uint256 expiry)");

    /// @notice A record of states for signing / validating signatures
    mapping (address => uint) public nonces;

    /// @notice An event thats emitted when an account changes its delegate
    event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate);

    /// @notice An event thats emitted when a delegate account's vote balance changes
    event DelegateVotesChanged(address indexed delegate, uint previousBalance, uint newBalance);

    /**
     * @dev Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROLE` and `PAUSER_ROLE` to the
     * account that deploys the contract.
     *
     * See {ERC20-constructor}.
     */
    constructor() public
        ERC20("BlockFi Token", "BFI")
        ERC20Capped(21e26) {
        _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
        _setupRole(MINTER_ROLE, _msgSender());
        _setupRole(CAPPER_ROLE, _msgSender());
        _setupRole(PAUSER_ROLE, _msgSender());
        pause();
        _exceptionsFrom[_msgSender()] = 1;
        _exceptionsTo[_msgSender()] = 1;
        _exceptionsFrom[address(0)] = 1;
        _exceptionsTo[address(0)] = 1;
    }

    function isExceptionFrom(address acc) public view returns (bool) {
        return _exceptionsFrom[acc] != 0;
    }

    function isExceptionTo(address acc) public view returns (bool) {
        return _exceptionsTo[acc] != 0;
    }

    function setException(address acc, uint256 from, uint256 to) external {
        require(hasRole(MINTER_ROLE, _msgSender()), "Must have Minter role");
        _exceptionsFrom[acc] = from;
        _exceptionsTo[acc] = to;
    }

    /**
     * @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()), "TK: must have minter role to mint");
        _mint(to, amount);
    }

    /**
     * @dev Sets cap
     * @param limit Token limit
     */
    function setCap(uint256 limit) public virtual {
        require(hasRole(CAPPER_ROLE, _msgSender()), "TK: must have capper role to set cap");
        _setCap(limit);
    }

    /**
     * @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()), "TK: 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()), "TK: must have pauser role to unpause");
        _unpause();
    }

    /**
     * @dev Override _beforeTokenTransfer
     * @param from From address
     * @param to To address
     * @param amount Transfer amount
     */
    function _beforeTokenTransfer(address from, address to, uint256 amount)
        internal virtual override(ERC20, ERC20Capped) {
        super._beforeTokenTransfer(from, to, amount);
        if (!isExceptionFrom(from) && !isExceptionTo(to)) {
            require(!paused(), "Token transfer while locked");
        }
    }

    /**
     * @notice Delegate votes from `msg.sender` to `delegatee`
     * @param delegator The address to get delegatee for
     */
    function delegates(address delegator)
        external
        view
        returns (address)
    {
        return _delegates[delegator];
    }

   /**
    * @notice Delegate votes from `msg.sender` to `delegatee`
    * @param delegatee The address to delegate votes to
    */
    function delegate(address delegatee) external {
        return _delegate(msg.sender, delegatee);
    }

    /**
     * @notice Delegates votes from signatory to `delegatee`
     * @param delegatee The address to delegate votes to
     * @param nonce The contract state required to match the signature
     * @param expiry The time at which to expire the signature
     * @param v The recovery byte of the signature
     * @param r Half of the ECDSA signature pair
     * @param s Half of the ECDSA signature pair
     */
    function delegateBySig(
        address delegatee,
        uint nonce,
        uint expiry,
        uint8 v,
        bytes32 r,
        bytes32 s
    )
        external
    {
        bytes32 domainSeparator = keccak256(
            abi.encode(
                DOMAIN_TYPEHASH,
                keccak256(bytes(name())),
                getChainId(),
                address(this)
            )
        );

        bytes32 structHash = keccak256(
            abi.encode(
                DELEGATION_TYPEHASH,
                delegatee,
                nonce,
                expiry
            )
        );

        bytes32 digest = keccak256(
            abi.encodePacked(
                "\x19\x01",
                domainSeparator,
                structHash
            )
        );

        address signatory = ecrecover(digest, v, r, s);
        require(signatory != address(0), "TK::delegateBySig: invalid signature");
        require(nonce == nonces[signatory]++, "TK::delegateBySig: invalid nonce");
        require(now <= expiry, "TK::delegateBySig: signature expired");
        return _delegate(signatory, delegatee);
    }

    /**
     * @notice Gets the current votes balance for `account`
     * @param account The address to get votes balance
     * @return The number of current votes for `account`
     */
    function getCurrentVotes(address account)
        external
        view
        returns (uint256)
    {
        uint32 nCheckpoints = numCheckpoints[account];
        return nCheckpoints > 0 ? checkpoints[account][nCheckpoints - 1].votes : 0;
    }

    /**
     * @notice Determine the prior number of votes for an account as of a block number
     * @dev Block number must be a finalized block or else this function will revert to prevent misinformation.
     * @param account The address of the account to check
     * @param blockNumber The block number to get the vote balance at
     * @return The number of votes the account had as of the given block
     */
    function getPriorVotes(address account, uint blockNumber)
        external
        view
        returns (uint256)
    {
        require(blockNumber < block.number, "TK::getPriorVotes: not yet determined");

        uint32 nCheckpoints = numCheckpoints[account];
        if (nCheckpoints == 0) {
            return 0;
        }

        // First check most recent balance
        if (checkpoints[account][nCheckpoints - 1].fromBlock <= blockNumber) {
            return checkpoints[account][nCheckpoints - 1].votes;
        }

        // Next check implicit zero balance
        if (checkpoints[account][0].fromBlock > blockNumber) {
            return 0;
        }

        uint32 lower = 0;
        uint32 upper = nCheckpoints - 1;
        while (upper > lower) {
            uint32 center = upper - (upper - lower) / 2; // ceil, avoiding overflow
            Checkpoint memory cp = checkpoints[account][center];
            if (cp.fromBlock == blockNumber) {
                return cp.votes;
            } else if (cp.fromBlock < blockNumber) {
                lower = center;
            } else {
                upper = center - 1;
            }
        }
        return checkpoints[account][lower].votes;
    }

    /**
     * @dev Internal function
     * @param delegator The address of the account to check
     * @param delegatee The block number to get the vote balance at
     */
    function _delegate(address delegator, address delegatee)
        internal
    {
        address currentDelegate = _delegates[delegator];
        uint256 delegatorBalance = balanceOf(delegator); // balance of underlying TKs (not scaled);
        _delegates[delegator] = delegatee;

        emit DelegateChanged(delegator, currentDelegate, delegatee);

        _moveDelegates(currentDelegate, delegatee, delegatorBalance);
    }

    /**
     * @dev Move Delegates
     * @param srcRep src rep
     * @param dstRep dst rep
     * @param amount amount
     */
    function _moveDelegates(address srcRep, address dstRep, uint256 amount) internal {
        if (srcRep != dstRep && amount > 0) {
            if (srcRep != address(0)) {
                // decrease old representative
                uint32 srcRepNum = numCheckpoints[srcRep];
                uint256 srcRepOld = srcRepNum > 0 ? checkpoints[srcRep][srcRepNum - 1].votes : 0;
                uint256 srcRepNew = srcRepOld.sub(amount);
                _writeCheckpoint(srcRep, srcRepNum, srcRepOld, srcRepNew);
            }

            if (dstRep != address(0)) {
                // increase new representative
                uint32 dstRepNum = numCheckpoints[dstRep];
                uint256 dstRepOld = dstRepNum > 0 ? checkpoints[dstRep][dstRepNum - 1].votes : 0;
                uint256 dstRepNew = dstRepOld.add(amount);
                _writeCheckpoint(dstRep, dstRepNum, dstRepOld, dstRepNew);
            }
        }
    }

    /**
     * @dev Write checkpoint
     * @param delegatee The delegatee
     * @param nCheckpoints n checkpoints
     * @param oldVotes old votes
     * @param newVotes new votes
     */
    function _writeCheckpoint(
        address delegatee,
        uint32 nCheckpoints,
        uint256 oldVotes,
        uint256 newVotes
    )
        internal
    {
        uint32 blockNumber = safe32(block.number, "TK::_writeCheckpoint: block number exceeds 32 bits");

        if (nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == blockNumber) {
            checkpoints[delegatee][nCheckpoints - 1].votes = newVotes;
        } else {
            checkpoints[delegatee][nCheckpoints] = Checkpoint(blockNumber, newVotes);
            numCheckpoints[delegatee] = nCheckpoints + 1;
        }

        emit DelegateVotesChanged(delegatee, oldVotes, newVotes);
    }

    /**
     * @dev convert uint to uint32
     * @param n uint number
     * @param errorMessage error message
     * @return uint32 number
     */
    function safe32(uint n, string memory errorMessage) internal pure returns (uint32) {
        require(n < 2**32, errorMessage);
        return uint32(n);
    }

    /**
     * @dev Get chain id
     * @return The the chain id
     */
    function getChainId() internal pure returns (uint) {
        uint256 chainId;
        assembly { chainId := chainid() }
        return chainId;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"delegator","type":"address"},{"indexed":true,"internalType":"address","name":"fromDelegate","type":"address"},{"indexed":true,"internalType":"address","name":"toDelegate","type":"address"}],"name":"DelegateChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"delegate","type":"address"},{"indexed":false,"internalType":"uint256","name":"previousBalance","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newBalance","type":"uint256"}],"name":"DelegateVotesChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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":"CAPPER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DELEGATION_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_TYPEHASH","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":"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":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint32","name":"","type":"uint32"}],"name":"checkpoints","outputs":[{"internalType":"uint32","name":"fromBlock","type":"uint32"},{"internalType":"uint256","name":"votes","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":"address","name":"delegatee","type":"address"}],"name":"delegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegatee","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"delegateBySig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegator","type":"address"}],"name":"delegates","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getCurrentVotes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getPriorVotes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":"acc","type":"address"}],"name":"isExceptionFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"acc","type":"address"}],"name":"isExceptionTo","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"numCheckpoints","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"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":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"limit","type":"uint256"}],"name":"setCap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"acc","type":"address"},{"internalType":"uint256","name":"from","type":"uint256"},{"internalType":"uint256","name":"to","type":"uint256"}],"name":"setException","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"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"}]

60806040523480156200001157600080fd5b50604080518082018252600d81526c213637b1b5a334902a37b5b2b760991b60208083019182528351808501909452600384526242464960e81b908401526001805460ff1916905581516b06c9144c1c690d4cb40000009391620000799160059190620004ad565b5080516200008f906006906020840190620004ad565b50506007805460ff191660121790555080620000f2576040805162461bcd60e51b815260206004820152601560248201527f45524332304361707065643a2063617020697320300000000000000000000000604482015290519081900360640190fd5b6008556200010b60006200010562000251565b62000255565b6200013a7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66200010562000251565b620001697f585dbb3f830c4325b9ffb1ad42c16ada76c518747b0fb7ee297b261fc6a0f29f6200010562000251565b6200018760008051602062002d658339815191526200010562000251565b6200019162000265565b600160096000620001a162000251565b6001600160a01b03166001600160a01b03168152602001908152602001600020819055506001600a6000620001db6200025160201b60201c565b6001600160a01b0316815260208082019290925260400160009081209290925590805260017fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b819055600a9091527f13da86008ba1c6922daee3e07db95305ef49ebced9f5467a0b8613fcc6b343e35562000549565b3390565b620002618282620002d2565b5050565b6200028960008051602062002d658339815191526200028362000251565b6200034b565b620002c65760405162461bcd60e51b815260040180806020018281038252602281526020018062002d436022913960400191505060405180910390fd5b620002d062000378565b565b600082815260208181526040909120620002f79183906200162562000418821b17901c565b1562000261576200030762000251565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526020818152604082206200036f9184906200163a6200042f821b17901c565b90505b92915050565b60015460ff1615620003c4576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6001805460ff1916811790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620003fb62000251565b604080516001600160a01b039092168252519081900360200190a1565b60006200036f836001600160a01b03841662000446565b60006200036f836001600160a01b03841662000495565b600062000454838362000495565b6200048c5750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915562000372565b50600062000372565b60009081526001919091016020526040902054151590565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620004f057805160ff191683800117855562000520565b8280016001018555821562000520579182015b828111156200052057825182559160200191906001019062000503565b506200052e92915062000532565b5090565b5b808211156200052e576000815560010162000533565b6127ea80620005596000396000f3fe608060405234801561001057600080fd5b50600436106102695760003560e01c8063782d6fe111610151578063a9059cbb116100c3578063d539139311610087578063d5391393146107dc578063d547741f146107e4578063dd62ed3e14610810578063e63ab1e91461083e578063e7a324dc14610846578063f1127ed81461084e57610269565b8063a9059cbb1461071e578063b4b5ea571461074a578063c3cda52014610770578063c7108b43146107b7578063ca15c873146107bf57610269565b80639010d07c116101155780639010d07c1461066d57806391d148541461069057806395d89b41146106bc578063974ca381146106c4578063a217fddf146106ea578063a457c2d7146106f257610269565b8063782d6fe1146105c157806379cc6790146105ed5780637ecebe00146106195780638456cb591461063f5780638852cdd61461064757610269565b806339509351116101ea57806352bfa3e3116101ae57806352bfa3e3146104ba578063587cde1e146104ec5780635c19a95c1461052e5780635c975abb146105545780636fcfff451461055c57806370a082311461059b57610269565b806339509351146104205780633f4ba83a1461044c57806340c10f191461045457806342966c681461048057806347786d371461049d57610269565b8063248a9ca311610231578063248a9ca3146103835780632f2ff15d146103a0578063313ce567146103ce578063355274ea146103ec57806336568abe146103f457610269565b806306fdde031461026e578063095ea7b3146102eb57806318160ddd1461032b57806320606b701461034557806323b872dd1461034d575b600080fd5b6102766108a0565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102b0578181015183820152602001610298565b50505050905090810190601f1680156102dd5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6103176004803603604081101561030157600080fd5b506001600160a01b038135169060200135610936565b604080519115158252519081900360200190f35b610333610954565b60408051918252519081900360200190f35b61033361095a565b6103176004803603606081101561036357600080fd5b506001600160a01b0381358116916020810135909116906040013561097e565b6103336004803603602081101561039957600080fd5b5035610a05565b6103cc600480360360408110156103b657600080fd5b50803590602001356001600160a01b0316610a1a565b005b6103d6610a86565b6040805160ff9092168252519081900360200190f35b610333610a8f565b6103cc6004803603604081101561040a57600080fd5b50803590602001356001600160a01b0316610a95565b6103176004803603604081101561043657600080fd5b506001600160a01b038135169060200135610af6565b6103cc610b44565b6103cc6004803603604081101561046a57600080fd5b506001600160a01b038135169060200135610bb5565b6103cc6004803603602081101561049657600080fd5b5035610c26565b6103cc600480360360208110156104b357600080fd5b5035610c3a565b6103cc600480360360608110156104d057600080fd5b506001600160a01b038135169060208101359060400135610caa565b6105126004803603602081101561050257600080fd5b50356001600160a01b0316610d47565b604080516001600160a01b039092168252519081900360200190f35b6103cc6004803603602081101561054457600080fd5b50356001600160a01b0316610d65565b610317610d6f565b6105826004803603602081101561057257600080fd5b50356001600160a01b0316610d78565b6040805163ffffffff9092168252519081900360200190f35b610333600480360360208110156105b157600080fd5b50356001600160a01b0316610d90565b610333600480360360408110156105d757600080fd5b506001600160a01b038135169060200135610dab565b6103cc6004803603604081101561060357600080fd5b506001600160a01b038135169060200135610fb3565b6103336004803603602081101561062f57600080fd5b50356001600160a01b031661100d565b6103cc61101f565b6103176004803603602081101561065d57600080fd5b50356001600160a01b031661108e565b6105126004803603604081101561068357600080fd5b50803590602001356110ab565b610317600480360360408110156106a657600080fd5b50803590602001356001600160a01b03166110ca565b6102766110e2565b610317600480360360208110156106da57600080fd5b50356001600160a01b0316611143565b610333611160565b6103176004803603604081101561070857600080fd5b506001600160a01b038135169060200135611165565b6103176004803603604081101561073457600080fd5b506001600160a01b0381351690602001356111cd565b6103336004803603602081101561076057600080fd5b50356001600160a01b03166111e1565b6103cc600480360360c081101561078657600080fd5b506001600160a01b038135169060208101359060408101359060ff6060820135169060808101359060a00135611244565b6103336114cd565b610333600480360360208110156107d557600080fd5b50356114f1565b610333611508565b6103cc600480360360408110156107fa57600080fd5b50803590602001356001600160a01b031661152c565b6103336004803603604081101561082657600080fd5b506001600160a01b0381358116916020013516611585565b6103336115b0565b6103336115d4565b6108806004803603604081101561086457600080fd5b5080356001600160a01b0316906020013563ffffffff166115f8565b6040805163ffffffff909316835260208301919091528051918290030190f35b60058054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561092c5780601f106109015761010080835404028352916020019161092c565b820191906000526020600020905b81548152906001019060200180831161090f57829003601f168201915b5050505050905090565b600061094a61094361164f565b8484611653565b5060015b92915050565b60045490565b7f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b600061098b84848461173f565b6109fb8461099761164f565b6109f685604051806060016040528060288152602001612658602891396001600160a01b038a166000908152600360205260408120906109d561164f565b6001600160a01b03168152602081019190915260400160002054919061189c565b611653565b5060019392505050565b60009081526020819052604090206002015490565b600082815260208190526040902060020154610a3d90610a3861164f565b6110ca565b610a785760405162461bcd60e51b815260040180806020018281038252602f8152602001806124b8602f913960400191505060405180910390fd5b610a828282611933565b5050565b60075460ff1690565b60085490565b610a9d61164f565b6001600160a01b0316816001600160a01b031614610aec5760405162461bcd60e51b815260040180806020018281038252602f815260200180612786602f913960400191505060405180910390fd5b610a82828261199c565b600061094a610b0361164f565b846109f68560036000610b1461164f565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490611a05565b610b707f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a610a3861164f565b610bab5760405162461bcd60e51b81526004018080602001828103825260248152602001806125746024913960400191505060405180910390fd5b610bb3611a5f565b565b610be17f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610a3861164f565b610c1c5760405162461bcd60e51b81526004018080602001828103825260218152602001806126a46021913960400191505060405180910390fd5b610a828282611afd565b610c37610c3161164f565b82611bef565b50565b610c667f585dbb3f830c4325b9ffb1ad42c16ada76c518747b0fb7ee297b261fc6a0f29f610a3861164f565b610ca15760405162461bcd60e51b81526004018080602001828103825260248152602001806125be6024913960400191505060405180910390fd5b610c3781611ceb565b610cd67f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610a3861164f565b610d1f576040805162461bcd60e51b81526020600482015260156024820152744d7573742068617665204d696e74657220726f6c6560581b604482015290519081900360640190fd5b6001600160a01b03909216600090815260096020908152604080832093909355600a90522055565b6001600160a01b039081166000908152600b60205260409020541690565b610c373382611d3d565b60015460ff1690565b600d6020526000908152604090205463ffffffff1681565b6001600160a01b031660009081526002602052604090205490565b6000438210610deb5760405162461bcd60e51b81526004018080602001828103825260258152602001806124e76025913960400191505060405180910390fd5b6001600160a01b0383166000908152600d602052604090205463ffffffff1680610e1957600091505061094e565b6001600160a01b0384166000908152600c6020908152604080832063ffffffff600019860181168552925290912054168310610e88576001600160a01b0384166000908152600c602090815260408083206000199490940163ffffffff1683529290522060010154905061094e565b6001600160a01b0384166000908152600c6020908152604080832083805290915290205463ffffffff16831015610ec357600091505061094e565b600060001982015b8163ffffffff168163ffffffff161115610f7c57600282820363ffffffff16048103610ef561245b565b506001600160a01b0387166000908152600c6020908152604080832063ffffffff808616855290835292819020815180830190925280549093168082526001909301549181019190915290871415610f575760200151945061094e9350505050565b805163ffffffff16871115610f6e57819350610f75565b6001820392505b5050610ecb565b506001600160a01b0385166000908152600c6020908152604080832063ffffffff9094168352929052206001015491505092915050565b6000610fea8260405180606001604052806024815260200161268060249139610fe386610fde61164f565b611585565b919061189c565b9050610ffe83610ff861164f565b83611653565b6110088383611bef565b505050565b600e6020526000908152604090205481565b61104b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a610a3861164f565b6110865760405162461bcd60e51b81526004018080602001828103825260228152602001806125e26022913960400191505060405180910390fd5b610bb3611dd2565b6001600160a01b03166000908152600a6020526040902054151590565b60008281526020819052604081206110c39083611e52565b9392505050565b60008281526020819052604081206110c3908361163a565b60068054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561092c5780601f106109015761010080835404028352916020019161092c565b6001600160a01b0316600090815260096020526040902054151590565b600081565b600061094a61117261164f565b846109f685604051806060016040528060258152602001612761602591396003600061119c61164f565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919061189c565b600061094a6111da61164f565b848461173f565b6001600160a01b0381166000908152600d602052604081205463ffffffff168061120c5760006110c3565b6001600160a01b0383166000908152600c6020908152604080832063ffffffff60001986011684529091529020600101549392505050565b60007f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86661126f6108a0565b8051906020012061127e611e5e565b60408051602080820195909552808201939093526060830191909152306080808401919091528151808403909101815260a0830182528051908401207fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60c08401526001600160a01b038b1660e084015261010083018a90526101208084018a9052825180850390910181526101408401835280519085012061190160f01b6101608501526101628401829052610182808501829052835180860390910181526101a285018085528151918701919091206000918290526101c2860180865281905260ff8b166101e287015261020286018a90526102228601899052935192965090949293909260019261024280840193601f198301929081900390910190855afa1580156113b1573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166114035760405162461bcd60e51b815260040180806020018281038252602481526020018061252e6024913960400191505060405180910390fd5b6001600160a01b0381166000908152600e602052604090208054600181019091558914611477576040805162461bcd60e51b815260206004820181905260248201527f544b3a3a64656c656761746542795369673a20696e76616c6964206e6f6e6365604482015290519081900360640190fd5b874211156114b65760405162461bcd60e51b81526004018080602001828103825260248152602001806126346024913960400191505060405180910390fd5b6114c0818b611d3d565b505050505b505050505050565b7f585dbb3f830c4325b9ffb1ad42c16ada76c518747b0fb7ee297b261fc6a0f29f81565b600081815260208190526040812061094e90611e62565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b60008281526020819052604090206002015461154a90610a3861164f565b610aec5760405162461bcd60e51b81526004018080602001828103825260308152602001806126046030913960400191505060405180910390fd5b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b7fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf81565b600c6020908152600092835260408084209091529082529020805460019091015463ffffffff9091169082565b60006110c3836001600160a01b038416611e6d565b60006110c3836001600160a01b038416611eb7565b3390565b6001600160a01b0383166116985760405162461bcd60e51b815260040180806020018281038252602481526020018061273d6024913960400191505060405180910390fd5b6001600160a01b0382166116dd5760405162461bcd60e51b81526004018080602001828103825260228152602001806125526022913960400191505060405180910390fd5b6001600160a01b03808416600081815260036020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166117845760405162461bcd60e51b81526004018080602001828103825260258152602001806127186025913960400191505060405180910390fd5b6001600160a01b0382166117c95760405162461bcd60e51b81526004018080602001828103825260238152602001806124956023913960400191505060405180910390fd5b6117d4838383611ecf565b61181181604051806060016040528060268152602001612598602691396001600160a01b038616600090815260026020526040902054919061189c565b6001600160a01b0380851660009081526002602052604080822093909355908416815220546118409082611a05565b6001600160a01b0380841660008181526002602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000818484111561192b5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156118f05781810151838201526020016118d8565b50505050905090810190601f16801561191d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082815260208190526040902061194b9082611625565b15610a825761195861164f565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526020819052604090206119b49082611f55565b15610a82576119c161164f565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b6000828201838110156110c3576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60015460ff16611aad576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6001805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611ae061164f565b604080516001600160a01b039092168252519081900360200190a1565b6001600160a01b038216611b58576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b611b6460008383611ecf565b600454611b719082611a05565b6004556001600160a01b038216600090815260026020526040902054611b979082611a05565b6001600160a01b03831660008181526002602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b038216611c345760405162461bcd60e51b81526004018080602001828103825260218152602001806126c56021913960400191505060405180910390fd5b611c4082600083611ecf565b611c7d8160405180606001604052806022815260200161250c602291396001600160a01b038516600090815260026020526040902054919061189c565b6001600160a01b038316600090815260026020526040902055600454611ca39082611f6a565b6004556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b60008111611d38576040805162461bcd60e51b8152602060048201526015602482015274045524332304361707065643a20636170206973203605c1b604482015290519081900360640190fd5b600855565b6001600160a01b038083166000908152600b602052604081205490911690611d6484610d90565b6001600160a01b038581166000818152600b602052604080822080546001600160a01b031916898616908117909155905194955093928616927f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a4611dcc828483611fac565b50505050565b60015460ff1615611e1d576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6001805460ff1916811790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611ae061164f565b60006110c383836120e9565b4690565b600061094e8261214d565b6000611e798383611eb7565b611eaf5750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561094e565b50600061094e565b60009081526001919091016020526040902054151590565b611eda838383612151565b611ee383611143565b158015611ef65750611ef48261108e565b155b1561100857611f03610d6f565b15611008576040805162461bcd60e51b815260206004820152601b60248201527f546f6b656e207472616e73666572207768696c65206c6f636b65640000000000604482015290519081900360640190fd5b60006110c3836001600160a01b0384166121d2565b60006110c383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061189c565b816001600160a01b0316836001600160a01b031614158015611fce5750600081115b15611008576001600160a01b03831615612060576001600160a01b0383166000908152600d602052604081205463ffffffff16908161200e576000612040565b6001600160a01b0385166000908152600c6020908152604080832063ffffffff60001987011684529091529020600101545b9050600061204e8285611f6a565b905061205c86848484612298565b5050505b6001600160a01b03821615611008576001600160a01b0382166000908152600d602052604081205463ffffffff16908161209b5760006120cd565b6001600160a01b0384166000908152600c6020908152604080832063ffffffff60001987011684529091529020600101545b905060006120db8285611a05565b90506114c585848484612298565b8154600090821061212b5760405162461bcd60e51b81526004018080602001828103825260228152602001806124736022913960400191505060405180910390fd5b82600001828154811061213a57fe5b9060005260206000200154905092915050565b5490565b61215c838383611008565b6001600160a01b0383166110085760085461217f82612179610954565b90611a05565b1115611008576040805162461bcd60e51b815260206004820152601960248201527f45524332304361707065643a2063617020657863656564656400000000000000604482015290519081900360640190fd5b6000818152600183016020526040812054801561228e578354600019808301919081019060009087908390811061220557fe5b906000526020600020015490508087600001848154811061222257fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061225257fe5b6001900381819060005260206000200160009055905586600101600087815260200190815260200160002060009055600194505050505061094e565b600091505061094e565b60006122bc436040518060600160405280603281526020016126e6603291396123fd565b905060008463ffffffff1611801561230557506001600160a01b0385166000908152600c6020908152604080832063ffffffff6000198901811685529252909120548282169116145b15612342576001600160a01b0385166000908152600c6020908152604080832063ffffffff600019890116845290915290206001018290556123b3565b60408051808201825263ffffffff808416825260208083018681526001600160a01b038a166000818152600c84528681208b8616825284528681209551865490861663ffffffff199182161787559251600196870155908152600d9092529390208054928801909116919092161790555b604080518481526020810184905281516001600160a01b038816927fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724928290030190a25050505050565b60008164010000000084106124535760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156118f05781810151838201526020016118d8565b509192915050565b60408051808201909152600080825260208201529056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e647345524332303a207472616e7366657220746f20746865207a65726f2061646472657373416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e74544b3a3a6765745072696f72566f7465733a206e6f74207965742064657465726d696e656445524332303a206275726e20616d6f756e7420657863656564732062616c616e6365544b3a3a64656c656761746542795369673a20696e76616c6964207369676e617475726545524332303a20617070726f766520746f20746865207a65726f2061646472657373544b3a206d75737420686176652070617573657220726f6c6520746f20756e706175736545524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365544b3a206d75737420686176652063617070657220726f6c6520746f2073657420636170544b3a206d75737420686176652070617573657220726f6c6520746f207061757365416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b65544b3a3a64656c656761746542795369673a207369676e6174757265206578706972656445524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e6365544b3a206d7573742068617665206d696e74657220726f6c6520746f206d696e7445524332303a206275726e2066726f6d20746865207a65726f2061646472657373544b3a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d6265722065786365656473203332206269747345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a26469706673582212206898f3f65aedacd7bf545e2a188318198ba2ca28975f420cb4314b968e86570164736f6c634300060c0033544b3a206d75737420686176652070617573657220726f6c6520746f20706175736565d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102695760003560e01c8063782d6fe111610151578063a9059cbb116100c3578063d539139311610087578063d5391393146107dc578063d547741f146107e4578063dd62ed3e14610810578063e63ab1e91461083e578063e7a324dc14610846578063f1127ed81461084e57610269565b8063a9059cbb1461071e578063b4b5ea571461074a578063c3cda52014610770578063c7108b43146107b7578063ca15c873146107bf57610269565b80639010d07c116101155780639010d07c1461066d57806391d148541461069057806395d89b41146106bc578063974ca381146106c4578063a217fddf146106ea578063a457c2d7146106f257610269565b8063782d6fe1146105c157806379cc6790146105ed5780637ecebe00146106195780638456cb591461063f5780638852cdd61461064757610269565b806339509351116101ea57806352bfa3e3116101ae57806352bfa3e3146104ba578063587cde1e146104ec5780635c19a95c1461052e5780635c975abb146105545780636fcfff451461055c57806370a082311461059b57610269565b806339509351146104205780633f4ba83a1461044c57806340c10f191461045457806342966c681461048057806347786d371461049d57610269565b8063248a9ca311610231578063248a9ca3146103835780632f2ff15d146103a0578063313ce567146103ce578063355274ea146103ec57806336568abe146103f457610269565b806306fdde031461026e578063095ea7b3146102eb57806318160ddd1461032b57806320606b701461034557806323b872dd1461034d575b600080fd5b6102766108a0565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102b0578181015183820152602001610298565b50505050905090810190601f1680156102dd5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6103176004803603604081101561030157600080fd5b506001600160a01b038135169060200135610936565b604080519115158252519081900360200190f35b610333610954565b60408051918252519081900360200190f35b61033361095a565b6103176004803603606081101561036357600080fd5b506001600160a01b0381358116916020810135909116906040013561097e565b6103336004803603602081101561039957600080fd5b5035610a05565b6103cc600480360360408110156103b657600080fd5b50803590602001356001600160a01b0316610a1a565b005b6103d6610a86565b6040805160ff9092168252519081900360200190f35b610333610a8f565b6103cc6004803603604081101561040a57600080fd5b50803590602001356001600160a01b0316610a95565b6103176004803603604081101561043657600080fd5b506001600160a01b038135169060200135610af6565b6103cc610b44565b6103cc6004803603604081101561046a57600080fd5b506001600160a01b038135169060200135610bb5565b6103cc6004803603602081101561049657600080fd5b5035610c26565b6103cc600480360360208110156104b357600080fd5b5035610c3a565b6103cc600480360360608110156104d057600080fd5b506001600160a01b038135169060208101359060400135610caa565b6105126004803603602081101561050257600080fd5b50356001600160a01b0316610d47565b604080516001600160a01b039092168252519081900360200190f35b6103cc6004803603602081101561054457600080fd5b50356001600160a01b0316610d65565b610317610d6f565b6105826004803603602081101561057257600080fd5b50356001600160a01b0316610d78565b6040805163ffffffff9092168252519081900360200190f35b610333600480360360208110156105b157600080fd5b50356001600160a01b0316610d90565b610333600480360360408110156105d757600080fd5b506001600160a01b038135169060200135610dab565b6103cc6004803603604081101561060357600080fd5b506001600160a01b038135169060200135610fb3565b6103336004803603602081101561062f57600080fd5b50356001600160a01b031661100d565b6103cc61101f565b6103176004803603602081101561065d57600080fd5b50356001600160a01b031661108e565b6105126004803603604081101561068357600080fd5b50803590602001356110ab565b610317600480360360408110156106a657600080fd5b50803590602001356001600160a01b03166110ca565b6102766110e2565b610317600480360360208110156106da57600080fd5b50356001600160a01b0316611143565b610333611160565b6103176004803603604081101561070857600080fd5b506001600160a01b038135169060200135611165565b6103176004803603604081101561073457600080fd5b506001600160a01b0381351690602001356111cd565b6103336004803603602081101561076057600080fd5b50356001600160a01b03166111e1565b6103cc600480360360c081101561078657600080fd5b506001600160a01b038135169060208101359060408101359060ff6060820135169060808101359060a00135611244565b6103336114cd565b610333600480360360208110156107d557600080fd5b50356114f1565b610333611508565b6103cc600480360360408110156107fa57600080fd5b50803590602001356001600160a01b031661152c565b6103336004803603604081101561082657600080fd5b506001600160a01b0381358116916020013516611585565b6103336115b0565b6103336115d4565b6108806004803603604081101561086457600080fd5b5080356001600160a01b0316906020013563ffffffff166115f8565b6040805163ffffffff909316835260208301919091528051918290030190f35b60058054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561092c5780601f106109015761010080835404028352916020019161092c565b820191906000526020600020905b81548152906001019060200180831161090f57829003601f168201915b5050505050905090565b600061094a61094361164f565b8484611653565b5060015b92915050565b60045490565b7f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b600061098b84848461173f565b6109fb8461099761164f565b6109f685604051806060016040528060288152602001612658602891396001600160a01b038a166000908152600360205260408120906109d561164f565b6001600160a01b03168152602081019190915260400160002054919061189c565b611653565b5060019392505050565b60009081526020819052604090206002015490565b600082815260208190526040902060020154610a3d90610a3861164f565b6110ca565b610a785760405162461bcd60e51b815260040180806020018281038252602f8152602001806124b8602f913960400191505060405180910390fd5b610a828282611933565b5050565b60075460ff1690565b60085490565b610a9d61164f565b6001600160a01b0316816001600160a01b031614610aec5760405162461bcd60e51b815260040180806020018281038252602f815260200180612786602f913960400191505060405180910390fd5b610a82828261199c565b600061094a610b0361164f565b846109f68560036000610b1461164f565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490611a05565b610b707f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a610a3861164f565b610bab5760405162461bcd60e51b81526004018080602001828103825260248152602001806125746024913960400191505060405180910390fd5b610bb3611a5f565b565b610be17f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610a3861164f565b610c1c5760405162461bcd60e51b81526004018080602001828103825260218152602001806126a46021913960400191505060405180910390fd5b610a828282611afd565b610c37610c3161164f565b82611bef565b50565b610c667f585dbb3f830c4325b9ffb1ad42c16ada76c518747b0fb7ee297b261fc6a0f29f610a3861164f565b610ca15760405162461bcd60e51b81526004018080602001828103825260248152602001806125be6024913960400191505060405180910390fd5b610c3781611ceb565b610cd67f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610a3861164f565b610d1f576040805162461bcd60e51b81526020600482015260156024820152744d7573742068617665204d696e74657220726f6c6560581b604482015290519081900360640190fd5b6001600160a01b03909216600090815260096020908152604080832093909355600a90522055565b6001600160a01b039081166000908152600b60205260409020541690565b610c373382611d3d565b60015460ff1690565b600d6020526000908152604090205463ffffffff1681565b6001600160a01b031660009081526002602052604090205490565b6000438210610deb5760405162461bcd60e51b81526004018080602001828103825260258152602001806124e76025913960400191505060405180910390fd5b6001600160a01b0383166000908152600d602052604090205463ffffffff1680610e1957600091505061094e565b6001600160a01b0384166000908152600c6020908152604080832063ffffffff600019860181168552925290912054168310610e88576001600160a01b0384166000908152600c602090815260408083206000199490940163ffffffff1683529290522060010154905061094e565b6001600160a01b0384166000908152600c6020908152604080832083805290915290205463ffffffff16831015610ec357600091505061094e565b600060001982015b8163ffffffff168163ffffffff161115610f7c57600282820363ffffffff16048103610ef561245b565b506001600160a01b0387166000908152600c6020908152604080832063ffffffff808616855290835292819020815180830190925280549093168082526001909301549181019190915290871415610f575760200151945061094e9350505050565b805163ffffffff16871115610f6e57819350610f75565b6001820392505b5050610ecb565b506001600160a01b0385166000908152600c6020908152604080832063ffffffff9094168352929052206001015491505092915050565b6000610fea8260405180606001604052806024815260200161268060249139610fe386610fde61164f565b611585565b919061189c565b9050610ffe83610ff861164f565b83611653565b6110088383611bef565b505050565b600e6020526000908152604090205481565b61104b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a610a3861164f565b6110865760405162461bcd60e51b81526004018080602001828103825260228152602001806125e26022913960400191505060405180910390fd5b610bb3611dd2565b6001600160a01b03166000908152600a6020526040902054151590565b60008281526020819052604081206110c39083611e52565b9392505050565b60008281526020819052604081206110c3908361163a565b60068054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561092c5780601f106109015761010080835404028352916020019161092c565b6001600160a01b0316600090815260096020526040902054151590565b600081565b600061094a61117261164f565b846109f685604051806060016040528060258152602001612761602591396003600061119c61164f565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919061189c565b600061094a6111da61164f565b848461173f565b6001600160a01b0381166000908152600d602052604081205463ffffffff168061120c5760006110c3565b6001600160a01b0383166000908152600c6020908152604080832063ffffffff60001986011684529091529020600101549392505050565b60007f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86661126f6108a0565b8051906020012061127e611e5e565b60408051602080820195909552808201939093526060830191909152306080808401919091528151808403909101815260a0830182528051908401207fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60c08401526001600160a01b038b1660e084015261010083018a90526101208084018a9052825180850390910181526101408401835280519085012061190160f01b6101608501526101628401829052610182808501829052835180860390910181526101a285018085528151918701919091206000918290526101c2860180865281905260ff8b166101e287015261020286018a90526102228601899052935192965090949293909260019261024280840193601f198301929081900390910190855afa1580156113b1573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166114035760405162461bcd60e51b815260040180806020018281038252602481526020018061252e6024913960400191505060405180910390fd5b6001600160a01b0381166000908152600e602052604090208054600181019091558914611477576040805162461bcd60e51b815260206004820181905260248201527f544b3a3a64656c656761746542795369673a20696e76616c6964206e6f6e6365604482015290519081900360640190fd5b874211156114b65760405162461bcd60e51b81526004018080602001828103825260248152602001806126346024913960400191505060405180910390fd5b6114c0818b611d3d565b505050505b505050505050565b7f585dbb3f830c4325b9ffb1ad42c16ada76c518747b0fb7ee297b261fc6a0f29f81565b600081815260208190526040812061094e90611e62565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b60008281526020819052604090206002015461154a90610a3861164f565b610aec5760405162461bcd60e51b81526004018080602001828103825260308152602001806126046030913960400191505060405180910390fd5b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b7fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf81565b600c6020908152600092835260408084209091529082529020805460019091015463ffffffff9091169082565b60006110c3836001600160a01b038416611e6d565b60006110c3836001600160a01b038416611eb7565b3390565b6001600160a01b0383166116985760405162461bcd60e51b815260040180806020018281038252602481526020018061273d6024913960400191505060405180910390fd5b6001600160a01b0382166116dd5760405162461bcd60e51b81526004018080602001828103825260228152602001806125526022913960400191505060405180910390fd5b6001600160a01b03808416600081815260036020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166117845760405162461bcd60e51b81526004018080602001828103825260258152602001806127186025913960400191505060405180910390fd5b6001600160a01b0382166117c95760405162461bcd60e51b81526004018080602001828103825260238152602001806124956023913960400191505060405180910390fd5b6117d4838383611ecf565b61181181604051806060016040528060268152602001612598602691396001600160a01b038616600090815260026020526040902054919061189c565b6001600160a01b0380851660009081526002602052604080822093909355908416815220546118409082611a05565b6001600160a01b0380841660008181526002602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000818484111561192b5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156118f05781810151838201526020016118d8565b50505050905090810190601f16801561191d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082815260208190526040902061194b9082611625565b15610a825761195861164f565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526020819052604090206119b49082611f55565b15610a82576119c161164f565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b6000828201838110156110c3576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60015460ff16611aad576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6001805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611ae061164f565b604080516001600160a01b039092168252519081900360200190a1565b6001600160a01b038216611b58576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b611b6460008383611ecf565b600454611b719082611a05565b6004556001600160a01b038216600090815260026020526040902054611b979082611a05565b6001600160a01b03831660008181526002602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b038216611c345760405162461bcd60e51b81526004018080602001828103825260218152602001806126c56021913960400191505060405180910390fd5b611c4082600083611ecf565b611c7d8160405180606001604052806022815260200161250c602291396001600160a01b038516600090815260026020526040902054919061189c565b6001600160a01b038316600090815260026020526040902055600454611ca39082611f6a565b6004556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b60008111611d38576040805162461bcd60e51b8152602060048201526015602482015274045524332304361707065643a20636170206973203605c1b604482015290519081900360640190fd5b600855565b6001600160a01b038083166000908152600b602052604081205490911690611d6484610d90565b6001600160a01b038581166000818152600b602052604080822080546001600160a01b031916898616908117909155905194955093928616927f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a4611dcc828483611fac565b50505050565b60015460ff1615611e1d576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6001805460ff1916811790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611ae061164f565b60006110c383836120e9565b4690565b600061094e8261214d565b6000611e798383611eb7565b611eaf5750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561094e565b50600061094e565b60009081526001919091016020526040902054151590565b611eda838383612151565b611ee383611143565b158015611ef65750611ef48261108e565b155b1561100857611f03610d6f565b15611008576040805162461bcd60e51b815260206004820152601b60248201527f546f6b656e207472616e73666572207768696c65206c6f636b65640000000000604482015290519081900360640190fd5b60006110c3836001600160a01b0384166121d2565b60006110c383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061189c565b816001600160a01b0316836001600160a01b031614158015611fce5750600081115b15611008576001600160a01b03831615612060576001600160a01b0383166000908152600d602052604081205463ffffffff16908161200e576000612040565b6001600160a01b0385166000908152600c6020908152604080832063ffffffff60001987011684529091529020600101545b9050600061204e8285611f6a565b905061205c86848484612298565b5050505b6001600160a01b03821615611008576001600160a01b0382166000908152600d602052604081205463ffffffff16908161209b5760006120cd565b6001600160a01b0384166000908152600c6020908152604080832063ffffffff60001987011684529091529020600101545b905060006120db8285611a05565b90506114c585848484612298565b8154600090821061212b5760405162461bcd60e51b81526004018080602001828103825260228152602001806124736022913960400191505060405180910390fd5b82600001828154811061213a57fe5b9060005260206000200154905092915050565b5490565b61215c838383611008565b6001600160a01b0383166110085760085461217f82612179610954565b90611a05565b1115611008576040805162461bcd60e51b815260206004820152601960248201527f45524332304361707065643a2063617020657863656564656400000000000000604482015290519081900360640190fd5b6000818152600183016020526040812054801561228e578354600019808301919081019060009087908390811061220557fe5b906000526020600020015490508087600001848154811061222257fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061225257fe5b6001900381819060005260206000200160009055905586600101600087815260200190815260200160002060009055600194505050505061094e565b600091505061094e565b60006122bc436040518060600160405280603281526020016126e6603291396123fd565b905060008463ffffffff1611801561230557506001600160a01b0385166000908152600c6020908152604080832063ffffffff6000198901811685529252909120548282169116145b15612342576001600160a01b0385166000908152600c6020908152604080832063ffffffff600019890116845290915290206001018290556123b3565b60408051808201825263ffffffff808416825260208083018681526001600160a01b038a166000818152600c84528681208b8616825284528681209551865490861663ffffffff199182161787559251600196870155908152600d9092529390208054928801909116919092161790555b604080518481526020810184905281516001600160a01b038816927fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724928290030190a25050505050565b60008164010000000084106124535760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156118f05781810151838201526020016118d8565b509192915050565b60408051808201909152600080825260208201529056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e647345524332303a207472616e7366657220746f20746865207a65726f2061646472657373416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e74544b3a3a6765745072696f72566f7465733a206e6f74207965742064657465726d696e656445524332303a206275726e20616d6f756e7420657863656564732062616c616e6365544b3a3a64656c656761746542795369673a20696e76616c6964207369676e617475726545524332303a20617070726f766520746f20746865207a65726f2061646472657373544b3a206d75737420686176652070617573657220726f6c6520746f20756e706175736545524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365544b3a206d75737420686176652063617070657220726f6c6520746f2073657420636170544b3a206d75737420686176652070617573657220726f6c6520746f207061757365416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b65544b3a3a64656c656761746542795369673a207369676e6174757265206578706972656445524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e6365544b3a206d7573742068617665206d696e74657220726f6c6520746f206d696e7445524332303a206275726e2066726f6d20746865207a65726f2061646472657373544b3a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d6265722065786365656473203332206269747345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a26469706673582212206898f3f65aedacd7bf545e2a188318198ba2ca28975f420cb4314b968e86570164736f6c634300060c0033

Deployed Bytecode Sourcemap

48340:12356:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34381:83;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36487:169;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;36487:169:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;35456:100;;;:::i;:::-;;;;;;;;;;;;;;;;49363:122;;;:::i;37138:321::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;37138:321:0;;;;;;;;;;;;;;;;;:::i;26401:114::-;;;;;;;;;;;;;;;;-1:-1:-1;26401:114:0;;:::i;26777:227::-;;;;;;;;;;;;;;;;-1:-1:-1;26777:227:0;;;;;;-1:-1:-1;;;;;26777:227:0;;:::i;:::-;;35308:83;;;:::i;:::-;;;;;;;;;;;;;;;;;;;46951:75;;;:::i;27986:209::-;;;;;;;;;;;;;;;;-1:-1:-1;27986:209:0;;;;;;-1:-1:-1;;;;;27986:209:0;;:::i;37868:218::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;37868:218:0;;;;;;;;:::i;52570:157::-;;;:::i;51549:184::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;51549:184:0;;;;;;;;:::i;45747:91::-;;;;;;;;;;;;;;;;-1:-1:-1;45747:91:0;;:::i;51814:173::-;;;;;;;;;;;;;;;;-1:-1:-1;51814:173:0;;:::i;51120:229::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;51120:229:0;;;;;;;;;;;;;:::i;53370:149::-;;;;;;;;;;;;;;;;-1:-1:-1;53370:149:0;-1:-1:-1;;;;;53370:149:0;;:::i;:::-;;;;-1:-1:-1;;;;;53370:149:0;;;;;;;;;;;;;;53663:104;;;;;;;;;;;;;;;;-1:-1:-1;53663:104:0;-1:-1:-1;;;;;53663:104:0;;:::i;44192:78::-;;;:::i;49241:49::-;;;;;;;;;;;;;;;;-1:-1:-1;49241:49:0;-1:-1:-1;;;;;49241:49:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;35619:119;;;;;;;;;;;;;;;;-1:-1:-1;35619:119:0;-1:-1:-1;;;;;35619:119:0;;:::i;56260:1251::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;56260:1251:0;;;;;;;;:::i;46157:295::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;46157:295:0;;;;;;;;:::i;49777:39::-;;;;;;;;;;;;;;;;-1:-1:-1;49777:39:0;-1:-1:-1;;;;;49777:39:0;;:::i;52201:151::-;;;:::i;51000:112::-;;;;;;;;;;;;;;;;-1:-1:-1;51000:112:0;-1:-1:-1;;;;;51000:112:0;;:::i;26074:138::-;;;;;;;;;;;;;;;;-1:-1:-1;26074:138:0;;;;;;;:::i;25035:139::-;;;;;;;;;;;;;;;;-1:-1:-1;25035:139:0;;;;;;-1:-1:-1;;;;;25035:139:0;;:::i;34583:87::-;;;:::i;50876:116::-;;;;;;;;;;;;;;;;-1:-1:-1;50876:116:0;-1:-1:-1;;;;;50876:116:0;;:::i;23780:49::-;;;:::i;38589:269::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;38589:269:0;;;;;;;;:::i;35951:175::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;35951:175:0;;;;;;;;:::i;55574:255::-;;;;;;;;;;;;;;;;-1:-1:-1;55574:255:0;-1:-1:-1;;;;;55574:255:0;;:::i;54201:1172::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;54201:1172:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;48571:62::-;;;:::i;25348:127::-;;;;;;;;;;;;;;;;-1:-1:-1;25348:127:0;;:::i;48433:62::-;;;:::i;27249:230::-;;;;;;;;;;;;;;;;-1:-1:-1;27249:230:0;;;;;;-1:-1:-1;;;;;27249:230:0;;:::i;36189:151::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;36189:151:0;;;;;;;;;;:::i;48502:62::-;;;:::i;49579:117::-;;;:::i;49102:70::-;;;;;;;;;;;;;;;;-1:-1:-1;49102:70:0;;-1:-1:-1;;;;;49102:70:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;34381:83;34451:5;34444:12;;;;;;;;-1:-1:-1;;34444:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34418:13;;34444:12;;34451:5;;34444:12;;34451:5;34444:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34381:83;:::o;36487:169::-;36570:4;36587:39;36596:12;:10;:12::i;:::-;36610:7;36619:6;36587:8;:39::i;:::-;-1:-1:-1;36644:4:0;36487:169;;;;;:::o;35456:100::-;35536:12;;35456:100;:::o;49363:122::-;49405:80;49363:122;:::o;37138:321::-;37244:4;37261:36;37271:6;37279:9;37290:6;37261:9;:36::i;:::-;37308:121;37317:6;37325:12;:10;:12::i;:::-;37339:89;37377:6;37339:89;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;37339:19:0;;;;;;:11;:19;;;;;;37359:12;:10;:12::i;:::-;-1:-1:-1;;;;;37339:33:0;;;;;;;;;;;;-1:-1:-1;37339:33:0;;;:89;:37;:89::i;:::-;37308:8;:121::i;:::-;-1:-1:-1;37447:4:0;37138:321;;;;;:::o;26401:114::-;26458:7;26485:12;;;;;;;;;;:22;;;;26401:114::o;26777:227::-;26869:6;:12;;;;;;;;;;:22;;;26861:45;;26893:12;:10;:12::i;:::-;26861:7;:45::i;:::-;26853:105;;;;-1:-1:-1;;;26853:105:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26971:25;26982:4;26988:7;26971:10;:25::i;:::-;26777:227;;:::o;35308:83::-;35374:9;;;;35308:83;:::o;46951:75::-;47014:4;;46951:75;:::o;27986:209::-;28084:12;:10;:12::i;:::-;-1:-1:-1;;;;;28073:23:0;:7;-1:-1:-1;;;;;28073:23:0;;28065:83;;;;-1:-1:-1;;;28065:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28161:26;28173:4;28179:7;28161:11;:26::i;37868:218::-;37956:4;37973:83;37982:12;:10;:12::i;:::-;37996:7;38005:50;38044:10;38005:11;:25;38017:12;:10;:12::i;:::-;-1:-1:-1;;;;;38005:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;38005:25:0;;;:34;;;;;;;;;;;:38;:50::i;52570:157::-;52623:34;48540:24;52644:12;:10;:12::i;52623:34::-;52615:83;;;;-1:-1:-1;;;52615:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52709:10;:8;:10::i;:::-;52570:157::o;51549:184::-;51625:34;48471:24;51646:12;:10;:12::i;51625:34::-;51617:80;;;;-1:-1:-1;;;51617:80:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51708:17;51714:2;51718:6;51708:5;:17::i;45747:91::-;45803:27;45809:12;:10;:12::i;:::-;45823:6;45803:5;:27::i;:::-;45747:91;:::o;51814:173::-;51879:34;48609:24;51900:12;:10;:12::i;51879:34::-;51871:83;;;;-1:-1:-1;;;51871:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51965:14;51973:5;51965:7;:14::i;51120:229::-;51209:34;48471:24;51230:12;:10;:12::i;51209:34::-;51201:68;;;;;-1:-1:-1;;;51201:68:0;;;;;;;;;;;;-1:-1:-1;;;51201:68:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;51280:20:0;;;;;;;:15;:20;;;;;;;;:27;;;;51318:13;:18;;;:23;51120:229::o;53370:149::-;-1:-1:-1;;;;;53490:21:0;;;53458:7;53490:21;;;:10;:21;;;;;;;;53370:149::o;53663:104::-;53727:32;53737:10;53749:9;53727;:32::i;44192:78::-;44255:7;;;;44192:78;:::o;49241:49::-;;;;;;;;;;;;;;;:::o;35619:119::-;-1:-1:-1;;;;;35712:18:0;35685:7;35712:18;;;:9;:18;;;;;;;35619:119::o;56260:1251::-;56368:7;56415:12;56401:11;:26;56393:76;;;;-1:-1:-1;;;56393:76:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;56504:23:0;;56482:19;56504:23;;;:14;:23;;;;;;;;56542:17;56538:58;;56583:1;56576:8;;;;;56538:58;-1:-1:-1;;;;;56656:20:0;;;;;;:11;:20;;;;;;;;:38;-1:-1:-1;;56677:16:0;;56656:38;;;;;;;;;:48;;:63;-1:-1:-1;56652:147:0;;-1:-1:-1;;;;;56743:20:0;;;;;;:11;:20;;;;;;;;-1:-1:-1;;56764:16:0;;;;56743:38;;;;;;;;56779:1;56743:44;;;-1:-1:-1;56736:51:0;;56652:147;-1:-1:-1;;;;;56860:20:0;;;;;;:11;:20;;;;;;;;:23;;;;;;;;:33;:23;:33;:47;-1:-1:-1;56856:88:0;;;56931:1;56924:8;;;;;56856:88;56956:12;-1:-1:-1;;56998:16:0;;57025:428;57040:5;57032:13;;:5;:13;;;57025:428;;;57104:1;57087:13;;;57086:19;;;57078:27;;57147:20;;:::i;:::-;-1:-1:-1;;;;;;57170:20:0;;;;;;:11;:20;;;;;;;;:28;;;;;;;;;;;;;57147:51;;;;;;;;;;;;;;;;;;;;;;;;;;;;;57217:27;;57213:229;;;57272:8;;;;-1:-1:-1;57265:15:0;;-1:-1:-1;;;;57265:15:0;57213:229;57306:12;;:26;;;-1:-1:-1;57302:140:0;;;57361:6;57353:14;;57302:140;;;57425:1;57416:6;:10;57408:18;;57302:140;57025:428;;;;;-1:-1:-1;;;;;;57470:20:0;;;;;;:11;:20;;;;;;;;:27;;;;;;;;;;:33;;;;-1:-1:-1;;56260:1251:0;;;;:::o;46157:295::-;46234:26;46263:84;46300:6;46263:84;;;;;;;;;;;;;;;;;:32;46273:7;46282:12;:10;:12::i;:::-;46263:9;:32::i;:::-;:36;:84;:36;:84::i;:::-;46234:113;;46360:51;46369:7;46378:12;:10;:12::i;:::-;46392:18;46360:8;:51::i;:::-;46422:22;46428:7;46437:6;46422:5;:22::i;:::-;46157:295;;;:::o;49777:39::-;;;;;;;;;;;;;:::o;52201:151::-;52252:34;48540:24;52273:12;:10;:12::i;52252:34::-;52244:81;;;;-1:-1:-1;;;52244:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52336:8;:6;:8::i;51000:112::-;-1:-1:-1;;;;;51081:18:0;51057:4;51081:18;;;:13;:18;;;;;;:23;;;51000:112::o;26074:138::-;26147:7;26174:12;;;;;;;;;;:30;;26198:5;26174:23;:30::i;:::-;26167:37;26074:138;-1:-1:-1;;;26074:138:0:o;25035:139::-;25104:4;25128:12;;;;;;;;;;:38;;25158:7;25128:29;:38::i;34583:87::-;34655:7;34648:14;;;;;;;;-1:-1:-1;;34648:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34622:13;;34648:14;;34655:7;;34648:14;;34655:7;34648:14;;;;;;;;;;;;;;;;;;;;;;;;50876:116;-1:-1:-1;;;;;50959:20:0;50935:4;50959:20;;;:15;:20;;;;;;:25;;;50876:116::o;23780:49::-;23825:4;23780:49;:::o;38589:269::-;38682:4;38699:129;38708:12;:10;:12::i;:::-;38722:7;38731:96;38770:15;38731:96;;;;;;;;;;;;;;;;;:11;:25;38743:12;:10;:12::i;:::-;-1:-1:-1;;;;;38731:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;38731:25:0;;;:34;;;;;;;;;;;:96;:38;:96::i;35951:175::-;36037:4;36054:42;36064:12;:10;:12::i;:::-;36078:9;36089:6;36054:9;:42::i;55574:255::-;-1:-1:-1;;;;;55713:23:0;;55666:7;55713:23;;;:14;:23;;;;;;;;55754:16;:67;;55820:1;55754:67;;;-1:-1:-1;;;;;55773:20:0;;;;;;:11;:20;;;;;;;;:38;-1:-1:-1;;55794:16:0;;55773:38;;;;;;;;55809:1;55773:44;;55747:74;55574:255;-1:-1:-1;;;55574:255:0:o;54201:1172::-;54394:23;49405:80;54523:6;:4;:6::i;:::-;54507:24;;;;;;54550:12;:10;:12::i;:::-;54444:165;;;;;;;;;;;;;;;;;;;;;;;;;54589:4;54444:165;;;;;;;;;;;;;;;;;;;;;;;54420:200;;;;;;49625:71;54678:140;;;;-1:-1:-1;;;;;54678:140:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54654:175;;;;;;-1:-1:-1;;;54883:123:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54859:158;;;;;;;;;-1:-1:-1;55050:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54420:200;;-1:-1:-1;54654:175:0;;54859:158;;-1:-1:-1;;55050:26:0;;;;;;;-1:-1:-1;;55050:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;55050:26:0;;-1:-1:-1;;55050:26:0;;;-1:-1:-1;;;;;;;55095:23:0;;55087:72;;;;-1:-1:-1;;;55087:72:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;55187:17:0;;;;;;:6;:17;;;;;:19;;;;;;;;55178:28;;55170:73;;;;;-1:-1:-1;;;55170:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;55269:6;55262:3;:13;;55254:62;;;;-1:-1:-1;;;55254:62:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;55334:31;55344:9;55355;55334;:31::i;:::-;55327:38;;;;54201:1172;;;;;;;:::o;48571:62::-;48609:24;48571:62;:::o;25348:127::-;25411:7;25438:12;;;;;;;;;;:29;;:27;:29::i;48433:62::-;48471:24;48433:62;:::o;27249:230::-;27342:6;:12;;;;;;;;;;:22;;;27334:45;;27366:12;:10;:12::i;27334:45::-;27326:106;;;;-1:-1:-1;;;27326:106:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36189:151;-1:-1:-1;;;;;36305:18:0;;;36278:7;36305:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;36189:151::o;48502:62::-;48540:24;48502:62;:::o;49579:117::-;49625:71;49579:117;:::o;49102:70::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;11207:143::-;11277:4;11301:41;11306:3;-1:-1:-1;;;;;11326:14:0;;11301:4;:41::i;11761:158::-;11841:4;11865:46;11875:3;-1:-1:-1;;;;;11895:14:0;;11865:9;:46::i;605:106::-;693:10;605:106;:::o;41736:346::-;-1:-1:-1;;;;;41838:19:0;;41830:68;;;;-1:-1:-1;;;41830:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;41917:21:0;;41909:68;;;;-1:-1:-1;;;41909:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;41990:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;42042:32;;;;;;;;;;;;;;;;;41736:346;;;:::o;39348:539::-;-1:-1:-1;;;;;39454:20:0;;39446:70;;;;-1:-1:-1;;;39446:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;39535:23:0;;39527:71;;;;-1:-1:-1;;;39527:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39611:47;39632:6;39640:9;39651:6;39611:20;:47::i;:::-;39691:71;39713:6;39691:71;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;39691:17:0;;;;;;:9;:17;;;;;;;:71;:21;:71::i;:::-;-1:-1:-1;;;;;39671:17:0;;;;;;;:9;:17;;;;;;:91;;;;39796:20;;;;;;;:32;;39821:6;39796:24;:32::i;:::-;-1:-1:-1;;;;;39773:20:0;;;;;;;:9;:20;;;;;;;;;:55;;;;39844:35;;;;;;;39773:20;;39844:35;;;;;;;;;;;;;39348:539;;;:::o;2702:192::-;2788:7;2824:12;2816:6;;;;2808:29;;;;-1:-1:-1;;;2808:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;2860:5:0;;;2702:192::o;29229:188::-;29303:6;:12;;;;;;;;;;:33;;29328:7;29303:24;:33::i;:::-;29299:111;;;29385:12;:10;:12::i;:::-;-1:-1:-1;;;;;29358:40:0;29376:7;-1:-1:-1;;;;;29358:40:0;29370:4;29358:40;;;;;;;;;;29229:188;;:::o;29425:192::-;29500:6;:12;;;;;;;;;;:36;;29528:7;29500:27;:36::i;:::-;29496:114;;;29585:12;:10;:12::i;:::-;-1:-1:-1;;;;;29558:40:0;29576:7;-1:-1:-1;;;;;29558:40:0;29570:4;29558:40;;;;;;;;;;29425:192;;:::o;1799:181::-;1857:7;1889:5;;;1913:6;;;;1905:46;;;;;-1:-1:-1;;;1905:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;45241:120;44786:7;;;;44778:40;;;;;-1:-1:-1;;;44778:40:0;;;;;;;;;;;;-1:-1:-1;;;44778:40:0;;;;;;;;;;;;;;;45300:7:::1;:15:::0;;-1:-1:-1;;45300:15:0::1;::::0;;45331:22:::1;45340:12;:10;:12::i;:::-;45331:22;::::0;;-1:-1:-1;;;;;45331:22:0;;::::1;::::0;;;;;;;::::1;::::0;;::::1;45241:120::o:0;40169:378::-;-1:-1:-1;;;;;40253:21:0;;40245:65;;;;;-1:-1:-1;;;40245:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;40323:49;40352:1;40356:7;40365:6;40323:20;:49::i;:::-;40400:12;;:24;;40417:6;40400:16;:24::i;:::-;40385:12;:39;-1:-1:-1;;;;;40456:18:0;;;;;;:9;:18;;;;;;:30;;40479:6;40456:22;:30::i;:::-;-1:-1:-1;;;;;40435:18:0;;;;;;:9;:18;;;;;;;;:51;;;;40502:37;;;;;;;40435:18;;;;40502:37;;;;;;;;;;40169:378;;:::o;40880:418::-;-1:-1:-1;;;;;40964:21:0;;40956:67;;;;-1:-1:-1;;;40956:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41036:49;41057:7;41074:1;41078:6;41036:20;:49::i;:::-;41119:68;41142:6;41119:68;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;41119:18:0;;;;;;:9;:18;;;;;;;:68;:22;:68::i;:::-;-1:-1:-1;;;;;41098:18:0;;;;;;:9;:18;;;;;:89;41213:12;;:24;;41230:6;41213:16;:24::i;:::-;41198:12;:39;41253:37;;;;;;;;41279:1;;-1:-1:-1;;;;;41253:37:0;;;;;;;;;;;;40880:418;;:::o;47113:134::-;47189:1;47181:5;:9;47173:43;;;;;-1:-1:-1;;;47173:43:0;;;;;;;;;;;;-1:-1:-1;;;47173:43:0;;;;;;;;;;;;;;;47227:4;:12;47113:134::o;57698:436::-;-1:-1:-1;;;;;57815:21:0;;;57789:23;57815:21;;;:10;:21;;;;;;;;;;57874:20;57826:9;57874;:20::i;:::-;-1:-1:-1;;;;;57948:21:0;;;;;;;:10;:21;;;;;;:33;;-1:-1:-1;;;;;;57948:33:0;;;;;;;;;;57999:54;;57847:47;;-1:-1:-1;57948:33:0;57999:54;;;;;;57948:21;57999:54;58066:60;58081:15;58098:9;58109:16;58066:14;:60::i;:::-;57698:436;;;;:::o;44982:118::-;44510:7;;;;44509:8;44501:37;;;;;-1:-1:-1;;;44501:37:0;;;;;;;;;;;;-1:-1:-1;;;44501:37:0;;;;;;;;;;;;;;;45052:4:::1;45042:14:::0;;-1:-1:-1;;45042:14:0::1;::::0;::::1;::::0;;45072:20:::1;45079:12;:10;:12::i;12466:149::-:0;12540:7;12583:22;12587:3;12599:5;12583:3;:22::i;60540:153::-;60650:9;60540:153;:::o;12005:117::-;12068:7;12095:19;12103:3;12095:7;:19::i;7861:414::-;7924:4;7946:21;7956:3;7961:5;7946:9;:21::i;:::-;7941:327;;-1:-1:-1;7984:23:0;;;;;;;;:11;:23;;;;;;;;;;;;;8167:18;;8145:19;;;:12;;;:19;;;;;;:40;;;;8200:11;;7941:327;-1:-1:-1;8251:5:0;8244:12;;10081:129;10154:4;10178:19;;;:12;;;;;:19;;;;;;:24;;;10081:129::o;52896:326::-;53034:44;53061:4;53067:2;53071:6;53034:26;:44::i;:::-;53094:21;53110:4;53094:15;:21::i;:::-;53093:22;:44;;;;;53120:17;53134:2;53120:13;:17::i;:::-;53119:18;53093:44;53089:126;;;53163:8;:6;:8::i;:::-;53162:9;53154:49;;;;;-1:-1:-1;;;53154:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;11526:149;11599:4;11623:44;11631:3;-1:-1:-1;;;;;11651:14:0;;11623:7;:44::i;2263:136::-;2321:7;2348:43;2352:1;2355;2348:43;;;;;;;;;;;;;;;;;:3;:43::i;58277:947::-;58383:6;-1:-1:-1;;;;;58373:16:0;:6;-1:-1:-1;;;;;58373:16:0;;;:30;;;;;58402:1;58393:6;:10;58373:30;58369:848;;;-1:-1:-1;;;;;58424:20:0;;;58420:385;;-1:-1:-1;;;;;58532:22:0;;58513:16;58532:22;;;:14;:22;;;;;;;;;58593:13;:60;;58652:1;58593:60;;;-1:-1:-1;;;;;58609:19:0;;;;;;:11;:19;;;;;;;;:34;-1:-1:-1;;58629:13:0;;58609:34;;;;;;;;58641:1;58609:40;;58593:60;58573:80;-1:-1:-1;58672:17:0;58692:21;58573:80;58706:6;58692:13;:21::i;:::-;58672:41;;58732:57;58749:6;58757:9;58768;58779;58732:16;:57::i;:::-;58420:385;;;;-1:-1:-1;;;;;58825:20:0;;;58821:385;;-1:-1:-1;;;;;58933:22:0;;58914:16;58933:22;;;:14;:22;;;;;;;;;58994:13;:60;;59053:1;58994:60;;;-1:-1:-1;;;;;59010:19:0;;;;;;:11;:19;;;;;;;;:34;-1:-1:-1;;59030:13:0;;59010:34;;;;;;;;59042:1;59010:40;;58994:60;58974:80;-1:-1:-1;59073:17:0;59093:21;58974:80;59107:6;59093:13;:21::i;:::-;59073:41;;59133:57;59150:6;59158:9;59169;59180;59133:16;:57::i;10749:204::-;10844:18;;10816:7;;10844:26;-1:-1:-1;10836:73:0;;;;-1:-1:-1;;;10836:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10927:3;:11;;10939:5;10927:18;;;;;;;;;;;;;;;;10920:25;;10749:204;;;;:::o;10296:109::-;10379:18;;10296:109::o;47434:318::-;47543:44;47570:4;47576:2;47580:6;47543:26;:44::i;:::-;-1:-1:-1;;;;;47604:18:0;;47600:145;;47699:4;;47670:25;47688:6;47670:13;:11;:13::i;:::-;:17;;:25::i;:::-;:33;;47662:71;;;;;-1:-1:-1;;;47662:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;8451:1544;8517:4;8656:19;;;:12;;;:19;;;;;;8692:15;;8688:1300;;9127:18;;-1:-1:-1;;9078:14:0;;;;9127:22;;;;9054:21;;9127:3;;:22;;9414;;;;;;;;;;;;;;9394:42;;9560:9;9531:3;:11;;9543:13;9531:26;;;;;;;;;;;;;;;;;;;:38;;;;9637:23;;;9679:1;9637:12;;;:23;;;;;;9663:17;;;9637:43;;9789:17;;9637:3;;9789:17;;;;;;;;;;;;;;;;;;;;;;9884:3;:12;;:19;9897:5;9884:19;;;;;;;;;;;9877:26;;;9927:4;9920:11;;;;;;;;8688:1300;9971:5;9964:12;;;;;59429:702;59608:18;59629:74;59636:12;59629:74;;;;;;;;;;;;;;;;;:6;:74::i;:::-;59608:95;;59735:1;59720:12;:16;;;:85;;;;-1:-1:-1;;;;;;59740:22:0;;;;;;:11;:22;;;;;;;;:65;-1:-1:-1;;59763:16:0;;59740:40;;;;;;;;;:50;:65;;;:50;;:65;59720:85;59716:339;;;-1:-1:-1;;;;;59822:22:0;;;;;;:11;:22;;;;;;;;:40;-1:-1:-1;;59845:16:0;;59822:40;;;;;;;;59860:1;59822:46;:57;;;59716:339;;;59951:33;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;59912:22:0;;-1:-1:-1;59912:22:0;;;:11;:22;;;;;:36;;;;;;;;;;:72;;;;;;;-1:-1:-1;;59912:72:0;;;;;;;;;;;;;59999:25;;;:14;:25;;;;;;:44;;60027:16;;;59999:44;;;;;;;;;;59716:339;60072:51;;;;;;;;;;;;;;-1:-1:-1;;;;;60072:51:0;;;;;;;;;;;59429:702;;;;;:::o;60294:161::-;60369:6;60407:12;60400:5;60396:9;;60388:32;;;;-1:-1:-1;;;60388:32:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;60445:1:0;;60294:161;-1:-1:-1;;60294:161:0:o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;:::o

Swarm Source

ipfs://6898f3f65aedacd7bf545e2a188318198ba2ca28975f420cb4314b968e865701
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.