Contract 0xEec2bE5c91ae7f8a338e1e5f3b5DE49d07AfdC81 5

Txn Hash Method
Block
From
To
Value [Txn Fee]
0x7848bf3c99afa2fdf0d02de1cd71de34867921c690ce80a2c7618dddaf828534Update Volatilit...165490562022-06-26 16:38:211 day 7 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN Dopex: AVAX Volatility Oracle0 AVAX0.000816035 27.5
0x5c396a17e723f52565012e684da67171c56851c35846bc8dc377e1e8d2a433d3Update Volatilit...165059392022-06-25 16:38:212 days 7 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN Dopex: AVAX Volatility Oracle0 AVAX0.000816035 27.5
0x0ea6dd5c7bd95b3b0fc28a31629f3ca2625c8be6123eb6be9a008c52e56e33beUpdate Volatilit...164627392022-06-24 16:38:213 days 7 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN Dopex: AVAX Volatility Oracle0 AVAX0.000816035 27.5
0x37d59753b52d61caeb96ec757110e0711283f3345e2430b0db37da58db0f8a15Update Volatilit...164194332022-06-23 16:38:184 days 7 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN Dopex: AVAX Volatility Oracle0 AVAX0.000816035 27.5
0xdc79a88b080171089ed5227d5873c73cad47d43a8c985ec354751dbf2e38a543Update Volatilit...163762652022-06-22 16:38:185 days 7 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN Dopex: AVAX Volatility Oracle0 AVAX0.000816035 27.5
0x227fa024c701d710317c7d1b9a09319382836150225d6f0c1b3f8d1fde1c2457Update Volatilit...163330292022-06-21 16:38:196 days 7 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN Dopex: AVAX Volatility Oracle0 AVAX0.000739035 27.5
0x18548cc67a5f150a6fef8eae8f9681d1569c5dbd34a2678f392eb307dbb0d60fUpdate Volatilit...162898932022-06-20 16:38:267 days 7 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN Dopex: AVAX Volatility Oracle0 AVAX0.000816035 27.5
0x5eba6cbd8c06816d0413a004b4200a83d8d8b11bbe5137d14b036ab3f04a093bUpdate Volatilit...162027862022-06-18 16:38:179 days 7 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN Dopex: AVAX Volatility Oracle0 AVAX0.000816035 27.5
0x27bd0a7afd1bf3206396195fd34144d8c9c24e83ca1091fbf664cd3a22976e2dUpdate Volatilit...161161162022-06-16 16:38:2311 days 7 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN Dopex: AVAX Volatility Oracle0 AVAX0.000816035 27.5
0xa13a83c04570dfac160cfcc687c1b3c37de8b9bec22bdec8bb2099d3106fbb72Update Volatilit...160721972022-06-15 16:38:1712 days 7 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN Dopex: AVAX Volatility Oracle0 AVAX0.000816035 27.5
0x8432c0aca4e3eec8b81cdc40ebf76e1fe8cdd61c716d8b7a709a53c78414a951Update Volatilit...160286832022-06-14 16:38:2213 days 7 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN Dopex: AVAX Volatility Oracle0 AVAX0.000816035 27.5
0x64f27dc9a0a132aad6dd75dae601c72751068382741d6e3da70ed2a5423b411cUpdate Volatilit...159401292022-06-12 16:38:2615 days 7 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN Dopex: AVAX Volatility Oracle0 AVAX0.000739035 27.5
0x3299d251a30b503e9248e4b170f5cd8477feabfb07806bf2c682eb3d45debacdUpdate Volatilit...158967052022-06-11 16:38:2016 days 7 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN Dopex: AVAX Volatility Oracle0 AVAX0.000816035 27.5
0x282f98af25d0f0646d53ff9c1f06b717414fd5bb0fe8f3b1b460789ae881cfa5Update Volatilit...158104872022-06-09 16:38:1918 days 7 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN Dopex: AVAX Volatility Oracle0 AVAX0.000816035 27.5
0xf590f2c832ce26376f1a84a3815348beb9a0184c371994a045765fe81e5690b8Update Volatilit...157243612022-06-07 16:38:2920 days 7 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN Dopex: AVAX Volatility Oracle0 AVAX0.000816035 27.5
0xe8ffdb9838a7df7a5688b0dc38f62f2900f6f2e4037fdba77b894f5a5e559010Update Volatilit...156817462022-06-06 16:38:1921 days 7 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN Dopex: AVAX Volatility Oracle0 AVAX0.000816035 27.5
0xd7ae464b8df431ea8ae5bccab133e6dccc238791d0963f4308092e5e1bfd1f59Update Volatilit...156390602022-06-05 16:38:2222 days 7 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN Dopex: AVAX Volatility Oracle0 AVAX0.000739035 27.5
0xcdaafef81d5f294ae10e07892ea82f6ac99dca1804e9f2efc1ddc3340bf07765Update Volatilit...155961112022-06-04 16:38:2123 days 7 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN Dopex: AVAX Volatility Oracle0 AVAX0.000816035 27.5
0x002461a0d4f39ab1498665c6137e37fc985f205c96cba8b8f1d2c34f208c66cfUpdate Volatilit...155531462022-06-03 16:38:2424 days 7 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN Dopex: AVAX Volatility Oracle0 AVAX0.000816035 27.5
0x7ccd23463d059a051e181b7287f889718efdb9b8d70d045d0123fe549fffffbdUpdate Volatilit...155101152022-06-02 16:38:2225 days 7 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN Dopex: AVAX Volatility Oracle0 AVAX0.000816035 27.5
0x87b6d971d9f52dec07e0dca4d55bb5cc703873bc7de99d55d96b0cca844698d7Update Volatilit...154670082022-06-01 16:38:2226 days 7 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN Dopex: AVAX Volatility Oracle0 AVAX0.000816035 27.5
0x707efdd1e10f140723db50244efe105a3d89daedb74def93e3743fa993004ee3Update Volatilit...153807122022-05-30 16:38:1928 days 7 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN Dopex: AVAX Volatility Oracle0 AVAX0.000816035 27.5
0xb020f433b5c5d91cf622caf9f57ac056d92ec687e3f768c35817891bf718e233Update Volatilit...153376102022-05-29 16:38:1829 days 7 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN Dopex: AVAX Volatility Oracle0 AVAX0.000739035 27.5
0x6e851b9b5d03e12c8aa4525fa88d58a0a0efecc248669494718f6033301b2542Update Volatilit...152948092022-05-28 16:38:1930 days 7 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN Dopex: AVAX Volatility Oracle0 AVAX0.000816035 27.5
0xe8e58cca86d8cac5de6b86a52853aea8dae46ee3dadba6afe956fdff96893d17Update Volatilit...152519322022-05-27 16:38:2031 days 7 hrs ago0xf6ac2908c52400b1db3783675c0d4d279519b841 IN Dopex: AVAX Volatility Oracle0 AVAX0.000816035 27.5
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
AvaxVolatilityOracle

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

    uint256 public lastVolatility;

    /*==== EVENTS ====*/

    event VolatilityUpdated(uint256 volatility);

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

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

        lastVolatility = v;

        emit VolatilityUpdated(v);

        return v;
    }

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

    /**
     * @notice Gets the volatility of AVAX
     * @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",
        "devdoc",
        "userdoc",
        "metadata",
        "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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"volatility","type":"uint256"}],"name":"VolatilityUpdated","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"}]

608060405234801561001057600080fd5b5061001a3361001f565b61006f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6103e48061007e6000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c80632834a7c8146100675780633af2888b1461008d578063715018a6146100955780638843be741461009f5780638da5cb5b146100a8578063f2fde38b146100c3575b600080fd5b61007a610075366004610330565b6100d6565b6040519081526020015b60405180910390f35b61007a6101a4565b61009d61020f565b005b61007a60015481565b6000546040516001600160a01b039091168152602001610084565b61009d6100d1366004610349565b610245565b600080546001600160a01b0316331461010a5760405162461bcd60e51b815260040161010190610379565b60405180910390fd5b816101685760405162461bcd60e51b815260206004820152602860248201527f566f6c6174696c6974794f7261636c653a20566f6c6174696c6974792063616e60448201526706e6f7420626520360c41b6064820152608401610101565b60018290556040518281527f1276a26a4529e590f6273e7d6e346c19a05777b11bd46ccd46e43832b0a297569060200160405180910390a15090565b6000600154600014156102085760405162461bcd60e51b815260206004820152602660248201527f566f6c6174696c6974794f7261636c653a204c61737420766f6c6174696c6974604482015265079203d3d20360d41b6064820152608401610101565b5060015490565b6000546001600160a01b031633146102395760405162461bcd60e51b815260040161010190610379565b61024360006102e0565b565b6000546001600160a01b0316331461026f5760405162461bcd60e51b815260040161010190610379565b6001600160a01b0381166102d45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610101565b6102dd816102e0565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561034257600080fd5b5035919050565b60006020828403121561035b57600080fd5b81356001600160a01b038116811461037257600080fd5b9392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260408201526060019056fea26469706673582212200ff82dd164f6027929977b852157ed9a7f4fea7bd530009c3995cfd8ba769d2864736f6c63430008090033

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