ETH Price: $3,112.74 (-0.35%)

Contract

0x38e517AB9edF86e8089633041ECb2E5Db00715aD

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...174530932022-07-12 1:46:501252 days ago1657590410IN
Plutus DAO: Pls-Dpx Rewards Distro
0 ETH0.000118711766 ETH0.27186066
Update Pls Dpx E...174530872022-07-12 1:46:501252 days ago1657590410IN
Plutus DAO: Pls-Dpx Rewards Distro
0 ETH0.000118709863 ETH0.27186066
Update Pls Jones...174530292022-07-12 1:45:491252 days ago1657590349IN
Plutus DAO: Pls-Dpx Rewards Distro
0 ETH0.000118703339 ETH0.27186066
Transfer Ownersh...161582922022-06-28 3:41:081265 days ago1656387668IN
Plutus DAO: Pls-Dpx Rewards Distro
0 ETH0.00045098523 ETH0.9742627
Update Pls Emiss...152572892022-06-21 13:27:491272 days ago1655818069IN
Plutus DAO: Pls-Dpx Rewards Distro
0 ETH0.000119028973 ETH0.26918426
Update Pls Dpx E...152571792022-06-21 13:27:041272 days ago1655818024IN
Plutus DAO: Pls-Dpx Rewards Distro
0 ETH0.000119770037 ETH0.26918426
Update Pls Dpx E...152569622022-06-21 13:23:471272 days ago1655817827IN
Plutus DAO: Pls-Dpx Rewards Distro
0 ETH0.000119770037 ETH0.26918426
Update Pls Jones...138936642022-06-06 16:56:111287 days ago1654534571IN
Plutus DAO: Pls-Dpx Rewards Distro
0 ETH0.000269425832 ETH0.6055697
Update Pls Dpx E...138936562022-06-06 16:56:111287 days ago1654534571IN
Plutus DAO: Pls-Dpx Rewards Distro
0 ETH0.000299742468 ETH0.6055697
Update Pls Emiss...126335462022-05-21 12:13:491303 days ago1653135229IN
Plutus DAO: Pls-Dpx Rewards Distro
0 ETH0.00010377412 ETH0.23347099
Set Plutus Chef126335352022-05-21 12:13:491303 days ago1653135229IN
Plutus DAO: Pls-Dpx Rewards Distro
0 ETH0.000118997129 ETH0.23347099

Latest 25 internal transactions (View All)

Parent Transaction Hash Block From To
718277502023-03-20 16:17:031000 days ago1679329023
Plutus DAO: Pls-Dpx Rewards Distro
0 ETH
718277502023-03-20 16:17:031000 days ago1679329023
Plutus DAO: Pls-Dpx Rewards Distro
0 ETH
718277502023-03-20 16:17:031000 days ago1679329023
Plutus DAO: Pls-Dpx Rewards Distro
0 ETH
718277502023-03-20 16:17:031000 days ago1679329023
Plutus DAO: Pls-Dpx Rewards Distro
0 ETH
716400592023-03-20 3:19:011000 days ago1679282341
Plutus DAO: Pls-Dpx Rewards Distro
0 ETH
716400592023-03-20 3:19:011000 days ago1679282341
Plutus DAO: Pls-Dpx Rewards Distro
0 ETH
716400592023-03-20 3:19:011000 days ago1679282341
Plutus DAO: Pls-Dpx Rewards Distro
0 ETH
716400592023-03-20 3:19:011000 days ago1679282341
Plutus DAO: Pls-Dpx Rewards Distro
0 ETH
716400592023-03-20 3:19:011000 days ago1679282341
Plutus DAO: Pls-Dpx Rewards Distro
0 ETH
716400592023-03-20 3:19:011000 days ago1679282341
Plutus DAO: Pls-Dpx Rewards Distro
0 ETH
716400592023-03-20 3:19:011000 days ago1679282341
Plutus DAO: Pls-Dpx Rewards Distro
0 ETH
716400592023-03-20 3:19:011000 days ago1679282341
Plutus DAO: Pls-Dpx Rewards Distro
0 ETH
716400592023-03-20 3:19:011000 days ago1679282341
Plutus DAO: Pls-Dpx Rewards Distro
0 ETH
716400592023-03-20 3:19:011000 days ago1679282341
Plutus DAO: Pls-Dpx Rewards Distro
0 ETH
716400592023-03-20 3:19:011000 days ago1679282341
Plutus DAO: Pls-Dpx Rewards Distro
0 ETH
716400592023-03-20 3:19:011000 days ago1679282341
Plutus DAO: Pls-Dpx Rewards Distro
0 ETH
716400592023-03-20 3:19:011000 days ago1679282341
Plutus DAO: Pls-Dpx Rewards Distro
0 ETH
716400592023-03-20 3:19:011000 days ago1679282341
Plutus DAO: Pls-Dpx Rewards Distro
0 ETH
716400592023-03-20 3:19:011000 days ago1679282341
Plutus DAO: Pls-Dpx Rewards Distro
0 ETH
705589352023-03-16 23:26:501004 days ago1679009210
Plutus DAO: Pls-Dpx Rewards Distro
0 ETH
705589352023-03-16 23:26:501004 days ago1679009210
Plutus DAO: Pls-Dpx Rewards Distro
0 ETH
705589352023-03-16 23:26:501004 days ago1679009210
Plutus DAO: Pls-Dpx Rewards Distro
0 ETH
705589352023-03-16 23:26:501004 days ago1679009210
Plutus DAO: Pls-Dpx Rewards Distro
0 ETH
699683862023-03-15 5:07:111005 days ago1678856831
Plutus DAO: Pls-Dpx Rewards Distro
0 ETH
699683862023-03-15 5:07:111005 days ago1678856831
Plutus DAO: Pls-Dpx Rewards Distro
0 ETH
View All Internal Transactions

Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PlsDpxRewardsDistro

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 { IDpxStaker } from './DpxStaker.sol';
import { IPendingRewards } from '../PendingRewards.sol';

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

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

  function harvestFromUnderlyingFarm() external;
}

contract PlsDpxRewardsDistro is IRewardsDistro, Ownable {
  IDpxStaker public immutable staker;
  IPendingRewards public immutable pendingRewards;

  IERC20 public immutable pls;
  IERC20 public immutable plsDpx;
  IERC20 public immutable plsJones;
  IERC20 public immutable dpx;
  IERC20 public immutable rdpx;

  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 _dpx,
    address _rdpx
  ) {
    pendingRewards = IPendingRewards(_pendingRewards);
    staker = IDpxStaker(_staker);
    pls = IERC20(_pls);
    plsDpx = IERC20(_plsDpx);
    plsJones = IERC20(_plsJones);
    dpx = IERC20(_dpx);
    rdpx = IERC20(_rdpx);

    rewardsController = msg.sender;
  }

  function sendRewards(
    address _to,
    uint128 _plsAmt,
    uint128 _plsDpxAmt,
    uint128 _plsJonesAmt,
    uint128 _dpxAmt,
    uint128 _rdpxAmt
  ) 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(_dpxAmt) || isNotZero(_rdpxAmt)) {
      _safeTokenTransfer(dpx, _to, _dpxAmt);
      _safeTokenTransfer(rdpx, _to, _rdpxAmt);
    }
  }

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

  /** VIEWS */

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

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

    // Underlying farm yield less fee
    dpx_ = uint80(staker.dpxPerSecondLessFee());
    rdpx_ = uint80(staker.rdpxPerSecondLessFee());
  }

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

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

    // Pending Jones
    (uint256 _pendingDpxLessFee, uint256 _pendingRdpxLessFee) = pendingRewards.pendingDpxRewardsLessFee();

    pendingDpxLessFee_ = uint80(_pendingDpxLessFee);
    pendingRdpxLessFee_ = uint80(_pendingRdpxLessFee);
  }

  /** 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 './IDpxStakingRewards.sol';

interface IDpxStaker {
  function harvest() external;

  function pendingRewardsLessFee() external view returns (uint256 pendingDpxLessFee, uint256 pendingRdpxLessFee);

  function dpxPerSecondLessFee() external view returns (uint256);

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

contract DpxStaker is IStaker, IDpxStaker, Ownable {
  uint256 private constant FEE_DIVISOR = 1e4;

  // DPX: 0x6C2C06790b3E3E3c38e12Ee22F8183b37a13EE55
  IERC20 public immutable stakingToken;

  // DPX: 0x6C2C06790b3E3E3c38e12Ee22F8183b37a13EE55
  IERC20 public immutable rewardToken;

  // rDPX: 0x32Eb7902D4134bf98A28b963D26de779AF92A212
  IERC20 public immutable rewardToken2;

  // StakingRewards: 0xc6D714170fE766691670f12c2b45C1f34405AAb6
  IDpxStakingRewards public immutable underlyingFarm;

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

  uint112 public totalDpxHarvested;
  uint112 public totalRdpxHarvested;
  uint32 public fee; // fee in bp

  constructor(
    address _feeCollector,
    address _dpx,
    address _rdpx,
    address _underlyingFarm
  ) {
    feeCollector = _feeCollector;

    stakingToken = IERC20(_dpx);
    rewardToken = IERC20(_dpx);
    rewardToken2 = IERC20(_rdpx);
    underlyingFarm = IDpxStakingRewards(_underlyingFarm);
    fee = 1000; // 10%

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

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

    underlyingFarm.stake(_amount);
    emit Staked(_amount);
  }

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

    underlyingFarm.withdraw(_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 pendingDpxLessFee, uint256 pendingRdpxLessFee) {
    (uint256 dpxEarned, uint256 rdpxEarned) = underlyingFarm.earned(address(this));

    unchecked {
      pendingDpxLessFee = (dpxEarned * (FEE_DIVISOR - fee)) / FEE_DIVISOR;
      pendingRdpxLessFee = (rdpxEarned * (FEE_DIVISOR - fee)) / FEE_DIVISOR;
    }
  }

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

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

  /** PRIVATE FUNCTIONS */
  function _harvest() private {
    underlyingFarm.getReward(2);

    address _rewardsDistro = rewardsDistro;
    uint256 _fee = fee;

    uint256 r1Amt = rewardToken.balanceOf(address(this));
    uint256 r1AmtLessFee;

    if (isNotZero(r1Amt)) {
      unchecked {
        uint256 r1Fee = (r1Amt * _fee) / FEE_DIVISOR;

        r1AmtLessFee = r1Amt - r1Fee;
        totalDpxHarvested += uint112(r1AmtLessFee);

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

        rewardToken.transfer(_rewardsDistro, r1AmtLessFee);
        emit Harvested(address(rewardToken), r1AmtLessFee);
      }
    }

    uint256 r2Amt = rewardToken2.balanceOf(address(this));
    uint256 r2AmtLessFee;

    if (isNotZero(r2Amt)) {
      unchecked {
        uint256 r2Fee = (r2Amt * _fee) / FEE_DIVISOR;

        r2AmtLessFee = r2Amt - r2Fee;
        totalRdpxHarvested += uint112(r2AmtLessFee);

        if (isNotZero(r2Fee)) {
          rewardToken2.transfer(feeCollector, r2Fee);
        }

        rewardToken2.transfer(_rewardsDistro, r2AmtLessFee);
        emit Harvested(address(rewardToken), r2AmtLessFee);
      }
    }
  }

  /** 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 */

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

  /**
    Exit farm for veBoost migration
   */
  function exit() external onlyOwner {
    uint256 vaultBalance = underlyingFarm.balanceOf(address(this));
    address owner = owner();

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

    _harvest();
  }

  function setFee(uint32 _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 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);
}

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

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":"_dpx","type":"address"},{"internalType":"address","name":"_rdpx","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":"dpx","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"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":"dpx_","type":"uint80"},{"internalType":"uint80","name":"rdpx_","type":"uint80"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvestFromUnderlyingFarm","outputs":[],"stateMutability":"nonpayable","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":"rdpx","outputs":[{"internalType":"contract IERC20","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":"_dpxAmt","type":"uint128"},{"internalType":"uint128","name":"_rdpxAmt","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 IDpxStaker","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":"pendingDpxLessFee_","type":"uint80"},{"internalType":"uint80","name":"pendingRdpxLessFee_","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"}]

6101606040523480156200001257600080fd5b50604051620013e9380380620013e98339810160408190526200003591620000f6565b620000403362000089565b6001600160a01b0396871660a05294861660805292851660c05290841660e0528316610100528216610120521661014052600280546001600160a01b031916331790556200018b565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b0381168114620000f157600080fd5b919050565b600080600080600080600060e0888a0312156200011257600080fd5b6200011d88620000d9565b96506200012d60208901620000d9565b95506200013d60408901620000d9565b94506200014d60608901620000d9565b93506200015d60808901620000d9565b92506200016d60a08901620000d9565b91506200017d60c08901620000d9565b905092959891949750929550565b60805160a05160c05160e0516101005161012051610140516111c462000225600039600081816102580152610b2e0152600081816102eb0152610afa0152600081816102060152610aa20152600081816103f10152610a6e01526000818161027f0152610a1601526000818161042e0152610bd1015260008181610325015281816106fd01528181610780015261096401526111c46000f3fe608060405234801561001057600080fd5b50600436106101a35760003560e01c80636d1b38fe116100ee578063b7c9252c11610097578063e69f716011610071578063e69f716014610413578063eded3fda14610429578063f2fde38b14610450578063f3d4fcaf1461046357600080fd5b8063b7c9252c146103d1578063bee36bb3146103d9578063c8abb5a4146103ec57600080fd5b80637de35002116100c85780637de35002146103905780638da5cb5b146103ad578063b77503ae146103be57600080fd5b80636d1b38fe1461036d578063715018a614610380578063756864591461038857600080fd5b80633aa5e395116101505780635ebaf1db1161012a5780635ebaf1db14610320578063607bdf6e146103475780636bb65f531461035a57600080fd5b80633aa5e395146102a157806343365f8c146102e65780634d4ab0391461030d57600080fd5b80630a79309b116101815780630a79309b146102405780631f9902f514610253578063223e5a9d1461027a57600080fd5b8063015828b5146101a85780630392823f146101ec57806303e6270714610201575b600080fd5b6003546101cc906a0100000000000000000000900469ffffffffffffffffffff1681565b60405169ffffffffffffffffffff90911681526020015b60405180910390f35b6101ff6101fa366004611038565b610476565b005b6102287f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101e3565b6101ff61024e366004611080565b6104c2565b6102287f000000000000000000000000000000000000000000000000000000000000000081565b6102287f000000000000000000000000000000000000000000000000000000000000000081565b6102a9610695565b6040805169ffffffffffffffffffff968716815294861660208601529285169284019290925283166060830152909116608082015260a0016101e3565b6102287f000000000000000000000000000000000000000000000000000000000000000081565b6101ff61031b366004611038565b610818565b6102287f000000000000000000000000000000000000000000000000000000000000000081565b600154610228906001600160a01b031681565b600254610228906001600160a01b031681565b6101ff61037b366004611080565b610848565b6101ff6108d1565b6101ff610937565b6002546101cc90600160a01b900469ffffffffffffffffffff1681565b6000546001600160a01b0316610228565b6101ff6103cc3660046110b9565b6109d7565b6102a9610b65565b6101ff6103e7366004611080565b610c5d565b6102287f000000000000000000000000000000000000000000000000000000000000000081565b6003546101cc9069ffffffffffffffffffff1681565b6102287f000000000000000000000000000000000000000000000000000000000000000081565b6101ff61045e366004611080565b610ce6565b6101ff610471366004611038565b610dc8565b61047e610e1b565b6002805469ffffffffffffffffffff909216600160a01b027fffff00000000000000000000ffffffffffffffffffffffffffffffffffffffff909216919091179055565b6000546001600160a01b031633146105215760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b471561056357600080546040516001600160a01b03909116914780156108fc02929091818181858888f19350505050158015610561573d6000803e3d6000fd5b505b806001600160a01b031663a9059cbb6105846000546001600160a01b031690565b6040516370a0823160e01b81523060048201526001600160a01b038516906370a082319060240160206040518083038186803b1580156105c357600080fd5b505afa1580156105d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105fb919061112f565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b15801561065957600080fd5b505af115801561066d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106919190611148565b5050565b600254600354604080517f50c7b01b000000000000000000000000000000000000000000000000000000008152905169ffffffffffffffffffff600160a01b909404841693838116936a01000000000000000000009004169160009182916001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916350c7b01b91600480820192602092909190829003018186803b15801561074457600080fd5b505afa158015610758573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061077c919061112f565b91507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663def055a96040518163ffffffff1660e01b815260040160206040518083038186803b1580156107d757600080fd5b505afa1580156107eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061080f919061112f565b90509091929394565b610820610e1b565b6003805469ffffffffffffffffffff191669ffffffffffffffffffff92909216919091179055565b6000546001600160a01b031633146108a25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610518565b6001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000546001600160a01b0316331461092b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610518565b6109356000610e46565b565b6001546001600160a01b031633146109625760405163075fd2b160e01b815260040160405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634641257d6040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156109bd57600080fd5b505af11580156109d1573d6000803e3d6000fd5b50505050565b6001546001600160a01b03163314610a025760405163075fd2b160e01b815260040160405180910390fd5b6001600160801b03851615610a4557610a457f000000000000000000000000000000000000000000000000000000000000000087876001600160801b0316610ea3565b6001600160801b038416151580610a6457506001600160801b03831615155b15610ad157610a9d7f000000000000000000000000000000000000000000000000000000000000000087866001600160801b0316610ea3565b610ad17f000000000000000000000000000000000000000000000000000000000000000087856001600160801b0316610ea3565b6001600160801b038216151580610af057506001600160801b03811615155b15610b5d57610b297f000000000000000000000000000000000000000000000000000000000000000087846001600160801b0316610ea3565b610b5d7f000000000000000000000000000000000000000000000000000000000000000087836001600160801b0316610ea3565b505050505050565b600254600354604080517fa7b0e58c000000000000000000000000000000000000000000000000000000008152815169ffffffffffffffffffff600160a01b909504851694848116946a0100000000000000000000900416926000928392839283926001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169263a7b0e58c92600480840193919291829003018186803b158015610c1557600080fd5b505afa158015610c29573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c4d919061116a565b9798969795969095945092505050565b6000546001600160a01b03163314610cb75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610518565b6002805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000546001600160a01b03163314610d405760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610518565b6001600160a01b038116610dbc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610518565b610dc581610e46565b50565b610dd0610e1b565b6003805469ffffffffffffffffffff9092166a0100000000000000000000027fffffffffffffffffffffffff00000000000000000000ffffffffffffffffffff909216919091179055565b6002546001600160a01b031633146109355760405163075fd2b160e01b815260040160405180910390fd5b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516370a0823160e01b81523060048201526000906001600160a01b038516906370a082319060240160206040518083038186803b158015610ee557600080fd5b505afa158015610ef9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f1d919061112f565b905080821115610faf5760405163a9059cbb60e01b81526001600160a01b0384811660048301526024820183905285169063a9059cbb90604401602060405180830381600087803b158015610f7157600080fd5b505af1158015610f85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fa99190611148565b506109d1565b60405163a9059cbb60e01b81526001600160a01b0384811660048301526024820184905285169063a9059cbb90604401602060405180830381600087803b158015610ff957600080fd5b505af115801561100d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110319190611148565b5050505050565b60006020828403121561104a57600080fd5b813569ffffffffffffffffffff8116811461106457600080fd5b9392505050565b6001600160a01b0381168114610dc557600080fd5b60006020828403121561109257600080fd5b81356110648161106b565b80356001600160801b03811681146110b457600080fd5b919050565b60008060008060008060c087890312156110d257600080fd5b86356110dd8161106b565b95506110eb6020880161109d565b94506110f96040880161109d565b93506111076060880161109d565b92506111156080880161109d565b915061112360a0880161109d565b90509295509295509295565b60006020828403121561114157600080fd5b5051919050565b60006020828403121561115a57600080fd5b8151801515811461106457600080fd5b6000806040838503121561117d57600080fd5b50508051602090910151909290915056fea2646970667358221220b07749cb403a3da358bc9fdee79a0c90b89314e27417a1569d64b857377e3f3f64736f6c634300080900330000000000000000000000006052213c67a539a91a1a88842dd81785601ddd13000000000000000000000000c046f44ed68014f048eca0010a642749ebe34b0300000000000000000000000051318b7d00db7acc4026c88c3952b66278b6a67f000000000000000000000000f236ea74b515ef96a9898f5a4ed4aa591f253ce1000000000000000000000000e7f6c3c1f0018e4c08acc52965e5cbff99e34a440000000000000000000000006c2c06790b3e3e3c38e12ee22f8183b37a13ee5500000000000000000000000032eb7902d4134bf98a28b963d26de779af92a212

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101a35760003560e01c80636d1b38fe116100ee578063b7c9252c11610097578063e69f716011610071578063e69f716014610413578063eded3fda14610429578063f2fde38b14610450578063f3d4fcaf1461046357600080fd5b8063b7c9252c146103d1578063bee36bb3146103d9578063c8abb5a4146103ec57600080fd5b80637de35002116100c85780637de35002146103905780638da5cb5b146103ad578063b77503ae146103be57600080fd5b80636d1b38fe1461036d578063715018a614610380578063756864591461038857600080fd5b80633aa5e395116101505780635ebaf1db1161012a5780635ebaf1db14610320578063607bdf6e146103475780636bb65f531461035a57600080fd5b80633aa5e395146102a157806343365f8c146102e65780634d4ab0391461030d57600080fd5b80630a79309b116101815780630a79309b146102405780631f9902f514610253578063223e5a9d1461027a57600080fd5b8063015828b5146101a85780630392823f146101ec57806303e6270714610201575b600080fd5b6003546101cc906a0100000000000000000000900469ffffffffffffffffffff1681565b60405169ffffffffffffffffffff90911681526020015b60405180910390f35b6101ff6101fa366004611038565b610476565b005b6102287f000000000000000000000000e7f6c3c1f0018e4c08acc52965e5cbff99e34a4481565b6040516001600160a01b0390911681526020016101e3565b6101ff61024e366004611080565b6104c2565b6102287f00000000000000000000000032eb7902d4134bf98a28b963d26de779af92a21281565b6102287f00000000000000000000000051318b7d00db7acc4026c88c3952b66278b6a67f81565b6102a9610695565b6040805169ffffffffffffffffffff968716815294861660208601529285169284019290925283166060830152909116608082015260a0016101e3565b6102287f0000000000000000000000006c2c06790b3e3e3c38e12ee22f8183b37a13ee5581565b6101ff61031b366004611038565b610818565b6102287f000000000000000000000000c046f44ed68014f048eca0010a642749ebe34b0381565b600154610228906001600160a01b031681565b600254610228906001600160a01b031681565b6101ff61037b366004611080565b610848565b6101ff6108d1565b6101ff610937565b6002546101cc90600160a01b900469ffffffffffffffffffff1681565b6000546001600160a01b0316610228565b6101ff6103cc3660046110b9565b6109d7565b6102a9610b65565b6101ff6103e7366004611080565b610c5d565b6102287f000000000000000000000000f236ea74b515ef96a9898f5a4ed4aa591f253ce181565b6003546101cc9069ffffffffffffffffffff1681565b6102287f0000000000000000000000006052213c67a539a91a1a88842dd81785601ddd1381565b6101ff61045e366004611080565b610ce6565b6101ff610471366004611038565b610dc8565b61047e610e1b565b6002805469ffffffffffffffffffff909216600160a01b027fffff00000000000000000000ffffffffffffffffffffffffffffffffffffffff909216919091179055565b6000546001600160a01b031633146105215760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b471561056357600080546040516001600160a01b03909116914780156108fc02929091818181858888f19350505050158015610561573d6000803e3d6000fd5b505b806001600160a01b031663a9059cbb6105846000546001600160a01b031690565b6040516370a0823160e01b81523060048201526001600160a01b038516906370a082319060240160206040518083038186803b1580156105c357600080fd5b505afa1580156105d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105fb919061112f565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b15801561065957600080fd5b505af115801561066d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106919190611148565b5050565b600254600354604080517f50c7b01b000000000000000000000000000000000000000000000000000000008152905169ffffffffffffffffffff600160a01b909404841693838116936a01000000000000000000009004169160009182916001600160a01b037f000000000000000000000000c046f44ed68014f048eca0010a642749ebe34b0316916350c7b01b91600480820192602092909190829003018186803b15801561074457600080fd5b505afa158015610758573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061077c919061112f565b91507f000000000000000000000000c046f44ed68014f048eca0010a642749ebe34b036001600160a01b031663def055a96040518163ffffffff1660e01b815260040160206040518083038186803b1580156107d757600080fd5b505afa1580156107eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061080f919061112f565b90509091929394565b610820610e1b565b6003805469ffffffffffffffffffff191669ffffffffffffffffffff92909216919091179055565b6000546001600160a01b031633146108a25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610518565b6001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000546001600160a01b0316331461092b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610518565b6109356000610e46565b565b6001546001600160a01b031633146109625760405163075fd2b160e01b815260040160405180910390fd5b7f000000000000000000000000c046f44ed68014f048eca0010a642749ebe34b036001600160a01b0316634641257d6040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156109bd57600080fd5b505af11580156109d1573d6000803e3d6000fd5b50505050565b6001546001600160a01b03163314610a025760405163075fd2b160e01b815260040160405180910390fd5b6001600160801b03851615610a4557610a457f00000000000000000000000051318b7d00db7acc4026c88c3952b66278b6a67f87876001600160801b0316610ea3565b6001600160801b038416151580610a6457506001600160801b03831615155b15610ad157610a9d7f000000000000000000000000f236ea74b515ef96a9898f5a4ed4aa591f253ce187866001600160801b0316610ea3565b610ad17f000000000000000000000000e7f6c3c1f0018e4c08acc52965e5cbff99e34a4487856001600160801b0316610ea3565b6001600160801b038216151580610af057506001600160801b03811615155b15610b5d57610b297f0000000000000000000000006c2c06790b3e3e3c38e12ee22f8183b37a13ee5587846001600160801b0316610ea3565b610b5d7f00000000000000000000000032eb7902d4134bf98a28b963d26de779af92a21287836001600160801b0316610ea3565b505050505050565b600254600354604080517fa7b0e58c000000000000000000000000000000000000000000000000000000008152815169ffffffffffffffffffff600160a01b909504851694848116946a0100000000000000000000900416926000928392839283926001600160a01b037f0000000000000000000000006052213c67a539a91a1a88842dd81785601ddd13169263a7b0e58c92600480840193919291829003018186803b158015610c1557600080fd5b505afa158015610c29573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c4d919061116a565b9798969795969095945092505050565b6000546001600160a01b03163314610cb75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610518565b6002805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000546001600160a01b03163314610d405760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610518565b6001600160a01b038116610dbc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610518565b610dc581610e46565b50565b610dd0610e1b565b6003805469ffffffffffffffffffff9092166a0100000000000000000000027fffffffffffffffffffffffff00000000000000000000ffffffffffffffffffff909216919091179055565b6002546001600160a01b031633146109355760405163075fd2b160e01b815260040160405180910390fd5b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516370a0823160e01b81523060048201526000906001600160a01b038516906370a082319060240160206040518083038186803b158015610ee557600080fd5b505afa158015610ef9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f1d919061112f565b905080821115610faf5760405163a9059cbb60e01b81526001600160a01b0384811660048301526024820183905285169063a9059cbb90604401602060405180830381600087803b158015610f7157600080fd5b505af1158015610f85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fa99190611148565b506109d1565b60405163a9059cbb60e01b81526001600160a01b0384811660048301526024820184905285169063a9059cbb90604401602060405180830381600087803b158015610ff957600080fd5b505af115801561100d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110319190611148565b5050505050565b60006020828403121561104a57600080fd5b813569ffffffffffffffffffff8116811461106457600080fd5b9392505050565b6001600160a01b0381168114610dc557600080fd5b60006020828403121561109257600080fd5b81356110648161106b565b80356001600160801b03811681146110b457600080fd5b919050565b60008060008060008060c087890312156110d257600080fd5b86356110dd8161106b565b95506110eb6020880161109d565b94506110f96040880161109d565b93506111076060880161109d565b92506111156080880161109d565b915061112360a0880161109d565b90509295509295509295565b60006020828403121561114157600080fd5b5051919050565b60006020828403121561115a57600080fd5b8151801515811461106457600080fd5b6000806040838503121561117d57600080fd5b50508051602090910151909290915056fea2646970667358221220b07749cb403a3da358bc9fdee79a0c90b89314e27417a1569d64b857377e3f3f64736f6c63430008090033

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

0000000000000000000000006052213c67a539a91a1a88842dd81785601ddd13000000000000000000000000c046f44ed68014f048eca0010a642749ebe34b0300000000000000000000000051318b7d00db7acc4026c88c3952b66278b6a67f000000000000000000000000f236ea74b515ef96a9898f5a4ed4aa591f253ce1000000000000000000000000e7f6c3c1f0018e4c08acc52965e5cbff99e34a440000000000000000000000006c2c06790b3e3e3c38e12ee22f8183b37a13ee5500000000000000000000000032eb7902d4134bf98a28b963d26de779af92a212

-----Decoded View---------------
Arg [0] : _pendingRewards (address): 0x6052213c67A539A91A1A88842dD81785601ddD13
Arg [1] : _staker (address): 0xC046F44ED68014f048ECa0010A642749Ebe34b03
Arg [2] : _pls (address): 0x51318B7D00db7ACc4026C88c3952B66278B6A67F
Arg [3] : _plsDpx (address): 0xF236ea74B515eF96a9898F5a4ed4Aa591f253Ce1
Arg [4] : _plsJones (address): 0xe7f6C3c1F0018E4C08aCC52965e5cbfF99e34A44
Arg [5] : _dpx (address): 0x6C2C06790b3E3E3c38e12Ee22F8183b37a13EE55
Arg [6] : _rdpx (address): 0x32Eb7902D4134bf98A28b963D26de779AF92A212

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000006052213c67a539a91a1a88842dd81785601ddd13
Arg [1] : 000000000000000000000000c046f44ed68014f048eca0010a642749ebe34b03
Arg [2] : 00000000000000000000000051318b7d00db7acc4026c88c3952b66278b6a67f
Arg [3] : 000000000000000000000000f236ea74b515ef96a9898f5a4ed4aa591f253ce1
Arg [4] : 000000000000000000000000e7f6c3c1f0018e4c08acc52965e5cbff99e34a44
Arg [5] : 0000000000000000000000006c2c06790b3e3e3c38e12ee22f8183b37a13ee55
Arg [6] : 00000000000000000000000032eb7902d4134bf98a28b963d26de779af92a212


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.