ETH Price: $3,464.83 (+4.11%)

Contract

0x4798BB87846c2D51953c406a430B9F3a70688DDD
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0x60806040132642532021-09-20 18:29:351161 days ago1632162575IN
 Create: ServiceV16
0 ETH0.4400183185

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
134495142021-10-19 17:29:591132 days ago1634664599
0x4798BB87...a70688DDD
0.00409589 ETH
134495092021-10-19 17:29:191132 days ago1634664559
0x4798BB87...a70688DDD
0.00036072 ETH
134495092021-10-19 17:29:191132 days ago1634664559
0x4798BB87...a70688DDD
0.00036072 ETH
134495092021-10-19 17:29:191132 days ago1634664559
0x4798BB87...a70688DDD
0.00072145 ETH
134495092021-10-19 17:29:191132 days ago1634664559
0x4798BB87...a70688DDD
0.00409589 ETH
134495062021-10-19 17:28:181132 days ago1634664498
0x4798BB87...a70688DDD
0.00409589 ETH
134495052021-10-19 17:27:381132 days ago1634664458
0x4798BB87...a70688DDD
0.00409589 ETH
134495052021-10-19 17:27:381132 days ago1634664458
0x4798BB87...a70688DDD
0.00409589 ETH
134495032021-10-19 17:26:471132 days ago1634664407
0x4798BB87...a70688DDD
0.00409589 ETH
134495032021-10-19 17:26:471132 days ago1634664407
0x4798BB87...a70688DDD
0.00409589 ETH
134495012021-10-19 17:26:111132 days ago1634664371
0x4798BB87...a70688DDD
0.00409589 ETH
134495012021-10-19 17:26:111132 days ago1634664371
0x4798BB87...a70688DDD
0.00409589 ETH
134495012021-10-19 17:26:111132 days ago1634664371
0x4798BB87...a70688DDD
0.00819178 ETH
134495012021-10-19 17:26:111132 days ago1634664371
0x4798BB87...a70688DDD
0.00409589 ETH
134494982021-10-19 17:25:341132 days ago1634664334
0x4798BB87...a70688DDD
0.00409589 ETH
134494982021-10-19 17:25:341132 days ago1634664334
0x4798BB87...a70688DDD
0.00409589 ETH
134494982021-10-19 17:25:341132 days ago1634664334
0x4798BB87...a70688DDD
0.00409589 ETH
134494982021-10-19 17:25:341132 days ago1634664334
0x4798BB87...a70688DDD
0.00409589 ETH
134494982021-10-19 17:25:341132 days ago1634664334
0x4798BB87...a70688DDD
0.00409589 ETH
134494982021-10-19 17:25:341132 days ago1634664334
0x4798BB87...a70688DDD
0.00409589 ETH
134494982021-10-19 17:25:341132 days ago1634664334
0x4798BB87...a70688DDD
0.00409589 ETH
134494962021-10-19 17:25:211132 days ago1634664321
0x4798BB87...a70688DDD
0.00409589 ETH
134494962021-10-19 17:25:211132 days ago1634664321
0x4798BB87...a70688DDD
0.00409589 ETH
134494952021-10-19 17:25:121132 days ago1634664312
0x4798BB87...a70688DDD
0.00409589 ETH
134494952021-10-19 17:25:121132 days ago1634664312
0x4798BB87...a70688DDD
0.00409589 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ServiceV16

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 7 : ServiceV16.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "./interfaces/StrongPoolInterface.sol";
import "./interfaces/IERC1155Preset.sol";
import "./interfaces/StrongNFTBonusInterface.sol";
import "./lib/rewards.sol";

contract ServiceV16 {
  event Requested(address indexed miner);
  event Claimed(address indexed miner, uint256 reward);

  using SafeMath for uint256;
  bool public initDone;
  address public admin;
  address public pendingAdmin;
  address public superAdmin;
  address public pendingSuperAdmin;
  address public serviceAdmin;
  address public parameterAdmin;
  address payable public feeCollector;

  IERC20 public strongToken;
  StrongPoolInterface public strongPool;

  uint256 public rewardPerBlockNumerator;
  uint256 public rewardPerBlockDenominator;

  uint256 public naasRewardPerBlockNumerator;
  uint256 public naasRewardPerBlockDenominator;

  uint256 public claimingFeeNumerator;
  uint256 public claimingFeeDenominator;

  uint256 public requestingFeeInWei;

  uint256 public strongFeeInWei;

  uint256 public recurringFeeInWei;
  uint256 public recurringNaaSFeeInWei;
  uint256 public recurringPaymentCycleInBlocks;

  uint256 public rewardBalance;

  mapping(address => uint256) public entityBlockLastClaimedOn;

  address[] public entities;
  mapping(address => uint256) public entityIndex;
  mapping(address => bool) public entityActive;
  mapping(address => bool) public requestPending;
  mapping(address => bool) public entityIsNaaS;
  mapping(address => uint256) public paidOnBlock;
  uint256 public activeEntities;

  string public desciption;

  uint256 public claimingFeeInWei;

  uint256 public naasRequestingFeeInWei;

  uint256 public naasStrongFeeInWei;

  bool public removedTokens;

  mapping(address => uint256) public traunch;

  uint256 public currentTraunch;

  mapping(bytes => bool) public entityNodeIsActive;
  mapping(bytes => bool) public entityNodeIsBYON;
  mapping(bytes => uint256) public entityNodeTraunch;
  mapping(bytes => uint256) public entityNodePaidOnBlock;
  mapping(bytes => uint256) public entityNodeClaimedOnBlock;
  mapping(address => uint128) public entityNodeCount;

  event Paid(address indexed entity, uint128 nodeId, bool isBYON, bool isRenewal, uint256 upToBlockNumber);
  event Migrated(address indexed from, address indexed to, uint128 fromNodeId, uint128 toNodeId, bool isBYON);

  uint256 public rewardPerBlockNumeratorNew;
  uint256 public rewardPerBlockDenominatorNew;
  uint256 public naasRewardPerBlockNumeratorNew;
  uint256 public naasRewardPerBlockDenominatorNew;
  uint256 public rewardPerBlockNewEffectiveBlock;

  StrongNFTBonusInterface public strongNFTBonus;

  uint256 public gracePeriodInBlocks;

  uint128 public maxNodes;
  uint256 public maxPaymentPeriods;

  event Deactivated(address indexed entity, uint128 nodeId, bool isBYON, uint256 atBlockNumber);

  function init(
    address strongTokenAddress,
    address strongPoolAddress,
    address adminAddress,
    address superAdminAddress,
    uint256 rewardPerBlockNumeratorValue,
    uint256 rewardPerBlockDenominatorValue,
    uint256 naasRewardPerBlockNumeratorValue,
    uint256 naasRewardPerBlockDenominatorValue,
    uint256 requestingFeeInWeiValue,
    uint256 strongFeeInWeiValue,
    uint256 recurringFeeInWeiValue,
    uint256 recurringNaaSFeeInWeiValue,
    uint256 recurringPaymentCycleInBlocksValue,
    uint256 claimingFeeNumeratorValue,
    uint256 claimingFeeDenominatorValue,
    string memory desc
  ) public {
    require(!initDone, "init done");
    strongToken = IERC20(strongTokenAddress);
    strongPool = StrongPoolInterface(strongPoolAddress);
    admin = adminAddress;
    superAdmin = superAdminAddress;
    rewardPerBlockNumerator = rewardPerBlockNumeratorValue;
    rewardPerBlockDenominator = rewardPerBlockDenominatorValue;
    naasRewardPerBlockNumerator = naasRewardPerBlockNumeratorValue;
    naasRewardPerBlockDenominator = naasRewardPerBlockDenominatorValue;
    requestingFeeInWei = requestingFeeInWeiValue;
    strongFeeInWei = strongFeeInWeiValue;
    recurringFeeInWei = recurringFeeInWeiValue;
    recurringNaaSFeeInWei = recurringNaaSFeeInWeiValue;
    claimingFeeNumerator = claimingFeeNumeratorValue;
    claimingFeeDenominator = claimingFeeDenominatorValue;
    recurringPaymentCycleInBlocks = recurringPaymentCycleInBlocksValue;
    desciption = desc;
    initDone = true;
  }

  function updateServiceAdmin(address newServiceAdmin) public {
    require(msg.sender == superAdmin);
    serviceAdmin = newServiceAdmin;
  }

  function updateParameterAdmin(address newParameterAdmin) public {
    require(newParameterAdmin != address(0));
    require(msg.sender == superAdmin);
    parameterAdmin = newParameterAdmin;
  }

  function updateFeeCollector(address payable newFeeCollector) public {
    require(newFeeCollector != address(0));
    require(msg.sender == superAdmin);
    feeCollector = newFeeCollector;
  }

  function setPendingAdmin(address newPendingAdmin) public {
    require(msg.sender == admin);
    pendingAdmin = newPendingAdmin;
  }

  function acceptAdmin() public {
    require(msg.sender == pendingAdmin && msg.sender != address(0), "not pendingAdmin");
    admin = pendingAdmin;
    pendingAdmin = address(0);
  }

  function setPendingSuperAdmin(address newPendingSuperAdmin) public {
    require(msg.sender == superAdmin, "not superAdmin");
    pendingSuperAdmin = newPendingSuperAdmin;
  }

  function acceptSuperAdmin() public {
    require(msg.sender == pendingSuperAdmin && msg.sender != address(0), "not pendingSuperAdmin");
    superAdmin = pendingSuperAdmin;
    pendingSuperAdmin = address(0);
  }

  function isEntityActive(address entity) public view returns (bool) {
    return entityActive[entity] || (doesNodeExist(entity, 1) && !hasNodeExpired(entity, 1));
  }

  function updateRewardPerBlock(uint256 numerator, uint256 denominator) public {
    require(msg.sender == admin || msg.sender == parameterAdmin || msg.sender == superAdmin);
    require(denominator != 0);
    rewardPerBlockNumerator = numerator;
    rewardPerBlockDenominator = denominator;
  }

  function updateNaaSRewardPerBlock(uint256 numerator, uint256 denominator) public {
    require(msg.sender == admin || msg.sender == parameterAdmin || msg.sender == superAdmin);
    require(denominator != 0);
    naasRewardPerBlockNumerator = numerator;
    naasRewardPerBlockDenominator = denominator;
  }

  function updateRewardPerBlockNew(
    uint256 numerator,
    uint256 denominator,
    uint256 numeratorNass,
    uint256 denominatorNass,
    uint256 effectiveBlock
  ) public {
    require(msg.sender == admin || msg.sender == parameterAdmin || msg.sender == superAdmin);

    rewardPerBlockNumeratorNew = numerator;
    rewardPerBlockDenominatorNew = denominator;
    naasRewardPerBlockNumeratorNew = numeratorNass;
    naasRewardPerBlockDenominatorNew = denominatorNass;
    rewardPerBlockNewEffectiveBlock = effectiveBlock != 0 ? effectiveBlock : block.number;
  }

  function deposit(uint256 amount) public {
    require(msg.sender == superAdmin);
    require(amount > 0);
    strongToken.transferFrom(msg.sender, address(this), amount);
    rewardBalance = rewardBalance.add(amount);
  }

  function withdraw(address destination, uint256 amount) public {
    require(msg.sender == superAdmin);
    require(amount > 0);
    require(rewardBalance >= amount, "not enough");
    strongToken.transfer(destination, amount);
    rewardBalance = rewardBalance.sub(amount);
  }

  function updateRequestingFee(uint256 feeInWei) public {
    require(msg.sender == admin || msg.sender == parameterAdmin || msg.sender == superAdmin);
    requestingFeeInWei = feeInWei;
  }

  function updateStrongFee(uint256 feeInWei) public {
    require(msg.sender == admin || msg.sender == parameterAdmin || msg.sender == superAdmin);
    strongFeeInWei = feeInWei;
  }

  function updateNaasRequestingFee(uint256 feeInWei) public {
    require(msg.sender == admin || msg.sender == parameterAdmin || msg.sender == superAdmin);
    naasRequestingFeeInWei = feeInWei;
  }

  function updateNaasStrongFee(uint256 feeInWei) public {
    require(msg.sender == admin || msg.sender == parameterAdmin || msg.sender == superAdmin);
    naasStrongFeeInWei = feeInWei;
  }

  function updateClaimingFee(uint256 numerator, uint256 denominator) public {
    require(msg.sender == admin || msg.sender == parameterAdmin || msg.sender == superAdmin);
    require(denominator != 0);
    claimingFeeNumerator = numerator;
    claimingFeeDenominator = denominator;
  }

  function updateRecurringFee(uint256 feeInWei) public {
    require(msg.sender == admin || msg.sender == parameterAdmin || msg.sender == superAdmin);
    recurringFeeInWei = feeInWei;
  }

  function updateRecurringNaaSFee(uint256 feeInWei) public {
    require(msg.sender == admin || msg.sender == parameterAdmin || msg.sender == superAdmin);
    recurringNaaSFeeInWei = feeInWei;
  }

  function updateRecurringPaymentCycleInBlocks(uint256 blocks) public {
    require(msg.sender == admin || msg.sender == parameterAdmin || msg.sender == superAdmin);
    require(blocks > 0);
    recurringPaymentCycleInBlocks = blocks;
  }

  function updateGracePeriodInBlocks(uint256 blocks) public {
    require(msg.sender == admin || msg.sender == parameterAdmin || msg.sender == superAdmin);
    require(blocks > 0);
    gracePeriodInBlocks = blocks;
  }

  function requestAccess(bool isNaaS) public payable {
    require(entityNodeCount[msg.sender] < maxNodes, "limit reached");

    uint256 rFee;
    uint256 sFee;

    if (hasLegacyNode(msg.sender)) {
      migrateLegacyNode(msg.sender);
    }

    uint128 nodeId = entityNodeCount[msg.sender] + 1;
    bytes memory id = getNodeId(msg.sender, nodeId);

    if (isNaaS) {
      rFee = naasRequestingFeeInWei;
      sFee = naasStrongFeeInWei;
      activeEntities = activeEntities.add(1);
    } else {
      rFee = requestingFeeInWei;
      sFee = strongFeeInWei;
      entityNodeIsBYON[id] = true;
    }

    require(msg.value == rFee, "invalid fee");

    entityNodePaidOnBlock[id] = block.number;
    entityNodeClaimedOnBlock[id] = block.number;
    entityNodeCount[msg.sender] = entityNodeCount[msg.sender] + 1;

    feeCollector.transfer(msg.value);
    strongToken.transferFrom(msg.sender, address(this), sFee);
    strongToken.transfer(feeCollector, sFee);

    emit Paid(msg.sender, nodeId, entityNodeIsBYON[id], false, entityNodePaidOnBlock[id].add(recurringPaymentCycleInBlocks));
  }

  function setEntityActiveStatus(address entity, bool status) public {
    require(msg.sender == admin || msg.sender == serviceAdmin || msg.sender == superAdmin);
    uint256 index = entityIndex[entity];
    require(entities[index] == entity, "invalid entity");
    require(entityActive[entity] != status, "already set");
    entityActive[entity] = status;
    if (status) {
      activeEntities = activeEntities.add(1);
      entityBlockLastClaimedOn[entity] = block.number;
    } else {
      activeEntities = activeEntities.sub(1);
      entityBlockLastClaimedOn[entity] = 0;
    }
  }

  function payFee(uint128 nodeId) public payable {
    address sender = msg.sender == address(this) ? tx.origin : msg.sender;
    bytes memory id = getNodeId(sender, nodeId);

    if (hasLegacyNode(sender)) {
      migrateLegacyNode(sender);
    }

    require(doesNodeExist(sender, nodeId), "doesnt exist");
    require(hasNodeExpired(sender, nodeId) == false, "too late");
    require(hasMaxPayments(sender, nodeId) == false, "too soon");

    if (entityNodeIsBYON[id]) {
      require(msg.value == recurringFeeInWei, "invalid fee");
    } else {
      require(msg.value == recurringNaaSFeeInWei, "invalid fee");
    }

    feeCollector.transfer(msg.value);
    entityNodePaidOnBlock[id] = entityNodePaidOnBlock[id].add(recurringPaymentCycleInBlocks);

    emit Paid(sender, nodeId, entityNodeIsBYON[id], true, entityNodePaidOnBlock[id]);
  }

  function getReward(address entity, uint128 nodeId) public view returns (uint256) {
    return getRewardByBlock(entity, nodeId, block.number);
  }

  function getRewardByBlock(address entity, uint128 nodeId, uint256 blockNumber) public view returns (uint256) {
    bytes memory id = getNodeId(entity, nodeId);

    if (hasLegacyNode(entity)) {
      return getRewardByBlockLegacy(entity, blockNumber);
    }

    uint256 blockLastClaimedOn = entityNodeClaimedOnBlock[id] != 0 ? entityNodeClaimedOnBlock[id] : entityNodePaidOnBlock[id];

    if (blockNumber > block.number) return 0;
    if (blockLastClaimedOn == 0) return 0;
    if (blockNumber < blockLastClaimedOn) return 0;
    if (activeEntities == 0) return 0;
    if (entityNodeIsBYON[id] && !entityNodeIsActive[id]) return 0;

    uint256 rewardNumerator = entityNodeIsBYON[id] ? rewardPerBlockNumerator : naasRewardPerBlockNumerator;
    uint256 rewardDenominator = entityNodeIsBYON[id] ? rewardPerBlockDenominator : naasRewardPerBlockDenominator;
    uint256 newRewardNumerator = entityNodeIsBYON[id] ? rewardPerBlockNumeratorNew : naasRewardPerBlockNumeratorNew;
    uint256 newRewardDenominator = entityNodeIsBYON[id] ? rewardPerBlockDenominatorNew : naasRewardPerBlockDenominatorNew;

    uint256 bonus = address(strongNFTBonus) != address(0)
    ? strongNFTBonus.getBonus(entity, nodeId, blockLastClaimedOn, blockNumber)
    : 0;

    uint256[2] memory rewardBlocks = rewards.blocks(blockLastClaimedOn, rewardPerBlockNewEffectiveBlock, blockNumber);
    uint256 rewardOld = rewardDenominator > 0 ? rewardBlocks[0].mul(rewardNumerator).div(rewardDenominator) : 0;
    uint256 rewardNew = newRewardDenominator > 0 ? rewardBlocks[1].mul(newRewardNumerator).div(newRewardDenominator) : 0;

    return rewardOld.add(rewardNew).add(bonus);
  }

  function getRewardByBlockLegacy(address entity, uint256 blockNumber) public view returns (uint256) {
    if (blockNumber > block.number) return 0;
    if (entityBlockLastClaimedOn[entity] == 0) return 0;
    if (blockNumber < entityBlockLastClaimedOn[entity]) return 0;
    if (activeEntities == 0) return 0;
    uint256 blockResult = blockNumber.sub(entityBlockLastClaimedOn[entity]);
    uint256 rewardNumerator;
    uint256 rewardDenominator;
    if (entityIsNaaS[entity]) {
      rewardNumerator = naasRewardPerBlockNumerator;
      rewardDenominator = naasRewardPerBlockDenominator;
    } else {
      rewardNumerator = rewardPerBlockNumerator;
      rewardDenominator = rewardPerBlockDenominator;
    }
    uint256 rewardPerBlockResult = blockResult.mul(rewardNumerator).div(rewardDenominator);

    return rewardPerBlockResult;
  }

  function claim(uint128 nodeId, uint256 blockNumber, bool toStrongPool) public payable returns (bool) {
    address sender = msg.sender == address(this) || msg.sender == address(strongNFTBonus) ? tx.origin : msg.sender;
    bytes memory id = getNodeId(sender, nodeId);

    if (hasLegacyNode(sender)) {
      migrateLegacyNode(sender);
    }

    uint256 blockLastClaimedOn = entityNodeClaimedOnBlock[id] != 0 ? entityNodeClaimedOnBlock[id] : entityNodePaidOnBlock[id];
    uint256 blockLastPaidOn = entityNodePaidOnBlock[id];

    require(blockLastClaimedOn != 0, "never claimed");
    require(blockNumber <= block.number, "invalid block");
    require(blockNumber > blockLastClaimedOn, "too soon");
    require(!entityNodeIsBYON[id] || entityNodeIsActive[id], "not active");

    if (
      (!entityNodeIsBYON[id] && recurringNaaSFeeInWei != 0) || (entityNodeIsBYON[id] && recurringFeeInWei != 0)
    ) {
      require(blockNumber < blockLastPaidOn.add(recurringPaymentCycleInBlocks), "pay fee");
    }

    uint256 reward = getRewardByBlock(sender, nodeId, blockNumber);
    require(reward > 0, "no reward");

    uint256 fee = reward.mul(claimingFeeNumerator).div(claimingFeeDenominator);
    require(msg.value >= fee, "invalid fee");

    feeCollector.transfer(msg.value);

    if (toStrongPool) {
      strongToken.approve(address(strongPool), reward);
      strongPool.mineFor(sender, reward);
    } else {
      strongToken.transfer(sender, reward);
    }

    rewardBalance = rewardBalance.sub(reward);
    entityNodeClaimedOnBlock[id] = blockNumber;
    emit Claimed(sender, reward);

    return true;
  }

  function getRewardAll(address entity, uint256 blockNumber) public view returns (uint256) {
    uint256 rewardsAll = 0;

    for (uint128 i = 1; i <= entityNodeCount[entity]; i++) {
      rewardsAll = rewardsAll.add(getRewardByBlock(entity, i, blockNumber > 0 ? blockNumber : block.number));
    }

    return rewardsAll;
  }

  function canBePaid(address entity, uint128 nodeId) public view returns (bool) {
    return !isNodeBYON(entity, nodeId) && !hasNodeExpired(entity, nodeId) && !hasMaxPayments(entity, nodeId);
  }

  function doesNodeExist(address entity, uint128 nodeId) public view returns (bool) {
    bytes memory id = getNodeId(entity, nodeId);
    return entityNodePaidOnBlock[id] > 0;
  }

  function hasNodeExpired(address entity, uint128 nodeId) public view returns (bool) {
    bytes memory id = getNodeId(entity, nodeId);
    uint256 blockLastPaidOn = entityNodePaidOnBlock[id];
    return !doesNodeExist(entity, nodeId) || (block.number > blockLastPaidOn.add(recurringPaymentCycleInBlocks).add(gracePeriodInBlocks));
  }

  function hasMaxPayments(address entity, uint128 nodeId) public view returns (bool) {
    bytes memory id = getNodeId(entity, nodeId);
    uint256 blockLastPaidOn = entityNodePaidOnBlock[id];
    uint256 limit = block.number.add(recurringPaymentCycleInBlocks.mul(maxPaymentPeriods));

    return blockLastPaidOn.add(recurringPaymentCycleInBlocks) >= limit;
  }

  function getNodeId(address entity, uint128 nodeId) public view returns (bytes memory) {
    uint128 id = nodeId != 0 ? nodeId : entityNodeCount[entity] + 1;
    return abi.encodePacked(entity, id);
  }

  function getNodePaidOn(address entity, uint128 nodeId) public view returns (uint256) {
    bytes memory id = getNodeId(entity, nodeId);
    return entityNodePaidOnBlock[id];
  }

  function isNodeActive(address entity, uint128 nodeId) public view returns (bool) {
    bytes memory id = getNodeId(entity, nodeId);
    return entityNodeIsActive[id] || !entityNodeIsBYON[id];
  }

  function isNodeBYON(address entity, uint128 nodeId) public view returns (bool) {
    bytes memory id = getNodeId(entity, nodeId);
    return entityNodeIsBYON[id];
  }

  function hasLegacyNode(address entity) public view returns (bool) {
    return entityActive[entity] && entityNodeCount[entity] == 0;
  }

  function approveBYONNode(address entity, uint128 nodeId) public {
    require(msg.sender == admin || msg.sender == serviceAdmin || msg.sender == superAdmin);

    bytes memory id = getNodeId(entity, nodeId);
    entityNodeIsActive[id] = true;
    entityNodeClaimedOnBlock[id] = block.number;
    activeEntities = activeEntities.add(1);
  }

  function suspendBYONNode(address entity, uint128 nodeId) public {
    require(msg.sender == admin || msg.sender == serviceAdmin || msg.sender == superAdmin);

    bytes memory id = getNodeId(entity, nodeId);
    entityNodeIsActive[id] = false;
    activeEntities = activeEntities.sub(1);
  }

  function setNodeIsActive(address entity, uint128 nodeId, bool isActive) public {
    require(msg.sender == admin || msg.sender == serviceAdmin || msg.sender == superAdmin);
    bytes memory id = getNodeId(entity, nodeId);

    if (isActive && !entityNodeIsActive[id]) {
      activeEntities = activeEntities.add(1);
      entityNodeClaimedOnBlock[id] = block.number;
    }

    if (!isActive && entityNodeIsActive[id]) {
      activeEntities = activeEntities.sub(1);
    }

    entityNodeIsActive[id] = isActive;
  }

  function setNodeIsNaaS(address entity, uint128 nodeId, bool isNaaS) public {
    require(msg.sender == admin || msg.sender == serviceAdmin || msg.sender == superAdmin);
    bytes memory id = getNodeId(entity, nodeId);

    entityNodeIsBYON[id] = !isNaaS;
  }

  function migrateLegacyNode(address entity) private {
    bytes memory id = getNodeId(entity, 1);
    entityNodeClaimedOnBlock[id] = entityBlockLastClaimedOn[entity];
    entityNodePaidOnBlock[id] = paidOnBlock[entity];
    entityNodeIsBYON[id] = !entityIsNaaS[entity];
    if (entityNodeIsBYON[id]) {
      entityNodeIsActive[id] = true;
    }
    entityNodeCount[msg.sender] = 1;
  }

  function migrateNode(uint128 nodeId, address to) public {
    if (hasLegacyNode(msg.sender)) {
      migrateLegacyNode(msg.sender);
    }

    if (hasLegacyNode(to)) {
      migrateLegacyNode(to);
    }

    require(doesNodeExist(msg.sender, nodeId), "doesnt exist");

    uint128 toNodeId = entityNodeCount[to] + 1;
    bytes memory fromId = getNodeId(msg.sender, nodeId);
    bytes memory toId = getNodeId(to, toNodeId);

    // move node to another address
    entityNodeIsActive[toId] = entityNodeIsActive[fromId];
    entityNodeIsBYON[toId] = entityNodeIsBYON[fromId];
    entityNodePaidOnBlock[toId] = entityNodePaidOnBlock[fromId];
    entityNodeClaimedOnBlock[toId] = entityNodeClaimedOnBlock[fromId];
    entityNodeCount[to] = entityNodeCount[to] + 1;

    // deactivate node
    entityNodeIsActive[fromId] = false;
    entityNodePaidOnBlock[fromId] = 0;
    entityNodeClaimedOnBlock[fromId] = 0;
    //    entityNodeCount[msg.sender] = entityNodeCount[msg.sender] - 1;

    emit Migrated(msg.sender, to, nodeId, toNodeId, entityNodeIsBYON[fromId]);
  }

  function claimAll(uint256 blockNumber, bool toStrongPool) public payable {
    uint256 value = msg.value;
    for (uint16 i = 1; i <= entityNodeCount[msg.sender]; i++) {
      uint256 reward = getRewardByBlock(msg.sender, i, blockNumber);
      uint256 fee = reward.mul(claimingFeeNumerator).div(claimingFeeDenominator);
      require(value >= fee, "invalid fee");
      if (reward > 0) {
        require(this.claim{value : fee}(i, blockNumber, toStrongPool), "claim failed");
      }
      value = value.sub(fee);
    }
  }

  function payAll(uint256 nodeCount) public payable {
    require(nodeCount > 0, "invalid value");
    require(msg.value == recurringNaaSFeeInWei.mul(nodeCount), "invalid fee");

    for (uint16 nodeId = 1; nodeId <= entityNodeCount[msg.sender]; nodeId++) {
      if (!canBePaid(msg.sender, nodeId)) {
        continue;
      }

      this.payFee{value : recurringNaaSFeeInWei}(nodeId);
      nodeCount = nodeCount.sub(1);
    }

    require(nodeCount == 0, "invalid count");
  }

  function addNFTBonusContract(address _contract) public {
    require(msg.sender == admin || msg.sender == serviceAdmin || msg.sender == superAdmin);

    strongNFTBonus = StrongNFTBonusInterface(_contract);
  }

  function disableNodeAdmin(address entity, uint128 nodeId) public {
    require(msg.sender == admin || msg.sender == serviceAdmin || msg.sender == superAdmin);

    bytes memory id = getNodeId(entity, nodeId);
    entityNodePaidOnBlock[id] = 0;
    entityNodeClaimedOnBlock[id] = 0;

    emit Deactivated(entity, nodeId, entityNodeIsBYON[id], block.number);
  }

  function updateLimits(uint128 _maxNodes, uint256 _maxPaymentPeriods) public {
    require(msg.sender == admin || msg.sender == parameterAdmin || msg.sender == superAdmin);

    maxNodes = _maxNodes;
    maxPaymentPeriods = _maxPaymentPeriods;
  }
}

File 2 of 7 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.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 3 of 7 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.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, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b > a) return (false, 0);
        return (true, a - b);
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, 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 (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a / b);
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a % b);
    }

    /**
     * @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) {
        require(b <= a, "SafeMath: subtraction overflow");
        return a - b;
    }

    /**
     * @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) {
        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, reverting 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) {
        require(b > 0, "SafeMath: division by zero");
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting 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) {
        require(b > 0, "SafeMath: modulo by zero");
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * 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);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * 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);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a % b;
    }
}

File 4 of 7 : StrongPoolInterface.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;

interface StrongPoolInterface {
  function mineFor(address miner, uint256 amount) external;
}

File 5 of 7 : IERC1155Preset.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.2;

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155Preset {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values);

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes calldata data) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data) external;

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);

    /**
     * @dev Creates `amount` new tokens for `to`, of token type `id`.
     *
     * See {ERC1155-_mint}.
     *
     * Requirements:
     *
     * - the caller must have the `MINTER_ROLE`.
     */
    function mint(address to, uint256 id, uint256 amount, bytes memory data) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] variant of {mint}.
     */
    function mintBatch(address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data) external;

    function getOwnerIdByIndex(address owner, uint256 index) external view returns (uint256);

    function getOwnerIdIndex(address owner, uint256 id) external view returns (uint256);
}

File 6 of 7 : StrongNFTBonusInterface.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;

interface StrongNFTBonusInterface {
  function getBonus(address _entity, uint128 _nodeId, uint256 _fromBlock, uint256 _toBlock) external view returns (uint256);
}

File 7 of 7 : rewards.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;

import "@openzeppelin/contracts/math/SafeMath.sol";

library rewards {

    using SafeMath for uint256;

    function blocks(uint256 lastClaimedOnBlock, uint256 newRewardBlock, uint256 blockNumber) internal pure returns (uint256[2] memory) {
        if (lastClaimedOnBlock >= blockNumber) return [uint256(0), uint256(0)];

        if (blockNumber <= newRewardBlock || newRewardBlock == 0) {
            return [blockNumber.sub(lastClaimedOnBlock), uint256(0)];
        }
        else if (lastClaimedOnBlock >= newRewardBlock) {
            return [uint256(0), blockNumber.sub(lastClaimedOnBlock)];
        }
        else {
            return [newRewardBlock.sub(lastClaimedOnBlock), blockNumber.sub(newRewardBlock)];
        }
    }

}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"miner","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"entity","type":"address"},{"indexed":false,"internalType":"uint128","name":"nodeId","type":"uint128"},{"indexed":false,"internalType":"bool","name":"isBYON","type":"bool"},{"indexed":false,"internalType":"uint256","name":"atBlockNumber","type":"uint256"}],"name":"Deactivated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint128","name":"fromNodeId","type":"uint128"},{"indexed":false,"internalType":"uint128","name":"toNodeId","type":"uint128"},{"indexed":false,"internalType":"bool","name":"isBYON","type":"bool"}],"name":"Migrated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"entity","type":"address"},{"indexed":false,"internalType":"uint128","name":"nodeId","type":"uint128"},{"indexed":false,"internalType":"bool","name":"isBYON","type":"bool"},{"indexed":false,"internalType":"bool","name":"isRenewal","type":"bool"},{"indexed":false,"internalType":"uint256","name":"upToBlockNumber","type":"uint256"}],"name":"Paid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"miner","type":"address"}],"name":"Requested","type":"event"},{"inputs":[],"name":"acceptAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"acceptSuperAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"activeEntities","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"}],"name":"addNFTBonusContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"entity","type":"address"},{"internalType":"uint128","name":"nodeId","type":"uint128"}],"name":"approveBYONNode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"entity","type":"address"},{"internalType":"uint128","name":"nodeId","type":"uint128"}],"name":"canBePaid","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"nodeId","type":"uint128"},{"internalType":"uint256","name":"blockNumber","type":"uint256"},{"internalType":"bool","name":"toStrongPool","type":"bool"}],"name":"claim","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"blockNumber","type":"uint256"},{"internalType":"bool","name":"toStrongPool","type":"bool"}],"name":"claimAll","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"claimingFeeDenominator","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimingFeeInWei","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimingFeeNumerator","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentTraunch","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"desciption","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"entity","type":"address"},{"internalType":"uint128","name":"nodeId","type":"uint128"}],"name":"disableNodeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"entity","type":"address"},{"internalType":"uint128","name":"nodeId","type":"uint128"}],"name":"doesNodeExist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"entities","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"entityActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"entityBlockLastClaimedOn","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"entityIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"entityIsNaaS","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"","type":"bytes"}],"name":"entityNodeClaimedOnBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"entityNodeCount","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"","type":"bytes"}],"name":"entityNodeIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"","type":"bytes"}],"name":"entityNodeIsBYON","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"","type":"bytes"}],"name":"entityNodePaidOnBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"","type":"bytes"}],"name":"entityNodeTraunch","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeCollector","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"entity","type":"address"},{"internalType":"uint128","name":"nodeId","type":"uint128"}],"name":"getNodeId","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"entity","type":"address"},{"internalType":"uint128","name":"nodeId","type":"uint128"}],"name":"getNodePaidOn","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"entity","type":"address"},{"internalType":"uint128","name":"nodeId","type":"uint128"}],"name":"getReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"entity","type":"address"},{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getRewardAll","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"entity","type":"address"},{"internalType":"uint128","name":"nodeId","type":"uint128"},{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getRewardByBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"entity","type":"address"},{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getRewardByBlockLegacy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gracePeriodInBlocks","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"entity","type":"address"}],"name":"hasLegacyNode","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"entity","type":"address"},{"internalType":"uint128","name":"nodeId","type":"uint128"}],"name":"hasMaxPayments","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"entity","type":"address"},{"internalType":"uint128","name":"nodeId","type":"uint128"}],"name":"hasNodeExpired","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"strongTokenAddress","type":"address"},{"internalType":"address","name":"strongPoolAddress","type":"address"},{"internalType":"address","name":"adminAddress","type":"address"},{"internalType":"address","name":"superAdminAddress","type":"address"},{"internalType":"uint256","name":"rewardPerBlockNumeratorValue","type":"uint256"},{"internalType":"uint256","name":"rewardPerBlockDenominatorValue","type":"uint256"},{"internalType":"uint256","name":"naasRewardPerBlockNumeratorValue","type":"uint256"},{"internalType":"uint256","name":"naasRewardPerBlockDenominatorValue","type":"uint256"},{"internalType":"uint256","name":"requestingFeeInWeiValue","type":"uint256"},{"internalType":"uint256","name":"strongFeeInWeiValue","type":"uint256"},{"internalType":"uint256","name":"recurringFeeInWeiValue","type":"uint256"},{"internalType":"uint256","name":"recurringNaaSFeeInWeiValue","type":"uint256"},{"internalType":"uint256","name":"recurringPaymentCycleInBlocksValue","type":"uint256"},{"internalType":"uint256","name":"claimingFeeNumeratorValue","type":"uint256"},{"internalType":"uint256","name":"claimingFeeDenominatorValue","type":"uint256"},{"internalType":"string","name":"desc","type":"string"}],"name":"init","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initDone","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"entity","type":"address"}],"name":"isEntityActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"entity","type":"address"},{"internalType":"uint128","name":"nodeId","type":"uint128"}],"name":"isNodeActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"entity","type":"address"},{"internalType":"uint128","name":"nodeId","type":"uint128"}],"name":"isNodeBYON","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxNodes","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPaymentPeriods","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"nodeId","type":"uint128"},{"internalType":"address","name":"to","type":"address"}],"name":"migrateNode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"naasRequestingFeeInWei","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"naasRewardPerBlockDenominator","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"naasRewardPerBlockDenominatorNew","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"naasRewardPerBlockNumerator","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"naasRewardPerBlockNumeratorNew","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"naasStrongFeeInWei","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"paidOnBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"parameterAdmin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"nodeCount","type":"uint256"}],"name":"payAll","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint128","name":"nodeId","type":"uint128"}],"name":"payFee","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"pendingAdmin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingSuperAdmin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"recurringFeeInWei","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"recurringNaaSFeeInWei","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"recurringPaymentCycleInBlocks","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"removedTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"isNaaS","type":"bool"}],"name":"requestAccess","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"requestPending","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"requestingFeeInWei","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerBlockDenominator","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerBlockDenominatorNew","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerBlockNewEffectiveBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerBlockNumerator","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerBlockNumeratorNew","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"serviceAdmin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"entity","type":"address"},{"internalType":"bool","name":"status","type":"bool"}],"name":"setEntityActiveStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"entity","type":"address"},{"internalType":"uint128","name":"nodeId","type":"uint128"},{"internalType":"bool","name":"isActive","type":"bool"}],"name":"setNodeIsActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"entity","type":"address"},{"internalType":"uint128","name":"nodeId","type":"uint128"},{"internalType":"bool","name":"isNaaS","type":"bool"}],"name":"setNodeIsNaaS","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newPendingAdmin","type":"address"}],"name":"setPendingAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newPendingSuperAdmin","type":"address"}],"name":"setPendingSuperAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"strongFeeInWei","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"strongNFTBonus","outputs":[{"internalType":"contract StrongNFTBonusInterface","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"strongPool","outputs":[{"internalType":"contract StrongPoolInterface","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"strongToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"superAdmin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"entity","type":"address"},{"internalType":"uint128","name":"nodeId","type":"uint128"}],"name":"suspendBYONNode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"traunch","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numerator","type":"uint256"},{"internalType":"uint256","name":"denominator","type":"uint256"}],"name":"updateClaimingFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"newFeeCollector","type":"address"}],"name":"updateFeeCollector","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"blocks","type":"uint256"}],"name":"updateGracePeriodInBlocks","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"_maxNodes","type":"uint128"},{"internalType":"uint256","name":"_maxPaymentPeriods","type":"uint256"}],"name":"updateLimits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numerator","type":"uint256"},{"internalType":"uint256","name":"denominator","type":"uint256"}],"name":"updateNaaSRewardPerBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"feeInWei","type":"uint256"}],"name":"updateNaasRequestingFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"feeInWei","type":"uint256"}],"name":"updateNaasStrongFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newParameterAdmin","type":"address"}],"name":"updateParameterAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"feeInWei","type":"uint256"}],"name":"updateRecurringFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"feeInWei","type":"uint256"}],"name":"updateRecurringNaaSFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"blocks","type":"uint256"}],"name":"updateRecurringPaymentCycleInBlocks","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"feeInWei","type":"uint256"}],"name":"updateRequestingFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numerator","type":"uint256"},{"internalType":"uint256","name":"denominator","type":"uint256"}],"name":"updateRewardPerBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numerator","type":"uint256"},{"internalType":"uint256","name":"denominator","type":"uint256"},{"internalType":"uint256","name":"numeratorNass","type":"uint256"},{"internalType":"uint256","name":"denominatorNass","type":"uint256"},{"internalType":"uint256","name":"effectiveBlock","type":"uint256"}],"name":"updateRewardPerBlockNew","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newServiceAdmin","type":"address"}],"name":"updateServiceAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"feeInWei","type":"uint256"}],"name":"updateStrongFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"destination","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b50615cae80620000216000396000f3fe6080604052600436106105c45760003560e01c80638aa9a37f116102f3578063cff6e51f1161019b578063e195232e116100e7578063f28b039e116100a0578063f851a4401161007a578063f851a44014611996578063fc6ccdb5146119ab578063fed0a20e146119ed578063ffbb698914611a02576105c4565b8063f28b039e1461191e578063f3368f9014611933578063f3fef3a31461195d576105c4565b8063e195232e14611876578063e4ae0c8a1461188b578063e603c270146118b5578063e7f9cefd146118ca578063e877db1a146118df578063ed5998da14611909576105c4565b8063d4bd894711610154578063da7169b31161012e578063da7169b3146117fe578063da998dca14611837578063dc0bbf081461184c578063ddf0185f14611861576105c4565b8063d4bd894714611792578063d95210d0146117d4578063d9df77de146117e9576105c4565b8063cff6e51f14611607578063d2c35ce81461161c578063d38f887e1461164f578063d39ca7de14611691578063d48ba486146116c4578063d4aadbc614611775576105c4565b8063ad0279a71161025a578063c2b2fdca11610213578063c4ac59b2116101ed578063c4ac59b214611453578063c5a2928b14611468578063c723143f1461149b578063c8b81e15146115bf576105c4565b8063c2b2fdca14611414578063c3d5864f14611429578063c415b95c1461143e576105c4565b8063ad0279a714611294578063ad553eef14611345578063ae749c4214611378578063b021465f146113a2578063b6b55f25146113d5578063c0f0622d146113ff576105c4565b806398b40442116102ac57806398b404421461110d57806399e6f700146111be5780639edb4fb7146111d3578063a77e2825146111fd578063a978dab71461124c578063aa5c3ab41461127f576105c4565b80638aa9a37f1461104e5780638ac2f9dd1461107e5780638d0c479b146110b95780639162c594146110ce5780639548f1e6146110e3578063965d61b9146110f8576105c4565b806334dce6b31161047157806367cb6526116103bd578063798f991c116103765780637c05d6d8116103505780637c05d6d814610ebc5780638123fdbb14610f6d578063857d49d51461102457806387f48f4e14611039576105c4565b8063798f991c14610e335780637a5d5cf414610e7d5780637ba9092814610e92576105c4565b806367cb652614610d4057806368acd04214610d555780636c52ec1014610d6a5780636f30015514610dac5780636f36c10c14610dc1578063778824a514610df1576105c4565b80634c359aeb1161042a5780634eba71cd116104045780634eba71cd14610c955780635c4f18fa14610caa578063623ef91014610cec5780636331883b14610d16576105c4565b80634c359aeb14610bfc5780634c8024cc14610c2f5780634dd18bf514610c62576105c4565b806334dce6b314610ae15780633839239514610b1457806339941fa414610b3e5780633bb58b6714610b7257806340b584b414610bb457806348028d6314610be7576105c4565b80631d851bbd1161053057806328333d15116104e95780632fc29e0e116104c35780632fc29e0e146109eb57806330fd63b614610a2d578063326f107314610a6657806332fc530e14610a9f576105c4565b806328333d151461095957806329575f6a146109a35780632b6b66bb146109b8576105c4565b80631d851bbd1461080b578063255ebc8d14610820578063266655621461086257806326782247146108a4578063268e5e4f146108d5578063272dff7314610917576105c4565b80630f694584116105825780630f694584146106c25780630fe48b36146106e85780631585dc28146106fd57806316f28a2a14610712578063198858981461074557806319a1f5ae1461075a576105c4565b8062a46917146105c957806301c0775c146105f057806305eec2891461063757806309a07fd2146106565780630a8d1be21461067d5780630e18b681146106ad575b600080fd5b6105ee600480360360408110156105df57600080fd5b50803590602001351515611a35565b005b3480156105fc57600080fd5b506106236004803603602081101561061357600080fd5b50356001600160a01b0316611bba565b604080519115158252519081900360200190f35b6105ee6004803603602081101561064d57600080fd5b50351515611c07565b34801561066257600080fd5b5061066b612106565b60408051918252519081900360200190f35b34801561068957600080fd5b506105ee600480360360408110156106a057600080fd5b508035906020013561210c565b3480156106b957600080fd5b506105ee612167565b6105ee600480360360208110156106d857600080fd5b50356001600160801b03166121f6565b3480156106f457600080fd5b5061066b6125fb565b34801561070957600080fd5b5061066b612601565b34801561071e57600080fd5b506106236004803603602081101561073557600080fd5b50356001600160a01b0316612607565b34801561075157600080fd5b5061066b61261c565b34801561076657600080fd5b5061066b6004803603602081101561077d57600080fd5b810190602081018135600160201b81111561079757600080fd5b8201836020820111156107a957600080fd5b803590602001918460018302840111600160201b831117156107ca57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550612622945050505050565b34801561081757600080fd5b5061066b61263f565b34801561082c57600080fd5b506106236004803603604081101561084357600080fd5b5080356001600160a01b031690602001356001600160801b0316612645565b34801561086e57600080fd5b506106236004803603604081101561088557600080fd5b5080356001600160a01b031690602001356001600160801b03166126fc565b3480156108b057600080fd5b506108b961277a565b604080516001600160a01b039092168252519081900360200190f35b3480156108e157600080fd5b5061066b600480360360408110156108f857600080fd5b5080356001600160a01b031690602001356001600160801b0316612789565b34801561092357600080fd5b506106236004803603604081101561093a57600080fd5b5080356001600160a01b031690602001356001600160801b0316612801565b34801561096557600080fd5b506105ee6004803603606081101561097c57600080fd5b506001600160a01b03813516906001600160801b036020820135169060400135151561287c565b3480156109af57600080fd5b506108b9612ab7565b3480156109c457600080fd5b5061066b600480360360208110156109db57600080fd5b50356001600160a01b0316612ac6565b3480156109f757600080fd5b506105ee60048036036040811015610a0e57600080fd5b5080356001600160a01b031690602001356001600160801b0316612ad8565b348015610a3957600080fd5b5061066b60048036036040811015610a5057600080fd5b506001600160a01b038135169060200135612c18565b348015610a7257600080fd5b506105ee60048036036040811015610a8957600080fd5b506001600160801b038135169060200135612d02565b348015610aab57600080fd5b506105ee60048036036040811015610ac257600080fd5b5080356001600160a01b031690602001356001600160801b0316612d6e565b348015610aed57600080fd5b5061062360048036036020811015610b0457600080fd5b50356001600160a01b0316612f4a565b348015610b2057600080fd5b506105ee60048036036020811015610b3757600080fd5b5035612f90565b61062360048036036060811015610b5457600080fd5b506001600160801b0381351690602081013590604001351515612fdb565b348015610b7e57600080fd5b5061066b60048036036040811015610b9557600080fd5b5080356001600160a01b031690602001356001600160801b0316613801565b348015610bc057600080fd5b506105ee60048036036020811015610bd757600080fd5b50356001600160a01b031661380e565b348015610bf357600080fd5b506108b961385a565b348015610c0857600080fd5b5061066b60048036036020811015610c1f57600080fd5b50356001600160a01b0316613869565b348015610c3b57600080fd5b5061066b60048036036020811015610c5257600080fd5b50356001600160a01b031661387b565b348015610c6e57600080fd5b506105ee60048036036020811015610c8557600080fd5b50356001600160a01b031661388d565b348015610ca157600080fd5b5061066b6138cb565b348015610cb657600080fd5b5061062360048036036040811015610ccd57600080fd5b5080356001600160a01b031690602001356001600160801b03166138d1565b348015610cf857600080fd5b506105ee60048036036020811015610d0f57600080fd5b503561390a565b348015610d2257600080fd5b506108b960048036036020811015610d3957600080fd5b5035613955565b348015610d4c57600080fd5b5061066b61397c565b348015610d6157600080fd5b5061066b613982565b348015610d7657600080fd5b5061062360048036036040811015610d8d57600080fd5b5080356001600160a01b031690602001356001600160801b0316613988565b348015610db857600080fd5b5061066b613a3c565b348015610dcd57600080fd5b506105ee60048036036040811015610de457600080fd5b5080359060200135613a42565b348015610dfd57600080fd5b5061062360048036036040811015610e1457600080fd5b5080356001600160a01b031690602001356001600160801b0316613a9d565b348015610e3f57600080fd5b506105ee60048036036060811015610e5657600080fd5b506001600160a01b03813516906001600160801b0360208201351690604001351515613b86565b348015610e8957600080fd5b5061066b613c0d565b348015610e9e57600080fd5b506105ee60048036036020811015610eb557600080fd5b5035613c13565b348015610ec857600080fd5b5061066b60048036036020811015610edf57600080fd5b810190602081018135600160201b811115610ef957600080fd5b820183602082011115610f0b57600080fd5b803590602001918460018302840111600160201b83111715610f2c57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550613c6b945050505050565b348015610f7957600080fd5b50610faf60048036036040811015610f9057600080fd5b5080356001600160a01b031690602001356001600160801b0316613c88565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610fe9578181015183820152602001610fd1565b50505050905090810190601f1680156110165780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561103057600080fd5b506108b9613d12565b34801561104557600080fd5b5061066b613d21565b34801561105a57600080fd5b506105ee6004803603604081101561107157600080fd5b5080359060200135613d27565b34801561108a57600080fd5b506105ee600480360360408110156110a157600080fd5b506001600160a01b0381351690602001351515613d82565b3480156110c557600080fd5b5061066b613f3a565b3480156110da57600080fd5b5061066b613f40565b3480156110ef57600080fd5b506108b9613f46565b34801561110457600080fd5b506108b9613f55565b34801561111957600080fd5b506106236004803603602081101561113057600080fd5b810190602081018135600160201b81111561114a57600080fd5b82018360208201111561115c57600080fd5b803590602001918460018302840111600160201b8311171561117d57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550613f64945050505050565b3480156111ca57600080fd5b5061066b613f84565b3480156111df57600080fd5b506105ee600480360360208110156111f657600080fd5b5035613f8a565b34801561120957600080fd5b506112306004803603602081101561122057600080fd5b50356001600160a01b0316613fd5565b604080516001600160801b039092168252519081900360200190f35b34801561125857600080fd5b5061066b6004803603602081101561126f57600080fd5b50356001600160a01b0316613ff0565b34801561128b57600080fd5b5061066b614002565b3480156112a057600080fd5b50610623600480360360208110156112b757600080fd5b810190602081018135600160201b8111156112d157600080fd5b8201836020820111156112e357600080fd5b803590602001918460018302840111600160201b8311171561130457600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550614008945050505050565b34801561135157600080fd5b506105ee6004803603602081101561136857600080fd5b50356001600160a01b0316614028565b34801561138457600080fd5b506105ee6004803603602081101561139b57600080fd5b5035614061565b3480156113ae57600080fd5b50610623600480360360208110156113c557600080fd5b50356001600160a01b03166140ac565b3480156113e157600080fd5b506105ee600480360360208110156113f857600080fd5b50356140c1565b34801561140b57600080fd5b5061062361417e565b34801561142057600080fd5b5061066b614187565b34801561143557600080fd5b5061066b61418d565b34801561144a57600080fd5b506108b9614193565b34801561145f57600080fd5b5061066b6141a2565b34801561147457600080fd5b506105ee6004803603602081101561148b57600080fd5b50356001600160a01b03166141a8565b3480156114a757600080fd5b506105ee60048036036102008110156114bf57600080fd5b6001600160a01b038235811692602081013582169260408201358316926060830135169160808101359160a08201359160c08101359160e08201359161010081013591610120820135916101408101359161016082013591610180810135916101a0820135916101c08101359181019061020081016101e0820135600160201b81111561154b57600080fd5b82018360208201111561155d57600080fd5b803590602001918460018302840111600160201b8311171561157e57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550614210945050505050565b3480156115cb57600080fd5b5061066b600480360360608110156115e257600080fd5b506001600160a01b03813516906001600160801b036020820135169060400135614373565b34801561161357600080fd5b5061066b61491b565b34801561162857600080fd5b506105ee6004803603602081101561163f57600080fd5b50356001600160a01b0316614921565b34801561165b57600080fd5b506105ee600480360360a081101561167257600080fd5b508035906020810135906040810135906060810135906080013561496d565b34801561169d57600080fd5b506105ee600480360360208110156116b457600080fd5b50356001600160a01b03166149de565b3480156116d057600080fd5b5061066b600480360360208110156116e757600080fd5b810190602081018135600160201b81111561170157600080fd5b82018360208201111561171357600080fd5b803590602001918460018302840111600160201b8311171561173457600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550614a50945050505050565b6105ee6004803603602081101561178b57600080fd5b5035614a6d565b34801561179e57600080fd5b506105ee600480360360408110156117b557600080fd5b5080356001600160801b031690602001356001600160a01b0316614c08565b3480156117e057600080fd5b5061066b615222565b3480156117f557600080fd5b5061066b615228565b34801561180a57600080fd5b5061066b6004803603604081101561182157600080fd5b506001600160a01b03813516906020013561522e565b34801561184357600080fd5b506108b9615296565b34801561185857600080fd5b5061066b6152a5565b34801561186d57600080fd5b506112306152ab565b34801561188257600080fd5b506108b96152ba565b34801561189757600080fd5b506105ee600480360360208110156118ae57600080fd5b50356152c9565b3480156118c157600080fd5b50610faf615314565b3480156118d657600080fd5b506105ee6153a2565b3480156118eb57600080fd5b506105ee6004803603602081101561190257600080fd5b503561542b565b34801561191557600080fd5b5061066b615483565b34801561192a57600080fd5b5061066b615489565b34801561193f57600080fd5b506105ee6004803603602081101561195657600080fd5b503561548f565b34801561196957600080fd5b506105ee6004803603604081101561198057600080fd5b506001600160a01b0381351690602001356154da565b3480156119a257600080fd5b506108b96155d8565b3480156119b757600080fd5b506105ee600480360360408110156119ce57600080fd5b5080356001600160a01b031690602001356001600160801b03166155ec565b3480156119f957600080fd5b506106236156bf565b348015611a0e57600080fd5b5061062360048036036020811015611a2557600080fd5b50356001600160a01b03166156c8565b3460015b336000908152602960205260409020546001600160801b031661ffff821611611bb4576000611a6d338361ffff1687614373565b90506000611a92600e54611a8c600d54856156dd90919063ffffffff16565b90615736565b905080841015611ad7576040805162461bcd60e51b815260206004820152600b60248201526a696e76616c69642066656560a81b604482015290519081900360640190fd5b8115611b9e5760408051630e6507e960e21b815261ffff85166004820152602481018890528615156044820152905130916339941fa491849160648082019260209290919082900301818588803b158015611b3157600080fd5b505af1158015611b45573d6000803e3d6000fd5b50505050506040513d6020811015611b5c57600080fd5b5051611b9e576040805162461bcd60e51b815260206004820152600c60248201526b18db185a5b4819985a5b195960a21b604482015290519081900360640190fd5b611ba8848261579d565b93505050600101611a39565b50505050565b6001600160a01b03811660009081526018602052604081205460ff168015611c0157506001600160a01b0382166000908152602960205260409020546001600160801b0316155b92915050565b603154336000908152602960205260409020546001600160801b03918216911610611c69576040805162461bcd60e51b815260206004820152600d60248201526c1b1a5b5a5d081c995858da1959609a1b604482015290519081900360640190fd5b600080611c7533611bba565b15611c8357611c83336157fa565b336000818152602960205260409020546001600160801b031660010190606090611cad9083613c88565b90508415611cd657601f54602054601c549195509350611cce906001615a9b565b601c55611d52565b600f549350601054925060016025826040518082805190602001908083835b60208310611d145780518252601f199092019160209182019101611cf5565b51815160209384036101000a60001901801990921691161790529201948552506040519384900301909220805460ff19169315159390931790925550505b833414611d94576040805162461bcd60e51b815260206004820152600b60248201526a696e76616c69642066656560a81b604482015290519081900360640190fd5b436027826040518082805190602001908083835b60208310611dc75780518252601f199092019160209182019101611da8565b51815160209384036101000a6000190180199092169116179052920194855250604051938490038101842094909455505082514392602892859290918291908401908083835b60208310611e2c5780518252601f199092019160209182019101611e0d565b51815160001960209485036101000a0190811690199190911617905292019485525060408051948590038201852095909555336000908152602990915293842080546001600160801b03808216600101166001600160801b031990911617905550506006546001600160a01b0316913480156108fc02929091818181858888f19350505050158015611ec2573d6000803e3d6000fd5b50600754604080516323b872dd60e01b81523360048201523060248201526044810186905290516001600160a01b03909216916323b872dd916064808201926020929091908290030181600087803b158015611f1d57600080fd5b505af1158015611f31573d6000803e3d6000fd5b505050506040513d6020811015611f4757600080fd5b50506007546006546040805163a9059cbb60e01b81526001600160a01b039283166004820152602481018790529051919092169163a9059cbb9160448083019260209291908290030181600087803b158015611fa257600080fd5b505af1158015611fb6573d6000803e3d6000fd5b505050506040513d6020811015611fcc57600080fd5b5050604051815133917f39b0a0620bb668047ab7248973ddfd93d53dff1d4952bd2d56bbf5934edc1fd0918591602591869190819060208401908083835b602083106120295780518252601f19909201916020918201910161200a565b51815160209384036101000a6000190180199092169116179052920194855250604051938490038101842054601354895160ff90921695600095506120d0945090926027928b92918291908401908083835b6020831061209a5780518252601f19909201916020918201910161207b565b51815160209384036101000a6000190180199092169116179052920194855250604051938490030190922054929150615a9b9050565b604080516001600160801b0390951685529215156020850152901515838301526060830152519081900360800190a25050505050565b600d5481565b60005461010090046001600160a01b031633148061213457506005546001600160a01b031633145b8061214957506002546001600160a01b031633145b61215257600080fd5b8061215c57600080fd5b600991909155600a55565b6001546001600160a01b03163314801561218057503315155b6121c4576040805162461bcd60e51b815260206004820152601060248201526f3737ba103832b73234b733a0b236b4b760811b604482015290519081900360640190fd5b6001805460008054610100600160a81b0319166101006001600160a01b038416021790556001600160a01b0319169055565b60003330146122055733612207565b325b905060606122158284613c88565b905061222082611bba565b1561222e5761222e826157fa565b61223882846126fc565b612278576040805162461bcd60e51b815260206004820152600c60248201526b191bd95cdb9d08195e1a5cdd60a21b604482015290519081900360640190fd5b6122828284613988565b156122bf576040805162461bcd60e51b8152602060048201526008602482015267746f6f206c61746560c01b604482015290519081900360640190fd5b6122c98284612645565b15612306576040805162461bcd60e51b81526020600482015260086024820152673a37b79039b7b7b760c11b604482015290519081900360640190fd5b6025816040518082805190602001908083835b602083106123385780518252601f199092019160209182019101612319565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092205460ff161591506123b990505760115434146123b4576040805162461bcd60e51b815260206004820152600b60248201526a696e76616c69642066656560a81b604482015290519081900360640190fd5b6123fd565b60125434146123fd576040805162461bcd60e51b815260206004820152600b60248201526a696e76616c69642066656560a81b604482015290519081900360640190fd5b6006546040516001600160a01b03909116903480156108fc02916000818181858888f19350505050158015612436573d6000803e3d6000fd5b5061246e6013546027836040518082805190602001908083836020831061209a5780518252601f19909201916020918201910161207b565b6027826040518082805190602001908083835b602083106124a05780518252601f199092019160209182019101612481565b51815160209384036101000a6000190180199092169116179052920194855250604051938490038101842094909455505082516001600160a01b038516927f39b0a0620bb668047ab7248973ddfd93d53dff1d4952bd2d56bbf5934edc1fd092879260259287929182918401908083835b602083106125305780518252601f199092019160209182019101612511565b51815160209384036101000a6000190180199092169116179052920194855250604051938490038101842054885160ff9091169460019450602793508992909182918401908083835b602083106125985780518252601f199092019160209182019101612579565b51815160001960209485036101000a01908116901991909116179052920194855250604080519485900382018520546001600160801b039098168552951515908401525050901515818301526060810192909252519081900360800190a2505050565b60135481565b601f5481565b60186020526000908152604090205460ff1681565b600a5481565b805160208183018101805160288252928201919093012091525481565b602e5481565b600060606126538484613c88565b905060006027826040518082805190602001908083835b602083106126895780518252601f19909201916020918201910161266a565b51815160209384036101000a6000190180199092169116179052920194855250604051938490030190922054603254601354919450600093506126d892506126d191906156dd565b4390615a9b565b9050806126f060135484615a9b90919063ffffffff16565b10159695505050505050565b6000606061270a8484613c88565b905060006027826040518082805190602001908083835b602083106127405780518252601f199092019160209182019101612721565b51815160209384036101000a6000190180199092169116179052920194855250604051938490030190922054929092119695505050505050565b6001546001600160a01b031681565b600060606127978484613c88565b90506027816040518082805190602001908083835b602083106127cb5780518252601f1990920191602091820191016127ac565b51815160209384036101000a60001901801990921691161790529201948552506040519384900301909220549695505050505050565b6000606061280f8484613c88565b90506025816040518082805190602001908083835b602083106128435780518252601f199092019160209182019101612824565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092205460ff169695505050505050565b60005461010090046001600160a01b03163314806128a457506004546001600160a01b031633145b806128b957506002546001600160a01b031633145b6128c257600080fd5b60606128ce8484613c88565b905081801561293e57506024816040518082805190602001908083835b6020831061290a5780518252601f1990920191602091820191016128eb565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092205460ff16159150505b156129bc57601c54612951906001615a9b565b601c81905550436028826040518082805190602001908083835b6020831061298a5780518252601f19909201916020918201910161296b565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092209290925550505b81158015612a2a57506024816040518082805190602001908083835b602083106129f75780518252601f1990920191602091820191016129d8565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092205460ff169150505b15612a4157601c54612a3d90600161579d565b601c555b816024826040518082805190602001908083835b60208310612a745780518252601f199092019160209182019101612a55565b51815160209384036101000a60001901801990921691161790529201948552506040519384900301909220805460ff191693151593909317909255505050505050565b6002546001600160a01b031681565b60226020526000908152604090205481565b60005461010090046001600160a01b0316331480612b0057506004546001600160a01b031633145b80612b1557506002546001600160a01b031633145b612b1e57600080fd5b6060612b2a8383613c88565b905060016024826040518082805190602001908083835b60208310612b605780518252601f199092019160209182019101612b41565b51815160209384036101000a60001901801990921691161790529201948552506040519384900381018420805460ff191695151595909517909455505082514392602892859290918291908401908083835b60208310612bd15780518252601f199092019160209182019101612bb2565b51815160209384036101000a60001901801990921691161790529201948552506040519384900301909220929092555050601c54612c10906001615a9b565b601c55505050565b600043821115612c2a57506000611c01565b6001600160a01b038316600090815260156020526040902054612c4f57506000611c01565b6001600160a01b038316600090815260156020526040902054821015612c7757506000611c01565b601c54612c8657506000611c01565b6001600160a01b038316600090815260156020526040812054612caa90849061579d565b6001600160a01b0385166000908152601a602052604081205491925090819060ff1615612cde575050600b54600c54612ce7565b5050600954600a545b6000612cf782611a8c86866156dd565b979650505050505050565b60005461010090046001600160a01b0316331480612d2a57506005546001600160a01b031633145b80612d3f57506002546001600160a01b031633145b612d4857600080fd5b603180546001600160801b0319166001600160801b039390931692909217909155603255565b60005461010090046001600160a01b0316331480612d9657506004546001600160a01b031633145b80612dab57506002546001600160a01b031633145b612db457600080fd5b6060612dc08383613c88565b905060006027826040518082805190602001908083835b60208310612df65780518252601f199092019160209182019101612dd7565b51815160209384036101000a600019018019909216911617905292019485525060405193849003810184209490945550508251600092602892859290918291908401908083835b60208310612e5c5780518252601f199092019160209182019101612e3d565b51815160209384036101000a6000190180199092169116179052920194855250604051938490038101842094909455505082516001600160a01b038616927f8f09ef60eb932f902f4199ddb720f587b53565a6a490484db1a653e85b799dc492869260259287929182918401908083835b60208310612eec5780518252601f199092019160209182019101612ecd565b51815160001960209485036101000a01908116901991909116179052920194855250604080519485900382018520546001600160801b03909616855260ff9095161515908401525050438183015290519081900360600190a2505050565b6001600160a01b03811660009081526018602052604081205460ff1680611c015750612f778260016126fc565b8015611c015750612f89826001613988565b1592915050565b60005461010090046001600160a01b0316331480612fb857506005546001600160a01b031633145b80612fcd57506002546001600160a01b031633145b612fd657600080fd5b601255565b60008033301480612ff65750602f546001600160a01b031633145b6130005733613002565b325b905060606130108287613c88565b905061301b82611bba565b1561302957613029826157fa565b60006028826040518082805190602001908083835b6020831061305d5780518252601f19909201916020918201910161303e565b51815160209384036101000a6000190180199092169116179052920194855250604051938490030190922054151591506130fa9050576027826040518082805190602001908083835b602083106130c55780518252601f1990920191602091820191016130a6565b51815160209384036101000a6000190180199092169116179052920194855250604051938490030190922054915061315c9050565b6028826040518082805190602001908083835b6020831061312c5780518252601f19909201916020918201910161310d565b51815160209384036101000a60001901801990921691161790529201948552506040519384900301909220549150505b905060006027836040518082805190602001908083835b602083106131925780518252601f199092019160209182019101613173565b51815160001960209485036101000a019081169019919091161790529201948552506040519384900301909220549250505081613206576040805162461bcd60e51b815260206004820152600d60248201526c1b995d995c8818db185a5b5959609a1b604482015290519081900360640190fd5b4387111561324b576040805162461bcd60e51b815260206004820152600d60248201526c696e76616c696420626c6f636b60981b604482015290519081900360640190fd5b81871161328a576040805162461bcd60e51b81526020600482015260086024820152673a37b79039b7b7b760c11b604482015290519081900360640190fd5b6025836040518082805190602001908083835b602083106132bc5780518252601f19909201916020918201910161329d565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092205460ff1615915081905061335b57506024836040518082805190602001908083835b602083106133285780518252601f199092019160209182019101613309565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092205460ff169150505b613399576040805162461bcd60e51b815260206004820152600a6024820152696e6f742061637469766560b01b604482015290519081900360640190fd5b6025836040518082805190602001908083835b602083106133cb5780518252601f1990920191602091820191016133ac565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092205460ff1615915050801561340b575060125415155b8061348257506025836040518082805190602001908083835b602083106134435780518252601f199092019160209182019101613424565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092205460ff169150508015613482575060115415155b156134d257601354613495908290615a9b565b87106134d2576040805162461bcd60e51b81526020600482015260076024820152667061792066656560c81b604482015290519081900360640190fd5b60006134df858a8a614373565b905060008111613522576040805162461bcd60e51b81526020600482015260096024820152681b9bc81c995dd85c9960ba1b604482015290519081900360640190fd5b600061353f600e54611a8c600d54856156dd90919063ffffffff16565b905080341015613584576040805162461bcd60e51b815260206004820152600b60248201526a696e76616c69642066656560a81b604482015290519081900360640190fd5b6006546040516001600160a01b03909116903480156108fc02916000818181858888f193505050501580156135bd573d6000803e3d6000fd5b5087156136bb576007546008546040805163095ea7b360e01b81526001600160a01b039283166004820152602481018690529051919092169163095ea7b39160448083019260209291908290030181600087803b15801561361d57600080fd5b505af1158015613631573d6000803e3d6000fd5b505050506040513d602081101561364757600080fd5b5050600854604080516330d6a97560e01b81526001600160a01b03898116600483015260248201869052915191909216916330d6a97591604480830192600092919082900301818387803b15801561369e57600080fd5b505af11580156136b2573d6000803e3d6000fd5b5050505061373e565b6007546040805163a9059cbb60e01b81526001600160a01b038981166004830152602482018690529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561371157600080fd5b505af1158015613725573d6000803e3d6000fd5b505050506040513d602081101561373b57600080fd5b50505b60145461374b908361579d565b601481905550886028866040518082805190602001908083835b602083106137845780518252601f199092019160209182019101613765565b51815160209384036101000a60001901801990921691161790529201948552506040805194859003820185209590955586845293516001600160a01b038b16947fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a948290030192509050a2600196505050505050505b9392505050565b60006137fa838343614373565b6001600160a01b03811661382157600080fd5b6002546001600160a01b0316331461383857600080fd5b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6003546001600160a01b031681565b60156020526000908152604090205481565b60176020526000908152604090205481565b60005461010090046001600160a01b031633146138a957600080fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b602c5481565b60006138dd8383612801565b1580156138f157506138ef8383613988565b155b80156137fa57506139028383612645565b159392505050565b60005461010090046001600160a01b031633148061393257506005546001600160a01b031633145b8061394757506002546001600160a01b031633145b61395057600080fd5b601055565b6016818154811061396257fe5b6000918252602090912001546001600160a01b0316905081565b60125481565b60235481565b600060606139968484613c88565b905060006027826040518082805190602001908083835b602083106139cc5780518252601f1990920191602091820191016139ad565b51815160209384036101000a60001901801990921691161790529201948552506040519384900301909220549250613a089150869050856126fc565b1580613a335750613a30603054613a2a60135484615a9b90919063ffffffff16565b90615a9b565b43115b95945050505050565b600f5481565b60005461010090046001600160a01b0316331480613a6a57506005546001600160a01b031633145b80613a7f57506002546001600160a01b031633145b613a8857600080fd5b80613a9257600080fd5b600b91909155600c55565b60006060613aab8484613c88565b90506024816040518082805190602001908083835b60208310613adf5780518252601f199092019160209182019101613ac0565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092205460ff169150819050613b7e57506025816040518082805190602001908083835b60208310613b4a5780518252601f199092019160209182019101613b2b565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092205460ff16159150505b949350505050565b60005461010090046001600160a01b0316331480613bae57506004546001600160a01b031633145b80613bc357506002546001600160a01b031633145b613bcc57600080fd5b6060613bd88484613c88565b9050811560258260405180828051906020019080838360208310612a745780518252601f199092019160209182019101612a55565b602a5481565b60005461010090046001600160a01b0316331480613c3b57506005546001600160a01b031633145b80613c5057506002546001600160a01b031633145b613c5957600080fd5b60008111613c6657600080fd5b603055565b805160208183018101805160268252928201919093012091525481565b606060006001600160801b038316613cc4576001600160a01b0384166000908152602960205260409020546001600160801b0316600101613cc6565b825b6040805160609690961b6bffffffffffffffffffffffff1916602087015260809190911b6001600160801b03191660348601528051808603602401815260449095019052509192915050565b6005546001600160a01b031681565b600e5481565b60005461010090046001600160a01b0316331480613d4f57506005546001600160a01b031633145b80613d6457506002546001600160a01b031633145b613d6d57600080fd5b80613d7757600080fd5b600d91909155600e55565b60005461010090046001600160a01b0316331480613daa57506004546001600160a01b031633145b80613dbf57506002546001600160a01b031633145b613dc857600080fd5b6001600160a01b0382166000818152601760205260409020546016805491929183908110613df257fe5b6000918252602090912001546001600160a01b031614613e4a576040805162461bcd60e51b815260206004820152600e60248201526d696e76616c696420656e7469747960901b604482015290519081900360640190fd5b6001600160a01b03831660009081526018602052604090205460ff1615158215151415613eac576040805162461bcd60e51b815260206004820152600b60248201526a185b1c9958591e481cd95d60aa1b604482015290519081900360640190fd5b6001600160a01b0383166000908152601860205260409020805460ff19168315801591909117909155613f0a57601c54613ee7906001615a9b565b601c556001600160a01b0383166000908152601560205260409020439055613f35565b601c54613f1890600161579d565b601c556001600160a01b0383166000908152601560205260408120555b505050565b60205481565b60115481565b602f546001600160a01b031681565b6007546001600160a01b031681565b805160208183018101805160258252928201919093012091525460ff1681565b60095481565b60005461010090046001600160a01b0316331480613fb257506005546001600160a01b031633145b80613fc757506002546001600160a01b031633145b613fd057600080fd5b601f55565b6029602052600090815260409020546001600160801b031681565b601b6020526000908152604090205481565b60145481565b805160208183018101805160248252928201919093012091525460ff1681565b6002546001600160a01b0316331461403f57600080fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b60005461010090046001600160a01b031633148061408957506005546001600160a01b031633145b8061409e57506002546001600160a01b031633145b6140a757600080fd5b600f55565b601a6020526000908152604090205460ff1681565b6002546001600160a01b031633146140d857600080fd5b600081116140e557600080fd5b600754604080516323b872dd60e01b81523360048201523060248201526044810184905290516001600160a01b03909216916323b872dd916064808201926020929091908290030181600087803b15801561413f57600080fd5b505af1158015614153573d6000803e3d6000fd5b505050506040513d602081101561416957600080fd5b50506014546141789082615a9b565b60145550565b60215460ff1681565b601e5481565b60305481565b6006546001600160a01b031681565b600c5481565b60005461010090046001600160a01b03163314806141d057506004546001600160a01b031633145b806141e557506002546001600160a01b031633145b6141ee57600080fd5b602f80546001600160a01b0319166001600160a01b0392909216919091179055565b60005460ff1615614254576040805162461bcd60e51b8152602060048201526009602482015268696e697420646f6e6560b81b604482015290519081900360640190fd5b8f600760006101000a8154816001600160a01b0302191690836001600160a01b031602179055508e600860006101000a8154816001600160a01b0302191690836001600160a01b031602179055508d600060016101000a8154816001600160a01b0302191690836001600160a01b031602179055508c600260006101000a8154816001600160a01b0302191690836001600160a01b031602179055508b6009819055508a600a8190555089600b8190555088600c8190555087600f8190555086601081905550856011819055508460128190555082600d8190555081600e819055508360138190555080601d9080519060200190614353929190615ba6565b50506000805460ff19166001179055505050505050505050505050505050565b600060606143818585613c88565b905061438c85611bba565b156143a35761439b8584612c18565b9150506137fa565b60006028826040518082805190602001908083835b602083106143d75780518252601f1990920191602091820191016143b8565b51815160209384036101000a6000190180199092169116179052920194855250604051938490030190922054151591506144749050576027826040518082805190602001908083835b6020831061443f5780518252601f199092019160209182019101614420565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092205491506144d69050565b6028826040518082805190602001908083835b602083106144a65780518252601f199092019160209182019101614487565b51815160209384036101000a60001901801990921691161790529201948552506040519384900301909220549150505b9050438411156144eb576000925050506137fa565b806144fb576000925050506137fa565b8084101561450e576000925050506137fa565b601c54614520576000925050506137fa565b6025826040518082805190602001908083835b602083106145525780518252601f199092019160209182019101614533565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092205460ff1691505080156145f157506024826040518082805190602001908083835b602083106145bd5780518252601f19909201916020918201910161459e565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092205460ff16159150505b15614601576000925050506137fa565b60006025836040518082805190602001908083835b602083106146355780518252601f199092019160209182019101614616565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092205460ff169150614674905057600b54614678565b6009545b905060006025846040518082805190602001908083835b602083106146ae5780518252601f19909201916020918201910161468f565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092205460ff1691506146ed905057600c546146f1565b600a545b905060006025856040518082805190602001908083835b602083106147275780518252601f199092019160209182019101614708565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092205460ff169150614766905057602c5461476a565b602a545b905060006025866040518082805190602001908083835b602083106147a05780518252601f199092019160209182019101614781565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092205460ff1691506147df905057602d546147e3565b602b545b602f549091506000906001600160a01b0316614800576000614897565b602f546040805163b07d9cbb60e01b81526001600160a01b038e811660048301526001600160801b038e166024830152604482018a9052606482018d90529151919092169163b07d9cbb916084808301926020929190829003018186803b15801561486a57600080fd5b505afa15801561487e573d6000803e3d6000fd5b505050506040513d602081101561489457600080fd5b50515b90506148a1615c24565b6148ae87602e548c615af5565b905060008086116148c05760006148d7565b6148d786611a8c898560005b6020020151906156dd565b905060008085116148e95760006148f9565b6148f985611a8c888660016148cc565b905061490984613a2a8484615a9b565b9e9d5050505050505050505050505050565b602d5481565b6001600160a01b03811661493457600080fd5b6002546001600160a01b0316331461494b57600080fd5b600680546001600160a01b0319166001600160a01b0392909216919091179055565b60005461010090046001600160a01b031633148061499557506005546001600160a01b031633145b806149aa57506002546001600160a01b031633145b6149b357600080fd5b602a859055602b849055602c839055602d829055806149d257436149d4565b805b602e555050505050565b6002546001600160a01b03163314614a2e576040805162461bcd60e51b815260206004820152600e60248201526d3737ba1039bab832b920b236b4b760911b604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b805160208183018101805160278252928201919093012091525481565b60008111614ab2576040805162461bcd60e51b815260206004820152600d60248201526c696e76616c69642076616c756560981b604482015290519081900360640190fd5b601254614abf90826156dd565b3414614b00576040805162461bcd60e51b815260206004820152600b60248201526a696e76616c69642066656560a81b604482015290519081900360640190fd5b60015b336000908152602960205260409020546001600160801b031661ffff821611614bc157614b34338261ffff166138d1565b614b3d57614bb9565b306001600160a01b0316630f694584601254836040518363ffffffff1660e01b8152600401808261ffff1681526020019150506000604051808303818588803b158015614b8957600080fd5b505af1158015614b9d573d6000803e3d6000fd5b5050505050614bb660018361579d90919063ffffffff16565b91505b600101614b03565b508015614c05576040805162461bcd60e51b815260206004820152600d60248201526c1a5b9d985b1a590818dbdd5b9d609a1b604482015290519081900360640190fd5b50565b614c1133611bba565b15614c1f57614c1f336157fa565b614c2881611bba565b15614c3657614c36816157fa565b614c4033836126fc565b614c80576040805162461bcd60e51b815260206004820152600c60248201526b191bd95cdb9d08195e1a5cdd60a21b604482015290519081900360640190fd5b6001600160a01b0381166000908152602960205260409020546001600160801b03166001016060614cb13385613c88565b90506060614cbf8484613c88565b90506024826040518082805190602001908083835b60208310614cf35780518252601f199092019160209182019101614cd4565b51815160209384036101000a6000190180199092169116179052920194855250604051938490038101842054855160ff9091169460249450869350918291908401908083835b60208310614d585780518252601f199092019160209182019101614d39565b51815160209384036101000a60001901801990921691161790529201948552506040519384900381018420805460ff1916951515959095179094555050835160259285929182918401908083835b60208310614dc55780518252601f199092019160209182019101614da6565b51815160209384036101000a6000190180199092169116179052920194855250604051938490038101842054855160ff9091169460259450869350918291908401908083835b60208310614e2a5780518252601f199092019160209182019101614e0b565b51815160209384036101000a60001901801990921691161790529201948552506040519384900381018420805460ff1916951515959095179094555050835160279285929182918401908083835b60208310614e975780518252601f199092019160209182019101614e78565b51815160209384036101000a60001901801990921691161790529201948552506040519384900381018420548551909460279450869350918291908401908083835b60208310614ef85780518252601f199092019160209182019101614ed9565b51815160209384036101000a60001901801990921691161790529201948552506040519384900381018420949094555050835160289285929182918401908083835b60208310614f595780518252601f199092019160209182019101614f3a565b51815160209384036101000a60001901801990921691161790529201948552506040519384900381018420548551909460289450869350918291908401908083835b60208310614fba5780518252601f199092019160209182019101614f9b565b51815160209384036101000a6000190180199092169116179052920194855250604080519485900382018520959095556001600160a01b03891660009081526029825294852080546001600160801b0319811660016001600160801b03928316019091161790558651602494889450925082918401908083835b602083106150535780518252601f199092019160209182019101615034565b51815160209384036101000a60001901801990921691161790529201948552506040519384900381018420805460ff19169515159590951790945550508351600092602792869290918291908401908083835b602083106150c55780518252601f1990920191602091820191016150a6565b51815160209384036101000a600019018019909216911617905292019485525060405193849003810184209490945550508351600092602892869290918291908401908083835b6020831061512b5780518252601f19909201916020918201910161510c565b51815160209384036101000a6000190180199092169116179052920194855250604051938490038101842094909455505083516001600160a01b0387169233927f5ba846403c17c6c23ab5f5acb4601b016614564f82bb9def90aa1d3893d4a545928a9289926025928a928291908401908083835b602083106151bf5780518252601f1990920191602091820191016151a0565b51815160001960209485036101000a01908116901991909116179052920194855250604080519485900382018520546001600160801b0397881686529590961690840152505060ff90911615158183015290519081900360600190a35050505050565b600b5481565b60105481565b60008060015b6001600160a01b0385166000908152602960205260409020546001600160801b039081169082161161528e5761528461527d8683600088116152765743615278565b875b614373565b8390615a9b565b9150600101615234565b509392505050565b6004546001600160a01b031681565b601c5481565b6031546001600160801b031681565b6008546001600160a01b031681565b60005461010090046001600160a01b03163314806152f157506005546001600160a01b031633145b8061530657506002546001600160a01b031633145b61530f57600080fd5b602055565b601d805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561539a5780601f1061536f5761010080835404028352916020019161539a565b820191906000526020600020905b81548152906001019060200180831161537d57829003601f168201915b505050505081565b6003546001600160a01b0316331480156153bb57503315155b615404576040805162461bcd60e51b81526020600482015260156024820152743737ba103832b73234b733a9bab832b920b236b4b760591b604482015290519081900360640190fd5b60038054600280546001600160a01b03199081166001600160a01b03841617909155169055565b60005461010090046001600160a01b031633148061545357506005546001600160a01b031633145b8061546857506002546001600160a01b031633145b61547157600080fd5b6000811161547e57600080fd5b601355565b602b5481565b60325481565b60005461010090046001600160a01b03163314806154b757506005546001600160a01b031633145b806154cc57506002546001600160a01b031633145b6154d557600080fd5b601155565b6002546001600160a01b031633146154f157600080fd5b600081116154fe57600080fd5b806014541015615542576040805162461bcd60e51b815260206004820152600a6024820152690dcdee840cadcdeeaced60b31b604482015290519081900360640190fd5b6007546040805163a9059cbb60e01b81526001600160a01b038581166004830152602482018590529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561559857600080fd5b505af11580156155ac573d6000803e3d6000fd5b505050506040513d60208110156155c257600080fd5b50506014546155d1908261579d565b6014555050565b60005461010090046001600160a01b031681565b60005461010090046001600160a01b031633148061561457506004546001600160a01b031633145b8061562957506002546001600160a01b031633145b61563257600080fd5b606061563e8383613c88565b905060006024826040518082805190602001908083835b602083106156745780518252601f199092019160209182019101615655565b51815160209384036101000a60001901801990921691161790529201948552506040519384900301909220805460ff1916931515939093179092555050601c54612c1090600161579d565b60005460ff1681565b60196020526000908152604090205460ff1681565b6000826156ec57506000611c01565b828202828482816156f957fe5b04146137fa5760405162461bcd60e51b8152600401808060200182810382526021815260200180615c586021913960400191505060405180910390fd5b600080821161578c576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161579557fe5b049392505050565b6000828211156157f4576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6060615807826001613c88565b905060156000836001600160a01b03166001600160a01b03168152602001908152602001600020546028826040518082805190602001908083835b602083106158615780518252601f199092019160209182019101615842565b51815160209384036101000a6000190180199092169116179052920194855250604080519485900382018520959095556001600160a01b0387166000908152601b825294909420548551909460279487945092508291908401908083835b602083106158de5780518252601f1990920191602091820191016158bf565b51815160209384036101000a6000190180199092169116179052920194855250604080519485900382018520959095556001600160a01b0387166000908152601a82529490942054855160ff909116159460259487945092508291908401908083835b602083106159605780518252601f199092019160209182019101615941565b51815160209384036101000a60001901801990921691161790529201948552506040519384900381018420805460ff1916951515959095179094555050825160259284929182918401908083835b602083106159cd5780518252601f1990920191602091820191016159ae565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092205460ff16159150615a7790505760016024826040518082805190602001908083835b60208310615a395780518252601f199092019160209182019101615a1a565b51815160209384036101000a60001901801990921691161790529201948552506040519384900301909220805460ff19169315159390931790925550505b505033600090815260296020526040902080546001600160801b0319166001179055565b6000828201838110156137fa576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b615afd615c24565b818410615b1e575060408051808201909152600080825260208201526137fa565b8282111580615b2b575082155b15615b56576040805180820190915280615b45848761579d565b8152602001600081525090506137fa565b828410615b8257604080518082019091526000815260208101615b79848761579d565b905290506137fa565b6040805180820190915280615b97858761579d565b8152602001615b79848661579d565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10615be757805160ff1916838001178555615c14565b82800160010185558215615c14579182015b82811115615c14578251825591602001919060010190615bf9565b50615c20929150615c42565b5090565b60405180604001604052806002906020820280368337509192915050565b5b80821115615c205760008155600101615c4356fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a26469706673582212204f16948bbd60d03aeb9549d9a982a2e100b51b7e807996c2380b147ca770761864736f6c634300060c0033

Deployed Bytecode

0x6080604052600436106105c45760003560e01c80638aa9a37f116102f3578063cff6e51f1161019b578063e195232e116100e7578063f28b039e116100a0578063f851a4401161007a578063f851a44014611996578063fc6ccdb5146119ab578063fed0a20e146119ed578063ffbb698914611a02576105c4565b8063f28b039e1461191e578063f3368f9014611933578063f3fef3a31461195d576105c4565b8063e195232e14611876578063e4ae0c8a1461188b578063e603c270146118b5578063e7f9cefd146118ca578063e877db1a146118df578063ed5998da14611909576105c4565b8063d4bd894711610154578063da7169b31161012e578063da7169b3146117fe578063da998dca14611837578063dc0bbf081461184c578063ddf0185f14611861576105c4565b8063d4bd894714611792578063d95210d0146117d4578063d9df77de146117e9576105c4565b8063cff6e51f14611607578063d2c35ce81461161c578063d38f887e1461164f578063d39ca7de14611691578063d48ba486146116c4578063d4aadbc614611775576105c4565b8063ad0279a71161025a578063c2b2fdca11610213578063c4ac59b2116101ed578063c4ac59b214611453578063c5a2928b14611468578063c723143f1461149b578063c8b81e15146115bf576105c4565b8063c2b2fdca14611414578063c3d5864f14611429578063c415b95c1461143e576105c4565b8063ad0279a714611294578063ad553eef14611345578063ae749c4214611378578063b021465f146113a2578063b6b55f25146113d5578063c0f0622d146113ff576105c4565b806398b40442116102ac57806398b404421461110d57806399e6f700146111be5780639edb4fb7146111d3578063a77e2825146111fd578063a978dab71461124c578063aa5c3ab41461127f576105c4565b80638aa9a37f1461104e5780638ac2f9dd1461107e5780638d0c479b146110b95780639162c594146110ce5780639548f1e6146110e3578063965d61b9146110f8576105c4565b806334dce6b31161047157806367cb6526116103bd578063798f991c116103765780637c05d6d8116103505780637c05d6d814610ebc5780638123fdbb14610f6d578063857d49d51461102457806387f48f4e14611039576105c4565b8063798f991c14610e335780637a5d5cf414610e7d5780637ba9092814610e92576105c4565b806367cb652614610d4057806368acd04214610d555780636c52ec1014610d6a5780636f30015514610dac5780636f36c10c14610dc1578063778824a514610df1576105c4565b80634c359aeb1161042a5780634eba71cd116104045780634eba71cd14610c955780635c4f18fa14610caa578063623ef91014610cec5780636331883b14610d16576105c4565b80634c359aeb14610bfc5780634c8024cc14610c2f5780634dd18bf514610c62576105c4565b806334dce6b314610ae15780633839239514610b1457806339941fa414610b3e5780633bb58b6714610b7257806340b584b414610bb457806348028d6314610be7576105c4565b80631d851bbd1161053057806328333d15116104e95780632fc29e0e116104c35780632fc29e0e146109eb57806330fd63b614610a2d578063326f107314610a6657806332fc530e14610a9f576105c4565b806328333d151461095957806329575f6a146109a35780632b6b66bb146109b8576105c4565b80631d851bbd1461080b578063255ebc8d14610820578063266655621461086257806326782247146108a4578063268e5e4f146108d5578063272dff7314610917576105c4565b80630f694584116105825780630f694584146106c25780630fe48b36146106e85780631585dc28146106fd57806316f28a2a14610712578063198858981461074557806319a1f5ae1461075a576105c4565b8062a46917146105c957806301c0775c146105f057806305eec2891461063757806309a07fd2146106565780630a8d1be21461067d5780630e18b681146106ad575b600080fd5b6105ee600480360360408110156105df57600080fd5b50803590602001351515611a35565b005b3480156105fc57600080fd5b506106236004803603602081101561061357600080fd5b50356001600160a01b0316611bba565b604080519115158252519081900360200190f35b6105ee6004803603602081101561064d57600080fd5b50351515611c07565b34801561066257600080fd5b5061066b612106565b60408051918252519081900360200190f35b34801561068957600080fd5b506105ee600480360360408110156106a057600080fd5b508035906020013561210c565b3480156106b957600080fd5b506105ee612167565b6105ee600480360360208110156106d857600080fd5b50356001600160801b03166121f6565b3480156106f457600080fd5b5061066b6125fb565b34801561070957600080fd5b5061066b612601565b34801561071e57600080fd5b506106236004803603602081101561073557600080fd5b50356001600160a01b0316612607565b34801561075157600080fd5b5061066b61261c565b34801561076657600080fd5b5061066b6004803603602081101561077d57600080fd5b810190602081018135600160201b81111561079757600080fd5b8201836020820111156107a957600080fd5b803590602001918460018302840111600160201b831117156107ca57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550612622945050505050565b34801561081757600080fd5b5061066b61263f565b34801561082c57600080fd5b506106236004803603604081101561084357600080fd5b5080356001600160a01b031690602001356001600160801b0316612645565b34801561086e57600080fd5b506106236004803603604081101561088557600080fd5b5080356001600160a01b031690602001356001600160801b03166126fc565b3480156108b057600080fd5b506108b961277a565b604080516001600160a01b039092168252519081900360200190f35b3480156108e157600080fd5b5061066b600480360360408110156108f857600080fd5b5080356001600160a01b031690602001356001600160801b0316612789565b34801561092357600080fd5b506106236004803603604081101561093a57600080fd5b5080356001600160a01b031690602001356001600160801b0316612801565b34801561096557600080fd5b506105ee6004803603606081101561097c57600080fd5b506001600160a01b03813516906001600160801b036020820135169060400135151561287c565b3480156109af57600080fd5b506108b9612ab7565b3480156109c457600080fd5b5061066b600480360360208110156109db57600080fd5b50356001600160a01b0316612ac6565b3480156109f757600080fd5b506105ee60048036036040811015610a0e57600080fd5b5080356001600160a01b031690602001356001600160801b0316612ad8565b348015610a3957600080fd5b5061066b60048036036040811015610a5057600080fd5b506001600160a01b038135169060200135612c18565b348015610a7257600080fd5b506105ee60048036036040811015610a8957600080fd5b506001600160801b038135169060200135612d02565b348015610aab57600080fd5b506105ee60048036036040811015610ac257600080fd5b5080356001600160a01b031690602001356001600160801b0316612d6e565b348015610aed57600080fd5b5061062360048036036020811015610b0457600080fd5b50356001600160a01b0316612f4a565b348015610b2057600080fd5b506105ee60048036036020811015610b3757600080fd5b5035612f90565b61062360048036036060811015610b5457600080fd5b506001600160801b0381351690602081013590604001351515612fdb565b348015610b7e57600080fd5b5061066b60048036036040811015610b9557600080fd5b5080356001600160a01b031690602001356001600160801b0316613801565b348015610bc057600080fd5b506105ee60048036036020811015610bd757600080fd5b50356001600160a01b031661380e565b348015610bf357600080fd5b506108b961385a565b348015610c0857600080fd5b5061066b60048036036020811015610c1f57600080fd5b50356001600160a01b0316613869565b348015610c3b57600080fd5b5061066b60048036036020811015610c5257600080fd5b50356001600160a01b031661387b565b348015610c6e57600080fd5b506105ee60048036036020811015610c8557600080fd5b50356001600160a01b031661388d565b348015610ca157600080fd5b5061066b6138cb565b348015610cb657600080fd5b5061062360048036036040811015610ccd57600080fd5b5080356001600160a01b031690602001356001600160801b03166138d1565b348015610cf857600080fd5b506105ee60048036036020811015610d0f57600080fd5b503561390a565b348015610d2257600080fd5b506108b960048036036020811015610d3957600080fd5b5035613955565b348015610d4c57600080fd5b5061066b61397c565b348015610d6157600080fd5b5061066b613982565b348015610d7657600080fd5b5061062360048036036040811015610d8d57600080fd5b5080356001600160a01b031690602001356001600160801b0316613988565b348015610db857600080fd5b5061066b613a3c565b348015610dcd57600080fd5b506105ee60048036036040811015610de457600080fd5b5080359060200135613a42565b348015610dfd57600080fd5b5061062360048036036040811015610e1457600080fd5b5080356001600160a01b031690602001356001600160801b0316613a9d565b348015610e3f57600080fd5b506105ee60048036036060811015610e5657600080fd5b506001600160a01b03813516906001600160801b0360208201351690604001351515613b86565b348015610e8957600080fd5b5061066b613c0d565b348015610e9e57600080fd5b506105ee60048036036020811015610eb557600080fd5b5035613c13565b348015610ec857600080fd5b5061066b60048036036020811015610edf57600080fd5b810190602081018135600160201b811115610ef957600080fd5b820183602082011115610f0b57600080fd5b803590602001918460018302840111600160201b83111715610f2c57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550613c6b945050505050565b348015610f7957600080fd5b50610faf60048036036040811015610f9057600080fd5b5080356001600160a01b031690602001356001600160801b0316613c88565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610fe9578181015183820152602001610fd1565b50505050905090810190601f1680156110165780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561103057600080fd5b506108b9613d12565b34801561104557600080fd5b5061066b613d21565b34801561105a57600080fd5b506105ee6004803603604081101561107157600080fd5b5080359060200135613d27565b34801561108a57600080fd5b506105ee600480360360408110156110a157600080fd5b506001600160a01b0381351690602001351515613d82565b3480156110c557600080fd5b5061066b613f3a565b3480156110da57600080fd5b5061066b613f40565b3480156110ef57600080fd5b506108b9613f46565b34801561110457600080fd5b506108b9613f55565b34801561111957600080fd5b506106236004803603602081101561113057600080fd5b810190602081018135600160201b81111561114a57600080fd5b82018360208201111561115c57600080fd5b803590602001918460018302840111600160201b8311171561117d57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550613f64945050505050565b3480156111ca57600080fd5b5061066b613f84565b3480156111df57600080fd5b506105ee600480360360208110156111f657600080fd5b5035613f8a565b34801561120957600080fd5b506112306004803603602081101561122057600080fd5b50356001600160a01b0316613fd5565b604080516001600160801b039092168252519081900360200190f35b34801561125857600080fd5b5061066b6004803603602081101561126f57600080fd5b50356001600160a01b0316613ff0565b34801561128b57600080fd5b5061066b614002565b3480156112a057600080fd5b50610623600480360360208110156112b757600080fd5b810190602081018135600160201b8111156112d157600080fd5b8201836020820111156112e357600080fd5b803590602001918460018302840111600160201b8311171561130457600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550614008945050505050565b34801561135157600080fd5b506105ee6004803603602081101561136857600080fd5b50356001600160a01b0316614028565b34801561138457600080fd5b506105ee6004803603602081101561139b57600080fd5b5035614061565b3480156113ae57600080fd5b50610623600480360360208110156113c557600080fd5b50356001600160a01b03166140ac565b3480156113e157600080fd5b506105ee600480360360208110156113f857600080fd5b50356140c1565b34801561140b57600080fd5b5061062361417e565b34801561142057600080fd5b5061066b614187565b34801561143557600080fd5b5061066b61418d565b34801561144a57600080fd5b506108b9614193565b34801561145f57600080fd5b5061066b6141a2565b34801561147457600080fd5b506105ee6004803603602081101561148b57600080fd5b50356001600160a01b03166141a8565b3480156114a757600080fd5b506105ee60048036036102008110156114bf57600080fd5b6001600160a01b038235811692602081013582169260408201358316926060830135169160808101359160a08201359160c08101359160e08201359161010081013591610120820135916101408101359161016082013591610180810135916101a0820135916101c08101359181019061020081016101e0820135600160201b81111561154b57600080fd5b82018360208201111561155d57600080fd5b803590602001918460018302840111600160201b8311171561157e57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550614210945050505050565b3480156115cb57600080fd5b5061066b600480360360608110156115e257600080fd5b506001600160a01b03813516906001600160801b036020820135169060400135614373565b34801561161357600080fd5b5061066b61491b565b34801561162857600080fd5b506105ee6004803603602081101561163f57600080fd5b50356001600160a01b0316614921565b34801561165b57600080fd5b506105ee600480360360a081101561167257600080fd5b508035906020810135906040810135906060810135906080013561496d565b34801561169d57600080fd5b506105ee600480360360208110156116b457600080fd5b50356001600160a01b03166149de565b3480156116d057600080fd5b5061066b600480360360208110156116e757600080fd5b810190602081018135600160201b81111561170157600080fd5b82018360208201111561171357600080fd5b803590602001918460018302840111600160201b8311171561173457600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550614a50945050505050565b6105ee6004803603602081101561178b57600080fd5b5035614a6d565b34801561179e57600080fd5b506105ee600480360360408110156117b557600080fd5b5080356001600160801b031690602001356001600160a01b0316614c08565b3480156117e057600080fd5b5061066b615222565b3480156117f557600080fd5b5061066b615228565b34801561180a57600080fd5b5061066b6004803603604081101561182157600080fd5b506001600160a01b03813516906020013561522e565b34801561184357600080fd5b506108b9615296565b34801561185857600080fd5b5061066b6152a5565b34801561186d57600080fd5b506112306152ab565b34801561188257600080fd5b506108b96152ba565b34801561189757600080fd5b506105ee600480360360208110156118ae57600080fd5b50356152c9565b3480156118c157600080fd5b50610faf615314565b3480156118d657600080fd5b506105ee6153a2565b3480156118eb57600080fd5b506105ee6004803603602081101561190257600080fd5b503561542b565b34801561191557600080fd5b5061066b615483565b34801561192a57600080fd5b5061066b615489565b34801561193f57600080fd5b506105ee6004803603602081101561195657600080fd5b503561548f565b34801561196957600080fd5b506105ee6004803603604081101561198057600080fd5b506001600160a01b0381351690602001356154da565b3480156119a257600080fd5b506108b96155d8565b3480156119b757600080fd5b506105ee600480360360408110156119ce57600080fd5b5080356001600160a01b031690602001356001600160801b03166155ec565b3480156119f957600080fd5b506106236156bf565b348015611a0e57600080fd5b5061062360048036036020811015611a2557600080fd5b50356001600160a01b03166156c8565b3460015b336000908152602960205260409020546001600160801b031661ffff821611611bb4576000611a6d338361ffff1687614373565b90506000611a92600e54611a8c600d54856156dd90919063ffffffff16565b90615736565b905080841015611ad7576040805162461bcd60e51b815260206004820152600b60248201526a696e76616c69642066656560a81b604482015290519081900360640190fd5b8115611b9e5760408051630e6507e960e21b815261ffff85166004820152602481018890528615156044820152905130916339941fa491849160648082019260209290919082900301818588803b158015611b3157600080fd5b505af1158015611b45573d6000803e3d6000fd5b50505050506040513d6020811015611b5c57600080fd5b5051611b9e576040805162461bcd60e51b815260206004820152600c60248201526b18db185a5b4819985a5b195960a21b604482015290519081900360640190fd5b611ba8848261579d565b93505050600101611a39565b50505050565b6001600160a01b03811660009081526018602052604081205460ff168015611c0157506001600160a01b0382166000908152602960205260409020546001600160801b0316155b92915050565b603154336000908152602960205260409020546001600160801b03918216911610611c69576040805162461bcd60e51b815260206004820152600d60248201526c1b1a5b5a5d081c995858da1959609a1b604482015290519081900360640190fd5b600080611c7533611bba565b15611c8357611c83336157fa565b336000818152602960205260409020546001600160801b031660010190606090611cad9083613c88565b90508415611cd657601f54602054601c549195509350611cce906001615a9b565b601c55611d52565b600f549350601054925060016025826040518082805190602001908083835b60208310611d145780518252601f199092019160209182019101611cf5565b51815160209384036101000a60001901801990921691161790529201948552506040519384900301909220805460ff19169315159390931790925550505b833414611d94576040805162461bcd60e51b815260206004820152600b60248201526a696e76616c69642066656560a81b604482015290519081900360640190fd5b436027826040518082805190602001908083835b60208310611dc75780518252601f199092019160209182019101611da8565b51815160209384036101000a6000190180199092169116179052920194855250604051938490038101842094909455505082514392602892859290918291908401908083835b60208310611e2c5780518252601f199092019160209182019101611e0d565b51815160001960209485036101000a0190811690199190911617905292019485525060408051948590038201852095909555336000908152602990915293842080546001600160801b03808216600101166001600160801b031990911617905550506006546001600160a01b0316913480156108fc02929091818181858888f19350505050158015611ec2573d6000803e3d6000fd5b50600754604080516323b872dd60e01b81523360048201523060248201526044810186905290516001600160a01b03909216916323b872dd916064808201926020929091908290030181600087803b158015611f1d57600080fd5b505af1158015611f31573d6000803e3d6000fd5b505050506040513d6020811015611f4757600080fd5b50506007546006546040805163a9059cbb60e01b81526001600160a01b039283166004820152602481018790529051919092169163a9059cbb9160448083019260209291908290030181600087803b158015611fa257600080fd5b505af1158015611fb6573d6000803e3d6000fd5b505050506040513d6020811015611fcc57600080fd5b5050604051815133917f39b0a0620bb668047ab7248973ddfd93d53dff1d4952bd2d56bbf5934edc1fd0918591602591869190819060208401908083835b602083106120295780518252601f19909201916020918201910161200a565b51815160209384036101000a6000190180199092169116179052920194855250604051938490038101842054601354895160ff90921695600095506120d0945090926027928b92918291908401908083835b6020831061209a5780518252601f19909201916020918201910161207b565b51815160209384036101000a6000190180199092169116179052920194855250604051938490030190922054929150615a9b9050565b604080516001600160801b0390951685529215156020850152901515838301526060830152519081900360800190a25050505050565b600d5481565b60005461010090046001600160a01b031633148061213457506005546001600160a01b031633145b8061214957506002546001600160a01b031633145b61215257600080fd5b8061215c57600080fd5b600991909155600a55565b6001546001600160a01b03163314801561218057503315155b6121c4576040805162461bcd60e51b815260206004820152601060248201526f3737ba103832b73234b733a0b236b4b760811b604482015290519081900360640190fd5b6001805460008054610100600160a81b0319166101006001600160a01b038416021790556001600160a01b0319169055565b60003330146122055733612207565b325b905060606122158284613c88565b905061222082611bba565b1561222e5761222e826157fa565b61223882846126fc565b612278576040805162461bcd60e51b815260206004820152600c60248201526b191bd95cdb9d08195e1a5cdd60a21b604482015290519081900360640190fd5b6122828284613988565b156122bf576040805162461bcd60e51b8152602060048201526008602482015267746f6f206c61746560c01b604482015290519081900360640190fd5b6122c98284612645565b15612306576040805162461bcd60e51b81526020600482015260086024820152673a37b79039b7b7b760c11b604482015290519081900360640190fd5b6025816040518082805190602001908083835b602083106123385780518252601f199092019160209182019101612319565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092205460ff161591506123b990505760115434146123b4576040805162461bcd60e51b815260206004820152600b60248201526a696e76616c69642066656560a81b604482015290519081900360640190fd5b6123fd565b60125434146123fd576040805162461bcd60e51b815260206004820152600b60248201526a696e76616c69642066656560a81b604482015290519081900360640190fd5b6006546040516001600160a01b03909116903480156108fc02916000818181858888f19350505050158015612436573d6000803e3d6000fd5b5061246e6013546027836040518082805190602001908083836020831061209a5780518252601f19909201916020918201910161207b565b6027826040518082805190602001908083835b602083106124a05780518252601f199092019160209182019101612481565b51815160209384036101000a6000190180199092169116179052920194855250604051938490038101842094909455505082516001600160a01b038516927f39b0a0620bb668047ab7248973ddfd93d53dff1d4952bd2d56bbf5934edc1fd092879260259287929182918401908083835b602083106125305780518252601f199092019160209182019101612511565b51815160209384036101000a6000190180199092169116179052920194855250604051938490038101842054885160ff9091169460019450602793508992909182918401908083835b602083106125985780518252601f199092019160209182019101612579565b51815160001960209485036101000a01908116901991909116179052920194855250604080519485900382018520546001600160801b039098168552951515908401525050901515818301526060810192909252519081900360800190a2505050565b60135481565b601f5481565b60186020526000908152604090205460ff1681565b600a5481565b805160208183018101805160288252928201919093012091525481565b602e5481565b600060606126538484613c88565b905060006027826040518082805190602001908083835b602083106126895780518252601f19909201916020918201910161266a565b51815160209384036101000a6000190180199092169116179052920194855250604051938490030190922054603254601354919450600093506126d892506126d191906156dd565b4390615a9b565b9050806126f060135484615a9b90919063ffffffff16565b10159695505050505050565b6000606061270a8484613c88565b905060006027826040518082805190602001908083835b602083106127405780518252601f199092019160209182019101612721565b51815160209384036101000a6000190180199092169116179052920194855250604051938490030190922054929092119695505050505050565b6001546001600160a01b031681565b600060606127978484613c88565b90506027816040518082805190602001908083835b602083106127cb5780518252601f1990920191602091820191016127ac565b51815160209384036101000a60001901801990921691161790529201948552506040519384900301909220549695505050505050565b6000606061280f8484613c88565b90506025816040518082805190602001908083835b602083106128435780518252601f199092019160209182019101612824565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092205460ff169695505050505050565b60005461010090046001600160a01b03163314806128a457506004546001600160a01b031633145b806128b957506002546001600160a01b031633145b6128c257600080fd5b60606128ce8484613c88565b905081801561293e57506024816040518082805190602001908083835b6020831061290a5780518252601f1990920191602091820191016128eb565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092205460ff16159150505b156129bc57601c54612951906001615a9b565b601c81905550436028826040518082805190602001908083835b6020831061298a5780518252601f19909201916020918201910161296b565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092209290925550505b81158015612a2a57506024816040518082805190602001908083835b602083106129f75780518252601f1990920191602091820191016129d8565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092205460ff169150505b15612a4157601c54612a3d90600161579d565b601c555b816024826040518082805190602001908083835b60208310612a745780518252601f199092019160209182019101612a55565b51815160209384036101000a60001901801990921691161790529201948552506040519384900301909220805460ff191693151593909317909255505050505050565b6002546001600160a01b031681565b60226020526000908152604090205481565b60005461010090046001600160a01b0316331480612b0057506004546001600160a01b031633145b80612b1557506002546001600160a01b031633145b612b1e57600080fd5b6060612b2a8383613c88565b905060016024826040518082805190602001908083835b60208310612b605780518252601f199092019160209182019101612b41565b51815160209384036101000a60001901801990921691161790529201948552506040519384900381018420805460ff191695151595909517909455505082514392602892859290918291908401908083835b60208310612bd15780518252601f199092019160209182019101612bb2565b51815160209384036101000a60001901801990921691161790529201948552506040519384900301909220929092555050601c54612c10906001615a9b565b601c55505050565b600043821115612c2a57506000611c01565b6001600160a01b038316600090815260156020526040902054612c4f57506000611c01565b6001600160a01b038316600090815260156020526040902054821015612c7757506000611c01565b601c54612c8657506000611c01565b6001600160a01b038316600090815260156020526040812054612caa90849061579d565b6001600160a01b0385166000908152601a602052604081205491925090819060ff1615612cde575050600b54600c54612ce7565b5050600954600a545b6000612cf782611a8c86866156dd565b979650505050505050565b60005461010090046001600160a01b0316331480612d2a57506005546001600160a01b031633145b80612d3f57506002546001600160a01b031633145b612d4857600080fd5b603180546001600160801b0319166001600160801b039390931692909217909155603255565b60005461010090046001600160a01b0316331480612d9657506004546001600160a01b031633145b80612dab57506002546001600160a01b031633145b612db457600080fd5b6060612dc08383613c88565b905060006027826040518082805190602001908083835b60208310612df65780518252601f199092019160209182019101612dd7565b51815160209384036101000a600019018019909216911617905292019485525060405193849003810184209490945550508251600092602892859290918291908401908083835b60208310612e5c5780518252601f199092019160209182019101612e3d565b51815160209384036101000a6000190180199092169116179052920194855250604051938490038101842094909455505082516001600160a01b038616927f8f09ef60eb932f902f4199ddb720f587b53565a6a490484db1a653e85b799dc492869260259287929182918401908083835b60208310612eec5780518252601f199092019160209182019101612ecd565b51815160001960209485036101000a01908116901991909116179052920194855250604080519485900382018520546001600160801b03909616855260ff9095161515908401525050438183015290519081900360600190a2505050565b6001600160a01b03811660009081526018602052604081205460ff1680611c015750612f778260016126fc565b8015611c015750612f89826001613988565b1592915050565b60005461010090046001600160a01b0316331480612fb857506005546001600160a01b031633145b80612fcd57506002546001600160a01b031633145b612fd657600080fd5b601255565b60008033301480612ff65750602f546001600160a01b031633145b6130005733613002565b325b905060606130108287613c88565b905061301b82611bba565b1561302957613029826157fa565b60006028826040518082805190602001908083835b6020831061305d5780518252601f19909201916020918201910161303e565b51815160209384036101000a6000190180199092169116179052920194855250604051938490030190922054151591506130fa9050576027826040518082805190602001908083835b602083106130c55780518252601f1990920191602091820191016130a6565b51815160209384036101000a6000190180199092169116179052920194855250604051938490030190922054915061315c9050565b6028826040518082805190602001908083835b6020831061312c5780518252601f19909201916020918201910161310d565b51815160209384036101000a60001901801990921691161790529201948552506040519384900301909220549150505b905060006027836040518082805190602001908083835b602083106131925780518252601f199092019160209182019101613173565b51815160001960209485036101000a019081169019919091161790529201948552506040519384900301909220549250505081613206576040805162461bcd60e51b815260206004820152600d60248201526c1b995d995c8818db185a5b5959609a1b604482015290519081900360640190fd5b4387111561324b576040805162461bcd60e51b815260206004820152600d60248201526c696e76616c696420626c6f636b60981b604482015290519081900360640190fd5b81871161328a576040805162461bcd60e51b81526020600482015260086024820152673a37b79039b7b7b760c11b604482015290519081900360640190fd5b6025836040518082805190602001908083835b602083106132bc5780518252601f19909201916020918201910161329d565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092205460ff1615915081905061335b57506024836040518082805190602001908083835b602083106133285780518252601f199092019160209182019101613309565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092205460ff169150505b613399576040805162461bcd60e51b815260206004820152600a6024820152696e6f742061637469766560b01b604482015290519081900360640190fd5b6025836040518082805190602001908083835b602083106133cb5780518252601f1990920191602091820191016133ac565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092205460ff1615915050801561340b575060125415155b8061348257506025836040518082805190602001908083835b602083106134435780518252601f199092019160209182019101613424565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092205460ff169150508015613482575060115415155b156134d257601354613495908290615a9b565b87106134d2576040805162461bcd60e51b81526020600482015260076024820152667061792066656560c81b604482015290519081900360640190fd5b60006134df858a8a614373565b905060008111613522576040805162461bcd60e51b81526020600482015260096024820152681b9bc81c995dd85c9960ba1b604482015290519081900360640190fd5b600061353f600e54611a8c600d54856156dd90919063ffffffff16565b905080341015613584576040805162461bcd60e51b815260206004820152600b60248201526a696e76616c69642066656560a81b604482015290519081900360640190fd5b6006546040516001600160a01b03909116903480156108fc02916000818181858888f193505050501580156135bd573d6000803e3d6000fd5b5087156136bb576007546008546040805163095ea7b360e01b81526001600160a01b039283166004820152602481018690529051919092169163095ea7b39160448083019260209291908290030181600087803b15801561361d57600080fd5b505af1158015613631573d6000803e3d6000fd5b505050506040513d602081101561364757600080fd5b5050600854604080516330d6a97560e01b81526001600160a01b03898116600483015260248201869052915191909216916330d6a97591604480830192600092919082900301818387803b15801561369e57600080fd5b505af11580156136b2573d6000803e3d6000fd5b5050505061373e565b6007546040805163a9059cbb60e01b81526001600160a01b038981166004830152602482018690529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561371157600080fd5b505af1158015613725573d6000803e3d6000fd5b505050506040513d602081101561373b57600080fd5b50505b60145461374b908361579d565b601481905550886028866040518082805190602001908083835b602083106137845780518252601f199092019160209182019101613765565b51815160209384036101000a60001901801990921691161790529201948552506040805194859003820185209590955586845293516001600160a01b038b16947fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a948290030192509050a2600196505050505050505b9392505050565b60006137fa838343614373565b6001600160a01b03811661382157600080fd5b6002546001600160a01b0316331461383857600080fd5b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6003546001600160a01b031681565b60156020526000908152604090205481565b60176020526000908152604090205481565b60005461010090046001600160a01b031633146138a957600080fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b602c5481565b60006138dd8383612801565b1580156138f157506138ef8383613988565b155b80156137fa57506139028383612645565b159392505050565b60005461010090046001600160a01b031633148061393257506005546001600160a01b031633145b8061394757506002546001600160a01b031633145b61395057600080fd5b601055565b6016818154811061396257fe5b6000918252602090912001546001600160a01b0316905081565b60125481565b60235481565b600060606139968484613c88565b905060006027826040518082805190602001908083835b602083106139cc5780518252601f1990920191602091820191016139ad565b51815160209384036101000a60001901801990921691161790529201948552506040519384900301909220549250613a089150869050856126fc565b1580613a335750613a30603054613a2a60135484615a9b90919063ffffffff16565b90615a9b565b43115b95945050505050565b600f5481565b60005461010090046001600160a01b0316331480613a6a57506005546001600160a01b031633145b80613a7f57506002546001600160a01b031633145b613a8857600080fd5b80613a9257600080fd5b600b91909155600c55565b60006060613aab8484613c88565b90506024816040518082805190602001908083835b60208310613adf5780518252601f199092019160209182019101613ac0565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092205460ff169150819050613b7e57506025816040518082805190602001908083835b60208310613b4a5780518252601f199092019160209182019101613b2b565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092205460ff16159150505b949350505050565b60005461010090046001600160a01b0316331480613bae57506004546001600160a01b031633145b80613bc357506002546001600160a01b031633145b613bcc57600080fd5b6060613bd88484613c88565b9050811560258260405180828051906020019080838360208310612a745780518252601f199092019160209182019101612a55565b602a5481565b60005461010090046001600160a01b0316331480613c3b57506005546001600160a01b031633145b80613c5057506002546001600160a01b031633145b613c5957600080fd5b60008111613c6657600080fd5b603055565b805160208183018101805160268252928201919093012091525481565b606060006001600160801b038316613cc4576001600160a01b0384166000908152602960205260409020546001600160801b0316600101613cc6565b825b6040805160609690961b6bffffffffffffffffffffffff1916602087015260809190911b6001600160801b03191660348601528051808603602401815260449095019052509192915050565b6005546001600160a01b031681565b600e5481565b60005461010090046001600160a01b0316331480613d4f57506005546001600160a01b031633145b80613d6457506002546001600160a01b031633145b613d6d57600080fd5b80613d7757600080fd5b600d91909155600e55565b60005461010090046001600160a01b0316331480613daa57506004546001600160a01b031633145b80613dbf57506002546001600160a01b031633145b613dc857600080fd5b6001600160a01b0382166000818152601760205260409020546016805491929183908110613df257fe5b6000918252602090912001546001600160a01b031614613e4a576040805162461bcd60e51b815260206004820152600e60248201526d696e76616c696420656e7469747960901b604482015290519081900360640190fd5b6001600160a01b03831660009081526018602052604090205460ff1615158215151415613eac576040805162461bcd60e51b815260206004820152600b60248201526a185b1c9958591e481cd95d60aa1b604482015290519081900360640190fd5b6001600160a01b0383166000908152601860205260409020805460ff19168315801591909117909155613f0a57601c54613ee7906001615a9b565b601c556001600160a01b0383166000908152601560205260409020439055613f35565b601c54613f1890600161579d565b601c556001600160a01b0383166000908152601560205260408120555b505050565b60205481565b60115481565b602f546001600160a01b031681565b6007546001600160a01b031681565b805160208183018101805160258252928201919093012091525460ff1681565b60095481565b60005461010090046001600160a01b0316331480613fb257506005546001600160a01b031633145b80613fc757506002546001600160a01b031633145b613fd057600080fd5b601f55565b6029602052600090815260409020546001600160801b031681565b601b6020526000908152604090205481565b60145481565b805160208183018101805160248252928201919093012091525460ff1681565b6002546001600160a01b0316331461403f57600080fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b60005461010090046001600160a01b031633148061408957506005546001600160a01b031633145b8061409e57506002546001600160a01b031633145b6140a757600080fd5b600f55565b601a6020526000908152604090205460ff1681565b6002546001600160a01b031633146140d857600080fd5b600081116140e557600080fd5b600754604080516323b872dd60e01b81523360048201523060248201526044810184905290516001600160a01b03909216916323b872dd916064808201926020929091908290030181600087803b15801561413f57600080fd5b505af1158015614153573d6000803e3d6000fd5b505050506040513d602081101561416957600080fd5b50506014546141789082615a9b565b60145550565b60215460ff1681565b601e5481565b60305481565b6006546001600160a01b031681565b600c5481565b60005461010090046001600160a01b03163314806141d057506004546001600160a01b031633145b806141e557506002546001600160a01b031633145b6141ee57600080fd5b602f80546001600160a01b0319166001600160a01b0392909216919091179055565b60005460ff1615614254576040805162461bcd60e51b8152602060048201526009602482015268696e697420646f6e6560b81b604482015290519081900360640190fd5b8f600760006101000a8154816001600160a01b0302191690836001600160a01b031602179055508e600860006101000a8154816001600160a01b0302191690836001600160a01b031602179055508d600060016101000a8154816001600160a01b0302191690836001600160a01b031602179055508c600260006101000a8154816001600160a01b0302191690836001600160a01b031602179055508b6009819055508a600a8190555089600b8190555088600c8190555087600f8190555086601081905550856011819055508460128190555082600d8190555081600e819055508360138190555080601d9080519060200190614353929190615ba6565b50506000805460ff19166001179055505050505050505050505050505050565b600060606143818585613c88565b905061438c85611bba565b156143a35761439b8584612c18565b9150506137fa565b60006028826040518082805190602001908083835b602083106143d75780518252601f1990920191602091820191016143b8565b51815160209384036101000a6000190180199092169116179052920194855250604051938490030190922054151591506144749050576027826040518082805190602001908083835b6020831061443f5780518252601f199092019160209182019101614420565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092205491506144d69050565b6028826040518082805190602001908083835b602083106144a65780518252601f199092019160209182019101614487565b51815160209384036101000a60001901801990921691161790529201948552506040519384900301909220549150505b9050438411156144eb576000925050506137fa565b806144fb576000925050506137fa565b8084101561450e576000925050506137fa565b601c54614520576000925050506137fa565b6025826040518082805190602001908083835b602083106145525780518252601f199092019160209182019101614533565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092205460ff1691505080156145f157506024826040518082805190602001908083835b602083106145bd5780518252601f19909201916020918201910161459e565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092205460ff16159150505b15614601576000925050506137fa565b60006025836040518082805190602001908083835b602083106146355780518252601f199092019160209182019101614616565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092205460ff169150614674905057600b54614678565b6009545b905060006025846040518082805190602001908083835b602083106146ae5780518252601f19909201916020918201910161468f565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092205460ff1691506146ed905057600c546146f1565b600a545b905060006025856040518082805190602001908083835b602083106147275780518252601f199092019160209182019101614708565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092205460ff169150614766905057602c5461476a565b602a545b905060006025866040518082805190602001908083835b602083106147a05780518252601f199092019160209182019101614781565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092205460ff1691506147df905057602d546147e3565b602b545b602f549091506000906001600160a01b0316614800576000614897565b602f546040805163b07d9cbb60e01b81526001600160a01b038e811660048301526001600160801b038e166024830152604482018a9052606482018d90529151919092169163b07d9cbb916084808301926020929190829003018186803b15801561486a57600080fd5b505afa15801561487e573d6000803e3d6000fd5b505050506040513d602081101561489457600080fd5b50515b90506148a1615c24565b6148ae87602e548c615af5565b905060008086116148c05760006148d7565b6148d786611a8c898560005b6020020151906156dd565b905060008085116148e95760006148f9565b6148f985611a8c888660016148cc565b905061490984613a2a8484615a9b565b9e9d5050505050505050505050505050565b602d5481565b6001600160a01b03811661493457600080fd5b6002546001600160a01b0316331461494b57600080fd5b600680546001600160a01b0319166001600160a01b0392909216919091179055565b60005461010090046001600160a01b031633148061499557506005546001600160a01b031633145b806149aa57506002546001600160a01b031633145b6149b357600080fd5b602a859055602b849055602c839055602d829055806149d257436149d4565b805b602e555050505050565b6002546001600160a01b03163314614a2e576040805162461bcd60e51b815260206004820152600e60248201526d3737ba1039bab832b920b236b4b760911b604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b805160208183018101805160278252928201919093012091525481565b60008111614ab2576040805162461bcd60e51b815260206004820152600d60248201526c696e76616c69642076616c756560981b604482015290519081900360640190fd5b601254614abf90826156dd565b3414614b00576040805162461bcd60e51b815260206004820152600b60248201526a696e76616c69642066656560a81b604482015290519081900360640190fd5b60015b336000908152602960205260409020546001600160801b031661ffff821611614bc157614b34338261ffff166138d1565b614b3d57614bb9565b306001600160a01b0316630f694584601254836040518363ffffffff1660e01b8152600401808261ffff1681526020019150506000604051808303818588803b158015614b8957600080fd5b505af1158015614b9d573d6000803e3d6000fd5b5050505050614bb660018361579d90919063ffffffff16565b91505b600101614b03565b508015614c05576040805162461bcd60e51b815260206004820152600d60248201526c1a5b9d985b1a590818dbdd5b9d609a1b604482015290519081900360640190fd5b50565b614c1133611bba565b15614c1f57614c1f336157fa565b614c2881611bba565b15614c3657614c36816157fa565b614c4033836126fc565b614c80576040805162461bcd60e51b815260206004820152600c60248201526b191bd95cdb9d08195e1a5cdd60a21b604482015290519081900360640190fd5b6001600160a01b0381166000908152602960205260409020546001600160801b03166001016060614cb13385613c88565b90506060614cbf8484613c88565b90506024826040518082805190602001908083835b60208310614cf35780518252601f199092019160209182019101614cd4565b51815160209384036101000a6000190180199092169116179052920194855250604051938490038101842054855160ff9091169460249450869350918291908401908083835b60208310614d585780518252601f199092019160209182019101614d39565b51815160209384036101000a60001901801990921691161790529201948552506040519384900381018420805460ff1916951515959095179094555050835160259285929182918401908083835b60208310614dc55780518252601f199092019160209182019101614da6565b51815160209384036101000a6000190180199092169116179052920194855250604051938490038101842054855160ff9091169460259450869350918291908401908083835b60208310614e2a5780518252601f199092019160209182019101614e0b565b51815160209384036101000a60001901801990921691161790529201948552506040519384900381018420805460ff1916951515959095179094555050835160279285929182918401908083835b60208310614e975780518252601f199092019160209182019101614e78565b51815160209384036101000a60001901801990921691161790529201948552506040519384900381018420548551909460279450869350918291908401908083835b60208310614ef85780518252601f199092019160209182019101614ed9565b51815160209384036101000a60001901801990921691161790529201948552506040519384900381018420949094555050835160289285929182918401908083835b60208310614f595780518252601f199092019160209182019101614f3a565b51815160209384036101000a60001901801990921691161790529201948552506040519384900381018420548551909460289450869350918291908401908083835b60208310614fba5780518252601f199092019160209182019101614f9b565b51815160209384036101000a6000190180199092169116179052920194855250604080519485900382018520959095556001600160a01b03891660009081526029825294852080546001600160801b0319811660016001600160801b03928316019091161790558651602494889450925082918401908083835b602083106150535780518252601f199092019160209182019101615034565b51815160209384036101000a60001901801990921691161790529201948552506040519384900381018420805460ff19169515159590951790945550508351600092602792869290918291908401908083835b602083106150c55780518252601f1990920191602091820191016150a6565b51815160209384036101000a600019018019909216911617905292019485525060405193849003810184209490945550508351600092602892869290918291908401908083835b6020831061512b5780518252601f19909201916020918201910161510c565b51815160209384036101000a6000190180199092169116179052920194855250604051938490038101842094909455505083516001600160a01b0387169233927f5ba846403c17c6c23ab5f5acb4601b016614564f82bb9def90aa1d3893d4a545928a9289926025928a928291908401908083835b602083106151bf5780518252601f1990920191602091820191016151a0565b51815160001960209485036101000a01908116901991909116179052920194855250604080519485900382018520546001600160801b0397881686529590961690840152505060ff90911615158183015290519081900360600190a35050505050565b600b5481565b60105481565b60008060015b6001600160a01b0385166000908152602960205260409020546001600160801b039081169082161161528e5761528461527d8683600088116152765743615278565b875b614373565b8390615a9b565b9150600101615234565b509392505050565b6004546001600160a01b031681565b601c5481565b6031546001600160801b031681565b6008546001600160a01b031681565b60005461010090046001600160a01b03163314806152f157506005546001600160a01b031633145b8061530657506002546001600160a01b031633145b61530f57600080fd5b602055565b601d805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561539a5780601f1061536f5761010080835404028352916020019161539a565b820191906000526020600020905b81548152906001019060200180831161537d57829003601f168201915b505050505081565b6003546001600160a01b0316331480156153bb57503315155b615404576040805162461bcd60e51b81526020600482015260156024820152743737ba103832b73234b733a9bab832b920b236b4b760591b604482015290519081900360640190fd5b60038054600280546001600160a01b03199081166001600160a01b03841617909155169055565b60005461010090046001600160a01b031633148061545357506005546001600160a01b031633145b8061546857506002546001600160a01b031633145b61547157600080fd5b6000811161547e57600080fd5b601355565b602b5481565b60325481565b60005461010090046001600160a01b03163314806154b757506005546001600160a01b031633145b806154cc57506002546001600160a01b031633145b6154d557600080fd5b601155565b6002546001600160a01b031633146154f157600080fd5b600081116154fe57600080fd5b806014541015615542576040805162461bcd60e51b815260206004820152600a6024820152690dcdee840cadcdeeaced60b31b604482015290519081900360640190fd5b6007546040805163a9059cbb60e01b81526001600160a01b038581166004830152602482018590529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561559857600080fd5b505af11580156155ac573d6000803e3d6000fd5b505050506040513d60208110156155c257600080fd5b50506014546155d1908261579d565b6014555050565b60005461010090046001600160a01b031681565b60005461010090046001600160a01b031633148061561457506004546001600160a01b031633145b8061562957506002546001600160a01b031633145b61563257600080fd5b606061563e8383613c88565b905060006024826040518082805190602001908083835b602083106156745780518252601f199092019160209182019101615655565b51815160209384036101000a60001901801990921691161790529201948552506040519384900301909220805460ff1916931515939093179092555050601c54612c1090600161579d565b60005460ff1681565b60196020526000908152604090205460ff1681565b6000826156ec57506000611c01565b828202828482816156f957fe5b04146137fa5760405162461bcd60e51b8152600401808060200182810382526021815260200180615c586021913960400191505060405180910390fd5b600080821161578c576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161579557fe5b049392505050565b6000828211156157f4576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6060615807826001613c88565b905060156000836001600160a01b03166001600160a01b03168152602001908152602001600020546028826040518082805190602001908083835b602083106158615780518252601f199092019160209182019101615842565b51815160209384036101000a6000190180199092169116179052920194855250604080519485900382018520959095556001600160a01b0387166000908152601b825294909420548551909460279487945092508291908401908083835b602083106158de5780518252601f1990920191602091820191016158bf565b51815160209384036101000a6000190180199092169116179052920194855250604080519485900382018520959095556001600160a01b0387166000908152601a82529490942054855160ff909116159460259487945092508291908401908083835b602083106159605780518252601f199092019160209182019101615941565b51815160209384036101000a60001901801990921691161790529201948552506040519384900381018420805460ff1916951515959095179094555050825160259284929182918401908083835b602083106159cd5780518252601f1990920191602091820191016159ae565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092205460ff16159150615a7790505760016024826040518082805190602001908083835b60208310615a395780518252601f199092019160209182019101615a1a565b51815160209384036101000a60001901801990921691161790529201948552506040519384900301909220805460ff19169315159390931790925550505b505033600090815260296020526040902080546001600160801b0319166001179055565b6000828201838110156137fa576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b615afd615c24565b818410615b1e575060408051808201909152600080825260208201526137fa565b8282111580615b2b575082155b15615b56576040805180820190915280615b45848761579d565b8152602001600081525090506137fa565b828410615b8257604080518082019091526000815260208101615b79848761579d565b905290506137fa565b6040805180820190915280615b97858761579d565b8152602001615b79848661579d565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10615be757805160ff1916838001178555615c14565b82800160010185558215615c14579182015b82811115615c14578251825591602001919060010190615bf9565b50615c20929150615c42565b5090565b60405180604001604052806002906020820280368337509192915050565b5b80821115615c205760008155600101615c4356fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a26469706673582212204f16948bbd60d03aeb9549d9a982a2e100b51b7e807996c2380b147ca770761864736f6c634300060c0033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

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