Contract 0xbf91446115f3E3eaF5079A88E078F876C0d7A6A8

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xb57db0c26b8515cbe230099b0fb32f526ab06c3dbec8bf5f8558a6e10433d6e1Update Volatilit...47642322022-01-18 16:36:326 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN  0xbf91446115f3e3eaf5079a88e078f876c0d7a6a80 ETH0.000765368518 ETH
0x7c047a5a84d71e47674dbd5468232bb70b5190d03444f4df017b3c87a82fdf27Update Volatilit...47346232022-01-17 16:37:041 day 5 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN  0xbf91446115f3e3eaf5079a88e078f876c0d7a6a80 ETH0.000821097991 ETH
0x55ac4807688cce03d8c80ac8d01ccacbf2279450bf82dbb40732fdde79baa029Update Volatilit...47336672022-01-17 16:06:501 day 6 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN  0xbf91446115f3e3eaf5079a88e078f876c0d7a6a80 ETH0.000809530073 ETH
0xa6313b8512c06543a22700066f8538045ad79bf7ae058bc00fa594112b9e87d9Update Volatilit...47336562022-01-17 16:06:501 day 6 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN  0xbf91446115f3e3eaf5079a88e078f876c0d7a6a80 ETH0.000811205922 ETH
0x075217c2b1e4acbf07ff5278df52943a4ad7ba9b66daee149b89a5e27262545eUpdate Volatilit...47336542022-01-17 16:06:501 day 6 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN  0xbf91446115f3e3eaf5079a88e078f876c0d7a6a80 ETH0.000809530073 ETH
0x3bfcaebd9544f4381df0f5ba40cfd4453172682b97227d020ac4111a9938e908Update Volatilit...47023732022-01-16 16:37:122 days 5 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN  0xbf91446115f3e3eaf5079a88e078f876c0d7a6a80 ETH0.000830064475 ETH
0xb9c4d0bedf54b43dafaf3e0da729cdef9b577aa523e210a07bad4789aeabd364Update Volatilit...46722292022-01-15 16:36:433 days 5 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN  0xbf91446115f3e3eaf5079a88e078f876c0d7a6a80 ETH0.001012448972 ETH
0x8105d9fefe4146a0bfc0a7a5f074c4bb42c420dd51e31d91c3189d4f974bd711Update Volatilit...46438302022-01-14 16:37:494 days 5 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN  0xbf91446115f3e3eaf5079a88e078f876c0d7a6a80 ETH0.001101253838 ETH
0xc568de45a8d43d7a96b2f202c604691d9264f1d1545f5e1582144746b6c6f117Update Volatilit...46165072022-01-13 16:36:395 days 5 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN  0xbf91446115f3e3eaf5079a88e078f876c0d7a6a80 ETH0.001079914776 ETH
0x9ffb0e8aaeca5b5046489de52c1933bf957695a3ada259f85d37eabe5820aa50Update Volatilit...45906272022-01-12 16:37:536 days 5 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN  0xbf91446115f3e3eaf5079a88e078f876c0d7a6a80 ETH0.001012711145 ETH
0x43f602e9872e5fefd0eb09bd41f9b4d59061cc1e46300b33378c478db213463eUpdate Volatilit...45642282022-01-11 16:36:267 days 6 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN  0xbf91446115f3e3eaf5079a88e078f876c0d7a6a80 ETH0.001083027447 ETH
0xa3c6705cb90d1eaab4b19000af9fc4d20f33ba690b3f6dc692570e21bc2d2ee1Update Volatilit...45377402022-01-10 16:37:078 days 5 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN  0xbf91446115f3e3eaf5079a88e078f876c0d7a6a80 ETH0.001016461727 ETH
0x193a5f20b76230267a88c5420c99df9b013913c03e1b51ff6a55ec3390b10fb5Update Volatilit...45105132022-01-09 20:40:149 days 1 hr ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN  0xbf91446115f3e3eaf5079a88e078f876c0d7a6a80 ETH0.000884048313 ETH
0x78bd14361f1e2ec691ca1ca83569ba1b5e4c783a6ef9e3649cf63d6a5d7b1bfeUpdate Volatilit...44856692022-01-08 16:36:5910 days 5 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN  0xbf91446115f3e3eaf5079a88e078f876c0d7a6a80 ETH0.000726083892 ETH
0x8c64522ce7bea1a7b32ac872ab60783c11b8d31403afb49701c8ccd4a8708d9fUpdate Volatilit...44582522022-01-07 16:37:1511 days 5 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN  0xbf91446115f3e3eaf5079a88e078f876c0d7a6a80 ETH0.000805737308 ETH
0x96b62924d4ea9e93487838c964d19151539cd874a467357f42b3514bca2c6ac7Update Volatilit...44316682022-01-07 0:35:2611 days 22 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN  0xbf91446115f3e3eaf5079a88e078f876c0d7a6a80 ETH0.000782577315 ETH
0xf29291c546bc45e80ab04f9a7ffe266422dfa07c79ce55b2bb622e8a49aa2fe4Update Volatilit...44197552022-01-06 16:37:2012 days 5 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN  0xbf91446115f3e3eaf5079a88e078f876c0d7a6a80 ETH0.000780006168 ETH
0x347870860b8dae37dfd03ee6e030fb630f6bd6215e51b754f6c3fd382fec9c3aUpdate Volatilit...43775372022-01-05 16:36:5513 days 5 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN  0xbf91446115f3e3eaf5079a88e078f876c0d7a6a80 ETH0.000685224824 ETH
0x4c5bb207ad7c7a9fefe10bd6c5629a02fde9418c913f3b2394252c615221d96eUpdate Volatilit...43398552022-01-04 16:37:0814 days 5 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN  0xbf91446115f3e3eaf5079a88e078f876c0d7a6a80 ETH0.000627573225 ETH
0xaf4bf1c3c739a4e08301cbe249ba4834f4b6d0f79e0b9e25580c122dd0b8b3c9Update Volatilit...42698242022-01-02 16:37:1916 days 5 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN  0xbf91446115f3e3eaf5079a88e078f876c0d7a6a80 ETH0.000513402564 ETH
0x6fbddf7c7498a13dec686cc650c6db95fcc3b14332708445d021651379820462Update Volatilit...42368632022-01-01 16:36:4617 days 5 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN  0xbf91446115f3e3eaf5079a88e078f876c0d7a6a80 ETH0.00053312393 ETH
0x77cc92b5111298bd663cd86c9fea6db2c5d2e991009f3936250e8cdeaf650cb8Update Volatilit...42133582021-12-31 16:37:4018 days 5 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN  0xbf91446115f3e3eaf5079a88e078f876c0d7a6a80 ETH0.000625592183 ETH
0x5d51c8e3e39cd605d72c5d1f34a85840cfd6ae4c75099b1da58f484f38e3f9fcUpdate Volatilit...41848472021-12-30 16:37:3919 days 5 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN  0xbf91446115f3e3eaf5079a88e078f876c0d7a6a80 ETH0.00065554839 ETH
0x1543e5aac273e3c9965f3ae5f382aed7c6a71acd6b915ececddcdc4ffaa1d025Update Volatilit...41595532021-12-29 16:37:4620 days 5 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN  0xbf91446115f3e3eaf5079a88e078f876c0d7a6a80 ETH0.000642301205 ETH
0x5f8d9ce2eeb795af574a49433fd4a0add3bb40a19146c4b9aa7ba286414223c1Update Volatilit...41378882021-12-28 16:36:4421 days 5 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN  0xbf91446115f3e3eaf5079a88e078f876c0d7a6a80 ETH0.000509612053 ETH
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
GohmVolatilityOracle

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

interface IVolatilityOracle {
    function getVolatility() external view returns (uint256);
}

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

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

// Interfaces
import {IVolatilityOracle} from '../interfaces/IVolatilityOracle.sol';

contract GohmVolatilityOracle is Ownable, IVolatilityOracle {
    /*==== PUBLIC VARS ====*/

    uint256 public lastVolatility;

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

    /**
     * @notice Updates the last volatility for gOHM
     * @param v volatility
     * @return volatility of gOHM
     */
    function updateVolatility(uint256 v) external onlyOwner returns (uint256) {
        require(v != 0, 'VolatilityOracle: Volatility cannot be 0');

        lastVolatility = v;

        return v;
    }

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

    /**
     * @notice Gets the volatility of gOHM
     * @return volatility
     */
    function getVolatility() external view override returns (uint256) {
        require(lastVolatility != 0, 'VolatilityOracle: Last volatility == 0');

        return lastVolatility;
    }
}

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":"getVolatility","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastVolatility","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":"v","type":"uint256"}],"name":"updateVolatility","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5061001a3361001f565b61006f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6103b18061007e6000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c80632834a7c8146100675780633af2888b1461008d578063715018a6146100955780638843be741461009f5780638da5cb5b146100a8578063f2fde38b146100c3575b600080fd5b61007a6100753660046102fd565b6100d6565b6040519081526020015b60405180910390f35b61007a610171565b61009d6101dc565b005b61007a60015481565b6000546040516001600160a01b039091168152602001610084565b61009d6100d1366004610316565b610212565b600080546001600160a01b0316331461010a5760405162461bcd60e51b815260040161010190610346565b60405180910390fd5b816101685760405162461bcd60e51b815260206004820152602860248201527f566f6c6174696c6974794f7261636c653a20566f6c6174696c6974792063616e60448201526706e6f7420626520360c41b6064820152608401610101565b50600181905590565b6000600154600014156101d55760405162461bcd60e51b815260206004820152602660248201527f566f6c6174696c6974794f7261636c653a204c61737420766f6c6174696c6974604482015265079203d3d20360d41b6064820152608401610101565b5060015490565b6000546001600160a01b031633146102065760405162461bcd60e51b815260040161010190610346565b61021060006102ad565b565b6000546001600160a01b0316331461023c5760405162461bcd60e51b815260040161010190610346565b6001600160a01b0381166102a15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610101565b6102aa816102ad565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561030f57600080fd5b5035919050565b60006020828403121561032857600080fd5b81356001600160a01b038116811461033f57600080fd5b9392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260408201526060019056fea2646970667358221220d3fe9df34f1ab197a15d47891277174433387ecbc6c69091b166efd47ba9891264736f6c63430008090033

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.