Address Details
contract
token

0x1B3d91a6f6a7BeB0149Bde9FA08785A741b09028

Token
Moola (MOO)
Creator
0x007e71–f37016 at 0x3a43f6–54ad6d
Balance
0 CELO ( )
Locked CELO Balance
0.00 CELO
Voting CELO Balance
0.00 CELO
Pending Unlocked Gold
0.00 CELO
Tokens
Fetching tokens...
Transactions
5 Transactions
Transfers
0 Transfers
Gas Used
205,644
Last Balance Update
13842373
This contract has been verified via Sourcify. View contract in Sourcify repository
Contract name:
MooToken




Optimization enabled
true
Compiler version
v0.8.17+commit.8df45f5f




Optimization runs
200
EVM Version
london




Verified at
2023-01-19T18:46:07.217394Z

contracts/token/MooToken.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.3;

import "./TransferrableVotingToken.sol";

/**
 * Moola governance token, based on Ube.
 */
contract MooToken is TransferrableVotingToken {
  /// @notice The maximum supply of Ube Tokens.
  uint96 public constant MAX_SUPPLY = 100_000_000e18;

  /**
   * @notice Construct a new Moo token
   * Note: this contract doesn't specify an initial minter, so there is no way new
   * tokens can get created.
   * @param _initialOwner The initial account to grant all the tokens
   */
  constructor(address _initialOwner)
    TransferrableVotingToken("Moola", "MOO", 18, MAX_SUPPLY, _initialOwner)
  // solhint-disable-next-line no-empty-blocks
  {
    // Do nothing
  }
}
        

/contracts/token/TransferrableVotingToken.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.3;

import "./VotingToken.sol";

contract TransferrableVotingToken is VotingToken {
  /**
   * @dev Sets the values for `name`, `symbol`, and `decimals`. All three of
   * these values are immutable: they can only be set once during
   * construction.
   * @param initialSupply_ Initial supply of tokens
   * @param account_ The initial account to grant all the tokens
   */
  constructor(
    string memory name_,
    string memory symbol_,
    uint8 decimals_,
    uint96 initialSupply_,
    address account_
  ) VotingToken(name_, symbol_, decimals_) {
    _mintVotes(account_, initialSupply_);
  }

  ////////////////////////////////
  //
  // The below code is copied from Uniswap's Uni.sol.
  // Changes are marked with "XXX".
  //
  ////////////////////////////////

  // XXX: deleted name, symbol, decimals, totalSupply, minter, mintingAllowedAfter,
  // minimumTimeBetweenMints, mintCap

  // Allowance amounts on behalf of others
  mapping(address => mapping(address => uint96)) internal allowances;

  // XXX: balances, delegates, Checkpoint, checkpoints,
  // numCheckpoints, DOMAIN_TYPEHASH, DELEGATION_TYPEHASH
  // are inherited from VotingPower.sol

  /// @notice The EIP-712 typehash for the permit struct used by the contract
  bytes32 public constant PERMIT_TYPEHASH =
    keccak256(
      "Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"
    );

  // XXX: nonces is inherited from VotingPower.sol

  // XXX: deleted MinterChanged

  // XXX: deleted DelegateChanged, DelegateVotesChanged, Transfer and moved them to IVotingPower

  /// @notice The standard EIP-20 approval event
  event Approval(
    address indexed owner,
    address indexed spender,
    uint256 amount
  );

  // XXX: deleted constructor, setMinter, mint

  /**
   * @notice Get the number of tokens `spender` is approved to spend on behalf of `account`
   * @param account The address of the account holding the funds
   * @param spender The address of the account spending the funds
   * @return The number of tokens approved
   */
  function allowance(address account, address spender)
    external
    view
    returns (uint256)
  {
    return allowances[account][spender];
  }

  // XXX_ADDED: upgrade to Solidity 0.8.3, which doesn't allow use of uintn(-1)
  uint256 internal constant MAX_INT = 2**256 - 1;
  uint96 internal constant MAX_INT_96 = 2**96 - 1;

  /**
   * @notice Approve `spender` to transfer up to `amount` from `src`
   * @dev This will overwrite the approval amount for `spender`
   *  and is subject to issues noted [here](https://eips.ethereum.org/EIPS/eip-20#approve)
   * @param spender The address of the account which may transfer tokens
   * @param rawAmount The number of tokens that are approved (2^256-1 means infinite)
   * @return Whether or not the approval succeeded
   */
  function approve(address spender, uint256 rawAmount) external returns (bool) {
    uint96 amount;
    // XXX: uint256(-1) => MAX_INT
    if (rawAmount == MAX_INT) {
      // XXX: uint96(-1) => MAX_INT_96
      amount = MAX_INT_96;
    } else {
      amount = safe96(rawAmount, "Uni::approve: amount exceeds 96 bits");
    }

    allowances[msg.sender][spender] = amount;

    emit Approval(msg.sender, spender, amount);
    return true;
  }

  /**
   * @notice Triggers an approval from owner to spends
   * @param owner The address to approve from
   * @param spender The address to be approved
   * @param rawAmount The number of tokens that are approved (2^256-1 means infinite)
   * @param deadline The time at which to expire the signature
   * @param v The recovery byte of the signature
   * @param r Half of the ECDSA signature pair
   * @param s Half of the ECDSA signature pair
   */
  function permit(
    address owner,
    address spender,
    uint256 rawAmount,
    uint256 deadline,
    uint8 v,
    bytes32 r,
    bytes32 s
  ) external {
    uint96 amount;
    // XXX: uint256(-1) => MAX_INT
    if (rawAmount == MAX_INT) {
      // XXX: uint96(-1) => MAX_INT_oy
      amount = MAX_INT_96;
    } else {
      amount = safe96(rawAmount, "Uni::permit: amount exceeds 96 bits");
    }

    // XXX_CHANGED: name => name()
    bytes32 domainSeparator = keccak256(
      abi.encode(
        DOMAIN_TYPEHASH,
        keccak256(bytes(name())),
        getChainId(),
        address(this)
      )
    );
    bytes32 structHash = keccak256(
      abi.encode(
        PERMIT_TYPEHASH,
        owner,
        spender,
        rawAmount,
        nonces[owner]++,
        deadline
      )
    );
    bytes32 digest = keccak256(
      abi.encodePacked("\x19\x01", domainSeparator, structHash)
    );
    address signatory = ecrecover(digest, v, r, s);
    require(signatory != address(0), "Uni::permit: invalid signature");
    require(signatory == owner, "Uni::permit: unauthorized");
    // XXX: added linter disable
    // solhint-disable-next-line not-rely-on-time
    require(block.timestamp <= deadline, "Uni::permit: signature expired");

    allowances[owner][spender] = amount;

    emit Approval(owner, spender, amount);
  }

  // XXX: deleted balanceOf

  /**
   * @notice Transfer `amount` tokens from `msg.sender` to `dst`
   * @param dst The address of the destination account
   * @param rawAmount The number of tokens to transfer
   * @return Whether or not the transfer succeeded
   */
  function transfer(address dst, uint256 rawAmount) external returns (bool) {
    // XXX_ADDED
    require(
      dst != address(this),
      "TransferrableVotingToken::transfer: cannot send tokens to contract"
    );
    uint96 amount = safe96(rawAmount, "Uni::transfer: amount exceeds 96 bits");
    _transferTokens(msg.sender, dst, amount);
    return true;
  }

  /**
   * @notice Transfer `amount` tokens from `src` to `dst`
   * @param src The address of the source account
   * @param dst The address of the destination account
   * @param rawAmount The number of tokens to transfer
   * @return Whether or not the transfer succeeded
   */
  function transferFrom(
    address src,
    address dst,
    uint256 rawAmount
  ) external returns (bool) {
    // XXX_ADDED
    require(
      dst != address(this),
      "TransferrableVotingToken::transferFrom: cannot send tokens to contract"
    );
    address spender = msg.sender;
    uint96 spenderAllowance = allowances[src][spender];
    uint96 amount = safe96(rawAmount, "Uni::approve: amount exceeds 96 bits");

    // XXX: uint96(-1) => MAX_INT_96
    if (spender != src && spenderAllowance != MAX_INT_96) {
      uint96 newAllowance = sub96(
        spenderAllowance,
        amount,
        "Uni::transferFrom: transfer amount exceeds spender allowance"
      );
      allowances[src][spender] = newAllowance;

      emit Approval(src, spender, newAllowance);
    }

    _transferTokens(src, dst, amount);
    return true;
  }

  // XXX: rest is in VotingPower.sol
}
          

/contracts/token/VotingPower.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.3;

import "./interfaces/IHasVotes.sol";
import "./interfaces/IVotingDelegates.sol";

/**
 * Power to vote. Heavily based on Uni.
 */
contract VotingPower is IHasVotes, IVotingDelegates {
  // Name of the token. This cannot be changed after creating the token.
  string private _name;

  // Total amount of voting power available.
  uint96 private totalVotingPowerSupply;

  constructor(string memory name_) {
    _name = name_;
  }

  function name() public view virtual override returns (string memory) {
    return _name;
  }

  /**
   * @notice Mint new voting power
   * @param dst The address of the destination account
   * @param amount The amount of voting power to be minted
   */
  function _mintVotes(address dst, uint96 amount) internal {
    require(
      dst != address(0),
      "VotingPower::_mintVotes: cannot mint to the zero address"
    );

    // transfer the amount to the recipient
    balances[dst] = add96(
      balances[dst],
      amount,
      "VotingPower::_mintVotes: mint amount overflows"
    );
    totalVotingPowerSupply = add96(
      totalVotingPowerSupply,
      amount,
      "VotingPower::_mintVotes: total supply overflows"
    );
    emit Transfer(address(0), dst, amount);

    // move delegates
    _moveDelegates(address(0), delegates[dst], amount);
  }

  /**
   * @notice Burn voting power
   * @param src The address of the source account
   * @param amount The amount of voting power to be burned
   */
  function _burnVotes(address src, uint96 amount) internal {
    require(
      src != address(0),
      "VotingPower::_burnVotes: cannot burn from the zero address"
    );

    // transfer the amount to the recipient
    balances[src] = sub96(
      balances[src],
      amount,
      "VotingPower::_burnVotes: burn amount underflows"
    );
    totalVotingPowerSupply = sub96(
      totalVotingPowerSupply,
      amount,
      "VotingPower::_burnVotes: total supply underflows"
    );
    emit Transfer(src, address(0), amount);

    // move delegates
    _moveDelegates(delegates[src], address(0), amount);
  }

  /**
   * @notice Get the amount of voting power of an account
   * @param account The address of the account to get the balance of
   * @return The amount of voting power held
   */
  function votingPower(address account) public view override returns (uint96) {
    return balances[account];
  }

  function totalVotingPower() public view override returns (uint96) {
    return totalVotingPowerSupply;
  }

  ////////////////////////////////
  //
  // The below code is copied from ../uniswap-governance/contracts/Uni.sol.
  // Changes are marked with "XXX".
  //
  ////////////////////////////////

  // XXX: deleted name, symbol, decimals, totalSupply, minter, mintingAllowedAfter,
  // minimumTimeBetweenMints, mintCap, allowances

  // Official record of token balances for each account
  // XXX: internal => private visibility
  mapping(address => uint96) private balances;

  /// @notice A record of each accounts delegate
  mapping(address => address) public override delegates;

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

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

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

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

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

  // XXX: deleted PERMIT_TYPEHASH

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

  // XXX: deleted MinterChanged

  // XXX: deleted DelegateChanged, DelegateVotesChanged, Transfer and moved them to IVotingPower

  // XXX: deleted Approval

  // XXX: deleted constructor, setMinter, mint, allowance, approve, permit, balanceOf

  // XXX: deleted transfer, transferFrom

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

  /**
   * @notice Delegates votes from signatory to `delegatee`
   * @param delegatee The address to delegate votes to
   * @param nonce The contract state required to match the signature
   * @param expiry The time at which to expire the signature
   * @param v The recovery byte of the signature
   * @param r Half of the ECDSA signature pair
   * @param s Half of the ECDSA signature pair
   */
  function delegateBySig(
    address delegatee,
    uint256 nonce,
    uint256 expiry,
    uint8 v,
    bytes32 r,
    bytes32 s
  ) public override {
    // XXX_CHANGED: name => _name
    bytes32 domainSeparator = keccak256(
      abi.encode(
        DOMAIN_TYPEHASH,
        keccak256(bytes(_name)),
        getChainId(),
        address(this)
      )
    );
    bytes32 structHash = keccak256(
      abi.encode(DELEGATION_TYPEHASH, delegatee, nonce, expiry)
    );
    bytes32 digest = keccak256(
      abi.encodePacked("\x19\x01", domainSeparator, structHash)
    );
    address signatory = ecrecover(digest, v, r, s);
    require(signatory != address(0), "Uni::delegateBySig: invalid signature");
    require(nonce == nonces[signatory]++, "Uni::delegateBySig: invalid nonce");
    // XXX: added linter disable
    // solhint-disable-next-line not-rely-on-time
    require(block.timestamp <= expiry, "Uni::delegateBySig: signature expired");
    return _delegate(signatory, delegatee);
  }

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

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

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

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

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

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

  function _delegate(address delegator, address delegatee) internal {
    address currentDelegate = delegates[delegator];
    uint96 delegatorBalance = balances[delegator];
    delegates[delegator] = delegatee;

    emit DelegateChanged(delegator, currentDelegate, delegatee);

    _moveDelegates(currentDelegate, delegatee, delegatorBalance);
  }

  function _transferTokens(
    address src,
    address dst,
    uint96 amount
  ) internal {
    require(
      src != address(0),
      "Uni::_transferTokens: cannot transfer from the zero address"
    );
    require(
      dst != address(0),
      "Uni::_transferTokens: cannot transfer to the zero address"
    );

    balances[src] = sub96(
      balances[src],
      amount,
      "Uni::_transferTokens: transfer amount exceeds balance"
    );
    balances[dst] = add96(
      balances[dst],
      amount,
      "Uni::_transferTokens: transfer amount overflows"
    );
    emit Transfer(src, dst, amount);

    _moveDelegates(delegates[src], delegates[dst], amount);
  }

  function _moveDelegates(
    address srcRep,
    address dstRep,
    uint96 amount
  ) internal {
    if (srcRep != dstRep && amount > 0) {
      if (srcRep != address(0)) {
        uint32 srcRepNum = numCheckpoints[srcRep];
        uint96 srcRepOld = srcRepNum > 0
          ? checkpoints[srcRep][srcRepNum - 1].votes
          : 0;
        uint96 srcRepNew = sub96(
          srcRepOld,
          amount,
          "Uni::_moveVotes: vote amount underflows"
        );
        _writeCheckpoint(srcRep, srcRepNum, srcRepOld, srcRepNew);
      }

      if (dstRep != address(0)) {
        uint32 dstRepNum = numCheckpoints[dstRep];
        uint96 dstRepOld = dstRepNum > 0
          ? checkpoints[dstRep][dstRepNum - 1].votes
          : 0;
        uint96 dstRepNew = add96(
          dstRepOld,
          amount,
          "Uni::_moveVotes: vote amount overflows"
        );
        _writeCheckpoint(dstRep, dstRepNum, dstRepOld, dstRepNew);
      }
    }
  }

  function _writeCheckpoint(
    address delegatee,
    uint32 nCheckpoints,
    uint96 oldVotes,
    uint96 newVotes
  ) internal {
    uint32 blockNumber = safe32(
      block.number,
      "Uni::_writeCheckpoint: block number exceeds 32 bits"
    );

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

    emit DelegateVotesChanged(delegatee, oldVotes, newVotes);
  }

  function safe32(uint256 n, string memory errorMessage)
    internal
    pure
    returns (uint32)
  {
    require(n < 2**32, errorMessage);
    return uint32(n);
  }

  function safe96(uint256 n, string memory errorMessage)
    internal
    pure
    returns (uint96)
  {
    require(n < 2**96, errorMessage);
    return uint96(n);
  }

  function add96(
    uint96 a,
    uint96 b,
    string memory errorMessage
  ) internal pure returns (uint96) {
    uint96 c = a + b;
    require(c >= a, errorMessage);
    return c;
  }

  function sub96(
    uint96 a,
    uint96 b,
    string memory errorMessage
  ) internal pure returns (uint96) {
    require(b <= a, errorMessage);
    return a - b;
  }

  function getChainId() internal view returns (uint256) {
    uint256 chainId;
    // XXX: added linter disable
    // solhint-disable-next-line no-inline-assembly
    assembly {
      chainId := chainid()
    }
    return chainId;
  }
}
          

/contracts/token/VotingToken.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.3;

import "./interfaces/INonTransferrableToken.sol";
import "./VotingPower.sol";

/**
 * A non-transferrable token that can vote.
 */
contract VotingToken is INonTransferrableToken, VotingPower {
  string private _symbol;
  uint8 private immutable _decimals;

  /**
   * @dev Sets the values for `name`, `symbol`, and `decimals`. All three of
   * these values are immutable: they can only be set once during
   * construction.
   */
  constructor(
    string memory name_,
    string memory symbol_,
    uint8 decimals_
  ) VotingPower(name_) {
    _symbol = symbol_;
    _decimals = decimals_;
  }

  function name()
    public
    view
    override(INonTransferrableToken, VotingPower)
    returns (string memory)
  {
    return VotingPower.name();
  }

  function symbol() public view override returns (string memory) {
    return _symbol;
  }

  function decimals() public view override returns (uint8) {
    return _decimals;
  }

  function totalSupply() public view override returns (uint256) {
    return totalVotingPower();
  }

  function balanceOf(address _account) public view override returns (uint256) {
    return votingPower(_account);
  }
}
          

/contracts/token/interfaces/IHasVotes.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.3;

/**
 * Reads the votes that an account has.
 */
interface IHasVotes {
  /**
   * @notice Gets the current votes balance for `account`
   * @param account The address to get votes balance
   * @return The number of current votes for `account`
   */
  function getCurrentVotes(address account) external view returns (uint96);

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

/contracts/token/interfaces/INonTransferrableToken.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.3;

/**
 * A token that cannot be transferred.
 */
interface INonTransferrableToken {
  function name() external view returns (string memory);

  function symbol() external view returns (string memory);

  function decimals() external view returns (uint8);

  // Views
  function totalSupply() external view returns (uint256);

  function balanceOf(address _account) external view returns (uint256);
}
          

/contracts/token/interfaces/IVotingDelegates.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.3;

/**
 * Interface for a contract that keeps track of voting delegates.
 */
interface IVotingDelegates {
  /// @notice An event thats emitted when an account changes its delegate
  event DelegateChanged(
    address indexed delegator,
    address indexed fromDelegate,
    address indexed toDelegate
  );

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

  /// @notice An event emitted when an account's voting power is transferred.
  // - If `from` is `address(0)`, power was minted.
  // - If `to` is `address(0)`, power was burned.
  event Transfer(address indexed from, address indexed to, uint256 amount);

  /// @notice Name of the contract.
  // Required for signing.
  function name() external view returns (string memory);

  /// @notice A record of each accounts delegate
  function delegates(address delegatee) external view returns (address);

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

  /**
   * @notice Delegates votes from signatory to `delegatee`
   * @param delegatee The address to delegate votes to
   * @param nonce The contract state required to match the signature
   * @param expiry The time at which to expire the signature
   * @param v The recovery byte of the signature
   * @param r Half of the ECDSA signature pair
   * @param s Half of the ECDSA signature pair
   */
  function delegateBySig(
    address delegatee,
    uint256 nonce,
    uint256 expiry,
    uint8 v,
    bytes32 r,
    bytes32 s
  ) external;

  /**
   * @notice Get the amount of voting power of an account
   * @param account The address of the account to get the balance of
   * @return The amount of voting power held
   */
  function votingPower(address account) external view returns (uint96);

  /// @notice Total voting power in existence.
  function totalVotingPower() external view returns (uint96);
}
          

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_initialOwner","internalType":"address"}]},{"type":"event","name":"Approval","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"spender","internalType":"address","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"DelegateChanged","inputs":[{"type":"address","name":"delegator","internalType":"address","indexed":true},{"type":"address","name":"fromDelegate","internalType":"address","indexed":true},{"type":"address","name":"toDelegate","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"DelegateVotesChanged","inputs":[{"type":"address","name":"delegate","internalType":"address","indexed":true},{"type":"uint256","name":"previousBalance","internalType":"uint256","indexed":false},{"type":"uint256","name":"newBalance","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"DELEGATION_TYPEHASH","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"DOMAIN_TYPEHASH","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint96","name":"","internalType":"uint96"}],"name":"MAX_SUPPLY","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"PERMIT_TYPEHASH","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"allowance","inputs":[{"type":"address","name":"account","internalType":"address"},{"type":"address","name":"spender","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"approve","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"rawAmount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"_account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint32","name":"fromBlock","internalType":"uint32"},{"type":"uint96","name":"votes","internalType":"uint96"}],"name":"checkpoints","inputs":[{"type":"address","name":"","internalType":"address"},{"type":"uint32","name":"","internalType":"uint32"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint8","name":"","internalType":"uint8"}],"name":"decimals","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"delegate","inputs":[{"type":"address","name":"delegatee","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"delegateBySig","inputs":[{"type":"address","name":"delegatee","internalType":"address"},{"type":"uint256","name":"nonce","internalType":"uint256"},{"type":"uint256","name":"expiry","internalType":"uint256"},{"type":"uint8","name":"v","internalType":"uint8"},{"type":"bytes32","name":"r","internalType":"bytes32"},{"type":"bytes32","name":"s","internalType":"bytes32"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"delegates","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint96","name":"","internalType":"uint96"}],"name":"getCurrentVotes","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint96","name":"","internalType":"uint96"}],"name":"getPriorVotes","inputs":[{"type":"address","name":"account","internalType":"address"},{"type":"uint256","name":"blockNumber","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"nonces","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint32","name":"","internalType":"uint32"}],"name":"numCheckpoints","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"permit","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"rawAmount","internalType":"uint256"},{"type":"uint256","name":"deadline","internalType":"uint256"},{"type":"uint8","name":"v","internalType":"uint8"},{"type":"bytes32","name":"r","internalType":"bytes32"},{"type":"bytes32","name":"s","internalType":"bytes32"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"symbol","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSupply","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint96","name":"","internalType":"uint96"}],"name":"totalVotingPower","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transfer","inputs":[{"type":"address","name":"dst","internalType":"address"},{"type":"uint256","name":"rawAmount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transferFrom","inputs":[{"type":"address","name":"src","internalType":"address"},{"type":"address","name":"dst","internalType":"address"},{"type":"uint256","name":"rawAmount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint96","name":"","internalType":"uint96"}],"name":"votingPower","inputs":[{"type":"address","name":"account","internalType":"address"}]}]
              

Contract Creation Code

0x60a06040523480156200001157600080fd5b5060405162002a4138038062002a4183398101604081905262000034916200071b565b604051806040016040528060058152602001644d6f6f6c6160d81b815250604051806040016040528060038152602001624d4f4f60e81b81525060126a52b7d2dcc80cd2e400000084848484828060009081620000929190620007e9565b5060079050620000a38382620007e9565b5060ff1660805250620000b990508183620000c5565b505050505050620009a8565b6001600160a01b038216620001475760405162461bcd60e51b815260206004820152603860248201527f566f74696e67506f7765723a3a5f6d696e74566f7465733a2063616e6e6f742060448201527f6d696e7420746f20746865207a65726f2061646472657373000000000000000060648201526084015b60405180910390fd5b6001600160a01b03821660009081526002602090815260409182902054825160608101909352602e80845262000195936001600160601b039092169285929190620029649083013962000283565b6001600160a01b03831660009081526002602090815260409182902080546001600160601b0319166001600160601b03948516179055600154825160608101909352602f808452620001f99491909116928592909190620029929083013962000283565b600180546001600160601b0319166001600160601b0392831617905560405190821681526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a36001600160a01b038083166000908152600360205260408120546200027f921683620002d5565b5050565b600080620002928486620008cb565b9050846001600160601b0316816001600160601b031610158390620002cc5760405162461bcd60e51b81526004016200013e9190620008f5565b50949350505050565b816001600160a01b0316836001600160a01b0316141580156200030157506000816001600160601b0316115b156200049d576001600160a01b03831615620003d2576001600160a01b03831660009081526005602052604081205463ffffffff1690816200034557600062000394565b6001600160a01b0385166000908152600460205260408120906200036b60018562000945565b63ffffffff16815260208101919091526040016000205464010000000090046001600160601b03165b90506000620003be828560405180606001604052806027815260200162002a1a60279139620004a2565b9050620003ce86848484620004f1565b5050505b6001600160a01b038216156200049d576001600160a01b03821660009081526005602052604081205463ffffffff169081620004105760006200045f565b6001600160a01b0384166000908152600460205260408120906200043660018562000945565b63ffffffff16815260208101919091526040016000205464010000000090046001600160601b03165b90506000620004898285604051806060016040528060268152602001620029c16026913962000283565b90506200049985848484620004f1565b5050505b505050565b6000836001600160601b0316836001600160601b031611158290620004dc5760405162461bcd60e51b81526004016200013e9190620008f5565b50620004e9838562000965565b949350505050565b60006200051843604051806060016040528060338152602001620029e760339139620006e8565b905060008463ffffffff161180156200057557506001600160a01b038516600090815260046020526040812063ffffffff8316916200055960018862000945565b63ffffffff908116825260208201929092526040016000205416145b15620005e8576001600160a01b03851660009081526004602052604081208391620005a260018862000945565b63ffffffff168152602081019190915260400160002080546001600160601b039290921664010000000002600160201b600160801b031990921691909117905562000693565b60408051808201825263ffffffff80841682526001600160601b0380861660208085019182526001600160a01b038b166000908152600482528681208b8616825290915294909420925183549451909116640100000000026001600160801b03199094169116179190911790556200066284600162000988565b6001600160a01b0386166000908152600560205260409020805463ffffffff191663ffffffff929092169190911790555b604080516001600160601b038086168252841660208201526001600160a01b038716917fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724910160405180910390a25050505050565b6000816401000000008410620007135760405162461bcd60e51b81526004016200013e9190620008f5565b509192915050565b6000602082840312156200072e57600080fd5b81516001600160a01b03811681146200074657600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200077857607f821691505b6020821081036200079957634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200049d57600081815260208120601f850160051c81016020861015620007c85750805b601f850160051c820191505b818110156200049957828155600101620007d4565b81516001600160401b038111156200080557620008056200074d565b6200081d8162000816845462000763565b846200079f565b602080601f8311600181146200085557600084156200083c5750858301515b600019600386901b1c1916600185901b17855562000499565b600085815260208120601f198616915b82811015620008865788860151825594840194600190910190840162000865565b5085821015620008a55787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b6001600160601b03818116838216019080821115620008ee57620008ee620008b5565b5092915050565b600060208083528351808285015260005b81811015620009245785810183015185820160400152820162000906565b506000604082860101526040601f19601f8301168501019250505092915050565b63ffffffff828116828216039080821115620008ee57620008ee620008b5565b6001600160601b03828116828216039080821115620008ee57620008ee620008b5565b63ffffffff818116838216019080821115620008ee57620008ee620008b5565b608051611fa0620009c4600039600061021c0152611fa06000f3fe608060405234801561001057600080fd5b50600436106101585760003560e01c806370a08231116100c3578063c07473f61161007c578063c07473f6146103a5578063c3cda520146103b3578063d505accf146103c6578063dd62ed3e146103d9578063e7a324dc1461041b578063f1127ed81461044257600080fd5b806370a0823114610312578063782d6fe1146103445780637ecebe001461035757806395d89b4114610377578063a9059cbb1461037f578063b4b5ea571461039257600080fd5b8063313ce56711610115578063313ce5671461021557806332cb6b0c14610246578063587cde1e146102705780635c19a95c146102b1578063671b3793146102c65780636fcfff45146102d757600080fd5b806306fdde031461015d578063095ea7b31461017b57806318160ddd1461019e57806320606b70146101b457806323b872dd146101db57806330adf81f146101ee575b600080fd5b6101656104a9565b60405161017291906119f3565b60405180910390f35b61018e610189366004611a5d565b6104b8565b6040519015158152602001610172565b6101a6610578565b604051908152602001610172565b6101a67f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b61018e6101e9366004611a87565b61059a565b6101a67f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b60405160ff7f0000000000000000000000000000000000000000000000000000000000000000168152602001610172565b6102586a52b7d2dcc80cd2e400000081565b6040516001600160601b039091168152602001610172565b61029961027e366004611ac3565b6003602052600090815260409020546001600160a01b031681565b6040516001600160a01b039091168152602001610172565b6102c46102bf366004611ac3565b610771565b005b6001546001600160601b0316610258565b6102fd6102e5366004611ac3565b60056020526000908152604090205463ffffffff1681565b60405163ffffffff9091168152602001610172565b6101a6610320366004611ac3565b6001600160a01b03166000908152600260205260409020546001600160601b031690565b610258610352366004611a5d565b61077e565b6101a6610365366004611ac3565b60066020526000908152604090205481565b610165610a07565b61018e61038d366004611a5d565b610a99565b6102586103a0366004611ac3565b610b5f565b610258610320366004611ac3565b6102c46103c1366004611aef565b610bdd565b6102c46103d4366004611b47565b610eb0565b6101a66103e7366004611bb1565b6001600160a01b0391821660009081526008602090815260408083209390941682529190915220546001600160601b031690565b6101a67fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf81565b610485610450366004611be4565b600460209081526000928352604080842090915290825290205463ffffffff811690600160201b90046001600160601b031682565b6040805163ffffffff90931683526001600160601b03909116602083015201610172565b60606104b3611280565b905090565b60008060001983036104d257506001600160601b036104f7565b6104f483604051806060016040528060248152602001611f186024913961128f565b90505b3360008181526008602090815260408083206001600160a01b0389168085529083529281902080546001600160601b0319166001600160601b03871690811790915590519081529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a360019150505b92915050565b600061058c6001546001600160601b031690565b6001600160601b0316905090565b6000306001600160a01b0384160361062e5760405162461bcd60e51b815260206004820152604660248201527f5472616e736665727261626c65566f74696e67546f6b656e3a3a7472616e736660448201527f657246726f6d3a2063616e6e6f742073656e6420746f6b656e7320746f20636f6064820152651b9d1c9858dd60d21b608482015260a4015b60405180910390fd5b6001600160a01b03841660009081526008602090815260408083203380855290835281842054825160608101909352602480845291946001600160601b03909116939092610684928892611f189083013961128f565b9050866001600160a01b0316836001600160a01b0316141580156106b157506001600160601b0382811614155b156107595760006106db83836040518060600160405280603c8152602001611ddf603c91396112be565b6001600160a01b038981166000818152600860209081526040808320948a168084529482529182902080546001600160601b0319166001600160601b0387169081179091559151918252939450919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505b610764878783611308565b5060019695505050505050565b61077b3382611559565b50565b60004382106107de5760405162461bcd60e51b815260206004820152602660248201527f556e693a3a6765745072696f72566f7465733a206e6f742079657420646574656044820152651c9b5a5b995960d21b6064820152608401610625565b6001600160a01b03831660009081526005602052604081205463ffffffff169081900361080f576000915050610572565b6001600160a01b03841660009081526004602052604081208491610834600185611c3a565b63ffffffff908116825260208201929092526040016000205416116108a7576001600160a01b038416600090815260046020526040812090610877600184611c3a565b63ffffffff168152602081019190915260400160002054600160201b90046001600160601b031691506105729050565b6001600160a01b038416600090815260046020908152604080832083805290915290205463ffffffff168310156108e2576000915050610572565b6000806108f0600184611c3a565b90505b8163ffffffff168163ffffffff1611156109c257600060026109158484611c3a565b61091f9190611c5e565b6109299083611c3a565b6001600160a01b038816600090815260046020908152604080832063ffffffff858116855290835292819020815180830190925254928316808252600160201b9093046001600160601b031691810191909152919250879003610996576020015194506105729350505050565b805163ffffffff168711156109ad578193506109bb565b6109b8600183611c3a565b92505b50506108f3565b506001600160a01b038516600090815260046020908152604080832063ffffffff909416835292905220546001600160601b03600160201b9091041691505092915050565b606060078054610a1690611c8f565b80601f0160208091040260200160405190810160405280929190818152602001828054610a4290611c8f565b8015610a8f5780601f10610a6457610100808354040283529160200191610a8f565b820191906000526020600020905b815481529060010190602001808311610a7257829003601f168201915b5050505050905090565b6000306001600160a01b03841603610b245760405162461bcd60e51b815260206004820152604260248201527f5472616e736665727261626c65566f74696e67546f6b656e3a3a7472616e736660448201527f65723a2063616e6e6f742073656e6420746f6b656e7320746f20636f6e74726160648201526118dd60f21b608482015260a401610625565b6000610b4883604051806060016040528060258152602001611ef36025913961128f565b9050610b55338583611308565b5060019392505050565b6001600160a01b03811660009081526005602052604081205463ffffffff1680610b8a576000610bd6565b6001600160a01b038316600090815260046020526040812090610bae600184611c3a565b63ffffffff168152602081019190915260400160002054600160201b90046001600160601b03165b9392505050565b60007f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a8666000604051610c0f9190611cc9565b6040518091039020610c1e4690565b60408051602080820195909552808201939093526060830191909152306080808401919091528151808403909101815260a0830182528051908401207fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60c08401526001600160a01b038b1660e084015261010083018a90526101208084018a90528251808503909101815261014084019092528151919093012061190160f01b610160830152610162820183905261018282018190529192506000906101a20160408051601f198184030181528282528051602091820120600080855291840180845281905260ff8a169284019290925260608301889052608083018790529092509060019060a0016020604051602081039080840390855afa158015610d4a573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610dbb5760405162461bcd60e51b815260206004820152602560248201527f556e693a3a64656c656761746542795369673a20696e76616c6964207369676e604482015264617475726560d81b6064820152608401610625565b6001600160a01b0381166000908152600660205260408120805491610ddf83611d68565b919050558914610e3b5760405162461bcd60e51b815260206004820152602160248201527f556e693a3a64656c656761746542795369673a20696e76616c6964206e6f6e636044820152606560f81b6064820152608401610625565b87421115610e995760405162461bcd60e51b815260206004820152602560248201527f556e693a3a64656c656761746542795369673a207369676e61747572652065786044820152641c1a5c995960da1b6064820152608401610625565b610ea3818b611559565b505050505b505050505050565b60006000198603610ec957506001600160601b03610eee565b610eeb86604051806060016040528060238152602001611e506023913961128f565b90505b60007f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a866610f196104a9565b80519060200120610f274690565b604080516020810194909452830191909152606082015230608082015260a00160408051601f1981840301815291815281516020928301206001600160a01b038c166000908152600690935290822080549193507f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9918c918c918c9186610fad83611d68565b909155506040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810188905260e0016040516020818303038152906040528051906020012090506000828260405160200161102c92919061190160f01b81526002810192909252602282015260420190565b60408051601f198184030181528282528051602091820120600080855291840180845281905260ff8b169284019290925260608301899052608083018890529092509060019060a0016020604051602081039080840390855afa158015611097573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166110fa5760405162461bcd60e51b815260206004820152601e60248201527f556e693a3a7065726d69743a20696e76616c6964207369676e617475726500006044820152606401610625565b8b6001600160a01b0316816001600160a01b03161461115b5760405162461bcd60e51b815260206004820152601960248201527f556e693a3a7065726d69743a20756e617574686f72697a6564000000000000006044820152606401610625565b884211156111ab5760405162461bcd60e51b815260206004820152601e60248201527f556e693a3a7065726d69743a207369676e6174757265206578706972656400006044820152606401610625565b84600860008e6001600160a01b03166001600160a01b0316815260200190815260200160002060008d6001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a8154816001600160601b0302191690836001600160601b031602179055508a6001600160a01b03168c6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258760405161126a91906001600160601b0391909116815260200190565b60405180910390a3505050505050505050505050565b606060008054610a1690611c8f565b600081600160601b84106112b65760405162461bcd60e51b815260040161062591906119f3565b509192915050565b6000836001600160601b0316836001600160601b0316111582906112f55760405162461bcd60e51b815260040161062591906119f3565b506113008385611d81565b949350505050565b6001600160a01b0383166113845760405162461bcd60e51b815260206004820152603b60248201527f556e693a3a5f7472616e73666572546f6b656e733a2063616e6e6f742074726160448201527f6e736665722066726f6d20746865207a65726f206164647265737300000000006064820152608401610625565b6001600160a01b0382166114005760405162461bcd60e51b815260206004820152603960248201527f556e693a3a5f7472616e73666572546f6b656e733a2063616e6e6f742074726160448201527f6e7366657220746f20746865207a65726f2061646472657373000000000000006064820152608401610625565b6001600160a01b03831660009081526002602090815260409182902054825160608101909352603580845261144b936001600160601b039092169285929190611e1b908301396112be565b6001600160a01b03848116600090815260026020908152604080832080546001600160601b0319166001600160601b0396871617905592861682529082902054825160608101909352602f8084526114b39491909116928592909190611f3c908301396115e3565b6001600160a01b0383811660008181526002602090815260409182902080546001600160601b0319166001600160601b03968716179055905193851684529092918616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36001600160a01b0380841660009081526003602052604080822054858416835291205461155492918216911683611630565b505050565b6001600160a01b03808316600081815260036020818152604080842080546002845282862054949093528787166001600160a01b031984168117909155905191909516946001600160601b039092169391928592917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a46115dd828483611630565b50505050565b6000806115f08486611da1565b9050846001600160601b0316816001600160601b0316101583906116275760405162461bcd60e51b815260040161062591906119f3565b50949350505050565b816001600160a01b0316836001600160a01b03161415801561165b57506000816001600160601b0316115b15611554576001600160a01b03831615611720576001600160a01b03831660009081526005602052604081205463ffffffff16908161169b5760006116e7565b6001600160a01b0385166000908152600460205260408120906116bf600185611c3a565b63ffffffff168152602081019190915260400160002054600160201b90046001600160601b03165b9050600061170e8285604051806060016040528060278152602001611ecc602791396112be565b905061171c868484846117d8565b5050505b6001600160a01b03821615611554576001600160a01b03821660009081526005602052604081205463ffffffff16908161175b5760006117a7565b6001600160a01b03841660009081526004602052604081209061177f600185611c3a565b63ffffffff168152602081019190915260400160002054600160201b90046001600160601b03165b905060006117ce8285604051806060016040528060268152602001611e73602691396115e3565b9050610ea8858484845b60006117fc43604051806060016040528060338152602001611e99603391396119d0565b905060008463ffffffff1611801561185657506001600160a01b038516600090815260046020526040812063ffffffff83169161183a600188611c3a565b63ffffffff908116825260208201929092526040016000205416145b156118ca576001600160a01b03851660009081526004602052604081208391611880600188611c3a565b63ffffffff168152602081019190915260400160002080546001600160601b0392909216600160201b026fffffffffffffffffffffffff000000001990921691909117905561197b565b60408051808201825263ffffffff80841682526001600160601b0380861660208085019182526001600160a01b038b166000908152600482528681208b8616825290915294909420925183549451909116600160201b026fffffffffffffffffffffffffffffffff1990941691161791909117905561194a846001611dc1565b6001600160a01b0386166000908152600560205260409020805463ffffffff191663ffffffff929092169190911790555b604080516001600160601b038086168252841660208201526001600160a01b038716917fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724910160405180910390a25050505050565b600081600160201b84106112b65760405162461bcd60e51b815260040161062591905b600060208083528351808285015260005b81811015611a2057858101830151858201604001528201611a04565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114611a5857600080fd5b919050565b60008060408385031215611a7057600080fd5b611a7983611a41565b946020939093013593505050565b600080600060608486031215611a9c57600080fd5b611aa584611a41565b9250611ab360208501611a41565b9150604084013590509250925092565b600060208284031215611ad557600080fd5b610bd682611a41565b803560ff81168114611a5857600080fd5b60008060008060008060c08789031215611b0857600080fd5b611b1187611a41565b95506020870135945060408701359350611b2d60608801611ade565b92506080870135915060a087013590509295509295509295565b600080600080600080600060e0888a031215611b6257600080fd5b611b6b88611a41565b9650611b7960208901611a41565b95506040880135945060608801359350611b9560808901611ade565b925060a0880135915060c0880135905092959891949750929550565b60008060408385031215611bc457600080fd5b611bcd83611a41565b9150611bdb60208401611a41565b90509250929050565b60008060408385031215611bf757600080fd5b611c0083611a41565b9150602083013563ffffffff81168114611c1957600080fd5b809150509250929050565b634e487b7160e01b600052601160045260246000fd5b63ffffffff828116828216039080821115611c5757611c57611c24565b5092915050565b600063ffffffff80841680611c8357634e487b7160e01b600052601260045260246000fd5b92169190910492915050565b600181811c90821680611ca357607f821691505b602082108103611cc357634e487b7160e01b600052602260045260246000fd5b50919050565b600080835481600182811c915080831680611ce557607f831692505b60208084108203611d0457634e487b7160e01b86526022600452602486fd5b818015611d185760018114611d2d57611d5a565b60ff1986168952841515850289019650611d5a565b60008a81526020902060005b86811015611d525781548b820152908501908301611d39565b505084890196505b509498975050505050505050565b600060018201611d7a57611d7a611c24565b5060010190565b6001600160601b03828116828216039080821115611c5757611c57611c24565b6001600160601b03818116838216019080821115611c5757611c57611c24565b63ffffffff818116838216019080821115611c5757611c57611c2456fe556e693a3a7472616e7366657246726f6d3a207472616e7366657220616d6f756e742065786365656473207370656e64657220616c6c6f77616e6365556e693a3a5f7472616e73666572546f6b656e733a207472616e7366657220616d6f756e7420657863656564732062616c616e6365556e693a3a7065726d69743a20616d6f756e7420657863656564732039362062697473556e693a3a5f6d6f7665566f7465733a20766f746520616d6f756e74206f766572666c6f7773556e693a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d62657220657863656564732033322062697473556e693a3a5f6d6f7665566f7465733a20766f746520616d6f756e7420756e646572666c6f7773556e693a3a7472616e736665723a20616d6f756e7420657863656564732039362062697473556e693a3a617070726f76653a20616d6f756e7420657863656564732039362062697473556e693a3a5f7472616e73666572546f6b656e733a207472616e7366657220616d6f756e74206f766572666c6f7773a26469706673582212202b28504c00b34bce4ffd6cadac2ae7e44f8e7d72d10fccef39f6e95b464dca1a64736f6c63430008110033566f74696e67506f7765723a3a5f6d696e74566f7465733a206d696e7420616d6f756e74206f766572666c6f7773566f74696e67506f7765723a3a5f6d696e74566f7465733a20746f74616c20737570706c79206f766572666c6f7773556e693a3a5f6d6f7665566f7465733a20766f746520616d6f756e74206f766572666c6f7773556e693a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d62657220657863656564732033322062697473556e693a3a5f6d6f7665566f7465733a20766f746520616d6f756e7420756e646572666c6f7773000000000000000000000000007e71f8f069884d9dc3aa1f8d8e7fc112f37016

Deployed ByteCode

0x608060405234801561001057600080fd5b50600436106101585760003560e01c806370a08231116100c3578063c07473f61161007c578063c07473f6146103a5578063c3cda520146103b3578063d505accf146103c6578063dd62ed3e146103d9578063e7a324dc1461041b578063f1127ed81461044257600080fd5b806370a0823114610312578063782d6fe1146103445780637ecebe001461035757806395d89b4114610377578063a9059cbb1461037f578063b4b5ea571461039257600080fd5b8063313ce56711610115578063313ce5671461021557806332cb6b0c14610246578063587cde1e146102705780635c19a95c146102b1578063671b3793146102c65780636fcfff45146102d757600080fd5b806306fdde031461015d578063095ea7b31461017b57806318160ddd1461019e57806320606b70146101b457806323b872dd146101db57806330adf81f146101ee575b600080fd5b6101656104a9565b60405161017291906119f3565b60405180910390f35b61018e610189366004611a5d565b6104b8565b6040519015158152602001610172565b6101a6610578565b604051908152602001610172565b6101a67f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b61018e6101e9366004611a87565b61059a565b6101a67f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b60405160ff7f0000000000000000000000000000000000000000000000000000000000000012168152602001610172565b6102586a52b7d2dcc80cd2e400000081565b6040516001600160601b039091168152602001610172565b61029961027e366004611ac3565b6003602052600090815260409020546001600160a01b031681565b6040516001600160a01b039091168152602001610172565b6102c46102bf366004611ac3565b610771565b005b6001546001600160601b0316610258565b6102fd6102e5366004611ac3565b60056020526000908152604090205463ffffffff1681565b60405163ffffffff9091168152602001610172565b6101a6610320366004611ac3565b6001600160a01b03166000908152600260205260409020546001600160601b031690565b610258610352366004611a5d565b61077e565b6101a6610365366004611ac3565b60066020526000908152604090205481565b610165610a07565b61018e61038d366004611a5d565b610a99565b6102586103a0366004611ac3565b610b5f565b610258610320366004611ac3565b6102c46103c1366004611aef565b610bdd565b6102c46103d4366004611b47565b610eb0565b6101a66103e7366004611bb1565b6001600160a01b0391821660009081526008602090815260408083209390941682529190915220546001600160601b031690565b6101a67fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf81565b610485610450366004611be4565b600460209081526000928352604080842090915290825290205463ffffffff811690600160201b90046001600160601b031682565b6040805163ffffffff90931683526001600160601b03909116602083015201610172565b60606104b3611280565b905090565b60008060001983036104d257506001600160601b036104f7565b6104f483604051806060016040528060248152602001611f186024913961128f565b90505b3360008181526008602090815260408083206001600160a01b0389168085529083529281902080546001600160601b0319166001600160601b03871690811790915590519081529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a360019150505b92915050565b600061058c6001546001600160601b031690565b6001600160601b0316905090565b6000306001600160a01b0384160361062e5760405162461bcd60e51b815260206004820152604660248201527f5472616e736665727261626c65566f74696e67546f6b656e3a3a7472616e736660448201527f657246726f6d3a2063616e6e6f742073656e6420746f6b656e7320746f20636f6064820152651b9d1c9858dd60d21b608482015260a4015b60405180910390fd5b6001600160a01b03841660009081526008602090815260408083203380855290835281842054825160608101909352602480845291946001600160601b03909116939092610684928892611f189083013961128f565b9050866001600160a01b0316836001600160a01b0316141580156106b157506001600160601b0382811614155b156107595760006106db83836040518060600160405280603c8152602001611ddf603c91396112be565b6001600160a01b038981166000818152600860209081526040808320948a168084529482529182902080546001600160601b0319166001600160601b0387169081179091559151918252939450919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505b610764878783611308565b5060019695505050505050565b61077b3382611559565b50565b60004382106107de5760405162461bcd60e51b815260206004820152602660248201527f556e693a3a6765745072696f72566f7465733a206e6f742079657420646574656044820152651c9b5a5b995960d21b6064820152608401610625565b6001600160a01b03831660009081526005602052604081205463ffffffff169081900361080f576000915050610572565b6001600160a01b03841660009081526004602052604081208491610834600185611c3a565b63ffffffff908116825260208201929092526040016000205416116108a7576001600160a01b038416600090815260046020526040812090610877600184611c3a565b63ffffffff168152602081019190915260400160002054600160201b90046001600160601b031691506105729050565b6001600160a01b038416600090815260046020908152604080832083805290915290205463ffffffff168310156108e2576000915050610572565b6000806108f0600184611c3a565b90505b8163ffffffff168163ffffffff1611156109c257600060026109158484611c3a565b61091f9190611c5e565b6109299083611c3a565b6001600160a01b038816600090815260046020908152604080832063ffffffff858116855290835292819020815180830190925254928316808252600160201b9093046001600160601b031691810191909152919250879003610996576020015194506105729350505050565b805163ffffffff168711156109ad578193506109bb565b6109b8600183611c3a565b92505b50506108f3565b506001600160a01b038516600090815260046020908152604080832063ffffffff909416835292905220546001600160601b03600160201b9091041691505092915050565b606060078054610a1690611c8f565b80601f0160208091040260200160405190810160405280929190818152602001828054610a4290611c8f565b8015610a8f5780601f10610a6457610100808354040283529160200191610a8f565b820191906000526020600020905b815481529060010190602001808311610a7257829003601f168201915b5050505050905090565b6000306001600160a01b03841603610b245760405162461bcd60e51b815260206004820152604260248201527f5472616e736665727261626c65566f74696e67546f6b656e3a3a7472616e736660448201527f65723a2063616e6e6f742073656e6420746f6b656e7320746f20636f6e74726160648201526118dd60f21b608482015260a401610625565b6000610b4883604051806060016040528060258152602001611ef36025913961128f565b9050610b55338583611308565b5060019392505050565b6001600160a01b03811660009081526005602052604081205463ffffffff1680610b8a576000610bd6565b6001600160a01b038316600090815260046020526040812090610bae600184611c3a565b63ffffffff168152602081019190915260400160002054600160201b90046001600160601b03165b9392505050565b60007f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a8666000604051610c0f9190611cc9565b6040518091039020610c1e4690565b60408051602080820195909552808201939093526060830191909152306080808401919091528151808403909101815260a0830182528051908401207fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60c08401526001600160a01b038b1660e084015261010083018a90526101208084018a90528251808503909101815261014084019092528151919093012061190160f01b610160830152610162820183905261018282018190529192506000906101a20160408051601f198184030181528282528051602091820120600080855291840180845281905260ff8a169284019290925260608301889052608083018790529092509060019060a0016020604051602081039080840390855afa158015610d4a573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610dbb5760405162461bcd60e51b815260206004820152602560248201527f556e693a3a64656c656761746542795369673a20696e76616c6964207369676e604482015264617475726560d81b6064820152608401610625565b6001600160a01b0381166000908152600660205260408120805491610ddf83611d68565b919050558914610e3b5760405162461bcd60e51b815260206004820152602160248201527f556e693a3a64656c656761746542795369673a20696e76616c6964206e6f6e636044820152606560f81b6064820152608401610625565b87421115610e995760405162461bcd60e51b815260206004820152602560248201527f556e693a3a64656c656761746542795369673a207369676e61747572652065786044820152641c1a5c995960da1b6064820152608401610625565b610ea3818b611559565b505050505b505050505050565b60006000198603610ec957506001600160601b03610eee565b610eeb86604051806060016040528060238152602001611e506023913961128f565b90505b60007f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a866610f196104a9565b80519060200120610f274690565b604080516020810194909452830191909152606082015230608082015260a00160408051601f1981840301815291815281516020928301206001600160a01b038c166000908152600690935290822080549193507f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9918c918c918c9186610fad83611d68565b909155506040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810188905260e0016040516020818303038152906040528051906020012090506000828260405160200161102c92919061190160f01b81526002810192909252602282015260420190565b60408051601f198184030181528282528051602091820120600080855291840180845281905260ff8b169284019290925260608301899052608083018890529092509060019060a0016020604051602081039080840390855afa158015611097573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166110fa5760405162461bcd60e51b815260206004820152601e60248201527f556e693a3a7065726d69743a20696e76616c6964207369676e617475726500006044820152606401610625565b8b6001600160a01b0316816001600160a01b03161461115b5760405162461bcd60e51b815260206004820152601960248201527f556e693a3a7065726d69743a20756e617574686f72697a6564000000000000006044820152606401610625565b884211156111ab5760405162461bcd60e51b815260206004820152601e60248201527f556e693a3a7065726d69743a207369676e6174757265206578706972656400006044820152606401610625565b84600860008e6001600160a01b03166001600160a01b0316815260200190815260200160002060008d6001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a8154816001600160601b0302191690836001600160601b031602179055508a6001600160a01b03168c6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258760405161126a91906001600160601b0391909116815260200190565b60405180910390a3505050505050505050505050565b606060008054610a1690611c8f565b600081600160601b84106112b65760405162461bcd60e51b815260040161062591906119f3565b509192915050565b6000836001600160601b0316836001600160601b0316111582906112f55760405162461bcd60e51b815260040161062591906119f3565b506113008385611d81565b949350505050565b6001600160a01b0383166113845760405162461bcd60e51b815260206004820152603b60248201527f556e693a3a5f7472616e73666572546f6b656e733a2063616e6e6f742074726160448201527f6e736665722066726f6d20746865207a65726f206164647265737300000000006064820152608401610625565b6001600160a01b0382166114005760405162461bcd60e51b815260206004820152603960248201527f556e693a3a5f7472616e73666572546f6b656e733a2063616e6e6f742074726160448201527f6e7366657220746f20746865207a65726f2061646472657373000000000000006064820152608401610625565b6001600160a01b03831660009081526002602090815260409182902054825160608101909352603580845261144b936001600160601b039092169285929190611e1b908301396112be565b6001600160a01b03848116600090815260026020908152604080832080546001600160601b0319166001600160601b0396871617905592861682529082902054825160608101909352602f8084526114b39491909116928592909190611f3c908301396115e3565b6001600160a01b0383811660008181526002602090815260409182902080546001600160601b0319166001600160601b03968716179055905193851684529092918616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36001600160a01b0380841660009081526003602052604080822054858416835291205461155492918216911683611630565b505050565b6001600160a01b03808316600081815260036020818152604080842080546002845282862054949093528787166001600160a01b031984168117909155905191909516946001600160601b039092169391928592917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a46115dd828483611630565b50505050565b6000806115f08486611da1565b9050846001600160601b0316816001600160601b0316101583906116275760405162461bcd60e51b815260040161062591906119f3565b50949350505050565b816001600160a01b0316836001600160a01b03161415801561165b57506000816001600160601b0316115b15611554576001600160a01b03831615611720576001600160a01b03831660009081526005602052604081205463ffffffff16908161169b5760006116e7565b6001600160a01b0385166000908152600460205260408120906116bf600185611c3a565b63ffffffff168152602081019190915260400160002054600160201b90046001600160601b03165b9050600061170e8285604051806060016040528060278152602001611ecc602791396112be565b905061171c868484846117d8565b5050505b6001600160a01b03821615611554576001600160a01b03821660009081526005602052604081205463ffffffff16908161175b5760006117a7565b6001600160a01b03841660009081526004602052604081209061177f600185611c3a565b63ffffffff168152602081019190915260400160002054600160201b90046001600160601b03165b905060006117ce8285604051806060016040528060268152602001611e73602691396115e3565b9050610ea8858484845b60006117fc43604051806060016040528060338152602001611e99603391396119d0565b905060008463ffffffff1611801561185657506001600160a01b038516600090815260046020526040812063ffffffff83169161183a600188611c3a565b63ffffffff908116825260208201929092526040016000205416145b156118ca576001600160a01b03851660009081526004602052604081208391611880600188611c3a565b63ffffffff168152602081019190915260400160002080546001600160601b0392909216600160201b026fffffffffffffffffffffffff000000001990921691909117905561197b565b60408051808201825263ffffffff80841682526001600160601b0380861660208085019182526001600160a01b038b166000908152600482528681208b8616825290915294909420925183549451909116600160201b026fffffffffffffffffffffffffffffffff1990941691161791909117905561194a846001611dc1565b6001600160a01b0386166000908152600560205260409020805463ffffffff191663ffffffff929092169190911790555b604080516001600160601b038086168252841660208201526001600160a01b038716917fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724910160405180910390a25050505050565b600081600160201b84106112b65760405162461bcd60e51b815260040161062591905b600060208083528351808285015260005b81811015611a2057858101830151858201604001528201611a04565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114611a5857600080fd5b919050565b60008060408385031215611a7057600080fd5b611a7983611a41565b946020939093013593505050565b600080600060608486031215611a9c57600080fd5b611aa584611a41565b9250611ab360208501611a41565b9150604084013590509250925092565b600060208284031215611ad557600080fd5b610bd682611a41565b803560ff81168114611a5857600080fd5b60008060008060008060c08789031215611b0857600080fd5b611b1187611a41565b95506020870135945060408701359350611b2d60608801611ade565b92506080870135915060a087013590509295509295509295565b600080600080600080600060e0888a031215611b6257600080fd5b611b6b88611a41565b9650611b7960208901611a41565b95506040880135945060608801359350611b9560808901611ade565b925060a0880135915060c0880135905092959891949750929550565b60008060408385031215611bc457600080fd5b611bcd83611a41565b9150611bdb60208401611a41565b90509250929050565b60008060408385031215611bf757600080fd5b611c0083611a41565b9150602083013563ffffffff81168114611c1957600080fd5b809150509250929050565b634e487b7160e01b600052601160045260246000fd5b63ffffffff828116828216039080821115611c5757611c57611c24565b5092915050565b600063ffffffff80841680611c8357634e487b7160e01b600052601260045260246000fd5b92169190910492915050565b600181811c90821680611ca357607f821691505b602082108103611cc357634e487b7160e01b600052602260045260246000fd5b50919050565b600080835481600182811c915080831680611ce557607f831692505b60208084108203611d0457634e487b7160e01b86526022600452602486fd5b818015611d185760018114611d2d57611d5a565b60ff1986168952841515850289019650611d5a565b60008a81526020902060005b86811015611d525781548b820152908501908301611d39565b505084890196505b509498975050505050505050565b600060018201611d7a57611d7a611c24565b5060010190565b6001600160601b03828116828216039080821115611c5757611c57611c24565b6001600160601b03818116838216019080821115611c5757611c57611c24565b63ffffffff818116838216019080821115611c5757611c57611c2456fe556e693a3a7472616e7366657246726f6d3a207472616e7366657220616d6f756e742065786365656473207370656e64657220616c6c6f77616e6365556e693a3a5f7472616e73666572546f6b656e733a207472616e7366657220616d6f756e7420657863656564732062616c616e6365556e693a3a7065726d69743a20616d6f756e7420657863656564732039362062697473556e693a3a5f6d6f7665566f7465733a20766f746520616d6f756e74206f766572666c6f7773556e693a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d62657220657863656564732033322062697473556e693a3a5f6d6f7665566f7465733a20766f746520616d6f756e7420756e646572666c6f7773556e693a3a7472616e736665723a20616d6f756e7420657863656564732039362062697473556e693a3a617070726f76653a20616d6f756e7420657863656564732039362062697473556e693a3a5f7472616e73666572546f6b656e733a207472616e7366657220616d6f756e74206f766572666c6f7773a26469706673582212202b28504c00b34bce4ffd6cadac2ae7e44f8e7d72d10fccef39f6e95b464dca1a64736f6c63430008110033