ETH Price: $3,464.03 (+3.91%)
Gas: 5.37 Gwei

Contract

0x35Bb90c0B96DdB4B93ddF42aFEDd5204E91A1A10
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
InterestProtocolTokenDelegate

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 4 : TokenDelegate.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;
pragma experimental ABIEncoderV2;

import "./IToken.sol";
import "./TokenStorage.sol";

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

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

  /// @notice 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)");

  uint96 public constant UINT96_MAX = 2**96 - 1;

  uint256 public constant UINT256_MAX = 2**256 - 1;

  /**
   * @notice Used to initialize the contract during delegator constructor
   * @param account_ The address to recieve initial suppply   * @param initialSupply_ set initial supply
   */
  function initialize(address account_, uint256 initialSupply_) public override {
    require(totalSupply == 0, "initialize: can only do once");
    require(account_ != address(0), "initialize: invalid address");
    require(initialSupply_ > 0, "invalid initial supply");

    totalSupply = initialSupply_;

    balances[account_] = uint96(totalSupply);
    emit Transfer(address(0), account_, totalSupply);
  }

  /**
   * @notice Change token name
   * @param name_ New token name
   */
  function changeName(string calldata name_) external override onlyOwner {
    require(bytes(name_).length > 0, "changeName: length invaild");

    emit ChangedName(name, name_);

    name = name_;
  }

  /**
   * @notice Change token symbol
   * @param symbol_ New token symbol
   */
  function changeSymbol(string calldata symbol_) external override onlyOwner {
    require(bytes(symbol_).length > 0, "changeSymbol: length invaild");

    emit ChangedSymbol(symbol, symbol_);

    symbol = symbol_;
  }

  /**
   * @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 override returns (uint256) {
    return allowances[account][spender];
  }

  /**
   * @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 override returns (bool) {
    uint96 amount;
    if (rawAmount == UINT256_MAX) {
      amount = UINT96_MAX;
    } else {
      amount = safe96(rawAmount, "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 override {
    uint96 amount;
    if (rawAmount == UINT256_MAX) {
      amount = UINT96_MAX;
    } else {
      amount = safe96(rawAmount, "permit: amount exceeds 96 bits");
    }

    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), "permit: invalid signature");
    require(signatory == owner, "permit: unauthorized");
    require(block.timestamp <= deadline, "permit: signature expired");

    allowances[owner][spender] = amount;

    emit Approval(owner, spender, amount);
  }

  /**
   * @notice Get the number of tokens held by the `account`
   * @param account The address of the account to get the balance of
   * @return The number of tokens held
   */
  function balanceOf(address account) external view override returns (uint256) {
    return balances[account];
  }

  /**
   * @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 override returns (bool) {
    uint96 amount = safe96(rawAmount, "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 override returns (bool) {
    address spender = msg.sender;
    uint96 spenderAllowance = allowances[src][spender];
    uint96 amount = safe96(rawAmount, "approve: amount exceeds 96 bits");

    if (spender != src && spenderAllowance != UINT96_MAX) {
      uint96 newAllowance = sub96(spenderAllowance, amount, "transferFrom: transfer amount exceeds spender allowance");
      allowances[src][spender] = newAllowance;

      emit Approval(src, spender, newAllowance);
    }

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

  /**
   * @notice Mint new tokens
   * @param dst The address of the destination account
   * @param rawAmount The number of tokens to be minted
   */
  function mint(address dst, uint256 rawAmount) external override onlyOwner {
    require(dst != address(0), "mint: cant transfer to 0 address");
    uint96 amount = safe96(rawAmount, "mint: amount exceeds 96 bits");
    totalSupply = safe96(totalSupply + amount, "mint: totalSupply exceeds 96 bits");

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

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

  /**
   * @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 {
    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), "delegateBySig: invalid signature");
    require(nonce == nonces[signatory]++, "delegateBySig: invalid nonce");
    require(block.timestamp <= expiry, "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, "getPriorVotes: not determined");
    bool ok = false;
    uint96 votes = 0;
    // check naive cases
    (ok, votes) = _naivePriorVotes(account, blockNumber);
    if (ok == true) {
      return votes;
    }
    uint32 lower = 0;
    uint32 upper = numCheckpoints[account] - 1;
    while (upper > lower) {
      uint32 center = upper - (upper - lower) / 2; // ceil, avoiding overflow
      Checkpoint memory cp = checkpoints[account][center];
      (ok, lower, upper) = _binarySearch(cp.fromBlock, blockNumber, lower, upper);
      if (ok == true) {
        return cp.votes;
      }
    }
    return checkpoints[account][lower].votes;
  }

  function _naivePriorVotes(address account, uint256 blockNumber) internal view returns (bool ok, uint96 ans) {
    uint32 nCheckpoints = numCheckpoints[account];
    // if no checkpoints, must be 0
    if (nCheckpoints == 0) {
      return (true, 0);
    }
    // First check most recent balance
    if (checkpoints[account][nCheckpoints - 1].fromBlock <= blockNumber) {
      return (true, checkpoints[account][nCheckpoints - 1].votes);
    }
    // Next check implicit zero balance
    if (checkpoints[account][0].fromBlock > blockNumber) {
      return (true, 0);
    }
    return (false, 0);
  }

  function _binarySearch(
    uint32 from,
    uint256 blk,
    uint32 lower,
    uint32 upper
  )
    internal
    pure
    returns (
      bool ok,
      uint32 newLower,
      uint32 newUpper
    )
  {
    uint32 center = upper - (upper - lower) / 2; // ceil, avoiding overflow
    if (from == blk) {
      return (true, 0, 0);
    }
    if (from < blk) {
      return (false, center, upper);
    }
    return (false, lower, center - 1);
  }

  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), "_transferTokens: cant 0addr");
    require(dst != address(0), "_transferTokens: cant 0addr");

    balances[src] = sub96(balances[src], amount, "_transferTokens: transfer amount exceeds balance");
    balances[dst] = add96(balances[dst], amount, "_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, "_moveVotes: vote amt 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, "_moveVotes: vote amt overflows");
        _writeCheckpoint(dstRep, dstRepNum, dstRepOld, dstRepNew);
      }
    }
  }

  function _writeCheckpoint(
    address delegatee,
    uint32 nCheckpoints,
    uint96 oldVotes,
    uint96 newVotes
  ) internal {
    uint32 blockNumber = safe32(block.number, "_writeCheckpoint: blocknum 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;
    //solhint-disable-next-line no-inline-assembly
    assembly {
      chainId := chainid()
    }
    return chainId;
  }
}

File 2 of 4 : IToken.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;
pragma experimental ABIEncoderV2;

/// @title interface to interact with TokenDelgator
interface ITokenDelegator {
  function _setImplementation(address implementation_) external;

  function _setOwner(address owner_) external;

  fallback() external payable;

  receive() external payable;
}

/// @title interface to interact with TokenDelgate
interface ITokenDelegate {
  function initialize(address account_, uint256 initialSupply_) external;

  function changeName(string calldata name_) external;

  function changeSymbol(string calldata symbol_) external;

  function allowance(address account, address spender) external view returns (uint256);

  function approve(address spender, uint256 rawAmount) external returns (bool);

  function balanceOf(address account) external view returns (uint256);

  function transfer(address dst, uint256 rawAmount) external returns (bool);

  function transferFrom(
    address src,
    address dst,
    uint256 rawAmount
  ) external returns (bool);

  function mint(address dst, uint256 rawAmount) external;

  function permit(
    address owner,
    address spender,
    uint256 rawAmount,
    uint256 deadline,
    uint8 v,
    bytes32 r,
    bytes32 s
  ) external;

  function delegate(address delegatee) external;

  function delegateBySig(
    address delegatee,
    uint256 nonce,
    uint256 expiry,
    uint8 v,
    bytes32 r,
    bytes32 s
  ) external;

  function getCurrentVotes(address account) external view returns (uint96);

  function getPriorVotes(address account, uint256 blockNumber) external view returns (uint96);
}

/// @title interface which contains all events emitted by delegator & delegate
interface TokenEvents {
  /// @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 thats emitted when the minter changes
  event MinterChanged(address indexed oldMinter, address indexed newMinter);

  /// @notice The standard EIP-20 transfer event
  event Transfer(address indexed from, address indexed to, uint256 amount);

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

  /// @notice Emitted when implementation is changed
  event NewImplementation(address oldImplementation, address newImplementation);

  /// @notice An event thats emitted when the token symbol is changed
  event ChangedSymbol(string oldSybmol, string newSybmol);

  /// @notice An event thats emitted when the token name is changed
  event ChangedName(string oldName, string newName);
}

File 3 of 4 : TokenStorage.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;
pragma experimental ABIEncoderV2;

import "../../_external/Context.sol";

contract TokenDelegatorStorage is Context {
  /// @notice Active brains of Token
  address public implementation;

  /// @notice EIP-20 token name for this token
  string public name = "Interest Protocol";

  /// @notice EIP-20 token symbol for this token
  string public symbol = "IPT";

  /// @notice Total number of tokens in circulation
  uint256 public totalSupply;

  /// @notice EIP-20 token decimals for this token
  uint8 public constant decimals = 18;

  address public owner;
  /// @notice onlyOwner modifier checks if sender is owner
  modifier onlyOwner() {
    require(owner == _msgSender(), "onlyOwner: sender not owner");
    _;
  }
}

/**
 * @title Storage for Token Delegate
 * @notice For future upgrades, do not change TokenDelegateStorageV1. Create a new
 * contract which implements TokenDelegateStorageV1 and following the naming convention
 * TokenDelegateStorageVX.
 */
contract TokenDelegateStorageV1 is TokenDelegatorStorage {
  // Allowance amounts on behalf of others
  mapping(address => mapping(address => uint96)) internal allowances;

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

  /// @notice A record of each accounts delegate
  mapping(address => address) public 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 A record of states for signing / validating signatures
  mapping(address => uint256) public nonces;
}

File 4 of 4 : Context.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;

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

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

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200,
    "details": {
      "orderLiterals": true,
      "deduplicate": true,
      "cse": true,
      "yul": true
    }
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"oldName","type":"string"},{"indexed":false,"internalType":"string","name":"newName","type":"string"}],"name":"ChangedName","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"oldSybmol","type":"string"},{"indexed":false,"internalType":"string","name":"newSybmol","type":"string"}],"name":"ChangedSymbol","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"delegator","type":"address"},{"indexed":true,"internalType":"address","name":"fromDelegate","type":"address"},{"indexed":true,"internalType":"address","name":"toDelegate","type":"address"}],"name":"DelegateChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"delegate","type":"address"},{"indexed":false,"internalType":"uint256","name":"previousBalance","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newBalance","type":"uint256"}],"name":"DelegateVotesChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldMinter","type":"address"},{"indexed":true,"internalType":"address","name":"newMinter","type":"address"}],"name":"MinterChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldImplementation","type":"address"},{"indexed":false,"internalType":"address","name":"newImplementation","type":"address"}],"name":"NewImplementation","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":"amount","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DELEGATION_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UINT256_MAX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UINT96_MAX","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","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":"rawAmount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"name_","type":"string"}],"name":"changeName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"symbol_","type":"string"}],"name":"changeSymbol","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint32","name":"","type":"uint32"}],"name":"checkpoints","outputs":[{"internalType":"uint32","name":"fromBlock","type":"uint32"},{"internalType":"uint96","name":"votes","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","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":"","type":"address"}],"name":"delegates","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getCurrentVotes","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getPriorVotes","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account_","type":"address"},{"internalType":"uint256","name":"initialSupply_","type":"uint256"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"rawAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"numCheckpoints","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":"rawAmount","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"rawAmount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"src","type":"address"},{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"rawAmount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

60c06040526011608081905270125b9d195c995cdd08141c9bdd1bd8dbdb607a1b60a090815262000034916001919062000076565b506040805180820190915260038082526212541560ea1b6020909201918252620000619160029162000076565b503480156200006f57600080fd5b5062000159565b82805462000084906200011c565b90600052602060002090601f016020900481019282620000a85760008555620000f3565b82601f10620000c357805160ff1916838001178555620000f3565b82800160010185558215620000f3579182015b82811115620000f3578251825591602001919060010190620000d6565b506200010192915062000105565b5090565b5b8082111562000101576000815560010162000106565b600181811c908216806200013157607f821691505b602082108114156200015357634e487b7160e01b600052602260045260246000fd5b50919050565b61264780620001696000396000f3fe608060405234801561001057600080fd5b50600436106101cf5760003560e01c806370a0823111610104578063b4b5ea57116100a2578063d505accf11610071578063d505accf1461047f578063dd62ed3e14610492578063e7a324dc146104d4578063f1127ed8146104fb57600080fd5b8063b4b5ea571461043d578063c3cda52014610450578063cd6dc68714610463578063d0949f991461047657600080fd5b80638da5cb5b116100de5780638da5cb5b146103fc57806395d89b411461040f578063a3895fff14610417578063a9059cbb1461042a57600080fd5b806370a0823114610397578063782d6fe1146103c95780637ecebe00146103dc57600080fd5b8063313ce56711610171578063587cde1e1161014b578063587cde1e146102f55780635c19a95c146103365780635c60da1b146103495780636fcfff451461035c57600080fd5b8063313ce567146102b357806340c10f19146102cd5780635353a2d8146102e257600080fd5b806320606b70116101ad57806320606b701461022c578063220746351461025357806323b872dd1461027957806330adf81f1461028c57600080fd5b806306fdde03146101d4578063095ea7b3146101f257806318160ddd14610215575b600080fd5b6101dc610562565b6040516101e99190611fda565b60405180910390f35b61020561020036600461204b565b6105f0565b60405190151581526020016101e9565b61021e60035481565b6040519081526020016101e9565b61021e7f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b6102616001600160601b0381565b6040516001600160601b0390911681526020016101e9565b610205610287366004612075565b6106ce565b61021e7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b6102bb601281565b60405160ff90911681526020016101e9565b6102e06102db36600461204b565b61082d565b005b6102e06102f03660046120b1565b610a31565b61031e610303366004612123565b6007602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020016101e9565b6102e0610344366004612123565b610af0565b60005461031e906001600160a01b031681565b61038261036a366004612123565b60096020526000908152604090205463ffffffff1681565b60405163ffffffff90911681526020016101e9565b61021e6103a5366004612123565b6001600160a01b03166000908152600660205260409020546001600160601b031690565b6102616103d736600461204b565b610afd565b61021e6103ea366004612123565b600a6020526000908152604090205481565b60045461031e906001600160a01b031681565b6101dc610cac565b6102e06104253660046120b1565b610cb9565b61020561043836600461204b565b610d78565b61026161044b366004612123565b610dd1565b6102e061045e36600461214f565b610e4f565b6102e061047136600461204b565b6110fc565b61021e60001981565b6102e061048d3660046121a7565b61125e565b61021e6104a0366004612211565b6001600160a01b0391821660009081526005602090815260408083209390941682529190915220546001600160601b031690565b61021e7fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf81565b61053e610509366004612244565b600860209081526000928352604080842090915290825290205463ffffffff811690600160201b90046001600160601b031682565b6040805163ffffffff90931683526001600160601b039091166020830152016101e9565b6001805461056f90612284565b80601f016020809104026020016040519081016040528092919081815260200182805461059b90612284565b80156105e85780601f106105bd576101008083540402835291602001916105e8565b820191906000526020600020905b8154815290600101906020018083116105cb57829003601f168201915b505050505081565b60008060001983141561060b57506001600160601b0361064d565b61064a836040518060400160405280601f81526020017f617070726f76653a20616d6f756e74206578636565647320393620626974730081525061164b565b90505b3360008181526005602090815260408083206001600160a01b0389168085529083529281902080546001600160601b0319166001600160601b03871690811790915590519081529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a360019150505b92915050565b6001600160a01b038316600090815260056020908152604080832033808552908352818420548251808401909352601f83527f617070726f76653a20616d6f756e74206578636565647320393620626974730093830193909352916001600160601b031690839061074090869061164b565b9050866001600160a01b0316836001600160a01b03161415801561076d57506001600160601b0382811614155b15610815576000610797838360405180606001604052806037815260200161258a6037913961167a565b6001600160a01b038981166000818152600560209081526040808320948a168084529482529182902080546001600160601b0319166001600160601b0387169081179091559151918252939450919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505b6108208787836116c4565b5060019695505050505050565b6004546001600160a01b031633146108605760405162461bcd60e51b8152600401610857906122bf565b60405180910390fd5b6001600160a01b0382166108b65760405162461bcd60e51b815260206004820181905260248201527f6d696e743a2063616e74207472616e7366657220746f203020616464726573736044820152606401610857565b60006108f7826040518060400160405280601c81526020017f6d696e743a20616d6f756e74206578636565647320393620626974730000000081525061164b565b9050610931816001600160601b0316600354610913919061230c565b6040518060600160405280602181526020016125c16021913961164b565b6001600160601b039081166003556001600160a01b038416600090815260066020908152604091829020548251808401909352601f83527f6d696e743a207472616e7366657220616d6f756e74206f766572666c6f7773009183019190915261099d92169083906118c4565b6001600160a01b038416600081815260066020908152604080832080546001600160601b0319166001600160601b03968716179055519385168452919290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36001600160a01b03808416600090815260076020526040812054610a2c921683611911565b505050565b6004546001600160a01b03163314610a5b5760405162461bcd60e51b8152600401610857906122bf565b80610aa85760405162461bcd60e51b815260206004820152601a60248201527f6368616e67654e616d653a206c656e67746820696e7661696c640000000000006044820152606401610857565b7ffdcc9059d3426f73949b49e5d977553aa298184439da800d66f48959d9cc76b060018383604051610adc9392919061234d565b60405180910390a1610a2c60018383611f41565b610afa3382611af7565b50565b6000438210610b4e5760405162461bcd60e51b815260206004820152601d60248201527f6765745072696f72566f7465733a206e6f742064657465726d696e65640000006044820152606401610857565b600080610b5b8585611b81565b909250905060018215151415610b745791506106c89050565b6001600160a01b0385166000908152600960205260408120548190610ba19060019063ffffffff166123e8565b90505b8163ffffffff168163ffffffff161115610c665760006002610bc684846123e8565b610bd0919061240d565b610bda90836123e8565b6001600160a01b038916600090815260086020908152604080832063ffffffff858116855290835292819020815180830190925254928316808252600160201b9093046001600160601b031691810191909152919250610c3c90898686611ca0565b9197509450925060018615151415610c5f576020015195506106c8945050505050565b5050610ba4565b506001600160a01b038616600090815260086020908152604080832063ffffffff909416835292905220546001600160601b03600160201b909104169250505092915050565b6002805461056f90612284565b6004546001600160a01b03163314610ce35760405162461bcd60e51b8152600401610857906122bf565b80610d305760405162461bcd60e51b815260206004820152601c60248201527f6368616e676553796d626f6c3a206c656e67746820696e7661696c64000000006044820152606401610857565b7f784d389d7a25efa135ac4c0ba29502585aff3f630e1639d375722bae3605664e60028383604051610d649392919061234d565b60405180910390a1610a2c60028383611f41565b600080610dba836040518060400160405280602081526020017f7472616e736665723a20616d6f756e742065786365656473203936206269747381525061164b565b9050610dc73385836116c4565b5060019392505050565b6001600160a01b03811660009081526009602052604081205463ffffffff1680610dfc576000610e48565b6001600160a01b038316600090815260086020526040812090610e206001846123e8565b63ffffffff168152602081019190915260400160002054600160201b90046001600160601b03165b9392505050565b60007f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a8666001604051610e81919061243e565b6040518091039020610e904690565b60408051602080820195909552808201939093526060830191909152306080808401919091528151808403909101815260a0830182528051908401207fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60c08401526001600160a01b038b1660e084015261010083018a90526101208084018a90528251808503909101815261014084019092528151919093012061190160f01b610160830152610162820183905261018282018190529192506000906101a20160408051601f198184030181528282528051602091820120600080855291840180845281905260ff8a169284019290925260608301889052608083018790529092509060019060a0016020604051602081039080840390855afa158015610fbc573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661101f5760405162461bcd60e51b815260206004820181905260248201527f64656c656761746542795369673a20696e76616c6964207369676e61747572656044820152606401610857565b6001600160a01b0381166000908152600a60205260408120805491611043836124b0565b9190505589146110955760405162461bcd60e51b815260206004820152601c60248201527f64656c656761746542795369673a20696e76616c6964206e6f6e6365000000006044820152606401610857565b874211156110e55760405162461bcd60e51b815260206004820181905260248201527f64656c656761746542795369673a207369676e617475726520657870697265646044820152606401610857565b6110ef818b611af7565b505050505b505050505050565b6003541561114c5760405162461bcd60e51b815260206004820152601c60248201527f696e697469616c697a653a2063616e206f6e6c7920646f206f6e6365000000006044820152606401610857565b6001600160a01b0382166111a25760405162461bcd60e51b815260206004820152601b60248201527f696e697469616c697a653a20696e76616c6964206164647265737300000000006044820152606401610857565b600081116111eb5760405162461bcd60e51b8152602060048201526016602482015275696e76616c696420696e697469616c20737570706c7960501b6044820152606401610857565b60038181556001600160a01b038316600081815260066020908152604080832080546001600160601b0319166001600160601b03881617905593549351938452919290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b600060001986141561127857506001600160601b036112ba565b6112b7866040518060400160405280601e81526020017f7065726d69743a20616d6f756e7420657863656564732039362062697473000081525061164b565b90505b60007f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86660016040516112ec919061243e565b60405180910390206112fb4690565b604080516020810194909452830191909152606082015230608082015260a00160408051601f1981840301815291815281516020928301206001600160a01b038c166000908152600a90935290822080549193507f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9918c918c918c9186611381836124b0565b909155506040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810188905260e0016040516020818303038152906040528051906020012090506000828260405160200161140092919061190160f01b81526002810192909252602282015260420190565b60408051601f198184030181528282528051602091820120600080855291840180845281905260ff8b169284019290925260608301899052608083018890529092509060019060a0016020604051602081039080840390855afa15801561146b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166114ce5760405162461bcd60e51b815260206004820152601960248201527f7065726d69743a20696e76616c6964207369676e6174757265000000000000006044820152606401610857565b8b6001600160a01b0316816001600160a01b0316146115265760405162461bcd60e51b81526020600482015260146024820152731c195c9b5a5d0e881d5b985d5d1a1bdc9a5e995960621b6044820152606401610857565b884211156115765760405162461bcd60e51b815260206004820152601960248201527f7065726d69743a207369676e61747572652065787069726564000000000000006044820152606401610857565b84600560008e6001600160a01b03166001600160a01b0316815260200190815260200160002060008d6001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a8154816001600160601b0302191690836001600160601b031602179055508a6001600160a01b03168c6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258760405161163591906001600160601b0391909116815260200190565b60405180910390a3505050505050505050505050565b600081600160601b84106116725760405162461bcd60e51b81526004016108579190611fda565b509192915050565b6000836001600160601b0316836001600160601b0316111582906116b15760405162461bcd60e51b81526004016108579190611fda565b506116bc83856124cb565b949350505050565b6001600160a01b03831661171a5760405162461bcd60e51b815260206004820152601b60248201527f5f7472616e73666572546f6b656e733a2063616e7420306164647200000000006044820152606401610857565b6001600160a01b0382166117705760405162461bcd60e51b815260206004820152601b60248201527f5f7472616e73666572546f6b656e733a2063616e7420306164647200000000006044820152606401610857565b6001600160a01b0383166000908152600660209081526040918290205482516060810190935260308084526117bb936001600160601b0390921692859291906125e29083013961167a565b6001600160a01b03848116600090815260066020908152604080832080546001600160601b0319166001600160601b0396871617905592861682529082902054825160608101909352602a8084526118239491909116928592909190612536908301396118c4565b6001600160a01b0383811660008181526006602090815260409182902080546001600160601b0319166001600160601b03968716179055905193851684529092918616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36001600160a01b03808416600090815260076020526040808220548584168352912054610a2c92918216911683611911565b6000806118d184866124eb565b9050846001600160601b0316816001600160601b0316101583906119085760405162461bcd60e51b81526004016108579190611fda565b50949350505050565b816001600160a01b0316836001600160a01b03161415801561193c57506000816001600160601b0316115b15610a2c576001600160a01b03831615611a1e576001600160a01b03831660009081526009602052604081205463ffffffff16908161197c5760006119c8565b6001600160a01b0385166000908152600860205260408120906119a06001856123e8565b63ffffffff168152602081019190915260400160002054600160201b90046001600160601b03165b90506000611a0c82856040518060400160405280601f81526020017f5f6d6f7665566f7465733a20766f746520616d7420756e646572666c6f77730081525061167a565b9050611a1a86848484611d22565b5050505b6001600160a01b03821615610a2c576001600160a01b03821660009081526009602052604081205463ffffffff169081611a59576000611aa5565b6001600160a01b038416600090815260086020526040812090611a7d6001856123e8565b63ffffffff168152602081019190915260400160002054600160201b90046001600160601b03165b90506000611ae982856040518060400160405280601e81526020017f5f6d6f7665566f7465733a20766f746520616d74206f766572666c6f777300008152506118c4565b90506110f485848484611d22565b6001600160a01b03808316600081815260076020818152604080842080546006845282862054949093528787166001600160a01b031984168117909155905191909516946001600160601b039092169391928592917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a4611b7b828483611911565b50505050565b6001600160a01b038216600090815260096020526040812054819063ffffffff1680611bb557600160009250925050611c99565b6001600160a01b03851660009081526008602052604081208591611bda6001856123e8565b63ffffffff90811682526020820192909252604001600020541611611c51576001600160a01b0385166000908152600860205260408120600191611c1e83856123e8565b63ffffffff168152602081019190915260400160002054909350600160201b90046001600160601b03169150611c999050565b6001600160a01b038516600090815260086020908152604080832083805290915290205463ffffffff16841015611c9057600160009250925050611c99565b60008092509250505b9250929050565b60008080806002611cb187876123e8565b611cbb919061240d565b611cc590866123e8565b9050868863ffffffff161415611ce657600160008093509350935050611d18565b868863ffffffff161015611d0257600093509150839050611d18565b600086611d106001846123e8565b935093509350505b9450945094915050565b6000611d46436040518060600160405280602a8152602001612560602a9139611f1a565b905060008463ffffffff16118015611da057506001600160a01b038516600090815260086020526040812063ffffffff831691611d846001886123e8565b63ffffffff908116825260208201929092526040016000205416145b15611e14576001600160a01b03851660009081526008602052604081208391611dca6001886123e8565b63ffffffff168152602081019190915260400160002080546001600160601b0392909216600160201b026fffffffffffffffffffffffff0000000019909216919091179055611ec5565b60408051808201825263ffffffff80841682526001600160601b0380861660208085019182526001600160a01b038b166000908152600882528681208b8616825290915294909420925183549451909116600160201b026fffffffffffffffffffffffffffffffff19909416911617919091179055611e94846001612516565b6001600160a01b0386166000908152600960205260409020805463ffffffff191663ffffffff929092169190911790555b604080516001600160601b038086168252841660208201526001600160a01b038716917fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724910160405180910390a25050505050565b600081600160201b84106116725760405162461bcd60e51b81526004016108579190611fda565b828054611f4d90612284565b90600052602060002090601f016020900481019282611f6f5760008555611fb5565b82601f10611f885782800160ff19823516178555611fb5565b82800160010185558215611fb5579182015b82811115611fb5578235825591602001919060010190611f9a565b50611fc1929150611fc5565b5090565b5b80821115611fc15760008155600101611fc6565b600060208083528351808285015260005b8181101561200757858101830151858201604001528201611feb565b81811115612019576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b038116811461204657600080fd5b919050565b6000806040838503121561205e57600080fd5b6120678361202f565b946020939093013593505050565b60008060006060848603121561208a57600080fd5b6120938461202f565b92506120a16020850161202f565b9150604084013590509250925092565b600080602083850312156120c457600080fd5b823567ffffffffffffffff808211156120dc57600080fd5b818501915085601f8301126120f057600080fd5b8135818111156120ff57600080fd5b86602082850101111561211157600080fd5b60209290920196919550909350505050565b60006020828403121561213557600080fd5b610e488261202f565b803560ff8116811461204657600080fd5b60008060008060008060c0878903121561216857600080fd5b6121718761202f565b9550602087013594506040870135935061218d6060880161213e565b92506080870135915060a087013590509295509295509295565b600080600080600080600060e0888a0312156121c257600080fd5b6121cb8861202f565b96506121d96020890161202f565b955060408801359450606088013593506121f56080890161213e565b925060a0880135915060c0880135905092959891949750929550565b6000806040838503121561222457600080fd5b61222d8361202f565b915061223b6020840161202f565b90509250929050565b6000806040838503121561225757600080fd5b6122608361202f565b9150602083013563ffffffff8116811461227957600080fd5b809150509250929050565b600181811c9082168061229857607f821691505b602082108114156122b957634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252601b908201527f6f6e6c794f776e65723a2073656e646572206e6f74206f776e65720000000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000821982111561231f5761231f6122f6565b500190565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60408152600080855461235f81612284565b80604086015260606001808416600081146123815760018114612395576123c6565b60ff198516888401526080880195506123c6565b8a60005260208060002060005b868110156123bd5781548b82018701529084019082016123a2565b8a018501975050505b505050505082810360208401526123de818587612324565b9695505050505050565b600063ffffffff83811690831681811015612405576124056122f6565b039392505050565b600063ffffffff8084168061243257634e487b7160e01b600052601260045260246000fd5b92169190910492915050565b600080835461244c81612284565b600182811680156124645760018114612475576124a4565b60ff198416875282870194506124a4565b8760005260208060002060005b8581101561249b5781548a820152908401908201612482565b50505082870194505b50929695505050505050565b60006000198214156124c4576124c46122f6565b5060010190565b60006001600160601b0383811690831681811015612405576124056122f6565b60006001600160601b0380831681851680830382111561250d5761250d6122f6565b01949350505050565b600063ffffffff80831681851680830382111561250d5761250d6122f656fe5f7472616e73666572546f6b656e733a207472616e7366657220616d6f756e74206f766572666c6f77735f7772697465436865636b706f696e743a20626c6f636b6e756d206578636565647320333220626974737472616e7366657246726f6d3a207472616e7366657220616d6f756e742065786365656473207370656e64657220616c6c6f77616e63656d696e743a20746f74616c537570706c79206578636565647320393620626974735f7472616e73666572546f6b656e733a207472616e7366657220616d6f756e7420657863656564732062616c616e6365a2646970667358221220bfc7c3e312500653230c3d34d11e79c5cd8e683878199ee69646a1d6105f1af864736f6c63430008090033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101cf5760003560e01c806370a0823111610104578063b4b5ea57116100a2578063d505accf11610071578063d505accf1461047f578063dd62ed3e14610492578063e7a324dc146104d4578063f1127ed8146104fb57600080fd5b8063b4b5ea571461043d578063c3cda52014610450578063cd6dc68714610463578063d0949f991461047657600080fd5b80638da5cb5b116100de5780638da5cb5b146103fc57806395d89b411461040f578063a3895fff14610417578063a9059cbb1461042a57600080fd5b806370a0823114610397578063782d6fe1146103c95780637ecebe00146103dc57600080fd5b8063313ce56711610171578063587cde1e1161014b578063587cde1e146102f55780635c19a95c146103365780635c60da1b146103495780636fcfff451461035c57600080fd5b8063313ce567146102b357806340c10f19146102cd5780635353a2d8146102e257600080fd5b806320606b70116101ad57806320606b701461022c578063220746351461025357806323b872dd1461027957806330adf81f1461028c57600080fd5b806306fdde03146101d4578063095ea7b3146101f257806318160ddd14610215575b600080fd5b6101dc610562565b6040516101e99190611fda565b60405180910390f35b61020561020036600461204b565b6105f0565b60405190151581526020016101e9565b61021e60035481565b6040519081526020016101e9565b61021e7f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b6102616001600160601b0381565b6040516001600160601b0390911681526020016101e9565b610205610287366004612075565b6106ce565b61021e7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b6102bb601281565b60405160ff90911681526020016101e9565b6102e06102db36600461204b565b61082d565b005b6102e06102f03660046120b1565b610a31565b61031e610303366004612123565b6007602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020016101e9565b6102e0610344366004612123565b610af0565b60005461031e906001600160a01b031681565b61038261036a366004612123565b60096020526000908152604090205463ffffffff1681565b60405163ffffffff90911681526020016101e9565b61021e6103a5366004612123565b6001600160a01b03166000908152600660205260409020546001600160601b031690565b6102616103d736600461204b565b610afd565b61021e6103ea366004612123565b600a6020526000908152604090205481565b60045461031e906001600160a01b031681565b6101dc610cac565b6102e06104253660046120b1565b610cb9565b61020561043836600461204b565b610d78565b61026161044b366004612123565b610dd1565b6102e061045e36600461214f565b610e4f565b6102e061047136600461204b565b6110fc565b61021e60001981565b6102e061048d3660046121a7565b61125e565b61021e6104a0366004612211565b6001600160a01b0391821660009081526005602090815260408083209390941682529190915220546001600160601b031690565b61021e7fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf81565b61053e610509366004612244565b600860209081526000928352604080842090915290825290205463ffffffff811690600160201b90046001600160601b031682565b6040805163ffffffff90931683526001600160601b039091166020830152016101e9565b6001805461056f90612284565b80601f016020809104026020016040519081016040528092919081815260200182805461059b90612284565b80156105e85780601f106105bd576101008083540402835291602001916105e8565b820191906000526020600020905b8154815290600101906020018083116105cb57829003601f168201915b505050505081565b60008060001983141561060b57506001600160601b0361064d565b61064a836040518060400160405280601f81526020017f617070726f76653a20616d6f756e74206578636565647320393620626974730081525061164b565b90505b3360008181526005602090815260408083206001600160a01b0389168085529083529281902080546001600160601b0319166001600160601b03871690811790915590519081529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a360019150505b92915050565b6001600160a01b038316600090815260056020908152604080832033808552908352818420548251808401909352601f83527f617070726f76653a20616d6f756e74206578636565647320393620626974730093830193909352916001600160601b031690839061074090869061164b565b9050866001600160a01b0316836001600160a01b03161415801561076d57506001600160601b0382811614155b15610815576000610797838360405180606001604052806037815260200161258a6037913961167a565b6001600160a01b038981166000818152600560209081526040808320948a168084529482529182902080546001600160601b0319166001600160601b0387169081179091559151918252939450919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505b6108208787836116c4565b5060019695505050505050565b6004546001600160a01b031633146108605760405162461bcd60e51b8152600401610857906122bf565b60405180910390fd5b6001600160a01b0382166108b65760405162461bcd60e51b815260206004820181905260248201527f6d696e743a2063616e74207472616e7366657220746f203020616464726573736044820152606401610857565b60006108f7826040518060400160405280601c81526020017f6d696e743a20616d6f756e74206578636565647320393620626974730000000081525061164b565b9050610931816001600160601b0316600354610913919061230c565b6040518060600160405280602181526020016125c16021913961164b565b6001600160601b039081166003556001600160a01b038416600090815260066020908152604091829020548251808401909352601f83527f6d696e743a207472616e7366657220616d6f756e74206f766572666c6f7773009183019190915261099d92169083906118c4565b6001600160a01b038416600081815260066020908152604080832080546001600160601b0319166001600160601b03968716179055519385168452919290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36001600160a01b03808416600090815260076020526040812054610a2c921683611911565b505050565b6004546001600160a01b03163314610a5b5760405162461bcd60e51b8152600401610857906122bf565b80610aa85760405162461bcd60e51b815260206004820152601a60248201527f6368616e67654e616d653a206c656e67746820696e7661696c640000000000006044820152606401610857565b7ffdcc9059d3426f73949b49e5d977553aa298184439da800d66f48959d9cc76b060018383604051610adc9392919061234d565b60405180910390a1610a2c60018383611f41565b610afa3382611af7565b50565b6000438210610b4e5760405162461bcd60e51b815260206004820152601d60248201527f6765745072696f72566f7465733a206e6f742064657465726d696e65640000006044820152606401610857565b600080610b5b8585611b81565b909250905060018215151415610b745791506106c89050565b6001600160a01b0385166000908152600960205260408120548190610ba19060019063ffffffff166123e8565b90505b8163ffffffff168163ffffffff161115610c665760006002610bc684846123e8565b610bd0919061240d565b610bda90836123e8565b6001600160a01b038916600090815260086020908152604080832063ffffffff858116855290835292819020815180830190925254928316808252600160201b9093046001600160601b031691810191909152919250610c3c90898686611ca0565b9197509450925060018615151415610c5f576020015195506106c8945050505050565b5050610ba4565b506001600160a01b038616600090815260086020908152604080832063ffffffff909416835292905220546001600160601b03600160201b909104169250505092915050565b6002805461056f90612284565b6004546001600160a01b03163314610ce35760405162461bcd60e51b8152600401610857906122bf565b80610d305760405162461bcd60e51b815260206004820152601c60248201527f6368616e676553796d626f6c3a206c656e67746820696e7661696c64000000006044820152606401610857565b7f784d389d7a25efa135ac4c0ba29502585aff3f630e1639d375722bae3605664e60028383604051610d649392919061234d565b60405180910390a1610a2c60028383611f41565b600080610dba836040518060400160405280602081526020017f7472616e736665723a20616d6f756e742065786365656473203936206269747381525061164b565b9050610dc73385836116c4565b5060019392505050565b6001600160a01b03811660009081526009602052604081205463ffffffff1680610dfc576000610e48565b6001600160a01b038316600090815260086020526040812090610e206001846123e8565b63ffffffff168152602081019190915260400160002054600160201b90046001600160601b03165b9392505050565b60007f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a8666001604051610e81919061243e565b6040518091039020610e904690565b60408051602080820195909552808201939093526060830191909152306080808401919091528151808403909101815260a0830182528051908401207fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60c08401526001600160a01b038b1660e084015261010083018a90526101208084018a90528251808503909101815261014084019092528151919093012061190160f01b610160830152610162820183905261018282018190529192506000906101a20160408051601f198184030181528282528051602091820120600080855291840180845281905260ff8a169284019290925260608301889052608083018790529092509060019060a0016020604051602081039080840390855afa158015610fbc573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661101f5760405162461bcd60e51b815260206004820181905260248201527f64656c656761746542795369673a20696e76616c6964207369676e61747572656044820152606401610857565b6001600160a01b0381166000908152600a60205260408120805491611043836124b0565b9190505589146110955760405162461bcd60e51b815260206004820152601c60248201527f64656c656761746542795369673a20696e76616c6964206e6f6e6365000000006044820152606401610857565b874211156110e55760405162461bcd60e51b815260206004820181905260248201527f64656c656761746542795369673a207369676e617475726520657870697265646044820152606401610857565b6110ef818b611af7565b505050505b505050505050565b6003541561114c5760405162461bcd60e51b815260206004820152601c60248201527f696e697469616c697a653a2063616e206f6e6c7920646f206f6e6365000000006044820152606401610857565b6001600160a01b0382166111a25760405162461bcd60e51b815260206004820152601b60248201527f696e697469616c697a653a20696e76616c6964206164647265737300000000006044820152606401610857565b600081116111eb5760405162461bcd60e51b8152602060048201526016602482015275696e76616c696420696e697469616c20737570706c7960501b6044820152606401610857565b60038181556001600160a01b038316600081815260066020908152604080832080546001600160601b0319166001600160601b03881617905593549351938452919290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b600060001986141561127857506001600160601b036112ba565b6112b7866040518060400160405280601e81526020017f7065726d69743a20616d6f756e7420657863656564732039362062697473000081525061164b565b90505b60007f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86660016040516112ec919061243e565b60405180910390206112fb4690565b604080516020810194909452830191909152606082015230608082015260a00160408051601f1981840301815291815281516020928301206001600160a01b038c166000908152600a90935290822080549193507f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9918c918c918c9186611381836124b0565b909155506040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810188905260e0016040516020818303038152906040528051906020012090506000828260405160200161140092919061190160f01b81526002810192909252602282015260420190565b60408051601f198184030181528282528051602091820120600080855291840180845281905260ff8b169284019290925260608301899052608083018890529092509060019060a0016020604051602081039080840390855afa15801561146b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166114ce5760405162461bcd60e51b815260206004820152601960248201527f7065726d69743a20696e76616c6964207369676e6174757265000000000000006044820152606401610857565b8b6001600160a01b0316816001600160a01b0316146115265760405162461bcd60e51b81526020600482015260146024820152731c195c9b5a5d0e881d5b985d5d1a1bdc9a5e995960621b6044820152606401610857565b884211156115765760405162461bcd60e51b815260206004820152601960248201527f7065726d69743a207369676e61747572652065787069726564000000000000006044820152606401610857565b84600560008e6001600160a01b03166001600160a01b0316815260200190815260200160002060008d6001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a8154816001600160601b0302191690836001600160601b031602179055508a6001600160a01b03168c6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258760405161163591906001600160601b0391909116815260200190565b60405180910390a3505050505050505050505050565b600081600160601b84106116725760405162461bcd60e51b81526004016108579190611fda565b509192915050565b6000836001600160601b0316836001600160601b0316111582906116b15760405162461bcd60e51b81526004016108579190611fda565b506116bc83856124cb565b949350505050565b6001600160a01b03831661171a5760405162461bcd60e51b815260206004820152601b60248201527f5f7472616e73666572546f6b656e733a2063616e7420306164647200000000006044820152606401610857565b6001600160a01b0382166117705760405162461bcd60e51b815260206004820152601b60248201527f5f7472616e73666572546f6b656e733a2063616e7420306164647200000000006044820152606401610857565b6001600160a01b0383166000908152600660209081526040918290205482516060810190935260308084526117bb936001600160601b0390921692859291906125e29083013961167a565b6001600160a01b03848116600090815260066020908152604080832080546001600160601b0319166001600160601b0396871617905592861682529082902054825160608101909352602a8084526118239491909116928592909190612536908301396118c4565b6001600160a01b0383811660008181526006602090815260409182902080546001600160601b0319166001600160601b03968716179055905193851684529092918616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36001600160a01b03808416600090815260076020526040808220548584168352912054610a2c92918216911683611911565b6000806118d184866124eb565b9050846001600160601b0316816001600160601b0316101583906119085760405162461bcd60e51b81526004016108579190611fda565b50949350505050565b816001600160a01b0316836001600160a01b03161415801561193c57506000816001600160601b0316115b15610a2c576001600160a01b03831615611a1e576001600160a01b03831660009081526009602052604081205463ffffffff16908161197c5760006119c8565b6001600160a01b0385166000908152600860205260408120906119a06001856123e8565b63ffffffff168152602081019190915260400160002054600160201b90046001600160601b03165b90506000611a0c82856040518060400160405280601f81526020017f5f6d6f7665566f7465733a20766f746520616d7420756e646572666c6f77730081525061167a565b9050611a1a86848484611d22565b5050505b6001600160a01b03821615610a2c576001600160a01b03821660009081526009602052604081205463ffffffff169081611a59576000611aa5565b6001600160a01b038416600090815260086020526040812090611a7d6001856123e8565b63ffffffff168152602081019190915260400160002054600160201b90046001600160601b03165b90506000611ae982856040518060400160405280601e81526020017f5f6d6f7665566f7465733a20766f746520616d74206f766572666c6f777300008152506118c4565b90506110f485848484611d22565b6001600160a01b03808316600081815260076020818152604080842080546006845282862054949093528787166001600160a01b031984168117909155905191909516946001600160601b039092169391928592917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a4611b7b828483611911565b50505050565b6001600160a01b038216600090815260096020526040812054819063ffffffff1680611bb557600160009250925050611c99565b6001600160a01b03851660009081526008602052604081208591611bda6001856123e8565b63ffffffff90811682526020820192909252604001600020541611611c51576001600160a01b0385166000908152600860205260408120600191611c1e83856123e8565b63ffffffff168152602081019190915260400160002054909350600160201b90046001600160601b03169150611c999050565b6001600160a01b038516600090815260086020908152604080832083805290915290205463ffffffff16841015611c9057600160009250925050611c99565b60008092509250505b9250929050565b60008080806002611cb187876123e8565b611cbb919061240d565b611cc590866123e8565b9050868863ffffffff161415611ce657600160008093509350935050611d18565b868863ffffffff161015611d0257600093509150839050611d18565b600086611d106001846123e8565b935093509350505b9450945094915050565b6000611d46436040518060600160405280602a8152602001612560602a9139611f1a565b905060008463ffffffff16118015611da057506001600160a01b038516600090815260086020526040812063ffffffff831691611d846001886123e8565b63ffffffff908116825260208201929092526040016000205416145b15611e14576001600160a01b03851660009081526008602052604081208391611dca6001886123e8565b63ffffffff168152602081019190915260400160002080546001600160601b0392909216600160201b026fffffffffffffffffffffffff0000000019909216919091179055611ec5565b60408051808201825263ffffffff80841682526001600160601b0380861660208085019182526001600160a01b038b166000908152600882528681208b8616825290915294909420925183549451909116600160201b026fffffffffffffffffffffffffffffffff19909416911617919091179055611e94846001612516565b6001600160a01b0386166000908152600960205260409020805463ffffffff191663ffffffff929092169190911790555b604080516001600160601b038086168252841660208201526001600160a01b038716917fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724910160405180910390a25050505050565b600081600160201b84106116725760405162461bcd60e51b81526004016108579190611fda565b828054611f4d90612284565b90600052602060002090601f016020900481019282611f6f5760008555611fb5565b82601f10611f885782800160ff19823516178555611fb5565b82800160010185558215611fb5579182015b82811115611fb5578235825591602001919060010190611f9a565b50611fc1929150611fc5565b5090565b5b80821115611fc15760008155600101611fc6565b600060208083528351808285015260005b8181101561200757858101830151858201604001528201611feb565b81811115612019576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b038116811461204657600080fd5b919050565b6000806040838503121561205e57600080fd5b6120678361202f565b946020939093013593505050565b60008060006060848603121561208a57600080fd5b6120938461202f565b92506120a16020850161202f565b9150604084013590509250925092565b600080602083850312156120c457600080fd5b823567ffffffffffffffff808211156120dc57600080fd5b818501915085601f8301126120f057600080fd5b8135818111156120ff57600080fd5b86602082850101111561211157600080fd5b60209290920196919550909350505050565b60006020828403121561213557600080fd5b610e488261202f565b803560ff8116811461204657600080fd5b60008060008060008060c0878903121561216857600080fd5b6121718761202f565b9550602087013594506040870135935061218d6060880161213e565b92506080870135915060a087013590509295509295509295565b600080600080600080600060e0888a0312156121c257600080fd5b6121cb8861202f565b96506121d96020890161202f565b955060408801359450606088013593506121f56080890161213e565b925060a0880135915060c0880135905092959891949750929550565b6000806040838503121561222457600080fd5b61222d8361202f565b915061223b6020840161202f565b90509250929050565b6000806040838503121561225757600080fd5b6122608361202f565b9150602083013563ffffffff8116811461227957600080fd5b809150509250929050565b600181811c9082168061229857607f821691505b602082108114156122b957634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252601b908201527f6f6e6c794f776e65723a2073656e646572206e6f74206f776e65720000000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000821982111561231f5761231f6122f6565b500190565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60408152600080855461235f81612284565b80604086015260606001808416600081146123815760018114612395576123c6565b60ff198516888401526080880195506123c6565b8a60005260208060002060005b868110156123bd5781548b82018701529084019082016123a2565b8a018501975050505b505050505082810360208401526123de818587612324565b9695505050505050565b600063ffffffff83811690831681811015612405576124056122f6565b039392505050565b600063ffffffff8084168061243257634e487b7160e01b600052601260045260246000fd5b92169190910492915050565b600080835461244c81612284565b600182811680156124645760018114612475576124a4565b60ff198416875282870194506124a4565b8760005260208060002060005b8581101561249b5781548a820152908401908201612482565b50505082870194505b50929695505050505050565b60006000198214156124c4576124c46122f6565b5060010190565b60006001600160601b0383811690831681811015612405576124056122f6565b60006001600160601b0380831681851680830382111561250d5761250d6122f6565b01949350505050565b600063ffffffff80831681851680830382111561250d5761250d6122f656fe5f7472616e73666572546f6b656e733a207472616e7366657220616d6f756e74206f766572666c6f77735f7772697465436865636b706f696e743a20626c6f636b6e756d206578636565647320333220626974737472616e7366657246726f6d3a207472616e7366657220616d6f756e742065786365656473207370656e64657220616c6c6f77616e63656d696e743a20746f74616c537570706c79206578636565647320393620626974735f7472616e73666572546f6b656e733a207472616e7366657220616d6f756e7420657863656564732062616c616e6365a2646970667358221220bfc7c3e312500653230c3d34d11e79c5cd8e683878199ee69646a1d6105f1af864736f6c63430008090033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.