Contract 0x5f5870C7364AE87643747B06a0Ca7fdE200147d4

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x60878ceb93ac377e96489331c5c826ecf36bff83e622399cd33c75e15e0543f8Update Price47758452022-01-18 23:25:035 mins ago0xc490de9ca4e020f16f3d768b6a4f6fff513e117b IN  0x5f5870c7364ae87643747b06a0ca7fde200147d40 ETH0.000784491461 ETH
0xc4a62961df55fdfbac3d9ab213c69ac188697d22b2105ca21948ef3518ef8881Update Price47751372022-01-18 22:54:4536 mins ago0xc490de9ca4e020f16f3d768b6a4f6fff513e117b IN  0x5f5870c7364ae87643747b06a0ca7fde200147d40 ETH0.000776001624 ETH
0xfff47a476739209f60359960efaba65db70793e6ae95c20eb25c4f45df9d1b19Update Price47742452022-01-18 22:24:071 hr 6 mins ago0xc490de9ca4e020f16f3d768b6a4f6fff513e117b IN  0x5f5870c7364ae87643747b06a0ca7fde200147d40 ETH0.000776001624 ETH
0xa71eadcf2a65815f02f63f8484990d84d3c5fa9b662bb8b44912b81d1d7dfadfUpdate Price47734412022-01-18 21:54:341 hr 36 mins ago0xc490de9ca4e020f16f3d768b6a4f6fff513e117b IN  0x5f5870c7364ae87643747b06a0ca7fde200147d40 ETH0.000776001624 ETH
0xa43c46dc9142f1539e0a974dc473c031582d572927d5bdd27c3e7c12c5377d1dUpdate Price47722822022-01-18 21:23:442 hrs 7 mins ago0xc490de9ca4e020f16f3d768b6a4f6fff513e117b IN  0x5f5870c7364ae87643747b06a0ca7fde200147d40 ETH0.000777590418 ETH
0xd9155d3af95349209213ea190be180a521a76af32c84069b28b3f628da7eff4eUpdate Price47715362022-01-18 20:54:422 hrs 36 mins ago0xc490de9ca4e020f16f3d768b6a4f6fff513e117b IN  0x5f5870c7364ae87643747b06a0ca7fde200147d40 ETH0.000771698787 ETH
0xb9146a603287521029da2e4a1e9b072be67656e4d25abd3a8efa0074e2001c8fUpdate Price47710242022-01-18 20:24:433 hrs 6 mins ago0xc490de9ca4e020f16f3d768b6a4f6fff513e117b IN  0x5f5870c7364ae87643747b06a0ca7fde200147d40 ETH0.000765399787 ETH
0xc40540644af424c6868ee27cf6b300eb4c2f103f38f8071d87207da51bd5f7cbUpdate Price47704412022-01-18 19:54:063 hrs 36 mins ago0xc490de9ca4e020f16f3d768b6a4f6fff513e117b IN  0x5f5870c7364ae87643747b06a0ca7fde200147d40 ETH0.000766966875 ETH
0xcccff37e3fff2c5dbea30f84d947cf917dd87ee27095cc1c8682df680cd24ed9Update Price47699192022-01-18 19:24:474 hrs 6 mins ago0xc490de9ca4e020f16f3d768b6a4f6fff513e117b IN  0x5f5870c7364ae87643747b06a0ca7fde200147d40 ETH0.000766966875 ETH
0xfdcf2c6548f8f474e6611a5e60ae87e0499b2e4096fdcfdcdeb0df612d42c7daUpdate Price47692802022-01-18 18:54:554 hrs 36 mins ago0xc490de9ca4e020f16f3d768b6a4f6fff513e117b IN  0x5f5870c7364ae87643747b06a0ca7fde200147d40 ETH0.000766966875 ETH
0x056d41632fdabef8518b765f6dd2b237a3f7c88808feaf16a289c123871d7e44Update Price47685652022-01-18 18:25:065 hrs 5 mins ago0xc490de9ca4e020f16f3d768b6a4f6fff513e117b IN  0x5f5870c7364ae87643747b06a0ca7fde200147d40 ETH0.000766966875 ETH
0x1f7bd2f1f2ffb2114e37186fcda4fe100c9e0130b5906f6a10999762a3a094f1Update Price47670682022-01-18 17:54:475 hrs 36 mins ago0xc490de9ca4e020f16f3d768b6a4f6fff513e117b IN  0x5f5870c7364ae87643747b06a0ca7fde200147d40 ETH0.000770880221 ETH
0x43787b017e1dfa531377068cca0ac90720687934259465cbfe72b87432cf3a42Update Price47654812022-01-18 17:24:186 hrs 6 mins ago0xc490de9ca4e020f16f3d768b6a4f6fff513e117b IN  0x5f5870c7364ae87643747b06a0ca7fde200147d40 ETH0.000772284892 ETH
0x5dc876f2016f0a7f099299f6f5e626f79e3a5f8ce07789a74c54e571b8fab2e9Update Price47645942022-01-18 16:55:096 hrs 35 mins ago0xc490de9ca4e020f16f3d768b6a4f6fff513e117b IN  0x5f5870c7364ae87643747b06a0ca7fde200147d40 ETH0.000775453749 ETH
0x0e9d1a39cca0f263fc1ff0e42643c182f22d07dd84c8c8bf5ecc6be5dee95152Update Price47639802022-01-18 16:24:057 hrs 6 mins ago0xc490de9ca4e020f16f3d768b6a4f6fff513e117b IN  0x5f5870c7364ae87643747b06a0ca7fde200147d40 ETH0.000773869321 ETH
0x7cb16b2abe59018c25b77aee3ced2f8d0c0db4286c9f2fbbef0c4a1973b88ff6Update Price47633142022-01-18 15:54:527 hrs 36 mins ago0xc490de9ca4e020f16f3d768b6a4f6fff513e117b IN  0x5f5870c7364ae87643747b06a0ca7fde200147d40 ETH0.000775453749 ETH
0xc004ee104ad63c0c34a64f2a21f4ca82a6f4465bc56f22f8c92b98f6f493efd4Update Price47625492022-01-18 15:23:388 hrs 7 mins ago0xc490de9ca4e020f16f3d768b6a4f6fff513e117b IN  0x5f5870c7364ae87643747b06a0ca7fde200147d40 ETH0.000788196902 ETH
0x1292ec1da1c9c167518e64bded2f2b38fa64482211a80a04103c69eea8fc1119Update Price47617762022-01-18 14:54:018 hrs 36 mins ago0xc490de9ca4e020f16f3d768b6a4f6fff513e117b IN  0x5f5870c7364ae87643747b06a0ca7fde200147d40 ETH0.000788643109 ETH
0x87c0fd5e7caecf4c46257f298a6d8b6d198bd05b7951060d6ad6d79acbc7773bUpdate Price47609692022-01-18 14:23:379 hrs 7 mins ago0xc490de9ca4e020f16f3d768b6a4f6fff513e117b IN  0x5f5870c7364ae87643747b06a0ca7fde200147d40 ETH0.000787031732 ETH
0x09b24eed874075f4bc105fcc16b3c6419d7cdaf2b412366e997d2d0d6306b211Update Price47603022022-01-18 13:55:059 hrs 35 mins ago0xc490de9ca4e020f16f3d768b6a4f6fff513e117b IN  0x5f5870c7364ae87643747b06a0ca7fde200147d40 ETH0.000787031732 ETH
0xbbec46a6b32f9a127aff12387debef494f8a20b333c7f144ab5856573ad778caUpdate Price47595392022-01-18 13:23:2010 hrs 7 mins ago0xc490de9ca4e020f16f3d768b6a4f6fff513e117b IN  0x5f5870c7364ae87643747b06a0ca7fde200147d40 ETH0.000788643109 ETH
0x068c7d44cc9424067c7bd9eae1d6e774ac8a159a87b06a37674046a0de4479e8Update Price47589822022-01-18 12:54:0910 hrs 36 mins ago0xc490de9ca4e020f16f3d768b6a4f6fff513e117b IN  0x5f5870c7364ae87643747b06a0ca7fde200147d40 ETH0.000796930754 ETH
0x6ceddb093aafe98abc3dbe62f4fd83d78133693f845c9c8d0986aa0f4ba48b17Update Price47584622022-01-18 12:23:4211 hrs 7 mins ago0xc490de9ca4e020f16f3d768b6a4f6fff513e117b IN  0x5f5870c7364ae87643747b06a0ca7fde200147d40 ETH0.000807054957 ETH
0x42a6603ff9c74c44e9736e764d7eab3cf320d70c9ee2e5515a17633d41e16c2fUpdate Price47579002022-01-18 11:53:4211 hrs 37 mins ago0xc490de9ca4e020f16f3d768b6a4f6fff513e117b IN  0x5f5870c7364ae87643747b06a0ca7fde200147d40 ETH0.000803756963 ETH
0x072a2c16a7d640c07cec8b996fe11e597e30db5ce4c2caa9195cde3bc3daf5e2Update Price47574412022-01-18 11:24:2712 hrs 6 mins ago0xc490de9ca4e020f16f3d768b6a4f6fff513e117b IN  0x5f5870c7364ae87643747b06a0ca7fde200147d40 ETH0.000807054957 ETH
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
GohmCustomPriceOracle

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 : GohmCustomPriceOracle.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;

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

contract GohmCustomPriceOracle 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"}]

608060405234801561001057600080fd5b5061001a3361001f565b61006f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6103af8061007e6000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c8063053f14da14610067578063715018a6146100835780638d6cc56d1461008d5780638da5cb5b146100a0578063e1aa6036146100bb578063f2fde38b146100c3575b600080fd5b61007060015481565b6040519081526020015b60405180910390f35b61008b6100d6565b005b61007061009b3660046102fb565b610115565b6000546040516001600160a01b03909116815260200161007a565b6100706101a9565b61008b6100d1366004610314565b610210565b6000546001600160a01b031633146101095760405162461bcd60e51b815260040161010090610344565b60405180910390fd5b61011360006102ab565b565b600080546001600160a01b031633146101405760405162461bcd60e51b815260040161010090610344565b816101a05760405162461bcd60e51b815260206004820152602a60248201527f437573746f6d50726963654f7261636c653a20546f6b656e20707269636520636044820152690616e6e6f7420626520360b41b6064820152608401610100565b50600181905590565b6000600154600014156102095760405162461bcd60e51b815260206004820152602260248201527f437573746f6d50726963654f7261636c653a204c617374207072696365203d3d604482015261020360f41b6064820152608401610100565b5060015490565b6000546001600160a01b0316331461023a5760405162461bcd60e51b815260040161010090610344565b6001600160a01b03811661029f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610100565b6102a8816102ab565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561030d57600080fd5b5035919050565b60006020828403121561032657600080fd5b81356001600160a01b038116811461033d57600080fd5b9392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260408201526060019056fea2646970667358221220f70056bb88e61a8d79f56d9adda4bdd8b35c21e94adcf98f6400cd0e99186a9864736f6c63430008090033

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.