Contract 0xb6645813567bb5beea8f62e793d075fe6d3be0b1

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xaf505cf7aed2a0f4a3ac8d8f7dbd1b9a092006f58f2ca446f09113d9e3a74830Update Volatilit...33828462021-11-27 16:36:477 hrs 48 mins ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN  0xb6645813567bb5beea8f62e793d075fe6d3be0b10 ETH0.000688294433 ETH
0x0549a3d52ffe2751eee0ae2270dfc026140207f083f285c759e7ba1b785fd267Update Volatilit...33604662021-11-26 16:36:321 day 7 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN  0xb6645813567bb5beea8f62e793d075fe6d3be0b10 ETH0.000724005214 ETH
0x664d6a43d67c0be6f8afbf53c6968677ac15a8f51c9f315128c34af0594e1cceUpdate Volatilit...33298022021-11-25 16:37:002 days 7 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN  0xb6645813567bb5beea8f62e793d075fe6d3be0b10 ETH0.000766827336 ETH
0x57395f83dc9e544513c60fe5d889262957a4441770bcd712002954ce3337818aUpdate Volatilit...33024892021-11-24 16:36:423 days 7 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN  0xb6645813567bb5beea8f62e793d075fe6d3be0b10 ETH0.000726512007 ETH
0x64f94e5732869bbf441d9e21edd66fdc8b031aa5846887607b5879e7204c6bb0Update Volatilit...32750622021-11-23 16:37:314 days 7 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN  0xb6645813567bb5beea8f62e793d075fe6d3be0b10 ETH0.000754316151 ETH
0x9a6ca65d1e9eb72840aa1a0d35d5d2db17152507966f2846ca68d65ded0b59e9Update Volatilit...32452532021-11-22 16:36:585 days 7 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN  0xb6645813567bb5beea8f62e793d075fe6d3be0b10 ETH0.000749725629 ETH
0x14c255f12d2f739bca14153b95e8a054857b1e18f4b9ff7092a9bb842cdeef7eUpdate Volatilit...32159502021-11-21 16:37:036 days 7 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN  0xb6645813567bb5beea8f62e793d075fe6d3be0b10 ETH0.000656340489 ETH
0x7961ab4d25c4743bc8388d2b90c4b269958a627c95f1191fdd27afe8610bd577Update Volatilit...31791182021-11-20 16:37:247 days 7 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN  0xb6645813567bb5beea8f62e793d075fe6d3be0b10 ETH0.000719634934 ETH
0x28e6971bed6f8ce328330aec3b6cae7ea0e690c20b60a4837dcdbe47b9a8349fUpdate Volatilit...31512902021-11-19 16:36:328 days 7 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN  0xb6645813567bb5beea8f62e793d075fe6d3be0b10 ETH0.000818616648 ETH
0x04df4eb558562ea9ca4658fe1129c5b56b30dbbcd939cd160bf65c5f0053beb6Update Volatilit...31285032021-11-18 16:37:179 days 7 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN  0xb6645813567bb5beea8f62e793d075fe6d3be0b10 ETH0.000843585944 ETH
0x05354b424ec3bb45d347715dc81cfe49ae1f2286724868b1989b08b262125830Update Volatilit...31085622021-11-17 16:37:1510 days 7 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN  0xb6645813567bb5beea8f62e793d075fe6d3be0b10 ETH0.000851966828 ETH
0x083fc49d1e2d86d6e82670652225967c2af73da31261c9e5d4fa61a4677bfb91Update Volatilit...30854972021-11-16 16:37:1311 days 7 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN  0xb6645813567bb5beea8f62e793d075fe6d3be0b10 ETH0.000869883699 ETH
0xa26d6753e76686db03f15a6c6a76358971b09eff04412518a7d46ccadb30443aUpdate Volatilit...30613402021-11-15 16:37:0912 days 7 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN  0xb6645813567bb5beea8f62e793d075fe6d3be0b10 ETH0.000790818514 ETH
0xdfd795c0a177035aed07bd6be1fbf8943537615b74ae769a2d8b32716c075faeUpdate Volatilit...30400262021-11-14 16:37:2613 days 7 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN  0xb6645813567bb5beea8f62e793d075fe6d3be0b10 ETH0.000781758904 ETH
0x0c42a613fdded9077e53e6e272117cae9243d008d2a182889d8e3f3a11f78428Update Volatilit...30185952021-11-13 16:35:3614 days 7 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN  0xb6645813567bb5beea8f62e793d075fe6d3be0b10 ETH0.000861513929 ETH
0xa00f35e96cae984735190c5af28a37fc5e8041dcb9628227b1fcf39e1e8e42d6Update Volatilit...29993532021-11-12 16:36:3715 days 7 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN  0xb6645813567bb5beea8f62e793d075fe6d3be0b10 ETH0.000954615701 ETH
0xec5deb0352a9dc6a0a013f67bc3ac9ddfa1d5c3597a3d6531b3e18c6f69c189cUpdate Volatilit...29782182021-11-11 16:37:2816 days 7 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN  0xb6645813567bb5beea8f62e793d075fe6d3be0b10 ETH0.000977942676 ETH
0xbfd3ab21efa8441ab2b0cc151b0a646d2b454b4a807ba0dfed33c59da7069a68Update Volatilit...29529642021-11-10 16:36:5817 days 7 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN  0xb6645813567bb5beea8f62e793d075fe6d3be0b10 ETH0.000911299648 ETH
0x7f87cc61c68f052712b8d833b7cfeb769946086b124be7de976d0e860cc1b11aUpdate Volatilit...29300282021-11-09 16:37:5018 days 7 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN  0xb6645813567bb5beea8f62e793d075fe6d3be0b10 ETH0.000874980744 ETH
0x7062f38584d49ceafab5098c5ad72dfbfbc9f2e2b11c5db036586600ac7496f9Update Volatilit...29091602021-11-08 16:37:2919 days 7 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN  0xb6645813567bb5beea8f62e793d075fe6d3be0b10 ETH0.000693002306 ETH
0x4ce95f4da07a89d5f7bc3402155f86a61af4f2ac1c396fcaf157eacad65ac9d1Update Volatilit...28893572021-11-07 16:37:2820 days 7 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN  0xb6645813567bb5beea8f62e793d075fe6d3be0b10 ETH0.000658875779 ETH
0xa399ca38cc166707ea42d5c40e62cda9e42383b0a7906918aa3e4ca1d5a25cdeUpdate Volatilit...28704262021-11-06 16:37:3421 days 7 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN  0xb6645813567bb5beea8f62e793d075fe6d3be0b10 ETH0.000805925498 ETH
0x183fa7c9992e5ca2b4efba138f82032dd4b4bab0548f5bf9342c5ca3da6e7434Update Volatilit...28515382021-11-05 16:36:4122 days 7 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN  0xb6645813567bb5beea8f62e793d075fe6d3be0b10 ETH0.000895223478 ETH
0x7e43921a8022ed160cd0e1eef263ff9eef0d4bb9faf825fcbb24eb0cb530837fUpdate Volatilit...28315012021-11-04 16:37:0323 days 7 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN  0xb6645813567bb5beea8f62e793d075fe6d3be0b10 ETH0.000949925289 ETH
0x58120918511c07ce2226b900805ad1929263fd82402cf9c5de30b12808951321Update Volatilit...28119922021-11-03 16:36:3624 days 7 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN  0xb6645813567bb5beea8f62e793d075fe6d3be0b10 ETH0.001003094051 ETH
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
VolatilityOracle

Compiler Version
v0.8.4+commit.c7e474f2

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

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 () {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), 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 {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

File 2 of 4 : Context.sol
// SPDX-License-Identifier: MIT

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) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

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

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

File 4 of 4 : VolatilityOracle.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 VolatilityOracle is Ownable, IVolatilityOracle {
    /*==== PUBLIC VARS ====*/

    uint256 public lastVolatility;

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

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

        lastVolatility = v;

        return v;
    }

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

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

        return lastVolatility;
    }
}

Settings
{
  "evmVersion": "istanbul",
  "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":"iv","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"}]

608060405234801561001057600080fd5b50600080546001600160a01b031916339081178255604051909182917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506103eb806100616000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c80632834a7c8146100675780633af2888b1461008d578063715018a6146100955780638843be741461009f5780638da5cb5b146100a8578063f2fde38b146100c3575b600080fd5b61007a610075366004610368565b6100d6565b6040519081526020015b60405180910390f35b61007a610171565b61009d6101dc565b005b61007a60015481565b6000546040516001600160a01b039091168152602001610084565b61009d6100d136600461033a565b610250565b600080546001600160a01b0316331461010a5760405162461bcd60e51b815260040161010190610380565b60405180910390fd5b816101685760405162461bcd60e51b815260206004820152602860248201527f566f6c6174696c6974794f7261636c653a20566f6c6174696c6974792063616e60448201526706e6f7420626520360c41b6064820152608401610101565b50600181905590565b6000600154600014156101d55760405162461bcd60e51b815260206004820152602660248201527f566f6c6174696c6974794f7261636c653a204c61737420766f6c6174696c6974604482015265079203d3d20360d41b6064820152608401610101565b5060015490565b6000546001600160a01b031633146102065760405162461bcd60e51b815260040161010190610380565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b0316331461027a5760405162461bcd60e51b815260040161010190610380565b6001600160a01b0381166102df5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610101565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60006020828403121561034b578081fd5b81356001600160a01b0381168114610361578182fd5b9392505050565b600060208284031215610379578081fd5b5035919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260408201526060019056fea2646970667358221220408b7f624b343f93736819040482816da2a99bbd34a0548eea466009655837f264736f6c63430008040033

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.