ETH Price: $3,121.16 (+0.05%)

Contract

0x6cB81093F91C9CdB08d2b190830484D8180d5544

Overview

ETH Balance

0 ETH

ETH Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Update Pls Emiss...350751532022-11-04 0:00:221137 days ago1667520022IN
Plutus DAO: Pls-Jones Rewards
0 ETH0.000020380.1
Update Pls Dpx E...343183682022-11-01 2:21:511140 days ago1667269311IN
Plutus DAO: Pls-Jones Rewards
0 ETH0.000016450.1
Update Pls Emiss...343181462022-11-01 2:20:271140 days ago1667269227IN
Plutus DAO: Pls-Jones Rewards
0 ETH0.000016260.1
Update Pls Jones...343179782022-11-01 2:19:271140 days ago1667269167IN
Plutus DAO: Pls-Jones Rewards
0 ETH0.000016450.1
Transfer Ownersh...320538712022-10-23 22:55:511148 days ago1666565751IN
Plutus DAO: Pls-Jones Rewards
0 ETH0.000017660.1
Update Pls Emiss...219807102022-08-30 12:27:211202 days ago1661862441IN
Plutus DAO: Pls-Jones Rewards
0 ETH0.000067466159 ETH0.15101107
Update Pls Emiss...208299002022-08-21 1:57:461212 days ago1661047066IN
Plutus DAO: Pls-Jones Rewards
0 ETH0.000050909998 ETH0.11395303
Update Pls Emiss...195091092022-08-06 4:27:231226 days ago1659760043IN
Plutus DAO: Pls-Jones Rewards
0 ETH0.000065177498 ETH0.14603867
Update Pls Emiss...183947822022-07-23 21:31:071240 days ago1658611867IN
Plutus DAO: Pls-Jones Rewards
0 ETH0.000067193371 ETH0.15102247
Update Pls Jones...174505442022-07-12 0:32:321252 days ago1657585952IN
Plutus DAO: Pls-Jones Rewards
0 ETH0.000120573196 ETH0.27186066
Update Pls Dpx E...174505242022-07-12 0:30:311252 days ago1657585831IN
Plutus DAO: Pls-Jones Rewards
0 ETH0.000120578362 ETH0.27186066
Update Pls Emiss...152570212022-06-21 13:23:471272 days ago1655817827IN
Plutus DAO: Pls-Jones Rewards
0 ETH0.000119394794 ETH0.26918426
Update Pls Jones...138936842022-06-06 16:56:111287 days ago1654534571IN
Plutus DAO: Pls-Jones Rewards
0 ETH0.000267741137 ETH0.6055697
Update Pls Dpx E...138936772022-06-06 16:56:111287 days ago1654534571IN
Plutus DAO: Pls-Jones Rewards
0 ETH0.000299725512 ETH0.6055697
Update Pls Emiss...126335482022-05-21 12:13:491303 days ago1653135229IN
Plutus DAO: Pls-Jones Rewards
0 ETH0.000103769217 ETH0.23347099
Set Plutus Chef126335442022-05-21 12:13:491303 days ago1653135229IN
Plutus DAO: Pls-Jones Rewards
0 ETH0.000119634038 ETH0.23347099

Latest 25 internal transactions (View All)

Parent Transaction Hash Block From To
720779062023-03-21 9:42:38999 days ago1679391758
Plutus DAO: Pls-Jones Rewards
0 ETH
720779062023-03-21 9:42:38999 days ago1679391758
Plutus DAO: Pls-Jones Rewards
0 ETH
720779062023-03-21 9:42:38999 days ago1679391758
Plutus DAO: Pls-Jones Rewards
0 ETH
720779062023-03-21 9:42:38999 days ago1679391758
Plutus DAO: Pls-Jones Rewards
0 ETH
720751892023-03-21 9:31:28999 days ago1679391088
Plutus DAO: Pls-Jones Rewards
0 ETH
720751892023-03-21 9:31:28999 days ago1679391088
Plutus DAO: Pls-Jones Rewards
0 ETH
720751892023-03-21 9:31:28999 days ago1679391088
Plutus DAO: Pls-Jones Rewards
0 ETH
720751892023-03-21 9:31:28999 days ago1679391088
Plutus DAO: Pls-Jones Rewards
0 ETH
720751892023-03-21 9:31:28999 days ago1679391088
Plutus DAO: Pls-Jones Rewards
0 ETH
720751892023-03-21 9:31:28999 days ago1679391088
Plutus DAO: Pls-Jones Rewards
0 ETH
720751892023-03-21 9:31:28999 days ago1679391088
Plutus DAO: Pls-Jones Rewards
0 ETH
720751892023-03-21 9:31:28999 days ago1679391088
Plutus DAO: Pls-Jones Rewards
0 ETH
720751892023-03-21 9:31:28999 days ago1679391088
Plutus DAO: Pls-Jones Rewards
0 ETH
720751892023-03-21 9:31:28999 days ago1679391088
Plutus DAO: Pls-Jones Rewards
0 ETH
720751892023-03-21 9:31:28999 days ago1679391088
Plutus DAO: Pls-Jones Rewards
0 ETH
720728222023-03-21 9:21:41999 days ago1679390501
Plutus DAO: Pls-Jones Rewards
0 ETH
720728222023-03-21 9:21:41999 days ago1679390501
Plutus DAO: Pls-Jones Rewards
0 ETH
720728222023-03-21 9:21:41999 days ago1679390501
Plutus DAO: Pls-Jones Rewards
0 ETH
720728222023-03-21 9:21:41999 days ago1679390501
Plutus DAO: Pls-Jones Rewards
0 ETH
720728222023-03-21 9:21:41999 days ago1679390501
Plutus DAO: Pls-Jones Rewards
0 ETH
720728222023-03-21 9:21:41999 days ago1679390501
Plutus DAO: Pls-Jones Rewards
0 ETH
720728222023-03-21 9:21:41999 days ago1679390501
Plutus DAO: Pls-Jones Rewards
0 ETH
720728222023-03-21 9:21:41999 days ago1679390501
Plutus DAO: Pls-Jones Rewards
0 ETH
720728222023-03-21 9:21:41999 days ago1679390501
Plutus DAO: Pls-Jones Rewards
0 ETH
720728222023-03-21 9:21:41999 days ago1679390501
Plutus DAO: Pls-Jones Rewards
0 ETH
View All Internal Transactions

Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PlsJonesRewardsDistro

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;

import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import { IJonesStaker } from './JonesStaker.sol';
import { IPendingRewards } from '../PendingRewards.sol';

interface IRewardsDistro {
  function updateInfo()
    external
    view
    returns (
      uint80 pls_,
      uint80 plsDpx_,
      uint80 plsJones_,
      uint80 pendingJonesLessFee_
    );

  function sendRewards(
    address _to,
    uint128 _plsAmt,
    uint128 _plsDpxAmt,
    uint128 _plsJonesAmt,
    uint128 _jonesAmt
  ) external;

  function harvestFromUnderlyingFarm() external;
}

contract PlsJonesRewardsDistro is IRewardsDistro, Ownable {
  IJonesStaker public immutable staker;
  IPendingRewards public immutable pendingRewards;

  IERC20 public immutable pls;
  IERC20 public immutable plsDpx;
  IERC20 public immutable plsJones;
  IERC20 public immutable jones;

  address public plutusChef;
  address public rewardsController;
  uint80 public plsPerSecond;
  uint80 public plsDpxPerSecond;
  uint80 public plsJonesPerSecond;

  constructor(
    address _pendingRewards,
    address _staker,
    address _pls,
    address _plsDpx,
    address _plsJones,
    address _jones
  ) {
    pendingRewards = IPendingRewards(_pendingRewards);
    staker = IJonesStaker(_staker);
    pls = IERC20(_pls);
    plsDpx = IERC20(_plsDpx);
    plsJones = IERC20(_plsJones);
    jones = IERC20(_jones);

    rewardsController = msg.sender;
  }

  function sendRewards(
    address _to,
    uint128 _plsAmt,
    uint128 _plsDpxAmt,
    uint128 _plsJonesAmt,
    uint128 _jonesAmt
  ) external {
    if (msg.sender != plutusChef) revert UNAUTHORIZED();

    if (isNotZero(_plsAmt)) {
      _safeTokenTransfer(pls, _to, _plsAmt);
    }

    // Treasury yields
    if (isNotZero(_plsDpxAmt) || isNotZero(_plsJonesAmt)) {
      _safeTokenTransfer(plsDpx, _to, _plsDpxAmt);
      _safeTokenTransfer(plsJones, _to, _plsJonesAmt);
    }

    // Underlying yields
    if (isNotZero(_jonesAmt)) {
      _safeTokenTransfer(jones, _to, _jonesAmt);
    }
  }

  function harvestFromUnderlyingFarm() external {
    if (msg.sender != plutusChef) revert UNAUTHORIZED();
    staker.harvest();
  }

  /** VIEWS */

  /**
  Returns emissions of all the yield sources for frontend
 */
  function getEmissions()
    external
    view
    returns (
      uint80 pls_,
      uint80 plsDpx_,
      uint80 plsJones_,
      uint80 jones_
    )
  {
    // PLS emissions
    pls_ = plsPerSecond;

    // Treasury yield
    plsDpx_ = plsDpxPerSecond;
    plsJones_ = plsJonesPerSecond;

    // Underlying farm yield less fee
    jones_ = uint80(staker.jonesPerSecondLessFee());
  }

  /**
    Info needed for PlutusChef updates.
   */
  function updateInfo()
    external
    view
    returns (
      uint80 pls_,
      uint80 plsDpx_,
      uint80 plsJones_,
      uint80 pendingJonesLessFee_
    )
  {
    // PLS emissions
    pls_ = plsPerSecond;

    // Treasury yield
    plsDpx_ = plsDpxPerSecond;
    plsJones_ = plsJonesPerSecond;

    // Pending Jones
    pendingJonesLessFee_ = uint80(pendingRewards.pendingJonesLessFee());
  }

  /** PRIVATE FUNCTIONS */
  function isNotZero(uint256 _num) private pure returns (bool result) {
    assembly {
      result := gt(_num, 0)
    }
  }

  function isZero(uint256 _num) private pure returns (bool result) {
    assembly {
      result := iszero(_num)
    }
  }

  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);
    }
  }

  /** CONTROLLER FUNCTIONS */

  function _isRewardsController() private view {
    if (msg.sender != rewardsController) revert UNAUTHORIZED();
  }

  function updatePlsEmission(uint80 _newPlsRate) external {
    _isRewardsController();
    plsPerSecond = _newPlsRate;
  }

  function updatePlsDpxEmissions(uint80 _newPlsDpxRate) external {
    _isRewardsController();
    plsDpxPerSecond = _newPlsDpxRate;
  }

  function updatePlsJonesEmissions(uint80 _newPlsJonesRate) external {
    _isRewardsController();
    plsJonesPerSecond = _newPlsJonesRate;
  }

  /** OWNER FUNCTIONS */

  /**
    Owner can retrieve stuck funds
   */
  function retrieve(IERC20 token) external onlyOwner {
    if (isNotZero(address(this).balance)) {
      payable(owner()).transfer(address(this).balance);
    }

    token.transfer(owner(), token.balanceOf(address(this)));
  }

  function setPlutusChef(address _newPlutusChef) external onlyOwner {
    plutusChef = _newPlutusChef;
  }

  function setRewardsController(address _newController) external onlyOwner {
    rewardsController = _newController;
  }

  error UNAUTHORIZED();
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Moves `amount` tokens from the caller's account to `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);

    /**
     * @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);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _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);
    }
}

// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;

import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import '../interfaces/IStaker.sol';
import './IMillinerV2.sol';

interface IJonesStaker {
  function harvest() external;

  function pendingRewardsLessFee() external view returns (uint256);

  function jonesPerSecondLessFee() external view returns (uint256);
}

contract JonesStaker is IStaker, IJonesStaker, Ownable {
  uint256 public constant POOL_ID = 1;
  uint256 private constant FEE_DIVISOR = 1e4;

  // WETH-JONES SLP: 0xe8EE01aE5959D3231506FcDeF2d5F3E85987a39c
  IERC20 public immutable stakingToken;

  // JONES: 0x10393c20975cF177a3513071bC110f7962CD67da
  IERC20 public immutable rewardToken;

  // MillinerV2: 0xb94d1959084081c5a11C460012Ab522F5a0FD756
  IMillinerV2 public immutable underlyingFarm;

  address public operator;
  address public feeCollector;
  address public rewardsDistro;

  uint128 public fee; // fee in bp
  uint128 public totalHarvested;

  constructor(
    address _feeCollector,
    address _stakingToken,
    address _rewardToken,
    address _underlyingFarm
  ) {
    feeCollector = _feeCollector;

    stakingToken = IERC20(_stakingToken);
    rewardToken = IERC20(_rewardToken);
    underlyingFarm = IMillinerV2(_underlyingFarm);
    fee = 1000; // 10%

    stakingToken.approve(address(underlyingFarm), type(uint256).max);
  }

  function stake(uint256 _amount) external {
    if (msg.sender != operator) {
      revert UNAUTHORIZED();
    }

    underlyingFarm.deposit(POOL_ID, _amount);
    emit Staked(_amount);
  }

  function withdraw(uint256 _amount, address _to) external {
    if (msg.sender != operator) {
      revert UNAUTHORIZED();
    }

    underlyingFarm.withdraw(POOL_ID, _amount);
    stakingToken.transfer(_to, _amount);
    emit Withdrew(_to, _amount);
  }

  function harvest() external {
    if (msg.sender != rewardsDistro) revert UNAUTHORIZED();
    _harvest();
  }

  /** VIEWS */
  function pendingRewardsLessFee() external view returns (uint256) {
    unchecked {
      return (underlyingFarm.pendingJones(POOL_ID, address(this)) * (FEE_DIVISOR - fee)) / FEE_DIVISOR;
    }
  }

  function jonesPerSecondLessFee() external view returns (uint256) {
    unchecked {
      return (underlyingFarm.jonesPerSecond() * (FEE_DIVISOR - fee)) / FEE_DIVISOR;
    }
  }

  /** PRIVATE FUNCTIONS */
  function _harvest() private {
    underlyingFarm.harvest(POOL_ID);

    uint256 rewardAmt = rewardToken.balanceOf(address(this));
    uint256 rewardAmtLessFee;

    if (isNotZero(rewardAmt)) {
      unchecked {
        uint256 feePayable = (rewardAmt * fee) / FEE_DIVISOR;

        rewardAmtLessFee = rewardAmt - feePayable;
        totalHarvested += uint128(rewardAmtLessFee);

        if (isNotZero(feePayable)) {
          rewardToken.transfer(feeCollector, feePayable);
        }

        rewardToken.transfer(address(rewardsDistro), rewardAmtLessFee);
        emit Harvested(address(rewardToken), rewardAmtLessFee);
      }
    }
  }

  /** CHECKS */
  function isNotZero(uint256 _num) private pure returns (bool result) {
    assembly {
      result := gt(_num, 0)
    }
  }

  function isZero(uint256 _num) private pure returns (bool result) {
    assembly {
      result := iszero(_num)
    }
  }

  /** OWNER FUNCTIONS */

  /**
    Retrieve stuck funds or new reward tokens
   */
  function retrieve(IERC20 token) external onlyOwner {
    if (isNotZero(address(this).balance)) {
      payable(owner()).transfer(address(this).balance);
    }

    token.transfer(owner(), token.balanceOf(address(this)));
  }

  /**
    Exit farm for veBoost migration
   */
  function exit() external onlyOwner {
    uint256 balance = underlyingFarm.deposited(POOL_ID, address(this));
    address owner = owner();

    underlyingFarm.withdraw(POOL_ID, balance);
    stakingToken.transfer(owner, balance);
    emit ExitedStaking(owner, balance);

    _harvest();
  }

  function setFee(uint128 _fee) external onlyOwner {
    if (_fee > FEE_DIVISOR) {
      revert INVALID_FEE();
    }

    emit FeeChanged(_fee, fee);
    fee = _fee;
  }

  function ownerHarvest() external onlyOwner {
    _harvest();
  }

  function setOperator(address _newOperator) external onlyOwner {
    emit OperatorChanged(_newOperator, operator);
    operator = _newOperator;
  }

  function setFeeCollector(address _newFeeCollector) external onlyOwner {
    emit FeeCollectorChanged(_newFeeCollector, feeCollector);
    feeCollector = _newFeeCollector;
  }

  function setRewardsDistro(address _newRewardsDistro) external onlyOwner {
    emit RewardsDistroChanged(_newRewardsDistro, rewardsDistro);
    rewardsDistro = _newRewardsDistro;
  }

  event Staked(uint256 _amt);
  event Withdrew(address indexed _to, uint256 _amt);
  event OperatorChanged(address indexed _new, address _old);
  event FeeCollectorChanged(address indexed _new, address _old);
  event RewardsDistroChanged(address indexed _new, address _old);
  event FeeChanged(uint256 indexed _new, uint256 _old);
  event ExitedStaking(address indexed _to, uint256 _amt);
  event Harvested(address indexed _token, uint256 _amt);

  error UNAUTHORIZED();
  error INVALID_FEE();
}

// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;

import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import './plsJONES/IMillinerV2.sol';
import './plsDPX/IDpxStakingRewards.sol';

interface IStaker {
  function fee() external view returns (uint256);
}

interface IPendingRewards {
  function pendingDpxRewardsLessFee() external view returns (uint256 _pendingDpx, uint256 _pendingRdpx);

  function pendingJonesLessFee() external view returns (uint256 _pendingJones);
}

contract PendingRewards is IPendingRewards {
  uint256 private constant FEE_DIVISOR = 1e4;

  address private constant JONES_STAKER = 0x668BB973c3e35759269DAc6D5BF118EA9729110E;
  IMillinerV2 private constant MILLINER_V2 = IMillinerV2(0xb94d1959084081c5a11C460012Ab522F5a0FD756);
  uint256 private constant POOL_ID = 1;

  address private constant DPX_STAKER = 0xC046F44ED68014f048ECa0010A642749Ebe34b03;
  IDpxStakingRewards private constant DPX_STAKING_REWARDS =
    IDpxStakingRewards(0xc6D714170fE766691670f12c2b45C1f34405AAb6);

  function pendingDpxRewardsLessFee() external view returns (uint256 _pendingDpx, uint256 _pendingRdpx) {
    uint256 fee = IStaker(DPX_STAKER).fee();
    (uint256 dpxEarned, uint256 rdpxEarned) = DPX_STAKING_REWARDS.earned(DPX_STAKER);

    unchecked {
      _pendingDpx = (dpxEarned * (FEE_DIVISOR - fee)) / FEE_DIVISOR;
      _pendingRdpx = (rdpxEarned * (FEE_DIVISOR - fee)) / FEE_DIVISOR;
    }
  }

  function pendingJonesLessFee() external view returns (uint256 _pendingJones) {
    unchecked {
      _pendingJones =
        (MILLINER_V2.pendingJones(POOL_ID, JONES_STAKER) * (FEE_DIVISOR - IStaker(JONES_STAKER).fee())) /
        FEE_DIVISOR;
    }
  }
}

// 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;
    }
}

// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;

interface IStaker {
  function stake(uint256) external;

  function withdraw(uint256, address) external;

  function exit() external;
}

// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;

interface IMillinerV2 {
  function deposit(uint256 _pid, uint256 _amount) external;

  function compound(uint256 _pid) external;

  function withdraw(uint256 _pid, uint256 _amount) external;

  function emergencyWithdraw(uint256 _pid) external;

  function harvest(uint256 _pid) external;

  /** VIEWS */

  function deposited(uint256 _pid, address _user) external view returns (uint256);

  function jonesPerSecond() external view returns (uint256);

  function pendingJones(uint256 _pid, address _user) external view returns (uint256);
}

// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;

interface IDpxStakingRewards {
  function stake(uint256) external;

  function exit() external;

  function compound() external;

  function withdraw(uint256) external;

  function getReward(uint256) external;

  /** VIEWS */

  function balanceOf(address account) external view returns (uint256);

  function rewardRateDPX() external view returns (uint256);

  function rewardRateRDPX() external view returns (uint256);

  function earned(address account) external view returns (uint256 DPXtokensEarned, uint256 RDPXtokensEarned);
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_pendingRewards","type":"address"},{"internalType":"address","name":"_staker","type":"address"},{"internalType":"address","name":"_pls","type":"address"},{"internalType":"address","name":"_plsDpx","type":"address"},{"internalType":"address","name":"_plsJones","type":"address"},{"internalType":"address","name":"_jones","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"UNAUTHORIZED","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"getEmissions","outputs":[{"internalType":"uint80","name":"pls_","type":"uint80"},{"internalType":"uint80","name":"plsDpx_","type":"uint80"},{"internalType":"uint80","name":"plsJones_","type":"uint80"},{"internalType":"uint80","name":"jones_","type":"uint80"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvestFromUnderlyingFarm","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"jones","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingRewards","outputs":[{"internalType":"contract IPendingRewards","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pls","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"plsDpx","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"plsDpxPerSecond","outputs":[{"internalType":"uint80","name":"","type":"uint80"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"plsJones","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"plsJonesPerSecond","outputs":[{"internalType":"uint80","name":"","type":"uint80"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"plsPerSecond","outputs":[{"internalType":"uint80","name":"","type":"uint80"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"plutusChef","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"retrieve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardsController","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint128","name":"_plsAmt","type":"uint128"},{"internalType":"uint128","name":"_plsDpxAmt","type":"uint128"},{"internalType":"uint128","name":"_plsJonesAmt","type":"uint128"},{"internalType":"uint128","name":"_jonesAmt","type":"uint128"}],"name":"sendRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newPlutusChef","type":"address"}],"name":"setPlutusChef","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newController","type":"address"}],"name":"setRewardsController","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"staker","outputs":[{"internalType":"contract IJonesStaker","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"updateInfo","outputs":[{"internalType":"uint80","name":"pls_","type":"uint80"},{"internalType":"uint80","name":"plsDpx_","type":"uint80"},{"internalType":"uint80","name":"plsJones_","type":"uint80"},{"internalType":"uint80","name":"pendingJonesLessFee_","type":"uint80"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint80","name":"_newPlsDpxRate","type":"uint80"}],"name":"updatePlsDpxEmissions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint80","name":"_newPlsRate","type":"uint80"}],"name":"updatePlsEmission","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint80","name":"_newPlsJonesRate","type":"uint80"}],"name":"updatePlsJonesEmissions","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6101406040523480156200001257600080fd5b5060405162001215380380620012158339810160408190526200003591620000ef565b620000403362000082565b6001600160a01b0395861660a05293851660805291841660c052831660e0528216610100521661012052600280546001600160a01b0319163317905562000170565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b0381168114620000ea57600080fd5b919050565b60008060008060008060c087890312156200010957600080fd5b6200011487620000d2565b95506200012460208801620000d2565b94506200013460408801620000d2565b93506200014460608801620000d2565b92506200015460808801620000d2565b91506200016460a08801620000d2565b90509295509295509295565b60805160a05160c05160e0516101005161012051611024620001f160003960008181610376015261076a0152600081816101fb01526107270152600081816103b801526106f301526000818161024d015261069b0152600081816103f50152610ab10152600081816102d80152818161080601526109d801526110246000f3fe608060405234801561001057600080fd5b50600436106101985760003560e01c8063715018a6116100e3578063bee36bb31161008c578063eded3fda11610066578063eded3fda146103f0578063f2fde38b14610417578063f3d4fcaf1461042a57600080fd5b8063bee36bb3146103a0578063c8abb5a4146103b3578063e69f7160146103da57600080fd5b80638da5cb5b116100bd5780638da5cb5b14610360578063b763b09c14610371578063b7c9252c1461039857600080fd5b8063715018a614610333578063756864591461033b5780637de350021461034357600080fd5b80633aa5e39511610145578063607bdf6e1161011f578063607bdf6e146102fa5780636bb65f531461030d5780636d1b38fe1461032057600080fd5b80633aa5e395146102825780634d4ab039146102c05780635ebaf1db146102d357600080fd5b80630a79309b116101765780630a79309b14610235578063223e5a9d14610248578063390a03521461026f57600080fd5b8063015828b51461019d5780630392823f146101e157806303e62707146101f6575b600080fd5b6003546101c1906a0100000000000000000000900469ffffffffffffffffffff1681565b60405169ffffffffffffffffffff90911681526020015b60405180910390f35b6101f46101ef366004610ecb565b61043d565b005b61021d7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101d8565b6101f4610243366004610f13565b610489565b61021d7f000000000000000000000000000000000000000000000000000000000000000081565b6101f461027d366004610f4c565b61065c565b61028a6107a0565b6040805169ffffffffffffffffffff958616815293851660208501529184169183019190915290911660608201526080016101d8565b6101f46102ce366004610ecb565b61088c565b61021d7f000000000000000000000000000000000000000000000000000000000000000081565b60015461021d906001600160a01b031681565b60025461021d906001600160a01b031681565b6101f461032e366004610f13565b6108bc565b6101f4610945565b6101f46109ab565b6002546101c190600160a01b900469ffffffffffffffffffff1681565b6000546001600160a01b031661021d565b61021d7f000000000000000000000000000000000000000000000000000000000000000081565b61028a610a4b565b6101f46103ae366004610f13565b610af7565b61021d7f000000000000000000000000000000000000000000000000000000000000000081565b6003546101c19069ffffffffffffffffffff1681565b61021d7f000000000000000000000000000000000000000000000000000000000000000081565b6101f4610425366004610f13565b610b80565b6101f4610438366004610ecb565b610c62565b610445610cb5565b6002805469ffffffffffffffffffff909216600160a01b027fffff00000000000000000000ffffffffffffffffffffffffffffffffffffffff909216919091179055565b6000546001600160a01b031633146104e85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b471561052a57600080546040516001600160a01b03909116914780156108fc02929091818181858888f19350505050158015610528573d6000803e3d6000fd5b505b806001600160a01b031663a9059cbb61054b6000546001600160a01b031690565b6040516370a0823160e01b81523060048201526001600160a01b038516906370a082319060240160206040518083038186803b15801561058a57600080fd5b505afa15801561059e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105c29190610fb3565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b15801561062057600080fd5b505af1158015610634573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106589190610fcc565b5050565b6001546001600160a01b031633146106875760405163075fd2b160e01b815260040160405180910390fd5b6001600160801b038416156106ca576106ca7f000000000000000000000000000000000000000000000000000000000000000086866001600160801b0316610ce0565b6001600160801b0383161515806106e957506001600160801b03821615155b15610756576107227f000000000000000000000000000000000000000000000000000000000000000086856001600160801b0316610ce0565b6107567f000000000000000000000000000000000000000000000000000000000000000086846001600160801b0316610ce0565b6001600160801b03811615610799576107997f000000000000000000000000000000000000000000000000000000000000000086836001600160801b0316610ce0565b5050505050565b600254600354604080517f29618a1f000000000000000000000000000000000000000000000000000000008152905169ffffffffffffffffffff600160a01b909404841693838116936a0100000000000000000000900416916000916001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916329618a1f916004808301926020929190829003018186803b15801561084c57600080fd5b505afa158015610860573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108849190610fb3565b905090919293565b610894610cb5565b6003805469ffffffffffffffffffff191669ffffffffffffffffffff92909216919091179055565b6000546001600160a01b031633146109165760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104df565b6001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000546001600160a01b0316331461099f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104df565b6109a96000610e6e565b565b6001546001600160a01b031633146109d65760405163075fd2b160e01b815260040160405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634641257d6040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610a3157600080fd5b505af1158015610a45573d6000803e3d6000fd5b50505050565b600254600354604080517f71813bbc000000000000000000000000000000000000000000000000000000008152905169ffffffffffffffffffff600160a01b909404841693838116936a0100000000000000000000900416916000916001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916371813bbc916004808301926020929190829003018186803b15801561084c57600080fd5b6000546001600160a01b03163314610b515760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104df565b6002805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000546001600160a01b03163314610bda5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104df565b6001600160a01b038116610c565760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016104df565b610c5f81610e6e565b50565b610c6a610cb5565b6003805469ffffffffffffffffffff9092166a0100000000000000000000027fffffffffffffffffffffffff00000000000000000000ffffffffffffffffffff909216919091179055565b6002546001600160a01b031633146109a95760405163075fd2b160e01b815260040160405180910390fd5b6040516370a0823160e01b81523060048201526000906001600160a01b038516906370a082319060240160206040518083038186803b158015610d2257600080fd5b505afa158015610d36573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d5a9190610fb3565b905080821115610dec5760405163a9059cbb60e01b81526001600160a01b0384811660048301526024820183905285169063a9059cbb90604401602060405180830381600087803b158015610dae57600080fd5b505af1158015610dc2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610de69190610fcc565b50610a45565b60405163a9059cbb60e01b81526001600160a01b0384811660048301526024820184905285169063a9059cbb90604401602060405180830381600087803b158015610e3657600080fd5b505af1158015610e4a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107999190610fcc565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600060208284031215610edd57600080fd5b813569ffffffffffffffffffff81168114610ef757600080fd5b9392505050565b6001600160a01b0381168114610c5f57600080fd5b600060208284031215610f2557600080fd5b8135610ef781610efe565b80356001600160801b0381168114610f4757600080fd5b919050565b600080600080600060a08688031215610f6457600080fd5b8535610f6f81610efe565b9450610f7d60208701610f30565b9350610f8b60408701610f30565b9250610f9960608701610f30565b9150610fa760808701610f30565b90509295509295909350565b600060208284031215610fc557600080fd5b5051919050565b600060208284031215610fde57600080fd5b81518015158114610ef757600080fdfea264697066735822122057a40664c41f56ab745e98d31095c40c4863ac8cf10d9e357b948756498216b864736f6c634300080900330000000000000000000000006052213c67a539a91a1a88842dd81785601ddd13000000000000000000000000668bb973c3e35759269dac6d5bf118ea9729110e00000000000000000000000051318b7d00db7acc4026c88c3952b66278b6a67f000000000000000000000000f236ea74b515ef96a9898f5a4ed4aa591f253ce1000000000000000000000000e7f6c3c1f0018e4c08acc52965e5cbff99e34a4400000000000000000000000010393c20975cf177a3513071bc110f7962cd67da

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101985760003560e01c8063715018a6116100e3578063bee36bb31161008c578063eded3fda11610066578063eded3fda146103f0578063f2fde38b14610417578063f3d4fcaf1461042a57600080fd5b8063bee36bb3146103a0578063c8abb5a4146103b3578063e69f7160146103da57600080fd5b80638da5cb5b116100bd5780638da5cb5b14610360578063b763b09c14610371578063b7c9252c1461039857600080fd5b8063715018a614610333578063756864591461033b5780637de350021461034357600080fd5b80633aa5e39511610145578063607bdf6e1161011f578063607bdf6e146102fa5780636bb65f531461030d5780636d1b38fe1461032057600080fd5b80633aa5e395146102825780634d4ab039146102c05780635ebaf1db146102d357600080fd5b80630a79309b116101765780630a79309b14610235578063223e5a9d14610248578063390a03521461026f57600080fd5b8063015828b51461019d5780630392823f146101e157806303e62707146101f6575b600080fd5b6003546101c1906a0100000000000000000000900469ffffffffffffffffffff1681565b60405169ffffffffffffffffffff90911681526020015b60405180910390f35b6101f46101ef366004610ecb565b61043d565b005b61021d7f000000000000000000000000e7f6c3c1f0018e4c08acc52965e5cbff99e34a4481565b6040516001600160a01b0390911681526020016101d8565b6101f4610243366004610f13565b610489565b61021d7f00000000000000000000000051318b7d00db7acc4026c88c3952b66278b6a67f81565b6101f461027d366004610f4c565b61065c565b61028a6107a0565b6040805169ffffffffffffffffffff958616815293851660208501529184169183019190915290911660608201526080016101d8565b6101f46102ce366004610ecb565b61088c565b61021d7f000000000000000000000000668bb973c3e35759269dac6d5bf118ea9729110e81565b60015461021d906001600160a01b031681565b60025461021d906001600160a01b031681565b6101f461032e366004610f13565b6108bc565b6101f4610945565b6101f46109ab565b6002546101c190600160a01b900469ffffffffffffffffffff1681565b6000546001600160a01b031661021d565b61021d7f00000000000000000000000010393c20975cf177a3513071bc110f7962cd67da81565b61028a610a4b565b6101f46103ae366004610f13565b610af7565b61021d7f000000000000000000000000f236ea74b515ef96a9898f5a4ed4aa591f253ce181565b6003546101c19069ffffffffffffffffffff1681565b61021d7f0000000000000000000000006052213c67a539a91a1a88842dd81785601ddd1381565b6101f4610425366004610f13565b610b80565b6101f4610438366004610ecb565b610c62565b610445610cb5565b6002805469ffffffffffffffffffff909216600160a01b027fffff00000000000000000000ffffffffffffffffffffffffffffffffffffffff909216919091179055565b6000546001600160a01b031633146104e85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b471561052a57600080546040516001600160a01b03909116914780156108fc02929091818181858888f19350505050158015610528573d6000803e3d6000fd5b505b806001600160a01b031663a9059cbb61054b6000546001600160a01b031690565b6040516370a0823160e01b81523060048201526001600160a01b038516906370a082319060240160206040518083038186803b15801561058a57600080fd5b505afa15801561059e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105c29190610fb3565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b15801561062057600080fd5b505af1158015610634573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106589190610fcc565b5050565b6001546001600160a01b031633146106875760405163075fd2b160e01b815260040160405180910390fd5b6001600160801b038416156106ca576106ca7f00000000000000000000000051318b7d00db7acc4026c88c3952b66278b6a67f86866001600160801b0316610ce0565b6001600160801b0383161515806106e957506001600160801b03821615155b15610756576107227f000000000000000000000000f236ea74b515ef96a9898f5a4ed4aa591f253ce186856001600160801b0316610ce0565b6107567f000000000000000000000000e7f6c3c1f0018e4c08acc52965e5cbff99e34a4486846001600160801b0316610ce0565b6001600160801b03811615610799576107997f00000000000000000000000010393c20975cf177a3513071bc110f7962cd67da86836001600160801b0316610ce0565b5050505050565b600254600354604080517f29618a1f000000000000000000000000000000000000000000000000000000008152905169ffffffffffffffffffff600160a01b909404841693838116936a0100000000000000000000900416916000916001600160a01b037f000000000000000000000000668bb973c3e35759269dac6d5bf118ea9729110e16916329618a1f916004808301926020929190829003018186803b15801561084c57600080fd5b505afa158015610860573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108849190610fb3565b905090919293565b610894610cb5565b6003805469ffffffffffffffffffff191669ffffffffffffffffffff92909216919091179055565b6000546001600160a01b031633146109165760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104df565b6001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000546001600160a01b0316331461099f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104df565b6109a96000610e6e565b565b6001546001600160a01b031633146109d65760405163075fd2b160e01b815260040160405180910390fd5b7f000000000000000000000000668bb973c3e35759269dac6d5bf118ea9729110e6001600160a01b0316634641257d6040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610a3157600080fd5b505af1158015610a45573d6000803e3d6000fd5b50505050565b600254600354604080517f71813bbc000000000000000000000000000000000000000000000000000000008152905169ffffffffffffffffffff600160a01b909404841693838116936a0100000000000000000000900416916000916001600160a01b037f0000000000000000000000006052213c67a539a91a1a88842dd81785601ddd1316916371813bbc916004808301926020929190829003018186803b15801561084c57600080fd5b6000546001600160a01b03163314610b515760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104df565b6002805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000546001600160a01b03163314610bda5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104df565b6001600160a01b038116610c565760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016104df565b610c5f81610e6e565b50565b610c6a610cb5565b6003805469ffffffffffffffffffff9092166a0100000000000000000000027fffffffffffffffffffffffff00000000000000000000ffffffffffffffffffff909216919091179055565b6002546001600160a01b031633146109a95760405163075fd2b160e01b815260040160405180910390fd5b6040516370a0823160e01b81523060048201526000906001600160a01b038516906370a082319060240160206040518083038186803b158015610d2257600080fd5b505afa158015610d36573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d5a9190610fb3565b905080821115610dec5760405163a9059cbb60e01b81526001600160a01b0384811660048301526024820183905285169063a9059cbb90604401602060405180830381600087803b158015610dae57600080fd5b505af1158015610dc2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610de69190610fcc565b50610a45565b60405163a9059cbb60e01b81526001600160a01b0384811660048301526024820184905285169063a9059cbb90604401602060405180830381600087803b158015610e3657600080fd5b505af1158015610e4a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107999190610fcc565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600060208284031215610edd57600080fd5b813569ffffffffffffffffffff81168114610ef757600080fd5b9392505050565b6001600160a01b0381168114610c5f57600080fd5b600060208284031215610f2557600080fd5b8135610ef781610efe565b80356001600160801b0381168114610f4757600080fd5b919050565b600080600080600060a08688031215610f6457600080fd5b8535610f6f81610efe565b9450610f7d60208701610f30565b9350610f8b60408701610f30565b9250610f9960608701610f30565b9150610fa760808701610f30565b90509295509295909350565b600060208284031215610fc557600080fd5b5051919050565b600060208284031215610fde57600080fd5b81518015158114610ef757600080fdfea264697066735822122057a40664c41f56ab745e98d31095c40c4863ac8cf10d9e357b948756498216b864736f6c63430008090033

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

0000000000000000000000006052213c67a539a91a1a88842dd81785601ddd13000000000000000000000000668bb973c3e35759269dac6d5bf118ea9729110e00000000000000000000000051318b7d00db7acc4026c88c3952b66278b6a67f000000000000000000000000f236ea74b515ef96a9898f5a4ed4aa591f253ce1000000000000000000000000e7f6c3c1f0018e4c08acc52965e5cbff99e34a4400000000000000000000000010393c20975cf177a3513071bc110f7962cd67da

-----Decoded View---------------
Arg [0] : _pendingRewards (address): 0x6052213c67A539A91A1A88842dD81785601ddD13
Arg [1] : _staker (address): 0x668BB973c3e35759269DAc6D5BF118EA9729110E
Arg [2] : _pls (address): 0x51318B7D00db7ACc4026C88c3952B66278B6A67F
Arg [3] : _plsDpx (address): 0xF236ea74B515eF96a9898F5a4ed4Aa591f253Ce1
Arg [4] : _plsJones (address): 0xe7f6C3c1F0018E4C08aCC52965e5cbfF99e34A44
Arg [5] : _jones (address): 0x10393c20975cF177a3513071bC110f7962CD67da

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000006052213c67a539a91a1a88842dd81785601ddd13
Arg [1] : 000000000000000000000000668bb973c3e35759269dac6d5bf118ea9729110e
Arg [2] : 00000000000000000000000051318b7d00db7acc4026c88c3952b66278b6a67f
Arg [3] : 000000000000000000000000f236ea74b515ef96a9898f5a4ed4aa591f253ce1
Arg [4] : 000000000000000000000000e7f6c3c1f0018e4c08acc52965e5cbff99e34a44
Arg [5] : 00000000000000000000000010393c20975cf177a3513071bc110f7962cd67da


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.