Contract 0x6052213c67a539a91a1a88842dd81785601ddd13

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x564b8a2545b6ee53f008afc21a3ebae3f74f597b3f1374f0e04f9857974606c70x60806040125930982022-05-20 23:21:50127 days 7 hrs agoPlutusDAO: Deployer IN  Create: PendingRewards0 ETH0.001228366902 ETH
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x0e1e9459fe438baeffa3d5642530a4ff8d48f1d4a045baef145479dd6ac52927265191452022-09-25 6:29:0541 mins ago Plutus DAO: Pending Rewards 0xb94d1959084081c5a11c460012ab522f5a0fd7560 ETH
0x0e1e9459fe438baeffa3d5642530a4ff8d48f1d4a045baef145479dd6ac52927265191452022-09-25 6:29:0541 mins ago Plutus DAO: Pending Rewards Plutus DAO: Jones Staker0 ETH
0x0e1e9459fe438baeffa3d5642530a4ff8d48f1d4a045baef145479dd6ac52927265191452022-09-25 6:29:0541 mins ago Plutus DAO: Pls-Jones Rewards Plutus DAO: Pending Rewards0 ETH
0x127db0e1549d5cfe98309144ade2a510f30af64951e2b66f2dab68371f38e6e7265117152022-09-25 5:39:531 hr 30 mins ago Plutus DAO: Pending Rewards 0xb94d1959084081c5a11c460012ab522f5a0fd7560 ETH
0x127db0e1549d5cfe98309144ade2a510f30af64951e2b66f2dab68371f38e6e7265117152022-09-25 5:39:531 hr 30 mins ago Plutus DAO: Pending Rewards Plutus DAO: Jones Staker0 ETH
0x127db0e1549d5cfe98309144ade2a510f30af64951e2b66f2dab68371f38e6e7265117152022-09-25 5:39:531 hr 30 mins ago Plutus DAO: Pls-Jones Rewards Plutus DAO: Pending Rewards0 ETH
0x4ef0cb7970e40e642693df655bb3044dd99898f5a729d674b7b3ae463f1d6221264972472022-09-25 3:43:093 hrs 27 mins ago Plutus DAO: Pending Rewards 0xb94d1959084081c5a11c460012ab522f5a0fd7560 ETH
0x4ef0cb7970e40e642693df655bb3044dd99898f5a729d674b7b3ae463f1d6221264972472022-09-25 3:43:093 hrs 27 mins ago Plutus DAO: Pending Rewards Plutus DAO: Jones Staker0 ETH
0x4ef0cb7970e40e642693df655bb3044dd99898f5a729d674b7b3ae463f1d6221264972472022-09-25 3:43:093 hrs 27 mins ago Plutus DAO: Pls-Jones Rewards Plutus DAO: Pending Rewards0 ETH
0x78b4bf5d3f6391b1417fe5c0c1baee1b81cd63ab03009d1c72610c68c978dd0d264869572022-09-25 2:21:504 hrs 48 mins ago Plutus DAO: Pending Rewards 0xb94d1959084081c5a11c460012ab522f5a0fd7560 ETH
0x78b4bf5d3f6391b1417fe5c0c1baee1b81cd63ab03009d1c72610c68c978dd0d264869572022-09-25 2:21:504 hrs 48 mins ago Plutus DAO: Pending Rewards Plutus DAO: Jones Staker0 ETH
0x78b4bf5d3f6391b1417fe5c0c1baee1b81cd63ab03009d1c72610c68c978dd0d264869572022-09-25 2:21:504 hrs 48 mins ago Plutus DAO: Pls-Jones Rewards Plutus DAO: Pending Rewards0 ETH
0x90ac96a2943754db56d03f94129336fef000e4a8caf78d6132bff2537ca85789264855382022-09-25 2:09:265 hrs 1 min ago Plutus DAO: Pending Rewards 0xb94d1959084081c5a11c460012ab522f5a0fd7560 ETH
0x90ac96a2943754db56d03f94129336fef000e4a8caf78d6132bff2537ca85789264855382022-09-25 2:09:265 hrs 1 min ago Plutus DAO: Pending Rewards Plutus DAO: Jones Staker0 ETH
0x90ac96a2943754db56d03f94129336fef000e4a8caf78d6132bff2537ca85789264855382022-09-25 2:09:265 hrs 1 min ago Plutus DAO: Pls-Jones Rewards Plutus DAO: Pending Rewards0 ETH
0xb5398ae052f65bc26e84be2053e972db57155c9e9979032a895a28916cf1acf2264854832022-09-25 2:08:565 hrs 1 min ago Plutus DAO: Pending Rewards 0xb94d1959084081c5a11c460012ab522f5a0fd7560 ETH
0xb5398ae052f65bc26e84be2053e972db57155c9e9979032a895a28916cf1acf2264854832022-09-25 2:08:565 hrs 1 min ago Plutus DAO: Pending Rewards Plutus DAO: Jones Staker0 ETH
0xb5398ae052f65bc26e84be2053e972db57155c9e9979032a895a28916cf1acf2264854832022-09-25 2:08:565 hrs 1 min ago Plutus DAO: Pls-Jones Rewards Plutus DAO: Pending Rewards0 ETH
0xf6f376e88bd11da1c18d25ea005ad7331c48a9a082ddac97405f2ddfe63e7436264478602022-09-24 19:38:0011 hrs 32 mins ago Plutus DAO: Pending Rewards 0xb94d1959084081c5a11c460012ab522f5a0fd7560 ETH
0xf6f376e88bd11da1c18d25ea005ad7331c48a9a082ddac97405f2ddfe63e7436264478602022-09-24 19:38:0011 hrs 32 mins ago Plutus DAO: Pending Rewards Plutus DAO: Jones Staker0 ETH
0xf6f376e88bd11da1c18d25ea005ad7331c48a9a082ddac97405f2ddfe63e7436264478602022-09-24 19:38:0011 hrs 32 mins ago Plutus DAO: Pls-Jones Rewards Plutus DAO: Pending Rewards0 ETH
0x9d5cd9da858474b53c6fa930d1059ae294f4524cbb6ec1894dd1f6564217d5eb264471252022-09-24 19:30:0211 hrs 40 mins ago Plutus DAO: Pending Rewards 0xb94d1959084081c5a11c460012ab522f5a0fd7560 ETH
0x9d5cd9da858474b53c6fa930d1059ae294f4524cbb6ec1894dd1f6564217d5eb264471252022-09-24 19:30:0211 hrs 40 mins ago Plutus DAO: Pending Rewards Plutus DAO: Jones Staker0 ETH
0x9d5cd9da858474b53c6fa930d1059ae294f4524cbb6ec1894dd1f6564217d5eb264471252022-09-24 19:30:0211 hrs 40 mins ago Plutus DAO: Pls-Jones Rewards Plutus DAO: Pending Rewards0 ETH
0x09186065e30edfdbb0cfe915eb9cc6ac9d3992ce00c7638692d8700bda97e503263943432022-09-24 13:20:4517 hrs 49 mins ago Plutus DAO: Pending Rewards 0xb94d1959084081c5a11c460012ab522f5a0fd7560 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PendingRewards

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 6 : PendingRewards.sol
// 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;
    }
  }
}

File 2 of 6 : Ownable.sol
// 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);
    }
}

File 3 of 6 : IERC20.sol
// 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);
}

File 4 of 6 : IMillinerV2.sol
// 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);
}

File 5 of 6 : IDpxStakingRewards.sol
// 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);
}

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

pragma solidity ^0.8.0;

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

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

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

Contract ABI

[{"inputs":[],"name":"pendingDpxRewardsLessFee","outputs":[{"internalType":"uint256","name":"_pendingDpx","type":"uint256"},{"internalType":"uint256","name":"_pendingRdpx","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingJonesLessFee","outputs":[{"internalType":"uint256","name":"_pendingJones","type":"uint256"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b506103f9806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c806371813bbc1461003b578063a7b0e58c14610056575b600080fd5b610043610073565b6040519081526020015b60405180910390f35b61005e6101dc565b6040805192835260208301919091520161004d565b600061271073668bb973c3e35759269dac6d5bf118ea9729110e73ffffffffffffffffffffffffffffffffffffffff1663ddca3f436040518163ffffffff1660e01b815260040160206040518083038186803b1580156100d257600080fd5b505afa1580156100e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061010a9190610357565b6040517f7efed6460000000000000000000000000000000000000000000000000000000081526001600482015273668bb973c3e35759269dac6d5bf118ea9729110e6024820152612710919091039073b94d1959084081c5a11c460012ab522f5a0fd75690637efed6469060440160206040518083038186803b15801561019057600080fd5b505afa1580156101a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101c89190610357565b02816101d6576101d6610370565b04905090565b600080600073c046f44ed68014f048eca0010a642749ebe34b0373ffffffffffffffffffffffffffffffffffffffff1663ddca3f436040518163ffffffff1660e01b815260040160206040518083038186803b15801561023b57600080fd5b505afa15801561024f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102739190610357565b6040517e8cc26200000000000000000000000000000000000000000000000000000000815273c046f44ed68014f048eca0010a642749ebe34b036004820152909150600090819073c6d714170fe766691670f12c2b45c1f34405aab690628cc26290602401604080518083038186803b1580156102ef57600080fd5b505afa158015610303573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610327919061039f565b91509150612710836127100383028161034257610342610370565b04945061271083810382020493505050509091565b60006020828403121561036957600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600080604083850312156103b257600080fd5b50508051602090910151909290915056fea264697066735822122071022ff9bd9b36eb71ad2c9cd2b9f6a563145652d2ec6779679c31493dfe583e64736f6c63430008090033

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