Contract 0xc0cdd1176aa1624b89b7476142b41c04414afaa0

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xf8935331b217ccc54baf08715cadb3dd277f7d050ac895035966ea901be6cd6eUpdate Price51670372022-01-28 10:54:1825 mins ago0xc490de9ca4e020f16f3d768b6a4f6fff513e117b IN  0xc0cdd1176aa1624b89b7476142b41c04414afaa00 ETH0.000569802223 ETH
0x87c140d98b6be6091d7f9993bb12d9d4c62d2fd0fbd6c9e738627c91c490b448Update Price51665422022-01-28 10:24:3354 mins ago0xc490de9ca4e020f16f3d768b6a4f6fff513e117b IN  0xc0cdd1176aa1624b89b7476142b41c04414afaa00 ETH0.000580615346 ETH
0x0fe1c8a700a9fdb170130aff406a194b863a429f1f9d84455990f6da5393de65Update Price51658812022-01-28 9:54:181 hr 25 mins ago0xc490de9ca4e020f16f3d768b6a4f6fff513e117b IN  0xc0cdd1176aa1624b89b7476142b41c04414afaa00 ETH0.000580615346 ETH
0xd7ac036e6ef0e2504d5461108d941ed2025b1f6c45f668a483dc8c31a8cd9db3Update Price51652582022-01-28 9:24:101 hr 55 mins ago0xc490de9ca4e020f16f3d768b6a4f6fff513e117b IN  0xc0cdd1176aa1624b89b7476142b41c04414afaa00 ETH0.000578816354 ETH
0x56cae81d76c1ef054a3aa6c10a8c41f8ac3d9bcdecd6c87739b6e688511b0950Update Price51645912022-01-28 8:54:382 hrs 24 mins ago0xc490de9ca4e020f16f3d768b6a4f6fff513e117b IN  0xc0cdd1176aa1624b89b7476142b41c04414afaa00 ETH0.000587705823 ETH
0x931f7ba250f73eb261a204ffd405fec70ff0e56dfb813f4a026568311e140362Update Price51636892022-01-28 8:24:082 hrs 55 mins ago0xc490de9ca4e020f16f3d768b6a4f6fff513e117b IN  0xc0cdd1176aa1624b89b7476142b41c04414afaa00 ETH0.000595823974 ETH
0x14c7722760794e6bb3c667f5dd8295e993828b737f2457f545232ea94a516ca9Update Price51626142022-01-28 7:58:033 hrs 21 mins ago0xc490de9ca4e020f16f3d768b6a4f6fff513e117b IN  0xc0cdd1176aa1624b89b7476142b41c04414afaa00 ETH0.00059397786 ETH
0xaf64d06591f2dfb8d3771068e75079bc2d03563734c43541bc7abcff49194e0aUpdate Price51624832022-01-28 7:54:503 hrs 24 mins ago0xc490de9ca4e020f16f3d768b6a4f6fff513e117b IN  0xc0cdd1176aa1624b89b7476142b41c04414afaa00 ETH0.00059397786 ETH
0x9c961a7adcfae8cdbe60901021805fdc586e733a2b76d3a8376bf28286533cf7Update Price51618062022-01-28 7:24:013 hrs 55 mins ago0xc490de9ca4e020f16f3d768b6a4f6fff513e117b IN  0xc0cdd1176aa1624b89b7476142b41c04414afaa00 ETH0.00059397786 ETH
0xd9c6410b5f37d3c8163afb041b7ac919e32e3b02941a8658e7e292cd7e99c56dUpdate Price51611662022-01-28 6:54:444 hrs 24 mins ago0xc490de9ca4e020f16f3d768b6a4f6fff513e117b IN  0xc0cdd1176aa1624b89b7476142b41c04414afaa00 ETH0.00059397786 ETH
0x4e5c12f425ecfb8f6f5d2a5f85457cfe60d57ec9b16f02a15441970aac5af606Update Price51604302022-01-28 6:24:294 hrs 55 mins ago0xc490de9ca4e020f16f3d768b6a4f6fff513e117b IN  0xc0cdd1176aa1624b89b7476142b41c04414afaa00 ETH0.000607017232 ETH
0xcd1692e9be7e15f23ce92706ec2c6955fe6bb8af37feb5fcf6c4d3fc744ca685Update Price51598502022-01-28 5:53:565 hrs 25 mins ago0xc490de9ca4e020f16f3d768b6a4f6fff513e117b IN  0xc0cdd1176aa1624b89b7476142b41c04414afaa00 ETH0.000607017232 ETH
0x5a8ed9144c359af552f33907ab8c4d187825f1acf0f5a18d41675116c295c502Update Price51592632022-01-28 5:25:025 hrs 54 mins ago0xc490de9ca4e020f16f3d768b6a4f6fff513e117b IN  0xc0cdd1176aa1624b89b7476142b41c04414afaa00 ETH0.000605130591 ETH
0x01559453673b94d62c32f5ef139e6e4cf5bbc96f6340b482e97b2a7247f328aeUpdate Price51586892022-01-28 4:54:396 hrs 24 mins ago0xc490de9ca4e020f16f3d768b6a4f6fff513e117b IN  0xc0cdd1176aa1624b89b7476142b41c04414afaa00 ETH0.000607017232 ETH
0xda6d17fc02c71e57fafca1a49111facc1fc922b334dd4912ef044ed538cfa086Update Price51579792022-01-28 4:24:356 hrs 54 mins ago0xc490de9ca4e020f16f3d768b6a4f6fff513e117b IN  0xc0cdd1176aa1624b89b7476142b41c04414afaa00 ETH0.000607017232 ETH
0xc97695fcc8da27f9843cff5c18d155f83bdc4d61d8b93c94a0aeaf6936d88ffbUpdate Price51572462022-01-28 3:55:007 hrs 24 mins ago0xc490de9ca4e020f16f3d768b6a4f6fff513e117b IN  0xc0cdd1176aa1624b89b7476142b41c04414afaa00 ETH0.000608903873 ETH
0xd3714611f3f839d2fac89545a86f861028bf5e1613f760dc0a15a8004461f2b0Update Price51564772022-01-28 3:24:397 hrs 54 mins ago0xc490de9ca4e020f16f3d768b6a4f6fff513e117b IN  0xc0cdd1176aa1624b89b7476142b41c04414afaa00 ETH0.000610720115 ETH
0x5cd7e577856df41ac0603bda98a355407705508a118f92b63137d62b79ff0620Update Price51556392022-01-28 2:54:288 hrs 25 mins ago0xc490de9ca4e020f16f3d768b6a4f6fff513e117b IN  0xc0cdd1176aa1624b89b7476142b41c04414afaa00 ETH0.000610720115 ETH
0xea59bc43782580bda8bbadf4b21610ab6337d3088c3a6d06fbc24b71b4029019Update Price51549462022-01-28 2:24:588 hrs 54 mins ago0xc490de9ca4e020f16f3d768b6a4f6fff513e117b IN  0xc0cdd1176aa1624b89b7476142b41c04414afaa00 ETH0.000608827847 ETH
0x70a783598af8da24cb467e5533d744f3bfac7afa334657f83f5d721ac0b5379dUpdate Price51541682022-01-28 1:54:539 hrs 24 mins ago0xc490de9ca4e020f16f3d768b6a4f6fff513e117b IN  0xc0cdd1176aa1624b89b7476142b41c04414afaa00 ETH0.000608827847 ETH
0xe9dfe34578aa421ddb87c9b5e71118be1c7bf80364cb62f7da6d779767872e87Update Price51534042022-01-28 1:24:279 hrs 55 mins ago0xc490de9ca4e020f16f3d768b6a4f6fff513e117b IN  0xc0cdd1176aa1624b89b7476142b41c04414afaa00 ETH0.000608827847 ETH
0xa0fc6cdff057f6d842c7a9749bb8e2c8977b26843be045140eb6cee71f08c948Update Price51526952022-01-28 0:54:1210 hrs 25 mins ago0xc490de9ca4e020f16f3d768b6a4f6fff513e117b IN  0xc0cdd1176aa1624b89b7476142b41c04414afaa00 ETH0.000604965854 ETH
0xa9510ddf6773bfb332a5bfcbd086b57ba40fe47ccc0a5f12de46f1e07658cb7bUpdate Price51519582022-01-28 0:24:3410 hrs 54 mins ago0xc490de9ca4e020f16f3d768b6a4f6fff513e117b IN  0xc0cdd1176aa1624b89b7476142b41c04414afaa00 ETH0.00060684612 ETH
0xb3214d7fdaec2f682c5c1702cd397c71398c7f3ac5394c493a62b6024cbc3441Update Price51509922022-01-27 23:54:0611 hrs 25 mins ago0xc490de9ca4e020f16f3d768b6a4f6fff513e117b IN  0xc0cdd1176aa1624b89b7476142b41c04414afaa00 ETH0.000596591713 ETH
0x836f3f8f8c782d520cd1eaa6193ffd637db9f8f3fc510653467e4def50e41d5aUpdate Price51499672022-01-27 23:23:1511 hrs 56 mins ago0xc490de9ca4e020f16f3d768b6a4f6fff513e117b IN  0xc0cdd1176aa1624b89b7476142b41c04414afaa00 ETH0.000598445952 ETH
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
RdpxCustomPriceOracle

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, Unlicense license

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 3 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev 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 2 of 3 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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;
    }
}

File 3 of 3 : RdpxCustomPriceOracle.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;

// Contracts
import {Ownable} from '@openzeppelin/contracts/access/Ownable.sol';

contract RdpxCustomPriceOracle is Ownable {
    /*==== PUBLIC VARS ====*/

    uint256 public lastPrice;

    /*==== SETTER FUNCTIONS (ONLY OWNER) ====*/

    /**
     * @notice Updates the last price of the token
     * @param price price
     * @return price of the token
     */
    function updatePrice(uint256 price) external onlyOwner returns (uint256) {
        require(price != 0, 'CustomPriceOracle: Token price cannot be 0');

        lastPrice = price;

        return price;
    }

    /*==== VIEWS ====*/

    /**
     * @notice Gets the price of the token
     * @return price
     */
    function getPriceInUSD() external view returns (uint256) {
        require(lastPrice != 0, 'CustomPriceOracle: Last price == 0');

        return lastPrice;
    }
}

Settings
{
  "evmVersion": "london",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract ABI

[{"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":"getPriceInUSD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"updatePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5061001a3361001f565b61006f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6103af8061007e6000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c8063053f14da14610067578063715018a6146100835780638d6cc56d1461008d5780638da5cb5b146100a0578063e1aa6036146100bb578063f2fde38b146100c3575b600080fd5b61007060015481565b6040519081526020015b60405180910390f35b61008b6100d6565b005b61007061009b3660046102fb565b610115565b6000546040516001600160a01b03909116815260200161007a565b6100706101a9565b61008b6100d1366004610314565b610210565b6000546001600160a01b031633146101095760405162461bcd60e51b815260040161010090610344565b60405180910390fd5b61011360006102ab565b565b600080546001600160a01b031633146101405760405162461bcd60e51b815260040161010090610344565b816101a05760405162461bcd60e51b815260206004820152602a60248201527f437573746f6d50726963654f7261636c653a20546f6b656e20707269636520636044820152690616e6e6f7420626520360b41b6064820152608401610100565b50600181905590565b6000600154600014156102095760405162461bcd60e51b815260206004820152602260248201527f437573746f6d50726963654f7261636c653a204c617374207072696365203d3d604482015261020360f41b6064820152608401610100565b5060015490565b6000546001600160a01b0316331461023a5760405162461bcd60e51b815260040161010090610344565b6001600160a01b03811661029f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610100565b6102a8816102ab565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561030d57600080fd5b5035919050565b60006020828403121561032657600080fd5b81356001600160a01b038116811461033d57600080fd5b9392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260408201526060019056fea26469706673582212209f88efa1028a5f5f83a13e4bc4e575897ffd6abc1b83d6f093a8775410dab44f64736f6c63430008090033

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