ETH Price: $3,365.52 (+1.62%)

Contract

0x6052213c67A539A91A1A88842dD81785601ddD13

Overview

ETH Balance

0 ETH

ETH Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To

There are no matching entries

> 10 Internal Transactions found.

Latest 25 internal transactions (View All)

Parent Transaction Hash Block From To
720779062023-03-21 9:42:381031 days ago1679391758
Plutus DAO: Pending Rewards
0 ETH
720779062023-03-21 9:42:381031 days ago1679391758
Plutus DAO: Pending Rewards
0 ETH
720779062023-03-21 9:42:381031 days ago1679391758
Plutus DAO: Pending Rewards
0 ETH
720751892023-03-21 9:31:281031 days ago1679391088
Plutus DAO: Pending Rewards
0 ETH
720751892023-03-21 9:31:281031 days ago1679391088
Plutus DAO: Pending Rewards
0 ETH
720751892023-03-21 9:31:281031 days ago1679391088
Plutus DAO: Pending Rewards
0 ETH
720728222023-03-21 9:21:411031 days ago1679390501
Plutus DAO: Pending Rewards
0 ETH
720728222023-03-21 9:21:411031 days ago1679390501
Plutus DAO: Pending Rewards
0 ETH
720728222023-03-21 9:21:411031 days ago1679390501
Plutus DAO: Pending Rewards
0 ETH
719986492023-03-21 4:16:381031 days ago1679372198
Plutus DAO: Pending Rewards
0 ETH
719986492023-03-21 4:16:381031 days ago1679372198
Plutus DAO: Pending Rewards
0 ETH
719986492023-03-21 4:16:381031 days ago1679372198
Plutus DAO: Pending Rewards
0 ETH
719211422023-03-20 22:49:521031 days ago1679352592
Plutus DAO: Pending Rewards
0 ETH
719211422023-03-20 22:49:521031 days ago1679352592
Plutus DAO: Pending Rewards
0 ETH
719211422023-03-20 22:49:521031 days ago1679352592
Plutus DAO: Pending Rewards
0 ETH
719160632023-03-20 22:27:591031 days ago1679351279
Plutus DAO: Pending Rewards
0 ETH
719160632023-03-20 22:27:591031 days ago1679351279
Plutus DAO: Pending Rewards
0 ETH
719160632023-03-20 22:27:591031 days ago1679351279
Plutus DAO: Pending Rewards
0 ETH
719159292023-03-20 22:27:301031 days ago1679351250
Plutus DAO: Pending Rewards
0 ETH
719159292023-03-20 22:27:301031 days ago1679351250
Plutus DAO: Pending Rewards
0 ETH
719159292023-03-20 22:27:301031 days ago1679351250
Plutus DAO: Pending Rewards
0 ETH
718821082023-03-20 20:02:481031 days ago1679342568
Plutus DAO: Pending Rewards
0 ETH
718821082023-03-20 20:02:481031 days ago1679342568
Plutus DAO: Pending Rewards
0 ETH
718821082023-03-20 20:02:481031 days ago1679342568
Plutus DAO: Pending Rewards
0 ETH
718277502023-03-20 16:17:031031 days ago1679329023
Plutus DAO: Pending Rewards
0 ETH
View All Internal Transactions

Cross-Chain Transactions
Loading...
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
// 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 (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
// 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
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);
}

// 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 Security Audit

Contract ABI

API
[{"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

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100365760003560e01c806371813bbc1461003b578063a7b0e58c14610056575b600080fd5b610043610073565b6040519081526020015b60405180910390f35b61005e6101dc565b6040805192835260208301919091520161004d565b600061271073668bb973c3e35759269dac6d5bf118ea9729110e73ffffffffffffffffffffffffffffffffffffffff1663ddca3f436040518163ffffffff1660e01b815260040160206040518083038186803b1580156100d257600080fd5b505afa1580156100e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061010a9190610357565b6040517f7efed6460000000000000000000000000000000000000000000000000000000081526001600482015273668bb973c3e35759269dac6d5bf118ea9729110e6024820152612710919091039073b94d1959084081c5a11c460012ab522f5a0fd75690637efed6469060440160206040518083038186803b15801561019057600080fd5b505afa1580156101a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101c89190610357565b02816101d6576101d6610370565b04905090565b600080600073c046f44ed68014f048eca0010a642749ebe34b0373ffffffffffffffffffffffffffffffffffffffff1663ddca3f436040518163ffffffff1660e01b815260040160206040518083038186803b15801561023b57600080fd5b505afa15801561024f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102739190610357565b6040517e8cc26200000000000000000000000000000000000000000000000000000000815273c046f44ed68014f048eca0010a642749ebe34b036004820152909150600090819073c6d714170fe766691670f12c2b45c1f34405aab690628cc26290602401604080518083038186803b1580156102ef57600080fd5b505afa158015610303573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610327919061039f565b91509150612710836127100383028161034257610342610370565b04945061271083810382020493505050509091565b60006020828403121561036957600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600080604083850312156103b257600080fd5b50508051602090910151909290915056fea264697066735822122071022ff9bd9b36eb71ad2c9cd2b9f6a563145652d2ec6779679c31493dfe583e64736f6c63430008090033

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  ]

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.