Contract 0x1ec62f8367ad3ff61c3f3b0ab1d0297a539062de

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x6cbc3595e3a3305e2d87a412087885e8edfc9df4f2b58d7cd96a47126920cab3Collect Rewards36252412021-12-06 19:46:4716 mins ago0x6c00a53e99e25e3951e4183d8b303e4dd7a0aebe IN  0x1ec62f8367ad3ff61c3f3b0ab1d0297a539062de0 ETH0.000865878131 ETH
0xde6fa1cb1e283f9b44bd6088248d06c088be38eda89fb2ac59f431aff0b15439Collect Rewards36249942021-12-06 19:27:3236 mins ago0x5ffd5cec88490d984d3f83496592b65c1225871c IN  0x1ec62f8367ad3ff61c3f3b0ab1d0297a539062de0 ETH0.000859312122 ETH
0xd7e7e450f9714235e56ac6bab4af751a2cf46da513893b3b9a3105e4e7e3be9cCollect Rewards36249772021-12-06 19:27:3236 mins ago0x8f8b4759dc93ca55bd6997df719f20f581f10f5c IN  0x1ec62f8367ad3ff61c3f3b0ab1d0297a539062de0 ETH0.001061470014 ETH
0x9882691b1d90a9a91af4159a8f85e1995676ecb8690f4a70a4b2cad7979223e7Collect Rewards36242692021-12-06 18:42:351 hr 21 mins ago0xc629b9d54cd9db31cddd0e0ed8c1bb4956baf351 IN  0x1ec62f8367ad3ff61c3f3b0ab1d0297a539062de0 ETH0.001260110092 ETH
0xa9dd65b620faa727450bb24d09216c64bcc17978fb4ca0182c1d875e912eaed4Collect Rewards36239782021-12-06 18:21:421 hr 41 mins ago0x2d45d1259b4f136f5050cb9dbb3c02253f74c647 IN  0x1ec62f8367ad3ff61c3f3b0ab1d0297a539062de0 ETH0.000860073429 ETH
0xb0eb4764558e48a732a48952f22315b0f3b043b53ba9326a8a232765349835ddStake36189832021-12-06 14:27:185 hrs 36 mins ago0xf1279e4f4e32ff5d6ad8da841b041918b9e97cb0 IN  0x1ec62f8367ad3ff61c3f3b0ab1d0297a539062de0 ETH0.000667683504 ETH
0x7816b679b0a269b71cae637f172df8b4991fe2c0a54482fdbd23cbb3d9ec3d53Stake36189802021-12-06 14:27:185 hrs 36 mins ago0xf1279e4f4e32ff5d6ad8da841b041918b9e97cb0 IN  0x1ec62f8367ad3ff61c3f3b0ab1d0297a539062de0 ETH0.002439818912 ETH
0x07f0807818969558b376922d57d0d838e9591ef7c7a81ea5aecf3388e44d6c70Stake36136422021-12-06 10:16:099 hrs 47 mins ago0x08156cb8506ab4af88b9fdeec686a3da6a0eef00 IN  0x1ec62f8367ad3ff61c3f3b0ab1d0297a539062de0 ETH0.001316727167 ETH
0x5f4d49da884cb59b31fcf578ba1314adf871fc468879b6ebf8163242955d4570Withdraw36133182021-12-06 10:04:419 hrs 58 mins ago0xa713914eed98013e2e8fb810fbb7e847ab24b3e1 IN  0x1ec62f8367ad3ff61c3f3b0ab1d0297a539062de0 ETH0.000706775701 ETH
0xc036902140d3a8685c51ef347f5c73908f02894f75775b558c9fa20e60072d54Collect Rewards36123692021-12-06 9:29:4010 hrs 33 mins ago0xe40a1135b60bc2c2dc77c500a295347f3bbad5e8 IN  0x1ec62f8367ad3ff61c3f3b0ab1d0297a539062de0 ETH0.001075080749 ETH
0xf537537f3777a73cfed81d33f8f3ec8d22e06962fbf80604753b900c12deade0Collect Rewards36121592021-12-06 9:18:3410 hrs 45 mins ago0x14b5eb80797280066665602246b6acbe77bfb90e IN  0x1ec62f8367ad3ff61c3f3b0ab1d0297a539062de0 ETH0.000875690757 ETH
0x9e7f4eefeaf394c591becd5cd4af0bc2415472e20231d2d20ca685535f885646Collect Rewards36102732021-12-06 8:05:5311 hrs 57 mins ago0x375c4952dfe5d5f0eae142f73cf8138ad496a722 IN  0x1ec62f8367ad3ff61c3f3b0ab1d0297a539062de0 ETH0.001489057269 ETH
0xd10093a34b0fa697aaaa63667635b64abe16f534f8abd352f7f9638ef8fbb86bCollect Rewards36094342021-12-06 7:37:0312 hrs 26 mins ago0x2d45d1259b4f136f5050cb9dbb3c02253f74c647 IN  0x1ec62f8367ad3ff61c3f3b0ab1d0297a539062de0 ETH0.001301969466 ETH
0x34422531baed81f1e77f92c04dfc8bdbe3a1e08bb631d5b44d56bd3e910f910dStake36088172021-12-06 7:12:4912 hrs 50 mins ago0xf7fdb7652171d5c2722b4cdd62c92e90f73c437e IN  0x1ec62f8367ad3ff61c3f3b0ab1d0297a539062de0 ETH0.000714635889 ETH
0x795801d8f4cf702af083d605ca88343e2b698af7aebe8b4784ea3f4d92f45585Collect Rewards36088122021-12-06 7:12:4912 hrs 50 mins ago0xf7fdb7652171d5c2722b4cdd62c92e90f73c437e IN  0x1ec62f8367ad3ff61c3f3b0ab1d0297a539062de0 ETH0.001301945709 ETH
0x716871d9f7d88b28eacd809c331bb6c67c8aa86d3e3e7bf0f1a72612d5c48b71Collect Rewards36080372021-12-06 6:41:4113 hrs 21 mins ago0xa713914eed98013e2e8fb810fbb7e847ab24b3e1 IN  0x1ec62f8367ad3ff61c3f3b0ab1d0297a539062de0 ETH0.000904569322 ETH
0xc7864f258a11ce53ed6fbaad308548074205c56aa93a19c841d7f951ad5851cfCollect Rewards36050842021-12-06 3:12:3116 hrs 51 mins ago0xb33da319afb0f013980196caedacb4e1327e5877 IN  0x1ec62f8367ad3ff61c3f3b0ab1d0297a539062de0 ETH0.001136726855 ETH
0xfb753943b11202e0f6f719031516f3741017f9740cb7db600654c713d6dd97a7Collect Rewards36043782021-12-06 2:23:5017 hrs 39 mins ago0x1e857bfa7fc0a5672324d7c4c56e5ab192607001 IN  0x1ec62f8367ad3ff61c3f3b0ab1d0297a539062de0 ETH0.001126698376 ETH
0x86e720731d7e7799897894d0b83d488da6a4ba79dc98614dbfeca7b1647975ceStake36043732021-12-06 2:23:5017 hrs 39 mins ago0x61859c56fde601ff6dd2bbf77357c545a3907606 IN  0x1ec62f8367ad3ff61c3f3b0ab1d0297a539062de0 ETH0.000737555643 ETH
0x9a00ac9297a83928d9973ce73b28354e69e530d114fdc1072dd2d605fac6fd1bCollect Rewards36043392021-12-06 2:21:5917 hrs 41 mins ago0xb4cb303e4b3b34f626bf3304521e8b157a237dd7 IN  0x1ec62f8367ad3ff61c3f3b0ab1d0297a539062de0 ETH0.001132057479 ETH
0x58b3b4fba42c1b32dbe7aadec4d56154059edb1e96a877d8e1fcd613ca204d37Collect Rewards36043132021-12-06 2:20:2417 hrs 43 mins ago0x61859c56fde601ff6dd2bbf77357c545a3907606 IN  0x1ec62f8367ad3ff61c3f3b0ab1d0297a539062de0 ETH0.001129134622 ETH
0xc06de2e58d4bd4bb85ad13a64de195fa55b307fafbf0d499fc6260deabbc3b82Collect Rewards36031062021-12-06 1:11:4118 hrs 51 mins ago0x8ad9dbc38ea6d4022dc6e93e2ba003ed364759c7 IN  0x1ec62f8367ad3ff61c3f3b0ab1d0297a539062de0 ETH0.001138346961 ETH
0xbf94013f5f231508a3a349ac58bd0b8d347e5b52e7dc3dc451bb8526768afae3Collect Rewards36012702021-12-05 23:41:3320 hrs 22 mins ago0x3c9c7d134452395399dbc3b237fd9cc0507f2463 IN  0x1ec62f8367ad3ff61c3f3b0ab1d0297a539062de0 ETH0.001134425005 ETH
0xa5b762ef259db697579f55b56bab125a4d1b566a92c2dd1c1d72ae2d8a32c30fCollect Rewards36010772021-12-05 23:28:1820 hrs 35 mins ago0x71f9ccd68bf1f5f9b571f509e0765a04ca4ffad2 IN  0x1ec62f8367ad3ff61c3f3b0ab1d0297a539062de0 ETH0.000919640146 ETH
0x3c02f27273d3babbf0e30fbc539e57a13e6ae8e74995c12877ce5b799505fb75Stake36004702021-12-05 23:04:1920 hrs 59 mins ago0x403383c411c0eb14ea0bd15e7c2ad5431a7410c2 IN  0x1ec62f8367ad3ff61c3f3b0ab1d0297a539062de0 ETH0.000740293852 ETH
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
stARBIS

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 13 : stARBIS.sol
// SPDX-License-Identifier: GNU GPLv3
pragma solidity ^0.8.4;

import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

contract stARBIS is ERC20, AccessControl, ReentrancyGuard {
  using SafeERC20 for IERC20;

  IERC20 public immutable arbisToken;
  uint256 public totalStaked = 0;
  address payable public feeDestination;
  uint256 public earlyWithdrawalFee = 0;
  uint256 public earlyWithdrawalDistributeShare = 0;
  uint256 public earlyWithdrawalSecondsThreshold = 0;
  address payable[] public stakeholders;
  mapping(address => uint256) public excessTokenRewards;
  mapping(address => uint256) public totalCumTokenRewardsPerStake;
  mapping(address => uint256) public paidCumRewardsPerStake;
  mapping(address => mapping(address => uint256)) public paidCumTokenRewardsPerStake;
  mapping(address => uint256) public stakedBalance;
  address[] public rewardTokens;
  mapping(address => bool) public isApprovedRewardToken;
  mapping(address => Stakeholder) public stakeholderInfo;
  mapping(address => uint256) public lastStakeTime;
  uint256 constant public SCALE = 1e40;

  event Stake(address addr, uint256 amount);
  event Withdrawal(address addr, uint256 amount);
  event RewardCollection(address token, address addr, uint256 amount);

  bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE");

  struct Stakeholder {
    bool exists;
    uint256 idx;
  }

  constructor(
      address _arbisToken
    ) ERC20("Staked ARBIS/ETH LP", "stARBIS/ETH") {
    arbisToken = IERC20(_arbisToken);
    _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
    rewardTokens.push(_arbisToken);
    isApprovedRewardToken[_arbisToken] = true;
  }

  function addReward(address token, uint256 reward) external nonReentrant {
    _addReward(token, reward, false);
  }

  function _addReward(address token, uint256 reward, bool intern) private {
    require(isApprovedRewardToken[token], "Token is not approved for rewards");
    if (!intern) {
      IERC20(token).safeTransferFrom(msg.sender, address(this), reward);
    }
    if (totalStaked == 0) {
      // Rewards which nobody is eligible for
      excessTokenRewards[token] += reward;
      return;
    }
    uint256 rewardPerStake = (reward * SCALE) / totalStaked;
    require(rewardPerStake > 0, "insufficient reward per stake");
    totalCumTokenRewardsPerStake[token] += rewardPerStake;
  }

  function stake(uint256 amount) external nonReentrant {
    require(amount > 0, "Invalid stake amount");
    // Transfer from msg.sender to us
    arbisToken.safeTransferFrom(msg.sender, address(this), amount);

    // Mint stARBIS
    _mint(msg.sender, amount);

    if (!stakeholderInfo[msg.sender].exists) {
      Stakeholder memory sh = Stakeholder(true, stakeholders.length);
      stakeholders.push(payable(msg.sender));
      stakeholderInfo[msg.sender] = sh;

      // Not eligible for any previous rewards on any token
      for (uint256 i = 0; i < rewardTokens.length; i++) {
        address token = rewardTokens[i];
        paidCumTokenRewardsPerStake[token][msg.sender] = totalCumTokenRewardsPerStake[token];
      }
    }
    else {
      _collectRewards();
    }

    totalStaked += amount;
    stakedBalance[msg.sender] += amount;
    lastStakeTime[msg.sender] = block.timestamp;
    emit Stake(msg.sender, amount);
  }

  function withdraw(uint256 amount) public nonReentrant {
    require(amount > 0, "Invalid withdraw amount");
    require(amount <= stakedBalance[msg.sender], "Insufficient balance");

    // Burn stARBIS
    _burn(msg.sender, amount);

    if (stakedBalance[msg.sender] - amount == 0) {
      // No stake left, so we pay rewards to simplify bookkeeping
      _collectRewards();
    }

    stakedBalance[msg.sender] -= amount;
    totalStaked -= amount;

    // If you deposited anything within the threshold this will be penalised
    uint256 delta = block.timestamp - lastStakeTime[msg.sender];
    uint256 fee = 0;
    if (delta < earlyWithdrawalSecondsThreshold) {
      uint256 actualFeePct = earlyWithdrawalFee - ((delta * earlyWithdrawalFee) / earlyWithdrawalSecondsThreshold);
      fee = (amount * actualFeePct) / SCALE;
      uint256 redistributedAmount = (fee * earlyWithdrawalDistributeShare) / SCALE;
      uint256 remaining = fee - redistributedAmount;
      // Redistribute portion of fee to stakers
      _addReward(address(arbisToken), redistributedAmount, true);

      // The rest goes to the treasury
      if (feeDestination != address(0)) {
        arbisToken.safeTransfer(feeDestination, remaining);
      } 
    }

    // Return ARBIS to the sender, minus any early withdrawal fees
    arbisToken.safeTransfer(msg.sender, amount - fee);

    if (stakedBalance[msg.sender] == 0) { 
      // Remove our records of this stakeholder
      uint256 idx = stakeholderInfo[msg.sender].idx;
      stakeholders[idx] = stakeholders[stakeholders.length - 1];
      stakeholderInfo[stakeholders[idx]].idx = idx;
      stakeholders.pop();
      delete stakeholderInfo[msg.sender];
    }
    emit Withdrawal(msg.sender, amount);
  }

  function _collectRewards() private {
    for (uint256 i = 0; i < rewardTokens.length; i++) {
      _collectRewardsForToken(rewardTokens[i]);
    }
  }

  function _collectRewardsForToken(address token) private {
    require(stakedBalance[msg.sender] > 0, "No stake for rewards");
    uint256 owedPerUnitStake = totalCumTokenRewardsPerStake[token] - paidCumTokenRewardsPerStake[token][msg.sender];
    uint256 totalRewards = (stakedBalance[msg.sender] * owedPerUnitStake) / SCALE;
    paidCumTokenRewardsPerStake[token][msg.sender] = totalCumTokenRewardsPerStake[token];
    IERC20(token).safeTransfer(msg.sender, totalRewards);
    emit RewardCollection(token, msg.sender, totalRewards);
  }

  function getAvailableTokenRewards(address token) external view returns (uint256 totalRewards) {
    uint256 owedPerUnitStake = totalCumTokenRewardsPerStake[token] - paidCumTokenRewardsPerStake[token][msg.sender];
    totalRewards = (stakedBalance[msg.sender] * owedPerUnitStake) / SCALE;
  }

  function getNumberOfStakeholders() external view returns (uint256) {
    return stakeholders.length;
  }

  function collectRewards() external nonReentrant {
    // This function is required so it can be nonReentrant
    _collectRewards();
  }

  function setFeeDestination(address payable dest) external onlyAdmin {
    feeDestination = dest;
  }

  function setEarlyWithdrawalFee(uint256 fee) external onlyAdmin {
    earlyWithdrawalFee = fee;
  }

  function setEarlyWithdrawalDistributeShare(uint256 amount) external onlyAdmin {
    // The portion of the fee that is redistributed to stakers
    earlyWithdrawalDistributeShare = amount;
  }

  function setEarlyWithdrawalSecondsThreshold(uint256 threshold) external onlyAdmin {
    earlyWithdrawalSecondsThreshold = threshold;
  }

  function withdrawExcessRewards() external onlyAdmin {
    for (uint256 i = 0; i < rewardTokens.length; i++) {
      IERC20(rewardTokens[i]).safeTransfer(msg.sender, excessTokenRewards[rewardTokens[i]]);
      excessTokenRewards[rewardTokens[i]] = 0;
    }
  }

  function addApprovedRewardToken(address token) external onlyAdmin {
    isApprovedRewardToken[token] = true;
    rewardTokens.push(token);
  }

  function removeApprovedRewardToken(address token) external onlyAdmin {
    for (uint256 i = 0; i < rewardTokens.length; i++) {
      if (rewardTokens[i] == token) {
        rewardTokens[i] = rewardTokens[rewardTokens.length - 1];
        rewardTokens.pop();
        isApprovedRewardToken[token] = false;
      }
    }
  }

  function recoverEth() external onlyAdmin {
    // For recovering eth mistakenly sent to the contract
    (bool success, ) = msg.sender.call{value: address(this).balance}("");
    require(success, "Withdraw failed");
  }

  modifier onlyAdmin() {
    require(hasRole(ADMIN_ROLE, msg.sender), "Caller is not an admin");
    _;
  }
}

File 2 of 13 : AccessControl.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role, _msgSender());
        _;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    function _grantRole(bytes32 role, address account) private {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    function _revokeRole(bytes32 role, address account) private {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 3 of 13 : ERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

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

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

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

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

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

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

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

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

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

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

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }

        return true;
    }

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

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

        return true;
    }

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

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

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

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

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

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

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

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

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

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

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

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

File 4 of 13 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^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 5 of 13 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 6 of 13 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 7 of 13 : IAccessControl.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

File 8 of 13 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 9 of 13 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

File 10 of 13 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

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

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @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);
}

File 12 of 13 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

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

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

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

Contract ABI

[{"inputs":[{"internalType":"address","name":"_arbisToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"addr","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardCollection","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"addr","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Stake","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"addr","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawal","type":"event"},{"inputs":[],"name":"ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SCALE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"addApprovedRewardToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"reward","type":"uint256"}],"name":"addReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"arbisToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collectRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"earlyWithdrawalDistributeShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"earlyWithdrawalFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"earlyWithdrawalSecondsThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"excessTokenRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeDestination","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"getAvailableTokenRewards","outputs":[{"internalType":"uint256","name":"totalRewards","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNumberOfStakeholders","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isApprovedRewardToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastStakeTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"paidCumRewardsPerStake","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"paidCumTokenRewardsPerStake","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"recoverEth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"removeApprovedRewardToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rewardTokens","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setEarlyWithdrawalDistributeShare","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"fee","type":"uint256"}],"name":"setEarlyWithdrawalFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"threshold","type":"uint256"}],"name":"setEarlyWithdrawalSecondsThreshold","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"dest","type":"address"}],"name":"setFeeDestination","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"stakedBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"stakeholderInfo","outputs":[{"internalType":"bool","name":"exists","type":"bool"},{"internalType":"uint256","name":"idx","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"stakeholders","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"totalCumTokenRewardsPerStake","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawExcessRewards","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a0604052600060075560006009556000600a556000600b553480156200002557600080fd5b5060405162005a5838038062005a5883398181016040528101906200004b919062000493565b6040518060400160405280601381526020017f5374616b65642041524249532f455448204c50000000000000000000000000008152506040518060400160405280600b81526020017f737441524249532f4554480000000000000000000000000000000000000000008152508160039080519060200190620000cf92919062000379565b508060049080519060200190620000e892919062000379565b50505060016006819055508073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff16815250506200013c6000801b33620001fe60201b60201c565b6012819080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001601360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550506200052a565b6200021082826200021460201b60201c565b5050565b6200022682826200030660201b60201c565b620003025760016005600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550620002a76200037160201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60006005600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b8280546200038790620004f4565b90600052602060002090601f016020900481019282620003ab5760008555620003f7565b82601f10620003c657805160ff1916838001178555620003f7565b82800160010185558215620003f7579182015b82811115620003f6578251825591602001919060010190620003d9565b5b5090506200040691906200040a565b5090565b5b80821115620004255760008160009055506001016200040b565b5090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200045b826200042e565b9050919050565b6200046d816200044e565b81146200047957600080fd5b50565b6000815190506200048d8162000462565b92915050565b600060208284031215620004ac57620004ab62000429565b5b6000620004bc848285016200047c565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200050d57607f821691505b60208210811415620005245762000523620004c5565b5b50919050565b6080516154f66200056260003960008181610fbd01528181611063015281816110be01528181611d6d015261283601526154f66000f3fe608060405234801561001057600080fd5b50600436106102d55760003560e01c80637bb7bed111610182578063b3d8f3b5116100e9578063dd62ed3e116100a2578063f1677cb41161007c578063f1677cb414610957578063f826ed2e14610987578063fbe53234146109a3578063fbe74dc9146109bf576102d5565b8063dd62ed3e146108eb578063de53fcd51461091b578063eced552614610939576102d5565b8063b3d8f3b514610865578063b9b4024c14610883578063baf979a91461089f578063bcdb446b146108a9578063ca49ff65146108b3578063d547741f146108cf576102d5565b806395d89b411161013b57806395d89b41146107915780639feb8f50146107af578063a217fddf146107cb578063a457c2d7146107e9578063a694fc3a14610819578063a9059cbb14610835576102d5565b80637bb7bed1146106825780638137694e146106b2578063814b23bd146106e2578063817b1cd214610713578063867bb7481461073157806391d1485414610761576102d5565b806336568abe1161024157806366e075bf116101fa57806370a08231116101d457806370a08231146105fa57806370bb45b31461062a57806375b238fc146106345780637bb1ca1914610652576102d5565b806366e075bf146105905780636f5d3a5a146105ae5780637095bffc146105ca576102d5565b806336568abe1461049657806339509351146104b25780634f1d0f97146104e2578063506cc9a214610500578063536f840f146105305780636021726714610560576102d5565b80631d6b8b72116102935780631d6b8b72146103b057806323b872dd146103e0578063248a9ca3146104105780632e1a7d4d146104405780632f2ff15d1461045c578063313ce56714610478576102d5565b80622516e4146102da57806301ffc9a7146102f657806306fdde0314610326578063095ea7b31461034457806316330d401461037457806318160ddd14610392575b600080fd5b6102f460048036038101906102ef9190613ded565b6109dd565b005b610310600480360381019061030b9190613e72565b610a50565b60405161031d9190613eba565b60405180910390f35b61032e610aca565b60405161033b9190613f6e565b60405180910390f35b61035e60048036038101906103599190613fee565b610b5c565b60405161036b9190613eba565b60405180910390f35b61037c610b7a565b604051610389919061403d565b60405180910390f35b61039a610b80565b6040516103a7919061403d565b60405180910390f35b6103ca60048036038101906103c59190613ded565b610b8a565b6040516103d79190614079565b60405180910390f35b6103fa60048036038101906103f59190614094565b610bc9565b6040516104079190613eba565b60405180910390f35b61042a6004803603810190610425919061411d565b610cc1565b6040516104379190614159565b60405180910390f35b61045a60048036038101906104559190613ded565b610ce1565b005b61047660048036038101906104719190614174565b6113af565b005b6104806113d8565b60405161048d91906141d0565b60405180910390f35b6104b060048036038101906104ab9190614174565b6113e1565b005b6104cc60048036038101906104c79190613fee565b611464565b6040516104d99190613eba565b60405180910390f35b6104ea611510565b6040516104f7919061403d565b60405180910390f35b61051a600480360381019061051591906141eb565b611516565b604051610527919061403d565b60405180910390f35b61054a600480360381019061054591906141eb565b61152e565b604051610557919061403d565b60405180910390f35b61057a600480360381019061057591906141eb565b611669565b604051610587919061403d565b60405180910390f35b610598611681565b6040516105a5919061403d565b60405180910390f35b6105c860048036038101906105c391906141eb565b611687565b005b6105e460048036038101906105df91906141eb565b6118d5565b6040516105f19190613eba565b60405180910390f35b610614600480360381019061060f91906141eb565b6118f5565b604051610621919061403d565b60405180910390f35b61063261193d565b005b61063c61199d565b6040516106499190614159565b60405180910390f35b61066c600480360381019061066791906141eb565b6119c1565b604051610679919061403d565b60405180910390f35b61069c60048036038101906106979190613ded565b6119d9565b6040516106a99190614227565b60405180910390f35b6106cc60048036038101906106c791906141eb565b611a18565b6040516106d9919061403d565b60405180910390f35b6106fc60048036038101906106f791906141eb565b611a30565b60405161070a929190614242565b60405180910390f35b61071b611a61565b604051610728919061403d565b60405180910390f35b61074b600480360381019061074691906141eb565b611a67565b604051610758919061403d565b60405180910390f35b61077b60048036038101906107769190614174565b611a7f565b6040516107889190613eba565b60405180910390f35b610799611aea565b6040516107a69190613f6e565b60405180910390f35b6107c960048036038101906107c49190613fee565b611b7c565b005b6107d3611be2565b6040516107e09190614159565b60405180910390f35b61080360048036038101906107fe9190613fee565b611be9565b6040516108109190613eba565b60405180910390f35b610833600480360381019061082e9190613ded565b611cd4565b005b61084f600480360381019061084a9190613fee565b61212f565b60405161085c9190613eba565b60405180910390f35b61086d61214d565b60405161087a919061403d565b60405180910390f35b61089d60048036038101906108989190613ded565b61215a565b005b6108a76121cd565b005b6108b16123c5565b005b6108cd60048036038101906108c891906141eb565b6124dd565b005b6108e960048036038101906108e49190614174565b612604565b005b6109056004803603810190610900919061426b565b61262d565b604051610912919061403d565b60405180910390f35b6109236126b4565b6040516109309190614079565b60405180910390f35b6109416126da565b60405161094e919061403d565b60405180910390f35b610971600480360381019061096c919061426b565b6126ef565b60405161097e919061403d565b60405180910390f35b6109a1600480360381019061099c9190613ded565b612714565b005b6109bd60048036038101906109b891906142d7565b612787565b005b6109c7612834565b6040516109d49190614363565b60405180910390f35b610a077fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177533611a7f565b610a46576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3d906143ca565b60405180910390fd5b80600b8190555050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610ac35750610ac282612858565b5b9050919050565b606060038054610ad990614419565b80601f0160208091040260200160405190810160405280929190818152602001828054610b0590614419565b8015610b525780601f10610b2757610100808354040283529160200191610b52565b820191906000526020600020905b815481529060010190602001808311610b3557829003601f168201915b5050505050905090565b6000610b70610b696128c2565b84846128ca565b6001905092915050565b60095481565b6000600254905090565b600c8181548110610b9a57600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000610bd6848484612a95565b6000600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000610c216128c2565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015610ca1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c98906144bd565b60405180910390fd5b610cb585610cad6128c2565b8584036128ca565b60019150509392505050565b600060056000838152602001908152602001600020600101549050919050565b60026006541415610d27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1e90614529565b60405180910390fd5b600260068190555060008111610d72576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6990614595565b60405180910390fd5b601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054811115610df4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610deb90614601565b60405180910390fd5b610dfe3382612d16565b600081601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610e4b9190614650565b1415610e5a57610e59612eed565b5b80601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610ea99190614650565b925050819055508060076000828254610ec29190614650565b925050819055506000601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205442610f169190614650565b90506000600b548210156110ac576000600b5460095484610f379190614684565b610f41919061470d565b600954610f4e9190614650565b9050701d6329f1c35ca4bfabb9f56100000000008185610f6e9190614684565b610f78919061470d565b91506000701d6329f1c35ca4bfabb9f5610000000000600a5484610f9c9190614684565b610fa6919061470d565b905060008184610fb69190614650565b9050610fe47f0000000000000000000000000000000000000000000000000000000000000000836001612f5a565b600073ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146110a8576110a7600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16827f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1661314d9092919063ffffffff16565b5b5050505b6111023382856110bc9190614650565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1661314d9092919063ffffffff16565b6000601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541415611369576000601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101549050600c6001600c805490506111a59190614650565b815481106111b6576111b561473e565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600c82815481106111f5576111f461473e565b5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508060146000600c84815481106112565761125561473e565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010181905550600c8054806112d4576112d361476d565b5b6001900381819060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690559055601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600080820160006101000a81549060ff021916905560018201600090555050505b7f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65338460405161139a92919061479c565b60405180910390a15050600160068190555050565b6113b882610cc1565b6113c9816113c46128c2565b6131d3565b6113d38383613270565b505050565b60006012905090565b6113e96128c2565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611456576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144d90614837565b60405180910390fd5b6114608282613351565b5050565b60006115066114716128c2565b84846001600061147f6128c2565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546115019190614857565b6128ca565b6001905092915050565b600b5481565b600d6020528060005260406000206000915090505481565b600080601060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600e60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546115f89190614650565b9050701d6329f1c35ca4bfabb9f561000000000081601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546116579190614684565b611661919061470d565b915050919050565b60116020528060005260406000206000915090505481565b600a5481565b6116b17fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177533611a7f565b6116f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116e7906143ca565b60405180910390fd5b60005b6012805490508110156118d1578173ffffffffffffffffffffffffffffffffffffffff166012828154811061172b5761172a61473e565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156118be57601260016012805490506117869190614650565b815481106117975761179661473e565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16601282815481106117d6576117d561473e565b5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060128054806118305761182f61476d565b5b6001900381819060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905590556000601360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505b80806118c9906148ad565b9150506116f3565b5050565b60136020528060005260406000206000915054906101000a900460ff1681565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60026006541415611983576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161197a90614529565b60405180910390fd5b6002600681905550611993612eed565b6001600681905550565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b60156020528060005260406000206000915090505481565b601281815481106119e957600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600e6020528060005260406000206000915090505481565b60146020528060005260406000206000915090508060000160009054906101000a900460ff16908060010154905082565b60075481565b600f6020528060005260406000206000915090505481565b60006005600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b606060048054611af990614419565b80601f0160208091040260200160405190810160405280929190818152602001828054611b2590614419565b8015611b725780601f10611b4757610100808354040283529160200191611b72565b820191906000526020600020905b815481529060010190602001808311611b5557829003601f168201915b5050505050905090565b60026006541415611bc2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bb990614529565b60405180910390fd5b6002600681905550611bd682826000612f5a565b60016006819055505050565b6000801b81565b60008060016000611bf86128c2565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015611cb5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cac90614968565b60405180910390fd5b611cc9611cc06128c2565b858584036128ca565b600191505092915050565b60026006541415611d1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d1190614529565b60405180910390fd5b600260068190555060008111611d65576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5c906149d4565b60405180910390fd5b611db23330837f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16613433909392919063ffffffff16565b611dbc33826134bc565b601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900460ff1661202f5760006040518060400160405280600115158152602001600c805490508152509050600c339080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000160006101000a81548160ff0219169083151502179055506020820151816001015590505060005b60128054905081101561202857600060128281548110611f2757611f2661473e565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600e60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550508080612020906148ad565b915050611f04565b5050612038565b612037612eed565b5b806007600082825461204a9190614857565b9250508190555080601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546120a09190614857565b9250508190555042601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507febedb8b3c678666e7f36970bc8f57abf6d8fa2e828c0da91ea5b75bf68ed101a338260405161211c92919061479c565b60405180910390a1600160068190555050565b600061214361213c6128c2565b8484612a95565b6001905092915050565b6000600c80549050905090565b6121847fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177533611a7f565b6121c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121ba906143ca565b60405180910390fd5b80600a8190555050565b6121f77fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177533611a7f565b612236576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161222d906143ca565b60405180910390fd5b60005b6012805490508110156123c25761232c33600d6000601285815481106122625761226161473e565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054601284815481106122dc576122db61473e565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661314d9092919063ffffffff16565b6000600d6000601284815481106123465761234561473e565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080806123ba906148ad565b915050612239565b50565b6123ef7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177533611a7f565b61242e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612425906143ca565b60405180910390fd5b60003373ffffffffffffffffffffffffffffffffffffffff164760405161245490614a25565b60006040518083038185875af1925050503d8060008114612491576040519150601f19603f3d011682016040523d82523d6000602084013e612496565b606091505b50509050806124da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124d190614a86565b60405180910390fd5b50565b6125077fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177533611a7f565b612546576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161253d906143ca565b60405180910390fd5b6001601360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506012819080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61260d82610cc1565b61261e816126196128c2565b6131d3565b6126288383613351565b505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b701d6329f1c35ca4bfabb9f561000000000081565b6010602052816000526040600020602052806000526040600020600091509150505481565b61273e7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177533611a7f565b61277d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612774906143ca565b60405180910390fd5b8060098190555050565b6127b17fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177533611a7f565b6127f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127e7906143ca565b60405180910390fd5b80600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561293a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161293190614b18565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156129aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129a190614baa565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051612a88919061403d565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612b05576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612afc90614c3c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612b75576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b6c90614cce565b60405180910390fd5b612b8083838361361c565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612c06576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bfd90614d60565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612c999190614857565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051612cfd919061403d565b60405180910390a3612d10848484613621565b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612d86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d7d90614df2565b60405180910390fd5b612d928260008361361c565b60008060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612e18576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e0f90614e84565b60405180910390fd5b8181036000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160026000828254612e6f9190614650565b92505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051612ed4919061403d565b60405180910390a3612ee883600084613621565b505050565b60005b601280549050811015612f5757612f4460128281548110612f1457612f1361473e565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16613626565b8080612f4f906148ad565b915050612ef0565b50565b601360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16612fe6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fdd90614f16565b60405180910390fd5b80613019576130183330848673ffffffffffffffffffffffffffffffffffffffff16613433909392919063ffffffff16565b5b6000600754141561307f5781600d60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546130739190614857565b92505081905550613148565b6000600754701d6329f1c35ca4bfabb9f5610000000000846130a19190614684565b6130ab919061470d565b9050600081116130f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130e790614f82565b60405180910390fd5b80600e60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461313f9190614857565b92505081905550505b505050565b6131ce8363a9059cbb60e01b848460405160240161316c92919061479c565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050613909565b505050565b6131dd8282611a7f565b61326c576132028173ffffffffffffffffffffffffffffffffffffffff1660146139d0565b6132108360001c60206139d0565b604051602001613221929190615076565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132639190613f6e565b60405180910390fd5b5050565b61327a8282611a7f565b61334d5760016005600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506132f26128c2565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b61335b8282611a7f565b1561342f5760006005600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506133d46128c2565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6134b6846323b872dd60e01b858585604051602401613454939291906150b0565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050613909565b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561352c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161352390615133565b60405180910390fd5b6135386000838361361c565b806002600082825461354a9190614857565b92505081905550806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461359f9190614857565b925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051613604919061403d565b60405180910390a361361860008383613621565b5050565b505050565b505050565b6000601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054116136a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161369f9061519f565b60405180910390fd5b6000601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546137719190614650565b90506000701d6329f1c35ca4bfabb9f561000000000082601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546137d29190614684565b6137dc919061470d565b9050600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054601060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506138c933828573ffffffffffffffffffffffffffffffffffffffff1661314d9092919063ffffffff16565b7f49d368020d08fde7587b5cf8cf012abc1e73214d401dfe803c531501d0bd40178333836040516138fc939291906150b0565b60405180910390a1505050565b600061396b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16613c0c9092919063ffffffff16565b90506000815111156139cb578080602001905181019061398b91906151eb565b6139ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016139c19061528a565b60405180910390fd5b5b505050565b6060600060028360026139e39190614684565b6139ed9190614857565b67ffffffffffffffff811115613a0657613a056152aa565b5b6040519080825280601f01601f191660200182016040528015613a385781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110613a7057613a6f61473e565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110613ad457613ad361473e565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002613b149190614684565b613b1e9190614857565b90505b6001811115613bbe577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110613b6057613b5f61473e565b5b1a60f81b828281518110613b7757613b7661473e565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080613bb7906152d9565b9050613b21565b5060008414613c02576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613bf99061534f565b60405180910390fd5b8091505092915050565b6060613c1b8484600085613c24565b90509392505050565b606082471015613c69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613c60906153e1565b60405180910390fd5b613c7285613d38565b613cb1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613ca89061544d565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051613cda91906154a9565b60006040518083038185875af1925050503d8060008114613d17576040519150601f19603f3d011682016040523d82523d6000602084013e613d1c565b606091505b5091509150613d2c828286613d4b565b92505050949350505050565b600080823b905060008111915050919050565b60608315613d5b57829050613dab565b600083511115613d6e5782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613da29190613f6e565b60405180910390fd5b9392505050565b600080fd5b6000819050919050565b613dca81613db7565b8114613dd557600080fd5b50565b600081359050613de781613dc1565b92915050565b600060208284031215613e0357613e02613db2565b5b6000613e1184828501613dd8565b91505092915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613e4f81613e1a565b8114613e5a57600080fd5b50565b600081359050613e6c81613e46565b92915050565b600060208284031215613e8857613e87613db2565b5b6000613e9684828501613e5d565b91505092915050565b60008115159050919050565b613eb481613e9f565b82525050565b6000602082019050613ecf6000830184613eab565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613f0f578082015181840152602081019050613ef4565b83811115613f1e576000848401525b50505050565b6000601f19601f8301169050919050565b6000613f4082613ed5565b613f4a8185613ee0565b9350613f5a818560208601613ef1565b613f6381613f24565b840191505092915050565b60006020820190508181036000830152613f888184613f35565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613fbb82613f90565b9050919050565b613fcb81613fb0565b8114613fd657600080fd5b50565b600081359050613fe881613fc2565b92915050565b6000806040838503121561400557614004613db2565b5b600061401385828601613fd9565b925050602061402485828601613dd8565b9150509250929050565b61403781613db7565b82525050565b6000602082019050614052600083018461402e565b92915050565b600061406382613f90565b9050919050565b61407381614058565b82525050565b600060208201905061408e600083018461406a565b92915050565b6000806000606084860312156140ad576140ac613db2565b5b60006140bb86828701613fd9565b93505060206140cc86828701613fd9565b92505060406140dd86828701613dd8565b9150509250925092565b6000819050919050565b6140fa816140e7565b811461410557600080fd5b50565b600081359050614117816140f1565b92915050565b60006020828403121561413357614132613db2565b5b600061414184828501614108565b91505092915050565b614153816140e7565b82525050565b600060208201905061416e600083018461414a565b92915050565b6000806040838503121561418b5761418a613db2565b5b600061419985828601614108565b92505060206141aa85828601613fd9565b9150509250929050565b600060ff82169050919050565b6141ca816141b4565b82525050565b60006020820190506141e560008301846141c1565b92915050565b60006020828403121561420157614200613db2565b5b600061420f84828501613fd9565b91505092915050565b61422181613fb0565b82525050565b600060208201905061423c6000830184614218565b92915050565b60006040820190506142576000830185613eab565b614264602083018461402e565b9392505050565b6000806040838503121561428257614281613db2565b5b600061429085828601613fd9565b92505060206142a185828601613fd9565b9150509250929050565b6142b481614058565b81146142bf57600080fd5b50565b6000813590506142d1816142ab565b92915050565b6000602082840312156142ed576142ec613db2565b5b60006142fb848285016142c2565b91505092915050565b6000819050919050565b600061432961432461431f84613f90565b614304565b613f90565b9050919050565b600061433b8261430e565b9050919050565b600061434d82614330565b9050919050565b61435d81614342565b82525050565b60006020820190506143786000830184614354565b92915050565b7f43616c6c6572206973206e6f7420616e2061646d696e00000000000000000000600082015250565b60006143b4601683613ee0565b91506143bf8261437e565b602082019050919050565b600060208201905081810360008301526143e3816143a7565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061443157607f821691505b60208210811415614445576144446143ea565b5b50919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206160008201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000602082015250565b60006144a7602883613ee0565b91506144b28261444b565b604082019050919050565b600060208201905081810360008301526144d68161449a565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614513601f83613ee0565b915061451e826144dd565b602082019050919050565b6000602082019050818103600083015261454281614506565b9050919050565b7f496e76616c696420776974686472617720616d6f756e74000000000000000000600082015250565b600061457f601783613ee0565b915061458a82614549565b602082019050919050565b600060208201905081810360008301526145ae81614572565b9050919050565b7f496e73756666696369656e742062616c616e6365000000000000000000000000600082015250565b60006145eb601483613ee0565b91506145f6826145b5565b602082019050919050565b6000602082019050818103600083015261461a816145de565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061465b82613db7565b915061466683613db7565b92508282101561467957614678614621565b5b828203905092915050565b600061468f82613db7565b915061469a83613db7565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156146d3576146d2614621565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061471882613db7565b915061472383613db7565b925082614733576147326146de565b5b828204905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b60006040820190506147b16000830185614218565b6147be602083018461402e565b9392505050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000614821602f83613ee0565b915061482c826147c5565b604082019050919050565b6000602082019050818103600083015261485081614814565b9050919050565b600061486282613db7565b915061486d83613db7565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156148a2576148a1614621565b5b828201905092915050565b60006148b882613db7565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156148eb576148ea614621565b5b600182019050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b6000614952602583613ee0565b915061495d826148f6565b604082019050919050565b6000602082019050818103600083015261498181614945565b9050919050565b7f496e76616c6964207374616b6520616d6f756e74000000000000000000000000600082015250565b60006149be601483613ee0565b91506149c982614988565b602082019050919050565b600060208201905081810360008301526149ed816149b1565b9050919050565b600081905092915050565b50565b6000614a0f6000836149f4565b9150614a1a826149ff565b600082019050919050565b6000614a3082614a02565b9150819050919050565b7f5769746864726177206661696c65640000000000000000000000000000000000600082015250565b6000614a70600f83613ee0565b9150614a7b82614a3a565b602082019050919050565b60006020820190508181036000830152614a9f81614a63565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000614b02602483613ee0565b9150614b0d82614aa6565b604082019050919050565b60006020820190508181036000830152614b3181614af5565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b6000614b94602283613ee0565b9150614b9f82614b38565b604082019050919050565b60006020820190508181036000830152614bc381614b87565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000614c26602583613ee0565b9150614c3182614bca565b604082019050919050565b60006020820190508181036000830152614c5581614c19565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000614cb8602383613ee0565b9150614cc382614c5c565b604082019050919050565b60006020820190508181036000830152614ce781614cab565b9050919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b6000614d4a602683613ee0565b9150614d5582614cee565b604082019050919050565b60006020820190508181036000830152614d7981614d3d565b9050919050565b7f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000614ddc602183613ee0565b9150614de782614d80565b604082019050919050565b60006020820190508181036000830152614e0b81614dcf565b9050919050565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60008201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b6000614e6e602283613ee0565b9150614e7982614e12565b604082019050919050565b60006020820190508181036000830152614e9d81614e61565b9050919050565b7f546f6b656e206973206e6f7420617070726f76656420666f722072657761726460008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000614f00602183613ee0565b9150614f0b82614ea4565b604082019050919050565b60006020820190508181036000830152614f2f81614ef3565b9050919050565b7f696e73756666696369656e742072657761726420706572207374616b65000000600082015250565b6000614f6c601d83613ee0565b9150614f7782614f36565b602082019050919050565b60006020820190508181036000830152614f9b81614f5f565b9050919050565b600081905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000614fe3601783614fa2565b9150614fee82614fad565b601782019050919050565b600061500482613ed5565b61500e8185614fa2565b935061501e818560208601613ef1565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000615060601183614fa2565b915061506b8261502a565b601182019050919050565b600061508182614fd6565b915061508d8285614ff9565b915061509882615053565b91506150a48284614ff9565b91508190509392505050565b60006060820190506150c56000830186614218565b6150d26020830185614218565b6150df604083018461402e565b949350505050565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b600061511d601f83613ee0565b9150615128826150e7565b602082019050919050565b6000602082019050818103600083015261514c81615110565b9050919050565b7f4e6f207374616b6520666f722072657761726473000000000000000000000000600082015250565b6000615189601483613ee0565b915061519482615153565b602082019050919050565b600060208201905081810360008301526151b88161517c565b9050919050565b6151c881613e9f565b81146151d357600080fd5b50565b6000815190506151e5816151bf565b92915050565b60006020828403121561520157615200613db2565b5b600061520f848285016151d6565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000615274602a83613ee0565b915061527f82615218565b604082019050919050565b600060208201905081810360008301526152a381615267565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60006152e482613db7565b915060008214156152f8576152f7614621565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000615339602083613ee0565b915061534482615303565b602082019050919050565b600060208201905081810360008301526153688161532c565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b60006153cb602683613ee0565b91506153d68261536f565b604082019050919050565b600060208201905081810360008301526153fa816153be565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000615437601d83613ee0565b915061544282615401565b602082019050919050565b600060208201905081810360008301526154668161542a565b9050919050565b600081519050919050565b60006154838261546d565b61548d81856149f4565b935061549d818560208601613ef1565b80840191505092915050565b60006154b58284615478565b91508190509291505056fea2646970667358221220869c12d96be1a5ba1a529bb0238eb95be7c20adf9e4343f7796a827739af81a064736f6c63430008090033000000000000000000000000a32329952c857fbc707b4d2ad5901ddb93bfef9f

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

000000000000000000000000a32329952c857fbc707b4d2ad5901ddb93bfef9f

-----Decoded View---------------
Arg [0] : _arbisToken (address): 0xa32329952c857fbc707b4d2ad5901ddb93bfef9f

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000a32329952c857fbc707b4d2ad5901ddb93bfef9f


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