ETH Price: $2,501.82 (-5.04%)

Token

SUDO GOVERNANCE TOKEN (SUDO)
 

Overview

Max Total Supply

58,056,418.77361722661858 SUDO

Holders

2,345 (0.00%)

Market

Price

$0.04 @ 0.000017 ETH (+2.43%)

Onchain Market Cap

$2,531,026.47

Circulating Supply Market Cap

$0.00

Other Info

Token Contract (WITH 18 Decimals)

Filtered by Token Holder
cabezas.eth
Balance
0 SUDO

Value
$0.00
0xca2cba2ad13eb32990b13b89d1a2b9bb103b0464
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Sudoswap is a decentralized NFT AMM protocol.

Market

Volume (24H):$67,357.51
Market Capitalization:$0.00
Circulating Supply:0.00 SUDO
Market Data Source: Coinmarketcap

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
SudoToken

Compiler Version
v0.8.14+commit.80d49f37

Optimization Enabled:
Yes with 1000000 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2023-01-30
*/

// SPDX-License-Identifier: AGPL-3.0
pragma solidity ^0.8.13;

/// @notice Simple single owner authorization mixin.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/auth/Owned.sol)
abstract contract Owned {
    /*//////////////////////////////////////////////////////////////
                                 EVENTS
    //////////////////////////////////////////////////////////////*/

    event OwnershipTransferred(address indexed user, address indexed newOwner);

    /*//////////////////////////////////////////////////////////////
                            OWNERSHIP STORAGE
    //////////////////////////////////////////////////////////////*/

    address public owner;

    modifier onlyOwner() virtual {
        require(msg.sender == owner, "UNAUTHORIZED");

        _;
    }

    /*//////////////////////////////////////////////////////////////
                               CONSTRUCTOR
    //////////////////////////////////////////////////////////////*/

    constructor(address _owner) {
        owner = _owner;

        emit OwnershipTransferred(address(0), _owner);
    }

    /*//////////////////////////////////////////////////////////////
                             OWNERSHIP LOGIC
    //////////////////////////////////////////////////////////////*/

    function transferOwnership(address newOwner) public virtual onlyOwner {
        owner = newOwner;

        emit OwnershipTransferred(msg.sender, newOwner);
    }
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

        return true;
    }

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

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
            // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
            // decrementing then incrementing.
            _balances[to] += amount;
        }

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

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

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

        _totalSupply += amount;
        unchecked {
            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
            _balances[account] += amount;
        }
        emit Transfer(address(0), account, amount);

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

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

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

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
            // Overflow not possible: amount <= accountBalance <= totalSupply.
            _totalSupply -= amount;
        }

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

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

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

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

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

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

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

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

// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/**
 * @dev Implementation of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 *
 * _Available since v3.4._
 */
abstract contract ERC20Permit is ERC20, IERC20Permit, EIP712 {
    using Counters for Counters.Counter;

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

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

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

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

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

        bytes32 hash = _hashTypedDataV4(structHash);

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

        _approve(owner, spender, value);
    }

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

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

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

// OpenZeppelin Contracts (last updated v4.5.0) (governance/utils/IVotes.sol)

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

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

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

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

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

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

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

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

// OpenZeppelin Contracts (last updated v4.7.0) (utils/math/SafeCast.sol)
// This file was procedurally generated from scripts/generate/templates/SafeCast.js.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Returns the downcasted int248 from int256, reverting on
     * overflow (when the input is less than smallest int248 or
     * greater than largest int248).
     *
     * Counterpart to Solidity's `int248` operator.
     *
     * Requirements:
     *
     * - input must fit into 248 bits
     *
     * _Available since v4.7._
     */
    function toInt248(int256 value) internal pure returns (int248 downcasted) {
        downcasted = int248(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 248 bits");
    }

    /**
     * @dev Returns the downcasted int240 from int256, reverting on
     * overflow (when the input is less than smallest int240 or
     * greater than largest int240).
     *
     * Counterpart to Solidity's `int240` operator.
     *
     * Requirements:
     *
     * - input must fit into 240 bits
     *
     * _Available since v4.7._
     */
    function toInt240(int256 value) internal pure returns (int240 downcasted) {
        downcasted = int240(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 240 bits");
    }

    /**
     * @dev Returns the downcasted int232 from int256, reverting on
     * overflow (when the input is less than smallest int232 or
     * greater than largest int232).
     *
     * Counterpart to Solidity's `int232` operator.
     *
     * Requirements:
     *
     * - input must fit into 232 bits
     *
     * _Available since v4.7._
     */
    function toInt232(int256 value) internal pure returns (int232 downcasted) {
        downcasted = int232(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 232 bits");
    }

    /**
     * @dev Returns the downcasted int224 from int256, reverting on
     * overflow (when the input is less than smallest int224 or
     * greater than largest int224).
     *
     * Counterpart to Solidity's `int224` operator.
     *
     * Requirements:
     *
     * - input must fit into 224 bits
     *
     * _Available since v4.7._
     */
    function toInt224(int256 value) internal pure returns (int224 downcasted) {
        downcasted = int224(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 224 bits");
    }

    /**
     * @dev Returns the downcasted int216 from int256, reverting on
     * overflow (when the input is less than smallest int216 or
     * greater than largest int216).
     *
     * Counterpart to Solidity's `int216` operator.
     *
     * Requirements:
     *
     * - input must fit into 216 bits
     *
     * _Available since v4.7._
     */
    function toInt216(int256 value) internal pure returns (int216 downcasted) {
        downcasted = int216(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 216 bits");
    }

    /**
     * @dev Returns the downcasted int208 from int256, reverting on
     * overflow (when the input is less than smallest int208 or
     * greater than largest int208).
     *
     * Counterpart to Solidity's `int208` operator.
     *
     * Requirements:
     *
     * - input must fit into 208 bits
     *
     * _Available since v4.7._
     */
    function toInt208(int256 value) internal pure returns (int208 downcasted) {
        downcasted = int208(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 208 bits");
    }

    /**
     * @dev Returns the downcasted int200 from int256, reverting on
     * overflow (when the input is less than smallest int200 or
     * greater than largest int200).
     *
     * Counterpart to Solidity's `int200` operator.
     *
     * Requirements:
     *
     * - input must fit into 200 bits
     *
     * _Available since v4.7._
     */
    function toInt200(int256 value) internal pure returns (int200 downcasted) {
        downcasted = int200(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 200 bits");
    }

    /**
     * @dev Returns the downcasted int192 from int256, reverting on
     * overflow (when the input is less than smallest int192 or
     * greater than largest int192).
     *
     * Counterpart to Solidity's `int192` operator.
     *
     * Requirements:
     *
     * - input must fit into 192 bits
     *
     * _Available since v4.7._
     */
    function toInt192(int256 value) internal pure returns (int192 downcasted) {
        downcasted = int192(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 192 bits");
    }

    /**
     * @dev Returns the downcasted int184 from int256, reverting on
     * overflow (when the input is less than smallest int184 or
     * greater than largest int184).
     *
     * Counterpart to Solidity's `int184` operator.
     *
     * Requirements:
     *
     * - input must fit into 184 bits
     *
     * _Available since v4.7._
     */
    function toInt184(int256 value) internal pure returns (int184 downcasted) {
        downcasted = int184(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 184 bits");
    }

    /**
     * @dev Returns the downcasted int176 from int256, reverting on
     * overflow (when the input is less than smallest int176 or
     * greater than largest int176).
     *
     * Counterpart to Solidity's `int176` operator.
     *
     * Requirements:
     *
     * - input must fit into 176 bits
     *
     * _Available since v4.7._
     */
    function toInt176(int256 value) internal pure returns (int176 downcasted) {
        downcasted = int176(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 176 bits");
    }

    /**
     * @dev Returns the downcasted int168 from int256, reverting on
     * overflow (when the input is less than smallest int168 or
     * greater than largest int168).
     *
     * Counterpart to Solidity's `int168` operator.
     *
     * Requirements:
     *
     * - input must fit into 168 bits
     *
     * _Available since v4.7._
     */
    function toInt168(int256 value) internal pure returns (int168 downcasted) {
        downcasted = int168(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 168 bits");
    }

    /**
     * @dev Returns the downcasted int160 from int256, reverting on
     * overflow (when the input is less than smallest int160 or
     * greater than largest int160).
     *
     * Counterpart to Solidity's `int160` operator.
     *
     * Requirements:
     *
     * - input must fit into 160 bits
     *
     * _Available since v4.7._
     */
    function toInt160(int256 value) internal pure returns (int160 downcasted) {
        downcasted = int160(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 160 bits");
    }

    /**
     * @dev Returns the downcasted int152 from int256, reverting on
     * overflow (when the input is less than smallest int152 or
     * greater than largest int152).
     *
     * Counterpart to Solidity's `int152` operator.
     *
     * Requirements:
     *
     * - input must fit into 152 bits
     *
     * _Available since v4.7._
     */
    function toInt152(int256 value) internal pure returns (int152 downcasted) {
        downcasted = int152(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 152 bits");
    }

    /**
     * @dev Returns the downcasted int144 from int256, reverting on
     * overflow (when the input is less than smallest int144 or
     * greater than largest int144).
     *
     * Counterpart to Solidity's `int144` operator.
     *
     * Requirements:
     *
     * - input must fit into 144 bits
     *
     * _Available since v4.7._
     */
    function toInt144(int256 value) internal pure returns (int144 downcasted) {
        downcasted = int144(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 144 bits");
    }

    /**
     * @dev Returns the downcasted int136 from int256, reverting on
     * overflow (when the input is less than smallest int136 or
     * greater than largest int136).
     *
     * Counterpart to Solidity's `int136` operator.
     *
     * Requirements:
     *
     * - input must fit into 136 bits
     *
     * _Available since v4.7._
     */
    function toInt136(int256 value) internal pure returns (int136 downcasted) {
        downcasted = int136(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 136 bits");
    }

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

    /**
     * @dev Returns the downcasted int120 from int256, reverting on
     * overflow (when the input is less than smallest int120 or
     * greater than largest int120).
     *
     * Counterpart to Solidity's `int120` operator.
     *
     * Requirements:
     *
     * - input must fit into 120 bits
     *
     * _Available since v4.7._
     */
    function toInt120(int256 value) internal pure returns (int120 downcasted) {
        downcasted = int120(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 120 bits");
    }

    /**
     * @dev Returns the downcasted int112 from int256, reverting on
     * overflow (when the input is less than smallest int112 or
     * greater than largest int112).
     *
     * Counterpart to Solidity's `int112` operator.
     *
     * Requirements:
     *
     * - input must fit into 112 bits
     *
     * _Available since v4.7._
     */
    function toInt112(int256 value) internal pure returns (int112 downcasted) {
        downcasted = int112(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 112 bits");
    }

    /**
     * @dev Returns the downcasted int104 from int256, reverting on
     * overflow (when the input is less than smallest int104 or
     * greater than largest int104).
     *
     * Counterpart to Solidity's `int104` operator.
     *
     * Requirements:
     *
     * - input must fit into 104 bits
     *
     * _Available since v4.7._
     */
    function toInt104(int256 value) internal pure returns (int104 downcasted) {
        downcasted = int104(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 104 bits");
    }

    /**
     * @dev Returns the downcasted int96 from int256, reverting on
     * overflow (when the input is less than smallest int96 or
     * greater than largest int96).
     *
     * Counterpart to Solidity's `int96` operator.
     *
     * Requirements:
     *
     * - input must fit into 96 bits
     *
     * _Available since v4.7._
     */
    function toInt96(int256 value) internal pure returns (int96 downcasted) {
        downcasted = int96(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 96 bits");
    }

    /**
     * @dev Returns the downcasted int88 from int256, reverting on
     * overflow (when the input is less than smallest int88 or
     * greater than largest int88).
     *
     * Counterpart to Solidity's `int88` operator.
     *
     * Requirements:
     *
     * - input must fit into 88 bits
     *
     * _Available since v4.7._
     */
    function toInt88(int256 value) internal pure returns (int88 downcasted) {
        downcasted = int88(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 88 bits");
    }

    /**
     * @dev Returns the downcasted int80 from int256, reverting on
     * overflow (when the input is less than smallest int80 or
     * greater than largest int80).
     *
     * Counterpart to Solidity's `int80` operator.
     *
     * Requirements:
     *
     * - input must fit into 80 bits
     *
     * _Available since v4.7._
     */
    function toInt80(int256 value) internal pure returns (int80 downcasted) {
        downcasted = int80(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 80 bits");
    }

    /**
     * @dev Returns the downcasted int72 from int256, reverting on
     * overflow (when the input is less than smallest int72 or
     * greater than largest int72).
     *
     * Counterpart to Solidity's `int72` operator.
     *
     * Requirements:
     *
     * - input must fit into 72 bits
     *
     * _Available since v4.7._
     */
    function toInt72(int256 value) internal pure returns (int72 downcasted) {
        downcasted = int72(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 72 bits");
    }

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

    /**
     * @dev Returns the downcasted int56 from int256, reverting on
     * overflow (when the input is less than smallest int56 or
     * greater than largest int56).
     *
     * Counterpart to Solidity's `int56` operator.
     *
     * Requirements:
     *
     * - input must fit into 56 bits
     *
     * _Available since v4.7._
     */
    function toInt56(int256 value) internal pure returns (int56 downcasted) {
        downcasted = int56(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 56 bits");
    }

    /**
     * @dev Returns the downcasted int48 from int256, reverting on
     * overflow (when the input is less than smallest int48 or
     * greater than largest int48).
     *
     * Counterpart to Solidity's `int48` operator.
     *
     * Requirements:
     *
     * - input must fit into 48 bits
     *
     * _Available since v4.7._
     */
    function toInt48(int256 value) internal pure returns (int48 downcasted) {
        downcasted = int48(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 48 bits");
    }

    /**
     * @dev Returns the downcasted int40 from int256, reverting on
     * overflow (when the input is less than smallest int40 or
     * greater than largest int40).
     *
     * Counterpart to Solidity's `int40` operator.
     *
     * Requirements:
     *
     * - input must fit into 40 bits
     *
     * _Available since v4.7._
     */
    function toInt40(int256 value) internal pure returns (int40 downcasted) {
        downcasted = int40(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 40 bits");
    }

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

    /**
     * @dev Returns the downcasted int24 from int256, reverting on
     * overflow (when the input is less than smallest int24 or
     * greater than largest int24).
     *
     * Counterpart to Solidity's `int24` operator.
     *
     * Requirements:
     *
     * - input must fit into 24 bits
     *
     * _Available since v4.7._
     */
    function toInt24(int256 value) internal pure returns (int24 downcasted) {
        downcasted = int24(value);
        require(downcasted == value, "SafeCast: value doesn't fit in 24 bits");
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

        uint256 low = 0;
        uint256 high = length;

        if (length > 5) {
            uint256 mid = length - Math.sqrt(length);
            if (_unsafeAccess(ckpts, mid).fromBlock > blockNumber) {
                high = mid;
            } else {
                low = mid + 1;
            }
        }

        while (low < high) {
            uint256 mid = Math.average(low, high);
            if (_unsafeAccess(ckpts, mid).fromBlock > blockNumber) {
                high = mid;
            } else {
                low = mid + 1;
            }
        }

        unchecked {
            return high == 0 ? 0 : _unsafeAccess(ckpts, high - 1).votes;
        }
    }

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

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

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

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

        _writeCheckpoint(_totalSupplyCheckpoints, _add, amount);
    }

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

        _writeCheckpoint(_totalSupplyCheckpoints, _subtract, amount);
    }

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

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

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

        emit DelegateChanged(delegator, currentDelegate, delegatee);

        _moveVotingPower(currentDelegate, delegatee, delegatorBalance);
    }

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

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

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

        unchecked {
            Checkpoint memory oldCkpt = pos == 0 ? Checkpoint(0, 0) : _unsafeAccess(ckpts, pos - 1);

            oldWeight = oldCkpt.votes;
            newWeight = op(oldWeight, delta);

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

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

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

    function _unsafeAccess(Checkpoint[] storage ckpts, uint256 pos) private pure returns (Checkpoint storage result) {
        assembly {
            mstore(0, ckpts.slot)
            result.slot := add(keccak256(0, 0x20), pos)
        }
    }
}

/**
 * @dev Extension of ERC20 to support Compound's voting and delegation. This version exactly matches Compound's
 * interface, with the drawback of only supporting supply up to (2^96^ - 1).
 *
 * NOTE: You should use this contract if you need exact compatibility with COMP (for example in order to use your token
 * with Governor Alpha or Bravo) and if you are sure the supply cap of 2^96^ is enough for you. Otherwise, use the
 * {ERC20Votes} variant of this module.
 *
 * This extension keeps a history (checkpoints) of each account's vote power. Vote power can be delegated either
 * by calling the {delegate} function directly, or by providing a signature to be used with {delegateBySig}. Voting
 * power can be queried through the public accessors {getCurrentVotes} and {getPriorVotes}.
 *
 * By default, token balance does not account for voting power. This makes transfers cheaper. The downside is that it
 * requires users to delegate to themselves in order to activate checkpoints and have their voting power tracked.
 *
 * _Available since v4.2._
 */
abstract contract ERC20VotesComp is ERC20Votes {
    /**
     * @dev Comp version of the {getVotes} accessor, with `uint96` return type.
     */
    function getCurrentVotes(address account) external view virtual returns (uint96) {
        return SafeCast.toUint96(getVotes(account));
    }

    /**
     * @dev Comp version of the {getPastVotes} accessor, with `uint96` return type.
     */
    function getPriorVotes(address account, uint256 blockNumber) external view virtual returns (uint96) {
        return SafeCast.toUint96(getPastVotes(account, blockNumber));
    }

    /**
     * @dev Maximum token supply. Reduced to `type(uint96).max` (2^96^ - 1) to fit COMP interface.
     */
    function _maxSupply() internal view virtual override returns (uint224) {
        return type(uint96).max;
    }
}

interface IERC20Droppable {
    /// @notice When called, the token must mint some amount of new tokens
    /// to `recipient` based on `oldTokenAmount`, and return the amount of
    /// new tokens minted as `newTokenAmount`.
    /// It does not need to make checks about whether old tokens have been locked.
    /// It MUST check that the caller is indeed the Lockdrop contract.
    function drop(uint256 oldTokenAmount, address recipient) external returns (uint256 newTokenAmount);
}

/// @title Sudoswap governance token contract
/// @author zefram.eth
/// @notice Governance token that's compatible with Compound governor contracts.
/// Supports the SUDO lockdrop.
contract SudoToken is ERC20VotesComp, IERC20Droppable, Owned {
    /// -----------------------------------------------------------------------
    /// Errors
    /// -----------------------------------------------------------------------

    error SudoToken__InvalidInput();
    error SudoToken__TransferDisabled();
    error SudoToken__CallerNotLockdrop();
    error SudoToken__LockdropAlreadyActive();

    /// -----------------------------------------------------------------------
    /// Storage variables
    /// -----------------------------------------------------------------------

    /// @notice The lockdrop contract that can call drop()
    /// @dev Can only be set once
    address public lockdrop;

    /// @notice Flag for whether transfers are enabled
    bool public transferEnabled;

    /// @notice Specific addresses where transfers are enabled
    mapping(address => bool) public allowedFrom;

    /// -----------------------------------------------------------------------
    /// Immutable parameters
    /// -----------------------------------------------------------------------

    /// @notice Multiplier for computing how many tokens to mint in drop() based
    /// on the amount of oldTokens locked. Not scaled.
    uint256 public immutable dropMultiplier;

    constructor(string memory name_, string memory symbol_, address owner_, uint256 dropMultiplier_)
        ERC20(name_, symbol_)
        ERC20Permit(name_)
        Owned(owner_)
    {
        dropMultiplier = dropMultiplier_;
    }

    /// -----------------------------------------------------------------------
    /// Mint
    /// -----------------------------------------------------------------------

    /// @notice Mint the specified amount of tokens to the recipient. Only callable
    /// by the owner.
    /// @param to The token recipient
    /// @param amount The amount of tokens to mint
    function mint(address to, uint256 amount) external onlyOwner {
        _mint(to, amount);
    }

    /// -----------------------------------------------------------------------
    /// Transfer
    /// -----------------------------------------------------------------------

    /// @notice Permanently enable token transferring. Only callable by the owner.
    function enableTransfer() external onlyOwner {
        transferEnabled = true;
    }

    /// @notice Add an address to enable token transferring. Only callable by the owner.
    function addAllowedFrom(address a, bool isAllowed) external onlyOwner {
        allowedFrom[a] = isAllowed;
    }

    /// @inheritdoc ERC20
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal override {
        super._beforeTokenTransfer(from, to, amount);

        if (from != address(0) && !transferEnabled && !allowedFrom[from]) revert SudoToken__TransferDisabled();
    }

    /// -----------------------------------------------------------------------
    /// Lockdrop
    /// -----------------------------------------------------------------------

    /// @notice Sets the lockdrop contract address and activates it. Only callable by the owner.
    /// Can only be called once.
    /// @param lockdrop_ The lockdrop contract
    function activateLockdrop(address lockdrop_) external onlyOwner {
        /// -----------------------------------------------------------------------
        /// Verification
        /// -----------------------------------------------------------------------

        if (lockdrop_ == address(0)) revert SudoToken__InvalidInput();
        if (lockdrop != address(0)) revert SudoToken__LockdropAlreadyActive();

        /// -----------------------------------------------------------------------
        /// State updates
        /// -----------------------------------------------------------------------

        lockdrop = lockdrop_;
    }

    /// @inheritdoc IERC20Droppable
    function drop(uint256 oldTokenAmount, address recipient) external override returns (uint256 newTokenAmount) {
        /// -----------------------------------------------------------------------
        /// Verification
        /// -----------------------------------------------------------------------

        if (msg.sender != lockdrop) revert SudoToken__CallerNotLockdrop();

        /// -----------------------------------------------------------------------
        /// State updates
        /// -----------------------------------------------------------------------

        // mint tokens
        newTokenAmount = oldTokenAmount * dropMultiplier;
        _mint(recipient, newTokenAmount);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"address","name":"owner_","type":"address"},{"internalType":"uint256","name":"dropMultiplier_","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"SudoToken__CallerNotLockdrop","type":"error"},{"inputs":[],"name":"SudoToken__InvalidInput","type":"error"},{"inputs":[],"name":"SudoToken__LockdropAlreadyActive","type":"error"},{"inputs":[],"name":"SudoToken__TransferDisabled","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"delegator","type":"address"},{"indexed":true,"internalType":"address","name":"fromDelegate","type":"address"},{"indexed":true,"internalType":"address","name":"toDelegate","type":"address"}],"name":"DelegateChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"delegate","type":"address"},{"indexed":false,"internalType":"uint256","name":"previousBalance","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newBalance","type":"uint256"}],"name":"DelegateVotesChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"lockdrop_","type":"address"}],"name":"activateLockdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"a","type":"address"},{"internalType":"bool","name":"isAllowed","type":"bool"}],"name":"addAllowedFrom","outputs":[],"stateMutability":"nonpayable","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":"","type":"address"}],"name":"allowedFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint32","name":"pos","type":"uint32"}],"name":"checkpoints","outputs":[{"components":[{"internalType":"uint32","name":"fromBlock","type":"uint32"},{"internalType":"uint224","name":"votes","type":"uint224"}],"internalType":"struct ERC20Votes.Checkpoint","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"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":"account","type":"address"}],"name":"delegates","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"oldTokenAmount","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"drop","outputs":[{"internalType":"uint256","name":"newTokenAmount","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"dropMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"enableTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getCurrentVotes","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getPastTotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getPastVotes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getPriorVotes","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getVotes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lockdrop","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"numCheckpoints","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"transferEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6101606040523480156200001257600080fd5b50604051620031d9380380620031d98339810160408190526200003591620002e4565b818480604051806040016040528060018152602001603160f81b815250878781600390805190602001906200006c92919062000171565b5080516200008290600490602084019062000171565b5050825160208085019190912083518483012060e08290526101008190524660a0818152604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81880181905281830187905260608201869052608082019490945230818401528151808203909301835260c0019052805194019390932091935091906080523060c052610120525050600a80546001600160a01b0319166001600160a01b038616908117909155604051909350600092507f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091508290a3506101405250620003b3915050565b8280546200017f9062000377565b90600052602060002090601f016020900481019282620001a35760008555620001ee565b82601f10620001be57805160ff1916838001178555620001ee565b82800160010185558215620001ee579182015b82811115620001ee578251825591602001919060010190620001d1565b50620001fc92915062000200565b5090565b5b80821115620001fc576000815560010162000201565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200023f57600080fd5b81516001600160401b03808211156200025c576200025c62000217565b604051601f8301601f19908116603f0116810190828211818310171562000287576200028762000217565b81604052838152602092508683858801011115620002a457600080fd5b600091505b83821015620002c85785820183015181830184015290820190620002a9565b83821115620002da5760008385830101525b9695505050505050565b60008060008060808587031215620002fb57600080fd5b84516001600160401b03808211156200031357600080fd5b62000321888389016200022d565b955060208701519150808211156200033857600080fd5b5062000347878288016200022d565b604087015190945090506001600160a01b03811681146200036757600080fd5b6060959095015193969295505050565b600181811c908216806200038c57607f821691505b602082108103620003ad57634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e051610100516101205161014051612dc462000415600039600081816102e50152610ba40152600061195c015260006119ab01526000611986015260006118df01526000611909015260006119330152612dc46000f3fe608060405234801561001057600080fd5b50600436106102415760003560e01c806370a0823111610145578063a457c2d7116100bd578063d505accf1161008c578063f1127ed811610071578063f1127ed8146105c7578063f1b50c1d14610619578063f2fde38b1461062157600080fd5b8063d505accf1461056e578063dd62ed3e1461058157600080fd5b8063a457c2d714610522578063a9059cbb14610535578063b4b5ea5714610548578063c3cda5201461055b57600080fd5b806387e96a24116101145780638e539e8c116100f95780638e539e8c146104f457806395d89b41146105075780639ab24eb01461050f57600080fd5b806387e96a24146104c15780638da5cb5b146104d457600080fd5b806370a08231146104355780637500806f1461046b578063782d6fe11461047e5780637ecebe00146104ae57600080fd5b806332e07d9a116101d857806340c10f19116101a7578063587cde1e1161018c578063587cde1e146103c15780635c19a95c146103fa5780636fcfff451461040d57600080fd5b806340c10f19146103895780634cd412d51461039c57600080fd5b806332e07d9a146103165780633644e5151461035b57806339509351146103635780633a46b1a81461037657600080fd5b806318b822811161021457806318b82281146102b857806323b872dd146102cd57806327dc95c3146102e0578063313ce5671461030757600080fd5b80630455e6941461024657806306fdde031461027e578063095ea7b31461029357806318160ddd146102a6575b600080fd5b610269610254366004612937565b600c6020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b610286610634565b6040516102759190612952565b6102696102a13660046129c5565b6106c6565b6002545b604051908152602001610275565b6102cb6102c6366004612937565b6106e0565b005b6102696102db3660046129ef565b61084a565b6102aa7f000000000000000000000000000000000000000000000000000000000000000081565b60405160128152602001610275565b600b546103369073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610275565b6102aa61086e565b6102696103713660046129c5565b61087d565b6102aa6103843660046129c5565b6108c9565b6102cb6103973660046129c5565b61096a565b600b546102699074010000000000000000000000000000000000000000900460ff1681565b6103366103cf366004612937565b73ffffffffffffffffffffffffffffffffffffffff9081166000908152600760205260409020541690565b6102cb610408366004612937565b6109f9565b61042061041b366004612937565b610a06565b60405163ffffffff9091168152602001610275565b6102aa610443366004612937565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b6102cb610479366004612a2b565b610a35565b61049161048c3660046129c5565b610b0c565b6040516bffffffffffffffffffffffff9091168152602001610275565b6102aa6104bc366004612937565b610b20565b6102aa6104cf366004612a67565b610b4b565b600a546103369073ffffffffffffffffffffffffffffffffffffffff1681565b6102aa610502366004612a93565b610bd5565b610286610c4b565b6102aa61051d366004612937565b610c5a565b6102696105303660046129c5565b610d3e565b6102696105433660046129c5565b610e0f565b610491610556366004612937565b610e1d565b6102cb610569366004612abd565b610e2b565b6102cb61057c366004612b15565b610fa2565b6102aa61058f366004612b7f565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b6105da6105d5366004612ba9565b611161565b60408051825163ffffffff1681526020928301517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff169281019290925201610275565b6102cb611207565b6102cb61062f366004612937565b6112c9565b60606003805461064390612bde565b80601f016020809104026020016040519081016040528092919081815260200182805461066f90612bde565b80156106bc5780601f10610691576101008083540402835291602001916106bc565b820191906000526020600020905b81548152906001019060200180831161069f57829003601f168201915b5050505050905090565b6000336106d48185856113bb565b60019150505b92915050565b600a5473ffffffffffffffffffffffffffffffffffffffff163314610766576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f554e415554484f52495a4544000000000000000000000000000000000000000060448201526064015b60405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff81166107b3576040517f3643e58e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b5473ffffffffffffffffffffffffffffffffffffffff1615610803576040517fcc080c7000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60003361085885828561156e565b610863858585611645565b506001949350505050565b60006108786118c5565b905090565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff871684529091528120549091906106d490829086906108c4908790612c5a565b6113bb565b6000438210610934576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f4552433230566f7465733a20626c6f636b206e6f7420796574206d696e656400604482015260640161075d565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260086020526040902061096390836119f9565b9392505050565b600a5473ffffffffffffffffffffffffffffffffffffffff1633146109eb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f554e415554484f52495a45440000000000000000000000000000000000000000604482015260640161075d565b6109f58282611b2a565b5050565b610a033382611be0565b50565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600860205260408120546106da90611c7e565b600a5473ffffffffffffffffffffffffffffffffffffffff163314610ab6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f554e415554484f52495a45440000000000000000000000000000000000000000604482015260640161075d565b73ffffffffffffffffffffffffffffffffffffffff919091166000908152600c6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b6000610963610b1b84846108c9565b611d18565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600560205260408120546106da565b600b5460009073ffffffffffffffffffffffffffffffffffffffff163314610b9f576040517f2bf2559000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610bc97f000000000000000000000000000000000000000000000000000000000000000084612c72565b90506106da8282611b2a565b6000438210610c40576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f4552433230566f7465733a20626c6f636b206e6f7420796574206d696e656400604482015260640161075d565b6106da6009836119f9565b60606004805461064390612bde565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600860205260408120548015610d165773ffffffffffffffffffffffffffffffffffffffff8316600090815260086020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8301908110610cdf57610cdf612caf565b60009182526020909120015464010000000090047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16610d19565b60005b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff169392505050565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716845290915281205490919083811015610e02576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f000000000000000000000000000000000000000000000000000000606482015260840161075d565b61086382868684036113bb565b6000336106d4818585611645565b60006106da610b1b83610c5a565b83421115610e95576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f4552433230566f7465733a207369676e61747572652065787069726564000000604482015260640161075d565b604080517fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf602082015273ffffffffffffffffffffffffffffffffffffffff8816918101919091526060810186905260808101859052600090610f1c90610f149060a00160405160208183030381529060405280519060200120611db6565b858585611e1f565b9050610f2781611e47565b8614610f8f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4552433230566f7465733a20696e76616c6964206e6f6e636500000000000000604482015260640161075d565b610f998188611be0565b50505050505050565b8342111561100c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e65000000604482015260640161075d565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c988888861103b8c611e47565b60408051602081019690965273ffffffffffffffffffffffffffffffffffffffff94851690860152929091166060840152608083015260a082015260c0810186905260e00160405160208183030381529060405280519060200120905060006110a382611db6565b905060006110b382878787611e1f565b90508973ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461114a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e61747572650000604482015260640161075d565b6111558a8a8a6113bb565b50505050505050505050565b604080518082019091526000808252602082015273ffffffffffffffffffffffffffffffffffffffff83166000908152600860205260409020805463ffffffff84169081106111b2576111b2612caf565b60009182526020918290206040805180820190915291015463ffffffff8116825264010000000090047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16918101919091529392505050565b600a5473ffffffffffffffffffffffffffffffffffffffff163314611288576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f554e415554484f52495a45440000000000000000000000000000000000000000604482015260640161075d565b600b80547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000179055565b600a5473ffffffffffffffffffffffffffffffffffffffff16331461134a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f554e415554484f52495a45440000000000000000000000000000000000000000604482015260640161075d565b600a80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff831690811790915560405133907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a350565b73ffffffffffffffffffffffffffffffffffffffff831661145d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161075d565b73ffffffffffffffffffffffffffffffffffffffff8216611500576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f7373000000000000000000000000000000000000000000000000000000000000606482015260840161075d565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff8381166000908152600160209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811461163f5781811015611632576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161075d565b61163f84848484036113bb565b50505050565b73ffffffffffffffffffffffffffffffffffffffff83166116e8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f6472657373000000000000000000000000000000000000000000000000000000606482015260840161075d565b73ffffffffffffffffffffffffffffffffffffffff821661178b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f6573730000000000000000000000000000000000000000000000000000000000606482015260840161075d565b611796838383611e7c565b73ffffffffffffffffffffffffffffffffffffffff83166000908152602081905260409020548181101561184c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e63650000000000000000000000000000000000000000000000000000606482015260840161075d565b73ffffffffffffffffffffffffffffffffffffffff848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a361163f848484611f2a565b60003073ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614801561192b57507f000000000000000000000000000000000000000000000000000000000000000046145b1561195557507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b815460009081816005811115611a53576000611a1484611f69565b611a1e9085612cde565b600088815260209020909150869082015463ffffffff161115611a4357809150611a51565b611a4e816001612c5a565b92505b505b80821015611aa0576000611a678383612051565b600088815260209020909150869082015463ffffffff161115611a8c57809150611a9a565b611a97816001612c5a565b92505b50611a53565b8015611aff5760008681526020902081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff015464010000000090047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16611b02565b60005b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff169695505050505050565b611b34828261206c565b6002546bffffffffffffffffffffffff1015611bd2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603060248201527f4552433230566f7465733a20746f74616c20737570706c79207269736b73206f60448201527f766572666c6f77696e6720766f74657300000000000000000000000000000000606482015260840161075d565b61163f60096121738361217f565b73ffffffffffffffffffffffffffffffffffffffff8281166000818152600760208181526040808420805485845282862054949093528787167fffffffffffffffffffffffff00000000000000000000000000000000000000008416811790915590519190951694919391928592917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a461163f828483612363565b600063ffffffff821115611d14576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203360448201527f3220626974730000000000000000000000000000000000000000000000000000606482015260840161075d565b5090565b60006bffffffffffffffffffffffff821115611d14576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203960448201527f3620626974730000000000000000000000000000000000000000000000000000606482015260840161075d565b60006106da611dc36118c5565b836040517f19010000000000000000000000000000000000000000000000000000000000006020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b6000806000611e3087878787612508565b91509150611e3d816125f7565b5095945050505050565b73ffffffffffffffffffffffffffffffffffffffff811660009081526005602052604090208054600181018255905b50919050565b73ffffffffffffffffffffffffffffffffffffffff831615801590611ebc5750600b5474010000000000000000000000000000000000000000900460ff16155b8015611eee575073ffffffffffffffffffffffffffffffffffffffff83166000908152600c602052604090205460ff16155b15611f25576040517f12e2915200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505050565b73ffffffffffffffffffffffffffffffffffffffff838116600090815260076020526040808220548584168352912054611f2592918216911683612363565b600081600003611f7b57506000919050565b60006001611f88846127aa565b901c6001901b90506001818481611fa157611fa1612cf5565b048201901c90506001818481611fb957611fb9612cf5565b048201901c90506001818481611fd157611fd1612cf5565b048201901c90506001818481611fe957611fe9612cf5565b048201901c9050600181848161200157612001612cf5565b048201901c9050600181848161201957612019612cf5565b048201901c9050600181848161203157612031612cf5565b048201901c90506109638182858161204b5761204b612cf5565b0461283e565b60006120606002848418612d24565b61096390848416612c5a565b73ffffffffffffffffffffffffffffffffffffffff82166120e9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161075d565b6120f560008383611e7c565b80600260008282546121079190612c5a565b909155505073ffffffffffffffffffffffffffffffffffffffff8216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36109f560008383611f2a565b60006109638284612c5a565b825460009081908181156121ff5760008781526020902082017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0160408051808201909152905463ffffffff8116825264010000000090047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166020820152612214565b60408051808201909152600080825260208201525b905080602001517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16935061224984868863ffffffff16565b92506000821180156122615750805163ffffffff1643145b156122d95761226f83612854565b60008881526020902083017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0180547bffffffffffffffffffffffffffffffffffffffffffffffffffffffff929092166401000000000263ffffffff909216919091179055612359565b8660405180604001604052806122ee43611c7e565b63ffffffff16815260200161230286612854565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff90811690915282546001810184556000938452602093849020835194909301519091166401000000000263ffffffff909316929092179101555b5050935093915050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415801561239f5750600081115b15611f255773ffffffffffffffffffffffffffffffffffffffff8316156124545773ffffffffffffffffffffffffffffffffffffffff8316600090815260086020526040812081906123f4906129028561217f565b915091508473ffffffffffffffffffffffffffffffffffffffff167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248383604051612449929190918252602082015260400190565b60405180910390a250505b73ffffffffffffffffffffffffffffffffffffffff821615611f255773ffffffffffffffffffffffffffffffffffffffff8216600090815260086020526040812081906124a4906121738561217f565b915091508373ffffffffffffffffffffffffffffffffffffffff167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a72483836040516124f9929190918252602082015260400190565b60405180910390a25050505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561253f57506000905060036125ee565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612593573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff81166125e7576000600192509250506125ee565b9150600090505b94509492505050565b600081600481111561260b5761260b612d5f565b036126135750565b600181600481111561262757612627612d5f565b0361268e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161075d565b60028160048111156126a2576126a2612d5f565b03612709576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161075d565b600381600481111561271d5761271d612d5f565b03610a03576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f7565000000000000000000000000000000000000000000000000000000000000606482015260840161075d565b600080608083901c156127bf57608092831c92015b604083901c156127d157604092831c92015b602083901c156127e357602092831c92015b601083901c156127f557601092831c92015b600883901c1561280757600892831c92015b600483901c1561281957600492831c92015b600283901c1561282b57600292831c92015b600183901c156106da5760010192915050565b600081831061284d5781610963565b5090919050565b60007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff821115611d14576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203260448201527f3234206269747300000000000000000000000000000000000000000000000000606482015260840161075d565b60006109638284612cde565b803573ffffffffffffffffffffffffffffffffffffffff8116811461293257600080fd5b919050565b60006020828403121561294957600080fd5b6109638261290e565b600060208083528351808285015260005b8181101561297f57858101830151858201604001528201612963565b81811115612991576000604083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016929092016040019392505050565b600080604083850312156129d857600080fd5b6129e18361290e565b946020939093013593505050565b600080600060608486031215612a0457600080fd5b612a0d8461290e565b9250612a1b6020850161290e565b9150604084013590509250925092565b60008060408385031215612a3e57600080fd5b612a478361290e565b915060208301358015158114612a5c57600080fd5b809150509250929050565b60008060408385031215612a7a57600080fd5b82359150612a8a6020840161290e565b90509250929050565b600060208284031215612aa557600080fd5b5035919050565b803560ff8116811461293257600080fd5b60008060008060008060c08789031215612ad657600080fd5b612adf8761290e565b95506020870135945060408701359350612afb60608801612aac565b92506080870135915060a087013590509295509295509295565b600080600080600080600060e0888a031215612b3057600080fd5b612b398861290e565b9650612b476020890161290e565b95506040880135945060608801359350612b6360808901612aac565b925060a0880135915060c0880135905092959891949750929550565b60008060408385031215612b9257600080fd5b612b9b8361290e565b9150612a8a6020840161290e565b60008060408385031215612bbc57600080fd5b612bc58361290e565b9150602083013563ffffffff81168114612a5c57600080fd5b600181811c90821680612bf257607f821691505b602082108103611e76577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008219821115612c6d57612c6d612c2b565b500190565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612caa57612caa612c2b565b500290565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600082821015612cf057612cf0612c2b565b500390565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600082612d5a577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fdfea2646970667358221220941a416624488a9e6e2a04741df09cd0e6ac5d5a15f8d9652f84c927a171346664736f6c634300080e0033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000ca413ad62b215bb5cb7cae02eb8d4158f407a251000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000000000000000155355444f20474f5645524e414e434520544f4b454e000000000000000000000000000000000000000000000000000000000000000000000000000000000000045355444f00000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102415760003560e01c806370a0823111610145578063a457c2d7116100bd578063d505accf1161008c578063f1127ed811610071578063f1127ed8146105c7578063f1b50c1d14610619578063f2fde38b1461062157600080fd5b8063d505accf1461056e578063dd62ed3e1461058157600080fd5b8063a457c2d714610522578063a9059cbb14610535578063b4b5ea5714610548578063c3cda5201461055b57600080fd5b806387e96a24116101145780638e539e8c116100f95780638e539e8c146104f457806395d89b41146105075780639ab24eb01461050f57600080fd5b806387e96a24146104c15780638da5cb5b146104d457600080fd5b806370a08231146104355780637500806f1461046b578063782d6fe11461047e5780637ecebe00146104ae57600080fd5b806332e07d9a116101d857806340c10f19116101a7578063587cde1e1161018c578063587cde1e146103c15780635c19a95c146103fa5780636fcfff451461040d57600080fd5b806340c10f19146103895780634cd412d51461039c57600080fd5b806332e07d9a146103165780633644e5151461035b57806339509351146103635780633a46b1a81461037657600080fd5b806318b822811161021457806318b82281146102b857806323b872dd146102cd57806327dc95c3146102e0578063313ce5671461030757600080fd5b80630455e6941461024657806306fdde031461027e578063095ea7b31461029357806318160ddd146102a6575b600080fd5b610269610254366004612937565b600c6020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b610286610634565b6040516102759190612952565b6102696102a13660046129c5565b6106c6565b6002545b604051908152602001610275565b6102cb6102c6366004612937565b6106e0565b005b6102696102db3660046129ef565b61084a565b6102aa7f000000000000000000000000000000000000000000000000000000000000271081565b60405160128152602001610275565b600b546103369073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610275565b6102aa61086e565b6102696103713660046129c5565b61087d565b6102aa6103843660046129c5565b6108c9565b6102cb6103973660046129c5565b61096a565b600b546102699074010000000000000000000000000000000000000000900460ff1681565b6103366103cf366004612937565b73ffffffffffffffffffffffffffffffffffffffff9081166000908152600760205260409020541690565b6102cb610408366004612937565b6109f9565b61042061041b366004612937565b610a06565b60405163ffffffff9091168152602001610275565b6102aa610443366004612937565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b6102cb610479366004612a2b565b610a35565b61049161048c3660046129c5565b610b0c565b6040516bffffffffffffffffffffffff9091168152602001610275565b6102aa6104bc366004612937565b610b20565b6102aa6104cf366004612a67565b610b4b565b600a546103369073ffffffffffffffffffffffffffffffffffffffff1681565b6102aa610502366004612a93565b610bd5565b610286610c4b565b6102aa61051d366004612937565b610c5a565b6102696105303660046129c5565b610d3e565b6102696105433660046129c5565b610e0f565b610491610556366004612937565b610e1d565b6102cb610569366004612abd565b610e2b565b6102cb61057c366004612b15565b610fa2565b6102aa61058f366004612b7f565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b6105da6105d5366004612ba9565b611161565b60408051825163ffffffff1681526020928301517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff169281019290925201610275565b6102cb611207565b6102cb61062f366004612937565b6112c9565b60606003805461064390612bde565b80601f016020809104026020016040519081016040528092919081815260200182805461066f90612bde565b80156106bc5780601f10610691576101008083540402835291602001916106bc565b820191906000526020600020905b81548152906001019060200180831161069f57829003601f168201915b5050505050905090565b6000336106d48185856113bb565b60019150505b92915050565b600a5473ffffffffffffffffffffffffffffffffffffffff163314610766576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f554e415554484f52495a4544000000000000000000000000000000000000000060448201526064015b60405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff81166107b3576040517f3643e58e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b5473ffffffffffffffffffffffffffffffffffffffff1615610803576040517fcc080c7000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60003361085885828561156e565b610863858585611645565b506001949350505050565b60006108786118c5565b905090565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff871684529091528120549091906106d490829086906108c4908790612c5a565b6113bb565b6000438210610934576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f4552433230566f7465733a20626c6f636b206e6f7420796574206d696e656400604482015260640161075d565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260086020526040902061096390836119f9565b9392505050565b600a5473ffffffffffffffffffffffffffffffffffffffff1633146109eb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f554e415554484f52495a45440000000000000000000000000000000000000000604482015260640161075d565b6109f58282611b2a565b5050565b610a033382611be0565b50565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600860205260408120546106da90611c7e565b600a5473ffffffffffffffffffffffffffffffffffffffff163314610ab6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f554e415554484f52495a45440000000000000000000000000000000000000000604482015260640161075d565b73ffffffffffffffffffffffffffffffffffffffff919091166000908152600c6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b6000610963610b1b84846108c9565b611d18565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600560205260408120546106da565b600b5460009073ffffffffffffffffffffffffffffffffffffffff163314610b9f576040517f2bf2559000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610bc97f000000000000000000000000000000000000000000000000000000000000271084612c72565b90506106da8282611b2a565b6000438210610c40576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f4552433230566f7465733a20626c6f636b206e6f7420796574206d696e656400604482015260640161075d565b6106da6009836119f9565b60606004805461064390612bde565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600860205260408120548015610d165773ffffffffffffffffffffffffffffffffffffffff8316600090815260086020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8301908110610cdf57610cdf612caf565b60009182526020909120015464010000000090047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16610d19565b60005b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff169392505050565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716845290915281205490919083811015610e02576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f000000000000000000000000000000000000000000000000000000606482015260840161075d565b61086382868684036113bb565b6000336106d4818585611645565b60006106da610b1b83610c5a565b83421115610e95576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f4552433230566f7465733a207369676e61747572652065787069726564000000604482015260640161075d565b604080517fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf602082015273ffffffffffffffffffffffffffffffffffffffff8816918101919091526060810186905260808101859052600090610f1c90610f149060a00160405160208183030381529060405280519060200120611db6565b858585611e1f565b9050610f2781611e47565b8614610f8f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4552433230566f7465733a20696e76616c6964206e6f6e636500000000000000604482015260640161075d565b610f998188611be0565b50505050505050565b8342111561100c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e65000000604482015260640161075d565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c988888861103b8c611e47565b60408051602081019690965273ffffffffffffffffffffffffffffffffffffffff94851690860152929091166060840152608083015260a082015260c0810186905260e00160405160208183030381529060405280519060200120905060006110a382611db6565b905060006110b382878787611e1f565b90508973ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461114a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e61747572650000604482015260640161075d565b6111558a8a8a6113bb565b50505050505050505050565b604080518082019091526000808252602082015273ffffffffffffffffffffffffffffffffffffffff83166000908152600860205260409020805463ffffffff84169081106111b2576111b2612caf565b60009182526020918290206040805180820190915291015463ffffffff8116825264010000000090047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16918101919091529392505050565b600a5473ffffffffffffffffffffffffffffffffffffffff163314611288576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f554e415554484f52495a45440000000000000000000000000000000000000000604482015260640161075d565b600b80547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000179055565b600a5473ffffffffffffffffffffffffffffffffffffffff16331461134a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f554e415554484f52495a45440000000000000000000000000000000000000000604482015260640161075d565b600a80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff831690811790915560405133907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a350565b73ffffffffffffffffffffffffffffffffffffffff831661145d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161075d565b73ffffffffffffffffffffffffffffffffffffffff8216611500576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f7373000000000000000000000000000000000000000000000000000000000000606482015260840161075d565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff8381166000908152600160209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811461163f5781811015611632576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161075d565b61163f84848484036113bb565b50505050565b73ffffffffffffffffffffffffffffffffffffffff83166116e8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f6472657373000000000000000000000000000000000000000000000000000000606482015260840161075d565b73ffffffffffffffffffffffffffffffffffffffff821661178b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f6573730000000000000000000000000000000000000000000000000000000000606482015260840161075d565b611796838383611e7c565b73ffffffffffffffffffffffffffffffffffffffff83166000908152602081905260409020548181101561184c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e63650000000000000000000000000000000000000000000000000000606482015260840161075d565b73ffffffffffffffffffffffffffffffffffffffff848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a361163f848484611f2a565b60003073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000003446dd70b2d52a6bf4a5a192d9b0a161295ab7f91614801561192b57507f000000000000000000000000000000000000000000000000000000000000000146145b1561195557507fb3b3022f55bdf5ca27f79d96e87b05e17bc730a7cf03af502e0e27e4d9dd19c190565b50604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6020808301919091527ff0bb6f4d633403ce2c047cc86e25d594c59a6186128b6367c1ec2d28dd483191828401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b815460009081816005811115611a53576000611a1484611f69565b611a1e9085612cde565b600088815260209020909150869082015463ffffffff161115611a4357809150611a51565b611a4e816001612c5a565b92505b505b80821015611aa0576000611a678383612051565b600088815260209020909150869082015463ffffffff161115611a8c57809150611a9a565b611a97816001612c5a565b92505b50611a53565b8015611aff5760008681526020902081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff015464010000000090047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16611b02565b60005b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff169695505050505050565b611b34828261206c565b6002546bffffffffffffffffffffffff1015611bd2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603060248201527f4552433230566f7465733a20746f74616c20737570706c79207269736b73206f60448201527f766572666c6f77696e6720766f74657300000000000000000000000000000000606482015260840161075d565b61163f60096121738361217f565b73ffffffffffffffffffffffffffffffffffffffff8281166000818152600760208181526040808420805485845282862054949093528787167fffffffffffffffffffffffff00000000000000000000000000000000000000008416811790915590519190951694919391928592917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a461163f828483612363565b600063ffffffff821115611d14576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203360448201527f3220626974730000000000000000000000000000000000000000000000000000606482015260840161075d565b5090565b60006bffffffffffffffffffffffff821115611d14576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203960448201527f3620626974730000000000000000000000000000000000000000000000000000606482015260840161075d565b60006106da611dc36118c5565b836040517f19010000000000000000000000000000000000000000000000000000000000006020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b6000806000611e3087878787612508565b91509150611e3d816125f7565b5095945050505050565b73ffffffffffffffffffffffffffffffffffffffff811660009081526005602052604090208054600181018255905b50919050565b73ffffffffffffffffffffffffffffffffffffffff831615801590611ebc5750600b5474010000000000000000000000000000000000000000900460ff16155b8015611eee575073ffffffffffffffffffffffffffffffffffffffff83166000908152600c602052604090205460ff16155b15611f25576040517f12e2915200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505050565b73ffffffffffffffffffffffffffffffffffffffff838116600090815260076020526040808220548584168352912054611f2592918216911683612363565b600081600003611f7b57506000919050565b60006001611f88846127aa565b901c6001901b90506001818481611fa157611fa1612cf5565b048201901c90506001818481611fb957611fb9612cf5565b048201901c90506001818481611fd157611fd1612cf5565b048201901c90506001818481611fe957611fe9612cf5565b048201901c9050600181848161200157612001612cf5565b048201901c9050600181848161201957612019612cf5565b048201901c9050600181848161203157612031612cf5565b048201901c90506109638182858161204b5761204b612cf5565b0461283e565b60006120606002848418612d24565b61096390848416612c5a565b73ffffffffffffffffffffffffffffffffffffffff82166120e9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161075d565b6120f560008383611e7c565b80600260008282546121079190612c5a565b909155505073ffffffffffffffffffffffffffffffffffffffff8216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36109f560008383611f2a565b60006109638284612c5a565b825460009081908181156121ff5760008781526020902082017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0160408051808201909152905463ffffffff8116825264010000000090047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166020820152612214565b60408051808201909152600080825260208201525b905080602001517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16935061224984868863ffffffff16565b92506000821180156122615750805163ffffffff1643145b156122d95761226f83612854565b60008881526020902083017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0180547bffffffffffffffffffffffffffffffffffffffffffffffffffffffff929092166401000000000263ffffffff909216919091179055612359565b8660405180604001604052806122ee43611c7e565b63ffffffff16815260200161230286612854565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff90811690915282546001810184556000938452602093849020835194909301519091166401000000000263ffffffff909316929092179101555b5050935093915050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415801561239f5750600081115b15611f255773ffffffffffffffffffffffffffffffffffffffff8316156124545773ffffffffffffffffffffffffffffffffffffffff8316600090815260086020526040812081906123f4906129028561217f565b915091508473ffffffffffffffffffffffffffffffffffffffff167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248383604051612449929190918252602082015260400190565b60405180910390a250505b73ffffffffffffffffffffffffffffffffffffffff821615611f255773ffffffffffffffffffffffffffffffffffffffff8216600090815260086020526040812081906124a4906121738561217f565b915091508373ffffffffffffffffffffffffffffffffffffffff167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a72483836040516124f9929190918252602082015260400190565b60405180910390a25050505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561253f57506000905060036125ee565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612593573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff81166125e7576000600192509250506125ee565b9150600090505b94509492505050565b600081600481111561260b5761260b612d5f565b036126135750565b600181600481111561262757612627612d5f565b0361268e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161075d565b60028160048111156126a2576126a2612d5f565b03612709576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161075d565b600381600481111561271d5761271d612d5f565b03610a03576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f7565000000000000000000000000000000000000000000000000000000000000606482015260840161075d565b600080608083901c156127bf57608092831c92015b604083901c156127d157604092831c92015b602083901c156127e357602092831c92015b601083901c156127f557601092831c92015b600883901c1561280757600892831c92015b600483901c1561281957600492831c92015b600283901c1561282b57600292831c92015b600183901c156106da5760010192915050565b600081831061284d5781610963565b5090919050565b60007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff821115611d14576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203260448201527f3234206269747300000000000000000000000000000000000000000000000000606482015260840161075d565b60006109638284612cde565b803573ffffffffffffffffffffffffffffffffffffffff8116811461293257600080fd5b919050565b60006020828403121561294957600080fd5b6109638261290e565b600060208083528351808285015260005b8181101561297f57858101830151858201604001528201612963565b81811115612991576000604083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016929092016040019392505050565b600080604083850312156129d857600080fd5b6129e18361290e565b946020939093013593505050565b600080600060608486031215612a0457600080fd5b612a0d8461290e565b9250612a1b6020850161290e565b9150604084013590509250925092565b60008060408385031215612a3e57600080fd5b612a478361290e565b915060208301358015158114612a5c57600080fd5b809150509250929050565b60008060408385031215612a7a57600080fd5b82359150612a8a6020840161290e565b90509250929050565b600060208284031215612aa557600080fd5b5035919050565b803560ff8116811461293257600080fd5b60008060008060008060c08789031215612ad657600080fd5b612adf8761290e565b95506020870135945060408701359350612afb60608801612aac565b92506080870135915060a087013590509295509295509295565b600080600080600080600060e0888a031215612b3057600080fd5b612b398861290e565b9650612b476020890161290e565b95506040880135945060608801359350612b6360808901612aac565b925060a0880135915060c0880135905092959891949750929550565b60008060408385031215612b9257600080fd5b612b9b8361290e565b9150612a8a6020840161290e565b60008060408385031215612bbc57600080fd5b612bc58361290e565b9150602083013563ffffffff81168114612a5c57600080fd5b600181811c90821680612bf257607f821691505b602082108103611e76577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008219821115612c6d57612c6d612c2b565b500190565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612caa57612caa612c2b565b500290565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600082821015612cf057612cf0612c2b565b500390565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600082612d5a577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fdfea2646970667358221220941a416624488a9e6e2a04741df09cd0e6ac5d5a15f8d9652f84c927a171346664736f6c634300080e0033

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

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000ca413ad62b215bb5cb7cae02eb8d4158f407a251000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000000000000000155355444f20474f5645524e414e434520544f4b454e000000000000000000000000000000000000000000000000000000000000000000000000000000000000045355444f00000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name_ (string): SUDO GOVERNANCE TOKEN
Arg [1] : symbol_ (string): SUDO
Arg [2] : owner_ (address): 0xcA413Ad62b215bB5CB7CAe02eb8D4158F407a251
Arg [3] : dropMultiplier_ (uint256): 10000

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 000000000000000000000000ca413ad62b215bb5cb7cae02eb8d4158f407a251
Arg [3] : 0000000000000000000000000000000000000000000000000000000000002710
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000015
Arg [5] : 5355444f20474f5645524e414e434520544f4b454e0000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [7] : 5355444f00000000000000000000000000000000000000000000000000000000


Deployed Bytecode Sourcemap

105032:4708:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;105926:43;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;571:14:1;;564:22;546:41;;534:2;519:18;105926:43:0;;;;;;;;10321:100;;;:::i;:::-;;;;;;;:::i;12672:201::-;;;;;;:::i;:::-;;:::i;11441:108::-;11529:12;;11441:108;;;1664:25:1;;;1652:2;1637:18;11441:108:0;1518:177:1;108321:654:0;;;;;;:::i;:::-;;:::i;:::-;;13453:295;;;;;;:::i;:::-;;:::i;106310:39::-;;;;;11283:93;;;11366:2;2175:36:1;;2163:2;2148:18;11283:93:0;2033:184:1;105738:23:0;;;;;;;;;;;;2398:42:1;2386:55;;;2368:74;;2356:2;2341:18;105738:23:0;2222:226:1;53640:115:0;;;:::i;14157:238::-;;;;;;:::i;:::-;;:::i;94902:268::-;;;;;;:::i;:::-;;:::i;106978:97::-;;;;;;:::i;:::-;;:::i;105826:27::-;;;;;;;;;;;;94240:128;;;;;;:::i;:::-;94341:19;;;;94314:7;94341:19;;;:10;:19;;;;;;;;94240:128;97820:114;;;;;;:::i;:::-;;:::i;93996:151::-;;;;;;:::i;:::-;;:::i;:::-;;;2809:10:1;2797:23;;;2779:42;;2767:2;2752:18;93996:151:0;2635:192:1;11612:127:0;;;;;;:::i;:::-;11713:18;;11686:7;11713:18;;;;;;;;;;;;11612:127;107533:115;;;;;;:::i;:::-;;:::i;103926:179::-;;;;;;:::i;:::-;;:::i;:::-;;;3358:26:1;3346:39;;;3328:58;;3316:2;3301:18;103926:179:0;3184:208:1;53382:128:0;;;;;;:::i;:::-;;:::i;109020:717::-;;;;;;:::i;:::-;;:::i;701:20::-;;;;;;;;;95455:259;;;;;;:::i;:::-;;:::i;10540:104::-;;;:::i;94452:248::-;;;;;;:::i;:::-;;:::i;14898:436::-;;;;;;:::i;:::-;;:::i;11945:193::-;;;;;;:::i;:::-;;:::i;103672:143::-;;;;;;:::i;:::-;;:::i;98016:591::-;;;;;;:::i;:::-;;:::i;52671:645::-;;;;;;:::i;:::-;;:::i;12201:151::-;;;;;;:::i;:::-;12317:18;;;;12290:7;12317:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;12201:151;93766:150;;;;;;:::i;:::-;;:::i;:::-;;;;5993:13:1;;6008:10;5989:30;5971:49;;6080:4;6068:17;;;6062:24;6088:58;6058:89;6036:20;;;6029:119;;;;5944:18;93766:150:0;5769:385:1;107349:86:0;;;:::i;1345:165::-;;;;;;:::i;:::-;;:::i;10321:100::-;10375:13;10408:5;10401:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10321:100;:::o;12672:201::-;12755:4;8211:10;12811:32;8211:10;12827:7;12836:6;12811:8;:32::i;:::-;12861:4;12854:11;;;12672:201;;;;;:::o;108321:654::-;792:5;;;;778:10;:19;770:44;;;;;;;6803:2:1;770:44:0;;;6785:21:1;6842:2;6822:18;;;6815:30;6881:14;6861:18;;;6854:42;6913:18;;770:44:0;;;;;;;;;108598:23:::1;::::0;::::1;108594:61;;108630:25;;;;;;;;;;;;;;108594:61;108670:8;::::0;:22:::1;:8;:22:::0;108666:69:::1;;108701:34;;;;;;;;;;;;;;108666:69;108947:8;:20:::0;;;::::1;;::::0;;;::::1;::::0;;;::::1;::::0;;108321:654::o;13453:295::-;13584:4;8211:10;13642:38;13658:4;8211:10;13673:6;13642:15;:38::i;:::-;13691:27;13701:4;13707:2;13711:6;13691:9;:27::i;:::-;-1:-1:-1;13736:4:0;;13453:295;-1:-1:-1;;;;13453:295:0:o;53640:115::-;53700:7;53727:20;:18;:20::i;:::-;53720:27;;53640:115;:::o;14157:238::-;8211:10;14245:4;12317:18;;;:11;:18;;;;;;;;;:27;;;;;;;;;;14245:4;;8211:10;14301:64;;8211:10;;12317:27;;14326:38;;14354:10;;14326:38;:::i;:::-;14301:8;:64::i;94902:268::-;95000:7;95042:12;95028:11;:26;95020:70;;;;;;;7466:2:1;95020:70:0;;;7448:21:1;7505:2;7485:18;;;7478:30;7544:33;7524:18;;;7517:61;7595:18;;95020:70:0;7264:355:1;95020:70:0;95127:21;;;;;;;:12;:21;;;;;95108:54;;95150:11;95108:18;:54::i;:::-;95101:61;94902:268;-1:-1:-1;;;94902:268:0:o;106978:97::-;792:5;;;;778:10;:19;770:44;;;;;;;6803:2:1;770:44:0;;;6785:21:1;6842:2;6822:18;;;6815:30;6881:14;6861:18;;;6854:42;6913:18;;770:44:0;6601:336:1;770:44:0;107050:17:::1;107056:2;107060:6;107050:5;:17::i;:::-;106978:97:::0;;:::o;97820:114::-;97892:34;8211:10;97916:9;97892;:34::i;:::-;97820:114;:::o;93996:151::-;94110:21;;;94066:6;94110:21;;;:12;:21;;;;;:28;94092:47;;:17;:47::i;107533:115::-;792:5;;;;778:10;:19;770:44;;;;;;;6803:2:1;770:44:0;;;6785:21:1;6842:2;6822:18;;;6815:30;6881:14;6861:18;;;6854:42;6913:18;;770:44:0;6601:336:1;770:44:0;107614:14:::1;::::0;;;::::1;;::::0;;;:11:::1;:14;::::0;;;;:26;;;::::1;::::0;::::1;;::::0;;;::::1;::::0;;107533:115::o;103926:179::-;104018:6;104044:53;104062:34;104075:7;104084:11;104062:12;:34::i;:::-;104044:17;:53::i;53382:128::-;53478:14;;;53451:7;53478:14;;;:7;:14;;;;;50538;53478:24;50446:114;109020:717;109355:8;;109104:22;;109355:8;;109341:10;:22;109337:65;;109372:30;;;;;;;;;;;;;;109337:65;109655:31;109672:14;109655;:31;:::i;:::-;109638:48;;109697:32;109703:9;109714:14;109697:5;:32::i;95455:259::-;95542:7;95584:12;95570:11;:26;95562:70;;;;;;;7466:2:1;95562:70:0;;;7448:21:1;7505:2;7485:18;;;7478:30;7544:33;7524:18;;;7517:61;7595:18;;95562:70:0;7264:355:1;95562:70:0;95650:56;95669:23;95694:11;95650:18;:56::i;10540:104::-;10596:13;10629:7;10622:14;;;;;:::i;94452:248::-;94559:21;;;94525:7;94559:21;;;:12;:21;;;;;:28;94630:8;;:51;;94645:21;;;;;;;:12;:21;;;;;:30;;94667:7;;;;94645:30;;;;;;:::i;:::-;;;;;;;;;;:36;;;;;;94630:51;;;94641:1;94630:51;94623:58;;;94452:248;-1:-1:-1;;;94452:248:0:o;14898:436::-;8211:10;14991:4;12317:18;;;:11;:18;;;;;;;;;:27;;;;;;;;;;14991:4;;8211:10;15138:15;15118:16;:35;;15110:85;;;;;;;8248:2:1;15110:85:0;;;8230:21:1;8287:2;8267:18;;;8260:30;8326:34;8306:18;;;8299:62;8397:7;8377:18;;;8370:35;8422:19;;15110:85:0;8046:401:1;15110:85:0;15231:60;15240:5;15247:7;15275:15;15256:16;:34;15231:8;:60::i;11945:193::-;12024:4;8211:10;12080:28;8211:10;12097:2;12101:6;12080:9;:28::i;103672:143::-;103745:6;103771:36;103789:17;103798:7;103789:8;:17::i;98016:591::-;98243:6;98224:15;:25;;98216:67;;;;;;;8654:2:1;98216:67:0;;;8636:21:1;8693:2;8673:18;;;8666:30;8732:31;8712:18;;;8705:59;8781:18;;98216:67:0;8452:353:1;98216:67:0;98366:58;;;93446:71;98366:58;;;9041:25:1;9114:42;9102:55;;9082:18;;;9075:83;;;;9174:18;;;9167:34;;;9217:18;;;9210:34;;;98294:14:0;;98311:174;;98339:87;;9013:19:1;;98366:58:0;;;;;;;;;;;;98356:69;;;;;;98339:16;:87::i;:::-;98441:1;98457;98473;98311:13;:174::i;:::-;98294:191;;98513:17;98523:6;98513:9;:17::i;:::-;98504:5;:26;98496:64;;;;;;;9457:2:1;98496:64:0;;;9439:21:1;9496:2;9476:18;;;9469:30;9535:27;9515:18;;;9508:55;9580:18;;98496:64:0;9255:349:1;98496:64:0;98571:28;98581:6;98589:9;98571;:28::i;:::-;98205:402;98016:591;;;;;;:::o;52671:645::-;52915:8;52896:15;:27;;52888:69;;;;;;;9811:2:1;52888:69:0;;;9793:21:1;9850:2;9830:18;;;9823:30;9889:31;9869:18;;;9862:59;9938:18;;52888:69:0;9609:353:1;52888:69:0;52970:18;51846:95;53030:5;53037:7;53046:5;53053:16;53063:5;53053:9;:16::i;:::-;53001:79;;;;;;10254:25:1;;;;10298:42;10376:15;;;10356:18;;;10349:43;10428:15;;;;10408:18;;;10401:43;10460:18;;;10453:34;10503:19;;;10496:35;10547:19;;;10540:35;;;10226:19;;53001:79:0;;;;;;;;;;;;52991:90;;;;;;52970:111;;53094:12;53109:28;53126:10;53109:16;:28::i;:::-;53094:43;;53150:14;53167:28;53181:4;53187:1;53190;53193;53167:13;:28::i;:::-;53150:45;;53224:5;53214:15;;:6;:15;;;53206:58;;;;;;;10788:2:1;53206:58:0;;;10770:21:1;10827:2;10807:18;;;10800:30;10866:32;10846:18;;;10839:60;10916:18;;53206:58:0;10586:354:1;53206:58:0;53277:31;53286:5;53293:7;53302:5;53277:8;:31::i;:::-;52877:439;;;52671:645;;;;;;;:::o;93766:150::-;-1:-1:-1;;;;;;;;;;;;;;;;;93882:21:0;;;;;;;:12;:21;;;;;:26;;;;;;;;;;;;:::i;:::-;;;;;;;;;;93875:33;;;;;;;;;93882:26;;93875:33;;;;;;;;;;;;;;;;;;;93766:150;-1:-1:-1;;;93766:150:0:o;107349:86::-;792:5;;;;778:10;:19;770:44;;;;;;;6803:2:1;770:44:0;;;6785:21:1;6842:2;6822:18;;;6815:30;6881:14;6861:18;;;6854:42;6913:18;;770:44:0;6601:336:1;770:44:0;107405:15:::1;:22:::0;;;::::1;::::0;::::1;::::0;;107349:86::o;1345:165::-;792:5;;;;778:10;:19;770:44;;;;;;;6803:2:1;770:44:0;;;6785:21:1;6842:2;6822:18;;;6815:30;6881:14;6861:18;;;6854:42;6913:18;;770:44:0;6601:336:1;770:44:0;1426:5:::1;:16:::0;;;::::1;;::::0;::::1;::::0;;::::1;::::0;;;1460:42:::1;::::0;1481:10:::1;::::0;1460:42:::1;::::0;-1:-1:-1;;1460:42:0::1;1345:165:::0;:::o;18925:380::-;19061:19;;;19053:68;;;;;;;11147:2:1;19053:68:0;;;11129:21:1;11186:2;11166:18;;;11159:30;11225:34;11205:18;;;11198:62;11296:6;11276:18;;;11269:34;11320:19;;19053:68:0;10945:400:1;19053:68:0;19140:21;;;19132:68;;;;;;;11552:2:1;19132:68:0;;;11534:21:1;11591:2;11571:18;;;11564:30;11630:34;11610:18;;;11603:62;11701:4;11681:18;;;11674:32;11723:19;;19132:68:0;11350:398:1;19132:68:0;19213:18;;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;19265:32;;1664:25:1;;;19265:32:0;;1637:18:1;19265:32:0;;;;;;;18925:380;;;:::o;19596:453::-;12317:18;;;;19731:24;12317:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;19818:17;19798:37;;19794:248;;19880:6;19860:16;:26;;19852:68;;;;;;;11955:2:1;19852:68:0;;;11937:21:1;11994:2;11974:18;;;11967:30;12033:31;12013:18;;;12006:59;12082:18;;19852:68:0;11753:353:1;19852:68:0;19964:51;19973:5;19980:7;20008:6;19989:16;:25;19964:8;:51::i;:::-;19720:329;19596:453;;;:::o;15804:840::-;15935:18;;;15927:68;;;;;;;12313:2:1;15927:68:0;;;12295:21:1;12352:2;12332:18;;;12325:30;12391:34;12371:18;;;12364:62;12462:7;12442:18;;;12435:35;12487:19;;15927:68:0;12111:401:1;15927:68:0;16014:16;;;16006:64;;;;;;;12719:2:1;16006:64:0;;;12701:21:1;12758:2;12738:18;;;12731:30;12797:34;12777:18;;;12770:62;12868:5;12848:18;;;12841:33;12891:19;;16006:64:0;12517:399:1;16006:64:0;16083:38;16104:4;16110:2;16114:6;16083:20;:38::i;:::-;16156:15;;;16134:19;16156:15;;;;;;;;;;;16190:21;;;;16182:72;;;;;;;13123:2:1;16182:72:0;;;13105:21:1;13162:2;13142:18;;;13135:30;13201:34;13181:18;;;13174:62;13272:8;13252:18;;;13245:36;13298:19;;16182:72:0;12921:402:1;16182:72:0;16290:15;;;;:9;:15;;;;;;;;;;;16308:20;;;16290:38;;16508:13;;;;;;;;;;:23;;;;;;16560:26;;1664:25:1;;;16508:13:0;;16560:26;;1637:18:1;16560:26:0;;;;;;;16599:37;16619:4;16625:2;16629:6;16599:19;:37::i;48257:314::-;48310:7;48342:4;48334:29;48351:12;48334:29;;:66;;;;;48384:16;48367:13;:33;48334:66;48330:234;;;-1:-1:-1;48424:24:0;;48257:314::o;48330:234::-;-1:-1:-1;48760:73:0;;;48510:10;48760:73;;;;14948:25:1;;;;48522:12:0;14989:18:1;;;14982:34;48536:15:0;15032:18:1;;;15025:34;48804:13:0;15075:18:1;;;15068:34;48827:4:0;15118:19:1;;;;15111:84;;;;48760:73:0;;;;;;;;;;14920:19:1;;;;48760:73:0;;;48750:84;;;;;;53640:115::o;95803:1931::-;97020:12;;95902:7;;;97020:12;97118:1;97109:10;;97105:251;;;97136:11;97159:17;97169:6;97159:9;:17::i;:::-;97150:26;;:6;:26;:::i;:::-;102273:25;102335:21;;;102402:4;102389:18;;97136:40;;-1:-1:-1;97233:11:0;;102385:28;;97195:35;;;:49;97191:154;;;97272:3;97265:10;;97191:154;;;97322:7;:3;97328:1;97322:7;:::i;:::-;97316:13;;97191:154;97121:235;97105:251;97381:4;97375:3;:10;97368:251;;;97402:11;97416:23;97429:3;97434:4;97416:12;:23::i;:::-;102273:25;102335:21;;;102402:4;102389:18;;97402:37;;-1:-1:-1;97496:11:0;;102385:28;;97458:35;;;:49;97454:154;;;97535:3;97528:10;;97454:154;;;97585:7;:3;97591:1;97585:7;:::i;:::-;97579:13;;97454:154;97387:232;97368:251;;;97663:9;;:52;;102273:25;102335:21;;;102402:4;102389:18;;102385:28;;97700:8;102385:28;97679:36;;;;;;97663:52;;;97675:1;97663:52;97656:59;;;95803:1931;-1:-1:-1;;;;;;95803:1931:0:o;98913:290::-;98998:28;99010:7;99019:6;98998:11;:28::i;:::-;11529:12;;104320:16;-1:-1:-1;99045:29:0;99037:90;;;;;;;13660:2:1;99037:90:0;;;13642:21:1;13699:2;13679:18;;;13672:30;13738:34;13718:18;;;13711:62;13809:18;13789;;;13782:46;13845:19;;99037:90:0;13458:412:1;99037:90:0;99140:55;99157:23;99182:4;99188:6;99140:16;:55::i;100078:388::-;94341:19;;;;100163:23;94341:19;;;:10;:19;;;;;;;;;;11713:18;;;;;;;100278:21;;;;:33;;;;;;;;;;;100329:54;;94341:19;;;;;11713:18;;100278:33;;94341:19;;;100329:54;;100163:23;100329:54;100396:62;100413:15;100430:9;100441:16;100396;:62::i;71873:190::-;71929:6;71965:16;71956:25;;;71948:76;;;;;;;14077:2:1;71948:76:0;;;14059:21:1;14116:2;14096:18;;;14089:30;14155:34;14135:18;;;14128:62;14226:8;14206:18;;;14199:36;14252:19;;71948:76:0;13875:402:1;71948:76:0;-1:-1:-1;72049:5:0;71873:190::o;67641:::-;67697:6;67733:16;67724:25;;;67716:76;;;;;;;14484:2:1;67716:76:0;;;14466:21:1;14523:2;14503:18;;;14496:30;14562:34;14542:18;;;14535:62;14633:8;14613:18;;;14606:36;14659:19;;67716:76:0;14282:402:1;49484:167:0;49561:7;49588:55;49610:20;:18;:20::i;:::-;49632:10;45131:57;;16557:66:1;45131:57:0;;;16545:79:1;16640:11;;;16633:27;;;16676:12;;;16669:28;;;45094:7:0;;16713:12:1;;45131:57:0;;;;;;;;;;;;45121:68;;;;;;45114:75;;45001:196;;;;;43310:279;43438:7;43459:17;43478:18;43500:25;43511:4;43517:1;43520;43523;43500:10;:25::i;:::-;43458:67;;;;43536:18;43548:5;43536:11;:18::i;:::-;-1:-1:-1;43572:9:0;43310:279;-1:-1:-1;;;;;43310:279:0:o;53893:207::-;54014:14;;;53953:15;54014:14;;;:7;:14;;;;;50538;;50675:1;50657:19;;;;50538:14;54075:17;53970:130;53893:207;;;:::o;107683:268::-;107845:18;;;;;;;:38;;-1:-1:-1;107868:15:0;;;;;;;107867:16;107845:38;:60;;;;-1:-1:-1;107888:17:0;;;;;;;:11;:17;;;;;;;;107887:18;107845:60;107841:102;;;107914:29;;;;;;;;;;;;;;107841:102;107683:268;;;:::o;99638:262::-;94341:19;;;;94314:7;94341:19;;;:10;:19;;;;;;;;;;;;;;;99836:56;;94341:19;;;;;99885:6;99836:16;:56::i;28039:1673::-;28087:7;28111:1;28116;28111:6;28107:47;;-1:-1:-1;28141:1:0;;28039:1673;-1:-1:-1;28039:1673:0:o;28107:47::-;28845:14;28879:1;28868:7;28873:1;28868:4;:7::i;:::-;:12;;28862:1;:19;;28845:36;;29347:1;29336:6;29332:1;:10;;;;;:::i;:::-;;29323:6;:19;29322:26;;29313:35;;29397:1;29386:6;29382:1;:10;;;;;:::i;:::-;;29373:6;:19;29372:26;;29363:35;;29447:1;29436:6;29432:1;:10;;;;;:::i;:::-;;29423:6;:19;29422:26;;29413:35;;29497:1;29486:6;29482:1;:10;;;;;:::i;:::-;;29473:6;:19;29472:26;;29463:35;;29547:1;29536:6;29532:1;:10;;;;;:::i;:::-;;29523:6;:19;29522:26;;29513:35;;29597:1;29586:6;29582:1;:10;;;;;:::i;:::-;;29573:6;:19;29572:26;;29563:35;;29647:1;29636:6;29632:1;:10;;;;;:::i;:::-;;29623:6;:19;29622:26;;29613:35;;29670:23;29674:6;29686;29682:1;:10;;;;;:::i;:::-;;29670:3;:23::i;22440:156::-;22502:7;22577:11;22587:1;22578:5;;;22577:11;:::i;:::-;22567:21;;22568:5;;;22567:21;:::i;16931:548::-;17015:21;;;17007:65;;;;;;;15876:2:1;17007:65:0;;;15858:21:1;15915:2;15895:18;;;15888:30;15954:33;15934:18;;;15927:61;16005:18;;17007:65:0;15674:355:1;17007:65:0;17085:49;17114:1;17118:7;17127:6;17085:20;:49::i;:::-;17163:6;17147:12;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;17318:18:0;;;:9;:18;;;;;;;;;;;:28;;;;;;17373:37;1664:25:1;;;17373:37:0;;1637:18:1;17373:37:0;;;;;;;17423:48;17451:1;17455:7;17464:6;17423:19;:48::i;101970:98::-;102028:7;102055:5;102059:1;102055;:5;:::i;101125:837::-;101362:12;;101299:17;;;;;101440:8;;:59;;102273:25;102335:21;;;102402:4;102389:18;;102385:28;;101491:7;102385:28;101440:59;;;;;;;;;;;;;;;;;;;;;;;;;;;;101451:16;;;;;;;;;-1:-1:-1;101451:16:0;;;;;;;101440:59;101412:87;;101528:7;:13;;;101516:25;;;;101568:20;101571:9;101582:5;101568:2;:20;;:::i;:::-;101556:32;;101615:1;101609:3;:7;:44;;;;-1:-1:-1;101620:17:0;;:33;;101641:12;101620:33;101609:44;101605:339;;;101712:29;101731:9;101712:18;:29::i;:::-;102273:25;102335:21;;;102402:4;102389:18;;102385:28;;101695:7;102385:28;101674:67;;;;;;;;;;;;;;;;;;;101605:339;;;101782:5;101815:94;;;;;;;;101838:31;101856:12;101838:17;:31::i;:::-;101815:94;;;;;;101878:29;101897:9;101878:18;:29::i;:::-;101815:94;;;;;;;101782:146;;;;;;;-1:-1:-1;101782:146:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;101605:339;101387:568;101337:625;101125:837;;;;;;:::o;100474:643::-;100606:3;100599:10;;:3;:10;;;;:24;;;;;100622:1;100613:6;:10;100599:24;100595:515;;;100644:17;;;;100640:224;;100740:17;;;100683;100740;;;:12;:17;;;;;100683;;100723:54;;100759:9;100770:6;100723:16;:54::i;:::-;100682:95;;;;100822:3;100801:47;;;100827:9;100838;100801:47;;;;;;16208:25:1;;;16264:2;16249:18;;16242:34;16196:2;16181:18;;16034:248;100801:47:0;;;;;;;;100663:201;;100640:224;100884:17;;;;100880:219;;100980:17;;;100923;100980;;;:12;:17;;;;;100923;;100963:49;;100999:4;101005:6;100963:16;:49::i;:::-;100922:90;;;;101057:3;101036:47;;;101062:9;101073;101036:47;;;;;;16208:25:1;;;16264:2;16249:18;;16242:34;16196:2;16181:18;;16034:248;101036:47:0;;;;;;;;100903:196;;100474:643;;;:::o;41651:1520::-;41782:7;;42716:66;42703:79;;42699:163;;;-1:-1:-1;42815:1:0;;-1:-1:-1;42819:30:0;42799:51;;42699:163;42976:24;;;42959:14;42976:24;;;;;;;;;16963:25:1;;;17036:4;17024:17;;17004:18;;;16997:45;;;;17058:18;;;17051:34;;;17101:18;;;17094:34;;;42976:24:0;;16935:19:1;;42976:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;42976:24:0;;;;;;-1:-1:-1;;43015:20:0;;;43011:103;;43068:1;43072:29;43052:50;;;;;;;43011:103;43134:6;-1:-1:-1;43142:20:0;;-1:-1:-1;41651:1520:0;;;;;;;;:::o;37043:521::-;37121:20;37112:5;:29;;;;;;;;:::i;:::-;;37108:449;;37043:521;:::o;37108:449::-;37219:29;37210:5;:38;;;;;;;;:::i;:::-;;37206:351;;37265:34;;;;;17530:2:1;37265:34:0;;;17512:21:1;17569:2;17549:18;;;17542:30;17608:26;17588:18;;;17581:54;17652:18;;37265:34:0;17328:348:1;37206:351:0;37330:35;37321:5;:44;;;;;;;;:::i;:::-;;37317:240;;37382:41;;;;;17883:2:1;37382:41:0;;;17865:21:1;17922:2;17902:18;;;17895:30;17961:33;17941:18;;;17934:61;18012:18;;37382:41:0;17681:355:1;37317:240:0;37454:30;37445:5;:39;;;;;;;;:::i;:::-;;37441:116;;37501:44;;;;;18243:2:1;37501:44:0;;;18225:21:1;18282:2;18262:18;;;18255:30;18321:34;18301:18;;;18294:62;18392:4;18372:18;;;18365:32;18414:19;;37501:44:0;18041:398:1;30189:1019:0;30241:7;;30328:3;30319:12;;;:16;30315:102;;30366:3;30356:13;;;;30388;30315:102;30444:2;30435:11;;;:15;30431:99;;30481:2;30471:12;;;;30502;30431:99;30557:2;30548:11;;;:15;30544:99;;30594:2;30584:12;;;;30615;30544:99;30670:2;30661:11;;;:15;30657:99;;30707:2;30697:12;;;;30728;30657:99;30783:1;30774:10;;;:14;30770:96;;30819:1;30809:11;;;;30839;30770:96;30893:1;30884:10;;;:14;30880:96;;30929:1;30919:11;;;;30949;30880:96;31003:1;30994:10;;;:14;30990:96;;31039:1;31029:11;;;;31059;30990:96;31113:1;31104:10;;;:14;31100:66;;31149:1;31139:11;31194:6;30189:1019;-1:-1:-1;;30189:1019:0:o;22215:106::-;22273:7;22304:1;22300;:5;:13;;22312:1;22300:13;;;-1:-1:-1;22308:1:0;;22215:106;-1:-1:-1;22215:106:0:o;59037:195::-;59094:7;59131:17;59122:26;;;59114:78;;;;;;;18646:2:1;59114:78:0;;;18628:21:1;18685:2;18665:18;;;18658:30;18724:34;18704:18;;;18697:62;18795:9;18775:18;;;18768:37;18822:19;;59114:78:0;18444:403:1;102076:103:0;102139:7;102166:5;102170:1;102166;:5;:::i;14:196:1:-;82:20;;142:42;131:54;;121:65;;111:93;;200:1;197;190:12;111:93;14:196;;;:::o;215:186::-;274:6;327:2;315:9;306:7;302:23;298:32;295:52;;;343:1;340;333:12;295:52;366:29;385:9;366:29;:::i;598:656::-;710:4;739:2;768;757:9;750:21;800:6;794:13;843:6;838:2;827:9;823:18;816:34;868:1;878:140;892:6;889:1;886:13;878:140;;;987:14;;;983:23;;977:30;953:17;;;972:2;949:26;942:66;907:10;;878:140;;;1036:6;1033:1;1030:13;1027:91;;;1106:1;1101:2;1092:6;1081:9;1077:22;1073:31;1066:42;1027:91;-1:-1:-1;1170:2:1;1158:15;1175:66;1154:88;1139:104;;;;1245:2;1135:113;;598:656;-1:-1:-1;;;598:656:1:o;1259:254::-;1327:6;1335;1388:2;1376:9;1367:7;1363:23;1359:32;1356:52;;;1404:1;1401;1394:12;1356:52;1427:29;1446:9;1427:29;:::i;:::-;1417:39;1503:2;1488:18;;;;1475:32;;-1:-1:-1;;;1259:254:1:o;1700:328::-;1777:6;1785;1793;1846:2;1834:9;1825:7;1821:23;1817:32;1814:52;;;1862:1;1859;1852:12;1814:52;1885:29;1904:9;1885:29;:::i;:::-;1875:39;;1933:38;1967:2;1956:9;1952:18;1933:38;:::i;:::-;1923:48;;2018:2;2007:9;2003:18;1990:32;1980:42;;1700:328;;;;;:::o;2832:347::-;2897:6;2905;2958:2;2946:9;2937:7;2933:23;2929:32;2926:52;;;2974:1;2971;2964:12;2926:52;2997:29;3016:9;2997:29;:::i;:::-;2987:39;;3076:2;3065:9;3061:18;3048:32;3123:5;3116:13;3109:21;3102:5;3099:32;3089:60;;3145:1;3142;3135:12;3089:60;3168:5;3158:15;;;2832:347;;;;;:::o;3397:254::-;3465:6;3473;3526:2;3514:9;3505:7;3501:23;3497:32;3494:52;;;3542:1;3539;3532:12;3494:52;3578:9;3565:23;3555:33;;3607:38;3641:2;3630:9;3626:18;3607:38;:::i;:::-;3597:48;;3397:254;;;;;:::o;3656:180::-;3715:6;3768:2;3756:9;3747:7;3743:23;3739:32;3736:52;;;3784:1;3781;3774:12;3736:52;-1:-1:-1;3807:23:1;;3656:180;-1:-1:-1;3656:180:1:o;3841:156::-;3907:20;;3967:4;3956:16;;3946:27;;3936:55;;3987:1;3984;3977:12;4002:531;4104:6;4112;4120;4128;4136;4144;4197:3;4185:9;4176:7;4172:23;4168:33;4165:53;;;4214:1;4211;4204:12;4165:53;4237:29;4256:9;4237:29;:::i;:::-;4227:39;;4313:2;4302:9;4298:18;4285:32;4275:42;;4364:2;4353:9;4349:18;4336:32;4326:42;;4387:36;4419:2;4408:9;4404:18;4387:36;:::i;:::-;4377:46;;4470:3;4459:9;4455:19;4442:33;4432:43;;4522:3;4511:9;4507:19;4494:33;4484:43;;4002:531;;;;;;;;:::o;4538:606::-;4649:6;4657;4665;4673;4681;4689;4697;4750:3;4738:9;4729:7;4725:23;4721:33;4718:53;;;4767:1;4764;4757:12;4718:53;4790:29;4809:9;4790:29;:::i;:::-;4780:39;;4838:38;4872:2;4861:9;4857:18;4838:38;:::i;:::-;4828:48;;4923:2;4912:9;4908:18;4895:32;4885:42;;4974:2;4963:9;4959:18;4946:32;4936:42;;4997:37;5029:3;5018:9;5014:19;4997:37;:::i;:::-;4987:47;;5081:3;5070:9;5066:19;5053:33;5043:43;;5133:3;5122:9;5118:19;5105:33;5095:43;;4538:606;;;;;;;;;;:::o;5149:260::-;5217:6;5225;5278:2;5266:9;5257:7;5253:23;5249:32;5246:52;;;5294:1;5291;5284:12;5246:52;5317:29;5336:9;5317:29;:::i;:::-;5307:39;;5365:38;5399:2;5388:9;5384:18;5365:38;:::i;5414:350::-;5481:6;5489;5542:2;5530:9;5521:7;5517:23;5513:32;5510:52;;;5558:1;5555;5548:12;5510:52;5581:29;5600:9;5581:29;:::i;:::-;5571:39;;5660:2;5649:9;5645:18;5632:32;5704:10;5697:5;5693:22;5686:5;5683:33;5673:61;;5730:1;5727;5720:12;6159:437;6238:1;6234:12;;;;6281;;;6302:61;;6356:4;6348:6;6344:17;6334:27;;6302:61;6409:2;6401:6;6398:14;6378:18;6375:38;6372:218;;6446:77;6443:1;6436:88;6547:4;6544:1;6537:15;6575:4;6572:1;6565:15;6942:184;6994:77;6991:1;6984:88;7091:4;7088:1;7081:15;7115:4;7112:1;7105:15;7131:128;7171:3;7202:1;7198:6;7195:1;7192:13;7189:39;;;7208:18;;:::i;:::-;-1:-1:-1;7244:9:1;;7131:128::o;7624:228::-;7664:7;7790:1;7722:66;7718:74;7715:1;7712:81;7707:1;7700:9;7693:17;7689:105;7686:131;;;7797:18;;:::i;:::-;-1:-1:-1;7837:9:1;;7624:228::o;7857:184::-;7909:77;7906:1;7899:88;8006:4;8003:1;7996:15;8030:4;8027:1;8020:15;13328:125;13368:4;13396:1;13393;13390:8;13387:34;;;13401:18;;:::i;:::-;-1:-1:-1;13438:9:1;;13328:125::o;15206:184::-;15258:77;15255:1;15248:88;15355:4;15352:1;15345:15;15379:4;15376:1;15369:15;15395:274;15435:1;15461;15451:189;;15496:77;15493:1;15486:88;15597:4;15594:1;15587:15;15625:4;15622:1;15615:15;15451:189;-1:-1:-1;15654:9:1;;15395:274::o;17139:184::-;17191:77;17188:1;17181:88;17288:4;17285:1;17278:15;17312:4;17309:1;17302:15

Swarm Source

ipfs://941a416624488a9e6e2a04741df09cd0e6ac5d5a15f8d9652f84c927a1713466
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.