Contract 0xd865794105abf86e6e3e9e67f87da4774bd7347b

 

Contract Overview

Balance:
0 BNB

BNB Value:
$0.00

Token:
 
Txn Hash
Block
From
To
Value [Txn Fee]
0x83d91494b1368962346a5326c3bea1347b966c62d9c6a6cf953ebf8e9b46353196379252021-07-31 18:59:1259 mins ago0x6d51663c47a1bb3932158f10a11750af308a2c5c IN  0xd865794105abf86e6e3e9e67f87da4774bd7347b0 BNB0.000814895
0x63af07004fb893ef3841f389a8f2204cf37545830267bdfe288dbac7660694e596354142021-07-31 16:49:103 hrs 9 mins ago0xf3a1c6d6001e4457f76e7e7359bab5cce08e35af IN  0xd865794105abf86e6e3e9e67f87da4774bd7347b0 BNB0.000853725
0xf4f28754ce6610fad2a923c43fa40683def5e1c4c2099775b731db75e579021396354002021-07-31 16:48:183 hrs 10 mins ago0xf3a1c6d6001e4457f76e7e7359bab5cce08e35af IN  0xd865794105abf86e6e3e9e67f87da4774bd7347b0 BNB0.00066847
0x92ead4b114368e46028e378420ad7a8527500fa056bcd3b2c10fb421232b24d696310292021-07-31 12:56:457 hrs 1 min ago0x3f3e1364ab63d0f97168afae0d2ccbd2b0eabb76 IN  0xd865794105abf86e6e3e9e67f87da4774bd7347b0 BNB0.000815015
0x6771fc3da2748418ec125fb10db44277a3e45244662ae7475d2db1cbe20b974e96308502021-07-31 12:47:467 hrs 10 mins ago0x3f3e1364ab63d0f97168afae0d2ccbd2b0eabb76 IN  0xd865794105abf86e6e3e9e67f87da4774bd7347b0 BNB0.00066841
0x0bfa526b51dd82c03dd9235edb1561402c928e5f367f689f2c29284012f65f4e96308492021-07-31 12:47:437 hrs 10 mins ago0x3f3e1364ab63d0f97168afae0d2ccbd2b0eabb76 IN  0xd865794105abf86e6e3e9e67f87da4774bd7347b0 BNB0.00066847
0xb5866af00ac025e3d63d036ae0d8f669bc846d826f56886ad60e32cb0417239a96266312021-07-31 9:10:1310 hrs 48 mins ago0x1ac1f5aa71855e6edc67ac02c851c8388df38274 IN  0xd865794105abf86e6e3e9e67f87da4774bd7347b0 BNB0.000585645
0xb98c00daec7f732ec54a06a9875012fcf94fb98c18afcaa257c5c33d5ea9a09296266262021-07-31 9:09:5810 hrs 48 mins ago0x1ac1f5aa71855e6edc67ac02c851c8388df38274 IN  0xd865794105abf86e6e3e9e67f87da4774bd7347b0 BNB0.00066847
0xb987d06f5d61bfd3b9eb97c7147614af66ca16fe5663bb3647d4de9e081c1f4f96266192021-07-31 9:09:3510 hrs 48 mins ago0x1ac1f5aa71855e6edc67ac02c851c8388df38274 IN  0xd865794105abf86e6e3e9e67f87da4774bd7347b0 BNB0.000703415
0x8a9a2989e48310ddaeafedcad72f767d9c7e29967c33cbfd69e39c98d6b2f25496265992021-07-31 9:08:3510 hrs 49 mins ago0x1ac1f5aa71855e6edc67ac02c851c8388df38274 IN  0xd865794105abf86e6e3e9e67f87da4774bd7347b0 BNB0.00066847
0x5cd12d3a49542ad7f83328ae549e6045cd360267fcfb88af65987854c5864f9296211492021-07-31 4:34:4415 hrs 23 mins ago0x0d1fe752ac2e08ef0da1547a12c1bc3b87139d75 IN  0xd865794105abf86e6e3e9e67f87da4774bd7347b0 BNB0.000703415
0x7ba391ab154580a257b6c99e5cc255eaee6658ba21832ff505900d9e526f808696211472021-07-31 4:34:3815 hrs 23 mins ago0x0d1fe752ac2e08ef0da1547a12c1bc3b87139d75 IN  0xd865794105abf86e6e3e9e67f87da4774bd7347b0 BNB0.000752695
0x5b175af483f95a127bf706009da58b3f44fed7093808def4caed7100fd6cf20b96208812021-07-31 4:21:2015 hrs 37 mins ago0xb4ad73944be400b31dcc3dabe4189257d0adb9ef IN  0xd865794105abf86e6e3e9e67f87da4774bd7347b0 BNB0.00079205
0xe6a18eecbf63440c42ce78b47eb869c04358b0e12fda34e19e1a645b24afb2f396208702021-07-31 4:20:4715 hrs 37 mins ago0xb4ad73944be400b31dcc3dabe4189257d0adb9ef IN  0xd865794105abf86e6e3e9e67f87da4774bd7347b0 BNB0.00088406
0x1f84471769bb8532143e8e74b98a46aa6c6c18d86b845abfb5a5c448b43f5e8196207912021-07-31 4:16:4415 hrs 41 mins ago0xb4ad73944be400b31dcc3dabe4189257d0adb9ef IN  0xd865794105abf86e6e3e9e67f87da4774bd7347b0 BNB0.000700165
0x838d6f5a341b01af84ca641d5e50660e59048b94ca7ff5dfba17d0f3f06ff08396202522021-07-31 3:47:1416 hrs 11 mins ago0xfa0aa0075e9e47fe3dc9e4dee696d2cf0e0c3670 IN  0xd865794105abf86e6e3e9e67f87da4774bd7347b0 BNB0.000700225
0x6c6317f3508b06099eb0c78527b6f4dd4a5bb7e9e09bba7eca69d9e4095a136396202472021-07-31 3:46:5916 hrs 11 mins ago0xfa0aa0075e9e47fe3dc9e4dee696d2cf0e0c3670 IN  0xd865794105abf86e6e3e9e67f87da4774bd7347b0 BNB0.000752695
0xeb6b4784bdd57db81df84cc41836096a162dc94cd206a2d5bc8357bb65cb451296202392021-07-31 3:46:3516 hrs 11 mins ago0xfa0aa0075e9e47fe3dc9e4dee696d2cf0e0c3670 IN  0xd865794105abf86e6e3e9e67f87da4774bd7347b0 BNB0.00085299
0x31d67c288af13b7c0f5926d59a2610fa805e1e460d4e5ab79d3647a13ab3a28796202362021-07-31 3:46:2616 hrs 12 mins ago0xfa0aa0075e9e47fe3dc9e4dee696d2cf0e0c3670 IN  0xd865794105abf86e6e3e9e67f87da4774bd7347b0 BNB0.000752695
0xb9f145d0b20b720e82a9e34624b3c95ee58a5ba3ba4522554b6b5ef67be5e55d96202302021-07-31 3:46:0816 hrs 12 mins ago0xfa0aa0075e9e47fe3dc9e4dee696d2cf0e0c3670 IN  0xd865794105abf86e6e3e9e67f87da4774bd7347b0 BNB0.000700105
0x5df0bfaf7f24aefabf409a9e5c429b9f2ba4da7a92c6500b571c9f54c3c9e1ef96202262021-07-31 3:45:5616 hrs 12 mins ago0xfa0aa0075e9e47fe3dc9e4dee696d2cf0e0c3670 IN  0xd865794105abf86e6e3e9e67f87da4774bd7347b0 BNB0.000752635
0xd37a82dd340f1ee12c0c6a714510f6d00d5ed7be05fa559412bb43c60da18b8e96138272021-07-30 22:25:3321 hrs 32 mins ago0x00c97bcb5b1b0c056264bfb3db5ae8c560d0198a IN  0xd865794105abf86e6e3e9e67f87da4774bd7347b0 BNB0.00064893
0xa91088a2401af258de7ff79968ee00c33338a530784ad2c25c03aac4632971dc96138182021-07-30 22:25:0621 hrs 33 mins ago0x00c97bcb5b1b0c056264bfb3db5ae8c560d0198a IN  0xd865794105abf86e6e3e9e67f87da4774bd7347b0 BNB0.00076345
0x9bd12c68a2f0fa948e4cb3cef5d09e5b215598f21d9dde9249fa287a947b551796067112021-07-30 16:26:511 day 3 hrs ago0x27eaabaf44f17b4bce9f9455619c3014095ea639 IN  0xd865794105abf86e6e3e9e67f87da4774bd7347b0 BNB0.00066847
0xc682fcb79eaf7729be466dae0810d67602a90d344e1dfb05ebdee6a0a77b966296021662021-07-30 12:32:221 day 7 hrs ago0x4dedb21773975a8eb4cb308b7329e01e48239d8d IN  0xd865794105abf86e6e3e9e67f87da4774bd7347b0 BNB0.000752695
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
IDFO

Compiler Version
v0.6.6+commit.6c089d02

Optimization Enabled:
Yes with 1 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 9 : CheckToken.sol
pragma solidity 0.6.6;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

// CheckToken
contract CheckToken is ERC20("Check Token", "CHECK"), Ownable {
  uint256 private _totalLock;

  uint256 public startReleaseBlock;
  uint256 public endReleaseBlock;

  mapping(address => uint256) private _locks;
  mapping(address => uint256) private _lastUnlockBlock;

  event Lock(address indexed to, uint256 value);

  constructor(uint256 _startReleaseBlock, uint256 _endReleaseBlock) public {
    require(_endReleaseBlock > _startReleaseBlock, "endReleaseBlock < startReleaseBlock");
    _setupDecimals(18);
    // maunalMint 50k for seeding liquidity
    mint(msg.sender, 50000e18);
    startReleaseBlock = _startReleaseBlock;
    endReleaseBlock = _endReleaseBlock;
  }

  function setReleaseBlock(uint256 _startReleaseBlock, uint256 _endReleaseBlock) public onlyOwner {
    require(_endReleaseBlock > _startReleaseBlock, "endReleaseBlock < startReleaseBlock");
    startReleaseBlock = _startReleaseBlock;
    endReleaseBlock = _endReleaseBlock;
  }

  function unlockedSupply() public view returns (uint256) {
    return totalSupply().sub(totalLock());
  }

  function totalLock() public view returns (uint256) {
    return _totalLock;
  }

  function mint(address _to, uint256 _amount) public onlyOwner {
    _mint(_to, _amount);
  }

  function burn(address _account, uint256 _amount) public onlyOwner {
    _burn(_account, _amount);
  }

  function totalBalanceOf(address _account) public view returns (uint256) {
    return _locks[_account].add(balanceOf(_account));
  }

  function lockOf(address _account) public view returns (uint256) {
    return _locks[_account];
  }

  function lastUnlockBlock(address _account) public view returns (uint256) {
    return _lastUnlockBlock[_account];
  }

  function lock(address _account, uint256 _amount) public onlyOwner {
    require(_account != address(0), "no lock to address(0)");
    require(_amount <= balanceOf(_account), "no lock over balance");

    _transfer(_account, address(this), _amount);

    _locks[_account] = _locks[_account].add(_amount);
    _totalLock = _totalLock.add(_amount);

    if (_lastUnlockBlock[_account] < startReleaseBlock) {
      _lastUnlockBlock[_account] = startReleaseBlock;
    }

    emit Lock(_account, _amount);
  }

  function canUnlockAmount(address _account) public view returns (uint256) {
    // When block number less than startReleaseBlock, no FORKs can be unlocked
    if (block.number < startReleaseBlock) {
      return 0;
    }
    // When block number more than endReleaseBlock, all locked FORKs can be unlocked
    else if (block.number >= endReleaseBlock) {
      return _locks[_account];
    }
    // When block number is more than startReleaseBlock but less than endReleaseBlock,
    // some FORKs can be released
    else
    {
      uint256 releasedBlock = block.number.sub(_lastUnlockBlock[_account]);
      uint256 blockLeft = endReleaseBlock.sub(_lastUnlockBlock[_account]);
      return _locks[_account].mul(releasedBlock).div(blockLeft);
    }
  }

  function unlock() public {
    require(_locks[msg.sender] > 0, "no locked FORKs");

    uint256 amount = canUnlockAmount(msg.sender);

    _transfer(address(this), msg.sender, amount);
    _locks[msg.sender] = _locks[msg.sender].sub(amount);
    _lastUnlockBlock[msg.sender] = block.number;
    _totalLock = _totalLock.sub(amount);
  }

  // @dev move FORKs with its locked funds to another account
  function transferAll(address _to) public {
    _locks[_to] = _locks[_to].add(_locks[msg.sender]);

    if (_lastUnlockBlock[_to] < startReleaseBlock) {
      _lastUnlockBlock[_to] = startReleaseBlock;
    }

    if (_lastUnlockBlock[_to] < _lastUnlockBlock[msg.sender]) {
      _lastUnlockBlock[_to] = _lastUnlockBlock[msg.sender];
    }

    _locks[msg.sender] = 0;
    _lastUnlockBlock[msg.sender] = 0;

    _transfer(msg.sender, _to, balanceOf(msg.sender));
  }
}

File 2 of 9 : IDFO.sol
pragma solidity 0.6.6;

import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

import "./CheckToken.sol";

// ForkLaunch is a smart contract for distributing CHECK by asking user to stake the FORK token.
contract IDFO is Ownable {
  using SafeMath for uint256;
  using SafeERC20 for IERC20;
  using SafeERC20 for CheckToken;

  // Info of each user.
  struct UserInfo {
    uint256 amount; // How many Staking tokens the user has provided.
    uint256 rewardDebt; // Reward debt. See explanation below.
    uint256 bonusDebt; // Last block that user exec something to the pool.
    //
    // We do some fancy math here. Basically, any point in time, the amount of CHECKs
    // entitled to a user but is pending to be distributed is:
    //
    //   pending reward = (user.amount * pool.accCheckPerShare) - user.rewardDebt
    //
    // Whenever a user deposits or withdraws Staking tokens to a pool. Here's what happens:
    //   1. The pool's `accCheckPerShare` (and `lastRewardBlock`) gets updated.
    //   2. User receives the pending reward sent to his/her address.
    //   3. User's `amount` gets updated.
    //   4. User's `rewardDebt` gets updated.
  }

  // Info of each pool.
  struct PoolInfo {
    address stakeToken; // Address of Staking token contract.
    uint256 allocPoint; // How many allocation points assigned to this pool. CHECKs to distribute per block.
    uint256 lastRewardBlock; // Last block number that CHECKs distribution occurs.
    uint256 accCheckPerShare; // Accumulated CHECKs per share, times 1e12. See below.
    uint256 projectId;
    uint256 lpSupply;
    uint256 accCheckPerShareTilBonusEnd; // Accumated CHECKs per share until Bonus End.
  }

  // Info of cash-pool
  struct CashPoolInfo {
    uint256 cashTotal;
    address cashToken;
    uint256 stakeTotal;
    uint256 startTime;
    uint256 endTime;
    uint256 projectId;
  }

  struct CashUserInfo {
    uint256 total;
    uint256 amount;
    uint256 burn;
  }
  // Info of each pool.
  CashPoolInfo[] public cashPoolInfo;
  // Info of each user that stakes Staking tokens.
  mapping(uint256 => mapping(address => CashUserInfo)) public cashUserInfo;

  // The Check TOKEN!
  CheckToken public check;
  // Dev address.
  address public devaddr;
  // CHECK tokens created per block.
  uint256 public checkPerBlock;
  // muliplier
  uint256 public BONUS_MULTIPLIER = 1;
  // Block number when bonus CHECK period ends.
  uint256 public bonusEndBlock;
  // Bonus lock-up in BPS
  uint256 public bonusLockUpBps;

  // Info of each pool.
  PoolInfo[] public poolInfo;
  // Info of each user that stakes Staking tokens.
  mapping(uint256 => mapping(address => UserInfo)) public userInfo;
  // Total allocation points. Must be the sum of all allocation points in all pools.
  uint256 public totalAllocPoint = 0;
  // The block number when CHECK mining starts.
  uint256 public startBlock;
  
  event Deposit(address indexed user, uint256 indexed pid, uint256 amount);
  event Withdraw(address indexed user, uint256 indexed pid, uint256 amount);
  event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount);
  event DepositCheckToCashPool(address indexed user, uint256 indexed pid, uint256 amount);
  event CashedCheck(address indexed user, uint256 indexed pid, uint256 amount, uint256 pending);

  constructor(
    CheckToken _check,
    address _devaddr,
    uint256 _checkPerBlock,
    uint256 _startBlock,
    uint256 _bonusLockupBps,
    uint256 _bonusEndBlock
  ) public {
    BONUS_MULTIPLIER = 0;
    totalAllocPoint = 0;
    check = _check;
    devaddr = _devaddr;
    checkPerBlock = _checkPerBlock;
    bonusLockUpBps = _bonusLockupBps;
    bonusEndBlock = _bonusEndBlock;
    startBlock = _startBlock;
  }

  /**
   * setting
   */

  // Update dev address by the previous dev.
  function setDev(address _devaddr) public {
    require(msg.sender == devaddr, "dev: wut?");
    devaddr = _devaddr;
  }

  function updateCheckPerBlock(uint256 _checkPerBlock) public onlyOwner {
    checkPerBlock = _checkPerBlock;
  }

  // Set Bonus params. bonus will start to accu on the next block that this function executed
  // See the calculation and counting in test file.
  function setBonus(
    uint256 _bonusMultiplier,
    uint256 _bonusEndBlock,
    uint256 _bonusLockUpBps
  ) public onlyOwner {
    require(_bonusEndBlock > block.number, "setBonus: bad bonusEndBlock");
    require(_bonusMultiplier > 1, "setBonus: bad bonusMultiplier");
    BONUS_MULTIPLIER = _bonusMultiplier;
    bonusEndBlock = _bonusEndBlock;
    bonusLockUpBps = _bonusLockUpBps;
  }

  function updatePoolPorjectId(uint256 _pid, uint256 _projectId) public onlyOwner {
    poolInfo[_pid].projectId = _projectId;
  }

  function poolLength() external view returns (uint256) {
        return poolInfo.length;
    }

  // Add a new lp to the pool. Can only be called by the owner.
  function add(
    uint256 _projectId,
    uint256 _allocPoint,
    address _stakeToken,
    bool _withUpdate
  ) public  onlyOwner {
    if (_withUpdate) {
      massUpdatePools();
    }
    require(_stakeToken != address(0), "add: not stakeToken addr");
    // check exisit
    require(!isDuplicatedPool(_projectId, _stakeToken), "add: stakeToken dup");

    uint256 lastRewardBlock = block.number > startBlock ? block.number : startBlock;
    totalAllocPoint = totalAllocPoint.add(_allocPoint);
    poolInfo.push(
      PoolInfo({
        projectId: _projectId,
        stakeToken: _stakeToken,
        allocPoint: _allocPoint,
        lastRewardBlock: lastRewardBlock,
        accCheckPerShare: 0,
        accCheckPerShareTilBonusEnd: 0,
        lpSupply: 0
      })
    );
  }

  // Update the given pool's CHECK allocation point. Can only be called by the owner.
  function set(uint256 _pid, uint256 _allocPoint, bool _withUpdate) public onlyOwner {
    if (_withUpdate) {
      massUpdatePools();
    }
    uint256 prevAllocPoint = poolInfo[_pid].allocPoint;
    poolInfo[_pid].allocPoint = _allocPoint;
    if (prevAllocPoint != _allocPoint) {
      totalAllocPoint = totalAllocPoint.sub(prevAllocPoint).add(_allocPoint);
    }
  }

  // Return reward multiplier over the given _from to _to block.
  function getMultiplier(uint256 _lastRewardBlock, uint256 _currentBlock) public view returns (uint256) {
    if (_currentBlock <= bonusEndBlock) {
      return _currentBlock.sub(_lastRewardBlock).mul(BONUS_MULTIPLIER);
    }
    if (_lastRewardBlock >= bonusEndBlock) {
      return _currentBlock.sub(_lastRewardBlock);
    }
    // This is the case where bonusEndBlock is in the middle of _lastRewardBlock and _currentBlock block.
    return bonusEndBlock.sub(_lastRewardBlock).mul(BONUS_MULTIPLIER).add(_currentBlock.sub(bonusEndBlock));
  }

  function addCashPool(
    uint256 _cashTotal,
    address _cashToken,
    uint256 _startTime,
    uint256 _endTime,
    uint256 _projectId
  ) public  onlyOwner {
    require(_cashToken != address(0), "add: not cashToken addr");
    require(_endTime > _startTime, "endTime < startTime");
    cashPoolInfo.push(
      CashPoolInfo({
        cashTotal: _cashTotal,
        cashToken: _cashToken,
        startTime: _startTime,
        endTime: _endTime,
        projectId: _projectId,
        stakeTotal: 0
      })
    );
  }

  function setCashPool(
    uint256 _pid,
    uint256 _cashTotal,
    address _cashToken,
    uint256 _startTime,
    uint256 _endTime,
    uint256 _projectId
  ) public  onlyOwner {
    require(_cashToken != address(0), "add: not cashToken addr");
    require(_endTime > _startTime, "endTime < startTime");

    cashPoolInfo[_pid].cashTotal = _cashTotal;
    cashPoolInfo[_pid].cashToken = _cashToken;
    cashPoolInfo[_pid].startTime = _startTime;
    cashPoolInfo[_pid].endTime = _endTime;
    cashPoolInfo[_pid].projectId = _projectId;
  }

  /**
   * core
   */

  function isDuplicatedPool(uint256 _projectId, address _stakeToken) public view returns (bool) {
    uint256 length = poolInfo.length;
    for (uint256 _pid = 0; _pid < length; _pid++) {
      if( poolInfo[_pid].projectId == _projectId && poolInfo[_pid].stakeToken == _stakeToken) return true;
    }
    return false;
  }


  // View function to see pending CHECKs on frontend.
  function pendingCheck(uint256 _pid, address _user) external  view returns (uint256) {
    PoolInfo storage pool = poolInfo[_pid];
    UserInfo storage user = userInfo[_pid][_user];
    uint256 accCheckPerShare = pool.accCheckPerShare;
    uint256 lpSupply = pool.lpSupply;
    if (block.number > pool.lastRewardBlock && lpSupply != 0) {
      uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
      uint256 checkReward = multiplier.mul(checkPerBlock).mul(pool.allocPoint).div(totalAllocPoint);
      accCheckPerShare = accCheckPerShare.add(checkReward.mul(1e12).div(lpSupply));
    }
    return user.amount.mul(accCheckPerShare).div(1e12).sub(user.rewardDebt);
  }

  // Update reward vairables for all pools. Be careful of gas spending!
  function massUpdatePools() public {
    uint256 length = poolInfo.length;
    for (uint256 pid = 0; pid < length; ++pid) {
      updatePool(pid);
    }
  }

  // Update reward variables of the given pool to be up-to-date.
  function updatePool(uint256 _pid) public  {
    PoolInfo storage pool = poolInfo[_pid];
    if (block.number <= pool.lastRewardBlock) {
      return;
    }
    uint256 lpSupply = pool.lpSupply;
    if (lpSupply == 0) {
      pool.lastRewardBlock = block.number;
      return;
    }
    uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
    uint256 checkReward = multiplier.mul(checkPerBlock).mul(pool.allocPoint).div(totalAllocPoint);
    check.mint(devaddr, checkReward.div(10));
    check.mint(address(this), checkReward);
    pool.accCheckPerShare = pool.accCheckPerShare.add(checkReward.mul(1e12).div(lpSupply));
    // update accCheckPerShareTilBonusEnd
    if (block.number <= bonusEndBlock) {
      check.lock(devaddr, checkReward.div(10).mul(bonusLockUpBps).div(10000));
      pool.accCheckPerShareTilBonusEnd = pool.accCheckPerShare;
    }
    if(block.number > bonusEndBlock && pool.lastRewardBlock < bonusEndBlock) {
      uint256 checkBonusPortion = bonusEndBlock.sub(pool.lastRewardBlock).mul(BONUS_MULTIPLIER).mul(checkPerBlock).mul(pool.allocPoint).div(totalAllocPoint);
      check.lock(devaddr, checkBonusPortion.div(10).mul(bonusLockUpBps).div(10000));
      pool.accCheckPerShareTilBonusEnd = pool.accCheckPerShareTilBonusEnd.add(checkBonusPortion.mul(1e12).div(lpSupply));
    }
    pool.lastRewardBlock = block.number;
  }

  // Deposit Staking tokens to FairLaunchToken for CHECK allocation.
  function deposit(uint256 _pid, uint256 _amount) public  {
    require(_pid < poolInfo.length, 'pool is not existed');
    PoolInfo storage pool = poolInfo[_pid];
    UserInfo storage user = userInfo[_pid][msg.sender];
    updatePool(_pid);
    if (user.amount > 0) _harvest(_pid);
    IERC20(pool.stakeToken).safeTransferFrom(address(msg.sender), address(this), _amount);
    user.amount = user.amount.add(_amount);
    user.rewardDebt = user.amount.mul(pool.accCheckPerShare).div(1e12);
    user.bonusDebt = user.amount.mul(pool.accCheckPerShareTilBonusEnd).div(1e12);
    pool.lpSupply = pool.lpSupply.add(_amount);
    emit Deposit(msg.sender, _pid, _amount);
  }

  // Withdraw Staking tokens from FairLaunchToken.
  function withdraw(uint256 _pid, uint256 _amount) public  {
    _withdraw(_pid, _amount);
  }

  function withdrawAll(uint256 _pid) public {
    _withdraw(_pid, userInfo[_pid][msg.sender].amount);
  }

  function _withdraw(uint256 _pid, uint256 _amount) internal {
    PoolInfo storage pool = poolInfo[_pid];
    UserInfo storage user = userInfo[_pid][msg.sender];
    require(user.amount >= _amount, "withdraw: not good");
    updatePool(_pid);
    _harvest(_pid);
    user.amount = user.amount.sub(_amount);
    user.rewardDebt = user.amount.mul(pool.accCheckPerShare).div(1e12);
    user.bonusDebt = user.amount.mul(pool.accCheckPerShareTilBonusEnd).div(1e12);
    pool.lpSupply = pool.lpSupply.sub(_amount);
    if (pool.stakeToken != address(0)) {
      IERC20(pool.stakeToken).safeTransfer(address(msg.sender), _amount);
    }
    emit Withdraw(msg.sender, _pid, _amount);
  }

  // Harvest CHECKs earn from the pool.
  function harvest(uint256 _pid) public  {
    PoolInfo storage pool = poolInfo[_pid];
    UserInfo storage user = userInfo[_pid][msg.sender];
    updatePool(_pid);
    _harvest(_pid);
    user.rewardDebt = user.amount.mul(pool.accCheckPerShare).div(1e12);
    user.bonusDebt = user.amount.mul(pool.accCheckPerShareTilBonusEnd).div(1e12);
  }

  function _harvest(uint256 _pid) internal {
    PoolInfo storage pool = poolInfo[_pid];
    UserInfo storage user = userInfo[_pid][msg.sender];
    require(user.amount > 0, "nothing to harvest");
    uint256 pending = user.amount.mul(pool.accCheckPerShare).div(1e12).sub(user.rewardDebt);
    require(pending <= check.balanceOf(address(this)), "wtf not enough check");
    uint256 bonus = user.amount.mul(pool.accCheckPerShareTilBonusEnd).div(1e12).sub(user.bonusDebt);
    _safeCheckTransfer(msg.sender, pending);
    check.lock(msg.sender, bonus.mul(bonusLockUpBps).div(10000));
  }

  // Withdraw without caring about rewards. EMERGENCY ONLY.
  function emergencyWithdraw(uint256 _pid) public {
    PoolInfo storage pool = poolInfo[_pid];
    UserInfo storage user = userInfo[_pid][msg.sender];
    IERC20(pool.stakeToken).safeTransfer(address(msg.sender), user.amount);
    user.amount = 0;
    user.rewardDebt = 0;
    emit EmergencyWithdraw(msg.sender, _pid, user.amount);
  }

    // Safe check transfer function, just in case if rounding error causes pool to not have enough CHECKs.
  function _safeCheckTransfer(address _to, uint256 _amount) internal {
    uint256 checkBal = check.balanceOf(address(this));
    if (_amount > checkBal) {
      check.transfer(_to, checkBal);
    } else {
      check.transfer(_to, _amount);
    }
  }

  function cashPoolLength() external view returns (uint256) {
    return cashPoolInfo.length;
  }
  // Deposit CHECK-TOKEN to CashPool for FPT allocation.
  function depositCheckToCashPool(uint256 _pid, uint256 _amount) public  {
    CashPoolInfo storage pool = cashPoolInfo[_pid];
    CashUserInfo storage user = cashUserInfo[_pid][msg.sender];
    require(block.timestamp >= pool.startTime && block.timestamp <= pool.endTime, "The cash-out activity did not start");
    check.safeTransferFrom(address(msg.sender), address(this), _amount);
    user.amount = user.amount.add(_amount);
    user.total = user.total.add(_amount);
    pool.stakeTotal = pool.stakeTotal.add(_amount);
    emit DepositCheckToCashPool(msg.sender, _pid, _amount);
  }

  function cashCheck(uint256 _pid) public  {
    CashPoolInfo storage pool = cashPoolInfo[_pid];
    CashUserInfo storage user = cashUserInfo[_pid][msg.sender];
    require(block.timestamp > pool.endTime, "The cash-out activity did not start");
    require(user.amount > 0, "nothing to cash");
    uint256 pending = pool.cashTotal.mul(user.amount).div(pool.stakeTotal);
    IERC20 cashToken = IERC20(pool.cashToken);
    require(pending <= cashToken.balanceOf(address(this)), "wtf not enough cashToken");
    require(user.amount <= check.balanceOf(address(this)), "wtf not enough check-token to burn");
    check.burn(address(this), user.amount);
    cashToken.safeTransfer(address(msg.sender), pending);
    emit CashedCheck(msg.sender, _pid, user.amount, pending);
    user.burn = user.amount;
    user.amount = 0;
  }

  function pendingClaim(uint256 _pid, address _user) public view returns(uint256)  {
    CashPoolInfo storage pool = cashPoolInfo[_pid];
    CashUserInfo storage user = cashUserInfo[_pid][_user];
    if (pool.stakeTotal == 0) return 0;
    if (block.timestamp < pool.endTime) return 0;
    uint256 pending = pool.cashTotal.mul(user.amount).div(pool.stakeTotal);
    return pending;
  }
  function mayClaim(uint256 _pid, address _user) public view returns(uint256)  {
    CashPoolInfo storage pool = cashPoolInfo[_pid];
    CashUserInfo storage user = cashUserInfo[_pid][_user];
    if (pool.stakeTotal == 0) return 0;
    uint256 pending = pool.cashTotal.mul(user.amount).div(pool.stakeTotal);
    return pending;
  }
}

File 3 of 9 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

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

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

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

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) return (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

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

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

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");
        return c;
    }

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

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) return 0;
        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");
        return c;
    }

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

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

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        return a - b;
    }

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

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

File 5 of 9 : ERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "../../utils/Context.sol";
import "./IERC20.sol";
import "../../math/SafeMath.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 guidelines: functions revert instead
 * of 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 {
    using SafeMath for uint256;

    mapping (address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for {name} and {symbol}, initializes {decimals} with
     * a default value of 18.
     *
     * To select a different value for {decimals}, use {_setupDecimals}.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name_, string memory symbol_) public {
        _name = name_;
        _symbol = symbol_;
        _decimals = 18;
    }

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

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual 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 {_setupDecimals} is
     * called.
     *
     * 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 returns (uint8) {
        return _decimals;
    }

    /**
     * @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);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        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].add(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) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
        return true;
    }

    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is 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);

        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(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:
     *
     * - `to` 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 = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(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);

        _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(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 Sets {decimals} to a value other than the default one of 18.
     *
     * WARNING: This function should only be called from the constructor. Most
     * applications that interact with token contracts will not expect
     * {decimals} to ever change, and may work incorrectly if it does.
     */
    function _setupDecimals(uint8 decimals_) internal virtual {
        _decimals = decimals_;
    }

    /**
     * @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 to 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 { }
}

File 6 of 9 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

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

File 7 of 9 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "./IERC20.sol";
import "../../math/SafeMath.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 SafeMath for uint256;
    using Address for address;

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

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

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

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

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

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

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

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

pragma solidity >=0.6.2 <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;
        // solhint-disable-next-line no-inline-assembly
        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");

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

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

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

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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

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

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

pragma solidity >=0.6.0 <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 GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

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

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

Contract ABI

[{"inputs":[{"internalType":"contract CheckToken","name":"_check","type":"address"},{"internalType":"address","name":"_devaddr","type":"address"},{"internalType":"uint256","name":"_checkPerBlock","type":"uint256"},{"internalType":"uint256","name":"_startBlock","type":"uint256"},{"internalType":"uint256","name":"_bonusLockupBps","type":"uint256"},{"internalType":"uint256","name":"_bonusEndBlock","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"pending","type":"uint256"}],"name":"CashedCheck","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"DepositCheckToCashPool","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"BONUS_MULTIPLIER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"address","name":"_stakeToken","type":"address"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cashTotal","type":"uint256"},{"internalType":"address","name":"_cashToken","type":"address"},{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_endTime","type":"uint256"},{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"addCashPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"bonusEndBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bonusLockUpBps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"cashCheck","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"cashPoolInfo","outputs":[{"internalType":"uint256","name":"cashTotal","type":"uint256"},{"internalType":"address","name":"cashToken","type":"address"},{"internalType":"uint256","name":"stakeTotal","type":"uint256"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"uint256","name":"projectId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cashPoolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"cashUserInfo","outputs":[{"internalType":"uint256","name":"total","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"burn","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"check","outputs":[{"internalType":"contract CheckToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"checkPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"depositCheckToCashPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devaddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"_currentBlock","type":"uint256"}],"name":"getMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"address","name":"_stakeToken","type":"address"}],"name":"isDuplicatedPool","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"mayClaim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingCheck","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingClaim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"address","name":"stakeToken","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accCheckPerShare","type":"uint256"},{"internalType":"uint256","name":"projectId","type":"uint256"},{"internalType":"uint256","name":"lpSupply","type":"uint256"},{"internalType":"uint256","name":"accCheckPerShareTilBonusEnd","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_bonusMultiplier","type":"uint256"},{"internalType":"uint256","name":"_bonusEndBlock","type":"uint256"},{"internalType":"uint256","name":"_bonusLockUpBps","type":"uint256"}],"name":"setBonus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_cashTotal","type":"uint256"},{"internalType":"address","name":"_cashToken","type":"address"},{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_endTime","type":"uint256"},{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"setCashPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_devaddr","type":"address"}],"name":"setDev","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_checkPerBlock","type":"uint256"}],"name":"updateCheckPerBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"updatePoolPorjectId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"},{"internalType":"uint256","name":"bonusDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405260016006556000600b553480156200001b57600080fd5b5060405162002f2738038062002f27833981810160405260c08110156200004157600080fd5b508051602082015160408301516060840151608085015160a090950151939492939192909160006200007b6001600160e01b036200011716565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35060006006819055600b55600380546001600160a01b039788166001600160a01b0319918216179091556004805496909716951694909417909455600591909155600892909255600755600c556200011b565b3390565b612dfc806200012b6000396000f3fe608060405234801561001057600080fd5b50600436106101cd5760003560e01c8063016aeab7146101d257806301e2d19714610218578063081e3eda146102565780631526fe271461025e57806317caf6f1146102bd5780631aed6553146102c55780631b76909c146102cd5780632f282f9d1461030d578063441a3e701461033057806347bbd65b1461035357806348cd4cb11461037f57806351eb05a6146103875780635312ea8e146103a4578063630b5ba1146103c157806364482f79146103c95780636b1c665a146103f45780636f1e57a81461044c578063715018a614610478578063765e45281461048057806378e86072146104885780637c50ded3146104d25780638aa28550146105105780638da5cb5b146105185780638dbb1e3a1461053c578063919840ad1461055f57806393f1a40b14610567578063958e2d3114610593578063cbdec1fc146105b0578063d477f05f146105b8578063d49e77cd146105de578063db154f97146105e6578063ddc6326214610603578063defc107414610620578063e2bbb1581461065a578063f2fde38b1461067d578063f3f5b4a8146106a3578063f85ec98e146106ab578063fa5be8f8146106c8578063fa9c7d03146106f1575b600080fd5b610216600480360360c08110156101e857600080fd5b508035906020810135906001600160a01b036040820135169060608101359060808101359060a00135610714565b005b6102446004803603604081101561022e57600080fd5b50803590602001356001600160a01b03166108ec565b60408051918252519081900360200190f35b610244610982565b61027b6004803603602081101561027457600080fd5b5035610988565b604080516001600160a01b0390981688526020880196909652868601949094526060860192909252608085015260a084015260c0830152519081900360e00190f35b6102446109de565b6102446109e4565b6102f9600480360360408110156102e357600080fd5b50803590602001356001600160a01b03166109ea565b604080519115158252519081900360200190f35b6102166004803603604081101561032357600080fd5b5080359060200135610a78565b6102166004803603604081101561034657600080fd5b5080359060200135610ba7565b6102446004803603604081101561036957600080fd5b50803590602001356001600160a01b0316610bb5565b610244610c25565b6102166004803603602081101561039d57600080fd5b5035610c2b565b610216600480360360208110156103ba57600080fd5b5035610fd6565b610216611077565b610216600480360360608110156103df57600080fd5b50803590602081013590604001351515611096565b6104116004803603602081101561040a57600080fd5b5035611182565b604080519687526001600160a01b039095166020870152858501939093526060850191909152608084015260a0830152519081900360c00190f35b6102446004803603604081101561046257600080fd5b50803590602001356001600160a01b03166111cf565b6102166112db565b610244611375565b6104b46004803603604081101561049e57600080fd5b50803590602001356001600160a01b031661137b565b60408051938452602084019290925282820152519081900360600190f35b610216600480360360a08110156104e857600080fd5b508035906001600160a01b0360208201351690604081013590606081013590608001356113a3565b6102446115e9565b6105206115ef565b604080516001600160a01b039092168252519081900360200190f35b6102446004803603604081101561055257600080fd5b50803590602001356115fe565b61052061167a565b6104b46004803603604081101561057d57600080fd5b50803590602001356001600160a01b0316611689565b610216600480360360208110156105a957600080fd5b50356116b5565b6102446116da565b610216600480360360208110156105ce57600080fd5b50356001600160a01b03166116e0565b61052061174d565b610216600480360360208110156105fc57600080fd5b503561175c565b6102166004803603602081101561061957600080fd5b5035611aac565b6102166004803603608081101561063657600080fd5b508035906020810135906001600160a01b0360408201351690606001351515611b46565b6102166004803603604081101561067057600080fd5b5080359060200135611dff565b6102166004803603602081101561069357600080fd5b50356001600160a01b0316611f6f565b61024461205f565b610216600480360360208110156106c157600080fd5b5035612065565b610216600480360360608110156106de57600080fd5b50803590602081013590604001356120cc565b6102166004803603604081101561070757600080fd5b50803590602001356121e3565b61071c61226c565b6001600160a01b031661072d6115ef565b6001600160a01b031614610776576040805162461bcd60e51b81526020600482018190526024820152600080516020612d3a833981519152604482015290519081900360640190fd5b6001600160a01b0384166107cb576040805162461bcd60e51b815260206004820152601760248201527630b2321d103737ba1031b0b9b42a37b5b2b71030b2323960491b604482015290519081900360640190fd5b828211610815576040805162461bcd60e51b8152602060048201526013602482015272656e6454696d65203c20737461727454696d6560681b604482015290519081900360640190fd5b846001878154811061082357fe5b906000526020600020906006020160000181905550836001878154811061084657fe5b906000526020600020906006020160010160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550826001878154811061088957fe5b90600052602060002090600602016003018190555081600187815481106108ac57fe5b90600052602060002090600602016004018190555080600187815481106108cf57fe5b906000526020600020906006020160050181905550505050505050565b600080600184815481106108fc57fe5b60009182526020808320878452600280835260408086206001600160a01b038a16875290935291909320600690920290920191820154919250906109455760009250505061097c565b6000610976836002015461096a8460010154866000015461227090919063ffffffff16565b9063ffffffff6122c916565b93505050505b92915050565b60095490565b6009818154811061099557fe5b600091825260209091206007909102018054600182015460028301546003840154600485015460058601546006909601546001600160a01b039095169650929491939092919087565b600b5481565b60075481565b600954600090815b81811015610a6d578460098281548110610a0857fe5b906000526020600020906007020160040154148015610a555750836001600160a01b031660098281548110610a3957fe5b60009182526020909120600790910201546001600160a01b0316145b15610a655760019250505061097c565b6001016109f2565b506000949350505050565b600060018381548110610a8757fe5b60009182526020808320868452600282526040808520338652909252922060036006909202909201908101549092504210801590610ac9575081600401544211155b610b045760405162461bcd60e51b8152600401808060200182810382526023815260200180612d7a6023913960400191505060405180910390fd5b600354610b22906001600160a01b031633308663ffffffff61232d16565b6001810154610b37908463ffffffff61238716565b60018201558054610b4e908463ffffffff61238716565b81556002820154610b65908463ffffffff61238716565b6002830155604080518481529051859133917f02ce1b4cf08e9aef9316bb8290f171ebefbc6d3142d0ea5f50a97ec3ab23bcb99181900360200190a350505050565b610bb182826123df565b5050565b60008060018481548110610bc557fe5b60009182526020808320878452600280835260408086206001600160a01b038a1687529093529190932060069092029092019182015491925090610c0e5760009250505061097c565b81600401544210156109455760009250505061097c565b600c5481565b600060098281548110610c3a57fe5b9060005260206000209060070201905080600201544311610c5b5750610fd3565b600581015480610c72575043600290910155610fd3565b6000610c828360020154436115fe565b90506000610cb5600b5461096a8660010154610ca96005548761227090919063ffffffff16565b9063ffffffff61227016565b6003546004549192506001600160a01b03908116916340c10f199116610ce284600a63ffffffff6122c916565b6040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050600060405180830381600087803b158015610d3157600080fd5b505af1158015610d45573d6000803e3d6000fd5b5050600354604080516340c10f1960e01b81523060048201526024810186905290516001600160a01b0390921693506340c10f19925060448082019260009290919082900301818387803b158015610d9c57600080fd5b505af1158015610db0573d6000803e3d6000fd5b50505050610de4610dd38461096a64e8d4a510008561227090919063ffffffff16565b60038601549063ffffffff61238716565b60038501556007544311610e9e576003546004546008546001600160a01b039283169263282d3fdf921690610e2c906127109061096a90610ca988600a63ffffffff6122c916565b6040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050600060405180830381600087803b158015610e7b57600080fd5b505af1158015610e8f573d6000803e3d6000fd5b50505060038501546006860155505b60075443118015610eb457506007548460020154105b15610fc5576000610eee600b5461096a8760010154610ca9600554610ca9600654610ca98d6002015460075461255690919063ffffffff16565b6003546004546008549293506001600160a01b039182169263282d3fdf9290911690610f27906127109061096a90610ca988600a6122c9565b6040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050600060405180830381600087803b158015610f7657600080fd5b505af1158015610f8a573d6000803e3d6000fd5b50505050610fbe610fad8561096a64e8d4a510008561227090919063ffffffff16565b60068701549063ffffffff61238716565b6006860155505b438460020181905550505050505b50565b600060098281548110610fe557fe5b60009182526020808320858452600a82526040808520338087529352909320805460079093029093018054909450611030926001600160a01b0391909116919063ffffffff6125b316565b6000808255600182018190556040805191825251849133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a3505050565b60095460005b81811015610bb15761108e81610c2b565b60010161107d565b61109e61226c565b6001600160a01b03166110af6115ef565b6001600160a01b0316146110f8576040805162461bcd60e51b81526020600482018190526024820152600080516020612d3a833981519152604482015290519081900360640190fd5b801561110657611106611077565b60006009848154811061111557fe5b9060005260206000209060070201600101549050826009858154811061113757fe5b90600052602060002090600702016001018190555082811461117c576111788361116c83600b5461255690919063ffffffff16565b9063ffffffff61238716565b600b555b50505050565b6001818154811061118f57fe5b60009182526020909120600690910201805460018201546002830154600384015460048501546005909501549395506001600160a01b0390921693909286565b600080600984815481106111df57fe5b60009182526020808320878452600a825260408085206001600160a01b0389168652909252922060036007909202909201908101546005820154600283015492945090914311801561123057508015155b1561129c5760006112458560020154436115fe565b9050600061126c600b5461096a8860010154610ca96005548761227090919063ffffffff16565b905061129761128a8461096a8464e8d4a5100063ffffffff61227016565b859063ffffffff61238716565b935050505b6112d083600101546112c464e8d4a5100061096a86886000015461227090919063ffffffff16565b9063ffffffff61255616565b979650505050505050565b6112e361226c565b6001600160a01b03166112f46115ef565b6001600160a01b03161461133d576040805162461bcd60e51b81526020600482018190526024820152600080516020612d3a833981519152604482015290519081900360640190fd5b600080546040516001600160a01b0390911690600080516020612d5a833981519152908390a3600080546001600160a01b0319169055565b60015490565b6002602081815260009384526040808520909152918352912080546001820154919092015483565b6113ab61226c565b6001600160a01b03166113bc6115ef565b6001600160a01b031614611405576040805162461bcd60e51b81526020600482018190526024820152600080516020612d3a833981519152604482015290519081900360640190fd5b6001600160a01b03841661145a576040805162461bcd60e51b815260206004820152601760248201527630b2321d103737ba1031b0b9b42a37b5b2b71030b2323960491b604482015290519081900360640190fd5b8282116114a4576040805162461bcd60e51b8152602060048201526013602482015272656e6454696d65203c20737461727454696d6560681b604482015290519081900360640190fd5b6040805160c0810182529586526001600160a01b03948516602087019081526000918701828152606088019586526080880194855260a08801938452600180548082018255935296517fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf6600690930292830155517fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf7820180546001600160a01b031916919096161790945593517fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf884015590517fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf9830155517fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cfa82015590517fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cfb90910155565b60065481565b6000546001600160a01b031690565b600060075482116116275760065461162090610ca9848663ffffffff61255616565b905061097c565b600754831061164057611620828463ffffffff61255616565b6116736116586007548461255690919063ffffffff16565b61116c600654610ca98760075461255690919063ffffffff16565b9392505050565b6003546001600160a01b031681565b600a60209081526000928352604080842090915290825290208054600182015460029092015490919083565b6000818152600a60209081526040808320338452909152902054610fd39082906123df565b60085481565b6004546001600160a01b0316331461172b576040805162461bcd60e51b81526020600482015260096024820152686465763a207775743f60b81b604482015290519081900360640190fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6004546001600160a01b031681565b60006001828154811061176b57fe5b600091825260208083208584526002825260408085203386529092529220600460069092029092019081015490925042116117d75760405162461bcd60e51b8152600401808060200182810382526023815260200180612d7a6023913960400191505060405180910390fd5b6000816001015411611822576040805162461bcd60e51b815260206004820152600f60248201526e0dcdee8d0d2dcce40e8de40c6c2e6d608b1b604482015290519081900360640190fd5b6000611847836002015461096a8460010154866000015461227090919063ffffffff16565b6001840154604080516370a0823160e01b815230600482015290519293506001600160a01b039091169182916370a08231916024808301926020929190829003018186803b15801561189857600080fd5b505afa1580156118ac573d6000803e3d6000fd5b505050506040513d60208110156118c257600080fd5b5051821115611913576040805162461bcd60e51b81526020600482015260186024820152773bba33103737ba1032b737bab3b41031b0b9b42a37b5b2b760411b604482015290519081900360640190fd5b600354604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561195e57600080fd5b505afa158015611972573d6000803e3d6000fd5b505050506040513d602081101561198857600080fd5b5051600184015411156119cc5760405162461bcd60e51b8152600401808060200182810382526022815260200180612cd16022913960400191505060405180910390fd5b600354600184015460408051632770a7eb60e21b81523060048201526024810192909252516001600160a01b0390921691639dc29fac9160448082019260009290919082900301818387803b158015611a2457600080fd5b505af1158015611a38573d6000803e3d6000fd5b50611a51925050506001600160a01b03821633846125b3565b600183015460408051918252602082018490528051879233927fe8c1691122c8f17e73620184571ce883a0407cd91dedccf0a4858fe146d0fe2f92918290030190a35050600181018054600290920191909155600090555050565b600060098281548110611abb57fe5b60009182526020808320858452600a82526040808520338652909252922060079091029091019150611aec83610c2b565b611af58361260a565b60038201548154611b169164e8d4a510009161096a9163ffffffff61227016565b600182015560068201548154611b3c9164e8d4a510009161096a9163ffffffff61227016565b6002909101555050565b611b4e61226c565b6001600160a01b0316611b5f6115ef565b6001600160a01b031614611ba8576040805162461bcd60e51b81526020600482018190526024820152600080516020612d3a833981519152604482015290519081900360640190fd5b8015611bb657611bb6611077565b6001600160a01b038216611c0c576040805162461bcd60e51b815260206004820152601860248201527730b2321d103737ba1039ba30b5b2aa37b5b2b71030b2323960411b604482015290519081900360640190fd5b611c1684836109ea565b15611c5e576040805162461bcd60e51b815260206004820152601360248201527206164643a207374616b65546f6b656e2064757606c1b604482015290519081900360640190fd5b6000600c544311611c7157600c54611c73565b435b600b54909150611c89908563ffffffff61238716565b600b556040805160e0810182526001600160a01b039485168152602081019586529081019182526000606082018181526080830197885260a0830182815260c0840183815260098054600181018255945293517f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af600790940293840180546001600160a01b031916919098161790965595517f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7b082015591517f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7b183015593517f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7b282015593517f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7b385015550517f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7b4830155517f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7b590910155565b6009548210611e4b576040805162461bcd60e51b81526020600482015260136024820152721c1bdbdb081a5cc81b9bdd08195e1a5cdd1959606a1b604482015290519081900360640190fd5b600060098381548110611e5a57fe5b60009182526020808320868452600a82526040808520338652909252922060079091029091019150611e8b84610c2b565b805415611e9b57611e9b8461260a565b8154611eb8906001600160a01b031633308663ffffffff61232d16565b8054611eca908463ffffffff61238716565b8082556003830154611eed9164e8d4a510009161096a919063ffffffff61227016565b600182015560068201548154611f139164e8d4a510009161096a9163ffffffff61227016565b60028201556005820154611f2d908463ffffffff61238716565b6005830155604080518481529051859133917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a350505050565b611f7761226c565b6001600160a01b0316611f886115ef565b6001600160a01b031614611fd1576040805162461bcd60e51b81526020600482018190526024820152600080516020612d3a833981519152604482015290519081900360640190fd5b6001600160a01b0381166120165760405162461bcd60e51b8152600401808060200182810382526026815260200180612cab6026913960400191505060405180910390fd5b600080546040516001600160a01b0380851693921691600080516020612d5a83398151915291a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60055481565b61206d61226c565b6001600160a01b031661207e6115ef565b6001600160a01b0316146120c7576040805162461bcd60e51b81526020600482018190526024820152600080516020612d3a833981519152604482015290519081900360640190fd5b600555565b6120d461226c565b6001600160a01b03166120e56115ef565b6001600160a01b03161461212e576040805162461bcd60e51b81526020600482018190526024820152600080516020612d3a833981519152604482015290519081900360640190fd5b438211612180576040805162461bcd60e51b815260206004820152601b60248201527a736574426f6e75733a2062616420626f6e7573456e64426c6f636b60281b604482015290519081900360640190fd5b600183116121d5576040805162461bcd60e51b815260206004820152601d60248201527f736574426f6e75733a2062616420626f6e75734d756c7469706c696572000000604482015290519081900360640190fd5b600692909255600755600855565b6121eb61226c565b6001600160a01b03166121fc6115ef565b6001600160a01b031614612245576040805162461bcd60e51b81526020600482018190526024820152600080516020612d3a833981519152604482015290519081900360640190fd5b806009838154811061225357fe5b9060005260206000209060070201600401819055505050565b3390565b60008261227f5750600061097c565b8282028284828161228c57fe5b04146116735760405162461bcd60e51b8152600401808060200182810382526021815260200180612d196021913960400191505060405180910390fd5b600080821161231c576040805162461bcd60e51b815260206004820152601a602482015279536166654d6174683a206469766973696f6e206279207a65726f60301b604482015290519081900360640190fd5b81838161232557fe5b049392505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261117c908590612857565b600082820183811015611673576040805162461bcd60e51b815260206004820152601b60248201527a536166654d6174683a206164646974696f6e206f766572666c6f7760281b604482015290519081900360640190fd5b6000600983815481106123ee57fe5b60009182526020808320868452600a825260408085203386529092529220805460079092029092019250831115612461576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b61246a84610c2b565b6124738461260a565b8054612485908463ffffffff61255616565b80825560038301546124a89164e8d4a510009161096a919063ffffffff61227016565b6001820155600682015481546124ce9164e8d4a510009161096a9163ffffffff61227016565b600282015560058201546124e8908463ffffffff61255616565b600583015581546001600160a01b031615612519578154612519906001600160a01b0316338563ffffffff6125b316565b604080518481529051859133917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a350505050565b6000828211156125ad576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052612605908490612857565b505050565b60006009828154811061261957fe5b60009182526020808320858452600a825260408085203386529092529220805460079092029092019250612689576040805162461bcd60e51b81526020600482015260126024820152711b9bdd1a1a5b99c81d1bc81a185c9d995cdd60721b604482015290519081900360640190fd5b60006126b782600101546112c464e8d4a5100061096a8760030154876000015461227090919063ffffffff16565b600354604080516370a0823160e01b815230600482015290519293506001600160a01b03909116916370a0823191602480820192602092909190829003018186803b15801561270557600080fd5b505afa158015612719573d6000803e3d6000fd5b505050506040513d602081101561272f57600080fd5b505181111561277c576040805162461bcd60e51b8152602060048201526014602482015273777466206e6f7420656e6f75676820636865636b60601b604482015290519081900360640190fd5b60006127aa83600201546112c464e8d4a5100061096a8860060154886000015461227090919063ffffffff16565b90506127b63383612908565b6003546008546001600160a01b039091169063282d3fdf9033906127e9906127109061096a90879063ffffffff61227016565b6040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050600060405180830381600087803b15801561283857600080fd5b505af115801561284c573d6000803e3d6000fd5b505050505050505050565b60606128ac826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612a989092919063ffffffff16565b805190915015612605578080602001905160208110156128cb57600080fd5b50516126055760405162461bcd60e51b815260040180806020018281038252602a815260200180612d9d602a913960400191505060405180910390fd5b600354604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561295357600080fd5b505afa158015612967573d6000803e3d6000fd5b505050506040513d602081101561297d57600080fd5b5051905080821115612a11576003546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018590529151919092169163a9059cbb9160448083019260209291908290030181600087803b1580156129df57600080fd5b505af11580156129f3573d6000803e3d6000fd5b505050506040513d6020811015612a0957600080fd5b506126059050565b6003546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018690529151919092169163a9059cbb9160448083019260209291908290030181600087803b158015612a6757600080fd5b505af1158015612a7b573d6000803e3d6000fd5b505050506040513d6020811015612a9157600080fd5b5050505050565b6060612aa78484600085612aaf565b949350505050565b606082471015612af05760405162461bcd60e51b8152600401808060200182810382526026815260200180612cf36026913960400191505060405180910390fd5b612af985612c00565b612b4a576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310612b895780518252601f199092019160209182019101612b6a565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612beb576040519150601f19603f3d011682016040523d82523d6000602084013e612bf0565b606091505b50915091506112d0828286612c06565b3b151590565b60608315612c15575081611673565b825115612c255782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612c6f578181015183820152602001612c57565b50505050905090810190601f168015612c9c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373777466206e6f7420656e6f75676820636865636b2d746f6b656e20746f206275726e416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65728be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e054686520636173682d6f757420616374697669747920646964206e6f742073746172745361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212204f3141ef07d90ac8e8cc3851092ae486b917fd5c80470977e3e7d6cc6d8ad7c164736f6c63430006060033000000000000000000000000002a5298061833c233b19fdd01fd2405f6249c7a0000000000000000000000003e8f2c46b1f1daf61a9b9fddb834e374b11e74cc000000000000000000000000000000000000000000000001158e460913d00000000000000000000000000000000000000000000000000000000000000068729800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

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

000000000000000000000000002a5298061833c233b19fdd01fd2405f6249c7a0000000000000000000000003e8f2c46b1f1daf61a9b9fddb834e374b11e74cc000000000000000000000000000000000000000000000001158e460913d00000000000000000000000000000000000000000000000000000000000000068729800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 000000000000000000000000002a5298061833c233b19fdd01fd2405f6249c7a
Arg [1] : 0000000000000000000000003e8f2c46b1f1daf61a9b9fddb834e374b11e74cc
Arg [2] : 000000000000000000000000000000000000000000000001158e460913d00000
Arg [3] : 0000000000000000000000000000000000000000000000000000000000687298
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000000


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