Contract 0x4e5cf54fde5e1237e80e87fcba555d829e1307ce 6

 

Contract Overview

PlutusDAO: plvGLP Farm
Balance:
0 ETH

ETH Value:
$0.00

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x9a86f3fb66042dfd2a0f24404a5e68c7224f3c33a86f2edb506f2e2376df9563Deposit439066942022-12-05 20:47:013 mins ago0x20798fd64a342d1ee640348e42c14181fdc842d8 IN  PlutusDAO: plvGLP Farm0 ETH0.00002234
0x98fe50174f54810c88d73a8757e722601b30c3938348dc32b1e2cb8f7170c8d1Withdraw439062492022-12-05 20:44:486 mins ago0xde2e1e5dd83b97ffa061773211a537a05398dfc1 IN  PlutusDAO: plvGLP Farm0 ETH0.00002449
0x8802938cca39e84ced2c8be55615fa492f75ffaa8a5c73273dc1b2d0ba82f878Deposit439038972022-12-05 20:33:0817 mins ago0x00dcf8c169e8d10be11c49975a9c5f9866e8a69c IN  PlutusDAO: plvGLP Farm0 ETH0.00002558
0x6a6e63d70082cc827eeb332b55c888b8ff4a058593bb30a64e57f9e1c6c23a76Withdraw438962192022-12-05 19:51:2659 mins ago0x8c6b15b6ffd0a1f400ac34d8f0afae1c4843ad15 IN  PlutusDAO: plvGLP Farm0 ETH0.00003162
0x4bcf30223e4f73ce04f8e156a76ebf1acfe964d8c2e585ad2ac442b5e83f8897Harvest438872682022-12-05 19:05:301 hr 45 mins ago0x98e073b579fd483eac8f10d5bd0b32c8c3bbd7e0 IN  PlutusDAO: plvGLP Farm0 ETH0.00002064
0x62a774f53004ca52d6a9a419a6931e897737c81ed4817ba5c56b3fa2ddcadc90Harvest438818592022-12-05 18:37:552 hrs 12 mins ago0x8c6b15b6ffd0a1f400ac34d8f0afae1c4843ad15 IN  PlutusDAO: plvGLP Farm0 ETH0.000023
0x45951d6c8e675e9c4d65bd1c424b9cbc1d01a8f259fbc82b36718280aff78181Deposit438817882022-12-05 18:37:332 hrs 13 mins ago0xa70e6fe4488104be32b9b657f5be7b68afc17f9a IN  PlutusDAO: plvGLP Farm0 ETH0.00002551
0x63cb9d936f0457bb5920cf9df50c78068d65e378724c831b6cb16be52e32cb26Harvest438766602022-12-05 18:12:212 hrs 38 mins ago0xbdbfdf3e82fc9d2be1352e252ab1ce2287fc2122 IN  PlutusDAO: plvGLP Farm0 ETH0.00002049
0x6f3061b8d50719b967a3eae0a28f5efc34428e7ed9be4c6f5d8b438bfb2a910aHarvest438668752022-12-05 17:24:183 hrs 26 mins ago0x8b932f5e9b62bba7fc468396dd628ae2dd88cf33 IN  PlutusDAO: plvGLP Farm0 ETH0.00002531
0xb32aeded370b01d61427e2cc3b9357158a06572ed6fd2734354d0e0d73c2e003Harvest438631902022-12-05 17:07:133 hrs 43 mins ago0x333c91876481f9e913367abc67ede7b46985f7f7 IN  PlutusDAO: plvGLP Farm0 ETH0.00002564
0x69c63abefe2fe8ff9e4ada32daaf435ba806a87c2b1cdc1b8689b7ac30564e24Harvest438604332022-12-05 16:54:043 hrs 56 mins ago0xa70e6fe4488104be32b9b657f5be7b68afc17f9a IN  PlutusDAO: plvGLP Farm0 ETH0.00104726
0x64ccc0716ff5076db70eeaa0da7b04831ddb5bbebb2ef0cadc2d2a338eb583bcDeposit438471652022-12-05 15:50:515 hrs ago0x146cdfd5e656c4e0551296a313a3f659b2883a83 IN  PlutusDAO: plvGLP Farm0 ETH0.00033176
0xb5291e24299301152a30dece66f26bcda33f7dcb001ba7f743068feb6f86cdcaWithdraw438466152022-12-05 15:48:135 hrs 2 mins ago0x146cdfd5e656c4e0551296a313a3f659b2883a83 IN  PlutusDAO: plvGLP Farm0 ETH0.00034745
0x3ea4fee033a35a5d2a8e2b53affe5d663d5dc030096319b9fa9af579f1108d3cDeposit438461832022-12-05 15:46:185 hrs 4 mins ago0x146cdfd5e656c4e0551296a313a3f659b2883a83 IN  PlutusDAO: plvGLP Farm0 ETH0.00034521
0xe5bdeaa17b2696c7fcca20d07737cfcabbbe937f1752bcfed47e62a3369f0113Harvest438287702022-12-05 14:30:056 hrs 20 mins ago0xf116569b3f888d639372a5485685a6d8ee28a593 IN  PlutusDAO: plvGLP Farm0 ETH0.00001543
0x35f45f323d448c5e5691c3d296206793e3322716a4b338df79efa0a6df521627Deposit438102842022-12-05 13:10:307 hrs 40 mins ago0x16f8d1f8a485bed3672b98aec5d4cbd0f706ac75 IN  PlutusDAO: plvGLP Farm0 ETH0.00001864
0x3f31dbd9b40bc44e229c24c10f6b435af093c6a25fcdaf67696303ba0e8fe53aHarvest438069762022-12-05 12:55:547 hrs 54 mins ago0x432fcd67815d5cc72808a7815a02373fdee7d740 IN  PlutusDAO: plvGLP Farm0 ETH0.00001608
0x0de78d659dbb912a13ca9e900a78f7e205c98f4736662b07d51b26fcb4933933Withdraw438067442022-12-05 12:54:527 hrs 55 mins ago0x432fcd67815d5cc72808a7815a02373fdee7d740 IN  PlutusDAO: plvGLP Farm0 ETH0.00001741
0x3326f9502ca5bca9025429198bed1087f4ee7e3da0f4655edcb090fe23bda17cDeposit438017612022-12-05 12:32:458 hrs 18 mins ago0xf2cbb98b2f8eefb1fbd6b6c1a07915711de4da03 IN  PlutusDAO: plvGLP Farm0 ETH0.00001789
0x71e58a69337216f7ee976153cefc9bfdf751f70bccfb57bd99f8e5897069a6dbHarvest437972382022-12-05 12:12:488 hrs 38 mins ago0xbbb7b32a5e384829fa67e200041d64e4dd8a6105 IN  PlutusDAO: plvGLP Farm0 ETH0.00001522
0x7bf6d8d86e26c2bffe7a1cc22fdda097f62092330d9cc4fb9384a1c7c343e07cHarvest437828082022-12-05 11:09:479 hrs 41 mins ago0xd510b0d48441a51fe9e6b2fed48d2f99c9f9a058 IN  PlutusDAO: plvGLP Farm0 ETH0.00001477
0x31059600a3067fd4f1bd0bd155b983062f97f1d497172b1d7b83b10949484afbDeposit437823712022-12-05 11:07:499 hrs 43 mins ago0x16f8d1f8a485bed3672b98aec5d4cbd0f706ac75 IN  PlutusDAO: plvGLP Farm0 ETH0.00002002
0x1d83f4eabbf99ea4752cc22b43db3a4778a35743ed55392ffc44a16a05b8b929Harvest437772232022-12-05 10:42:5610 hrs 7 mins ago0x83fefba2597cd6af88b913cb732080cd91927924 IN  PlutusDAO: plvGLP Farm0 ETH0.0000172
0x81124c8c7e06ed809714cebab215346e53dd301ce28d2babeae72981828c61bdWithdraw437770562022-12-05 10:41:5410 hrs 8 mins ago0xaf28e2a58ef2d6d88fb4cdc28f380908bade162b IN  PlutusDAO: plvGLP Farm0 ETH0.00006527
0xab198491ea84ed27a53d6633981cccd8b73f3145b7e27c16ccf75c7701f4cdd5Withdraw437728232022-12-05 10:16:4310 hrs 34 mins ago0xaf28e2a58ef2d6d88fb4cdc28f380908bade162b IN  PlutusDAO: plvGLP Farm0 ETH0.00006048
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x9a86f3fb66042dfd2a0f24404a5e68c7224f3c33a86f2edb506f2e2376df9563439066942022-12-05 20:47:013 mins ago PlutusDAO: plvGLP Farm 0x5326e71ff593ecc2cf7acae5fe57582d6e74cff10 ETH
0x9a86f3fb66042dfd2a0f24404a5e68c7224f3c33a86f2edb506f2e2376df9563439066942022-12-05 20:47:013 mins ago PlutusDAO: plvGLP Farm 0x5326e71ff593ecc2cf7acae5fe57582d6e74cff10 ETH
0x9a86f3fb66042dfd2a0f24404a5e68c7224f3c33a86f2edb506f2e2376df9563439066942022-12-05 20:47:013 mins ago PlutusDAO: plvGLP Farm 0x5326e71ff593ecc2cf7acae5fe57582d6e74cff10 ETH
0x98fe50174f54810c88d73a8757e722601b30c3938348dc32b1e2cb8f7170c8d1439062492022-12-05 20:44:486 mins ago PlutusDAO: plvGLP Farm 0x5326e71ff593ecc2cf7acae5fe57582d6e74cff10 ETH
0x8802938cca39e84ced2c8be55615fa492f75ffaa8a5c73273dc1b2d0ba82f878439038972022-12-05 20:33:0817 mins ago PlutusDAO: plvGLP Farm 0x5326e71ff593ecc2cf7acae5fe57582d6e74cff10 ETH
0x8802938cca39e84ced2c8be55615fa492f75ffaa8a5c73273dc1b2d0ba82f878439038972022-12-05 20:33:0817 mins ago PlutusDAO: plvGLP Farm 0x5326e71ff593ecc2cf7acae5fe57582d6e74cff10 ETH
0x8802938cca39e84ced2c8be55615fa492f75ffaa8a5c73273dc1b2d0ba82f878439038972022-12-05 20:33:0817 mins ago PlutusDAO: plvGLP Farm 0x5326e71ff593ecc2cf7acae5fe57582d6e74cff10 ETH
0x6a6e63d70082cc827eeb332b55c888b8ff4a058593bb30a64e57f9e1c6c23a76438962192022-12-05 19:51:2659 mins ago PlutusDAO: plvGLP Farm 0x5326e71ff593ecc2cf7acae5fe57582d6e74cff10 ETH
0x4bcf30223e4f73ce04f8e156a76ebf1acfe964d8c2e585ad2ac442b5e83f8897438872682022-12-05 19:05:301 hr 45 mins ago PlutusDAO: plvGLP Farm PlutusDAO: PLS Token0 ETH
0x4bcf30223e4f73ce04f8e156a76ebf1acfe964d8c2e585ad2ac442b5e83f8897438872682022-12-05 19:05:301 hr 45 mins ago PlutusDAO: plvGLP Farm PlutusDAO: PLS Token0 ETH
0x62a774f53004ca52d6a9a419a6931e897737c81ed4817ba5c56b3fa2ddcadc90438818592022-12-05 18:37:552 hrs 12 mins ago PlutusDAO: plvGLP Farm PlutusDAO: PLS Token0 ETH
0x62a774f53004ca52d6a9a419a6931e897737c81ed4817ba5c56b3fa2ddcadc90438818592022-12-05 18:37:552 hrs 12 mins ago PlutusDAO: plvGLP Farm PlutusDAO: PLS Token0 ETH
0x45951d6c8e675e9c4d65bd1c424b9cbc1d01a8f259fbc82b36718280aff78181438817882022-12-05 18:37:332 hrs 13 mins ago PlutusDAO: plvGLP Farm 0x5326e71ff593ecc2cf7acae5fe57582d6e74cff10 ETH
0x45951d6c8e675e9c4d65bd1c424b9cbc1d01a8f259fbc82b36718280aff78181438817882022-12-05 18:37:332 hrs 13 mins ago PlutusDAO: plvGLP Farm 0x5326e71ff593ecc2cf7acae5fe57582d6e74cff10 ETH
0x45951d6c8e675e9c4d65bd1c424b9cbc1d01a8f259fbc82b36718280aff78181438817882022-12-05 18:37:332 hrs 13 mins ago PlutusDAO: plvGLP Farm 0x5326e71ff593ecc2cf7acae5fe57582d6e74cff10 ETH
0x63cb9d936f0457bb5920cf9df50c78068d65e378724c831b6cb16be52e32cb26438766602022-12-05 18:12:212 hrs 38 mins ago PlutusDAO: plvGLP Farm PlutusDAO: PLS Token0 ETH
0x63cb9d936f0457bb5920cf9df50c78068d65e378724c831b6cb16be52e32cb26438766602022-12-05 18:12:212 hrs 38 mins ago PlutusDAO: plvGLP Farm PlutusDAO: PLS Token0 ETH
0x6f3061b8d50719b967a3eae0a28f5efc34428e7ed9be4c6f5d8b438bfb2a910a438668752022-12-05 17:24:183 hrs 26 mins ago PlutusDAO: plvGLP Farm PlutusDAO: PLS Token0 ETH
0x6f3061b8d50719b967a3eae0a28f5efc34428e7ed9be4c6f5d8b438bfb2a910a438668752022-12-05 17:24:183 hrs 26 mins ago PlutusDAO: plvGLP Farm PlutusDAO: PLS Token0 ETH
0xb32aeded370b01d61427e2cc3b9357158a06572ed6fd2734354d0e0d73c2e003438631902022-12-05 17:07:133 hrs 43 mins ago PlutusDAO: plvGLP Farm PlutusDAO: PLS Token0 ETH
0xb32aeded370b01d61427e2cc3b9357158a06572ed6fd2734354d0e0d73c2e003438631902022-12-05 17:07:133 hrs 43 mins ago PlutusDAO: plvGLP Farm PlutusDAO: PLS Token0 ETH
0x69c63abefe2fe8ff9e4ada32daaf435ba806a87c2b1cdc1b8689b7ac30564e24438604332022-12-05 16:54:043 hrs 56 mins ago PlutusDAO: plvGLP Farm PlutusDAO: PLS Token0 ETH
0x69c63abefe2fe8ff9e4ada32daaf435ba806a87c2b1cdc1b8689b7ac30564e24438604332022-12-05 16:54:043 hrs 56 mins ago PlutusDAO: plvGLP Farm PlutusDAO: PLS Token0 ETH
0x64ccc0716ff5076db70eeaa0da7b04831ddb5bbebb2ef0cadc2d2a338eb583bc438471652022-12-05 15:50:515 hrs ago PlutusDAO: plvGLP Farm 0x5326e71ff593ecc2cf7acae5fe57582d6e74cff10 ETH
0x64ccc0716ff5076db70eeaa0da7b04831ddb5bbebb2ef0cadc2d2a338eb583bc438471652022-12-05 15:50:515 hrs ago PlutusDAO: plvGLP Farm 0x5326e71ff593ecc2cf7acae5fe57582d6e74cff10 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

Contract Source Code (Solidity Standard Json-Input format)

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

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.