Contract 0xe0e44d4e7e61f2f4f990f5f4e2408d2187315c94 2

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x8a709f40f28c273aae73f2921fb22e2494f417471940edb9f693b28c576c9925Vest Schedule At...205433142021-10-24 1:57:0237 secs ago0x1ec07a13d0667012854e28a5c61d5109741ad9b5 IN  0xe0e44d4e7e61f2f4f990f5f4e2408d2187315c940 MATIC0.00156828
0xc37080c82b3324cb957a1184459e3004b60f1efc10f7f0ffafcac9826b72a666Vest Schedule At...205433132021-10-24 1:56:5841 secs ago0x1ec07a13d0667012854e28a5c61d5109741ad9b5 IN  0xe0e44d4e7e61f2f4f990f5f4e2408d2187315c940 MATIC0.00336744
0x4a04baea7ea6bb0832b160eb7055e57899cd921154976d2abddb367f577c90b5Vest Schedule At...205432682021-10-24 1:54:482 mins ago0xea0008860b09f73fd2998465b56c63bb134e91ec IN  0xe0e44d4e7e61f2f4f990f5f4e2408d2187315c940 MATIC0.01615761
0x682c2bb1caac0eaaba85a2c752c1487693197270c12f9807f313f3cd35064442Vest Schedule At...205431762021-10-24 1:51:405 mins ago0x59ef06e5557f1e472e13b31531ad6b5bc4dd6ebc IN  0xe0e44d4e7e61f2f4f990f5f4e2408d2187315c940 MATIC0.01275276
0xcf3ddb6f345a1b65c68537dafa3e1c2de006a077de7410f40907a61b43635629Vest Schedule At...205431452021-10-24 1:50:347 mins ago0xfa5d49b8da00eb82cdc8da55a4be43853a92cbc5 IN  0xe0e44d4e7e61f2f4f990f5f4e2408d2187315c940 MATIC0.01014582
0xe9a71dd3d78dbddae19eb5cc7b9fd5eb460115e377411ed459b2c6d7c2492052Vest Schedule At...205429162021-10-24 1:40:3617 mins ago0xf4cea67f4ef5dd77a6df400647933ec6ec1728b7 IN  0xe0e44d4e7e61f2f4f990f5f4e2408d2187315c940 MATIC0.004854917732
0x2590c88c1c3d41f5779a67476c69a6c30de1ca59ab73809f4c173d4cc2edb62eVest Schedule At...205427982021-10-24 1:36:3221 mins ago0xb707adeb14d0342bcee3ec57c0d720f1e94f094f IN  0xe0e44d4e7e61f2f4f990f5f4e2408d2187315c940 MATIC0.01154871
0x8fca21d506b455bf48d98f343b967d7c56cc2952e057109cc75f11502c329fb2Vest Schedule At...205424752021-10-24 1:25:2632 mins ago0x596fc912ef33e5b8ccf93ce17379304d8dbba297 IN  0xe0e44d4e7e61f2f4f990f5f4e2408d2187315c940 MATIC0.01243887
0x49461163398531165e7c4d506d2f1928f36fce1083137d544eff3b5f69a77de2Vest Schedule At...205424362021-10-24 1:24:0433 mins ago0x6f1fdcb6e494ec79e549c3df7a1c64b1770eb630 IN  0xe0e44d4e7e61f2f4f990f5f4e2408d2187315c940 MATIC0.00532263
0x1a34e920bafa6594796e53f30753c17177888ee0aba72924dfb7c897f1dc9a21Vest Schedule At...205423982021-10-24 1:22:4234 mins ago0x6322ab121f97e0f3d4c789e28f03e7ce77909740 IN  0xe0e44d4e7e61f2f4f990f5f4e2408d2187315c940 MATIC0.01087869
0x9128d7df052a9873d0d6be1a8f674c9eb39292de42b9a085e3f04f8b83df6e54Vest Schedule At...205423722021-10-24 1:20:5836 mins ago0xae38f87367bbe178925bf3590318097af810c846 IN  0xe0e44d4e7e61f2f4f990f5f4e2408d2187315c940 MATIC0.00411939
0xd1fc7588f3449d02810e1f6cdc25c5757c1eb963d8c1a3426d17a60c67c97400Vest Schedule At...205423642021-10-24 1:20:2637 mins ago0x9e003240a6eae72f9a8fddcfaae756c27d1400ae IN  0xe0e44d4e7e61f2f4f990f5f4e2408d2187315c940 MATIC0.00151608
0xcde6e2a457595b7da2518991e66296f970e4fe0b07c77e2b9b249398e153e9c1Vest Schedule At...205422982021-10-24 1:15:5841 mins ago0x488e1a254aada1c38486bac39de9c22834f72151 IN  0xe0e44d4e7e61f2f4f990f5f4e2408d2187315c940 MATIC0.01990116
0x97e7d8fe2b61371608ed04f4a148f677aaee71edb15991ed9be681cbed923a7aVest Schedule At...205422072021-10-24 1:11:5445 mins ago0x94e40679b7ae543410fb84d440f2c5a4267b678e IN  0xe0e44d4e7e61f2f4f990f5f4e2408d2187315c940 MATIC0.0063894
0x1d558381cdc3e0342e50622b06a34658de529b90ab77c0073f3325015fc6ab42Vest Schedule At...205419672021-10-24 1:03:4253 mins ago0x3f6390cd5a07fc11c98642ab0697974b8140080b IN  0xe0e44d4e7e61f2f4f990f5f4e2408d2187315c940 MATIC0.00490464
0xd413c01195b6313c24deffdf7d42e70e8783e10222702e3f8a33fd27c23921beVest Schedule At...205419662021-10-24 1:03:4053 mins ago0x6199ed6bf5d0dcc6751500332fc2e1f798077fb1 IN  0xe0e44d4e7e61f2f4f990f5f4e2408d2187315c940 MATIC0.00316902
0xf47bb9676c0322f22e77ebbf9fa8fb841a62d5aacb663b424b615f667e792610Vest Schedule At...205419522021-10-24 1:03:1254 mins ago0x9f6c47623d23fc9dbca3ed670a43792db3aacaee IN  0xe0e44d4e7e61f2f4f990f5f4e2408d2187315c940 MATIC0.00196608
0x2aee490b53d449264ce64f83d7b915f4b3c7ca04dbdfac4ab097cad41d3ff25bVest Schedule At...205419022021-10-24 1:01:2856 mins ago0x6f936df11a0d4662b68332b3fef0efd8c958a2bf IN  0xe0e44d4e7e61f2f4f990f5f4e2408d2187315c940 MATIC0.00559749
0x0d3b7c52d7a13d9a0be7874bbee4c5a60b1d5bdb72b346a24503b13b65e2a065Vest Schedule At...205417952021-10-24 0:57:4659 mins ago0x6b864b41bef3c283d97fa542d17fa6ca1e6119d1 IN  0xe0e44d4e7e61f2f4f990f5f4e2408d2187315c940 MATIC0.0145758
0x5890b77bf2a9f55b142e97fc51def9ed07b80c7657181371a2c4338900c05bd2Vest Schedule At...205416532021-10-24 0:52:541 hr 4 mins ago0x639fa1f482457cbacc10d8f68a095a2082695d12 IN  0xe0e44d4e7e61f2f4f990f5f4e2408d2187315c940 MATIC0.00676587
0xd0b11318bb90b7993d153150261318a93a7bd612b600721e44a7d11ed943e11fVest Schedule At...205416332021-10-24 0:52:141 hr 5 mins ago0x8cab74c1d101ab04dea957d2e4e6ff92d5461285 IN  0xe0e44d4e7e61f2f4f990f5f4e2408d2187315c940 MATIC0.00264085
0x48f281953feaffb77a81e740fc8b22d098b76ce2a881ad32da06afbe91c76209Vest Schedule At...205414272021-10-24 0:45:061 hr 12 mins ago0x1454d4e496b300e2e397005f969382d3fc5c2b0b IN  0xe0e44d4e7e61f2f4f990f5f4e2408d2187315c940 MATIC0.00283443
0x6916bb0e9591ac88498591b9d4008f3bb18ccbed8df7134b422c2401e9cb3d3dVest Schedule At...205414112021-10-24 0:44:341 hr 13 mins ago0x4adb2b259fc55b10178d94bb92ea5036b3c54f59 IN  0xe0e44d4e7e61f2f4f990f5f4e2408d2187315c940 MATIC0.00543846
0x29a03b9f8838c03d742e72550ad78dcbf4a994a11417de1f181fb6891bb94716Vest Schedule At...205413972021-10-24 0:44:061 hr 13 mins ago0x260d5120f90ef05dfed7de7766dc82eb3dc2da83 IN  0xe0e44d4e7e61f2f4f990f5f4e2408d2187315c940 MATIC0.02469552
0x1e8aa9242ec0354344cc71c05d2a518f49b96d42f5cc28047541e61abb746137Vest Schedule At...205413142021-10-24 0:41:161 hr 16 mins ago0xe68cf37149d158f5c1c68bad39ae6e975f765133 IN  0xe0e44d4e7e61f2f4f990f5f4e2408d2187315c940 MATIC0.00483045
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
RewardLocker

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity Multiple files format)

File 1 of 11: RewardLocker.sol
// SPDX-License-Identifier: agpl-3.0
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;

import "./Ownable.sol";
import "./SafeERC20.sol";
import "./SafeCast.sol";
import "./EnumerableSet.sol";
import "./ReentrancyGuard.sol";

import "./IRewardLocker.sol";

contract RewardLocker is IRewardLocker, Ownable, ReentrancyGuard {
  using SafeMath for uint256;
  using SafeCast for uint256;

  using SafeERC20 for IERC20;
  using EnumerableSet for EnumerableSet.AddressSet;

  struct VestingSchedules {
    uint256 length;
    mapping(uint256 => VestingSchedule) data;
  }

  uint256 public MAX_REWARD_CONTRACTS_SIZE = 100;
  uint256 constant MAX_VESTING_DURATION = 14400000; // Safety check - 1 year

  /// @dev whitelist of reward contracts
  mapping(IERC20 => EnumerableSet.AddressSet) internal rewardContractsPerToken;

  /// @dev vesting schedule of an account
  mapping(address => mapping(IERC20 => VestingSchedules)) private accountVestingSchedules;

  /// @dev An account's total escrowed balance per token to save recomputing this for fee extraction purposes
  mapping(address => mapping(IERC20 => uint256)) public accountEscrowedBalance;

  /// @dev An account's total vested reward per token
  mapping(address => mapping(IERC20 => uint256)) public accountVestedBalance;

  /// @dev vesting duration for earch token
  mapping(IERC20 => uint256) public vestingDurationPerToken;

  /* ========== EVENTS ========== */
  event RewardContractAdded(address indexed rewardContract, IERC20 indexed token, bool isAdded);
  event SetVestingDuration(IERC20 indexed token, uint64 vestingDuration);
  event Vest(IERC20 indexed token, uint256 totalVesting);
  event UpdateMaxContractSize(uint256 size);

  /* ========== MODIFIERS ========== */

  modifier onlyRewardsContract(IERC20 token) {
    require(rewardContractsPerToken[token].contains(msg.sender), 'only reward contract');
    _;
  }

  /**
   * @notice Add a whitelisted rewards contract
   */
  function addRewardsContract(IERC20 token, address _rewardContract) external onlyOwner {
    require(
      rewardContractsPerToken[token].length() < MAX_REWARD_CONTRACTS_SIZE,
      'rewardContracts is too long'
    );
    require(rewardContractsPerToken[token].add(_rewardContract), '_rewardContract is added');

    emit RewardContractAdded(_rewardContract, token, true);
  }

  /**
   * @notice Remove a whitelisted rewards contract
   */
  function removeRewardsContract(IERC20 token, address _rewardContract) external onlyOwner {
    require(rewardContractsPerToken[token].remove(_rewardContract), '_rewardContract is removed');

    emit RewardContractAdded(_rewardContract, token, false);
  }

  function setVestingDuration(IERC20 token, uint64 _vestingDuration) external onlyOwner {
    require(_vestingDuration <= MAX_VESTING_DURATION, "!overmax");
    vestingDurationPerToken[token] = _vestingDuration;

    emit SetVestingDuration(token, _vestingDuration);
  }

  function lock(
    IERC20 token,
    address account,
    uint256 quantity
  ) external override payable nonReentrant {
    _lockWithStartBlock(token, account, quantity, _blockNumber());
  }

  /**
   * @dev vest all completed schedules for multiple tokens
   */
  function vestCompletedSchedulesForMultipleTokens(IERC20[] calldata tokens)
    external
    override
    returns (uint256[] memory vestedAmounts)
  {
    vestedAmounts = new uint256[](tokens.length);
    for (uint256 i = 0; i < tokens.length; i++) {
      vestedAmounts[i] = vestCompletedSchedules(tokens[i]);
    }
  }

  /**
   * @dev claim multiple tokens for specific vesting schedule,
   *      if schedule has not ended yet, claiming amounts are linear with vesting blocks
   */
  function vestScheduleForMultipleTokensAtIndices(
    IERC20[] calldata tokens,
    uint256[][] calldata indices
  ) external override returns (uint256[] memory vestedAmounts) {
    require(tokens.length == indices.length, 'tokens.length != indices.length');
    vestedAmounts = new uint256[](tokens.length);
    for (uint256 i = 0; i < tokens.length; i++) {
      vestedAmounts[i] = vestScheduleAtIndices(tokens[i], indices[i]);
    }
  }

  function lockWithStartBlock(
    IERC20 token,
    address account,
    uint256 quantity,
    uint256 startBlock
  ) external override payable onlyRewardsContract(token) nonReentrant {
    _lockWithStartBlock(token, account, quantity, startBlock);
  }
  
  function _lockWithStartBlock(
    IERC20 token,
    address account,
    uint256 quantity,
    uint256 startBlock
  ) internal onlyRewardsContract(token) {
    require(quantity > 0, '0 quantity');

    if (token == IERC20(0)) {
      require(msg.value == quantity, 'Invalid msg.value');
    } else {
      // transfer token from reward contract to lock contract
      uint256 beforeDeposit = token.balanceOf(address(this));
      token.safeTransferFrom(msg.sender, address(this), quantity);
      uint256 afterDeposit = token.balanceOf(address(this));
      quantity = afterDeposit.sub(beforeDeposit);
    }

    VestingSchedules storage schedules = accountVestingSchedules[account][token];
    uint256 schedulesLength = schedules.length;
    uint256 endBlock = startBlock.add(vestingDurationPerToken[token]);

    // combine with the last schedule if they have the same start & end blocks
    if (schedulesLength > 0) {
      VestingSchedule storage lastSchedule = schedules.data[schedulesLength - 1];
      if (lastSchedule.startBlock == startBlock && lastSchedule.endBlock == endBlock) {
        lastSchedule.quantity = uint256(lastSchedule.quantity).add(quantity).toUint128();
        accountEscrowedBalance[account][token] = accountEscrowedBalance[account][token].add(
          quantity
        );
        emit VestingEntryQueued(schedulesLength - 1, token, account, quantity);
        return;
      }
    }

    // append new schedule
    schedules.data[schedulesLength] = VestingSchedule({
      startBlock: startBlock.toUint64(),
      endBlock: endBlock.toUint64(),
      quantity: quantity.toUint128(),
      vestedQuantity: 0
    });
    schedules.length = schedulesLength + 1;
    // record total vesting balance of user
    accountEscrowedBalance[account][token] = accountEscrowedBalance[account][token].add(quantity);

    emit VestingEntryCreated(token, account, startBlock, endBlock, quantity, schedulesLength);
  } 

  /**
   * @dev Allow a user to vest all ended schedules
   */
  function vestCompletedSchedules(IERC20 token) public override returns (uint256) {
    VestingSchedules storage schedules = accountVestingSchedules[msg.sender][token];
    uint256 schedulesLength = schedules.length;

    uint256 totalVesting = 0;
    for (uint256 i = 0; i < schedulesLength; i++) {
      VestingSchedule memory schedule = schedules.data[i];
      if (_blockNumber() < schedule.endBlock) {
        continue;
      }
      uint256 vestQuantity = uint256(schedule.quantity).sub(schedule.vestedQuantity);
      if (vestQuantity == 0) {
        continue;
      }
      schedules.data[i].vestedQuantity = schedule.quantity;
      totalVesting = totalVesting.add(vestQuantity);

      emit Vested(token, msg.sender, vestQuantity, i);
    }
    _completeVesting(token, totalVesting);

    return totalVesting;
  }

  /**
   * @notice Allow a user to vest with specific schedule
   */
  function vestScheduleAtIndices(IERC20 token, uint256[] memory indexes)
    public
    override
    returns (uint256)
  {
    VestingSchedules storage schedules = accountVestingSchedules[msg.sender][token];
    uint256 schedulesLength = schedules.length;
    uint256 totalVesting = 0;
    for (uint256 i = 0; i < indexes.length; i++) {
      require(indexes[i] < schedulesLength, 'invalid schedule index');
      VestingSchedule memory schedule = schedules.data[indexes[i]];
      uint256 vestQuantity = _getVestingQuantity(schedule);
      if (vestQuantity == 0) {
        continue;
      }
      schedules.data[indexes[i]].vestedQuantity = uint256(schedule.vestedQuantity)
        .add(vestQuantity)
        .toUint128();

      totalVesting = totalVesting.add(vestQuantity);

      emit Vested(token, msg.sender, vestQuantity, indexes[i]);
    }
    _completeVesting(token, totalVesting);
    return totalVesting;
  }

  function vestSchedulesInRange(
    IERC20 token,
    uint256 startIndex,
    uint256 endIndex
  ) public override returns (uint256) {
    require(startIndex <= endIndex, 'startIndex > endIndex');
    uint256[] memory indexes = new uint256[](endIndex - startIndex + 1);
    for (uint256 index = startIndex; index <= endIndex; index++) {
      indexes[index - startIndex] = index;
    }
    return vestScheduleAtIndices(token, indexes);
  }

  /* ========== VIEW FUNCTIONS ========== */

  /**
   * @notice The number of vesting dates in an account's schedule.
   */
  function numVestingSchedules(address account, IERC20 token)
    external
    override
    view
    returns (uint256)
  {
    return accountVestingSchedules[account][token].length;
  }

  /**
   * @dev manually get vesting schedule at index
   */
  function getVestingScheduleAtIndex(
    address account,
    IERC20 token,
    uint256 index
  ) external override view returns (VestingSchedule memory) {
    return accountVestingSchedules[account][token].data[index];
  }

  /**
   * @dev Get all schedules for an account.
   */
  function getVestingSchedules(address account, IERC20 token)
    external
    override
    view
    returns (VestingSchedule[] memory schedules)
  {
    uint256 schedulesLength = accountVestingSchedules[account][token].length;
    schedules = new VestingSchedule[](schedulesLength);
    for (uint256 i = 0; i < schedulesLength; i++) {
      schedules[i] = accountVestingSchedules[account][token].data[i];
    }
  }

  function getRewardContractsPerToken(IERC20 token)
    external
    view
    returns (address[] memory rewardContracts)
  {
    rewardContracts = new address[](rewardContractsPerToken[token].length());
    for (uint256 i = 0; i < rewardContracts.length; i++) {
      rewardContracts[i] = rewardContractsPerToken[token].at(i);
    }
  }

  /* ========== INTERNAL FUNCTIONS ========== */

  function _completeVesting(IERC20 token, uint256 totalVesting) internal {
    require(totalVesting != 0, '0 vesting amount');
    accountEscrowedBalance[msg.sender][token] = accountEscrowedBalance[msg.sender][token].sub(
      totalVesting
    );
    accountVestedBalance[msg.sender][token] = accountVestedBalance[msg.sender][token].add(
      totalVesting
    );

    if (token == IERC20(0)) {
      (bool success, ) = msg.sender.call{value: totalVesting}('');
      require(success, 'fail to transfer');
    } else {
      token.safeTransfer(msg.sender, totalVesting);
    }
    emit Vest(token, totalVesting);
  }

  /**
   * @dev implements linear vesting mechanism
   */
  function _getVestingQuantity(VestingSchedule memory schedule) internal view returns (uint256) {
    if (_blockNumber() >= uint256(schedule.endBlock)) {
      return uint256(schedule.quantity).sub(schedule.vestedQuantity);
    }
    if (_blockNumber() <= uint256(schedule.startBlock)) {
      return 0;
    }
    uint256 lockDuration = uint256(schedule.endBlock).sub(schedule.startBlock);
    uint256 passedDuration = _blockNumber() - uint256(schedule.startBlock);
    return passedDuration.mul(schedule.quantity).div(lockDuration).sub(schedule.vestedQuantity);
  }

  /**
   * @dev wrap block.number so we can easily mock it
   */
  function _blockNumber() internal virtual view returns (uint256) {
    return block.number;
  }

  /**
   * @dev Increase the max reward contract size
   */
  function updateMaxContractSize(uint256 _size) external onlyOwner {
      MAX_REWARD_CONTRACTS_SIZE = _size;
      emit UpdateMaxContractSize(_size);
  }
}

File 2 of 11: Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.2;

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

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

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

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

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

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

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

    function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

File 3 of 11: Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

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

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

File 4 of 11: EnumerableSet.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.0.0, only sets of type `address` (`AddressSet`) and `uint256`
 * (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;

        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping (bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) { // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            bytes32 lastvalue = set._values[lastIndex];

            // Move the last value to the index where the value to delete is
            set._values[toDeleteIndex] = lastvalue;
            // Update the index for the moved value
            set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        require(set._values.length > index, "EnumerableSet: index out of bounds");
        return set._values[index];
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint256(_at(set._inner, index)));
    }


    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }
}

File 5 of 11: IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

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

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

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

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

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

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

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

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

File 6 of 11: IRewardLocker.sol
// SPDX-License-Identifier: agpl-3.0
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;

import "./IERC20.sol";

interface IRewardLocker {
  struct VestingSchedule {
    uint64 startBlock;
    uint64 endBlock;
    uint128 quantity;
    uint128 vestedQuantity;
  }

  event VestingEntryCreated(
    IERC20 indexed token,
    address indexed beneficiary,
    uint256 startBlock,
    uint256 endBlock,
    uint256 quantity,
    uint256 index
  );

  event VestingEntryQueued(
    uint256 indexed index,
    IERC20 indexed token,
    address indexed beneficiary,
    uint256 quantity
  );

  event Vested(
    IERC20 indexed token,
    address indexed beneficiary,
    uint256 vestedQuantity,
    uint256 index
  );

  /**
   * @dev queue a vesting schedule starting from now
   */
  function lock(
    IERC20 token,
    address account,
    uint256 amount
  ) external payable;

  /**
   * @dev queue a vesting schedule
   */
  function lockWithStartBlock(
    IERC20 token,
    address account,
    uint256 quantity,
    uint256 startBlock
  ) external payable;

  /**
   * @dev vest all completed schedules for multiple tokens
   */
  function vestCompletedSchedulesForMultipleTokens(IERC20[] calldata tokens)
    external
    returns (uint256[] memory vestedAmounts);

  /**
   * @dev claim multiple tokens for specific vesting schedule,
   *      if schedule has not ended yet, claiming amounts are linear with vesting blocks
   */
  function vestScheduleForMultipleTokensAtIndices(
    IERC20[] calldata tokens,
    uint256[][] calldata indices
  )
    external
    returns (uint256[] memory vestedAmounts);

  /**
   * @dev for all completed schedule, claim token
   */
  function vestCompletedSchedules(IERC20 token) external returns (uint256);

  /**
   * @dev claim token for specific vesting schedule,
   * @dev if schedule has not ended yet, claiming amount is linear with vesting blocks
   */
  function vestScheduleAtIndices(IERC20 token, uint256[] calldata indexes)
    external
    returns (uint256);

  /**
   * @dev claim token for specific vesting schedule from startIndex to endIndex
   */
  function vestSchedulesInRange(
    IERC20 token,
    uint256 startIndex,
    uint256 endIndex
  ) external returns (uint256);

  /**
   * @dev length of vesting schedules array
   */
  function numVestingSchedules(address account, IERC20 token) external view returns (uint256);

  /**
   * @dev get detailed of each vesting schedule
   */
  function getVestingScheduleAtIndex(
    address account,
    IERC20 token,
    uint256 index
  ) external view returns (VestingSchedule memory);

  /**
   * @dev get vesting shedules array
   */
  function getVestingSchedules(address account, IERC20 token)
    external
    view
    returns (VestingSchedule[] memory schedules);
}

File 7 of 11: Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

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

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

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

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

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

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

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

File 8 of 11: ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor () internal {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 9 of 11: SafeCast.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;


/**
 * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow
 * checks.
 *
 * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can
 * easily result in undesired exploitation or bugs, since developers usually
 * assume that overflows raise errors. `SafeCast` restores this intuition by
 * reverting the transaction when such an operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 *
 * Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing
 * all math on `uint256` and `int256` and then downcasting.
 */
library SafeCast {

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Converts an unsigned uint256 into a signed int256.
     *
     * Requirements:
     *
     * - input must be less than or equal to maxInt256.
     */
    function toInt256(uint256 value) internal pure returns (int256) {
        require(value < 2**255, "SafeCast: value doesn't fit in an int256");
        return int256(value);
    }
}

File 10 of 11: SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

import "./IERC20.sol";
import "./SafeMath.sol";
import "./Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using SafeMath for uint256;
    using Address for address;

    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).add(value);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 11 of 11: SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"rewardContract","type":"address"},{"indexed":true,"internalType":"contract IERC20","name":"token","type":"address"},{"indexed":false,"internalType":"bool","name":"isAdded","type":"bool"}],"name":"RewardContractAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IERC20","name":"token","type":"address"},{"indexed":false,"internalType":"uint64","name":"vestingDuration","type":"uint64"}],"name":"SetVestingDuration","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"size","type":"uint256"}],"name":"UpdateMaxContractSize","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IERC20","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"totalVesting","type":"uint256"}],"name":"Vest","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IERC20","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":false,"internalType":"uint256","name":"vestedQuantity","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"index","type":"uint256"}],"name":"Vested","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IERC20","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":false,"internalType":"uint256","name":"startBlock","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"endBlock","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"index","type":"uint256"}],"name":"VestingEntryCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"index","type":"uint256"},{"indexed":true,"internalType":"contract IERC20","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"VestingEntryQueued","type":"event"},{"inputs":[],"name":"MAX_REWARD_CONTRACTS_SIZE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"contract IERC20","name":"","type":"address"}],"name":"accountEscrowedBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"contract IERC20","name":"","type":"address"}],"name":"accountVestedBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"_rewardContract","type":"address"}],"name":"addRewardsContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"getRewardContractsPerToken","outputs":[{"internalType":"address[]","name":"rewardContracts","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getVestingScheduleAtIndex","outputs":[{"components":[{"internalType":"uint64","name":"startBlock","type":"uint64"},{"internalType":"uint64","name":"endBlock","type":"uint64"},{"internalType":"uint128","name":"quantity","type":"uint128"},{"internalType":"uint128","name":"vestedQuantity","type":"uint128"}],"internalType":"struct IRewardLocker.VestingSchedule","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"getVestingSchedules","outputs":[{"components":[{"internalType":"uint64","name":"startBlock","type":"uint64"},{"internalType":"uint64","name":"endBlock","type":"uint64"},{"internalType":"uint128","name":"quantity","type":"uint128"},{"internalType":"uint128","name":"vestedQuantity","type":"uint128"}],"internalType":"struct IRewardLocker.VestingSchedule[]","name":"schedules","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"lock","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"startBlock","type":"uint256"}],"name":"lockWithStartBlock","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"numVestingSchedules","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"_rewardContract","type":"address"}],"name":"removeRewardsContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint64","name":"_vestingDuration","type":"uint64"}],"name":"setVestingDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_size","type":"uint256"}],"name":"updateMaxContractSize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"vestCompletedSchedules","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20[]","name":"tokens","type":"address[]"}],"name":"vestCompletedSchedulesForMultipleTokens","outputs":[{"internalType":"uint256[]","name":"vestedAmounts","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256[]","name":"indexes","type":"uint256[]"}],"name":"vestScheduleAtIndices","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20[]","name":"tokens","type":"address[]"},{"internalType":"uint256[][]","name":"indices","type":"uint256[][]"}],"name":"vestScheduleForMultipleTokensAtIndices","outputs":[{"internalType":"uint256[]","name":"vestedAmounts","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"startIndex","type":"uint256"},{"internalType":"uint256","name":"endIndex","type":"uint256"}],"name":"vestSchedulesInRange","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"name":"vestingDurationPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

6080604052606460025534801561001557600080fd5b506000610020610073565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35060018055610077565b3390565b6129e7806100866000396000f3fe6080604052600436106101355760003560e01c80638da5cb5b116100ab578063be13849b1161006f578063be13849b14610363578063c33fddf814610378578063cb1d086b14610398578063f2fde38b146103b8578063f793d77e146103d8578063fdfaaa05146103f857610135565b80638da5cb5b146102c15780639059aa6a146102e3578063a5d21e3114610303578063aaf5438514610316578063bbd8a3281461033657610135565b80634c9d00cc116100fd5780634c9d00cc1461020c5780634d4f3d931461022c578063679f7f77146102595780636e732b7014610279578063715018a6146102995780637750c9f0146102ae57610135565b80630a3b7e311461013a5780630f5636c314610170578063231797661461019d5780632f50bd72146101bf5780633b5bfa8b146101ec575b600080fd5b34801561014657600080fd5b5061015a610155366004611f78565b610418565b604051610167919061288e565b60405180910390f35b34801561017c57600080fd5b5061019061018b3660046120ea565b6104a0565b604051610167919061289c565b3480156101a957600080fd5b506101bd6101b83660046121ff565b6106af565b005b3480156101cb57600080fd5b506101df6101da366004611f40565b610724565b604051610167919061232e565b3480156101f857600080fd5b50610190610207366004611f40565b610852565b34801561021857600080fd5b506101bd61022736600461207f565b61086f565b34801561023857600080fd5b5061024c610247366004611ff7565b610932565b6040516101679190612370565b34801561026557600080fd5b50610190610274366004611f40565b610a42565b34801561028557600080fd5b50610190610294366004611f40565b610a6d565b3480156102a557600080fd5b506101bd610a8a565b6101bd6102bc366004612091565b610b09565b3480156102cd57600080fd5b506102d6610b4d565b6040516101679190612290565b3480156102ef57600080fd5b5061024c6102fe366004611fb8565b610b5c565b6101bd6103113660046120a5565b610bf6565b34801561032257600080fd5b50610190610331366004611f24565b610c75565b34801561034257600080fd5b50610356610351366004611f24565b610c87565b60405161016791906122e1565b34801561036f57600080fd5b50610190610d4d565b34801561038457600080fd5b50610190610393366004612193565b610d53565b3480156103a457600080fd5b506101bd6103b33660046121c7565b610dfe565b3480156103c457600080fd5b506101bd6103d3366004611f24565b610ebf565b3480156103e457600080fd5b506101bd6103f336600461207f565b610f75565b34801561040457600080fd5b50610190610413366004611f24565b61106d565b610420611eb5565b506001600160a01b03928316600090815260046020908152604080832094909516825292835283812091815260019182018352839020835160808101855281546001600160401b038082168352600160401b820416948201949094526001600160801b03600160801b909404841694810194909452015416606082015290565b3360009081526004602090815260408083206001600160a01b03861684529091528120805482805b855181101561069957828682815181106104de57fe5b60200260200101511061050c5760405162461bcd60e51b815260040161050390612428565b60405180910390fd5b610514611eb5565b84600101600088848151811061052657fe5b60209081029190910181015182528181019290925260409081016000908120825160808101845281546001600160401b038082168352600160401b820416958201959095526001600160801b03600160801b909504851693810193909352600101549092166060820152915061059b82611205565b9050806105a9575050610691565b60608201516105ca906105c5906001600160801b0316836112f4565b611320565b8660010160008a86815181106105dc57fe5b6020026020010151815260200190815260200160002060010160006101000a8154816001600160801b0302191690836001600160801b0316021790555061062c81856112f490919063ffffffff16565b9350336001600160a01b0316896001600160a01b03167f6d06f0a463d80b43fe6cd0b79c61bb2790cfe898790e69828f25e6e12886e178838b878151811061067057fe5b60200260200101516040516106869291906128a5565b60405180910390a350505b6001016104c8565b506106a48682611349565b925050505b92915050565b6106b76114d6565b6000546001600160a01b039081169116146106e45760405162461bcd60e51b815260040161050390612748565b60028190556040517f8bdf9f5fcc8fec86d3107d9475d243a2d0259d5d7d58ace9671d049b53827efd9061071990839061289c565b60405180910390a150565b6001600160a01b03808316600090815260046020908152604080832093851683529290522054606090806001600160401b038111801561076357600080fd5b5060405190808252806020026020018201604052801561079d57816020015b61078a611eb5565b8152602001906001900390816107825790505b50915060005b8181101561084a576001600160a01b03808616600090815260046020908152604080832093881683529281528282208483526001908101825291839020835160808101855281546001600160401b038082168352600160401b820416938201939093526001600160801b03600160801b90930483169481019490945290910154166060820152835184908390811061083757fe5b60209081029190910101526001016107a3565b505092915050565b600660209081526000928352604080842090915290825290205481565b6108776114d6565b6000546001600160a01b039081169116146108a45760405162461bcd60e51b815260040161050390612748565b6001600160a01b03821660009081526003602052604090206108c690826114da565b6108e25760405162461bcd60e51b815260040161050390612536565b816001600160a01b0316816001600160a01b03167f88a8c998079a07d6a1e59a32ce0c359a00e4c94ce7a6068350a9574e7e0f993d600060405161092691906123a8565b60405180910390a35050565b60608382146109535760405162461bcd60e51b815260040161050390612666565b836001600160401b038111801561096957600080fd5b50604051908082528060200260200182016040528015610993578160200160208202803683370190505b50905060005b84811015610a3957610a1a8686838181106109b057fe5b90506020020160208101906109c59190611f24565b8585848181106109d157fe5b90506020028101906109e391906128e2565b808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506104a092505050565b828281518110610a2657fe5b6020908102919091010152600101610999565b50949350505050565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205490565b600560209081526000928352604080842090915290825290205481565b610a926114d6565b6000546001600160a01b03908116911614610abf5760405162461bcd60e51b815260040161050390612748565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60026001541415610b2c5760405162461bcd60e51b815260040161050390612857565b6002600155610b44838383610b3f6114ef565b6114f3565b50506001805550565b6000546001600160a01b031690565b6060816001600160401b0381118015610b7457600080fd5b50604051908082528060200260200182016040528015610b9e578160200160208202803683370190505b50905060005b82811015610bef57610bd0848483818110610bbb57fe5b90506020020160208101906104139190611f24565b828281518110610bdc57fe5b6020908102919091010152600101610ba4565b5092915050565b6001600160a01b03841660009081526003602052604090208490610c1a9033611998565b610c365760405162461bcd60e51b815260040161050390612638565b60026001541415610c595760405162461bcd60e51b815260040161050390612857565b6002600155610c6a858585856114f3565b505060018055505050565b60076020526000908152604090205481565b6001600160a01b0381166000908152600360205260409020606090610cab906119ad565b6001600160401b0381118015610cc057600080fd5b50604051908082528060200260200182016040528015610cea578160200160208202803683370190505b50905060005b8151811015610d47576001600160a01b0383166000908152600360205260409020610d1b90826119b8565b828281518110610d2757fe5b6001600160a01b0390921660209283029190910190910152600101610cf0565b50919050565b60025481565b600081831115610d755760405162461bcd60e51b8152600401610503906125df565b60608383036001016001600160401b0381118015610d9257600080fd5b50604051908082528060200260200182016040528015610dbc578160200160208202803683370190505b509050835b838111610dea57808286830381518110610dd757fe5b6020908102919091010152600101610dc1565b50610df585826104a0565b95945050505050565b610e066114d6565b6000546001600160a01b03908116911614610e335760405162461bcd60e51b815260040161050390612748565b62dbba00816001600160401b03161115610e5f5760405162461bcd60e51b81526004016105039061277d565b6001600160a01b038216600081815260076020526040908190206001600160401b0384169055517f8604b95f1c6f11de3cf58583f6524c5b1aaa150f2391ec1544bb059d7517723690610eb39084906128ce565b60405180910390a25050565b610ec76114d6565b6000546001600160a01b03908116911614610ef45760405162461bcd60e51b815260040161050390612748565b6001600160a01b038116610f1a5760405162461bcd60e51b815260040161050390612458565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b610f7d6114d6565b6000546001600160a01b03908116911614610faa5760405162461bcd60e51b815260040161050390612748565b6002546001600160a01b0383166000908152600360205260409020610fce906119ad565b10610feb5760405162461bcd60e51b8152600401610503906127d6565b6001600160a01b038216600090815260036020526040902061100d90826119c4565b6110295760405162461bcd60e51b8152600401610503906124c8565b816001600160a01b0316816001600160a01b03167f88a8c998079a07d6a1e59a32ce0c359a00e4c94ce7a6068350a9574e7e0f993d600160405161092691906123a8565b3360009081526004602090815260408083206001600160a01b03851684529091528120805482805b828110156111f0576110a5611eb5565b50600081815260018086016020908152604092839020835160808101855281546001600160401b038082168352600160401b8204169382018490526001600160801b03600160801b90910481169582019590955292015490921660608201529061110d6114ef565b101561111957506111e8565b600061114882606001516001600160801b031683604001516001600160801b03166119d990919063ffffffff16565b9050806111565750506111e8565b6040828101516000858152600189810160205292902090910180546001600160801b0319166001600160801b0390921691909117905561119684826112f4565b9350336001600160a01b0316886001600160a01b03167f6d06f0a463d80b43fe6cd0b79c61bb2790cfe898790e69828f25e6e12886e17883866040516111dd9291906128a5565b60405180910390a350505b600101611095565b506111fb8582611349565b925050505b919050565b600081602001516001600160401b031661121d6114ef565b106112565761124f82606001516001600160801b031683604001516001600160801b03166119d990919063ffffffff16565b9050611200565b81516001600160401b03166112696114ef565b1161127657506000611200565b81516020830151600091611296916001600160401b0390811691166119d9565b9050600083600001516001600160401b03166112b06114ef565b0390506111fb84606001516001600160801b03166112ee846112e888604001516001600160801b031686611a1b90919063ffffffff16565b90611a55565b906119d9565b6000828201838110156113195760405162461bcd60e51b8152600401610503906124ff565b9392505050565b6000600160801b82106113455760405162461bcd60e51b815260040161050390612598565b5090565b806113665760405162461bcd60e51b81526004016105039061260e565b3360009081526005602090815260408083206001600160a01b038616845290915290205461139490826119d9565b3360008181526005602090815260408083206001600160a01b0388168085529083528184209590955592825260068152828220938252929092529020546113db90826112f4565b3360009081526006602090815260408083206001600160a01b038716808552925290912091909155611489576000336001600160a01b0316826040516114209061228d565b60006040518083038185875af1925050503d806000811461145d576040519150601f19603f3d011682016040523d82523d6000602084013e611462565b606091505b50509050806114835760405162461bcd60e51b81526004016105039061249e565b5061149d565b61149d6001600160a01b0383163383611a97565b816001600160a01b03167fd4a50953e9ae2104f507446be8391c79b33e1e86e626473e34bb79eb5fea1f3e82604051610eb3919061289c565b3390565b6000611319836001600160a01b038416611af2565b4390565b6001600160a01b038416600090815260036020526040902084906115179033611998565b6115335760405162461bcd60e51b815260040161050390612638565b600083116115535760405162461bcd60e51b81526004016105039061269d565b6001600160a01b038516611585578234146115805760405162461bcd60e51b81526004016105039061256d565b6116ab565b6040516370a0823160e01b81526000906001600160a01b038716906370a08231906115b4903090600401612290565b60206040518083038186803b1580156115cc57600080fd5b505afa1580156115e0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116049190612217565b905061161b6001600160a01b038716333087611bb8565b6040516370a0823160e01b81526000906001600160a01b038816906370a082319061164a903090600401612290565b60206040518083038186803b15801561166257600080fd5b505afa158015611676573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061169a9190612217565b90506116a681836119d9565b945050505b6001600160a01b038085166000908152600460209081526040808320938916835292815282822080546007909252928220549091906116eb9086906112f4565b905081156118145760001982016000908152600184016020526040902080546001600160401b03168614801561173157508054600160401b90046001600160401b031682145b15611812578054611756906105c590600160801b90046001600160801b0316896112f4565b81546001600160801b03918216600160801b0291161781556001600160a01b038089166000908152600560209081526040808320938d168352929052205461179e90886112f4565b6001600160a01b03808a166000818152600560209081526040808320948f1680845294909152908190209390935591516000198601907fa6fd3a57929c9152d86fa5f83c8478f1af480353a0aef0cacc3240d63b57076790611801908c9061289c565b60405180910390a450505050611991565b505b604051806080016040528061182887611bdf565b6001600160401b0316815260200161183f83611bdf565b6001600160401b0316815260200161185688611320565b6001600160801b039081168252600060209283018190528581526001808801845260408083208651815488880151898501518816600160801b026001600160401b03918216600160401b026fffffffffffffffff0000000000000000199290941667ffffffffffffffff1990931692909217169190911786161781556060909601519582018054969094166001600160801b0319969096169590951790925590850186556001600160a01b03808b16825260058352838220908c168252909152205461192290876112f4565b6001600160a01b038089166000818152600560209081526040808320948e1680845294909152908190209390935591517ffb1fd0fee690638acf30008a00d7fc669e970dd6fa8912488ee11171986edabb9061198590899086908c9089906128b3565b60405180910390a35050505b5050505050565b6000611319836001600160a01b038416611c04565b60006106a982611c1c565b60006113198383611c20565b6000611319836001600160a01b038416611c65565b600061131983836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611caf565b600082611a2a575060006106a9565b82820282848281611a3757fe5b04146113195760405162461bcd60e51b8152600401610503906126c1565b600061131983836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611cdb565b611aed8363a9059cbb60e01b8484604051602401611ab69291906122c8565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611d12565b505050565b60008181526001830160205260408120548015611bae5783546000198083019190810190600090879083908110611b2557fe5b9060005260206000200154905080876000018481548110611b4257fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080611b7257fe5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506106a9565b60009150506106a9565b611bd9846323b872dd60e01b858585604051602401611ab6939291906122a4565b50505050565b6000600160401b82106113455760405162461bcd60e51b815260040161050390612702565b60009081526001919091016020526040902054151590565b5490565b81546000908210611c435760405162461bcd60e51b8152600401610503906123e6565b826000018281548110611c5257fe5b9060005260206000200154905092915050565b6000611c718383611c04565b611ca7575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556106a9565b5060006106a9565b60008184841115611cd35760405162461bcd60e51b815260040161050391906123b3565b505050900390565b60008183611cfc5760405162461bcd60e51b815260040161050391906123b3565b506000838581611d0857fe5b0495945050505050565b6060611d67826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611da19092919063ffffffff16565b805190915015611aed5780806020019051810190611d85919061205f565b611aed5760405162461bcd60e51b81526004016105039061280d565b6060611db08484600085611db8565b949350505050565b6060611dc385611e7c565b611ddf5760405162461bcd60e51b81526004016105039061279f565b60006060866001600160a01b03168587604051611dfc9190612271565b60006040518083038185875af1925050503d8060008114611e39576040519150601f19603f3d011682016040523d82523d6000602084013e611e3e565b606091505b50915091508115611e52579150611db09050565b805115611e625780518082602001fd5b8360405162461bcd60e51b815260040161050391906123b3565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906111fb575050151592915050565b60408051608081018252600080825260208201819052918101829052606081019190915290565b60008083601f840112611eed578182fd5b5081356001600160401b03811115611f03578182fd5b6020830191508360208083028501011115611f1d57600080fd5b9250929050565b600060208284031215611f35578081fd5b813561131981612999565b60008060408385031215611f52578081fd5b8235611f5d81612999565b91506020830135611f6d81612999565b809150509250929050565b600080600060608486031215611f8c578081fd5b8335611f9781612999565b92506020840135611fa781612999565b929592945050506040919091013590565b60008060208385031215611fca578182fd5b82356001600160401b03811115611fdf578283fd5b611feb85828601611edc565b90969095509350505050565b6000806000806040858703121561200c578081fd5b84356001600160401b0380821115612022578283fd5b61202e88838901611edc565b90965094506020870135915080821115612046578283fd5b5061205387828801611edc565b95989497509550505050565b600060208284031215612070578081fd5b81518015158114611319578182fd5b60008060408385031215611f52578182fd5b600080600060608486031215611f8c578283fd5b600080600080608085870312156120ba578384fd5b84356120c581612999565b935060208501356120d581612999565b93969395505050506040820135916060013590565b600080604083850312156120fc578182fd5b823561210781612999565b91506020838101356001600160401b03811115612122578283fd5b8401601f81018613612132578283fd5b80356121456121408261294e565b612928565b81815283810190838501858402850186018a1015612161578687fd5b8694505b83851015612183578035835260019490940193918501918501612165565b5080955050505050509250929050565b6000806000606084860312156121a7578283fd5b83356121b281612999565b95602085013595506040909401359392505050565b600080604083850312156121d9578182fd5b82356121e481612999565b915060208301356001600160401b0381168114611f6d578182fd5b600060208284031215612210578081fd5b5035919050565b600060208284031215612228578081fd5b5051919050565b6001600160401b038082511683528060208301511660208401525060408101516001600160801b03808216604085015280606084015116606085015250505050565b6000825161228381846020870161296d565b9190910192915050565b90565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03929092168252602082015260400190565b6020808252825182820181905260009190848201906040850190845b818110156123225783516001600160a01b0316835292840192918401916001016122fd565b50909695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156123225761235d83855161222f565b928401926080929092019160010161234a565b6020808252825182820181905260009190848201906040850190845b818110156123225783518352928401929184019160010161238c565b901515815260200190565b60006020825282518060208401526123d281604085016020870161296d565b601f01601f19169190910160400192915050565b60208082526022908201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e604082015261647360f01b606082015260800190565b6020808252601690820152750d2dcecc2d8d2c840e6c6d0cac8ead8ca40d2dcc8caf60531b604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526010908201526f3330b4b6103a37903a3930b739b332b960811b604082015260600190565b60208082526018908201527f5f726577617264436f6e74726163742069732061646465640000000000000000604082015260600190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252601a908201527f5f726577617264436f6e74726163742069732072656d6f766564000000000000604082015260600190565b602080825260119082015270496e76616c6964206d73672e76616c756560781b604082015260600190565b60208082526027908201527f53616665436173743a2076616c756520646f65736e27742066697420696e20316040820152663238206269747360c81b606082015260800190565b6020808252601590820152740e6e8c2e4e892dcc8caf0407c40cadcc892dcc8caf605b1b604082015260600190565b60208082526010908201526f0c081d995cdd1a5b99c8185b5bdd5b9d60821b604082015260600190565b6020808252601490820152731bdb9b1e481c995dd85c990818dbdb9d1c9858dd60621b604082015260600190565b6020808252601f908201527f746f6b656e732e6c656e67746820213d20696e64696365732e6c656e67746800604082015260600190565b6020808252600a908201526930207175616e7469747960b01b604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b60208082526026908201527f53616665436173743a2076616c756520646f65736e27742066697420696e203660408201526534206269747360d01b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b602080825260089082015267042deeccae4dac2f60c31b604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252601b908201527f726577617264436f6e74726163747320697320746f6f206c6f6e670000000000604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b608081016106a9828461222f565b90815260200190565b918252602082015260400190565b93845260208401929092526040830152606082015260800190565b6001600160401b0391909116815260200190565b6000808335601e198436030181126128f8578283fd5b8301803591506001600160401b03821115612911578283fd5b6020908101925081023603821315611f1d57600080fd5b6040518181016001600160401b038111828210171561294657600080fd5b604052919050565b60006001600160401b03821115612963578081fd5b5060209081020190565b60005b83811015612988578181015183820152602001612970565b83811115611bd95750506000910152565b6001600160a01b03811681146129ae57600080fd5b5056fea2646970667358221220afe463898f83083b95ce10f27c965381419c300b37f3ad93c8cdb0900b33432764736f6c634300060c0033

Deployed ByteCode Sourcemap

265:11455:7:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9011:222;;;;;;;;;;-1:-1:-1;9011:222:7;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;7273:919;;;;;;;;;;-1:-1:-1;7273:919:7;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;11566:152::-;;;;;;;;;;-1:-1:-1;11566:152:7;;;;;:::i;:::-;;:::i;:::-;;9293:413;;;;;;;;;;-1:-1:-1;9293:413:7;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;1206:74::-;;;;;;;;;;-1:-1:-1;1206:74:7;;;;;:::i;:::-;;:::i;2397:255::-;;;;;;;;;;-1:-1:-1;2397:255:7;;;;;:::i;:::-;;:::i;3680:438::-;;;;;;;;;;-1:-1:-1;3680:438:7;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;8763:183::-;;;;;;;;;;-1:-1:-1;8763:183:7;;;;;:::i;:::-;;:::i;1071:76::-;;;;;;;;;;-1:-1:-1;1071:76:7;;;;;:::i;:::-;;:::i;1737:148:5:-;;;;;;;;;;;;;:::i;2928:190:7:-;;;;;;:::i;:::-;;:::i;1095:79:5:-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;3193:319:7:-;;;;;;;;;;-1:-1:-1;3193:319:7;;;;;:::i;:::-;;:::i;4122:251::-;;;;;;:::i;:::-;;:::i;1329:57::-;;;;;;;;;;-1:-1:-1;1329:57:7;;;;;:::i;:::-;;:::i;9710:334::-;;;;;;;;;;-1:-1:-1;9710:334:7;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;577:46::-;;;;;;;;;;;;;:::i;8196:438::-;;;;;;;;;;-1:-1:-1;8196:438:7;;;;;:::i;:::-;;:::i;2656:268::-;;;;;;;;;;-1:-1:-1;2656:268:7;;;;;:::i;:::-;;:::i;2040:244:5:-;;;;;;;;;;-1:-1:-1;2040:244:5;;;;;:::i;:::-;;:::i;1953:377:7:-;;;;;;;;;;-1:-1:-1;1953:377:7;;;;;:::i;:::-;;:::i;6379:821::-;;;;;;;;;;-1:-1:-1;6379:821:7;;;;;:::i;:::-;;:::i;9011:222::-;9140:22;;:::i;:::-;-1:-1:-1;;;;;;9177:32:7;;;;;;;:23;:32;;;;;;;;:39;;;;;;;;;;;;:51;;;:44;;;;:51;;;;;9170:58;;;;;;;;;-1:-1:-1;;;;;9170:58:7;;;;;-1:-1:-1;;;9170:58:7;;;;;;;;;;-1:-1:-1;;;;;;;;9170:58:7;;;;;;;;;;;;;;;;;;;;9011:222::o;7273:919::-;7459:10;7381:7;7435:35;;;:23;:35;;;;;;;;-1:-1:-1;;;;;7435:42:7;;;;;;;;;7509:16;;7381:7;;7561:559;7585:7;:14;7581:1;:18;7561:559;;;7635:15;7622:7;7630:1;7622:10;;;;;;;;;;;;;;:28;7614:63;;;;-1:-1:-1;;;7614:63:7;;;;;;;:::i;:::-;;;;;;;;;7685:31;;:::i;:::-;7719:9;:14;;:26;7734:7;7742:1;7734:10;;;;;;;;;;;;;;;;;;;7719:26;;;;;;;;;;;;;-1:-1:-1;7719:26:7;;;7685:60;;;;;;;;;-1:-1:-1;;;;;7685:60:7;;;;;-1:-1:-1;;;7685:60:7;;;;;;;;;;-1:-1:-1;;;;;;;;7685:60:7;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;7776:29:7;7685:60;7776:19;:29::i;:::-;7753:52;-1:-1:-1;7817:17:7;7813:50;;7846:8;;;;7813:50;7922:23;;;;7914:80;;:59;;-1:-1:-1;;;;;7914:32:7;7960:12;7914:45;:59::i;:::-;:78;:80::i;:::-;7870:9;:14;;:26;7885:7;7893:1;7885:10;;;;;;;;;;;;;;7870:26;;;;;;;;;;;:41;;;:124;;;;;-1:-1:-1;;;;;7870:124:7;;;;;-1:-1:-1;;;;;7870:124:7;;;;;;8018:30;8035:12;8018;:16;;:30;;;;:::i;:::-;8003:45;;8076:10;-1:-1:-1;;;;;8062:51:7;8069:5;-1:-1:-1;;;;;8062:51:7;;8088:12;8102:7;8110:1;8102:10;;;;;;;;;;;;;;8062:51;;;;;;;:::i;:::-;;;;;;;;7561:559;;;7601:3;;7561:559;;;;8125:37;8142:5;8149:12;8125:16;:37::i;:::-;8175:12;-1:-1:-1;;;7273:919:7;;;;;:::o;11566:152::-;1317:12:5;:10;:12::i;:::-;1307:6;;-1:-1:-1;;;;;1307:6:5;;;:22;;;1299:67;;;;-1:-1:-1;;;1299:67:5;;;;;;;:::i;:::-;11639:25:7::1;:33:::0;;;11685:28:::1;::::0;::::1;::::0;::::1;::::0;11667:5;;11685:28:::1;:::i;:::-;;;;;;;;11566:152:::0;:::o;9293:413::-;-1:-1:-1;;;;;9471:32:7;;;9445:23;9471:32;;;:23;:32;;;;;;;;:39;;;;;;;;;:46;9401:34;;9471:46;-1:-1:-1;;;;;9535:38:7;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;9523:50;;9584:9;9579:123;9603:15;9599:1;:19;9579:123;;;-1:-1:-1;;;;;9648:32:7;;;;;;;:23;:32;;;;;;;;:39;;;;;;;;;;;:47;;;:44;;;;:47;;;;;;9633:62;;;;;;;;;-1:-1:-1;;;;;9633:62:7;;;;;-1:-1:-1;;;9633:62:7;;;;;;;;;;-1:-1:-1;;;;;;;;9633:62:7;;;;;;;;;;;;;;;;;;;;;:12;;:9;;9693:1;;9633:12;;;;;;;;;;;;;;;:62;9620:3;;9579:123;;;;9293:413;;;;;:::o;1206:74::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;2397:255::-;1317:12:5;:10;:12::i;:::-;1307:6;;-1:-1:-1;;;;;1307:6:5;;;:22;;;1299:67;;;;-1:-1:-1;;;1299:67:5;;;;;;;:::i;:::-;-1:-1:-1;;;;;2500:30:7;::::1;;::::0;;;:23:::1;:30;::::0;;;;:54:::1;::::0;2538:15;2500:37:::1;:54::i;:::-;2492:93;;;;-1:-1:-1::0;;;2492:93:7::1;;;;;;;:::i;:::-;2634:5;-1:-1:-1::0;;;;;2597:50:7::1;2617:15;-1:-1:-1::0;;;;;2597:50:7::1;;2641:5;2597:50;;;;;;:::i;:::-;;;;;;;;2397:255:::0;;:::o;3680:438::-;3823:30;3869:31;;;3861:75;;;;-1:-1:-1;;;3861:75:7;;;;;;;:::i;:::-;3972:6;-1:-1:-1;;;;;3958:28:7;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3958:28:7;;3942:44;;3997:9;3992:122;4012:17;;;3992:122;;;4063:44;4085:6;;4092:1;4085:9;;;;;;;;;;;;;;;;;;;;:::i;:::-;4096:7;;4104:1;4096:10;;;;;;;;;;;;;;;;;;:::i;:::-;4063:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4063:21:7;;-1:-1:-1;;;4063:44:7:i;:::-;4044:13;4058:1;4044:16;;;;;;;;;;;;;;;;;:63;4031:3;;3992:122;;;;3680:438;;;;;;:::o;8763:183::-;-1:-1:-1;;;;;8895:32:7;;;8871:7;8895:32;;;:23;:32;;;;;;;;:39;;;;;;;;;;;:46;;8763:183::o;1071:76::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;1737:148:5:-;1317:12;:10;:12::i;:::-;1307:6;;-1:-1:-1;;;;;1307:6:5;;;:22;;;1299:67;;;;-1:-1:-1;;;1299:67:5;;;;;;;:::i;:::-;1844:1:::1;1828:6:::0;;1807:40:::1;::::0;-1:-1:-1;;;;;1828:6:5;;::::1;::::0;1807:40:::1;::::0;1844:1;;1807:40:::1;1875:1;1858:19:::0;;-1:-1:-1;;;;;;1858:19:5::1;::::0;;1737:148::o;2928:190:7:-;1704:1:6;2310:7;;:19;;2302:63;;;;-1:-1:-1;;;2302:63:6;;;;;;;:::i;:::-;1704:1;2443:7;:18;3052:61:7::1;3072:5:::0;3079:7;3088:8;3098:14:::1;:12;:14::i;:::-;3052:19;:61::i;:::-;-1:-1:-1::0;;1660:1:6;2622:22;;-1:-1:-1;2928:190:7:o;1095:79:5:-;1133:7;1160:6;-1:-1:-1;;;;;1160:6:5;1095:79;:::o;3193:319:7:-;3307:30;3377:6;-1:-1:-1;;;;;3363:28:7;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3363:28:7;;3347:44;;3402:9;3397:111;3417:17;;;3397:111;;;3468:33;3491:6;;3498:1;3491:9;;;;;;;;;;;;;;;;;;;;:::i;3468:33::-;3449:13;3463:1;3449:16;;;;;;;;;;;;;;;;;:52;3436:3;;3397:111;;;;3193:319;;;;:::o;4122:251::-;-1:-1:-1;;;;;1801:30:7;;;;;;:23;:30;;;;;4285:5;;1801:51;;1841:10;1801:39;:51::i;:::-;1793:84;;;;-1:-1:-1;;;1793:84:7;;;;;;;:::i;:::-;1704:1:6::1;2310:7;;:19;;2302:63;;;;-1:-1:-1::0;;;2302:63:6::1;;;;;;;:::i;:::-;1704:1;2443:7;:18:::0;4311:57:7::2;4331:5:::0;4338:7;4347:8;4357:10;4311:19:::2;:57::i;:::-;-1:-1:-1::0;;1660:1:6::1;2622:22:::0;;-1:-1:-1;;;4122:251:7:o;1329:57::-;;;;;;;;;;;;;:::o;9710:334::-;-1:-1:-1;;;;;9869:30:7;;;;;;:23;:30;;;;;9795:32;;9869:39;;:37;:39::i;:::-;-1:-1:-1;;;;;9855:54:7;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;9855:54:7;;9837:72;;9920:9;9915:125;9939:15;:22;9935:1;:26;9915:125;;;-1:-1:-1;;;;;9997:30:7;;;;;;:23;:30;;;;;:36;;10031:1;9997:33;:36::i;:::-;9976:15;9992:1;9976:18;;;;;;;;-1:-1:-1;;;;;9976:57:7;;;:18;;;;;;;;;;;:57;9963:3;;9915:125;;;;9710:334;;;:::o;577:46::-;;;;:::o;8196:438::-;8319:7;8356:8;8342:10;:22;;8334:56;;;;-1:-1:-1;;;8334:56:7;;;;;;;:::i;:::-;8396:24;8448:10;8437:8;:21;8461:1;8437:25;-1:-1:-1;;;;;8423:40:7;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;8423:40:7;-1:-1:-1;8396:67:7;-1:-1:-1;8490:10:7;8469:111;8511:8;8502:5;:17;8469:111;;8568:5;8538:7;8554:10;8546:5;:18;8538:27;;;;;;;;;;;;;;;;;:35;8521:7;;8469:111;;;;8592:37;8614:5;8621:7;8592:21;:37::i;:::-;8585:44;8196:438;-1:-1:-1;;;;;8196:438:7:o;2656:268::-;1317:12:5;:10;:12::i;:::-;1307:6;;-1:-1:-1;;;;;1307:6:5;;;:22;;;1299:67;;;;-1:-1:-1;;;1299:67:5;;;;;;;:::i;:::-;667:8:7::1;2756:16;-1:-1:-1::0;;;;;2756:40:7::1;;;2748:61;;;;-1:-1:-1::0;;;2748:61:7::1;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;2815:30:7;::::1;;::::0;;;:23:::1;:30;::::0;;;;;;-1:-1:-1;;;;;2815:49:7;::::1;::::0;;2876:43;::::1;::::0;::::1;::::0;2848:16;;2876:43:::1;:::i;:::-;;;;;;;;2656:268:::0;;:::o;2040:244:5:-;1317:12;:10;:12::i;:::-;1307:6;;-1:-1:-1;;;;;1307:6:5;;;:22;;;1299:67;;;;-1:-1:-1;;;1299:67:5;;;;;;;:::i;:::-;-1:-1:-1;;;;;2129:22:5;::::1;2121:73;;;;-1:-1:-1::0;;;2121:73:5::1;;;;;;;:::i;:::-;2231:6;::::0;;2210:38:::1;::::0;-1:-1:-1;;;;;2210:38:5;;::::1;::::0;2231:6;::::1;::::0;2210:38:::1;::::0;::::1;2259:6;:17:::0;;-1:-1:-1;;;;;;2259:17:5::1;-1:-1:-1::0;;;;;2259:17:5;;;::::1;::::0;;;::::1;::::0;;2040:244::o;1953:377:7:-;1317:12:5;:10;:12::i;:::-;1307:6;;-1:-1:-1;;;;;1307:6:5;;;:22;;;1299:67;;;;-1:-1:-1;;;1299:67:5;;;;;;;:::i;:::-;2102:25:7::1;::::0;-1:-1:-1;;;;;2060:30:7;::::1;;::::0;;;:23:::1;:30;::::0;;;;:39:::1;::::0;:37:::1;:39::i;:::-;:67;2045:125;;;;-1:-1:-1::0;;;2045:125:7::1;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;2184:30:7;::::1;;::::0;;;:23:::1;:30;::::0;;;;:51:::1;::::0;2219:15;2184:34:::1;:51::i;:::-;2176:88;;;;-1:-1:-1::0;;;2176:88:7::1;;;;;;;:::i;:::-;2313:5;-1:-1:-1::0;;;;;2276:49:7::1;2296:15;-1:-1:-1::0;;;;;2276:49:7::1;;2320:4;2276:49;;;;;;:::i;6379:821::-:0;6526:10;6450:7;6502:35;;;:23;:35;;;;;;;;-1:-1:-1;;;;;6502:42:7;;;;;;;;;6576:16;;6450:7;;6629:498;6653:15;6649:1;:19;6629:498;;;6683:31;;:::i;:::-;-1:-1:-1;6717:17:7;;;;:14;;;;:17;;;;;;;;;6683:51;;;;;;;;;-1:-1:-1;;;;;6683:51:7;;;;;-1:-1:-1;;;6683:51:7;;;;;;;;;-1:-1:-1;;;;;;;;6683:51:7;;;;;;;;;;;;;;;;;;;;;;;6746:14;:12;:14::i;:::-;:34;6742:67;;;6792:8;;;6742:67;6816:20;6839:55;6870:8;:23;;;-1:-1:-1;;;;;6839:55:7;6847:8;:17;;;-1:-1:-1;;;;;6839:26:7;:30;;:55;;;;:::i;:::-;6816:78;-1:-1:-1;6906:17:7;6902:50;;6935:8;;;;6902:50;6994:17;;;;;6959;;;;:14;;;;:17;;;;;:32;;;:52;;-1:-1:-1;;;;;;6959:52:7;-1:-1:-1;;;;;6959:52:7;;;;;;;;;7034:30;:12;7051;7034:16;:30::i;:::-;7019:45;;7092:10;-1:-1:-1;;;;;7078:42:7;7085:5;-1:-1:-1;;;;;7078:42:7;;7104:12;7118:1;7078:42;;;;;;;:::i;:::-;;;;;;;;6629:498;;;6670:3;;6629:498;;;;7132:37;7149:5;7156:12;7132:16;:37::i;:::-;7183:12;-1:-1:-1;;;6379:821:7;;;;:::o;10775:564::-;10860:7;10905:8;:17;;;-1:-1:-1;;;;;10897:26:7;10879:14;:12;:14::i;:::-;:44;10875:127;;10940:55;10971:8;:23;;;-1:-1:-1;;;;;10940:55:7;10948:8;:17;;;-1:-1:-1;;;;;10940:26:7;:30;;:55;;;;:::i;:::-;10933:62;;;;10875:127;11037:19;;-1:-1:-1;;;;;11029:28:7;11011:14;:12;:14::i;:::-;:46;11007:75;;-1:-1:-1;11074:1:7;11067:8;;11007:75;11141:19;;11118:17;;;;11087:20;;11110:51;;-1:-1:-1;;;;;11110:26:7;;;;:51;:30;:51::i;:::-;11087:74;;11167:22;11217:8;:19;;;-1:-1:-1;;;;;11209:28:7;11192:14;:12;:14::i;:::-;:45;11167:70;;11250:84;11310:8;:23;;;-1:-1:-1;;;;;11250:84:7;:55;11292:12;11250:37;11269:8;:17;;;-1:-1:-1;;;;;11250:37:7;:14;:18;;:37;;;;:::i;:::-;:41;;:55::i;:::-;:59;;:84::i;902:181:10:-;960:7;992:5;;;1016:6;;;;1008:46;;;;-1:-1:-1;;;1008:46:10;;;;;;;:::i;:::-;1074:1;902:181;-1:-1:-1;;;902:181:10:o;1110:184:8:-;1167:7;-1:-1:-1;;;1195:5:8;:14;1187:67;;;;-1:-1:-1;;;1187:67:8;;;;;;;:::i;:::-;-1:-1:-1;1280:5:8;1110:184::o;10098:615:7:-;10183:17;10175:46;;;;-1:-1:-1;;;10175:46:7;;;;;;;:::i;:::-;10294:10;10271:34;;;;:22;:34;;;;;;;;-1:-1:-1;;;;;10271:41:7;;;;;;;;;;:71;;10324:12;10271:45;:71::i;:::-;10250:10;10227:34;;;;:22;:34;;;;;;;;-1:-1:-1;;;;;10227:41:7;;;;;;;;;;;:115;;;;10390:32;;;:20;:32;;;;;:39;;;;;;;;;;:69;;10441:12;10390:43;:69::i;:::-;10369:10;10348:32;;;;:20;:32;;;;;;;;-1:-1:-1;;;;;10348:39:7;;;;;;;;;;:111;;;;10466:207;;10499:12;10517:10;-1:-1:-1;;;;;10517:15:7;10540:12;10517:40;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10498:59;;;10573:7;10565:36;;;;-1:-1:-1;;;10565:36:7;;;;;;;:::i;:::-;10466:207;;;;10622:44;-1:-1:-1;;;;;10622:18:7;;10641:10;10653:12;10622:18;:44::i;:::-;10688:5;-1:-1:-1;;;;;10683:25:7;;10695:12;10683:25;;;;;;:::i;605:106:1:-;693:10;605:106;:::o;5329:149:2:-;5402:4;5426:44;5434:3;-1:-1:-1;;;;;5454:14:2;;5426:7;:44::i;11408:94:7:-;11485:12;11408:94;:::o;4379:1932::-;-1:-1:-1;;;;;1801:30:7;;;;;;:23;:30;;;;;4526:5;;1801:51;;1841:10;1801:39;:51::i;:::-;1793:84;;;;-1:-1:-1;;;1793:84:7;;;;;;;:::i;:::-;4558:1:::1;4547:8;:12;4539:35;;;;-1:-1:-1::0;;;4539:35:7::1;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;4585:18:7;::::1;4581:405;;4634:8;4621:9;:21;4613:51;;;;-1:-1:-1::0;;;4613:51:7::1;;;;;;;:::i;:::-;4581:405;;;4771:30;::::0;-1:-1:-1;;;4771:30:7;;4747:21:::1;::::0;-1:-1:-1;;;;;4771:15:7;::::1;::::0;::::1;::::0;:30:::1;::::0;4795:4:::1;::::0;4771:30:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;4747:54:::0;-1:-1:-1;4809:59:7::1;-1:-1:-1::0;;;;;4809:22:7;::::1;4832:10;4852:4;4859:8:::0;4809:22:::1;:59::i;:::-;4899:30;::::0;-1:-1:-1;;;4899:30:7;;4876:20:::1;::::0;-1:-1:-1;;;;;4899:15:7;::::1;::::0;::::1;::::0;:30:::1;::::0;4923:4:::1;::::0;4899:30:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;4876:53:::0;-1:-1:-1;4948:31:7::1;4876:53:::0;4965:13;4948:16:::1;:31::i;:::-;4937:42;;4581:405;;;-1:-1:-1::0;;;;;5029:32:7;;::::1;4992:34;5029:32:::0;;;:23:::1;:32;::::0;;;;;;;:39;;::::1;::::0;;;;;;;;5100:16;;5156:23:::1;:30:::0;;;;;;;5100:16;;4992:34;5141:46:::1;::::0;:10;;:14:::1;:46::i;:::-;5122:65:::0;-1:-1:-1;5277:19:7;;5273:519:::1;;-1:-1:-1::0;;5360:19:7;;5306:36:::1;5345:35:::0;;;:14:::1;::::0;::::1;:35;::::0;;;;5392:23;;-1:-1:-1;;;;;5392:23:7::1;:37:::0;::::1;:74:::0;::::1;;;-1:-1:-1::0;5433:21:7;;-1:-1:-1;;;5433:21:7;::::1;-1:-1:-1::0;;;;;5433:21:7::1;:33:::0;::::1;5392:74;5388:398;;;5510:21:::0;;5502:56:::1;::::0;:44:::1;::::0;-1:-1:-1;;;5510:21:7;::::1;-1:-1:-1::0;;;;;5510:21:7::1;5537:8:::0;5502:34:::1;:44::i;:56::-;5478:80:::0;;-1:-1:-1;;;;;5478:80:7;;::::1;-1:-1:-1::0;;;5478:80:7::1;::::0;::::1;;::::0;;-1:-1:-1;;;;;5609:31:7;;::::1;5478:21;5609:31:::0;;;:22:::1;:31;::::0;;;;;;;:38;;::::1;::::0;;;;;;;:72:::1;::::0;5663:8;5609:42:::1;:72::i;:::-;-1:-1:-1::0;;;;;5568:31:7;;::::1;;::::0;;;:22:::1;:31;::::0;;;;;;;:38;;::::1;::::0;;;;;;;;;;;:113;;;;5696:65;;-1:-1:-1;;5715:19:7;;;5696:65:::1;::::0;::::1;::::0;5752:8;;5696:65:::1;:::i;:::-;;;;;;;;5771:7;;;;;;5388:398;5273:519;;5859:164;;;;;;;;5895:21;:10;:19;:21::i;:::-;-1:-1:-1::0;;;;;5859:164:7::1;;;;;5934:19;:8;:17;:19::i;:::-;-1:-1:-1::0;;;;;5859:164:7::1;;;;;5971:20;:8;:18;:20::i;:::-;-1:-1:-1::0;;;;;5859:164:7;;::::1;::::0;;6015:1:::1;5859:164;::::0;;::::1;::::0;;;5825:31;;;:14:::1;::::0;;::::1;:31:::0;;;;;;:198;;;;;;::::1;::::0;;;::::1;::::0;;::::1;-1:-1:-1::0;;;5825:198:7::1;-1:-1:-1::0;;;;;5825:198:7;;::::1;-1:-1:-1::0;;;5825:198:7::1;-1:-1:-1::0;;5825:198:7;;;::::1;-1:-1:-1::0;;5825:198:7;;::::1;::::0;;;::::1;;::::0;;;::::1;::::0;::::1;;::::0;;::::1;::::0;;::::1;::::0;;;::::1;::::0;;;;;::::1;-1:-1:-1::0;;;;;;5825:198:7;;;::::1;::::0;;;::::1;::::0;;;6048:19;;::::1;6029:38:::0;;-1:-1:-1;;;;;6158:31:7;;::::1;::::0;;:22:::1;:31:::0;;;;;:38;;::::1;::::0;;;;;;;:52:::1;::::0;6201:8;6158:42:::1;:52::i;:::-;-1:-1:-1::0;;;;;6117:31:7;;::::1;;::::0;;;:22:::1;:31;::::0;;;;;;;:38;;::::1;::::0;;;;;;;;;;;:93;;;;6222:84;;::::1;::::0;::::1;::::0;6258:10;;6270:8;;6280;;6290:15;;6222:84:::1;:::i;:::-;;;;;;;;1883:1;;;;4379:1932:::0;;;;;:::o;5564:158:2:-;5644:4;5668:46;5678:3;-1:-1:-1;;;;;5698:14:2;;5668:9;:46::i;5808:117::-;5871:7;5898:19;5906:3;5898:7;:19::i;6269:149::-;6343:7;6386:22;6390:3;6402:5;6386:3;:22::i;5010:143::-;5080:4;5104:41;5109:3;-1:-1:-1;;;;;5129:14:2;;5104:4;:41::i;1366:136:10:-;1424:7;1451:43;1455:1;1458;1451:43;;;;;;;;;;;;;;;;;:3;:43::i;2256:471::-;2314:7;2559:6;2555:47;;-1:-1:-1;2589:1:10;2582:8;;2555:47;2626:5;;;2630:1;2626;:5;:1;2650:5;;;;;:10;2642:56;;;;-1:-1:-1;;;2642:56:10;;;;;;;:::i;3203:132::-;3261:7;3288:39;3292:1;3295;3288:39;;;;;;;;;;;;;;;;;:3;:39::i;698:177:9:-;781:86;801:5;831:23;;;856:2;860:5;808:58;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;808:58:9;;;;;;;;;;;;;;-1:-1:-1;;;;;808:58:9;-1:-1:-1;;;;;;808:58:9;;;;;;;;;;781:19;:86::i;:::-;698:177;;;:::o;2254:1544:2:-;2320:4;2459:19;;;:12;;;:19;;;;;;2495:15;;2491:1300;;2930:18;;-1:-1:-1;;2881:14:2;;;;2930:22;;;;2857:21;;2930:3;;:22;;3217;;;;;;;;;;;;;;3197:42;;3363:9;3334:3;:11;;3346:13;3334:26;;;;;;;;;;;;;;;;;;;:38;;;;3440:23;;;3482:1;3440:12;;;:23;;;;;;3466:17;;;3440:43;;3592:17;;3440:3;;3592:17;;;;;;;;;;;;;;;;;;;;;;3687:3;:12;;:19;3700:5;3687:19;;;;;;;;;;;3680:26;;;3730:4;3723:11;;;;;;;;2491:1300;3774:5;3767:12;;;;;883:205:9;984:96;1004:5;1034:27;;;1063:4;1069:2;1073:5;1011:68;;;;;;;;;;:::i;984:96::-;883:205;;;;:::o;1593:179:8:-;1649:6;-1:-1:-1;;;1676:5:8;:13;1668:65;;;;-1:-1:-1;;;1668:65:8;;;;;;;:::i;3884:129:2:-;3957:4;3981:19;;;:12;;;;;:19;;;;;;:24;;;3884:129::o;4099:109::-;4182:18;;4099:109::o;4552:204::-;4647:18;;4619:7;;4647:26;-1:-1:-1;4639:73:2;;;;-1:-1:-1;;;4639:73:2;;;;;;;:::i;:::-;4730:3;:11;;4742:5;4730:18;;;;;;;;;;;;;;;;4723:25;;4552:204;;;;:::o;1664:414::-;1727:4;1749:21;1759:3;1764:5;1749:9;:21::i;:::-;1744:327;;-1:-1:-1;1787:23:2;;;;;;;;:11;:23;;;;;;;;;;;;;1970:18;;1948:19;;;:12;;;:19;;;;;;:40;;;;2003:11;;1744:327;-1:-1:-1;2054:5:2;2047:12;;1805:192:10;1891:7;1927:12;1919:6;;;;1911:29;;;;-1:-1:-1;;;1911:29:10;;;;;;;;:::i;:::-;-1:-1:-1;;;1963:5:10;;;1805:192::o;3831:278::-;3917:7;3952:12;3945:5;3937:28;;;;-1:-1:-1;;;3937:28:10;;;;;;;;:::i;:::-;;3976:9;3992:1;3988;:5;;;;;;;3831:278;-1:-1:-1;;;;;3831:278:10:o;3003:761:9:-;3427:23;3453:69;3481:4;3453:69;;;;;;;;;;;;;;;;;3461:5;-1:-1:-1;;;;;3453:27:9;;;:69;;;;;:::i;:::-;3537:17;;3427:95;;-1:-1:-1;3537:21:9;3533:224;;3679:10;3668:30;;;;;;;;;;;;:::i;:::-;3660:85;;;;-1:-1:-1;;;3660:85:9;;;;;;;:::i;3858:196:0:-;3961:12;3993:53;4016:6;4024:4;4030:1;4033:12;3993:22;:53::i;:::-;3986:60;3858:196;-1:-1:-1;;;;3858:196:0:o;5235:979::-;5365:12;5398:18;5409:6;5398:10;:18::i;:::-;5390:60;;;;-1:-1:-1;;;5390:60:0;;;;;;;:::i;:::-;5524:12;5538:23;5565:6;-1:-1:-1;;;;;5565:11:0;5585:8;5596:4;5565:36;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5523:78;;;;5616:7;5612:595;;;5647:10;-1:-1:-1;5640:17:0;;-1:-1:-1;5640:17:0;5612:595;5761:17;;:21;5757:439;;6024:10;6018:17;6085:15;6072:10;6068:2;6064:19;6057:44;5972:148;6167:12;6160:20;;-1:-1:-1;;;6160:20:0;;;;;;;;:::i;743:619::-;803:4;1271:20;;1114:66;1311:23;;;;;;:42;;-1:-1:-1;;1338:15:0;;;743:619;-1:-1:-1;;743:619:0:o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;162:379::-;;;319:3;312:4;304:6;300:17;296:27;286:2;;-1:-1;;327:12;286:2;-1:-1;357:20;;-1:-1;;;;;386:30;;383:2;;;-1:-1;;419:12;383:2;463:4;455:6;451:17;439:29;;514:3;463:4;;498:6;494:17;455:6;480:32;;477:41;474:2;;;531:1;;521:12;474:2;279:262;;;;;:::o;2395:241::-;;2499:2;2487:9;2478:7;2474:23;2470:32;2467:2;;;-1:-1;;2505:12;2467:2;85:6;72:20;97:33;124:5;97:33;:::i;2643:394::-;;;2778:2;2766:9;2757:7;2753:23;2749:32;2746:2;;;-1:-1;;2784:12;2746:2;85:6;72:20;97:33;124:5;97:33;:::i;:::-;2836:63;-1:-1;2936:2;2989:22;;1898:20;1923:47;1898:20;1923:47;:::i;:::-;2944:77;;;;2740:297;;;;;:::o;3044:519::-;;;;3196:2;3184:9;3175:7;3171:23;3167:32;3164:2;;;-1:-1;;3202:12;3164:2;85:6;72:20;97:33;124:5;97:33;:::i;:::-;3254:63;-1:-1;3354:2;3407:22;;1898:20;1923:47;1898:20;1923:47;:::i;:::-;3158:405;;3362:77;;-1:-1;;;3476:2;3515:22;;;;2049:20;;3158:405::o;3570:425::-;;;3723:2;3711:9;3702:7;3698:23;3694:32;3691:2;;;-1:-1;;3729:12;3691:2;3787:17;3774:31;-1:-1;;;;;3817:6;3814:30;3811:2;;;-1:-1;;3847:12;3811:2;3885:94;3971:7;3962:6;3951:9;3947:22;3885:94;:::i;:::-;3867:112;;;;-1:-1;3685:310;-1:-1;;;;3685:310::o;4002:760::-;;;;;4234:2;4222:9;4213:7;4209:23;4205:32;4202:2;;;-1:-1;;4240:12;4202:2;4298:17;4285:31;-1:-1;;;;;4336:18;4328:6;4325:30;4322:2;;;-1:-1;;4358:12;4322:2;4396:94;4482:7;4473:6;4462:9;4458:22;4396:94;:::i;:::-;4378:112;;-1:-1;4378:112;-1:-1;4555:2;4540:18;;4527:32;;-1:-1;4568:30;;;4565:2;;;-1:-1;;4601:12;4565:2;;4639:107;4738:7;4729:6;4718:9;4714:22;4639:107;:::i;:::-;4196:566;;;;-1:-1;4621:125;-1:-1;;;;4196:566::o;4769:257::-;;4881:2;4869:9;4860:7;4856:23;4852:32;4849:2;;;-1:-1;;4887:12;4849:2;1763:6;1757:13;42818:5;41663:13;41656:21;42796:5;42793:32;42783:2;;-1:-1;;42829:12;5309:394;;;5444:2;5432:9;5423:7;5419:23;5415:32;5412:2;;;-1:-1;;5450:12;5710:519;;;;5862:2;5850:9;5841:7;5837:23;5833:32;5830:2;;;-1:-1;;5868:12;6236:645;;;;;6405:3;6393:9;6384:7;6380:23;6376:33;6373:2;;;-1:-1;;6412:12;6373:2;1911:6;1898:20;1923:47;1964:5;1923:47;:::i;:::-;6464:77;-1:-1;6578:2;6617:22;;72:20;97:33;72:20;97:33;:::i;:::-;6367:514;;6586:63;;-1:-1;;;;6686:2;6725:22;;2049:20;;6794:2;6833:22;2049:20;;6367:514::o;6888:530::-;;;7048:2;7036:9;7027:7;7023:23;7019:32;7016:2;;;-1:-1;;7054:12;7016:2;1911:6;1898:20;1923:47;1964:5;1923:47;:::i;:::-;7106:77;-1:-1;7248:2;7233:18;;;7220:32;-1:-1;;;;;7261:30;;7258:2;;;-1:-1;;7294:12;7258:2;7370:22;;1077:4;1065:17;;1061:27;-1:-1;1051:2;;-1:-1;;1092:12;1051:2;1139:6;1126:20;1161:80;1176:64;1233:6;1176:64;:::i;:::-;1161:80;:::i;:::-;1269:21;;;1326:14;;;;1301:17;;;1415;;;1406:27;;;;1403:36;-1:-1;1400:2;;;-1:-1;;1442:12;1400:2;-1:-1;1468:10;;1462:206;1487:6;1484:1;1481:13;1462:206;;;2049:20;;1555:50;;1509:1;1502:9;;;;;1619:14;;;;1647;;1462:206;;;1466:14;7314:88;;;;;;;;7010:408;;;;;:::o;7425:519::-;;;;7577:2;7565:9;7556:7;7552:23;7548:32;7545:2;;;-1:-1;;7583:12;7545:2;1911:6;1898:20;1923:47;1964:5;1923:47;:::i;:::-;7635:77;7749:2;7788:22;;2049:20;;-1:-1;7857:2;7896:22;;;2049:20;;7539:405;-1:-1;;;7539:405::o;7951:392::-;;;8085:2;8073:9;8064:7;8060:23;8056:32;8053:2;;;-1:-1;;8091:12;8053:2;1911:6;1898:20;1923:47;1964:5;1923:47;:::i;:::-;8143:77;-1:-1;8257:2;8295:22;;2326:20;-1:-1;;;;;42189:30;;43189:34;;43179:2;;-1:-1;;43227:12;8350:241;;8454:2;8442:9;8433:7;8429:23;8425:32;8422:2;;;-1:-1;;8460:12;8422:2;-1:-1;2049:20;;8416:175;-1:-1;8416:175::o;8598:263::-;;8713:2;8701:9;8692:7;8688:23;8684:32;8681:2;;;-1:-1;;8719:12;8681:2;-1:-1;2197:13;;8675:186;-1:-1;8675:186::o;21089:808::-;-1:-1;;;;;42200:18;21314:16;21308:23;42189:30;23218:3;23211:36;42200:18;21481:4;21474:5;21470:16;21464:23;42189:30;21481:4;21543:3;21539:14;23211:36;;21637:4;21630:5;21626:16;21620:23;-1:-1;;;;;41874:34;22903:5;41863:46;21637:4;21701:3;21697:14;22873:37;41874:34;21801:4;21794:5;21790:16;21784:23;41863:46;21801:4;21865:3;21861:14;22873:37;;;21209:688;;:::o;23376:271::-;;12544:5;39586:12;12655:52;12700:6;12695:3;12688:4;12681:5;12677:16;12655:52;:::i;:::-;12719:16;;;;;23510:137;-1:-1;;23510:137::o;23654:379::-;24018:10;23842:191::o;24040:222::-;-1:-1;;;;;41983:54;;;;9603:37;;24167:2;24152:18;;24138:124::o;24269:444::-;-1:-1;;;;;41983:54;;;9603:37;;41983:54;;;;24616:2;24601:18;;9603:37;24699:2;24684:18;;22983:37;;;;24452:2;24437:18;;24423:290::o;24720:333::-;-1:-1;;;;;41983:54;;;;9603:37;;25039:2;25024:18;;22983:37;24875:2;24860:18;;24846:207::o;25060:370::-;25237:2;25251:47;;;39586:12;;25222:18;;;40700:19;;;25060:370;;25237:2;39092:14;;;;40740;;;;25060:370;10211:260;10236:6;10233:1;10230:13;10211:260;;;10297:13;;-1:-1;;;;;41983:54;9603:37;;40293:14;;;;9022;;;;397:18;10251:9;10211:260;;;-1:-1;25304:116;;25208:222;-1:-1;;;;;;25208:222::o;25437:498::-;25678:2;25692:47;;;39586:12;;25663:18;;;40700:19;;;25437:498;;25678:2;39092:14;;;;40740;;;;25437:498;11158:356;11183:6;11180:1;11177:13;11158:356;;;9202:110;9308:3;11250:6;11244:13;9202:110;:::i;:::-;40293:14;;;;9341:4;9332:14;;;;;11205:1;11198:9;11158:356;;25942:370;26119:2;26133:47;;;39586:12;;26104:18;;;40700:19;;;25942:370;;26119:2;39092:14;;;;40740;;;;25942:370;11983:260;12008:6;12005:1;12002:13;11983:260;;;12069:13;;22983:37;;40293:14;;;;9514;;;;12030:1;12023:9;11983:260;;26319:210;41663:13;;41656:21;12338:34;;26440:2;26425:18;;26411:118::o;26536:310::-;;26683:2;26704:17;26697:47;12892:5;39586:12;40712:6;26683:2;26672:9;26668:18;40700:19;12986:52;13031:6;40740:14;26672:9;40740:14;26683:2;13012:5;13008:16;12986:52;:::i;:::-;42592:7;42576:14;-1:-1;;42572:28;13050:39;;;;40740:14;13050:39;;26654:192;-1:-1;;26654:192::o;26853:416::-;27053:2;27067:47;;;13326:2;27038:18;;;40700:19;13362:34;40740:14;;;13342:55;-1:-1;;;13417:12;;;13410:26;13455:12;;;27024:245::o;27276:416::-;27476:2;27490:47;;;13706:2;27461:18;;;40700:19;-1:-1;;;40740:14;;;13722:45;13786:12;;;27447:245::o;27699:416::-;27899:2;27913:47;;;14037:2;27884:18;;;40700:19;14073:34;40740:14;;;14053:55;-1:-1;;;14128:12;;;14121:30;14170:12;;;27870:245::o;28122:416::-;28322:2;28336:47;;;14421:2;28307:18;;;40700:19;-1:-1;;;40740:14;;;14437:39;14495:12;;;28293:245::o;28545:416::-;28745:2;28759:47;;;14746:2;28730:18;;;40700:19;14782:26;40740:14;;;14762:47;14828:12;;;28716:245::o;28968:416::-;29168:2;29182:47;;;15079:2;29153:18;;;40700:19;15115:29;40740:14;;;15095:50;15164:12;;;29139:245::o;29391:416::-;29591:2;29605:47;;;15415:2;29576:18;;;40700:19;15451:28;40740:14;;;15431:49;15499:12;;;29562:245::o;29814:416::-;30014:2;30028:47;;;15750:2;29999:18;;;40700:19;-1:-1;;;40740:14;;;15766:40;15825:12;;;29985:245::o;30237:416::-;30437:2;30451:47;;;16076:2;30422:18;;;40700:19;16112:34;40740:14;;;16092:55;-1:-1;;;16167:12;;;16160:31;16210:12;;;30408:245::o;30660:416::-;30860:2;30874:47;;;16461:2;30845:18;;;40700:19;-1:-1;;;40740:14;;;16477:44;16540:12;;;30831:245::o;31083:416::-;31283:2;31297:47;;;16791:2;31268:18;;;40700:19;-1:-1;;;40740:14;;;16807:39;16865:12;;;31254:245::o;31506:416::-;31706:2;31720:47;;;17116:2;31691:18;;;40700:19;-1:-1;;;40740:14;;;17132:43;17194:12;;;31677:245::o;31929:416::-;32129:2;32143:47;;;17445:2;32114:18;;;40700:19;17481:33;40740:14;;;17461:54;17534:12;;;32100:245::o;32352:416::-;32552:2;32566:47;;;17785:2;32537:18;;;40700:19;-1:-1;;;40740:14;;;17801:33;17853:12;;;32523:245::o;32775:416::-;32975:2;32989:47;;;18104:2;32960:18;;;40700:19;18140:34;40740:14;;;18120:55;-1:-1;;;18195:12;;;18188:25;18232:12;;;32946:245::o;33198:416::-;33398:2;33412:47;;;18483:2;33383:18;;;40700:19;18519:34;40740:14;;;18499:55;-1:-1;;;18574:12;;;18567:30;18616:12;;;33369:245::o;33621:416::-;33821:2;33835:47;;;33806:18;;;40700:19;18903:34;40740:14;;;18883:55;18957:12;;;33792:245::o;34044:416::-;34244:2;34258:47;;;19208:1;34229:18;;;40700:19;-1:-1;;;40740:14;;;19223:31;19273:12;;;34215:245::o;34467:416::-;34667:2;34681:47;;;19829:2;34652:18;;;40700:19;19865:31;40740:14;;;19845:52;19916:12;;;34638:245::o;34890:416::-;35090:2;35104:47;;;20167:2;35075:18;;;40700:19;20203:29;40740:14;;;20183:50;20252:12;;;35061:245::o;35313:416::-;35513:2;35527:47;;;20503:2;35498:18;;;40700:19;20539:34;40740:14;;;20519:55;-1:-1;;;20594:12;;;20587:34;20640:12;;;35484:245::o;35736:416::-;35936:2;35950:47;;;20891:2;35921:18;;;40700:19;20927:33;40740:14;;;20907:54;20980:12;;;35907:245::o;36159:351::-;36350:3;36335:19;;36365:135;36339:9;36473:6;36365:135;:::i;36517:222::-;22983:37;;;36644:2;36629:18;;36615:124::o;36746:333::-;22983:37;;;37065:2;37050:18;;22983:37;36901:2;36886:18;;36872:207::o;37086:556::-;22983:37;;;37462:2;37447:18;;22983:37;;;;37545:2;37530:18;;22983:37;37628:2;37613:18;;22983:37;37297:3;37282:19;;37268:374::o;37649:218::-;-1:-1;;;;;42189:30;;;;23211:36;;37774:2;37759:18;;37745:122::o;37874:522::-;;;38025:11;38012:25;38076:48;;38100:8;38084:14;38080:29;38076:48;38056:18;38052:73;38042:2;;-1:-1;;38129:12;38042:2;38156:33;;38210:18;;;-1:-1;;;;;;38237:30;;38234:2;;;-1:-1;;38270:12;38234:2;38115:4;38298:13;;;;-1:-1;38350:17;;38084:14;38330:38;38320:49;;38317:2;;;38382:1;;38372:12;38403:256;38465:2;38459:9;38491:17;;;-1:-1;;;;;38551:34;;38587:22;;;38548:62;38545:2;;;38623:1;;38613:12;38545:2;38465;38632:22;38443:216;;-1:-1;38443:216::o;38666:304::-;;-1:-1;;;;;38817:6;38814:30;38811:2;;;-1:-1;;38847:12;38811:2;-1:-1;38892:4;38880:17;;;38945:15;;38748:222::o;42232:268::-;42297:1;42304:101;42318:6;42315:1;42312:13;42304:101;;;42385:11;;;42379:18;42366:11;;;42359:39;42340:2;42333:10;42304:101;;;42420:6;42417:1;42414:13;42411:2;;;-1:-1;;42297:1;42467:16;;42460:27;42281:219::o;42613:117::-;-1:-1;;;;;41983:54;;42672:35;;42662:2;;42721:1;;42711:12;42662:2;42656:74;:::o

Swarm Source

ipfs://afe463898f83083b95ce10f27c965381419c300b37f3ad93c8cdb0900b334327
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.