Contract 0x9118dbc12dc5979dabce6782739b020b8908a6cb 1

Txn Hash Method
Block
From
To
Value [Txn Fee]
0x0d732c157b9faf9ca052010f1c16c3c063a94eebeb8cc63bb9dc32fbac7ff716Transfer Ownersh...76480402021-12-01 2:01:38300 days 4 hrs ago0x3f09e942b0089b8af73ccb9603da8064b6c4b637 IN  0x9118dbc12dc5979dabce6782739b020b8908a6cb0 AVAX0.00072219926425.276468719
0xf9bc1374825e4d859762c661cbc30f6dbb895e788324469a768b41db6c06cdfd0x6080604076476092021-12-01 1:47:13300 days 5 hrs ago0x3f09e942b0089b8af73ccb9603da8064b6c4b637 IN  Create: PriceOracle0 AVAX0.0075726525
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PriceOracle

Compiler Version
v0.8.6+commit.11564f7e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 4 : PriceOracle.sol
pragma solidity 0.8.6;


import "Ownable.sol";
import "IPriceOracle.sol";


contract PriceOracle is IPriceOracle, Ownable {


    uint private _AUTOPerETH;
    uint private _gasPrice;


    constructor(uint AUTOPerETH, uint gasPrice) Ownable() {
        _AUTOPerETH = AUTOPerETH;
        _gasPrice = gasPrice;
    }

    function getAUTOPerETH() external override view returns (uint) {
        return _AUTOPerETH;
    }

    function updateAUTOPerETH(uint AUTOPerETH) external onlyOwner {
        _AUTOPerETH = AUTOPerETH;
    }

    function getGasPriceFast() external override view returns (uint) {
        return _gasPrice;
    }

    function updateGasPriceFast(uint gasPrice) external onlyOwner {
        _gasPrice = gasPrice;
    }
}

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

pragma solidity ^0.8.0;

import "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() {
        _setOwner(_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 {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 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) {
        return msg.data;
    }
}

File 4 of 4 : IPriceOracle.sol
pragma solidity 0.8.6;


interface IPriceOracle {

    function getAUTOPerETH() external view returns (uint);

    function getGasPriceFast() external view returns (uint);
}

Settings
{
  "evmVersion": "istanbul",
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"AUTOPerETH","type":"uint256"},{"internalType":"uint256","name":"gasPrice","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"getAUTOPerETH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getGasPriceFast","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":"AUTOPerETH","type":"uint256"}],"name":"updateAUTOPerETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"gasPrice","type":"uint256"}],"name":"updateGasPriceFast","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5060405161040438038061040483398101604081905261002f91610096565b61003833610046565b6001919091556002556100ba565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080604083850312156100a957600080fd5b505080516020909101519092909150565b61033b806100c96000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c80638da5cb5b1161005b5780638da5cb5b146100b25780639e26d580146100d2578063ba19f12f146100e4578063f2fde38b146100ec57600080fd5b80634ed3eebe14610082578063715018a6146100975780638d47c3ba1461009f575b600080fd5b6100956100903660046102b7565b6100ff565b005b610095610137565b6100956100ad3660046102b7565b61016d565b6000546040516001600160a01b0390911681526020015b60405180910390f35b6001545b6040519081526020016100c9565b6002546100d6565b6100956100fa366004610287565b61019c565b6000546001600160a01b031633146101325760405162461bcd60e51b8152600401610129906102d0565b60405180910390fd5b600255565b6000546001600160a01b031633146101615760405162461bcd60e51b8152600401610129906102d0565b61016b6000610237565b565b6000546001600160a01b031633146101975760405162461bcd60e51b8152600401610129906102d0565b600155565b6000546001600160a01b031633146101c65760405162461bcd60e51b8152600401610129906102d0565b6001600160a01b03811661022b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610129565b61023481610237565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561029957600080fd5b81356001600160a01b03811681146102b057600080fd5b9392505050565b6000602082840312156102c957600080fd5b5035919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260408201526060019056fea2646970667358221220034b5c9d131fac3dddab3a509eed7e037c951814c782901897aac41c5f3437dd64736f6c6343000806003300000000000000000000000000000000000000000000006c6b935b8bbd40000000000000000000000000000000000000000000000000000000000000b2d05e00

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

00000000000000000000000000000000000000000000006c6b935b8bbd40000000000000000000000000000000000000000000000000000000000000b2d05e00

-----Decoded View---------------
Arg [0] : AUTOPerETH (uint256): 2000000000000000000000
Arg [1] : gasPrice (uint256): 3000000000

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000006c6b935b8bbd400000
Arg [1] : 00000000000000000000000000000000000000000000000000000000b2d05e00


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.