Contract 0x4e5cf54fde5e1237e80e87fcba555d829e1307ce 19

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x7441a2c6131ca172b852c04a5a63665d3bf8cf1b955031e1799e962df29c73aaHarvest1847223422024-02-26 16:44:2823 hrs 32 mins ago0x12d4dd0876e6335bcf335931d06951d31576a812 IN  PlutusDAO: plvGLP Farm0 ETH0.00009759 0.1
0xb3beba72b9a260397b33bf7a4a997ace5fd153a05a5c7ae02c81010552939fbfWithdraw1847222762024-02-26 16:44:1223 hrs 32 mins ago0x12d4dd0876e6335bcf335931d06951d31576a812 IN  PlutusDAO: plvGLP Farm0 ETH0.00012267 0.1
0xd1e7dcb997a7dd82f640c3a55373f1bca7c8ab9431a05759aa1321650af6bb7cHarvest1847101902024-02-26 15:53:331 day 23 mins ago0x2067bed542762d26e2755ce7d8776728f3429f48 IN  PlutusDAO: plvGLP Farm0 ETH0.00008781 0.1
0x34ca6b3a13f45ed075955bb195287e230644394e0ffefe3505cbe44254d68e69Withdraw1843746352024-02-25 15:59:482 days 17 mins ago0x62e6e8e24faa6c6ff498513ccad124e9b78e190f IN  PlutusDAO: plvGLP Farm0 ETH0.00005393 0.1
0x8a4b4e85bfde64ffa0300347cc83c3cf25267fbede352348d9830bed397c828aHarvest1843745512024-02-25 15:59:272 days 17 mins ago0x62e6e8e24faa6c6ff498513ccad124e9b78e190f IN  PlutusDAO: plvGLP Farm0 ETH0.00004392 0.1
0x9b629c25bad22c299de0c734387c2f5f91ca249ece1cd336edc6a5f895341e45Deposit1837504442024-02-23 18:43:353 days 21 hrs ago0xcb54cb441a0b4187bbe7513e5256348b66adfe6a IN  PlutusDAO: plvGLP Farm0 ETH0.00006054 0.1
0x006cfa3786b556a04e47afe6ffc14340d3a451843f6b540583674cdc52728ac2Harvest1830223822024-02-21 13:56:236 days 2 hrs ago0xae915b0ab0fa713d58c66432f2523efc632c9b34 IN  PlutusDAO: plvGLP Farm0 ETH0.00005705 0.1
0x869bfd5c519564d03f5b4454b1d2c791a56adfe648310b9e8d418fbc2b28c850Harvest1830035282024-02-21 12:37:096 days 3 hrs ago0x1830c41eedea4f101688f1aa6b2c2ef9370ad48d IN  PlutusDAO: plvGLP Farm0 ETH0.000060220.1
0x731cd2d6a942f9ad2b73f80a26e998ff8aef29d675fb06398f50a06097e70669Withdraw1829365522024-02-21 7:55:226 days 8 hrs ago0xf5ccd855b7d196c3f3d54ae65e90531f1849bbe2 IN  PlutusDAO: plvGLP Farm0 ETH0.00005828 0.1
0x96156139f269c1d1a381dcd65d39dc18e8732206ec60ab66c4f0951821146862Harvest1826204022024-02-20 9:10:267 days 7 hrs ago0xbed1279b75266d90ca7f51b1dced4e29f73364f8 IN  PlutusDAO: plvGLP Farm0 ETH0.00005875 0.1
0x90356be6faf288b3dd5360d82798d9c6a67078e64d7248714dc7e307a7af7937Withdraw1826202382024-02-20 9:09:457 days 7 hrs ago0xbed1279b75266d90ca7f51b1dced4e29f73364f8 IN  PlutusDAO: plvGLP Farm0 ETH0.00007353 0.1
0xd8d2634533bc73dd998f0d6e4b0b83a6444cda0801193d98cd2c07a5411c0f08Harvest1825428152024-02-20 3:37:497 days 12 hrs ago0xb1359fa99e2c8a824783a4483d5c0d55f1cb7731 IN  PlutusDAO: plvGLP Farm0 ETH0.000036140.1
0x375954a68146472dcdecc33db8e839a9778502d100eb7c5c2ca135f6e98823ecWithdraw1825427362024-02-20 3:37:277 days 12 hrs ago0xb1359fa99e2c8a824783a4483d5c0d55f1cb7731 IN  PlutusDAO: plvGLP Farm0 ETH0.000044830.1
0x337bce02acdb42b7b4bca1f3c2ca7a62d9cf560ae34af7362a46dd8879ee97d3Harvest1821034292024-02-18 20:01:268 days 20 hrs ago0x99ab0afb022aa3cc3c986cc66dee014a4918df0b IN  PlutusDAO: plvGLP Farm0 ETH0.0000527 0.1
0x525111b2c2b74efc6be67b5fff599658dc3949706e371801c0f2fb122737324cHarvest1819576782024-02-18 9:42:129 days 6 hrs ago0x387769f511bbca2f9244afb346c64b0ec501212a IN  PlutusDAO: plvGLP Farm0 ETH0.000034970.1
0xe76dc61949dc0dc35a1a4fe8e4ef6cf0bc8886401e8f41eea7df4588fbae029bWithdraw1819576152024-02-18 9:41:569 days 6 hrs ago0x387769f511bbca2f9244afb346c64b0ec501212a IN  PlutusDAO: plvGLP Farm0 ETH0.00004340.1
0x2247c51c1ee6870953b624f94a58ce099033f67a39b95c1913a61322511647fdWithdraw1816020652024-02-17 7:50:1710 days 8 hrs ago0x39c31a899662da8bba43862c82c8ba531dc61390 IN  PlutusDAO: plvGLP Farm0 ETH0.000028980.1
0x10cf45df7a4998d84cdba77e5bdf8d470725b0339d8778724502a10272e95f94Harvest1816020132024-02-17 7:50:0310 days 8 hrs ago0x39c31a899662da8bba43862c82c8ba531dc61390 IN  PlutusDAO: plvGLP Farm0 ETH0.000025610.1
0x994a04728efc975ecf8be96a91e013d598a4d71ce387264b7ad0592e4ea5275bHarvest1809704432024-02-15 10:23:3112 days 5 hrs ago0x9c57027b1eca93093a6f446422c59c85a5a3fa52 IN  PlutusDAO: plvGLP Farm0 ETH0.000043730.1
0x33c84f24ebd7357f3a313d87914c8a49f7579da2508f61e7789080fcf889cc53Harvest1803145142024-02-13 11:37:5814 days 4 hrs ago0x34991c4c43444a018b580a67f94f522915c361ab IN  PlutusDAO: plvGLP Farm0 ETH0.00004279 0.1
0x4de09954a7acd2bddcab36829b4e4a44bab488afa3927c140add5b6be9820643Harvest1802351872024-02-13 6:05:4514 days 10 hrs ago0x7804c5f4fd50f7c12845e2951e24858b8c270e35 IN  PlutusDAO: plvGLP Farm0 ETH0.00002309 0.1
0x991422596e3a56b317b54157ac3d962fb3d75e0c62923a3d5264921a510738b6Harvest1801096782024-02-12 20:50:2714 days 19 hrs ago0x8de3c3891268502f77db7e876d727257dec0f852 IN  PlutusDAO: plvGLP Farm0 ETH0.00006653 0.1
0x7aef6511c650b2d62817339d5b8169621f8401d5098d8c36b59c1ad10291fa0bWithdraw1801096162024-02-12 20:50:1014 days 19 hrs ago0x8de3c3891268502f77db7e876d727257dec0f852 IN  PlutusDAO: plvGLP Farm0 ETH0.00008319 0.1
0x94d79c1a665c26739ef0524f815a08031cebede55b9fb920173b24198dc3f887Harvest1798917402024-02-12 5:26:2215 days 10 hrs ago0xfb15339d187a76af62698f73d700e1f8536f03bd IN  PlutusDAO: plvGLP Farm0 ETH0.00003130.1
0x5bbc1b23913e27ad755c4767e272ad02153e7dd90c364aa142eb91e7fbe22044Withdraw1798916992024-02-12 5:26:1215 days 10 hrs ago0xfb15339d187a76af62698f73d700e1f8536f03bd IN  PlutusDAO: plvGLP Farm0 ETH0.000040750.1
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x94b7eda45bcf372feadfdee5937ea1b8a6288b4c1b481e802fd55cb9fd1aa3a8720866002023-03-21 10:18:31343 days 5 hrs ago PlutusDAO: plvGLP Farm PlutusDAO: PLS Token0 ETH
0x94b7eda45bcf372feadfdee5937ea1b8a6288b4c1b481e802fd55cb9fd1aa3a8720866002023-03-21 10:18:31343 days 5 hrs ago PlutusDAO: plvGLP Farm PlutusDAO: PLS Token0 ETH
0xa773c17e61c7f9c467abed0644762b7c65c411a6c8a2934c1c87fd07bd8fb3dd720673902023-03-21 8:59:30343 days 7 hrs ago PlutusDAO: plvGLP Farm PlutusDAO: PLS Token0 ETH
0xa773c17e61c7f9c467abed0644762b7c65c411a6c8a2934c1c87fd07bd8fb3dd720673902023-03-21 8:59:30343 days 7 hrs ago PlutusDAO: plvGLP Farm PlutusDAO: PLS Token0 ETH
0x7a105586a0e4e3448ad65fa23fca679cfebbd29feddafefd8401774935613932720668102023-03-21 8:57:05343 days 7 hrs ago PlutusDAO: plvGLP Farm plvGLP: plvGLP Token0 ETH
0x7a105586a0e4e3448ad65fa23fca679cfebbd29feddafefd8401774935613932720668102023-03-21 8:57:05343 days 7 hrs ago PlutusDAO: plvGLP Farm plvGLP: plvGLP Token0 ETH
0x7a105586a0e4e3448ad65fa23fca679cfebbd29feddafefd8401774935613932720668102023-03-21 8:57:05343 days 7 hrs ago PlutusDAO: plvGLP Farm plvGLP: plvGLP Token0 ETH
0x3c6e5c5cd99fd0ea0f79b00843a5eee640eea95a6e872d89c1e9e5081d10ad47720665742023-03-21 8:56:06343 days 7 hrs ago PlutusDAO: plvGLP Farm plvGLP: plvGLP Token0 ETH
0x3c6e5c5cd99fd0ea0f79b00843a5eee640eea95a6e872d89c1e9e5081d10ad47720665742023-03-21 8:56:06343 days 7 hrs ago PlutusDAO: plvGLP Farm plvGLP: plvGLP Token0 ETH
0x3c6e5c5cd99fd0ea0f79b00843a5eee640eea95a6e872d89c1e9e5081d10ad47720665742023-03-21 8:56:06343 days 7 hrs ago PlutusDAO: plvGLP Farm plvGLP: plvGLP Token0 ETH
0x5008bca8490bcb298e39bf72be8467aafeb012f765314b3c89fc6dd07130b318720585142023-03-21 8:23:07343 days 7 hrs ago PlutusDAO: plvGLP Farm plvGLP: plvGLP Token0 ETH
0x5008bca8490bcb298e39bf72be8467aafeb012f765314b3c89fc6dd07130b318720585142023-03-21 8:23:07343 days 7 hrs ago PlutusDAO: plvGLP Farm plvGLP: plvGLP Token0 ETH
0x5008bca8490bcb298e39bf72be8467aafeb012f765314b3c89fc6dd07130b318720585142023-03-21 8:23:07343 days 7 hrs ago PlutusDAO: plvGLP Farm plvGLP: plvGLP Token0 ETH
0x981ec96ef36f9e1a63cfa8ff04b0de80b11f4ed0c02cf327780360cabd8b3c8e720578212023-03-21 8:20:23343 days 7 hrs ago PlutusDAO: plvGLP Farm plvGLP: plvGLP Token0 ETH
0xf05b76322714cb4d32e8e24d900ecb2df7c6fe020ff2564c94b847759e44793d720574102023-03-21 8:18:40343 days 7 hrs ago PlutusDAO: plvGLP Farm PlutusDAO: PLS Token0 ETH
0xf05b76322714cb4d32e8e24d900ecb2df7c6fe020ff2564c94b847759e44793d720574102023-03-21 8:18:40343 days 7 hrs ago PlutusDAO: plvGLP Farm PlutusDAO: PLS Token0 ETH
0x4f3f660fb8b7f082fef1b06ba5f60dc8d4e43646201380255798b9d82f0c035a720454062023-03-21 7:29:26343 days 8 hrs ago PlutusDAO: plvGLP Farm PlutusDAO: PLS Token0 ETH
0x4f3f660fb8b7f082fef1b06ba5f60dc8d4e43646201380255798b9d82f0c035a720454062023-03-21 7:29:26343 days 8 hrs ago PlutusDAO: plvGLP Farm PlutusDAO: PLS Token0 ETH
0x2ad9645cd7941733b744b350f170619e8bf5419c50ad2c5f5441388756da78b2720411702023-03-21 7:12:05343 days 9 hrs ago PlutusDAO: plvGLP Farm plvGLP: plvGLP Token0 ETH
0x1962ce8ae18962e34b397fc907cd344595216015d7c925f565a779426b162034720352522023-03-21 6:47:43343 days 9 hrs ago PlutusDAO: plvGLP Farm plvGLP: plvGLP Token0 ETH
0x1962ce8ae18962e34b397fc907cd344595216015d7c925f565a779426b162034720352522023-03-21 6:47:43343 days 9 hrs ago PlutusDAO: plvGLP Farm plvGLP: plvGLP Token0 ETH
0x1962ce8ae18962e34b397fc907cd344595216015d7c925f565a779426b162034720352522023-03-21 6:47:43343 days 9 hrs ago PlutusDAO: plvGLP Farm plvGLP: plvGLP Token0 ETH
0x5738b0d23e5b7f4b748b0d2988b571aee01d5071c22a4880aeae3da58fb0b06f720335112023-03-21 6:40:33343 days 9 hrs ago PlutusDAO: plvGLP Farm plvGLP: plvGLP Token0 ETH
0x5738b0d23e5b7f4b748b0d2988b571aee01d5071c22a4880aeae3da58fb0b06f720335112023-03-21 6:40:33343 days 9 hrs ago PlutusDAO: plvGLP Farm plvGLP: plvGLP Token0 ETH
0x5738b0d23e5b7f4b748b0d2988b571aee01d5071c22a4880aeae3da58fb0b06f720335112023-03-21 6:40:33343 days 9 hrs ago PlutusDAO: plvGLP Farm plvGLP: plvGLP Token0 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PlutusChef

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 6 : PlutusChef.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;

import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/security/Pausable.sol';
import { IWhitelist } from '../Whitelist.sol';

contract PlutusChef is Pausable, Ownable {
  uint256 private constant MUL_CONSTANT = 1e14;
  IERC20 public immutable stakingToken;
  IERC20 public immutable pls;

  // Info of each user.
  struct UserInfo {
    uint96 amount; // Staking tokens the user has provided
    int128 plsRewardDebt;
  }

  IWhitelist public whitelist;
  address public operator;

  uint256 public plsPerSecond;
  uint128 public accPlsPerShare;
  uint96 private shares; // total staked
  uint32 public lastRewardSecond;

  mapping(address => UserInfo) public userInfo;

  constructor(address _stakingToken, address _pls) {
    stakingToken = IERC20(_stakingToken);
    pls = IERC20(_pls);
    lastRewardSecond = 1661731200;
  }

  function deposit(uint96 _amount) external {
    _isEligibleSender();
    _deposit(msg.sender, _amount);
  }

  function withdraw(uint96 _amount) external {
    _isEligibleSender();
    _withdraw(msg.sender, _amount);
  }

  function harvest() external {
    _isEligibleSender();
    _harvest(msg.sender);
  }

  /**
   * Withdraw without caring about rewards. EMERGENCY ONLY.
   */
  function emergencyWithdraw() external {
    _isEligibleSender();
    UserInfo storage user = userInfo[msg.sender];

    uint96 _amount = user.amount;

    user.amount = 0;
    user.plsRewardDebt = 0;

    if (shares >= _amount) {
      shares -= _amount;
    } else {
      shares = 0;
    }

    stakingToken.transfer(msg.sender, _amount);
    emit EmergencyWithdraw(msg.sender, _amount);
  }

  /**
    Keep reward variables up to date. Ran before every mutative function.
   */
  function updateShares() public whenNotPaused {
    // if block.timestamp <= lastRewardSecond, already updated.
    if (block.timestamp <= lastRewardSecond) {
      return;
    }

    // if pool has no supply
    if (shares == 0) {
      lastRewardSecond = uint32(block.timestamp);
      return;
    }

    unchecked {
      accPlsPerShare += rewardPerShare(plsPerSecond);
    }

    lastRewardSecond = uint32(block.timestamp);
  }

  /** OPERATOR */
  function depositFor(address _user, uint88 _amount) external {
    if (msg.sender != operator) revert UNAUTHORIZED();
    _deposit(_user, _amount);
  }

  function withdrawFor(address _user, uint88 _amount) external {
    if (msg.sender != operator) revert UNAUTHORIZED();
    _withdraw(_user, _amount);
  }

  function harvestFor(address _user) external {
    if (msg.sender != operator) revert UNAUTHORIZED();
    _harvest(_user);
  }

  /** VIEWS */

  /**
    Calculates the reward per share since `lastRewardSecond` was updated
  */
  function rewardPerShare(uint256 _rewardRatePerSecond) public view returns (uint128) {
    // duration = block.timestamp - lastRewardSecond;
    // tokenReward = duration * _rewardRatePerSecond;
    // tokenRewardPerShare = (tokenReward * MUL_CONSTANT) / shares;

    unchecked {
      return uint128(((block.timestamp - lastRewardSecond) * _rewardRatePerSecond * MUL_CONSTANT) / shares);
    }
  }

  /**
    View function to see pending rewards on frontend
   */
  function pendingRewards(address _user) external view returns (uint256 _pendingPls) {
    uint256 _plsPS = accPlsPerShare;

    if (block.timestamp > lastRewardSecond && shares != 0) {
      _plsPS += rewardPerShare(plsPerSecond);
    }

    UserInfo memory user = userInfo[_user];

    _pendingPls = _calculatePending(user.plsRewardDebt, _plsPS, user.amount);
  }

  /** PRIVATE */
  function _isEligibleSender() private view {
    if (msg.sender != tx.origin && whitelist.isWhitelisted(msg.sender) == false) revert UNAUTHORIZED();
  }

  function _calculatePending(
    int128 _rewardDebt,
    uint256 _accPerShare, // Stay 256;
    uint96 _amount
  ) private pure returns (uint128) {
    if (_rewardDebt < 0) {
      return uint128(_calculateRewardDebt(_accPerShare, _amount)) + uint128(-_rewardDebt);
    } else {
      return uint128(_calculateRewardDebt(_accPerShare, _amount)) - uint128(_rewardDebt);
    }
  }

  function _calculateRewardDebt(uint256 _accPlsPerShare, uint96 _amount) private pure returns (uint256) {
    unchecked {
      return (_amount * _accPlsPerShare) / MUL_CONSTANT;
    }
  }

  function _safeTokenTransfer(
    IERC20 _token,
    address _to,
    uint256 _amount
  ) private {
    uint256 bal = _token.balanceOf(address(this));

    if (_amount > bal) {
      _token.transfer(_to, bal);
    } else {
      _token.transfer(_to, _amount);
    }
  }

  function _deposit(address _user, uint96 _amount) private {
    UserInfo storage user = userInfo[_user];
    if (_amount == 0) revert DEPOSIT_ERROR();
    updateShares();

    uint256 _prev = stakingToken.balanceOf(address(this));

    unchecked {
      user.amount += _amount;
      shares += _amount;
    }

    user.plsRewardDebt = user.plsRewardDebt + int128(uint128(_calculateRewardDebt(accPlsPerShare, _amount)));

    stakingToken.transferFrom(_user, address(this), _amount);

    unchecked {
      if (_prev + _amount != stakingToken.balanceOf(address(this))) revert DEPOSIT_ERROR();
    }

    emit Deposit(_user, _amount);
  }

  function _withdraw(address _user, uint96 _amount) private {
    UserInfo storage user = userInfo[_user];
    if (user.amount < _amount || _amount == 0) revert WITHDRAW_ERROR();
    updateShares();

    unchecked {
      user.amount -= _amount;
      shares -= _amount;
    }

    user.plsRewardDebt = user.plsRewardDebt - int128(uint128(_calculateRewardDebt(accPlsPerShare, _amount)));

    stakingToken.transfer(_user, _amount);
    emit Withdraw(_user, _amount);
  }

  function _harvest(address _user) private {
    updateShares();
    UserInfo storage user = userInfo[_user];

    uint256 plsPending = _calculatePending(user.plsRewardDebt, accPlsPerShare, user.amount);

    user.plsRewardDebt = int128(uint128(_calculateRewardDebt(accPlsPerShare, user.amount)));

    _safeTokenTransfer(pls, _user, plsPending);

    emit Harvest(_user, plsPending);
  }

  /** OWNER FUNCTIONS */
  function setWhitelist(address _whitelist) external onlyOwner {
    whitelist = IWhitelist(_whitelist);
  }

  function setOperator(address _operator) external onlyOwner {
    operator = _operator;
  }

  function setStartTime(uint32 _startTime) external onlyOwner {
    lastRewardSecond = _startTime;
  }

  function setPaused(bool _pauseContract) external onlyOwner {
    if (_pauseContract) {
      _pause();
    } else {
      _unpause();
    }
  }

  function setEmission(uint256 _plsPerSecond) external {
    if (msg.sender == operator || msg.sender == owner()) {
      plsPerSecond = _plsPerSecond;
    } else {
      revert UNAUTHORIZED();
    }
  }

  error DEPOSIT_ERROR();
  error WITHDRAW_ERROR();
  error UNAUTHORIZED();

  event Deposit(address indexed _user, uint256 _amount);
  event Withdraw(address indexed _user, uint256 _amount);
  event Harvest(address indexed _user, uint256 _amount);
  event EmergencyWithdraw(address indexed _user, uint256 _amount);
}

File 2 of 6 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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);

    /**
     * @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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from,
        address to,
        uint256 amount
    ) external returns (bool);
}

File 3 of 6 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^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() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        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 {
        _transferOwnership(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");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 4 of 6 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        _requireNotPaused();
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        _requirePaused();
        _;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        require(paused(), "Pausable: not paused");
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 5 of 6 : Whitelist.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;
import '@openzeppelin/contracts/access/Ownable.sol';

interface IWhitelist {
  function isWhitelisted(address) external view returns (bool);
}

contract Whitelist is IWhitelist, Ownable {
  mapping(address => bool) public isWhitelisted;

  constructor(address _gov) {
    transferOwnership(_gov);
  }

  function whitelistAdd(address _addr) external onlyOwner {
    isWhitelisted[_addr] = true;
    emit AddedToWhitelist(_addr);
  }

  function whitelistRemove(address _addr) external onlyOwner {
    isWhitelisted[_addr] = false;
    emit RemovedFromWhitelist(_addr);
  }

  event RemovedFromWhitelist(address indexed _addr);
  event AddedToWhitelist(address indexed _addr);
}

File 6 of 6 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

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

Contract ABI

[{"inputs":[{"internalType":"address","name":"_stakingToken","type":"address"},{"internalType":"address","name":"_pls","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"DEPOSIT_ERROR","type":"error"},{"inputs":[],"name":"UNAUTHORIZED","type":"error"},{"inputs":[],"name":"WITHDRAW_ERROR","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_user","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_user","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_user","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Harvest","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_user","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"accPlsPerShare","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint96","name":"_amount","type":"uint96"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint88","name":"_amount","type":"uint88"}],"name":"depositFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"harvestFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lastRewardSecond","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"pendingRewards","outputs":[{"internalType":"uint256","name":"_pendingPls","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pls","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"plsPerSecond","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardRatePerSecond","type":"uint256"}],"name":"rewardPerShare","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_plsPerSecond","type":"uint256"}],"name":"setEmission","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"}],"name":"setOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_pauseContract","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_startTime","type":"uint32"}],"name":"setStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_whitelist","type":"address"}],"name":"setWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"updateShares","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint96","name":"amount","type":"uint96"},{"internalType":"int128","name":"plsRewardDebt","type":"int128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelist","outputs":[{"internalType":"contract IWhitelist","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint96","name":"_amount","type":"uint96"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint88","name":"_amount","type":"uint88"}],"name":"withdrawFor","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c06040523480156200001157600080fd5b5060405162001aa838038062001aa88339810160408190526200003491620000ee565b6000805460ff19169055620000493362000078565b6001600160a01b039182166080521660a052600480546001600160e01b031662c6180360e71b17905562000126565b600080546001600160a01b03838116610100818102610100600160a81b0319851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b80516001600160a01b0381168114620000e957600080fd5b919050565b600080604083850312156200010257600080fd5b6200010d83620000d1565b91506200011d60208401620000d1565b90509250929050565b60805160a051611932620001766000396000818161025e0152610d9f01526000818161032b0152818161080101528181610fe60152818161110601528181611298015261132a01526119326000f3fe608060405234801561001057600080fd5b50600436106101b85760003560e01c80637de35002116100f9578063ddce102f11610097578063e4eae6b711610071578063e4eae6b71461040c578063e87237541461041f578063f2fde38b14610432578063fbe1ebec1461044557600080fd5b8063ddce102f146103d3578063dee4dea0146103e6578063e305e54a146103f957600080fd5b806393e59dc1116100d357806393e59dc114610392578063b3ab15fb146103a5578063cdd8d69c146103b8578063db2e21bc146103cb57600080fd5b80637de3500214610360578063854cff2f146103695780638da5cb5b1461037c57600080fd5b80634641257d116101665780635c975abb116101405780635c975abb14610308578063715018a61461031e57806372f702f31461032657806379017d1b1461034d57600080fd5b80634641257d146102c157806350b6f4d1146102c9578063570ca735146102f557600080fd5b8063223e5a9d11610197578063223e5a9d146102595780632a4100681461029857806331d7a262146102a057600080fd5b80621db0ba146101bd57806316c38b3c146101ed5780631959a00214610202575b600080fd5b6004546101d0906001600160801b031681565b6040516001600160801b0390911681526020015b60405180910390f35b6102006101fb366004611619565b610458565b005b610237610210366004611652565b6005602052600090815260409020546001600160601b03811690600160601b9004600f0b82565b604080516001600160601b039093168352600f9190910b6020830152016101e4565b6102807f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101e4565b610200610479565b6102b36102ae366004611652565b61053c565b6040519081526020016101e4565b6102006105ff565b6004546102e090600160e01b900463ffffffff1681565b60405163ffffffff90911681526020016101e4565b600254610280906001600160a01b031681565b60005460ff1660405190151581526020016101e4565b610200610610565b6102807f000000000000000000000000000000000000000000000000000000000000000081565b61020061035b36600461166d565b610622565b6102b360035481565b610200610377366004611652565b610668565b60005461010090046001600160a01b0316610280565b600154610280906001600160a01b031681565b6102006103b3366004611652565b61069f565b6101d06103c63660046116b4565b6106d6565b61020061071b565b6102006103e13660046116b4565b6108c8565b6102006103f43660046116cd565b610925565b61020061040736600461166d565b610937565b61020061041a3660046116cd565b610979565b61020061042d3660046116f6565b61098b565b610200610440366004611652565b6109cd565b610200610453366004611652565b610a5f565b610460610a93565b80156104715761046e610af3565b50565b61046e610b4d565b610481610b86565b600454600160e01b900463ffffffff16421161049957565b600454600160801b90046001600160601b03166104e457600480547bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16600160e01b4263ffffffff1602179055565b6104ef6003546106d6565b600480546001600160801b03808216939093019092167bffffffffffffffffffffffff0000000000000000000000000000000090921691909117600160e01b4263ffffffff16021790555b565b6004546000906001600160801b03811690600160e01b900463ffffffff16421180156105795750600454600160801b90046001600160601b031615155b1561059f576105896003546106d6565b61059c906001600160801b031682611732565b90505b6001600160a01b0383166000908152600560209081526040918290208251808401909352546001600160601b038116808452600160601b909104600f0b9183018290526105ee91908490610bd9565b6001600160801b0316949350505050565b610607610c37565b61053a33610cf6565b610618610a93565b61053a6000610e0d565b6002546001600160a01b0316331461064d5760405163075fd2b160e01b815260040160405180910390fd5b61066482826affffffffffffffffffffff16610e7d565b5050565b610670610a93565b6001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6106a7610a93565b6002805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6004546000906001600160601b03600160801b8204169063ffffffff600160e01b9091041642038302655af3107a400002816107145761071461174a565b0492915050565b610723610c37565b33600090815260056020526040902080547fffffffff00000000000000000000000000000000000000000000000000000000811682556004546001600160601b0391821691600160801b9091041681116107c45780600460108282829054906101000a90046001600160601b031661079b9190611760565b92506101000a8154816001600160601b0302191690836001600160601b031602179055506107dd565b600480546bffffffffffffffffffffffff60801b191690555b60405163a9059cbb60e01b81523360048201526001600160601b03821660248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a9059cbb90604401602060405180830381600087803b15801561084d57600080fd5b505af1158015610861573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108859190611788565b506040516001600160601b038216815233907f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd96959060200160405180910390a25050565b6002546001600160a01b0316331480610902575060005461010090046001600160a01b03166001600160a01b0316336001600160a01b0316145b1561090c57600355565b60405163075fd2b160e01b815260040160405180910390fd5b61092d610c37565b61046e3382610e7d565b6002546001600160a01b031633146109625760405163075fd2b160e01b815260040160405180910390fd5b61066482826affffffffffffffffffffff166110a7565b610981610c37565b61046e33826110a7565b610993610a93565b6004805463ffffffff909216600160e01b027bffffffffffffffffffffffffffffffffffffffffffffffffffffffff909216919091179055565b6109d5610a93565b6001600160a01b038116610a565760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b61046e81610e0d565b6002546001600160a01b03163314610a8a5760405163075fd2b160e01b815260040160405180910390fd5b61046e81610cf6565b6000546001600160a01b0361010090910416331461053a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a4d565b610afb610b86565b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610b303390565b6040516001600160a01b03909116815260200160405180910390a1565b610b55611423565b6000805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33610b30565b60005460ff161561053a5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610a4d565b60008084600f0b1215610c1357610bef846117a5565b610c0c90655af3107a40006001600160601b0385168602046117d5565b9050610c30565b610c0c84655af3107a40006001600160601b038516860204611800565b9392505050565b333214801590610cd857506001546040517f3af32abf0000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b0390911690633af32abf9060240160206040518083038186803b158015610c9e57600080fd5b505afa158015610cb2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cd69190611788565b155b1561053a5760405163075fd2b160e01b815260040160405180910390fd5b610cfe610479565b6001600160a01b03811660009081526005602052604081208054600454919291610d4591600160601b8104600f0b916001600160801b0316906001600160601b0316610bd9565b6004548354655af3107a40006001600160801b039283166001600160601b03831602048216600160601b027fffffffff00000000000000000000000000000000ffffffffffffffffffffffff909116178455169050610dc57f00000000000000000000000000000000000000000000000000000000000000008483611475565b826001600160a01b03167fc9695243a805adb74c91f28311176c65b417e842d5699893cef56d18bfa48cba82604051610e0091815260200190565b60405180910390a2505050565b600080546001600160a01b038381166101008181027fffffffffffffffffffffff0000000000000000000000000000000000000000ff851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b6001600160a01b038216600090815260056020526040902080546001600160601b0380841691161080610eb757506001600160601b038216155b15610eee576040517f9b54028b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610ef6610479565b80546bffffffffffffffffffffffff1981166001600160601b039182168490038216178255600480546bffffffffffffffffffffffff60801b198116600160801b8083048516879003851602908117909255655af3107a40006001600160801b03918216919092161791841691909102048154610f7d9190600160601b9004600f0b611820565b81546001600160801b0391909116600160601b027fffffffff00000000000000000000000000000000ffffffffffffffffffffffff90911617815560405163a9059cbb60e01b81526001600160a01b0384811660048301526001600160601b03841660248301527f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb90604401602060405180830381600087803b15801561102a57600080fd5b505af115801561103e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110629190611788565b506040516001600160601b03831681526001600160a01b038416907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a942436490602001610e00565b6001600160a01b03821660009081526005602052604090206001600160601b0382166110e65760405163fd9eaf9160e01b815260040160405180910390fd5b6110ee610479565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b15801561115057600080fd5b505afa158015611164573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111889190611882565b82546bffffffffffffffffffffffff1981166001600160601b0391821686018216178455600480546bffffffffffffffffffffffff60801b198116600160801b80830485168901851602908117909255929350655af3107a40006001600160801b039384169390911692909217908516020482546112109190600160601b9004600f0b61189b565b82546001600160801b0391909116600160601b027fffffffff00000000000000000000000000000000ffffffffffffffffffffffff9091161782556040517f23b872dd0000000000000000000000000000000000000000000000000000000081526001600160a01b0385811660048301523060248301526001600160601b03851660448301527f000000000000000000000000000000000000000000000000000000000000000016906323b872dd90606401602060405180830381600087803b1580156112dc57600080fd5b505af11580156112f0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113149190611788565b506040516370a0823160e01b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b15801561137457600080fd5b505afa158015611388573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113ac9190611882565b836001600160601b03168201146113d65760405163fd9eaf9160e01b815260040160405180910390fd5b6040516001600160601b03841681526001600160a01b038516907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9060200160405180910390a250505050565b60005460ff1661053a5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610a4d565b6040516370a0823160e01b81523060048201526000906001600160a01b038516906370a082319060240160206040518083038186803b1580156114b757600080fd5b505afa1580156114cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114ef9190611882565b9050808211156115815760405163a9059cbb60e01b81526001600160a01b0384811660048301526024820183905285169063a9059cbb90604401602060405180830381600087803b15801561154357600080fd5b505af1158015611557573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061157b9190611788565b50611605565b60405163a9059cbb60e01b81526001600160a01b0384811660048301526024820184905285169063a9059cbb90604401602060405180830381600087803b1580156115cb57600080fd5b505af11580156115df573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116039190611788565b505b50505050565b801515811461046e57600080fd5b60006020828403121561162b57600080fd5b8135610c308161160b565b80356001600160a01b038116811461164d57600080fd5b919050565b60006020828403121561166457600080fd5b610c3082611636565b6000806040838503121561168057600080fd5b61168983611636565b915060208301356affffffffffffffffffffff811681146116a957600080fd5b809150509250929050565b6000602082840312156116c657600080fd5b5035919050565b6000602082840312156116df57600080fd5b81356001600160601b0381168114610c3057600080fd5b60006020828403121561170857600080fd5b813563ffffffff81168114610c3057600080fd5b634e487b7160e01b600052601160045260246000fd5b600082198211156117455761174561171c565b500190565b634e487b7160e01b600052601260045260246000fd5b60006001600160601b03838116908316818110156117805761178061171c565b039392505050565b60006020828403121561179a57600080fd5b8151610c308161160b565b600081600f0b6f7fffffffffffffffffffffffffffffff198114156117cc576117cc61171c565b60000392915050565b60006001600160801b038083168185168083038211156117f7576117f761171c565b01949350505050565b60006001600160801b03838116908316818110156117805761178061171c565b600081600f0b83600f0b60008112816f7fffffffffffffffffffffffffffffff19018312811516156118545761185461171c565b816f7fffffffffffffffffffffffffffffff0183138116156118785761187861171c565b5090039392505050565b60006020828403121561189457600080fd5b5051919050565b600081600f0b83600f0b60008212826f7fffffffffffffffffffffffffffffff038213811516156118ce576118ce61171c565b826f7fffffffffffffffffffffffffffffff190382128116156118f3576118f361171c565b5001939250505056fea26469706673582212206972e5daf493661d6e200ff6ed344417e0a11fb4111976e75812ac9b2f24e3bc64736f6c634300080900330000000000000000000000005326e71ff593ecc2cf7acae5fe57582d6e74cff100000000000000000000000051318b7d00db7acc4026c88c3952b66278b6a67f

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101b85760003560e01c80637de35002116100f9578063ddce102f11610097578063e4eae6b711610071578063e4eae6b71461040c578063e87237541461041f578063f2fde38b14610432578063fbe1ebec1461044557600080fd5b8063ddce102f146103d3578063dee4dea0146103e6578063e305e54a146103f957600080fd5b806393e59dc1116100d357806393e59dc114610392578063b3ab15fb146103a5578063cdd8d69c146103b8578063db2e21bc146103cb57600080fd5b80637de3500214610360578063854cff2f146103695780638da5cb5b1461037c57600080fd5b80634641257d116101665780635c975abb116101405780635c975abb14610308578063715018a61461031e57806372f702f31461032657806379017d1b1461034d57600080fd5b80634641257d146102c157806350b6f4d1146102c9578063570ca735146102f557600080fd5b8063223e5a9d11610197578063223e5a9d146102595780632a4100681461029857806331d7a262146102a057600080fd5b80621db0ba146101bd57806316c38b3c146101ed5780631959a00214610202575b600080fd5b6004546101d0906001600160801b031681565b6040516001600160801b0390911681526020015b60405180910390f35b6102006101fb366004611619565b610458565b005b610237610210366004611652565b6005602052600090815260409020546001600160601b03811690600160601b9004600f0b82565b604080516001600160601b039093168352600f9190910b6020830152016101e4565b6102807f00000000000000000000000051318b7d00db7acc4026c88c3952b66278b6a67f81565b6040516001600160a01b0390911681526020016101e4565b610200610479565b6102b36102ae366004611652565b61053c565b6040519081526020016101e4565b6102006105ff565b6004546102e090600160e01b900463ffffffff1681565b60405163ffffffff90911681526020016101e4565b600254610280906001600160a01b031681565b60005460ff1660405190151581526020016101e4565b610200610610565b6102807f0000000000000000000000005326e71ff593ecc2cf7acae5fe57582d6e74cff181565b61020061035b36600461166d565b610622565b6102b360035481565b610200610377366004611652565b610668565b60005461010090046001600160a01b0316610280565b600154610280906001600160a01b031681565b6102006103b3366004611652565b61069f565b6101d06103c63660046116b4565b6106d6565b61020061071b565b6102006103e13660046116b4565b6108c8565b6102006103f43660046116cd565b610925565b61020061040736600461166d565b610937565b61020061041a3660046116cd565b610979565b61020061042d3660046116f6565b61098b565b610200610440366004611652565b6109cd565b610200610453366004611652565b610a5f565b610460610a93565b80156104715761046e610af3565b50565b61046e610b4d565b610481610b86565b600454600160e01b900463ffffffff16421161049957565b600454600160801b90046001600160601b03166104e457600480547bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16600160e01b4263ffffffff1602179055565b6104ef6003546106d6565b600480546001600160801b03808216939093019092167bffffffffffffffffffffffff0000000000000000000000000000000090921691909117600160e01b4263ffffffff16021790555b565b6004546000906001600160801b03811690600160e01b900463ffffffff16421180156105795750600454600160801b90046001600160601b031615155b1561059f576105896003546106d6565b61059c906001600160801b031682611732565b90505b6001600160a01b0383166000908152600560209081526040918290208251808401909352546001600160601b038116808452600160601b909104600f0b9183018290526105ee91908490610bd9565b6001600160801b0316949350505050565b610607610c37565b61053a33610cf6565b610618610a93565b61053a6000610e0d565b6002546001600160a01b0316331461064d5760405163075fd2b160e01b815260040160405180910390fd5b61066482826affffffffffffffffffffff16610e7d565b5050565b610670610a93565b6001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6106a7610a93565b6002805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6004546000906001600160601b03600160801b8204169063ffffffff600160e01b9091041642038302655af3107a400002816107145761071461174a565b0492915050565b610723610c37565b33600090815260056020526040902080547fffffffff00000000000000000000000000000000000000000000000000000000811682556004546001600160601b0391821691600160801b9091041681116107c45780600460108282829054906101000a90046001600160601b031661079b9190611760565b92506101000a8154816001600160601b0302191690836001600160601b031602179055506107dd565b600480546bffffffffffffffffffffffff60801b191690555b60405163a9059cbb60e01b81523360048201526001600160601b03821660248201527f0000000000000000000000005326e71ff593ecc2cf7acae5fe57582d6e74cff16001600160a01b03169063a9059cbb90604401602060405180830381600087803b15801561084d57600080fd5b505af1158015610861573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108859190611788565b506040516001600160601b038216815233907f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd96959060200160405180910390a25050565b6002546001600160a01b0316331480610902575060005461010090046001600160a01b03166001600160a01b0316336001600160a01b0316145b1561090c57600355565b60405163075fd2b160e01b815260040160405180910390fd5b61092d610c37565b61046e3382610e7d565b6002546001600160a01b031633146109625760405163075fd2b160e01b815260040160405180910390fd5b61066482826affffffffffffffffffffff166110a7565b610981610c37565b61046e33826110a7565b610993610a93565b6004805463ffffffff909216600160e01b027bffffffffffffffffffffffffffffffffffffffffffffffffffffffff909216919091179055565b6109d5610a93565b6001600160a01b038116610a565760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b61046e81610e0d565b6002546001600160a01b03163314610a8a5760405163075fd2b160e01b815260040160405180910390fd5b61046e81610cf6565b6000546001600160a01b0361010090910416331461053a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a4d565b610afb610b86565b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610b303390565b6040516001600160a01b03909116815260200160405180910390a1565b610b55611423565b6000805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33610b30565b60005460ff161561053a5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610a4d565b60008084600f0b1215610c1357610bef846117a5565b610c0c90655af3107a40006001600160601b0385168602046117d5565b9050610c30565b610c0c84655af3107a40006001600160601b038516860204611800565b9392505050565b333214801590610cd857506001546040517f3af32abf0000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b0390911690633af32abf9060240160206040518083038186803b158015610c9e57600080fd5b505afa158015610cb2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cd69190611788565b155b1561053a5760405163075fd2b160e01b815260040160405180910390fd5b610cfe610479565b6001600160a01b03811660009081526005602052604081208054600454919291610d4591600160601b8104600f0b916001600160801b0316906001600160601b0316610bd9565b6004548354655af3107a40006001600160801b039283166001600160601b03831602048216600160601b027fffffffff00000000000000000000000000000000ffffffffffffffffffffffff909116178455169050610dc57f00000000000000000000000051318b7d00db7acc4026c88c3952b66278b6a67f8483611475565b826001600160a01b03167fc9695243a805adb74c91f28311176c65b417e842d5699893cef56d18bfa48cba82604051610e0091815260200190565b60405180910390a2505050565b600080546001600160a01b038381166101008181027fffffffffffffffffffffff0000000000000000000000000000000000000000ff851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b6001600160a01b038216600090815260056020526040902080546001600160601b0380841691161080610eb757506001600160601b038216155b15610eee576040517f9b54028b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610ef6610479565b80546bffffffffffffffffffffffff1981166001600160601b039182168490038216178255600480546bffffffffffffffffffffffff60801b198116600160801b8083048516879003851602908117909255655af3107a40006001600160801b03918216919092161791841691909102048154610f7d9190600160601b9004600f0b611820565b81546001600160801b0391909116600160601b027fffffffff00000000000000000000000000000000ffffffffffffffffffffffff90911617815560405163a9059cbb60e01b81526001600160a01b0384811660048301526001600160601b03841660248301527f0000000000000000000000005326e71ff593ecc2cf7acae5fe57582d6e74cff1169063a9059cbb90604401602060405180830381600087803b15801561102a57600080fd5b505af115801561103e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110629190611788565b506040516001600160601b03831681526001600160a01b038416907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a942436490602001610e00565b6001600160a01b03821660009081526005602052604090206001600160601b0382166110e65760405163fd9eaf9160e01b815260040160405180910390fd5b6110ee610479565b6040516370a0823160e01b81523060048201526000907f0000000000000000000000005326e71ff593ecc2cf7acae5fe57582d6e74cff16001600160a01b0316906370a082319060240160206040518083038186803b15801561115057600080fd5b505afa158015611164573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111889190611882565b82546bffffffffffffffffffffffff1981166001600160601b0391821686018216178455600480546bffffffffffffffffffffffff60801b198116600160801b80830485168901851602908117909255929350655af3107a40006001600160801b039384169390911692909217908516020482546112109190600160601b9004600f0b61189b565b82546001600160801b0391909116600160601b027fffffffff00000000000000000000000000000000ffffffffffffffffffffffff9091161782556040517f23b872dd0000000000000000000000000000000000000000000000000000000081526001600160a01b0385811660048301523060248301526001600160601b03851660448301527f0000000000000000000000005326e71ff593ecc2cf7acae5fe57582d6e74cff116906323b872dd90606401602060405180830381600087803b1580156112dc57600080fd5b505af11580156112f0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113149190611788565b506040516370a0823160e01b81523060048201527f0000000000000000000000005326e71ff593ecc2cf7acae5fe57582d6e74cff16001600160a01b0316906370a082319060240160206040518083038186803b15801561137457600080fd5b505afa158015611388573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113ac9190611882565b836001600160601b03168201146113d65760405163fd9eaf9160e01b815260040160405180910390fd5b6040516001600160601b03841681526001600160a01b038516907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9060200160405180910390a250505050565b60005460ff1661053a5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610a4d565b6040516370a0823160e01b81523060048201526000906001600160a01b038516906370a082319060240160206040518083038186803b1580156114b757600080fd5b505afa1580156114cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114ef9190611882565b9050808211156115815760405163a9059cbb60e01b81526001600160a01b0384811660048301526024820183905285169063a9059cbb90604401602060405180830381600087803b15801561154357600080fd5b505af1158015611557573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061157b9190611788565b50611605565b60405163a9059cbb60e01b81526001600160a01b0384811660048301526024820184905285169063a9059cbb90604401602060405180830381600087803b1580156115cb57600080fd5b505af11580156115df573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116039190611788565b505b50505050565b801515811461046e57600080fd5b60006020828403121561162b57600080fd5b8135610c308161160b565b80356001600160a01b038116811461164d57600080fd5b919050565b60006020828403121561166457600080fd5b610c3082611636565b6000806040838503121561168057600080fd5b61168983611636565b915060208301356affffffffffffffffffffff811681146116a957600080fd5b809150509250929050565b6000602082840312156116c657600080fd5b5035919050565b6000602082840312156116df57600080fd5b81356001600160601b0381168114610c3057600080fd5b60006020828403121561170857600080fd5b813563ffffffff81168114610c3057600080fd5b634e487b7160e01b600052601160045260246000fd5b600082198211156117455761174561171c565b500190565b634e487b7160e01b600052601260045260246000fd5b60006001600160601b03838116908316818110156117805761178061171c565b039392505050565b60006020828403121561179a57600080fd5b8151610c308161160b565b600081600f0b6f7fffffffffffffffffffffffffffffff198114156117cc576117cc61171c565b60000392915050565b60006001600160801b038083168185168083038211156117f7576117f761171c565b01949350505050565b60006001600160801b03838116908316818110156117805761178061171c565b600081600f0b83600f0b60008112816f7fffffffffffffffffffffffffffffff19018312811516156118545761185461171c565b816f7fffffffffffffffffffffffffffffff0183138116156118785761187861171c565b5090039392505050565b60006020828403121561189457600080fd5b5051919050565b600081600f0b83600f0b60008212826f7fffffffffffffffffffffffffffffff038213811516156118ce576118ce61171c565b826f7fffffffffffffffffffffffffffffff190382128116156118f3576118f361171c565b5001939250505056fea26469706673582212206972e5daf493661d6e200ff6ed344417e0a11fb4111976e75812ac9b2f24e3bc64736f6c63430008090033

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

0000000000000000000000005326e71ff593ecc2cf7acae5fe57582d6e74cff100000000000000000000000051318b7d00db7acc4026c88c3952b66278b6a67f

-----Decoded View---------------
Arg [0] : _stakingToken (address): 0x5326E71Ff593Ecc2CF7AcaE5Fe57582D6e74CFF1
Arg [1] : _pls (address): 0x51318B7D00db7ACc4026C88c3952B66278B6A67F

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000005326e71ff593ecc2cf7acae5fe57582d6e74cff1
Arg [1] : 00000000000000000000000051318b7d00db7acc4026c88c3952b66278b6a67f


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