ETH Price: $3,325.53 (-4.10%)

Token

dYdX (DYDX)
 

Overview

Max Total Supply

1,000,000,000 DYDX

Holders

58,621 (0.00%)

Market

Price

$1.46 @ 0.000439 ETH (-4.68%)

Onchain Market Cap

$1,460,000,000.00

Circulating Supply Market Cap

$656,572,586.00

Other Info

Token Contract (WITH 18 Decimals)

Balance
22.689392290124222974 DYDX

Value
$33.13 ( ~0.00996232563959892 Eth) [0.0000%]
0xfa72833b0eaceed096e4aaca5ac994d72ba2ad17
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

DYDX is a governance token that allows the dYdX community to truly govern the dYdX Layer 2 Protocol. By enabling shared control of the protocol, DYDX allows traders, liquidity providers, and partners of dYdX to work collectively towards an enhanced Protocol.

Market

Volume (24H):$55,687,073.00
Market Capitalization:$656,572,586.00
Circulating Supply:449,425,623.00 DYDX
Market Data Source: Coinmarketcap

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
DydxToken

Compiler Version
v0.7.5+commit.eb77ed08

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, Apache-2.0 license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-08-03
*/

// SPDX-License-Identifier: AGPL-3.0

// File contracts/dependencies/open-zeppelin/Context.sol

pragma solidity 0.7.5;

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

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


// File contracts/dependencies/open-zeppelin/IERC20.sol

pragma solidity 0.7.5;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

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

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


// File contracts/dependencies/open-zeppelin/SafeMath.sol

pragma solidity 0.7.5;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
  /**
   * @dev Returns the addition of two unsigned integers, reverting on
   * overflow.
   *
   * Counterpart to Solidity's `+` operator.
   *
   * Requirements:
   * - Addition cannot overflow.
   */
  function add(uint256 a, uint256 b) internal pure returns (uint256) {
    uint256 c = a + b;
    require(c >= a, 'SafeMath: addition overflow');

    return c;
  }

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

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

    return c;
  }

  /**
   * @dev Returns the multiplication of two unsigned integers, reverting on
   * overflow.
   *
   * Counterpart to Solidity's `*` operator.
   *
   * Requirements:
   * - Multiplication cannot overflow.
   */
  function mul(uint256 a, uint256 b) internal pure returns (uint256) {
    // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
    // benefit is lost if 'b' is also tested.
    // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
    if (a == 0) {
      return 0;
    }

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

    return c;
  }

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

  /**
   * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
   * division by zero. The result is rounded towards zero.
   *
   * Counterpart to Solidity's `/` operator. Note: this function uses a
   * `revert` opcode (which leaves remaining gas untouched) while Solidity
   * uses an invalid opcode to revert (consuming all remaining gas).
   *
   * Requirements:
   * - The divisor cannot be zero.
   */
  function div(
    uint256 a,
    uint256 b,
    string memory errorMessage
  ) internal pure returns (uint256) {
    // Solidity only automatically asserts when dividing by 0
    require(b > 0, errorMessage);
    uint256 c = a / b;
    // assert(a == b * c + a % b); // There is no case in which this doesn't hold

    return c;
  }

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

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


// File contracts/dependencies/open-zeppelin/Address.sol

pragma solidity 0.7.5;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
  /**
   * @dev Returns true if `account` is a contract.
   *
   * [IMPORTANT]
   * ====
   * It is unsafe to assume that an address for which this function returns
   * false is an externally-owned account (EOA) and not a contract.
   *
   * Among others, `isContract` will return false for the following
   * types of addresses:
   *
   *  - an externally-owned account
   *  - a contract in construction
   *  - an address where a contract will be created
   *  - an address where a contract lived, but was destroyed
   * ====
   */
  function isContract(address account) internal view returns (bool) {
    // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
    // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
    // for accounts without code, i.e. `keccak256('')`
    bytes32 codehash;
    bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
    // solhint-disable-next-line no-inline-assembly
    assembly {
      codehash := extcodehash(account)
    }
    return (codehash != accountHash && codehash != 0x0);
  }

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

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


// File contracts/dependencies/open-zeppelin/ERC20.sol

pragma solidity ^0.7.5;




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

    mapping (address => uint256) private _balances;

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

    uint256 private _totalSupply;

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

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

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

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

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

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

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

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

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

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20};
     *
     * Requirements:
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        return true;
    }

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

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

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

        _beforeTokenTransfer(sender, recipient, amount);

        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
    }

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

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

        _totalSupply = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(address(0), account, amount);
    }

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

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

        _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(account, address(0), amount);
    }

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

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

    /**
     * @dev Sets {decimals} to a value other than the default one of 18.
     *
     * WARNING: This function should only be called from the constructor. Most
     * applications that interact with token contracts will not expect
     * {decimals} to ever change, and may work incorrectly if it does.
     */
    function _setupDecimals(uint8 decimals_) internal {
        _decimals = decimals_;
    }

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


// File contracts/dependencies/open-zeppelin/Ownable.sol

pragma solidity 0.7.5;

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
contract Ownable is Context {
  address private _owner;

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

  /**
   * @dev Initializes the contract setting the deployer as the initial owner.
   */
  constructor() {
    address msgSender = _msgSender();
    _owner = msgSender;
    emit OwnershipTransferred(address(0), msgSender);
  }

  /**
   * @dev Returns the address of the current owner.
   */
  function owner() public view returns (address) {
    return _owner;
  }

  /**
   * @dev Throws if called by any account other than the owner.
   */
  modifier onlyOwner() {
    require(_owner == _msgSender(), 'Ownable: caller is not the owner');
    _;
  }

  /**
   * @dev Leaves the contract without owner. It will not be possible to call
   * `onlyOwner` functions anymore. Can only be called by the current owner.
   *
   * NOTE: Renouncing ownership will leave the contract without an owner,
   * thereby removing any functionality that is only available to the owner.
   */
  function renounceOwnership() public virtual onlyOwner {
    emit OwnershipTransferred(_owner, address(0));
    _owner = address(0);
  }

  /**
   * @dev Transfers ownership of the contract to a new account (`newOwner`).
   * Can only be called by the current owner.
   */
  function transferOwnership(address newOwner) public virtual onlyOwner {
    require(newOwner != address(0), 'Ownable: new owner is the zero address');
    emit OwnershipTransferred(_owner, newOwner);
    _owner = newOwner;
  }
}


// File contracts/interfaces/IGovernancePowerDelegationERC20.sol

pragma solidity 0.7.5;

interface IGovernancePowerDelegationERC20 {

  enum DelegationType {
    VOTING_POWER,
    PROPOSITION_POWER
  }

  /**
   * @dev Emitted when a user delegates governance power to another user.
   *
   * @param  delegator       The delegator.
   * @param  delegatee       The delegatee.
   * @param  delegationType  The type of delegation (VOTING_POWER, PROPOSITION_POWER).
   */
  event DelegateChanged(
    address indexed delegator,
    address indexed delegatee,
    DelegationType delegationType
  );

  /**
   * @dev Emitted when an action changes the delegated power of a user.
   *
   * @param  user            The user whose delegated power has changed.
   * @param  amount          The new amount of delegated power for the user.
   * @param  delegationType  The type of delegation (VOTING_POWER, PROPOSITION_POWER).
   */
  event DelegatedPowerChanged(address indexed user, uint256 amount, DelegationType delegationType);

  /**
   * @dev Delegates a specific governance power to a delegatee.
   *
   * @param  delegatee       The address to delegate power to.
   * @param  delegationType  The type of delegation (VOTING_POWER, PROPOSITION_POWER).
   */
  function delegateByType(address delegatee, DelegationType delegationType) external virtual;

  /**
   * @dev Delegates all governance powers to a delegatee.
   *
   * @param  delegatee  The user to which the power will be delegated.
   */
  function delegate(address delegatee) external virtual;

  /**
   * @dev Returns the delegatee of an user.
   *
   * @param  delegator       The address of the delegator.
   * @param  delegationType  The type of delegation (VOTING_POWER, PROPOSITION_POWER).
   */
  function getDelegateeByType(address delegator, DelegationType delegationType)
    external
    view
    virtual
    returns (address);

  /**
   * @dev Returns the current delegated power of a user. The current power is the power delegated
   *  at the time of the last snapshot.
   *
   * @param  user            The user whose power to query.
   * @param  delegationType  The type of power (VOTING_POWER, PROPOSITION_POWER).
   */
  function getPowerCurrent(address user, DelegationType delegationType)
    external
    view
    virtual
    returns (uint256);

  /**
   * @dev Returns the delegated power of a user at a certain block.
   *
   * @param  user            The user whose power to query.
   * @param  blockNumber     The block number at which to get the user's power.
   * @param  delegationType  The type of power (VOTING_POWER, PROPOSITION_POWER).
   */
  function getPowerAtBlock(
    address user,
    uint256 blockNumber,
    DelegationType delegationType
  )
    external
    view
    virtual
    returns (uint256);
}


// File contracts/governance/token/GovernancePowerDelegationERC20Mixin.sol

pragma solidity 0.7.5;



/**
 * @title GovernancePowerDelegationERC20Mixin
 * @author dYdX
 *
 * @dev Provides support for two types of governance powers, both endowed by the governance
 *  token, and separately delegatable. Provides functions for delegation and for querying a user's
 *  power at a certain block number.
 */
abstract contract GovernancePowerDelegationERC20Mixin is
  ERC20,
  IGovernancePowerDelegationERC20
{
  using SafeMath for uint256;

  // ============ Constants ============

  /// @notice EIP-712 typehash for delegation by signature of a specific governance power type.
  bytes32 public constant DELEGATE_BY_TYPE_TYPEHASH = keccak256(
    'DelegateByType(address delegatee,uint256 type,uint256 nonce,uint256 expiry)'
  );

  /// @notice EIP-712 typehash for delegation by signature of all governance powers.
  bytes32 public constant DELEGATE_TYPEHASH = keccak256(
    'Delegate(address delegatee,uint256 nonce,uint256 expiry)'
  );

  // ============ Structs ============

  /// @dev Snapshot of a value on a specific block, used to track voting power for proposals.
  struct Snapshot {
    uint128 blockNumber;
    uint128 value;
  }

  // ============ External Functions ============

  /**
   * @notice Delegates a specific governance power to a delegatee.
   *
   * @param  delegatee       The address to delegate power to.
   * @param  delegationType  The type of delegation (VOTING_POWER, PROPOSITION_POWER).
   */
  function delegateByType(
    address delegatee,
    DelegationType delegationType
  )
    external
    override
  {
    _delegateByType(msg.sender, delegatee, delegationType);
  }

  /**
   * @notice Delegates all governance powers to a delegatee.
   *
   * @param  delegatee  The address to delegate power to.
   */
  function delegate(
    address delegatee
  )
    external
    override
  {
    _delegateByType(msg.sender, delegatee, DelegationType.VOTING_POWER);
    _delegateByType(msg.sender, delegatee, DelegationType.PROPOSITION_POWER);
  }

  /**
   * @notice Returns the delegatee of a user.
   *
   * @param  delegator       The address of the delegator.
   * @param  delegationType  The type of delegation (VOTING_POWER, PROPOSITION_POWER).
   */
  function getDelegateeByType(
    address delegator,
    DelegationType delegationType
  )
    external
    override
    view
    returns (address)
  {
    (, , mapping(address => address) storage delegates) = _getDelegationDataByType(delegationType);

    return _getDelegatee(delegator, delegates);
  }

  /**
   * @notice Returns the current power of a user. The current power is the power delegated
   *  at the time of the last snapshot.
   *
   * @param  user            The user whose power to query.
   * @param  delegationType  The type of power (VOTING_POWER, PROPOSITION_POWER).
   */
  function getPowerCurrent(
    address user,
    DelegationType delegationType
  )
    external
    override
    view
    returns (uint256)
  {
    (
      mapping(address => mapping(uint256 => Snapshot)) storage snapshots,
      mapping(address => uint256) storage snapshotsCounts,
      // delegates
    ) = _getDelegationDataByType(delegationType);

    return _searchByBlockNumber(snapshots, snapshotsCounts, user, block.number);
  }

  /**
   * @notice Returns the power of a user at a certain block.
   *
   * @param  user            The user whose power to query.
   * @param  blockNumber     The block number at which to get the user's power.
   * @param  delegationType  The type of power (VOTING_POWER, PROPOSITION_POWER).
   */
  function getPowerAtBlock(
    address user,
    uint256 blockNumber,
    DelegationType delegationType
  )
    external
    override
    view
    returns (uint256)
  {
    (
      mapping(address => mapping(uint256 => Snapshot)) storage snapshots,
      mapping(address => uint256) storage snapshotsCounts,
      // delegates
    ) = _getDelegationDataByType(delegationType);

    return _searchByBlockNumber(snapshots, snapshotsCounts, user, blockNumber);
  }

  // ============ Internal Functions ============

  /**
   * @dev Delegates one specific power to a delegatee.
   *
   * @param  delegator       The user whose power to delegate.
   * @param  delegatee       The address to delegate power to.
   * @param  delegationType  The type of power (VOTING_POWER, PROPOSITION_POWER).
   */
  function _delegateByType(
    address delegator,
    address delegatee,
    DelegationType delegationType
  )
    internal
  {
    require(
      delegatee != address(0),
      'INVALID_DELEGATEE'
    );

    (, , mapping(address => address) storage delegates) = _getDelegationDataByType(delegationType);

    uint256 delegatorBalance = balanceOf(delegator);

    address previousDelegatee = _getDelegatee(delegator, delegates);

    delegates[delegator] = delegatee;

    _moveDelegatesByType(previousDelegatee, delegatee, delegatorBalance, delegationType);
    emit DelegateChanged(delegator, delegatee, delegationType);
  }

  /**
   * @dev Moves power from one user to another.
   *
   * @param  from            The user from which delegated power is moved.
   * @param  to              The user that will receive the delegated power.
   * @param  amount          The amount of power to be moved.
   * @param  delegationType  The type of power (VOTING_POWER, PROPOSITION_POWER).
   */
  function _moveDelegatesByType(
    address from,
    address to,
    uint256 amount,
    DelegationType delegationType
  )
    internal
  {
    if (from == to) {
      return;
    }

    (
      mapping(address => mapping(uint256 => Snapshot)) storage snapshots,
      mapping(address => uint256) storage snapshotsCounts,
      // delegates
    ) = _getDelegationDataByType(delegationType);

    if (from != address(0)) {
      uint256 previous = 0;
      uint256 fromSnapshotsCount = snapshotsCounts[from];

      if (fromSnapshotsCount != 0) {
        previous = snapshots[from][fromSnapshotsCount - 1].value;
      } else {
        previous = balanceOf(from);
      }

      uint256 newAmount = previous.sub(amount);
      _writeSnapshot(
        snapshots,
        snapshotsCounts,
        from,
        uint128(newAmount)
      );

      emit DelegatedPowerChanged(from, newAmount, delegationType);
    }

    if (to != address(0)) {
      uint256 previous = 0;
      uint256 toSnapshotsCount = snapshotsCounts[to];
      if (toSnapshotsCount != 0) {
        previous = snapshots[to][toSnapshotsCount - 1].value;
      } else {
        previous = balanceOf(to);
      }

      uint256 newAmount = previous.add(amount);
      _writeSnapshot(
        snapshots,
        snapshotsCounts,
        to,
        uint128(newAmount)
      );

      emit DelegatedPowerChanged(to, newAmount, delegationType);
    }
  }

  /**
   * @dev Searches for a balance snapshot by block number using binary search.
   *
   * @param  snapshots        The mapping of snapshots by user.
   * @param  snapshotsCounts  The mapping of the number of snapshots by user.
   * @param  user             The user for which the snapshot is being searched.
   * @param  blockNumber      The block number being searched.
   */
  function _searchByBlockNumber(
    mapping(address => mapping(uint256 => Snapshot)) storage snapshots,
    mapping(address => uint256) storage snapshotsCounts,
    address user,
    uint256 blockNumber
  )
    internal
    view
    returns (uint256)
  {
    require(
      blockNumber <= block.number,
      'INVALID_BLOCK_NUMBER'
    );

    uint256 snapshotsCount = snapshotsCounts[user];

    if (snapshotsCount == 0) {
      return balanceOf(user);
    }

    // First check most recent balance
    if (snapshots[user][snapshotsCount - 1].blockNumber <= blockNumber) {
      return snapshots[user][snapshotsCount - 1].value;
    }

    // Next check implicit zero balance
    if (snapshots[user][0].blockNumber > blockNumber) {
      return 0;
    }

    uint256 lower = 0;
    uint256 upper = snapshotsCount - 1;
    while (upper > lower) {
      uint256 center = upper - (upper - lower) / 2; // ceil, avoiding overflow
      Snapshot memory snapshot = snapshots[user][center];
      if (snapshot.blockNumber == blockNumber) {
        return snapshot.value;
      } else if (snapshot.blockNumber < blockNumber) {
        lower = center;
      } else {
        upper = center - 1;
      }
    }
    return snapshots[user][lower].value;
  }

  /**
   * @dev Returns delegation data (snapshot, snapshotsCount, delegates) by delegation type.
   *
   *  Note: This mixin contract does not itself define any storage, and we require the inheriting
   *  contract to implement this method to provide access to the relevant mappings in storage.
   *  This pattern was implemented by Aave for legacy reasons and we have decided not to change it.
   *
   * @param  delegationType  The type of power (VOTING_POWER, PROPOSITION_POWER).
   */
  function _getDelegationDataByType(
    DelegationType delegationType
  )
    internal
    virtual
    view
    returns (
      mapping(address => mapping(uint256 => Snapshot)) storage, // snapshots
      mapping(address => uint256) storage, // snapshotsCount
      mapping(address => address) storage // delegates
    );

  /**
   * @dev Writes a snapshot of a user's token/power balance.
   *
   * @param  snapshots        The mapping of snapshots by user.
   * @param  snapshotsCounts  The mapping of the number of snapshots by user.
   * @param  owner            The user whose power to snapshot.
   * @param  newValue         The new balance to snapshot at the current block.
   */
  function _writeSnapshot(
    mapping(address => mapping(uint256 => Snapshot)) storage snapshots,
    mapping(address => uint256) storage snapshotsCounts,
    address owner,
    uint128 newValue
  )
    internal
  {
    uint128 currentBlock = uint128(block.number);

    uint256 ownerSnapshotsCount = snapshotsCounts[owner];
    mapping(uint256 => Snapshot) storage ownerSnapshots = snapshots[owner];

    if (
      ownerSnapshotsCount != 0 &&
      ownerSnapshots[ownerSnapshotsCount - 1].blockNumber == currentBlock
    ) {
      // Doing multiple operations in the same block
      ownerSnapshots[ownerSnapshotsCount - 1].value = newValue;
    } else {
      ownerSnapshots[ownerSnapshotsCount] = Snapshot(currentBlock, newValue);
      snapshotsCounts[owner] = ownerSnapshotsCount + 1;
    }
  }

  /**
   * @dev Returns the delegatee of a user. If a user never performed any delegation, their
   *  delegated address will be 0x0, in which case we return the user's own address.
   *
   * @param  delegator  The address of the user for which return the delegatee.
   * @param  delegates  The mapping of delegates for a particular type of delegation.
   */
  function _getDelegatee(
    address delegator,
    mapping(address => address) storage delegates
  )
    internal
    view
    returns (address)
  {
    address previousDelegatee = delegates[delegator];

    if (previousDelegatee == address(0)) {
      return delegator;
    }

    return previousDelegatee;
  }
}


// File contracts/governance/token/DydxToken.sol

pragma solidity 0.7.5;




/**
 * @title DydxToken
 * @author dYdX
 *
 * @notice The dYdX governance token.
 */
contract DydxToken is
  GovernancePowerDelegationERC20Mixin,
  Ownable
{
  using SafeMath for uint256;

  // ============ Events ============

  /**
   * @dev Emitted when an address has been added to or removed from the token transfer allowlist.
   *
   * @param  account    Address that was added to or removed from the token transfer allowlist.
   * @param  isAllowed  True if the address was added to the allowlist, false if removed.
   */
  event TransferAllowlistUpdated(
    address account,
    bool isAllowed
  );

  /**
   * @dev Emitted when the transfer restriction timestamp is reassigned.
   *
   * @param  transfersRestrictedBefore  The new timestamp on and after which non-allowlisted
   *                                    transfers may occur.
   */
  event TransfersRestrictedBeforeUpdated(
    uint256 transfersRestrictedBefore
  );

  // ============ Constants ============

  string internal constant NAME = 'dYdX';
  string internal constant SYMBOL = 'DYDX';

  uint256 public constant INITIAL_SUPPLY = 1_000_000_000 ether;

  bytes32 public immutable DOMAIN_SEPARATOR;
  bytes public constant EIP712_VERSION = '1';
  bytes32 public constant EIP712_DOMAIN = keccak256(
    'EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)'
  );
  bytes32 public constant PERMIT_TYPEHASH = keccak256(
    'Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)'
  );

  /// @notice Minimum time between mints.
  uint256 public constant MINT_MIN_INTERVAL = 365 days;

  /// @notice Cap on the percentage of the total supply that can be minted at each mint.
  ///  Denominated in percentage points (units out of 100).
  uint256 public immutable MINT_MAX_PERCENT;

  /// @notice The timestamp on and after which the transfer restriction must be lifted.
  uint256 public immutable TRANSFER_RESTRICTION_LIFTED_NO_LATER_THAN;

  // ============ Storage ============

  /// @dev Mapping from (owner) => (next valid nonce) for EIP-712 signatures.
  mapping(address => uint256) internal _nonces;

  mapping(address => mapping(uint256 => Snapshot)) public _votingSnapshots;
  mapping(address => uint256) public _votingSnapshotsCounts;
  mapping(address => address) public _votingDelegates;

  mapping(address => mapping(uint256 => Snapshot)) public _propositionPowerSnapshots;
  mapping(address => uint256) public _propositionPowerSnapshotsCounts;
  mapping(address => address) public _propositionPowerDelegates;

  /// @notice Snapshots of the token total supply, at each block where the total supply has changed.
  mapping(uint256 => Snapshot) public _totalSupplySnapshots;

  /// @notice Number of snapshots of the token total supply.
  uint256 public _totalSupplySnapshotsCount;

  /// @notice Allowlist of addresses which may send or receive tokens while transfers are
  ///  otherwise restricted.
  mapping(address => bool) public _tokenTransferAllowlist;

  /// @notice The timestamp on and after which minting may occur.
  uint256 public _mintingRestrictedBefore;

  /// @notice The timestamp on and after which non-allowlisted transfers may occur.
  uint256 public _transfersRestrictedBefore;

  // ============ Constructor ============

  /**
   * @notice Constructor.
   *
   * @param  distributor                           The address which will receive the initial supply of tokens.
   * @param  transfersRestrictedBefore             Timestamp, before which transfers are restricted unless the
   *                                               origin or destination address is in the allowlist.
   * @param  transferRestrictionLiftedNoLaterThan  Timestamp, which is the maximum timestamp that transfer
   *                                               restrictions can be extended to.
   * @param  mintingRestrictedBefore               Timestamp, before which minting is not allowed.
   * @param  mintMaxPercent                        Cap on the percentage of the total supply that can be minted at
   *                                               each mint.
   */
  constructor(
    address distributor,
    uint256 transfersRestrictedBefore,
    uint256 transferRestrictionLiftedNoLaterThan,
    uint256 mintingRestrictedBefore,
    uint256 mintMaxPercent
  )
    ERC20(NAME, SYMBOL)
  {
    uint256 chainId;

    // solium-disable-next-line
    assembly {
      chainId := chainid()
    }

    DOMAIN_SEPARATOR = keccak256(
      abi.encode(
        EIP712_DOMAIN,
        keccak256(bytes(NAME)),
        keccak256(bytes(EIP712_VERSION)),
        chainId,
        address(this)
      )
    );

    // Validate and set parameters.
    require(
      transfersRestrictedBefore > block.timestamp,
      'TRANSFERS_RESTRICTED_BEFORE_TOO_EARLY'
    );
    require(
      transfersRestrictedBefore <= transferRestrictionLiftedNoLaterThan,
      'MAX_TRANSFER_RESTRICTION_TOO_EARLY'
    );
    require(
      mintingRestrictedBefore > block.timestamp,
      'MINTING_RESTRICTED_BEFORE_TOO_EARLY'
    );
    _transfersRestrictedBefore = transfersRestrictedBefore;
    TRANSFER_RESTRICTION_LIFTED_NO_LATER_THAN = transferRestrictionLiftedNoLaterThan;
    _mintingRestrictedBefore = mintingRestrictedBefore;
    MINT_MAX_PERCENT = mintMaxPercent;

    // Mint the initial supply.
    _mint(distributor, INITIAL_SUPPLY);

    emit TransfersRestrictedBeforeUpdated(transfersRestrictedBefore);
  }

  // ============ Other Functions ============

  /**
   * @notice Adds addresses to the token transfer allowlist. Reverts if any of the addresses
   *  already exist in the allowlist. Only callable by owner.
   *
   * @param  addressesToAdd  Addresses to add to the token transfer allowlist.
   */
  function addToTokenTransferAllowlist(
    address[] calldata addressesToAdd
  )
    external
    onlyOwner
  {
    for (uint256 i = 0; i < addressesToAdd.length; i++) {
      require(
        !_tokenTransferAllowlist[addressesToAdd[i]],
        'ADDRESS_EXISTS_IN_TRANSFER_ALLOWLIST'
      );
      _tokenTransferAllowlist[addressesToAdd[i]] = true;
      emit TransferAllowlistUpdated(addressesToAdd[i], true);
    }
  }

  /**
   * @notice Removes addresses from the token transfer allowlist. Reverts if any of the addresses
   *  don't exist in the allowlist. Only callable by owner.
   *
   * @param  addressesToRemove  Addresses to remove from the token transfer allowlist.
   */
  function removeFromTokenTransferAllowlist(
    address[] calldata addressesToRemove
  )
    external
    onlyOwner
  {
    for (uint256 i = 0; i < addressesToRemove.length; i++) {
      require(
        _tokenTransferAllowlist[addressesToRemove[i]],
        'ADDRESS_DOES_NOT_EXIST_IN_TRANSFER_ALLOWLIST'
      );
      _tokenTransferAllowlist[addressesToRemove[i]] = false;
      emit TransferAllowlistUpdated(addressesToRemove[i], false);
    }
  }

  /**
   * @notice Updates the transfer restriction. Reverts if the transfer restriction has already passed,
   *  the new transfer restriction is earlier than the previous one, or the new transfer restriction is
   *  after the maximum transfer restriction.
   *
   * @param  transfersRestrictedBefore  The timestamp on and after which non-allowlisted transfers may occur.
   */
  function updateTransfersRestrictedBefore(
    uint256 transfersRestrictedBefore
  )
    external
    onlyOwner
  {
    uint256 previousTransfersRestrictedBefore = _transfersRestrictedBefore;
    require(
      block.timestamp < previousTransfersRestrictedBefore,
      'TRANSFER_RESTRICTION_ENDED'
    );
    require(
      previousTransfersRestrictedBefore <= transfersRestrictedBefore,
      'NEW_TRANSFER_RESTRICTION_TOO_EARLY'
    );
    require(
      transfersRestrictedBefore <= TRANSFER_RESTRICTION_LIFTED_NO_LATER_THAN,
      'AFTER_MAX_TRANSFER_RESTRICTION'
    );

    _transfersRestrictedBefore = transfersRestrictedBefore;

    emit TransfersRestrictedBeforeUpdated(transfersRestrictedBefore);
  }

  /**
   * @notice Mint new tokens. Only callable by owner after the required time period has elapsed.
   *
   * @param  recipient  The address to receive minted tokens.
   * @param  amount     The number of tokens to mint.
   */
  function mint(
    address recipient,
    uint256 amount
  )
    external
    onlyOwner
  {
    require(
      block.timestamp >= _mintingRestrictedBefore,
      'MINT_TOO_EARLY'
    );
    require(
      amount <= totalSupply().mul(MINT_MAX_PERCENT).div(100),
      'MAX_MINT_EXCEEDED'
    );

    // Update the next allowed minting time.
    _mintingRestrictedBefore = block.timestamp.add(MINT_MIN_INTERVAL);

    // Mint the amount.
    _mint(recipient, amount);
  }

  /**
   * @notice Implements the permit function as specified in EIP-2612.
   *
   * @param  owner     Address of the token owner.
   * @param  spender   Address of the spender.
   * @param  value     Amount of allowance.
   * @param  deadline  Expiration timestamp for the signature.
   * @param  v         Signature param.
   * @param  r         Signature param.
   * @param  s         Signature param.
   */
  function permit(
    address owner,
    address spender,
    uint256 value,
    uint256 deadline,
    uint8 v,
    bytes32 r,
    bytes32 s
  )
    external
  {
    require(
      owner != address(0),
      'INVALID_OWNER'
    );
    require(
      block.timestamp <= deadline,
      'INVALID_EXPIRATION'
    );
    uint256 currentValidNonce = _nonces[owner];
    bytes32 digest = keccak256(
      abi.encodePacked(
        '\x19\x01',
        DOMAIN_SEPARATOR,
        keccak256(abi.encode(PERMIT_TYPEHASH, owner, spender, value, currentValidNonce, deadline))
      )
    );

    require(
      owner == ecrecover(digest, v, r, s),
      'INVALID_SIGNATURE'
    );
    _nonces[owner] = currentValidNonce.add(1);
    _approve(owner, spender, value);
  }

  /**
   * @notice Get the next valid nonce for EIP-712 signatures.
   *
   *  This nonce should be used when signing for any of the following functions:
   *   - permit()
   *   - delegateByTypeBySig()
   *   - delegateBySig()
   */
  function nonces(
    address owner
  )
    external
    view
    returns (uint256)
  {
    return _nonces[owner];
  }

  function transfer(
    address recipient,
    uint256 amount
  )
    public
    override
    returns (bool)
  {
    _requireTransferAllowed(_msgSender(), recipient);
    return super.transfer(recipient, amount);
  }

  function transferFrom(
    address sender,
    address recipient,
    uint256 amount
  )
    public
    override
    returns (bool)
  {
    _requireTransferAllowed(sender, recipient);
    return super.transferFrom(sender, recipient, amount);
  }

  /**
   * @dev Override _mint() to write a snapshot whenever the total supply changes.
   *
   *  These snapshots are intended to be used by the governance strategy.
   *
   *  Note that the ERC20 _burn() function is never used. If desired, an official burn mechanism
   *  could be implemented external to this contract, and accounted for in the governance strategy.
   */
  function _mint(
    address account,
    uint256 amount
  )
    internal
    override
  {
    super._mint(account, amount);

    uint256 snapshotsCount = _totalSupplySnapshotsCount;
    uint128 currentBlock = uint128(block.number);
    uint128 newValue = uint128(totalSupply());

    // Note: There is no special case for the total supply being updated multiple times in the same
    // block. That should never occur.
    _totalSupplySnapshots[snapshotsCount] = Snapshot(currentBlock, newValue);
    _totalSupplySnapshotsCount = snapshotsCount.add(1);
  }

  function _requireTransferAllowed(
    address sender,
    address recipient
  )
    view
    internal
  {
    // Compare against the constant `TRANSFER_RESTRICTION_LIFTED_NO_LATER_THAN` first
    // to avoid additional gas costs from reading from storage.
    if (
      block.timestamp < TRANSFER_RESTRICTION_LIFTED_NO_LATER_THAN &&
      block.timestamp < _transfersRestrictedBefore
    ) {
      // While transfers are restricted, a transfer is permitted if either the sender or the
      // recipient is on the allowlist.
      require(
        _tokenTransferAllowlist[sender] || _tokenTransferAllowlist[recipient],
        'NON_ALLOWLIST_TRANSFERS_DISABLED'
      );
    }
  }

  /**
   * @dev Writes a snapshot before any transfer operation, including: _transfer, _mint and _burn.
   *  - On _transfer, it writes snapshots for both 'from' and 'to'.
   *  - On _mint, only for `to`.
   *  - On _burn, only for `from`.
   *
   * @param  from    The sender.
   * @param  to      The recipient.
   * @param  amount  The amount being transfered.
   */
  function _beforeTokenTransfer(
    address from,
    address to,
    uint256 amount
  )
    internal
    override
  {
    address votingFromDelegatee = _getDelegatee(from, _votingDelegates);
    address votingToDelegatee = _getDelegatee(to, _votingDelegates);

    _moveDelegatesByType(
      votingFromDelegatee,
      votingToDelegatee,
      amount,
      DelegationType.VOTING_POWER
    );

    address propPowerFromDelegatee = _getDelegatee(from, _propositionPowerDelegates);
    address propPowerToDelegatee = _getDelegatee(to, _propositionPowerDelegates);

    _moveDelegatesByType(
      propPowerFromDelegatee,
      propPowerToDelegatee,
      amount,
      DelegationType.PROPOSITION_POWER
    );
  }

  function _getDelegationDataByType(
    DelegationType delegationType
  )
    internal
    override
    view
    returns (
      mapping(address => mapping(uint256 => Snapshot)) storage, // snapshots
      mapping(address => uint256) storage, // snapshots count
      mapping(address => address) storage // delegatees list
    )
  {
    if (delegationType == DelegationType.VOTING_POWER) {
      return (_votingSnapshots, _votingSnapshotsCounts, _votingDelegates);
    } else {
      return (
        _propositionPowerSnapshots,
        _propositionPowerSnapshotsCounts,
        _propositionPowerDelegates
      );
    }
  }

  /**
   * @dev Delegates specific governance power from signer to `delegatee` using an EIP-712 signature.
   *
   * @param  delegatee       The address to delegate votes to.
   * @param  delegationType  The type of delegation (VOTING_POWER, PROPOSITION_POWER).
   * @param  nonce           The signer's nonce for EIP-712 signatures on this contract.
   * @param  expiry          Expiration timestamp for the signature.
   * @param  v               Signature param.
   * @param  r               Signature param.
   * @param  s               Signature param.
   */
  function delegateByTypeBySig(
    address delegatee,
    DelegationType delegationType,
    uint256 nonce,
    uint256 expiry,
    uint8 v,
    bytes32 r,
    bytes32 s
  )
    public
  {
    bytes32 structHash = keccak256(
      abi.encode(DELEGATE_BY_TYPE_TYPEHASH, delegatee, uint256(delegationType), nonce, expiry)
    );
    bytes32 digest = keccak256(abi.encodePacked('\x19\x01', DOMAIN_SEPARATOR, structHash));
    address signer = ecrecover(digest, v, r, s);
    require(
      signer != address(0),
      'INVALID_SIGNATURE'
    );
    require(
      nonce == _nonces[signer]++,
      'INVALID_NONCE'
    );
    require(
      block.timestamp <= expiry,
      'INVALID_EXPIRATION'
    );
    _delegateByType(signer, delegatee, delegationType);
  }

  /**
   * @dev Delegates both governance powers from signer to `delegatee` using an EIP-712 signature.
   *
   * @param  delegatee  The address to delegate votes to.
   * @param  nonce      The signer's nonce for EIP-712 signatures on this contract.
   * @param  expiry     Expiration timestamp for the signature.
   * @param  v          Signature param.
   * @param  r          Signature param.
   * @param  s          Signature param.
   */
  function delegateBySig(
    address delegatee,
    uint256 nonce,
    uint256 expiry,
    uint8 v,
    bytes32 r,
    bytes32 s
  )
    public
  {
    bytes32 structHash = keccak256(abi.encode(DELEGATE_TYPEHASH, delegatee, nonce, expiry));
    bytes32 digest = keccak256(abi.encodePacked('\x19\x01', DOMAIN_SEPARATOR, structHash));
    address signer = ecrecover(digest, v, r, s);
    require(
      signer != address(0),
      'INVALID_SIGNATURE'
    );
    require(
      nonce == _nonces[signer]++,
      'INVALID_NONCE'
    );
    require(
      block.timestamp <= expiry,
      'INVALID_EXPIRATION'
    );
    _delegateByType(signer, delegatee, DelegationType.VOTING_POWER);
    _delegateByType(signer, delegatee, DelegationType.PROPOSITION_POWER);
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"distributor","type":"address"},{"internalType":"uint256","name":"transfersRestrictedBefore","type":"uint256"},{"internalType":"uint256","name":"transferRestrictionLiftedNoLaterThan","type":"uint256"},{"internalType":"uint256","name":"mintingRestrictedBefore","type":"uint256"},{"internalType":"uint256","name":"mintMaxPercent","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"delegator","type":"address"},{"indexed":true,"internalType":"address","name":"delegatee","type":"address"},{"indexed":false,"internalType":"enum IGovernancePowerDelegationERC20.DelegationType","name":"delegationType","type":"uint8"}],"name":"DelegateChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"enum IGovernancePowerDelegationERC20.DelegationType","name":"delegationType","type":"uint8"}],"name":"DelegatedPowerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"isAllowed","type":"bool"}],"name":"TransferAllowlistUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"transfersRestrictedBefore","type":"uint256"}],"name":"TransfersRestrictedBeforeUpdated","type":"event"},{"inputs":[],"name":"DELEGATE_BY_TYPE_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DELEGATE_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"EIP712_DOMAIN","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"EIP712_VERSION","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"INITIAL_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_MAX_PERCENT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_MIN_INTERVAL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRANSFER_RESTRICTION_LIFTED_NO_LATER_THAN","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_mintingRestrictedBefore","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_propositionPowerDelegates","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"_propositionPowerSnapshots","outputs":[{"internalType":"uint128","name":"blockNumber","type":"uint128"},{"internalType":"uint128","name":"value","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_propositionPowerSnapshotsCounts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_tokenTransferAllowlist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_totalSupplySnapshots","outputs":[{"internalType":"uint128","name":"blockNumber","type":"uint128"},{"internalType":"uint128","name":"value","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_totalSupplySnapshotsCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_transfersRestrictedBefore","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_votingDelegates","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"_votingSnapshots","outputs":[{"internalType":"uint128","name":"blockNumber","type":"uint128"},{"internalType":"uint128","name":"value","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_votingSnapshotsCounts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addressesToAdd","type":"address[]"}],"name":"addToTokenTransferAllowlist","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":"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":[],"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":"delegatee","type":"address"},{"internalType":"enum IGovernancePowerDelegationERC20.DelegationType","name":"delegationType","type":"uint8"}],"name":"delegateByType","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegatee","type":"address"},{"internalType":"enum IGovernancePowerDelegationERC20.DelegationType","name":"delegationType","type":"uint8"},{"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":"delegateByTypeBySig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegator","type":"address"},{"internalType":"enum IGovernancePowerDelegationERC20.DelegationType","name":"delegationType","type":"uint8"}],"name":"getDelegateeByType","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"blockNumber","type":"uint256"},{"internalType":"enum IGovernancePowerDelegationERC20.DelegationType","name":"delegationType","type":"uint8"}],"name":"getPowerAtBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"enum IGovernancePowerDelegationERC20.DelegationType","name":"delegationType","type":"uint8"}],"name":"getPowerCurrent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":[{"internalType":"address[]","name":"addressesToRemove","type":"address[]"}],"name":"removeFromTokenTransferAllowlist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"transfersRestrictedBefore","type":"uint256"}],"name":"updateTransfersRestrictedBefore","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60e06040523480156200001157600080fd5b5060405162003a3a38038062003a3a833981810160405260a08110156200003757600080fd5b5080516020808301516040808501516060860151608090960151825180840184526004808252630c8b2c8b60e31b828801908152855180870190965290855263088b288b60e31b968501969096528051969794969295919390929091620000a2916003919062000a30565b508051620000b890600490602084019062000a30565b50506005805460ff19166012179055506000620000d462000326565b60058054610100600160a81b0319166101006001600160a01b03841690810291909117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35060408051808201825260048152630c8b2c8b60e31b6020918201528151808301835260018152603160f81b9082015281517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818301527f8559dd69376fb9299d783b9e51706a45ed5457e926ace865c024bd33fa9bc1e1818401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808083018290523060a0808501919091528551808503909101815260c0909301909452815191909201209091524285116200023a5760405162461bcd60e51b8152600401808060200182810382526025815260200180620039f56025913960400191505060405180910390fd5b838511156200027b5760405162461bcd60e51b8152600401808060200182810382526022815260200180620039d36022913960400191505060405180910390fd5b428311620002bb5760405162461bcd60e51b8152600401808060200182810382526023815260200180620039b06023913960400191505060405180910390fd5b601185905560c0849052601083905560a0829052620002e7866b033b2e3c9fd0803ce80000006200032a565b6040805186815290517fd7b9c9321b627ff004969698b4616502d6b7305a588e685489e91c46fca509a99181900360200190a150505050505062000adc565b3390565b620003418282620003ca60201b62001e201760201c565b600e5443600062000351620004d9565b6040805180820182526001600160801b03858116825283811660208084019182526000898152600d8252949094209251835491516001600160801b0319909216908316178216600160801b9190921602179055909150620003c0908490600190620004df811b62001f1017901c565b600e555050505050565b6001600160a01b03821662000426576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b620004346000838362000543565b6200045081600254620004df60201b62001f101790919060201c565b6002556001600160a01b038216600090815260208181526040909120546200048391839062001f10620004df821b17901c565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b60025490565b6000828201838110156200053a576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b600062000552846009620005ae565b9050600062000563846009620005ae565b9050620005748282856000620005db565b60006200058386600c620005ae565b905060006200059486600c620005ae565b9050620005a58282876001620005db565b50505050505050565b6001600160a01b03808316600090815260208390526040812054909116806200053a57839150506200053d565b826001600160a01b0316846001600160a01b03161415620005fc57620007f3565b6000806200060a83620007f9565b5090925090506001600160a01b0386161562000700576001600160a01b03861660009081526020829052604081205480156200067e576001600160a01b03881660009081526020858152604080832060001985018452909152902054600160801b90046001600160801b031691506200068c565b620006898862000836565b91505b6000620006a887846200085160201b62001f6a1790919060201c565b9050620006b885858b846200089b565b886001600160a01b031660008051602062003a1a833981519152828860405180838152602001826001811115620006eb57fe5b81526020019250505060405180910390a25050505b6001600160a01b03851615620007f0576001600160a01b03851660009081526020829052604081205480156200076e576001600160a01b03871660009081526020858152604080832060001985018452909152902054600160801b90046001600160801b031691506200077c565b620007798762000836565b91505b6000620007988784620004df60201b62001f101790919060201c565b9050620007a885858a846200089b565b876001600160a01b031660008051602062003a1a833981519152828860405180838152602001826001811115620007db57fe5b81526020019250505060405180910390a25050505b50505b50505050565b60008080808460018111156200080b57fe5b1415620008235750600791506008905060096200082f565b50600a9150600b9050600c5b9193909250565b6001600160a01b031660009081526020819052604090205490565b60006200053a83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506200099560201b60201c565b6001600160a01b03821660009081526020848152604080832054918790529091204391908115801590620008ed575060001982016000908152602082905260409020546001600160801b038481169116145b1562000924576000198201600090815260208290526040902080546001600160801b03808716600160801b029116179055620005a5565b6040805180820182526001600160801b039485168152948416602080870191825260008581529381528284209651875492518716600160801b029087166001600160801b031990931692909217909516179094556001600160a01b0394909416845293905290206001909101905550565b6000818484111562000a285760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015620009ec578181015183820152602001620009d2565b50505050905090810190601f16801562000a1a5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b828054600181600116156101000203166002900490600052602060002090601f01602090048101928262000a68576000855562000ab3565b82601f1062000a8357805160ff191683800117855562000ab3565b8280016001018555821562000ab3579182015b8281111562000ab357825182559160200191906001019062000a96565b5062000ac192915062000ac5565b5090565b5b8082111562000ac1576000815560010162000ac6565b60805160a05160c051612e8962000b276000398061147452806117bc528061209e525080610c5c5280610ddb525080610b3852806115e252806119005280611c555250612e896000f3fe608060405234801561001057600080fd5b50600436106102a05760003560e01c8063715018a611610167578063c2ffbb91116100ce578063dd62ed3e11610087578063dd62ed3e14610913578063e1b11da414610941578063eccec5a814610949578063f0eb7f8e14610951578063f2fde38b14610977578063f713d8a81461099d576102a0565b8063c2ffbb9114610807578063c3cda5201461083c578063cdfeb0c114610883578063d17deb9f1461088b578063d505accf14610893578063dc937e1c146108e4576102a0565b806395d89b411161012057806395d89b4114610753578063a457c2d71461075b578063a9059cbb14610787578063aa9fbe02146107b3578063ad36dafd146107bb578063b2f4201d146107d8576102a0565b8063715018a6146106175780637bb73c971461061f5780637ecebe00146106455780638aaee2341461066b5780638d48f4f1146106db5780638da5cb5b1461074b576102a0565b806340c10f191161020b5780635c19a95c116101c45780635c19a95c146105605780635f3b687614610586578063657c7a85146105b257806369e3b0d0146105ba5780636f50458d146105c257806370a08231146105f1576102a0565b806340c10f191461047057806341cbf54a1461049e57806348032ec1146104a6578063537f215c146104cc578063549aa8a31461050e5780635b3cc0cf14610534576102a0565b80632b4e1a5b1161025d5780632b4e1a5b146104065780632ff2e9dc1461040e57806330adf81f14610416578063313ce5671461041e5780633644e5151461043c5780633950935114610444576102a0565b806306fdde03146102a5578063095ea7b31461032257806313929bbe1461036257806318160ddd146103ae5780631ff06fdf146103c857806323b872dd146103d0575b600080fd5b6102ad6109ee565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102e75781810151838201526020016102cf565b50505050905090810190601f1680156103145780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61034e6004803603604081101561033857600080fd5b506001600160a01b038135169060200135610a84565b604080519115158252519081900360200190f35b61037f6004803603602081101561037857600080fd5b5035610aa2565b60405180836001600160801b03168152602001826001600160801b031681526020019250505060405180910390f35b6103b6610ac8565b60408051918252519081900360200190f35b6103b6610ace565b61034e600480360360608110156103e657600080fd5b506001600160a01b03813581169160208101359091169060400135610ad4565b6103b6610af3565b6103b6610af9565b6103b6610b09565b610426610b2d565b6040805160ff9092168252519081900360200190f35b6103b6610b36565b61034e6004803603604081101561045a57600080fd5b506001600160a01b038135169060200135610b5a565b61049c6004803603604081101561048657600080fd5b506001600160a01b038135169060200135610bad565b005b6103b6610cf6565b61034e600480360360208110156104bc57600080fd5b50356001600160a01b0316610d1a565b6104f2600480360360208110156104e257600080fd5b50356001600160a01b0316610d2f565b604080516001600160a01b039092168252519081900360200190f35b6103b66004803603602081101561052457600080fd5b50356001600160a01b0316610d4a565b61037f6004803603604081101561054a57600080fd5b506001600160a01b038135169060200135610d5c565b61049c6004803603602081101561057657600080fd5b50356001600160a01b0316610d8d565b61037f6004803603604081101561059c57600080fd5b506001600160a01b038135169060200135610da8565b6103b6610dd9565b6103b6610dfd565b6104f2600480360360408110156105d857600080fd5b5080356001600160a01b0316906020013560ff16610e05565b6103b66004803603602081101561060757600080fd5b50356001600160a01b0316610e1f565b61049c610e3a565b6103b66004803603602081101561063557600080fd5b50356001600160a01b0316610ee7565b6103b66004803603602081101561065b57600080fd5b50356001600160a01b0316610ef9565b61049c6004803603602081101561068157600080fd5b81019060208101813564010000000081111561069c57600080fd5b8201836020820111156106ae57600080fd5b803590602001918460208302840111640100000000831117156106d057600080fd5b509092509050610f14565b61049c600480360360208110156106f157600080fd5b81019060208101813564010000000081111561070c57600080fd5b82018360208201111561071e57600080fd5b8035906020019184602083028401116401000000008311171561074057600080fd5b5090925090506110ba565b6104f261125a565b6102ad61126e565b61034e6004803603604081101561077157600080fd5b506001600160a01b0381351690602001356112cf565b61034e6004803603604081101561079d57600080fd5b506001600160a01b038135169060200135611337565b6103b661135b565b61049c600480360360208110156107d157600080fd5b503561137f565b6103b6600480360360408110156107ee57600080fd5b5080356001600160a01b0316906020013560ff16611523565b6103b66004803603606081101561081d57600080fd5b5080356001600160a01b0316906020810135906040013560ff1661154b565b61049c600480360360c081101561085257600080fd5b506001600160a01b038135169060208101359060408101359060ff6060820135169060808101359060a00135611574565b6103b66117b4565b6103b66117ba565b61049c600480360360e08110156108a957600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c001356117de565b61049c600480360360408110156108fa57600080fd5b5080356001600160a01b0316906020013560ff16611a34565b6103b66004803603604081101561092957600080fd5b506001600160a01b0381358116916020013516611a3f565b6103b6611a6a565b6102ad611a8e565b6104f26004803603602081101561096757600080fd5b50356001600160a01b0316611aab565b61049c6004803603602081101561098d57600080fd5b50356001600160a01b0316611ac6565b61049c600480360360e08110156109b357600080fd5b506001600160a01b038135169060ff602082013581169160408101359160608201359160808101359091169060a08101359060c00135611bcf565b60038054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610a7a5780601f10610a4f57610100808354040283529160200191610a7a565b820191906000526020600020905b815481529060010190602001808311610a5d57829003601f168201915b5050505050905090565b6000610a98610a91611fac565b8484611fb0565b5060015b92915050565b600d602052600090815260409020546001600160801b0380821691600160801b90041682565b60025490565b60115481565b6000610ae0848461209c565b610aeb848484612161565b949350505050565b600e5481565b6b033b2e3c9fd0803ce800000081565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b60055460ff1690565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000610a98610b67611fac565b84610ba88560016000610b78611fac565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490611f10565b611fb0565b610bb5611fac565b60055461010090046001600160a01b03908116911614610c0a576040805162461bcd60e51b81526020600482018190526024820152600080516020612d54833981519152604482015290519081900360640190fd5b601054421015610c52576040805162461bcd60e51b815260206004820152600e60248201526d4d494e545f544f4f5f4541524c5960901b604482015290519081900360640190fd5b610c8f6064610c897f0000000000000000000000000000000000000000000000000000000000000000610c83610ac8565b906121e3565b9061223c565b811115610cd7576040805162461bcd60e51b815260206004820152601160248201527013505617d352539517d15610d151511151607a1b604482015290519081900360640190fd5b610ce5426301e13380611f10565b601055610cf2828261227e565b5050565b7f9a9a49b990ba9bb39f8048c490a40ab25c18f55d208d5fbcf958261a9b48716d81565b600f6020526000908152604090205460ff1681565b6009602052600090815260409020546001600160a01b031681565b600b6020526000908152604090205481565b60076020908152600092835260408084209091529082529020546001600160801b0380821691600160801b90041682565b610d9933826000612304565b610da533826001612304565b50565b600a6020908152600092835260408084209091529082529020546001600160801b0380821691600160801b90041682565b7f000000000000000000000000000000000000000000000000000000000000000081565b6301e1338081565b600080610e1183612415565b92505050610aeb848261244f565b6001600160a01b031660009081526020819052604090205490565b610e42611fac565b60055461010090046001600160a01b03908116911614610e97576040805162461bcd60e51b81526020600482018190526024820152600080516020612d54833981519152604482015290519081900360640190fd5b60055460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360058054610100600160a81b0319169055565b60086020526000908152604090205481565b6001600160a01b031660009081526006602052604090205490565b610f1c611fac565b60055461010090046001600160a01b03908116911614610f71576040805162461bcd60e51b81526020600482018190526024820152600080516020612d54833981519152604482015290519081900360640190fd5b60005b818110156110b557600f6000848484818110610f8c57fe5b602090810292909201356001600160a01b03168352508101919091526040016000205460ff1615610fee5760405162461bcd60e51b8152600401808060200182810382526024815260200180612d996024913960400191505060405180910390fd5b6001600f600085858581811061100057fe5b905060200201356001600160a01b03166001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff0219169083151502179055507f80e7b8bab7ab72e47957c0c472ede1b89bb3e7d2ba30cd37c2d6b000b49a960a83838381811061107457fe5b905060200201356001600160a01b0316600160405180836001600160a01b0316815260200182151581526020019250505060405180910390a1600101610f74565b505050565b6110c2611fac565b60055461010090046001600160a01b03908116911614611117576040805162461bcd60e51b81526020600482018190526024820152600080516020612d54833981519152604482015290519081900360640190fd5b60005b818110156110b557600f600084848481811061113257fe5b602090810292909201356001600160a01b03168352508101919091526040016000205460ff166111935760405162461bcd60e51b815260040180806020018281038252602c815260200180612de1602c913960400191505060405180910390fd5b6000600f60008585858181106111a557fe5b905060200201356001600160a01b03166001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff0219169083151502179055507f80e7b8bab7ab72e47957c0c472ede1b89bb3e7d2ba30cd37c2d6b000b49a960a83838381811061121957fe5b905060200201356001600160a01b0316600060405180836001600160a01b0316815260200182151581526020019250505060405180910390a160010161111a565b60055461010090046001600160a01b031690565b60048054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610a7a5780601f10610a4f57610100808354040283529160200191610a7a565b6000610a986112dc611fac565b84610ba885604051806060016040528060258152602001612e2f6025913960016000611306611fac565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919061247a565b600061134a611344611fac565b8461209c565b6113548383612511565b9392505050565b7f10d8d059343739efce7dad10d09f0806da52b252b3e6a7951920d2d6ec4102e581565b611387611fac565b60055461010090046001600160a01b039081169116146113dc576040805162461bcd60e51b81526020600482018190526024820152600080516020612d54833981519152604482015290519081900360640190fd5b601154428111611433576040805162461bcd60e51b815260206004820152601a60248201527f5452414e534645525f5245535452494354494f4e5f454e444544000000000000604482015290519081900360640190fd5b818111156114725760405162461bcd60e51b8152600401808060200182810382526022815260200180612e0d6022913960400191505060405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000008211156114e7576040805162461bcd60e51b815260206004820152601e60248201527f41465445525f4d41585f5452414e534645525f5245535452494354494f4e0000604482015290519081900360640190fd5b60118290556040805183815290517fd7b9c9321b627ff004969698b4616502d6b7305a588e685489e91c46fca509a99181900360200190a15050565b600080600061153184612415565b509150915061154282828743612525565b95945050505050565b600080600061155984612415565b509150915061156a82828888612525565b9695505050505050565b604080517f9a9a49b990ba9bb39f8048c490a40ab25c18f55d208d5fbcf958261a9b48716d6020808301919091526001600160a01b038916828401526060820188905260808083018890528351808403909101815260a08301845280519082012061190160f01b60c08401527f000000000000000000000000000000000000000000000000000000000000000060c284015260e2808401829052845180850390910181526101028401808652815191840191909120600091829052610122850180875281905260ff891661014286015261016285018890526101828501879052945191949390926001926101a280840193601f198301929081900390910190855afa158015611687573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166116e3576040805162461bcd60e51b8152602060048201526011602482015270494e56414c49445f5349474e415455524560781b604482015290519081900360640190fd5b6001600160a01b03811660009081526006602052604090208054600181019091558814611747576040805162461bcd60e51b815260206004820152600d60248201526c494e56414c49445f4e4f4e434560981b604482015290519081900360640190fd5b86421115611791576040805162461bcd60e51b815260206004820152601260248201527124a72b20a624a22fa2ac2824a920aa24a7a760711b604482015290519081900360640190fd5b61179d818a6000612304565b6117a9818a6001612304565b505050505050505050565b60105481565b7f000000000000000000000000000000000000000000000000000000000000000081565b6001600160a01b038716611829576040805162461bcd60e51b815260206004820152600d60248201526c24a72b20a624a22fa7aba722a960991b604482015290519081900360640190fd5b83421115611873576040805162461bcd60e51b815260206004820152601260248201527124a72b20a624a22fa2ac2824a920aa24a7a760711b604482015290519081900360640190fd5b6001600160a01b0380881660008181526006602090815260408083205481517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98185015280830195909552948b166060850152608084018a905260a0840185905260c08085018a90528151808603909101815260e08501825280519083012061190160f01b6101008601527f000000000000000000000000000000000000000000000000000000000000000061010286015261012280860191909152815180860390910181526101428501808352815191840191909120939052610162840180825283905260ff88166101828501526101a284018790526101c284018690525191926001926101e28083019392601f198301929081900390910190855afa1580156119a2573d6000803e3d6000fd5b505050602060405103516001600160a01b0316896001600160a01b031614611a05576040805162461bcd60e51b8152602060048201526011602482015270494e56414c49445f5349474e415455524560781b604482015290519081900360640190fd5b611a10826001611f10565b6001600160a01b038a166000908152600660205260409020556117a9898989611fb0565b610cf2338383612304565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81565b604051806040016040528060018152602001603160f81b81525081565b600c602052600090815260409020546001600160a01b031681565b611ace611fac565b60055461010090046001600160a01b03908116911614611b23576040805162461bcd60e51b81526020600482018190526024820152600080516020612d54833981519152604482015290519081900360640190fd5b6001600160a01b038116611b685760405162461bcd60e51b8152600401808060200182810382526026815260200180612c9d6026913960400191505060405180910390fd5b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b60007f10d8d059343739efce7dad10d09f0806da52b252b3e6a7951920d2d6ec4102e588886001811115611bff57fe5b604080516020808201959095526001600160a01b039093168382015260608301919091526080820189905260a08083018990528151808403909101815260c08301825280519084012061190160f01b60e08401527f000000000000000000000000000000000000000000000000000000000000000060e2840152610102808401829052825180850390910181526101228401808452815191860191909120600091829052610142850180855281905260ff8a1661016286015261018285018990526101a285018890529251919550919391926001926101c2808301939192601f198301929081900390910190855afa158015611cff573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611d5b576040805162461bcd60e51b8152602060048201526011602482015270494e56414c49445f5349474e415455524560781b604482015290519081900360640190fd5b6001600160a01b03811660009081526006602052604090208054600181019091558814611dbf576040805162461bcd60e51b815260206004820152600d60248201526c494e56414c49445f4e4f4e434560981b604482015290519081900360640190fd5b86421115611e09576040805162461bcd60e51b815260206004820152601260248201527124a72b20a624a22fa2ac2824a920aa24a7a760711b604482015290519081900360640190fd5b611e14818b8b612304565b50505050505050505050565b6001600160a01b038216611e7b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b611e8760008383612740565b600254611e949082611f10565b6002556001600160a01b038216600090815260208190526040902054611eba9082611f10565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b600082820183811015611354576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600061135483836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061247a565b3390565b6001600160a01b038316611ff55760405162461bcd60e51b8152600401808060200182810382526024815260200180612dbd6024913960400191505060405180910390fd5b6001600160a01b03821661203a5760405162461bcd60e51b8152600401808060200182810382526022815260200180612cc36022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b7f0000000000000000000000000000000000000000000000000000000000000000421080156120cc575060115442105b15610cf2576001600160a01b0382166000908152600f602052604090205460ff168061211057506001600160a01b0381166000908152600f602052604090205460ff165b610cf2576040805162461bcd60e51b815260206004820181905260248201527f4e4f4e5f414c4c4f574c4953545f5452414e53464552535f44495341424c4544604482015290519081900360640190fd5b600061216e84848461279f565b6121d98461217a611fac565b610ba885604051806060016040528060288152602001612d2c602891396001600160a01b038a166000908152600160205260408120906121b8611fac565b6001600160a01b03168152602081019190915260400160002054919061247a565b5060019392505050565b6000826121f257506000610a9c565b828202828482816121ff57fe5b04146113545760405162461bcd60e51b8152600401808060200182810382526021815260200180612d0b6021913960400191505060405180910390fd5b600061135483836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506128fa565b6122888282611e20565b600e54436000612296610ac8565b6040805180820182526001600160801b03808616825280841660208084019182526000898152600d909152939093209151825493518216600160801b029082166001600160801b0319909416939093171691909117905590506122fa836001611f10565b600e555050505050565b6001600160a01b038216612353576040805162461bcd60e51b8152602060048201526011602482015270494e56414c49445f44454c45474154454560781b604482015290519081900360640190fd5b600061235e82612415565b92505050600061236d85610e1f565b9050600061237b868461244f565b6001600160a01b03878116600090815260208690526040902080546001600160a01b03191691881691909117905590506123b78186848761295f565b846001600160a01b0316866001600160a01b03167fe8d51c8e11bd570db1734c8ec775785330e77007feed45c43b608ef33ff914bd86604051808260018111156123fd57fe5b815260200191505060405180910390a3505050505050565b600080808084600181111561242657fe5b141561243c575060079150600890506009612448565b50600a9150600b9050600c5b9193909250565b6001600160a01b03808316600090815260208390526040812054909116806113545783915050610a9c565b600081848411156125095760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156124ce5781810151838201526020016124b6565b50505050905090810190601f1680156124fb5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000610a9861251e611fac565b848461279f565b600043821115612573576040805162461bcd60e51b815260206004820152601460248201527324a72b20a624a22fa12627a1a5afa72aa6a122a960611b604482015290519081900360640190fd5b6001600160a01b038316600090815260208590526040902054806125a25761259a84610e1f565b915050610aeb565b6001600160a01b038416600090815260208781526040808320600019850184529091529020546001600160801b03168310612615576001600160a01b038416600090815260208781526040808320600019909401835292905220546001600160801b03600160801b909104169050610aeb565b6001600160a01b0384166000908152602087815260408083208380529091529020546001600160801b0316831015612651576000915050610aeb565b600060001982015b81811115612703576002828203048103612671612c62565b506001600160a01b038716600090815260208a815260408083208484528252918290208251808401909352546001600160801b03808216808552600160801b90920416918301919091528714156126db57602001516001600160801b03169450610aeb9350505050565b80516001600160801b03168711156126f5578193506126fc565b6001820392505b5050612659565b506001600160a01b0385166000908152602088815260408083209383529290522054600160801b90046001600160801b0316915050949350505050565b600061274d84600961244f565b9050600061275c84600961244f565b905061276b828285600061295f565b600061277886600c61244f565b9050600061278786600c61244f565b9050612796828287600161295f565b50505050505050565b6001600160a01b0383166127e45760405162461bcd60e51b8152600401808060200182810382526025815260200180612d746025913960400191505060405180910390fd5b6001600160a01b0382166128295760405162461bcd60e51b8152600401808060200182810382526023815260200180612c7a6023913960400191505060405180910390fd5b612834838383612740565b61287181604051806060016040528060268152602001612ce5602691396001600160a01b038616600090815260208190526040902054919061247a565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546128a09082611f10565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081836129495760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156124ce5781810151838201526020016124b6565b50600083858161295557fe5b0495945050505050565b826001600160a01b0316846001600160a01b0316141561297e57612b65565b60008061298a83612415565b5090925090506001600160a01b03861615612a79576001600160a01b03861660009081526020829052604081205480156129fb576001600160a01b03881660009081526020858152604080832060001985018452909152902054600160801b90046001600160801b03169150612a07565b612a0488610e1f565b91505b6000612a138388611f6a565b9050612a2185858b84612b6b565b886001600160a01b03167fa0a19463ee116110c9b282012d9b65cc5522dc38a9520340cbaf3142e550127f828860405180838152602001826001811115612a6457fe5b81526020019250505060405180910390a25050505b6001600160a01b03851615612b62576001600160a01b0385166000908152602082905260408120548015612ae4576001600160a01b03871660009081526020858152604080832060001985018452909152902054600160801b90046001600160801b03169150612af0565b612aed87610e1f565b91505b6000612afc8388611f10565b9050612b0a85858a84612b6b565b876001600160a01b03167fa0a19463ee116110c9b282012d9b65cc5522dc38a9520340cbaf3142e550127f828860405180838152602001826001811115612b4d57fe5b81526020019250505060405180910390a25050505b50505b50505050565b6001600160a01b03821660009081526020848152604080832054918790529091204391908115801590612bbc575060001982016000908152602082905260409020546001600160801b038481169116145b15612bf1576000198201600090815260208290526040902080546001600160801b03808716600160801b029116179055612796565b6040805180820182526001600160801b039485168152948416602080870191825260008581529381528284209651875492518716600160801b029087166001600160801b031990931692909217909516179094556001600160a01b0394909416845293905290206001909101905550565b60408051808201909152600080825260208201529056fe45524332303a207472616e7366657220746f20746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657245524332303a207472616e736665722066726f6d20746865207a65726f2061646472657373414444524553535f4558495354535f494e5f5452414e534645525f414c4c4f574c49535445524332303a20617070726f76652066726f6d20746865207a65726f2061646472657373414444524553535f444f45535f4e4f545f45584953545f494e5f5452414e534645525f414c4c4f574c4953544e45575f5452414e534645525f5245535452494354494f4e5f544f4f5f4541524c5945524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212201bc2d69deb253172a3e0761bf351bf8b317e0b6377e62b43a4510998861cbcf664736f6c634300070500334d494e54494e475f524553545249435445445f4245464f52455f544f4f5f4541524c594d41585f5452414e534645525f5245535452494354494f4e5f544f4f5f4541524c595452414e53464552535f524553545249435445445f4245464f52455f544f4f5f4541524c59a0a19463ee116110c9b282012d9b65cc5522dc38a9520340cbaf3142e550127f000000000000000000000000301df37d653b281af83a1ddf4464ef21a622ec8300000000000000000000000000000000000000000000000000000000611e71f0000000000000000000000000000000000000000000000000000000006145fef0000000000000000000000000000000000000000000000000000000006a564ef00000000000000000000000000000000000000000000000000000000000000002

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102a05760003560e01c8063715018a611610167578063c2ffbb91116100ce578063dd62ed3e11610087578063dd62ed3e14610913578063e1b11da414610941578063eccec5a814610949578063f0eb7f8e14610951578063f2fde38b14610977578063f713d8a81461099d576102a0565b8063c2ffbb9114610807578063c3cda5201461083c578063cdfeb0c114610883578063d17deb9f1461088b578063d505accf14610893578063dc937e1c146108e4576102a0565b806395d89b411161012057806395d89b4114610753578063a457c2d71461075b578063a9059cbb14610787578063aa9fbe02146107b3578063ad36dafd146107bb578063b2f4201d146107d8576102a0565b8063715018a6146106175780637bb73c971461061f5780637ecebe00146106455780638aaee2341461066b5780638d48f4f1146106db5780638da5cb5b1461074b576102a0565b806340c10f191161020b5780635c19a95c116101c45780635c19a95c146105605780635f3b687614610586578063657c7a85146105b257806369e3b0d0146105ba5780636f50458d146105c257806370a08231146105f1576102a0565b806340c10f191461047057806341cbf54a1461049e57806348032ec1146104a6578063537f215c146104cc578063549aa8a31461050e5780635b3cc0cf14610534576102a0565b80632b4e1a5b1161025d5780632b4e1a5b146104065780632ff2e9dc1461040e57806330adf81f14610416578063313ce5671461041e5780633644e5151461043c5780633950935114610444576102a0565b806306fdde03146102a5578063095ea7b31461032257806313929bbe1461036257806318160ddd146103ae5780631ff06fdf146103c857806323b872dd146103d0575b600080fd5b6102ad6109ee565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102e75781810151838201526020016102cf565b50505050905090810190601f1680156103145780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61034e6004803603604081101561033857600080fd5b506001600160a01b038135169060200135610a84565b604080519115158252519081900360200190f35b61037f6004803603602081101561037857600080fd5b5035610aa2565b60405180836001600160801b03168152602001826001600160801b031681526020019250505060405180910390f35b6103b6610ac8565b60408051918252519081900360200190f35b6103b6610ace565b61034e600480360360608110156103e657600080fd5b506001600160a01b03813581169160208101359091169060400135610ad4565b6103b6610af3565b6103b6610af9565b6103b6610b09565b610426610b2d565b6040805160ff9092168252519081900360200190f35b6103b6610b36565b61034e6004803603604081101561045a57600080fd5b506001600160a01b038135169060200135610b5a565b61049c6004803603604081101561048657600080fd5b506001600160a01b038135169060200135610bad565b005b6103b6610cf6565b61034e600480360360208110156104bc57600080fd5b50356001600160a01b0316610d1a565b6104f2600480360360208110156104e257600080fd5b50356001600160a01b0316610d2f565b604080516001600160a01b039092168252519081900360200190f35b6103b66004803603602081101561052457600080fd5b50356001600160a01b0316610d4a565b61037f6004803603604081101561054a57600080fd5b506001600160a01b038135169060200135610d5c565b61049c6004803603602081101561057657600080fd5b50356001600160a01b0316610d8d565b61037f6004803603604081101561059c57600080fd5b506001600160a01b038135169060200135610da8565b6103b6610dd9565b6103b6610dfd565b6104f2600480360360408110156105d857600080fd5b5080356001600160a01b0316906020013560ff16610e05565b6103b66004803603602081101561060757600080fd5b50356001600160a01b0316610e1f565b61049c610e3a565b6103b66004803603602081101561063557600080fd5b50356001600160a01b0316610ee7565b6103b66004803603602081101561065b57600080fd5b50356001600160a01b0316610ef9565b61049c6004803603602081101561068157600080fd5b81019060208101813564010000000081111561069c57600080fd5b8201836020820111156106ae57600080fd5b803590602001918460208302840111640100000000831117156106d057600080fd5b509092509050610f14565b61049c600480360360208110156106f157600080fd5b81019060208101813564010000000081111561070c57600080fd5b82018360208201111561071e57600080fd5b8035906020019184602083028401116401000000008311171561074057600080fd5b5090925090506110ba565b6104f261125a565b6102ad61126e565b61034e6004803603604081101561077157600080fd5b506001600160a01b0381351690602001356112cf565b61034e6004803603604081101561079d57600080fd5b506001600160a01b038135169060200135611337565b6103b661135b565b61049c600480360360208110156107d157600080fd5b503561137f565b6103b6600480360360408110156107ee57600080fd5b5080356001600160a01b0316906020013560ff16611523565b6103b66004803603606081101561081d57600080fd5b5080356001600160a01b0316906020810135906040013560ff1661154b565b61049c600480360360c081101561085257600080fd5b506001600160a01b038135169060208101359060408101359060ff6060820135169060808101359060a00135611574565b6103b66117b4565b6103b66117ba565b61049c600480360360e08110156108a957600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c001356117de565b61049c600480360360408110156108fa57600080fd5b5080356001600160a01b0316906020013560ff16611a34565b6103b66004803603604081101561092957600080fd5b506001600160a01b0381358116916020013516611a3f565b6103b6611a6a565b6102ad611a8e565b6104f26004803603602081101561096757600080fd5b50356001600160a01b0316611aab565b61049c6004803603602081101561098d57600080fd5b50356001600160a01b0316611ac6565b61049c600480360360e08110156109b357600080fd5b506001600160a01b038135169060ff602082013581169160408101359160608201359160808101359091169060a08101359060c00135611bcf565b60038054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610a7a5780601f10610a4f57610100808354040283529160200191610a7a565b820191906000526020600020905b815481529060010190602001808311610a5d57829003601f168201915b5050505050905090565b6000610a98610a91611fac565b8484611fb0565b5060015b92915050565b600d602052600090815260409020546001600160801b0380821691600160801b90041682565b60025490565b60115481565b6000610ae0848461209c565b610aeb848484612161565b949350505050565b600e5481565b6b033b2e3c9fd0803ce800000081565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b60055460ff1690565b7f17e76dd75f3dfe3e50d31322433cc1405e898404a5724da2d4804cab81e0a88a81565b6000610a98610b67611fac565b84610ba88560016000610b78611fac565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490611f10565b611fb0565b610bb5611fac565b60055461010090046001600160a01b03908116911614610c0a576040805162461bcd60e51b81526020600482018190526024820152600080516020612d54833981519152604482015290519081900360640190fd5b601054421015610c52576040805162461bcd60e51b815260206004820152600e60248201526d4d494e545f544f4f5f4541524c5960901b604482015290519081900360640190fd5b610c8f6064610c897f0000000000000000000000000000000000000000000000000000000000000002610c83610ac8565b906121e3565b9061223c565b811115610cd7576040805162461bcd60e51b815260206004820152601160248201527013505617d352539517d15610d151511151607a1b604482015290519081900360640190fd5b610ce5426301e13380611f10565b601055610cf2828261227e565b5050565b7f9a9a49b990ba9bb39f8048c490a40ab25c18f55d208d5fbcf958261a9b48716d81565b600f6020526000908152604090205460ff1681565b6009602052600090815260409020546001600160a01b031681565b600b6020526000908152604090205481565b60076020908152600092835260408084209091529082529020546001600160801b0380821691600160801b90041682565b610d9933826000612304565b610da533826001612304565b50565b600a6020908152600092835260408084209091529082529020546001600160801b0380821691600160801b90041682565b7f000000000000000000000000000000000000000000000000000000000000000281565b6301e1338081565b600080610e1183612415565b92505050610aeb848261244f565b6001600160a01b031660009081526020819052604090205490565b610e42611fac565b60055461010090046001600160a01b03908116911614610e97576040805162461bcd60e51b81526020600482018190526024820152600080516020612d54833981519152604482015290519081900360640190fd5b60055460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360058054610100600160a81b0319169055565b60086020526000908152604090205481565b6001600160a01b031660009081526006602052604090205490565b610f1c611fac565b60055461010090046001600160a01b03908116911614610f71576040805162461bcd60e51b81526020600482018190526024820152600080516020612d54833981519152604482015290519081900360640190fd5b60005b818110156110b557600f6000848484818110610f8c57fe5b602090810292909201356001600160a01b03168352508101919091526040016000205460ff1615610fee5760405162461bcd60e51b8152600401808060200182810382526024815260200180612d996024913960400191505060405180910390fd5b6001600f600085858581811061100057fe5b905060200201356001600160a01b03166001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff0219169083151502179055507f80e7b8bab7ab72e47957c0c472ede1b89bb3e7d2ba30cd37c2d6b000b49a960a83838381811061107457fe5b905060200201356001600160a01b0316600160405180836001600160a01b0316815260200182151581526020019250505060405180910390a1600101610f74565b505050565b6110c2611fac565b60055461010090046001600160a01b03908116911614611117576040805162461bcd60e51b81526020600482018190526024820152600080516020612d54833981519152604482015290519081900360640190fd5b60005b818110156110b557600f600084848481811061113257fe5b602090810292909201356001600160a01b03168352508101919091526040016000205460ff166111935760405162461bcd60e51b815260040180806020018281038252602c815260200180612de1602c913960400191505060405180910390fd5b6000600f60008585858181106111a557fe5b905060200201356001600160a01b03166001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff0219169083151502179055507f80e7b8bab7ab72e47957c0c472ede1b89bb3e7d2ba30cd37c2d6b000b49a960a83838381811061121957fe5b905060200201356001600160a01b0316600060405180836001600160a01b0316815260200182151581526020019250505060405180910390a160010161111a565b60055461010090046001600160a01b031690565b60048054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610a7a5780601f10610a4f57610100808354040283529160200191610a7a565b6000610a986112dc611fac565b84610ba885604051806060016040528060258152602001612e2f6025913960016000611306611fac565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919061247a565b600061134a611344611fac565b8461209c565b6113548383612511565b9392505050565b7f10d8d059343739efce7dad10d09f0806da52b252b3e6a7951920d2d6ec4102e581565b611387611fac565b60055461010090046001600160a01b039081169116146113dc576040805162461bcd60e51b81526020600482018190526024820152600080516020612d54833981519152604482015290519081900360640190fd5b601154428111611433576040805162461bcd60e51b815260206004820152601a60248201527f5452414e534645525f5245535452494354494f4e5f454e444544000000000000604482015290519081900360640190fd5b818111156114725760405162461bcd60e51b8152600401808060200182810382526022815260200180612e0d6022913960400191505060405180910390fd5b7f000000000000000000000000000000000000000000000000000000006145fef08211156114e7576040805162461bcd60e51b815260206004820152601e60248201527f41465445525f4d41585f5452414e534645525f5245535452494354494f4e0000604482015290519081900360640190fd5b60118290556040805183815290517fd7b9c9321b627ff004969698b4616502d6b7305a588e685489e91c46fca509a99181900360200190a15050565b600080600061153184612415565b509150915061154282828743612525565b95945050505050565b600080600061155984612415565b509150915061156a82828888612525565b9695505050505050565b604080517f9a9a49b990ba9bb39f8048c490a40ab25c18f55d208d5fbcf958261a9b48716d6020808301919091526001600160a01b038916828401526060820188905260808083018890528351808403909101815260a08301845280519082012061190160f01b60c08401527f17e76dd75f3dfe3e50d31322433cc1405e898404a5724da2d4804cab81e0a88a60c284015260e2808401829052845180850390910181526101028401808652815191840191909120600091829052610122850180875281905260ff891661014286015261016285018890526101828501879052945191949390926001926101a280840193601f198301929081900390910190855afa158015611687573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166116e3576040805162461bcd60e51b8152602060048201526011602482015270494e56414c49445f5349474e415455524560781b604482015290519081900360640190fd5b6001600160a01b03811660009081526006602052604090208054600181019091558814611747576040805162461bcd60e51b815260206004820152600d60248201526c494e56414c49445f4e4f4e434560981b604482015290519081900360640190fd5b86421115611791576040805162461bcd60e51b815260206004820152601260248201527124a72b20a624a22fa2ac2824a920aa24a7a760711b604482015290519081900360640190fd5b61179d818a6000612304565b6117a9818a6001612304565b505050505050505050565b60105481565b7f000000000000000000000000000000000000000000000000000000006145fef081565b6001600160a01b038716611829576040805162461bcd60e51b815260206004820152600d60248201526c24a72b20a624a22fa7aba722a960991b604482015290519081900360640190fd5b83421115611873576040805162461bcd60e51b815260206004820152601260248201527124a72b20a624a22fa2ac2824a920aa24a7a760711b604482015290519081900360640190fd5b6001600160a01b0380881660008181526006602090815260408083205481517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98185015280830195909552948b166060850152608084018a905260a0840185905260c08085018a90528151808603909101815260e08501825280519083012061190160f01b6101008601527f17e76dd75f3dfe3e50d31322433cc1405e898404a5724da2d4804cab81e0a88a61010286015261012280860191909152815180860390910181526101428501808352815191840191909120939052610162840180825283905260ff88166101828501526101a284018790526101c284018690525191926001926101e28083019392601f198301929081900390910190855afa1580156119a2573d6000803e3d6000fd5b505050602060405103516001600160a01b0316896001600160a01b031614611a05576040805162461bcd60e51b8152602060048201526011602482015270494e56414c49445f5349474e415455524560781b604482015290519081900360640190fd5b611a10826001611f10565b6001600160a01b038a166000908152600660205260409020556117a9898989611fb0565b610cf2338383612304565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81565b604051806040016040528060018152602001603160f81b81525081565b600c602052600090815260409020546001600160a01b031681565b611ace611fac565b60055461010090046001600160a01b03908116911614611b23576040805162461bcd60e51b81526020600482018190526024820152600080516020612d54833981519152604482015290519081900360640190fd5b6001600160a01b038116611b685760405162461bcd60e51b8152600401808060200182810382526026815260200180612c9d6026913960400191505060405180910390fd5b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b60007f10d8d059343739efce7dad10d09f0806da52b252b3e6a7951920d2d6ec4102e588886001811115611bff57fe5b604080516020808201959095526001600160a01b039093168382015260608301919091526080820189905260a08083018990528151808403909101815260c08301825280519084012061190160f01b60e08401527f17e76dd75f3dfe3e50d31322433cc1405e898404a5724da2d4804cab81e0a88a60e2840152610102808401829052825180850390910181526101228401808452815191860191909120600091829052610142850180855281905260ff8a1661016286015261018285018990526101a285018890529251919550919391926001926101c2808301939192601f198301929081900390910190855afa158015611cff573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611d5b576040805162461bcd60e51b8152602060048201526011602482015270494e56414c49445f5349474e415455524560781b604482015290519081900360640190fd5b6001600160a01b03811660009081526006602052604090208054600181019091558814611dbf576040805162461bcd60e51b815260206004820152600d60248201526c494e56414c49445f4e4f4e434560981b604482015290519081900360640190fd5b86421115611e09576040805162461bcd60e51b815260206004820152601260248201527124a72b20a624a22fa2ac2824a920aa24a7a760711b604482015290519081900360640190fd5b611e14818b8b612304565b50505050505050505050565b6001600160a01b038216611e7b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b611e8760008383612740565b600254611e949082611f10565b6002556001600160a01b038216600090815260208190526040902054611eba9082611f10565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b600082820183811015611354576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600061135483836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061247a565b3390565b6001600160a01b038316611ff55760405162461bcd60e51b8152600401808060200182810382526024815260200180612dbd6024913960400191505060405180910390fd5b6001600160a01b03821661203a5760405162461bcd60e51b8152600401808060200182810382526022815260200180612cc36022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b7f000000000000000000000000000000000000000000000000000000006145fef0421080156120cc575060115442105b15610cf2576001600160a01b0382166000908152600f602052604090205460ff168061211057506001600160a01b0381166000908152600f602052604090205460ff165b610cf2576040805162461bcd60e51b815260206004820181905260248201527f4e4f4e5f414c4c4f574c4953545f5452414e53464552535f44495341424c4544604482015290519081900360640190fd5b600061216e84848461279f565b6121d98461217a611fac565b610ba885604051806060016040528060288152602001612d2c602891396001600160a01b038a166000908152600160205260408120906121b8611fac565b6001600160a01b03168152602081019190915260400160002054919061247a565b5060019392505050565b6000826121f257506000610a9c565b828202828482816121ff57fe5b04146113545760405162461bcd60e51b8152600401808060200182810382526021815260200180612d0b6021913960400191505060405180910390fd5b600061135483836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506128fa565b6122888282611e20565b600e54436000612296610ac8565b6040805180820182526001600160801b03808616825280841660208084019182526000898152600d909152939093209151825493518216600160801b029082166001600160801b0319909416939093171691909117905590506122fa836001611f10565b600e555050505050565b6001600160a01b038216612353576040805162461bcd60e51b8152602060048201526011602482015270494e56414c49445f44454c45474154454560781b604482015290519081900360640190fd5b600061235e82612415565b92505050600061236d85610e1f565b9050600061237b868461244f565b6001600160a01b03878116600090815260208690526040902080546001600160a01b03191691881691909117905590506123b78186848761295f565b846001600160a01b0316866001600160a01b03167fe8d51c8e11bd570db1734c8ec775785330e77007feed45c43b608ef33ff914bd86604051808260018111156123fd57fe5b815260200191505060405180910390a3505050505050565b600080808084600181111561242657fe5b141561243c575060079150600890506009612448565b50600a9150600b9050600c5b9193909250565b6001600160a01b03808316600090815260208390526040812054909116806113545783915050610a9c565b600081848411156125095760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156124ce5781810151838201526020016124b6565b50505050905090810190601f1680156124fb5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000610a9861251e611fac565b848461279f565b600043821115612573576040805162461bcd60e51b815260206004820152601460248201527324a72b20a624a22fa12627a1a5afa72aa6a122a960611b604482015290519081900360640190fd5b6001600160a01b038316600090815260208590526040902054806125a25761259a84610e1f565b915050610aeb565b6001600160a01b038416600090815260208781526040808320600019850184529091529020546001600160801b03168310612615576001600160a01b038416600090815260208781526040808320600019909401835292905220546001600160801b03600160801b909104169050610aeb565b6001600160a01b0384166000908152602087815260408083208380529091529020546001600160801b0316831015612651576000915050610aeb565b600060001982015b81811115612703576002828203048103612671612c62565b506001600160a01b038716600090815260208a815260408083208484528252918290208251808401909352546001600160801b03808216808552600160801b90920416918301919091528714156126db57602001516001600160801b03169450610aeb9350505050565b80516001600160801b03168711156126f5578193506126fc565b6001820392505b5050612659565b506001600160a01b0385166000908152602088815260408083209383529290522054600160801b90046001600160801b0316915050949350505050565b600061274d84600961244f565b9050600061275c84600961244f565b905061276b828285600061295f565b600061277886600c61244f565b9050600061278786600c61244f565b9050612796828287600161295f565b50505050505050565b6001600160a01b0383166127e45760405162461bcd60e51b8152600401808060200182810382526025815260200180612d746025913960400191505060405180910390fd5b6001600160a01b0382166128295760405162461bcd60e51b8152600401808060200182810382526023815260200180612c7a6023913960400191505060405180910390fd5b612834838383612740565b61287181604051806060016040528060268152602001612ce5602691396001600160a01b038616600090815260208190526040902054919061247a565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546128a09082611f10565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081836129495760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156124ce5781810151838201526020016124b6565b50600083858161295557fe5b0495945050505050565b826001600160a01b0316846001600160a01b0316141561297e57612b65565b60008061298a83612415565b5090925090506001600160a01b03861615612a79576001600160a01b03861660009081526020829052604081205480156129fb576001600160a01b03881660009081526020858152604080832060001985018452909152902054600160801b90046001600160801b03169150612a07565b612a0488610e1f565b91505b6000612a138388611f6a565b9050612a2185858b84612b6b565b886001600160a01b03167fa0a19463ee116110c9b282012d9b65cc5522dc38a9520340cbaf3142e550127f828860405180838152602001826001811115612a6457fe5b81526020019250505060405180910390a25050505b6001600160a01b03851615612b62576001600160a01b0385166000908152602082905260408120548015612ae4576001600160a01b03871660009081526020858152604080832060001985018452909152902054600160801b90046001600160801b03169150612af0565b612aed87610e1f565b91505b6000612afc8388611f10565b9050612b0a85858a84612b6b565b876001600160a01b03167fa0a19463ee116110c9b282012d9b65cc5522dc38a9520340cbaf3142e550127f828860405180838152602001826001811115612b4d57fe5b81526020019250505060405180910390a25050505b50505b50505050565b6001600160a01b03821660009081526020848152604080832054918790529091204391908115801590612bbc575060001982016000908152602082905260409020546001600160801b038481169116145b15612bf1576000198201600090815260208290526040902080546001600160801b03808716600160801b029116179055612796565b6040805180820182526001600160801b039485168152948416602080870191825260008581529381528284209651875492518716600160801b029087166001600160801b031990931692909217909516179094556001600160a01b0394909416845293905290206001909101905550565b60408051808201909152600080825260208201529056fe45524332303a207472616e7366657220746f20746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657245524332303a207472616e736665722066726f6d20746865207a65726f2061646472657373414444524553535f4558495354535f494e5f5452414e534645525f414c4c4f574c49535445524332303a20617070726f76652066726f6d20746865207a65726f2061646472657373414444524553535f444f45535f4e4f545f45584953545f494e5f5452414e534645525f414c4c4f574c4953544e45575f5452414e534645525f5245535452494354494f4e5f544f4f5f4541524c5945524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212201bc2d69deb253172a3e0761bf351bf8b317e0b6377e62b43a4510998861cbcf664736f6c63430007050033

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

000000000000000000000000301df37d653b281af83a1ddf4464ef21a622ec8300000000000000000000000000000000000000000000000000000000611e71f0000000000000000000000000000000000000000000000000000000006145fef0000000000000000000000000000000000000000000000000000000006a564ef00000000000000000000000000000000000000000000000000000000000000002

-----Decoded View---------------
Arg [0] : distributor (address): 0x301DF37d653b281AF83a1DDf4464eF21A622eC83
Arg [1] : transfersRestrictedBefore (uint256): 1629385200
Arg [2] : transferRestrictionLiftedNoLaterThan (uint256): 1631977200
Arg [3] : mintingRestrictedBefore (uint256): 1784041200
Arg [4] : mintMaxPercent (uint256): 2

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 000000000000000000000000301df37d653b281af83a1ddf4464ef21a622ec83
Arg [1] : 00000000000000000000000000000000000000000000000000000000611e71f0
Arg [2] : 000000000000000000000000000000000000000000000000000000006145fef0
Arg [3] : 000000000000000000000000000000000000000000000000000000006a564ef0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000002


Deployed Bytecode Sourcemap

39344:16990:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13764:91;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15894:169;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;15894:169:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;41988:57;;;;;;;;;;;;;;;;-1:-1:-1;41988:57:0;;:::i;:::-;;;;;-1:-1:-1;;;;;41988:57:0;;;;;;-1:-1:-1;;;;;41988:57:0;;;;;;;;;;;;;;;;14863:100;;;:::i;:::-;;;;;;;;;;;;;;;;42543:41;;;:::i;50022:256::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;50022:256:0;;;;;;;;;;;;;;;;;:::i;42114:41::-;;;:::i;40363:60::-;;;:::i;40673:147::-;;;:::i;14707:91::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;40430:41;;;:::i;17267:218::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;17267:218:0;;;;;;;;:::i;47706:490::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;47706:490:0;;;;;;;;:::i;:::-;;28618:123;;;:::i;42283:55::-;;;;;;;;;;;;;;;;-1:-1:-1;42283:55:0;-1:-1:-1;;;;;42283:55:0;;:::i;41601:51::-;;;;;;;;;;;;;;;;-1:-1:-1;41601:51:0;-1:-1:-1;;;;;41601:51:0;;:::i;:::-;;;;-1:-1:-1;;;;;41601:51:0;;;;;;;;;;;;;;41746:67;;;;;;;;;;;;;;;;-1:-1:-1;41746:67:0;-1:-1:-1;;;;;41746:67:0;;:::i;41462:72::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;41462:72:0;;;;;;;;:::i;29586:237::-;;;;;;;;;;;;;;;;-1:-1:-1;29586:237:0;-1:-1:-1;;;;;29586:237:0;;:::i;41659:82::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;41659:82:0;;;;;;;;:::i;41080:41::-;;;:::i;40870:52::-;;;:::i;30044:315::-;;;;;;;;;;;;;;;;-1:-1:-1;30044:315:0;;-1:-1:-1;;;;;30044:315:0;;;;;;;;:::i;15026:119::-;;;;;;;;;;;;;;;;-1:-1:-1;15026:119:0;-1:-1:-1;;;;;15026:119:0;;:::i;24259:138::-;;;:::i;41539:57::-;;;;;;;;;;;;;;;;-1:-1:-1;41539:57:0;-1:-1:-1;;;;;41539:57:0;;:::i;49660:125::-;;;;;;;;;;;;;;;;-1:-1:-1;49660:125:0;-1:-1:-1;;;;;49660:125:0;;:::i;45165:435::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;45165:435:0;;-1:-1:-1;45165:435:0;-1:-1:-1;45165:435:0;:::i;45874:464::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;45874:464:0;;-1:-1:-1;45874:464:0;-1:-1:-1;45874:464:0;:::i;23657:73::-;;;:::i;13974:95::-;;;:::i;17988:269::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;17988:269:0;;;;;;;;:::i;49791:225::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;49791:225:0;;;;;;;;:::i;28375:150::-;;;:::i;46731:733::-;;;;;;;;;;;;;;;;-1:-1:-1;46731:733:0;;:::i;30662:452::-;;;;;;;;;;;;;;;;-1:-1:-1;30662:452:0;;-1:-1:-1;;;;;30662:452:0;;;;;;;;:::i;31427:477::-;;;;;;;;;;;;;;;;-1:-1:-1;31427:477:0;;-1:-1:-1;;;;;31427:477:0;;;;;;;;;;;;;:::i;55547:784::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;55547:784:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;42412:39::-;;;:::i;41217:66::-;;;:::i;48625:787::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;48625:787:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;29252:187::-;;;;;;;;;;;;;;;;-1:-1:-1;29252:187:0;;-1:-1:-1;;;;;29252:187:0;;;;;;;;:::i;15596:151::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;15596:151:0;;;;;;;;;;:::i;40523:145::-;;;:::i;40476:42::-;;;:::i;41818:61::-;;;;;;;;;;;;;;;;-1:-1:-1;41818:61:0;-1:-1:-1;;;;;41818:61:0;;:::i;24542:230::-;;;;;;;;;;;;;;;;-1:-1:-1;24542:230:0;-1:-1:-1;;;;;24542:230:0;;:::i;54302:785::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;54302:785:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;13764:91::-;13842:5;13835:12;;;;;;;;-1:-1:-1;;13835:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13809:13;;13835:12;;13842:5;;13835:12;;13842:5;13835:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13764:91;:::o;15894:169::-;15977:4;15994:39;16003:12;:10;:12::i;:::-;16017:7;16026:6;15994:8;:39::i;:::-;-1:-1:-1;16051:4:0;15894:169;;;;;:::o;41988:57::-;;;;;;;;;;;;-1:-1:-1;;;;;41988:57:0;;;;-1:-1:-1;;;41988:57:0;;;;:::o;14863:100::-;14943:12;;14863:100;:::o;42543:41::-;;;;:::o;50022:256::-;50155:4;50171:42;50195:6;50203:9;50171:23;:42::i;:::-;50227:45;50246:6;50254:9;50265:6;50227:18;:45::i;:::-;50220:52;50022:256;-1:-1:-1;;;;50022:256:0:o;42114:41::-;;;;:::o;40363:60::-;40404:19;40363:60;:::o;40673:147::-;40715:105;40673:147;:::o;14707:91::-;14781:9;;;;14707:91;:::o;40430:41::-;;;:::o;17267:218::-;17355:4;17372:83;17381:12;:10;:12::i;:::-;17395:7;17404:50;17443:10;17404:11;:25;17416:12;:10;:12::i;:::-;-1:-1:-1;;;;;17404:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;17404:25:0;;;:34;;;;;;;;;;;:38;:50::i;:::-;17372:8;:83::i;47706:490::-;23861:12;:10;:12::i;:::-;23851:6;;;;;-1:-1:-1;;;;;23851:6:0;;;:22;;;23843:67;;;;;-1:-1:-1;;;23843:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;23843:67:0;;;;;;;;;;;;;;;47844:24:::1;;47825:15;:43;;47809:91;;;::::0;;-1:-1:-1;;;47809:91:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;47809:91:0;;;;;;;;;;;;;::::1;;47933:44;47973:3;47933:35;47951:16;47933:13;:11;:13::i;:::-;:17:::0;::::1;:35::i;:::-;:39:::0;::::1;:44::i;:::-;47923:6;:54;;47907:105;;;::::0;;-1:-1:-1;;;47907:105:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;47907:105:0;;;;;;;;;;;;;::::1;;48094:38;:15;40914:8;48094:19;:38::i;:::-;48067:24;:65:::0;48166:24:::1;48172:9:::0;48183:6;48166:5:::1;:24::i;:::-;47706:490:::0;;:::o;28618:123::-;28662:79;28618:123;:::o;42283:55::-;;;;;;;;;;;;;;;:::o;41601:51::-;;;;;;;;;;;;-1:-1:-1;;;;;41601:51:0;;:::o;41746:67::-;;;;;;;;;;;;;:::o;41462:72::-;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;41462:72:0;;;;-1:-1:-1;;;41462:72:0;;;;:::o;29586:237::-;29671:67;29687:10;29699:9;29710:27;29671:15;:67::i;:::-;29745:72;29761:10;29773:9;29784:32;29745:15;:72::i;:::-;29586:237;:::o;41659:82::-;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;41659:82:0;;;;-1:-1:-1;;;41659:82:0;;;;:::o;41080:41::-;;;:::o;40870:52::-;40914:8;40870:52;:::o;30044:315::-;30189:7;30213:45;30262:40;30287:14;30262:24;:40::i;:::-;30208:94;;;;30318:35;30332:9;30343;30318:13;:35::i;15026:119::-;-1:-1:-1;;;;;15119:18:0;15092:7;15119:18;;;;;;;;;;;;15026:119::o;24259:138::-;23861:12;:10;:12::i;:::-;23851:6;;;;;-1:-1:-1;;;;;23851:6:0;;;:22;;;23843:67;;;;;-1:-1:-1;;;23843:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;23843:67:0;;;;;;;;;;;;;;;24346:6:::1;::::0;24325:40:::1;::::0;24362:1:::1;::::0;24346:6:::1;::::0;::::1;-1:-1:-1::0;;;;;24346:6:0::1;::::0;24325:40:::1;::::0;24362:1;;24325:40:::1;24372:6;:19:::0;;-1:-1:-1;;;;;;24372:19:0::1;::::0;;24259:138::o;41539:57::-;;;;;;;;;;;;;:::o;49660:125::-;-1:-1:-1;;;;;49765:14:0;49739:7;49765:14;;;:7;:14;;;;;;;49660:125::o;45165:435::-;23861:12;:10;:12::i;:::-;23851:6;;;;;-1:-1:-1;;;;;23851:6:0;;;:22;;;23843:67;;;;;-1:-1:-1;;;23843:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;23843:67:0;;;;;;;;;;;;;;;45291:9:::1;45286:309;45306:25:::0;;::::1;45286:309;;;45366:23;:42;45390:14;;45405:1;45390:17;;;;;;;;::::0;;::::1;::::0;;;::::1;;-1:-1:-1::0;;;;;45390:17:0::1;45366:42:::0;;-1:-1:-1;45366:42:0;::::1;::::0;;;;;;-1:-1:-1;45366:42:0;;::::1;;45365:43;45347:119;;;;-1:-1:-1::0;;;45347:119:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45520:4;45475:23;:42;45499:14;;45514:1;45499:17;;;;;;;;;;;;;-1:-1:-1::0;;;;;45499:17:0::1;-1:-1:-1::0;;;;;45475:42:0::1;-1:-1:-1::0;;;;;45475:42:0::1;;;;;;;;;;;;;:49;;;;;;;;;;;;;;;;;;45538;45563:14;;45578:1;45563:17;;;;;;;;;;;;;-1:-1:-1::0;;;;;45563:17:0::1;45582:4;45538:49;;;;-1:-1:-1::0;;;;;45538:49:0::1;;;;;;;;;;;;;;;;;;;;;;;45333:3;;45286:309;;;;45165:435:::0;;:::o;45874:464::-;23861:12;:10;:12::i;:::-;23851:6;;;;;-1:-1:-1;;;;;23851:6:0;;;:22;;;23843:67;;;;;-1:-1:-1;;;23843:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;23843:67:0;;;;;;;;;;;;;;;46008:9:::1;46003:330;46023:28:::0;;::::1;46003:330;;;46085:23;:45;46109:17;;46127:1;46109:20;;;;;;;;::::0;;::::1;::::0;;;::::1;;-1:-1:-1::0;;;;;46109:20:0::1;46085:45:::0;;-1:-1:-1;46085:45:0;::::1;::::0;;;;;;-1:-1:-1;46085:45:0;;::::1;;46067:129;;;;-1:-1:-1::0;;;46067:129:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46253:5;46205:23;:45;46229:17;;46247:1;46229:20;;;;;;;;;;;;;-1:-1:-1::0;;;;;46229:20:0::1;-1:-1:-1::0;;;;;46205:45:0::1;-1:-1:-1::0;;;;;46205:45:0::1;;;;;;;;;;;;;:53;;;;;;;;;;;;;;;;;;46272;46297:17;;46315:1;46297:20;;;;;;;;;;;;;-1:-1:-1::0;;;;;46297:20:0::1;46319:5;46272:53;;;;-1:-1:-1::0;;;;;46272:53:0::1;;;;;;;;;;;;;;;;;;;;;;;46053:3;;46003:330;;23657:73:::0;23718:6;;;;;-1:-1:-1;;;;;23718:6:0;;23657:73::o;13974:95::-;14054:7;14047:14;;;;;;;;-1:-1:-1;;14047:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14021:13;;14047:14;;14054:7;;14047:14;;14054:7;14047:14;;;;;;;;;;;;;;;;;;;;;;;;17988:269;18081:4;18098:129;18107:12;:10;:12::i;:::-;18121:7;18130:96;18169:15;18130:96;;;;;;;;;;;;;;;;;:11;:25;18142:12;:10;:12::i;:::-;-1:-1:-1;;;;;18130:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;18130:25:0;;;:34;;;;;;;;;;;:96;:38;:96::i;49791:225::-;49899:4;49915:48;49939:12;:10;:12::i;:::-;49953:9;49915:23;:48::i;:::-;49977:33;49992:9;50003:6;49977:14;:33::i;:::-;49970:40;49791:225;-1:-1:-1;;;49791:225:0:o;28375:150::-;28427:98;28375:150;:::o;46731:733::-;23861:12;:10;:12::i;:::-;23851:6;;;;;-1:-1:-1;;;;;23851:6:0;;;:22;;;23843:67;;;;;-1:-1:-1;;;23843:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;23843:67:0;;;;;;;;;;;;;;;46900:26:::1;::::0;46949:15:::1;:51:::0;-1:-1:-1;46933:111:0::1;;;::::0;;-1:-1:-1;;;46933:111:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;47104:25;47067:33;:62;;47051:130;;;;-1:-1:-1::0;;;47051:130:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47233:41;47204:25;:70;;47188:134;;;::::0;;-1:-1:-1;;;47188:134:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;47331:26;:54:::0;;;47399:59:::1;::::0;;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;23917:1;46731:733:::0;:::o;30662:452::-;30799:7;30827:66;30902:51;30984:40;31009:14;30984:24;:40::i;:::-;30818:206;;;;;31040:68;31061:9;31072:15;31089:4;31095:12;31040:20;:68::i;:::-;31033:75;30662:452;-1:-1:-1;;;;;30662:452:0:o;31427:477::-;31590:7;31618:66;31693:51;31775:40;31800:14;31775:24;:40::i;:::-;31609:206;;;;;31831:67;31852:9;31863:15;31880:4;31886:11;31831:20;:67::i;:::-;31824:74;31427:477;-1:-1:-1;;;;;;31427:477:0:o;55547:784::-;55739:55;;;28662:79;55739:55;;;;;;;;-1:-1:-1;;;;;55739:55:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;55729:66;;;;;;-1:-1:-1;;;55829:58:0;;;;55858:16;55829:58;;;;;;;;;;;;;;;;;;;;;;;;;;;55819:69;;;;;;;;;55708:18;55912:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;55729:66;;55819:69;55708:18;;55912:26;;;;;;;-1:-1:-1;;55912:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;55912:26:0;;-1:-1:-1;;55912:26:0;;;-1:-1:-1;;;;;;;55961:20:0;;55945:71;;;;;-1:-1:-1;;;55945:71:0;;;;;;;;;;;;-1:-1:-1;;;55945:71:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;56048:15:0;;;;;;:7;:15;;;;;:17;;;;;;;;56039:26;;56023:73;;;;;-1:-1:-1;;;56023:73:0;;;;;;;;;;;;-1:-1:-1;;;56023:73:0;;;;;;;;;;;;;;;56138:6;56119:15;:25;;56103:77;;;;;-1:-1:-1;;;56103:77:0;;;;;;;;;;;;-1:-1:-1;;;56103:77:0;;;;;;;;;;;;;;;56187:63;56203:6;56211:9;56222:27;56187:15;:63::i;:::-;56257:68;56273:6;56281:9;56292:32;56257:15;:68::i;:::-;55547:784;;;;;;;;;:::o;42412:39::-;;;;:::o;41217:66::-;;;:::o;48625:787::-;-1:-1:-1;;;;;48817:19:0;;48801:66;;;;;-1:-1:-1;;;48801:66:0;;;;;;;;;;;;-1:-1:-1;;;48801:66:0;;;;;;;;;;;;;;;48909:8;48890:15;:27;;48874:79;;;;;-1:-1:-1;;;48874:79:0;;;;;;;;;;;;-1:-1:-1;;;48874:79:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;48988:14:0;;;48960:25;48988:14;;;:7;:14;;;;;;;;;49129:79;;40715:105;49129:79;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49119:90;;;;;;-1:-1:-1;;;49044:174:0;;;;49092:16;49044:174;;;;;;;;;;;;;;;;;;;;;;;;;;;;49026:199;;;;;;;;;49259:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49026:199;;49259:26;;;;;;;48988:14;-1:-1:-1;;49259:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;49250:35:0;:5;-1:-1:-1;;;;;49250:35:0;;49234:86;;;;;-1:-1:-1;;;49234:86:0;;;;;;;;;;;;-1:-1:-1;;;49234:86:0;;;;;;;;;;;;;;;49344:24;:17;49366:1;49344:21;:24::i;:::-;-1:-1:-1;;;;;49327:14:0;;;;;;:7;:14;;;;;:41;49375:31;49335:5;49391:7;49400:5;49375:8;:31::i;29252:187::-;29379:54;29395:10;29407:9;29418:14;29379:15;:54::i;15596:151::-;-1:-1:-1;;;;;15712:18:0;;;15685:7;15712:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;15596:151::o;40523:145::-;40563:105;40523:145;:::o;40476:42::-;;;;;;;;;;;;;;-1:-1:-1;;;40476:42:0;;;;:::o;41818:61::-;;;;;;;;;;;;-1:-1:-1;;;;;41818:61:0;;:::o;24542:230::-;23861:12;:10;:12::i;:::-;23851:6;;;;;-1:-1:-1;;;;;23851:6:0;;;:22;;;23843:67;;;;;-1:-1:-1;;;23843:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;23843:67:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;24627:22:0;::::1;24619:73;;;;-1:-1:-1::0;;;24619:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24725:6;::::0;24704:38:::1;::::0;-1:-1:-1;;;;;24704:38:0;;::::1;::::0;24725:6:::1;::::0;::::1;;::::0;24704:38:::1;::::0;;;::::1;24749:6;:17:::0;;-1:-1:-1;;;;;24749:17:0;;::::1;;;-1:-1:-1::0;;;;;;24749:17:0;;::::1;::::0;;;::::1;::::0;;24542:230::o;54302:785::-;54505:18;28427:98;54582:9;54601:14;54593:23;;;;;;;;54544:88;;;;;;;;;;;-1:-1:-1;;;;;54544:88:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54526:113;;;;;;-1:-1:-1;;;54673:58:0;;;;54702:16;54673:58;;;;;;;;;;;;;;;;;;;;;;;;;;;54663:69;;;;;;;;;-1:-1:-1;54756:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54526:113;;-1:-1:-1;54663:69:0;;-1:-1:-1;;54756:26:0;;;;;;;54544:88;;-1:-1:-1;;54756:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;54756:26:0;;-1:-1:-1;;54756:26:0;;;-1:-1:-1;;;;;;;54805:20:0;;54789:71;;;;;-1:-1:-1;;;54789:71:0;;;;;;;;;;;;-1:-1:-1;;;54789:71:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;54892:15:0;;;;;;:7;:15;;;;;:17;;;;;;;;54883:26;;54867:73;;;;;-1:-1:-1;;;54867:73:0;;;;;;;;;;;;-1:-1:-1;;;54867:73:0;;;;;;;;;;;;;;;54982:6;54963:15;:25;;54947:77;;;;;-1:-1:-1;;;54947:77:0;;;;;;;;;;;;-1:-1:-1;;;54947:77:0;;;;;;;;;;;;;;;55031:50;55047:6;55055:9;55066:14;55031:15;:50::i;:::-;54302:785;;;;;;;;;;:::o;19567:378::-;-1:-1:-1;;;;;19651:21:0;;19643:65;;;;;-1:-1:-1;;;19643:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;19721:49;19750:1;19754:7;19763:6;19721:20;:49::i;:::-;19798:12;;:24;;19815:6;19798:16;:24::i;:::-;19783:12;:39;-1:-1:-1;;;;;19854:18:0;;:9;:18;;;;;;;;;;;:30;;19877:6;19854:22;:30::i;:::-;-1:-1:-1;;;;;19833:18:0;;:9;:18;;;;;;;;;;;:51;;;;19900:37;;;;;;;19833:18;;:9;;19900:37;;;;;;;;;;19567:378;;:::o;4704:167::-;4762:7;4790:5;;;4810:6;;;;4802:46;;;;;-1:-1:-1;;;4802:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;5126:130;5184:7;5207:43;5211:1;5214;5207:43;;;;;;;;;;;;;;;;;:3;:43::i;667:100::-;751:10;667:100;:::o;21135:346::-;-1:-1:-1;;;;;21237:19:0;;21229:68;;;;-1:-1:-1;;;21229:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;21316:21:0;;21308:68;;;;-1:-1:-1;;;21308:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;21389:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;21441:32;;;;;;;;;;;;;;;;;21135:346;;;:::o;51246:701::-;51545:41;51527:15;:59;:114;;;;;51615:26;;51597:15;:44;51527:114;51515:427;;;-1:-1:-1;;;;;51811:31:0;;;;;;:23;:31;;;;;;;;;:69;;-1:-1:-1;;;;;;51846:34:0;;;;;;:23;:34;;;;;;;;51811:69;51793:141;;;;;-1:-1:-1;;;51793:141:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;16537:321;16643:4;16660:36;16670:6;16678:9;16689:6;16660:9;:36::i;:::-;16707:121;16716:6;16724:12;:10;:12::i;:::-;16738:89;16776:6;16738:89;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;16738:19:0;;;;;;:11;:19;;;;;;16758:12;:10;:12::i;:::-;-1:-1:-1;;;;;16738:33:0;;;;;;;;;;;;-1:-1:-1;16738:33:0;;;:89;:37;:89::i;16707:121::-;-1:-1:-1;16846:4:0;16537:321;;;;;:::o;5960:431::-;6018:7;6247:6;6243:37;;-1:-1:-1;6271:1:0;6264:8;;6243:37;6300:5;;;6304:1;6300;:5;:1;6320:5;;;;;:10;6312:56;;;;-1:-1:-1;;;6312:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6835:126;6893:7;6916:39;6920:1;6923;6916:39;;;;;;;;;;;;;;;;;:3;:39::i;50667:573::-;50768:28;50780:7;50789:6;50768:11;:28::i;:::-;50830:26;;50894:12;50805:22;50941:13;:11;:13::i;:::-;51145:32;;;;;;;;-1:-1:-1;;;;;51145:32:0;;;;;;;;;;;;;;;-1:-1:-1;51105:37:0;;;:21;:37;;;;;;;:72;;;;;;;;-1:-1:-1;;;51105:72:0;;;;-1:-1:-1;;;;;;51105:72:0;;;;;;;;;;;;;;50914:41;-1:-1:-1;51213:21:0;51127:14;51105:72;51213:18;:21::i;:::-;51184:26;:50;-1:-1:-1;;;;;50667:573:0:o;32250:648::-;-1:-1:-1;;;;;32404:23:0;;32388:74;;;;;-1:-1:-1;;;32388:74:0;;;;;;;;;;;;-1:-1:-1;;;32388:74:0;;;;;;;;;;;;;;;32476:45;32525:40;32550:14;32525:24;:40::i;:::-;32471:94;;;;32574:24;32601:20;32611:9;32601;:20::i;:::-;32574:47;;32630:25;32658:35;32672:9;32683;32658:13;:35::i;:::-;-1:-1:-1;;;;;32702:20:0;;;;;;;;;;;;;;:32;;-1:-1:-1;;;;;;32702:32:0;;;;;;;;;;32630:63;-1:-1:-1;32743:84:0;32630:63;32702:32;32794:16;32812:14;32743:20;:84::i;:::-;32866:9;-1:-1:-1;;;;;32839:53:0;32855:9;-1:-1:-1;;;;;32839:53:0;;32877:14;32839:53;;;;;;;;;;;;;;;;;;;;;;;;;;32250:648;;;;;;:::o;53077:644::-;53212:56;;;;53429:14;:45;;;;;;;;;53425:291;;;-1:-1:-1;53493:16:0;;-1:-1:-1;53511:22:0;;-1:-1:-1;53535:16:0;53485:67;;53425:291;-1:-1:-1;53593:26:0;;-1:-1:-1;53630:32:0;;-1:-1:-1;53673:26:0;53425:291;53077:644;;;;;:::o;38834:326::-;-1:-1:-1;;;;;39023:20:0;;;38976:7;39023:20;;;;;;;;;;;38976:7;;39023:20;39056:31;39052:70;;39105:9;39098:16;;;;;5531:198;5637:7;5669:12;5661:6;;;;5653:29;;;;-1:-1:-1;;;5653:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5701:5:0;;;5531:198::o;15358:175::-;15444:4;15461:42;15471:12;:10;:12::i;:::-;15485:9;15496:6;15461:9;:42::i;35140:1288::-;35389:7;35439:12;35424:11;:27;;35408:81;;;;;-1:-1:-1;;;35408:81:0;;;;;;;;;;;;-1:-1:-1;;;35408:81:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;35523:21:0;;35498:22;35523:21;;;;;;;;;;;35557:19;35553:64;;35594:15;35604:4;35594:9;:15::i;:::-;35587:22;;;;;35553:64;-1:-1:-1;;;;;35669:15:0;;;;;;;;;;;;;;-1:-1:-1;;35685:18:0;;35669:35;;;;;;;:47;-1:-1:-1;;;;;35669:47:0;:62;-1:-1:-1;35665:133:0;;-1:-1:-1;;;;;35749:15:0;;;;;;;;;;;;;;-1:-1:-1;;35765:18:0;;;35749:35;;;;;;:41;-1:-1:-1;;;;;;;;35749:41:0;;;;;-1:-1:-1;35742:48:0;;35665:133;-1:-1:-1;;;;;35851:15:0;;;;;;;;;;;;;;:18;;;;;;;;:30;-1:-1:-1;;;;;35851:30:0;:44;-1:-1:-1;35847:75:0;;;35913:1;35906:8;;;;;35847:75;35930:13;-1:-1:-1;;35970:18:0;;35995:386;36010:5;36002;:13;35995:386;;;36069:1;36052:13;;;36051:19;36043:27;;36106:24;;:::i;:::-;-1:-1:-1;;;;;;36133:15:0;;;;;;;;;;;;;;:23;;;;;;;;;36106:50;;;;;;;;;-1:-1:-1;;;;;36106:50:0;;;;;;-1:-1:-1;;;36106:50:0;;;;;;;;;;;36169:35;;36165:209;;;36224:14;;;-1:-1:-1;;;;;36217:21:0;;-1:-1:-1;36217:21:0;;-1:-1:-1;;;;36217:21:0;36165:209;36258:20;;-1:-1:-1;;;;;36258:34:0;;-1:-1:-1;36254:120:0;;;36313:6;36305:14;;36254:120;;;36363:1;36354:6;:10;36346:18;;36254:120;35995:386;;;;;-1:-1:-1;;;;;;36394:15:0;;;;;;;;;;;;;;:22;;;;;;;:28;-1:-1:-1;;;36394:28:0;;-1:-1:-1;;;;;36394:28:0;;-1:-1:-1;;35140:1288:0;;;;;;:::o;52333:738::-;52463:27;52493:37;52507:4;52513:16;52493:13;:37::i;:::-;52463:67;;52537:25;52565:35;52579:2;52583:16;52565:13;:35::i;:::-;52537:63;;52609:132;52638:19;52666:17;52692:6;52707:27;52609:20;:132::i;:::-;52750:30;52783:47;52797:4;52803:26;52783:13;:47::i;:::-;52750:80;;52837:28;52868:45;52882:2;52886:26;52868:13;:45::i;:::-;52837:76;;52922:143;52951:22;52982:20;53011:6;53026:32;52922:20;:143::i;:::-;52333:738;;;;;;;:::o;18747:539::-;-1:-1:-1;;;;;18853:20:0;;18845:70;;;;-1:-1:-1;;;18845:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;18934:23:0;;18926:71;;;;-1:-1:-1;;;18926:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19010:47;19031:6;19039:9;19050:6;19010:20;:47::i;:::-;19090:71;19112:6;19090:71;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;19090:17:0;;:9;:17;;;;;;;;;;;;:71;:21;:71::i;:::-;-1:-1:-1;;;;;19070:17:0;;;:9;:17;;;;;;;;;;;:91;;;;19195:20;;;;;;;:32;;19220:6;19195:24;:32::i;:::-;-1:-1:-1;;;;;19172:20:0;;;:9;:20;;;;;;;;;;;;:55;;;;19243:35;;;;;;;19172:20;;19243:35;;;;;;;;;;;;;18747:539;;;:::o;7425:343::-;7531:7;7625:12;7618:5;7610:28;;;;-1:-1:-1;;;7610:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7645:9;7661:1;7657;:5;;;;;;;7425:343;-1:-1:-1;;;;;7425:343:0:o;33273:1471::-;33437:2;-1:-1:-1;;;;;33429:10:0;:4;-1:-1:-1;;;;;33429:10:0;;33425:39;;;33450:7;;33425:39;33481:66;33556:51;33638:40;33663:14;33638:24;:40::i;:::-;-1:-1:-1;33472:206:0;;-1:-1:-1;33472:206:0;-1:-1:-1;;;;;;33691:18:0;;;33687:532;;-1:-1:-1;;;;;33778:21:0;;33720:16;33778:21;;;;;;;;;;;33814:23;;33810:159;;-1:-1:-1;;;;;33861:15:0;;;;;;;;;;;;;;-1:-1:-1;;33877:22:0;;33861:39;;;;;;;:45;-1:-1:-1;;;33861:45:0;;-1:-1:-1;;;;;33861:45:0;;-1:-1:-1;33810:159:0;;;33944:15;33954:4;33944:9;:15::i;:::-;33933:26;;33810:159;33979:17;33999:20;:8;34012:6;33999:12;:20::i;:::-;33979:40;;34028:113;34053:9;34073:15;34099:4;34122:9;34028:14;:113::i;:::-;34179:4;-1:-1:-1;;;;;34157:54:0;;34185:9;34196:14;34157:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33687:532;;;;-1:-1:-1;;;;;34231:16:0;;;34227:512;;-1:-1:-1;;;;;34314:19:0;;34258:16;34314:19;;;;;;;;;;;34346:21;;34342:151;;-1:-1:-1;;;;;34391:13:0;;;;;;;;;;;;;;-1:-1:-1;;34405:20:0;;34391:35;;;;;;;:41;-1:-1:-1;;;34391:41:0;;-1:-1:-1;;;;;34391:41:0;;-1:-1:-1;34342:151:0;;;34470:13;34480:2;34470:9;:13::i;:::-;34459:24;;34342:151;34503:17;34523:20;:8;34536:6;34523:12;:20::i;:::-;34503:40;;34552:111;34577:9;34597:15;34623:2;34644:9;34552:14;:111::i;:::-;34701:2;-1:-1:-1;;;;;34679:52:0;;34705:9;34716:14;34679:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34227:512;;;;33273:1471;;;;;;;:::o;37640:822::-;-1:-1:-1;;;;;37950:22:0;;37867:20;37950:22;;;;;;;;;;;;38033:16;;;;;;;37898:12;;37950:22;38070:24;;;;;:102;;-1:-1:-1;;;38120:23:0;;38105:39;;;;;;;;;;;:51;-1:-1:-1;;;;;38105:67:0;;;:51;;:67;38070:102;38058:399;;;-1:-1:-1;;38258:23:0;;38243:39;;;;;;;;;;;:56;;-1:-1:-1;;;;;38243:56:0;;;-1:-1:-1;;;38243:56:0;;;;;;38058:399;;;38360:32;;;;;;;;-1:-1:-1;;;;;38360:32:0;;;;;;;;;;;;;;;-1:-1:-1;38322:35:0;;;;;;;;;:70;;;;;;;;-1:-1:-1;;;38322:70:0;;;;-1:-1:-1;;;;;;38322:70:0;;;;;;;;;;;;;;-1:-1:-1;;;;;38401:22:0;;;;;;;;;;;-1:-1:-1;38426:23:0;;;38401:48;;-1:-1:-1;37640:822:0:o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;:::o

Swarm Source

ipfs://1bc2d69deb253172a3e0761bf351bf8b317e0b6377e62b43a4510998861cbcf6
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.