Contract 0xbf00759d7e329d7a7fa1d4dcdc914c53d1d2db86 2

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xda314c6353fadd59b81be9b73f4b76ab277df8865b52eaf72853dc0276245b8aWithdraw270495592022-09-27 19:23:111 day 8 hrs ago0xe88c3ff1db5aa8b329e40a3f28257ba5eb69007d IN  Arbi's Finance: stARBIS Token0 ETH0.00004176
0xe4d5e6d169a8bd0e967b123fe184071b610e043fe9964fe007619a52d5e899daWithdraw270488122022-09-27 19:15:051 day 9 hrs ago0xe88c3ff1db5aa8b329e40a3f28257ba5eb69007d IN  Arbi's Finance: stARBIS Token0 ETH0.00004321
0x30a5fd095944ce672a1c294742fe44ef17ad693778c63406aa07afe075cf53f5Withdraw270485972022-09-27 19:12:491 day 9 hrs ago0xe88c3ff1db5aa8b329e40a3f28257ba5eb69007d IN  Arbi's Finance: stARBIS Token0 ETH0.00004491
0x303099bcdc026a2d7ff2ed77d8e683a19794e6b77cac457006831f52f8314dd4Collect Rewards270483442022-09-27 19:09:531 day 9 hrs ago0xe88c3ff1db5aa8b329e40a3f28257ba5eb69007d IN  Arbi's Finance: stARBIS Token0 ETH0.00003646
0xcc7af9d7eb9f75ff743fa23b76e727bb7bc66d43158b59857e99de839465da4aWithdraw269745742022-09-27 11:22:021 day 16 hrs ago0xf06fc22f0f9d15a271e18aa216fe183e20a7a092 IN  Arbi's Finance: stARBIS Token0 ETH0.00003396
0x1690019b7c7865c59ba5cab4bd337beeda8fd1199ebb5a8f215fb1bc271fc64bWithdraw269324132022-09-27 6:02:191 day 22 hrs ago0xe737ccc4ba1430a8969b4f2332012e17caecb652 IN  Arbi's Finance: stARBIS Token0 ETH0.00002595
0x734126eb540ecf5e13bfedb8012c5fb2c78fb760fdda3e8e5475d9db5f8dfd47Collect Rewards269323412022-09-27 6:01:501 day 22 hrs ago0xe737ccc4ba1430a8969b4f2332012e17caecb652 IN  Arbi's Finance: stARBIS Token0 ETH0.00004693
0x73216e2e9086f48d229884c992af74e8a326eea81359a7f623a660911678f868Withdraw269307712022-09-27 5:50:061 day 22 hrs ago0xfa2666d92445a5d4de12d746e902a2cea74d331f IN  Arbi's Finance: stARBIS Token0 ETH0.00002237
0xcb48b5e44aed4664d16819c756b27bcd17fbb8bac6d3d93a4c86afb3a361dffcCollect Rewards269299512022-09-27 5:43:251 day 22 hrs ago0xfa2666d92445a5d4de12d746e902a2cea74d331f IN  Arbi's Finance: stARBIS Token0 ETH0.00001548
0x3eadd089e287dba717b54afa937fd20bd4a80248be22df9afcd725f21c1c6bcdCollect Rewards269299342022-09-27 5:43:181 day 22 hrs ago0xfa2666d92445a5d4de12d746e902a2cea74d331f IN  Arbi's Finance: stARBIS Token0 ETH0.0000432
0xbd1a59acbe8e0aa228473b47b0025b9eba1847dd5c194dcfe4f3740304829265Withdraw266897162022-09-26 1:32:553 days 2 hrs ago0xec86b0cfef9a8533197c19663de0b1767fbefe07 IN  Arbi's Finance: stARBIS Token0 ETH0.00001869
0xa0a7247a5d936e4bf54b8aaa6386957cece55e692d629afe6d414d643ecc8423Collect Rewards266895462022-09-26 1:31:443 days 2 hrs ago0xec86b0cfef9a8533197c19663de0b1767fbefe07 IN  Arbi's Finance: stARBIS Token0 ETH0.0000366
0x0ab1b4b605d7de23de6d63054103f0126b25914699ddc7c72d325d757fd1a1a9Withdraw262541972022-09-23 19:27:495 days 8 hrs ago0x4026b3da349c2952255ca9db4f055ea57f4e037c IN  Arbi's Finance: stARBIS Token0 ETH0.00002322
0x12c69a25b73ce41d9a4616aa309b2505a73472c12704a4dd817c4584522a41aeCollect Rewards262538842022-09-23 19:26:015 days 8 hrs ago0x4026b3da349c2952255ca9db4f055ea57f4e037c IN  Arbi's Finance: stARBIS Token0 ETH0.00003952
0x46959e93af3ea74bb07436d0df68490f9b59bf9d63b622f5fef5fa33a2bdd976Collect Rewards260923502022-09-23 3:42:566 days 32 mins ago0xc16373b5fdb767c5c10b1ef1668649f94f925e03 IN  Arbi's Finance: stARBIS Token0 ETH0.00003702
0x069d3a3839d0b076ce72c49b9b4f0f0720218c6243059ca1625fd89c7bf9ebc6Withdraw252895722022-09-19 13:55:139 days 14 hrs ago0xd6c820d2c6dcce479df3a755e0a555e583b40e80 IN  Arbi's Finance: stARBIS Token0 ETH0.00001687
0xd33f8c6cae489c30e2eaa55e90865371b9d3a8ac67dd9478b68cdb33a323425aCollect Rewards252894992022-09-19 13:54:529 days 14 hrs ago0xd6c820d2c6dcce479df3a755e0a555e583b40e80 IN  Arbi's Finance: stARBIS Token0 ETH0.00004031
0xfddbad0a2a39f7396e9ae0ef55f82b73d1bac6cfb083dbf1a77017362509c90aWithdraw251841482022-09-18 22:33:0010 days 5 hrs ago0xa697df8376b2c0c6900fac24b173d00f2ab6d9d3 IN  Arbi's Finance: stARBIS Token0 ETH0.00001148
0x8e984ed07a3787a81381ede24db2f945a96f5b4f543b15ceb4af6d5f60dc8166Withdraw250987222022-09-18 9:14:5310 days 19 hrs ago0xe4076281cf8f3c73404a0642a390c1d946720e08 IN  Arbi's Finance: stARBIS Token0 ETH0.00001538
0x682f7d53a7e21a33616cca3d48dae65c062c5a49970df9ff5c54df2c62b5add3Collect Rewards250986212022-09-18 9:13:4410 days 19 hrs ago0xe4076281cf8f3c73404a0642a390c1d946720e08 IN  Arbi's Finance: stARBIS Token0 ETH0.00003743
0xaf40ecdfdae8503f7c3d816928632785fb4be5cc41263113f483e08dbe9d7f60Withdraw250865662022-09-18 6:53:3110 days 21 hrs ago0x9a1b712fb4c80be964ed35ad4c43a7153ceca077 IN  Arbi's Finance: stARBIS Token0 ETH0.00001615
0xedbee4cec6f9d39b638444f06e97d33387dfd4658faa4c53faa8b79b2cb41fbcCollect Rewards250746342022-09-18 4:28:0510 days 23 hrs ago0x9a1b712fb4c80be964ed35ad4c43a7153ceca077 IN  Arbi's Finance: stARBIS Token0 ETH0.00003504
0xcea07d9264b35e548e341e07a0a246c76e7dc2a87bda34b2325163fbe6dff00eWithdraw249625622022-09-17 3:15:2212 days 1 hr ago0x5dbf450efcc0ed14d35839f76bc5653a64481e3c IN  Arbi's Finance: stARBIS Token0 ETH0.00001971
0xd0aed30a0cf454a7c4951b1a19b36217fa8a9c8dedd1cb6d65f27347b7fe93d0Stake249622172022-09-17 3:10:0012 days 1 hr ago0x5dbf450efcc0ed14d35839f76bc5653a64481e3c IN  Arbi's Finance: stARBIS Token0 ETH0.00001773
0x80b081ee1ce08c37f975a680a14f6318ee500cb6299aa0e4962e236fec023407Withdraw249617242022-09-17 3:01:3512 days 1 hr ago0x5dbf450efcc0ed14d35839f76bc5653a64481e3c IN  Arbi's Finance: stARBIS Token0 ETH0.00001218
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xda314c6353fadd59b81be9b73f4b76ab277df8865b52eaf72853dc0276245b8a270495592022-09-27 19:23:111 day 8 hrs ago Arbi's Finance: stARBIS Token Arbi's Finance: ARBIS Token0 ETH
0xe4d5e6d169a8bd0e967b123fe184071b610e043fe9964fe007619a52d5e899da270488122022-09-27 19:15:051 day 9 hrs ago Arbi's Finance: stARBIS Token Arbi's Finance: ARBIS Token0 ETH
0x30a5fd095944ce672a1c294742fe44ef17ad693778c63406aa07afe075cf53f5270485972022-09-27 19:12:491 day 9 hrs ago Arbi's Finance: stARBIS Token Arbi's Finance: ARBIS Token0 ETH
0xcc7af9d7eb9f75ff743fa23b76e727bb7bc66d43158b59857e99de839465da4a269745742022-09-27 11:22:021 day 16 hrs ago Arbi's Finance: stARBIS Token Arbi's Finance: ARBIS Token0 ETH
0xcc7af9d7eb9f75ff743fa23b76e727bb7bc66d43158b59857e99de839465da4a269745742022-09-27 11:22:021 day 16 hrs ago Arbi's Finance: stARBIS Token 0x1622bf67e6e5747b81866fe0b85178a93c7f86e30 ETH
0xcc7af9d7eb9f75ff743fa23b76e727bb7bc66d43158b59857e99de839465da4a269745742022-09-27 11:22:021 day 16 hrs ago Arbi's Finance: stARBIS Token 0x75a2f30929c539e7d4ee033c9331b89f879c0cf70 ETH
0xcc7af9d7eb9f75ff743fa23b76e727bb7bc66d43158b59857e99de839465da4a269745742022-09-27 11:22:021 day 16 hrs ago Arbi's Finance: stARBIS Token 0x82af49447d8a07e3bd95bd0d56f35241523fbab10 ETH
0xcc7af9d7eb9f75ff743fa23b76e727bb7bc66d43158b59857e99de839465da4a269745742022-09-27 11:22:021 day 16 hrs ago Arbi's Finance: stARBIS Token Arbi's Finance: ARBIS Token0 ETH
0x1690019b7c7865c59ba5cab4bd337beeda8fd1199ebb5a8f215fb1bc271fc64b269324132022-09-27 6:02:191 day 22 hrs ago Arbi's Finance: stARBIS Token Arbi's Finance: ARBIS Token0 ETH
0x734126eb540ecf5e13bfedb8012c5fb2c78fb760fdda3e8e5475d9db5f8dfd47269323412022-09-27 6:01:501 day 22 hrs ago Arbi's Finance: stARBIS Token 0x1622bf67e6e5747b81866fe0b85178a93c7f86e30 ETH
0x734126eb540ecf5e13bfedb8012c5fb2c78fb760fdda3e8e5475d9db5f8dfd47269323412022-09-27 6:01:501 day 22 hrs ago Arbi's Finance: stARBIS Token 0x75a2f30929c539e7d4ee033c9331b89f879c0cf70 ETH
0x734126eb540ecf5e13bfedb8012c5fb2c78fb760fdda3e8e5475d9db5f8dfd47269323412022-09-27 6:01:501 day 22 hrs ago Arbi's Finance: stARBIS Token 0xdb96f8efd6865644993505318cc08ff9c42fb9ac0 ETH
0x734126eb540ecf5e13bfedb8012c5fb2c78fb760fdda3e8e5475d9db5f8dfd47269323412022-09-27 6:01:501 day 22 hrs ago Arbi's Finance: stARBIS Token 0x82af49447d8a07e3bd95bd0d56f35241523fbab10 ETH
0x734126eb540ecf5e13bfedb8012c5fb2c78fb760fdda3e8e5475d9db5f8dfd47269323412022-09-27 6:01:501 day 22 hrs ago Arbi's Finance: stARBIS Token Arbi's Finance: ARBIS Token0 ETH
0x73216e2e9086f48d229884c992af74e8a326eea81359a7f623a660911678f868269307712022-09-27 5:50:061 day 22 hrs ago Arbi's Finance: stARBIS Token Arbi's Finance: ARBIS Token0 ETH
0x3eadd089e287dba717b54afa937fd20bd4a80248be22df9afcd725f21c1c6bcd269299342022-09-27 5:43:181 day 22 hrs ago Arbi's Finance: stARBIS Token 0x1622bf67e6e5747b81866fe0b85178a93c7f86e30 ETH
0x3eadd089e287dba717b54afa937fd20bd4a80248be22df9afcd725f21c1c6bcd269299342022-09-27 5:43:181 day 22 hrs ago Arbi's Finance: stARBIS Token 0x75a2f30929c539e7d4ee033c9331b89f879c0cf70 ETH
0x3eadd089e287dba717b54afa937fd20bd4a80248be22df9afcd725f21c1c6bcd269299342022-09-27 5:43:181 day 22 hrs ago Arbi's Finance: stARBIS Token 0xdb96f8efd6865644993505318cc08ff9c42fb9ac0 ETH
0x3eadd089e287dba717b54afa937fd20bd4a80248be22df9afcd725f21c1c6bcd269299342022-09-27 5:43:181 day 22 hrs ago Arbi's Finance: stARBIS Token 0x82af49447d8a07e3bd95bd0d56f35241523fbab10 ETH
0x3eadd089e287dba717b54afa937fd20bd4a80248be22df9afcd725f21c1c6bcd269299342022-09-27 5:43:181 day 22 hrs ago Arbi's Finance: stARBIS Token Arbi's Finance: ARBIS Token0 ETH
0xbd1a59acbe8e0aa228473b47b0025b9eba1847dd5c194dcfe4f3740304829265266897162022-09-26 1:32:553 days 2 hrs ago Arbi's Finance: stARBIS Token Arbi's Finance: ARBIS Token0 ETH
0xa0a7247a5d936e4bf54b8aaa6386957cece55e692d629afe6d414d643ecc8423266895462022-09-26 1:31:443 days 2 hrs ago Arbi's Finance: stARBIS Token 0x1622bf67e6e5747b81866fe0b85178a93c7f86e30 ETH
0xa0a7247a5d936e4bf54b8aaa6386957cece55e692d629afe6d414d643ecc8423266895462022-09-26 1:31:443 days 2 hrs ago Arbi's Finance: stARBIS Token 0x75a2f30929c539e7d4ee033c9331b89f879c0cf70 ETH
0xa0a7247a5d936e4bf54b8aaa6386957cece55e692d629afe6d414d643ecc8423266895462022-09-26 1:31:443 days 2 hrs ago Arbi's Finance: stARBIS Token 0xdb96f8efd6865644993505318cc08ff9c42fb9ac0 ETH
0xa0a7247a5d936e4bf54b8aaa6386957cece55e692d629afe6d414d643ecc8423266895462022-09-26 1:31:443 days 2 hrs ago Arbi's Finance: stARBIS Token 0x82af49447d8a07e3bd95bd0d56f35241523fbab10 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
stARBIS

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 1000 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 => 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 public SCALE = 1e40;

  event Stake(address addr, uint256 amount);
  event Withdrawal(address addr, uint256 amount);
  event RewardCollection(address token, address addr, uint256 amount);
  event RewardAdded(address token, uint256 amount, uint256 rps, bool intern);

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

  struct Stakeholder {
    bool exists;
    uint256 idx;
  }

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

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

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

  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];
    if (totalRewards > 0) {
      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++) {
      uint256 amount = excessTokenRewards[rewardTokens[i]];
      if (amount == 0) {
        continue;
      }
      IERC20(rewardTokens[i]).safeTransfer(msg.sender, amount);
      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 setScale(uint256 _scale) external onlyAdmin {
    SCALE = _scale;
  }

  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": true,
    "runs": 1000
  },
  "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":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rps","type":"uint256"},{"indexed":false,"internalType":"bool","name":"intern","type":"bool"}],"name":"RewardAdded","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":"amount","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"},{"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":"_scale","type":"uint256"}],"name":"setScale","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"}]

60a0604052600060075560006009556000600a556000600b55701d6329f1c35ca4bfabb9f56100000000006015553480156200003a57600080fd5b50604051620032a4380380620032a48339810160408190526200005d91620002b5565b604080518082018252600f81526e29ba30b5b2b21020a92124a9903b1960891b6020808301918252835180850190945260078452667374415242495360c81b908401528151919291620000b3916003916200020f565b508051620000c99060049060208401906200020f565b50506001600655506001600160601b0319606082901b16608052620000f06000336200015b565b6011805460018181019092557f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c680180546001600160a01b039093166001600160a01b031990931683179055600091825260126020526040909120805460ff1916909117905562000322565b6200016782826200016b565b5050565b60008281526005602090815260408083206001600160a01b038516845290915290205460ff16620001675760008281526005602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620001cb3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b8280546200021d90620002e5565b90600052602060002090601f0160209004810192826200024157600085556200028c565b82601f106200025c57805160ff19168380011785556200028c565b828001600101855582156200028c579182015b828111156200028c5782518255916020019190600101906200026f565b506200029a9291506200029e565b5090565b5b808211156200029a57600081556001016200029f565b600060208284031215620002c7578081fd5b81516001600160a01b0381168114620002de578182fd5b9392505050565b600181811c90821680620002fa57607f821691505b602082108114156200031c57634e487b7160e01b600052602260045260246000fd5b50919050565b60805160601c612f476200035d600039600081816107b101528181610c6201528181610cab01528181610cf001526114c90152612f476000f3fe608060405234801561001057600080fd5b50600436106103355760003560e01c80637bb1ca19116101b2578063b3d8f3b5116100f9578063dd62ed3e116100a2578063f1677cb41161007c578063f1677cb41461075b578063f826ed2e14610786578063fbe5323414610799578063fbe74dc9146107ac57600080fd5b8063dd62ed3e14610706578063de53fcd51461073f578063eced55261461075257600080fd5b8063bcdb446b116100d3578063bcdb446b146106d8578063ca49ff65146106e0578063d547741f146106f357600080fd5b8063b3d8f3b5146106b5578063b9b4024c146106bd578063baf979a9146106d057600080fd5b806395d89b411161015b578063a457c2d711610135578063a457c2d71461067c578063a694fc3a1461068f578063a9059cbb146106a257600080fd5b806395d89b41146106595780639feb8f5014610661578063a217fddf1461067457600080fd5b8063814b23bd1161018c578063814b23bd146105d3578063817b1cd21461061757806391d148541461062057600080fd5b80637bb1ca19146105805780637bb7bed1146105a05780638137694e146105b357600080fd5b806336568abe11610281578063602172671161022a5780637095bffc116102045780637095bffc1461050557806370a082311461052857806370bb45b31461055157806375b238fc1461055957600080fd5b806360217267146104c957806366e075bf146104e95780636f5d3a5a146104f257600080fd5b80634f1d0f971161025b5780634f1d0f971461048d578063506cc9a214610496578063536f840f146104b657600080fd5b806336568abe1461045457806339509351146104675780633edc35191461047a57600080fd5b80631d6b8b72116102e35780632e1a7d4d116102bd5780632e1a7d4d1461041f5780632f2ff15d14610432578063313ce5671461044557600080fd5b80631d6b8b72146103be57806323b872dd146103e9578063248a9ca3146103fc57600080fd5b8063095ea7b311610314578063095ea7b31461038c57806316330d401461039f57806318160ddd146103b657600080fd5b80622516e41461033a57806301ffc9a71461034f57806306fdde0314610377575b600080fd5b61034d610348366004612cab565b6107d3565b005b61036261035d366004612ce7565b610854565b60405190151581526020015b60405180910390f35b61037f6108bd565b60405161036e9190612dac565b61036261039a366004612c60565b61094f565b6103a860095481565b60405190815260200161036e565b6002546103a8565b6103d16103cc366004612cab565b610965565b6040516001600160a01b03909116815260200161036e565b6103626103f7366004612c20565b61098f565b6103a861040a366004612cab565b60009081526005602052604090206001015490565b61034d61042d366004612cab565b610a50565b61034d610440366004612cc3565b610ec7565b6040516012815260200161036e565b61034d610462366004612cc3565b610ef2565b610362610475366004612c60565b610f7e565b61034d610488366004612cab565b610fba565b6103a8600b5481565b6103a86104a4366004612bcc565b600d6020526000908152604090205481565b6103a86104c4366004612bcc565b611036565b6103a86104d7366004612bcc565b60106020526000908152604090205481565b6103a8600a5481565b61034d610500366004612bcc565b61109f565b610362610513366004612bcc565b60126020526000908152604090205460ff1681565b6103a8610536366004612bcc565b6001600160a01b031660009081526020819052604090205490565b61034d611273565b6103a87fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b6103a861058e366004612bcc565b60146020526000908152604090205481565b6103d16105ae366004612cab565b6112da565b6103a86105c1366004612bcc565b600e6020526000908152604090205481565b6106006105e1366004612bcc565b6013602052600090815260409020805460019091015460ff9091169082565b60408051921515835260208301919091520161036e565b6103a860075481565b61036261062e366004612cc3565b60009182526005602090815260408084206001600160a01b0393909316845291905290205460ff1690565b61037f6112ea565b61034d61066f366004612c60565b6112f9565b6103a8600081565b61036261068a366004612c60565b611366565b61034d61069d366004612cab565b611417565b6103626106b0366004612c60565b61169d565b600c546103a8565b61034d6106cb366004612cab565b6116aa565b61034d611726565b61034d6118a8565b61034d6106ee366004612bcc565b6119b7565b61034d610701366004612cc3565b611a94565b6103a8610714366004612be8565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6008546103d1906001600160a01b031681565b6103a860155481565b6103a8610769366004612be8565b600f60209081526000928352604080842090915290825290205481565b61034d610794366004612cab565b611aba565b61034d6107a7366004612bcc565b611b36565b6103d17f000000000000000000000000000000000000000000000000000000000000000081565b3360009081527fd8ef4509105c3edb0b04658b4528edc5ddd30ea5a81e623a2623c88db1eb54b6602052604090205460ff1661084f5760405162461bcd60e51b815260206004820152601660248201527521b0b63632b91034b9903737ba1030b71030b236b4b760511b60448201526064015b60405180910390fd5b600b55565b60006001600160e01b031982167f7965db0b0000000000000000000000000000000000000000000000000000000014806108b757507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b6060600380546108cc90612e90565b80601f01602080910402602001604051908101604052809291908181526020018280546108f890612e90565b80156109455780601f1061091a57610100808354040283529160200191610945565b820191906000526020600020905b81548152906001019060200180831161092857829003601f168201915b5050505050905090565b600061095c338484611bcf565b50600192915050565b600c818154811061097557600080fd5b6000918252602090912001546001600160a01b0316905081565b600061099c848484611d27565b6001600160a01b038416600090815260016020908152604080832033845290915290205482811015610a365760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e63650000000000000000000000000000000000000000000000006064820152608401610846565b610a438533858403611bcf565b60019150505b9392505050565b60026006541415610aa35760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610846565b600260065580610af55760405162461bcd60e51b815260206004820152601760248201527f496e76616c696420776974686472617720616d6f756e740000000000000000006044820152606401610846565b33600090815260106020526040902054811115610b545760405162461bcd60e51b815260206004820152601460248201527f496e73756666696369656e742062616c616e63650000000000000000000000006044820152606401610846565b610b5e3382611f40565b33600090815260106020526040902054610b79908290612e36565b610b8557610b856120a9565b3360009081526010602052604081208054839290610ba4908490612e36565b925050819055508060076000828254610bbd9190612e36565b909155505033600090815260146020526040812054610bdc9042612e36565b90506000600b54821015610cd8576000600b5460095484610bfd9190612e17565b610c079190612df7565b600954610c149190612e36565b601554909150610c248286612e17565b610c2e9190612df7565b91506000601554600a5484610c439190612e17565b610c4d9190612df7565b90506000610c5b8285612e36565b9050610c897f0000000000000000000000000000000000000000000000000000000000000000836001612106565b6008546001600160a01b031615610cd457600854610cd4906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116911683612272565b5050505b610d1733610ce68386612e36565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169190612272565b33600090815260106020526040902054610e8457336000908152601360205260409020600190810154600c805491929091610d529190612e36565b81548110610d7057634e487b7160e01b600052603260045260246000fd5b600091825260209091200154600c80546001600160a01b039092169183908110610daa57634e487b7160e01b600052603260045260246000fd5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055508060136000600c8481548110610dfe57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b03168352820192909252604001902060010155600c805480610e4557634e487b7160e01b600052603160045260246000fd5b60008281526020808220830160001990810180546001600160a01b03191690559092019092553382526013905260408120805460ff1916815560010155505b60408051338152602081018590527f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65910160405180910390a15050600160065550565b600082815260056020526040902060010154610ee38133612303565b610eed8383612383565b505050565b6001600160a01b0381163314610f705760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610846565b610f7a8282612425565b5050565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161095c918590610fb5908690612ddf565b611bcf565b3360009081527fd8ef4509105c3edb0b04658b4528edc5ddd30ea5a81e623a2623c88db1eb54b6602052604090205460ff166110315760405162461bcd60e51b815260206004820152601660248201527521b0b63632b91034b9903737ba1030b71030b236b4b760511b6044820152606401610846565b601555565b6001600160a01b0381166000818152600f60209081526040808320338452825280832054938352600e909152812054909182916110739190612e36565b6015543360009081526010602052604090205491925090611095908390612e17565b610a499190612df7565b3360009081527fd8ef4509105c3edb0b04658b4528edc5ddd30ea5a81e623a2623c88db1eb54b6602052604090205460ff166111165760405162461bcd60e51b815260206004820152601660248201527521b0b63632b91034b9903737ba1030b71030b236b4b760511b6044820152606401610846565b60005b601154811015610f7a57816001600160a01b03166011828154811061114e57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03161415611261576011805461117990600190612e36565b8154811061119757634e487b7160e01b600052603260045260246000fd5b600091825260209091200154601180546001600160a01b0390921691839081106111d157634e487b7160e01b600052603260045260246000fd5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550601180548061121e57634e487b7160e01b600052603160045260246000fd5b60008281526020808220830160001990810180546001600160a01b03191690559092019092556001600160a01b03841682526012905260409020805460ff191690555b8061126b81612ecb565b915050611119565b600260065414156112c65760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610846565b60026006556112d36120a9565b6001600655565b6011818154811061097557600080fd5b6060600480546108cc90612e90565b6002600654141561134c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610846565b600260065561135d82826000612106565b50506001600655565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156114005760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610846565b61140d3385858403611bcf565b5060019392505050565b6002600654141561146a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610846565b6002600655806114bc5760405162461bcd60e51b815260206004820152601460248201527f496e76616c6964207374616b6520616d6f756e740000000000000000000000006044820152606401610846565b6114f16001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163330846124a8565b6114fb33826124f9565b3360009081526013602052604090205460ff16611607576040805180820182526001808252600c805460208085018281528285019093557fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c79091018054336001600160a01b03199091168117909155600090815260139091529384208351815460ff19169015151781559051910155905b601154811015611600576000601182815481106115b957634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b03168252600e8152604080832054600f83528184203385529092529091205550806115f881612ecb565b91505061158c565b505061160f565b61160f6120a9565b80600760008282546116219190612ddf565b90915550503360009081526010602052604081208054839290611645908490612ddf565b909155505033600081815260146020908152604091829020429055815192835282018390527febedb8b3c678666e7f36970bc8f57abf6d8fa2e828c0da91ea5b75bf68ed101a910160405180910390a1506001600655565b600061095c338484611d27565b3360009081527fd8ef4509105c3edb0b04658b4528edc5ddd30ea5a81e623a2623c88db1eb54b6602052604090205460ff166117215760405162461bcd60e51b815260206004820152601660248201527521b0b63632b91034b9903737ba1030b71030b236b4b760511b6044820152606401610846565b600a55565b3360009081527fd8ef4509105c3edb0b04658b4528edc5ddd30ea5a81e623a2623c88db1eb54b6602052604090205460ff1661179d5760405162461bcd60e51b815260206004820152601660248201527521b0b63632b91034b9903737ba1030b71030b236b4b760511b6044820152606401610846565b60005b6011548110156118a5576000600d6000601184815481106117d157634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b031683528201929092526040019020549050806118035750611893565b61184533826011858154811061182957634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03169190612272565b6000600d60006011858154811061186c57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b03168352820192909252604001902055505b8061189d81612ecb565b9150506117a0565b50565b3360009081527fd8ef4509105c3edb0b04658b4528edc5ddd30ea5a81e623a2623c88db1eb54b6602052604090205460ff1661191f5760405162461bcd60e51b815260206004820152601660248201527521b0b63632b91034b9903737ba1030b71030b236b4b760511b6044820152606401610846565b604051600090339047908381818185875af1925050503d8060008114611961576040519150601f19603f3d011682016040523d82523d6000602084013e611966565b606091505b50509050806118a55760405162461bcd60e51b815260206004820152600f60248201527f5769746864726177206661696c656400000000000000000000000000000000006044820152606401610846565b3360009081527fd8ef4509105c3edb0b04658b4528edc5ddd30ea5a81e623a2623c88db1eb54b6602052604090205460ff16611a2e5760405162461bcd60e51b815260206004820152601660248201527521b0b63632b91034b9903737ba1030b71030b236b4b760511b6044820152606401610846565b6001600160a01b03166000818152601260205260408120805460ff191660019081179091556011805491820181559091527f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c680180546001600160a01b0319169091179055565b600082815260056020526040902060010154611ab08133612303565b610eed8383612425565b3360009081527fd8ef4509105c3edb0b04658b4528edc5ddd30ea5a81e623a2623c88db1eb54b6602052604090205460ff16611b315760405162461bcd60e51b815260206004820152601660248201527521b0b63632b91034b9903737ba1030b71030b236b4b760511b6044820152606401610846565b600955565b3360009081527fd8ef4509105c3edb0b04658b4528edc5ddd30ea5a81e623a2623c88db1eb54b6602052604090205460ff16611bad5760405162461bcd60e51b815260206004820152601660248201527521b0b63632b91034b9903737ba1030b71030b236b4b760511b6044820152606401610846565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038316611c4a5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610846565b6001600160a01b038216611cc65760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610846565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038316611da35760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610846565b6001600160a01b038216611e1f5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610846565b6001600160a01b03831660009081526020819052604090205481811015611eae5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610846565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611ee5908490612ddf565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611f3191815260200190565b60405180910390a35b50505050565b6001600160a01b038216611fa05760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610846565b6001600160a01b0382166000908152602081905260409020548181101561202f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f63650000000000000000000000000000000000000000000000000000000000006064820152608401610846565b6001600160a01b038316600090815260208190526040812083830390556002805484929061205e908490612e36565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b60005b6011548110156118a5576120f4601182815481106120da57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03166125d8565b806120fe81612ecb565b9150506120ac565b6001600160a01b03831660009081526012602052604090205460ff166121785760405162461bcd60e51b815260206004820152602160248201527f546f6b656e206973206e6f7420617070726f76656420666f72207265776172646044820152607360f81b6064820152608401610846565b80612192576121926001600160a01b0384163330856124a8565b6007546121cb576001600160a01b0383166000908152600d6020526040812080548492906121c1908490612ddf565b9091555050505050565b6000600754601554846121de9190612e17565b6121e89190612df7565b6001600160a01b0385166000908152600e6020526040812080549293508392909190612215908490612ddf565b9091555050604080516001600160a01b03861681526020810185905290810182905282151560608201527f2ab0bfa8102a6c8109530a3b36c36964fe6e1a5f9121c85efe2a07d78b6ab01d9060800160405180910390a150505050565b6040516001600160a01b038316602482015260448101829052610eed9084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b031990931692909217909152612731565b60008281526005602090815260408083206001600160a01b038516845290915290205460ff16610f7a57612341816001600160a01b03166014612816565b61234c836020612816565b60405160200161235d929190612d2b565b60408051601f198184030181529082905262461bcd60e51b825261084691600401612dac565b60008281526005602090815260408083206001600160a01b038516845290915290205460ff16610f7a5760008281526005602090815260408083206001600160a01b03851684529091529020805460ff191660011790556123e13390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526005602090815260408083206001600160a01b038516845290915290205460ff1615610f7a5760008281526005602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6040516001600160a01b0380851660248301528316604482015260648101829052611f3a9085907f23b872dd00000000000000000000000000000000000000000000000000000000906084016122b7565b6001600160a01b03821661254f5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610846565b80600260008282546125619190612ddf565b90915550506001600160a01b0382166000908152602081905260408120805483929061258e908490612ddf565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b336000908152601060205260409020546126345760405162461bcd60e51b815260206004820152601460248201527f4e6f207374616b6520666f7220726577617264730000000000000000000000006044820152606401610846565b6001600160a01b0381166000818152600f60209081526040808320338452825280832054938352600e909152812054909161266e91612e36565b6015543360009081526010602052604081205492935091612690908490612e17565b61269a9190612df7565b6001600160a01b0384166000908152600e6020908152604080832054600f835281842033855290925290912055905080156126e3576126e36001600160a01b0384163383612272565b604080516001600160a01b03851681523360208201529081018290527f49d368020d08fde7587b5cf8cf012abc1e73214d401dfe803c531501d0bd40179060600160405180910390a1505050565b6000612786826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612a3d9092919063ffffffff16565b805190915015610eed57808060200190518101906127a49190612c8b565b610eed5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610846565b60606000612825836002612e17565b612830906002612ddf565b67ffffffffffffffff81111561285657634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612880576020820181803683370190505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106128c557634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061291e57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506000612942846002612e17565b61294d906001612ddf565b90505b60018111156129ee577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061299c57634e487b7160e01b600052603260045260246000fd5b1a60f81b8282815181106129c057634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c936129e781612e79565b9050612950565b508315610a495760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610846565b6060612a4c8484600085612a54565b949350505050565b606082471015612acc5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610846565b843b612b1a5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610846565b600080866001600160a01b03168587604051612b369190612d0f565b60006040518083038185875af1925050503d8060008114612b73576040519150601f19603f3d011682016040523d82523d6000602084013e612b78565b606091505b5091509150612b88828286612b93565b979650505050505050565b60608315612ba2575081610a49565b825115612bb25782518084602001fd5b8160405162461bcd60e51b81526004016108469190612dac565b600060208284031215612bdd578081fd5b8135610a4981612efc565b60008060408385031215612bfa578081fd5b8235612c0581612efc565b91506020830135612c1581612efc565b809150509250929050565b600080600060608486031215612c34578081fd5b8335612c3f81612efc565b92506020840135612c4f81612efc565b929592945050506040919091013590565b60008060408385031215612c72578182fd5b8235612c7d81612efc565b946020939093013593505050565b600060208284031215612c9c578081fd5b81518015158114610a49578182fd5b600060208284031215612cbc578081fd5b5035919050565b60008060408385031215612cd5578182fd5b823591506020830135612c1581612efc565b600060208284031215612cf8578081fd5b81356001600160e01b031981168114610a49578182fd5b60008251612d21818460208701612e4d565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351612d63816017850160208801612e4d565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351612da0816028840160208801612e4d565b01602801949350505050565b6020815260008251806020840152612dcb816040850160208701612e4d565b601f01601f19169190910160400192915050565b60008219821115612df257612df2612ee6565b500190565b600082612e1257634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615612e3157612e31612ee6565b500290565b600082821015612e4857612e48612ee6565b500390565b60005b83811015612e68578181015183820152602001612e50565b83811115611f3a5750506000910152565b600081612e8857612e88612ee6565b506000190190565b600181811c90821680612ea457607f821691505b60208210811415612ec557634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612edf57612edf612ee6565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b03811681146118a557600080fdfea26469706673582212203242b38f068bdcc2275e62a5c4d5a12ec5cf6579c21836e0c4af63ad9cc29ca364736f6c634300080400330000000000000000000000009f20de1fc9b161b34089cbeae888168b44b03461

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

0000000000000000000000009f20de1fc9b161b34089cbeae888168b44b03461

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

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000009f20de1fc9b161b34089cbeae888168b44b03461


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