Contract 0x0F9ACBCc0A97d6b915DAd5db4176f2BCB2eDCA63

 
Txn Hash
Block
From
To
Value [Txn Fee]
0x0893142b2e5d90b1702b86ab6b9f8a0a1c044998e25653e8803b9758fb12847533484162020-12-23 11:46:3070 days 5 hrs agoDitto: Deployer IN  0x0f9acbcc0a97d6b915dad5db4176f2bcb2edca630 BNB0.00054734
0x42f749af53808c1470af9e81a5db39bbb594b28e55b2a6ad512f77bb106ff60317643782020-10-29 9:57:59125 days 7 hrs agoDitto: Deployer IN  0x0f9acbcc0a97d6b915dad5db4176f2bcb2edca630 BNB0.00084686
0x972e17398e298103a3c9ee42e4ad73be1ff76625b4200c7f8a253b190a46673b17643732020-10-29 9:57:44125 days 7 hrs agoDitto: Deployer IN  Contract Creation0 BNB0.0042816
[ Download CSV Export 
Latest 5 internal transactions
Parent Txn Hash Block From To Value
0x2110365d03f659fbdbe599dddf3c44e226d16ca3b40f04594d2f9b2cbb72d3a433489852020-12-23 12:14:5770 days 4 hrs ago 0xdae0b6f111c62010a8dc6a003b02053c004cffc1 0x0f9acbcc0a97d6b915dad5db4176f2bcb2edca630 BNB
0x2110365d03f659fbdbe599dddf3c44e226d16ca3b40f04594d2f9b2cbb72d3a433489852020-12-23 12:14:5770 days 4 hrs ago 0xdae0b6f111c62010a8dc6a003b02053c004cffc1 0x0f9acbcc0a97d6b915dad5db4176f2bcb2edca630 BNB
0xe52ec208733488ef684f0b928a67036d930d3bede8722c26053002599c74f3c133441842020-12-23 8:14:3770 days 8 hrs ago 0xdae0b6f111c62010a8dc6a003b02053c004cffc1 0x0f9acbcc0a97d6b915dad5db4176f2bcb2edca630 BNB
0xe52ec208733488ef684f0b928a67036d930d3bede8722c26053002599c74f3c133441842020-12-23 8:14:3770 days 8 hrs ago 0xdae0b6f111c62010a8dc6a003b02053c004cffc1 0x0f9acbcc0a97d6b915dad5db4176f2bcb2edca630 BNB
0x97c074936573e834877d3bc335936fe345a7cd344d625f66d714153dfaae2a9133441782020-12-23 8:14:1970 days 8 hrs ago 0xdae0b6f111c62010a8dc6a003b02053c004cffc1 0x0f9acbcc0a97d6b915dad5db4176f2bcb2edca630 BNB
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SimpleOracle

Compiler Version
v0.5.17+commit.d19bba13

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at BscScan.com on 2020-10-29
*/

// SPDX-License-Identifier: MIT

/*
MIT License

Copyright (c) 2020 Ditto Money

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/

pragma solidity 0.5.17;

interface IOracle {
    function getData() external view returns (uint256);
    function update() external;
}

/**
 * @title Ownable
 * @dev The Ownable contract has an owner address, and provides basic authorization control
 * functions, this simplifies the implementation of "user permissions".
 */

contract Ownable {
  address private _owner;

  event OwnershipRenounced(address indexed previousOwner);
  event OwnershipTransferred(
    address indexed previousOwner,
    address indexed newOwner
  );


  /**
   * @dev The Ownable constructor sets the original `owner` of the contract to the sender
   * account.
   */
  constructor() public {
    _owner = msg.sender;
  }

  /**
   * @return the address of the owner.
   */
  function owner() public view returns(address) {
    return _owner;
  }

  /**
   * @dev Throws if called by any account other than the owner.
   */
  modifier onlyOwner() {
    require(isOwner());
    _;
  }

  /**
   * @return true if `msg.sender` is the owner of the contract.
   */
  function isOwner() public view returns(bool) {
    return msg.sender == _owner;
  }

  /**
   * @dev Allows the current owner to relinquish control of the contract.
   * @notice Renouncing to ownership will leave the contract without an owner.
   * It will not be possible to call the functions with the `onlyOwner`
   * modifier anymore.
   */
  function renounceOwnership() public onlyOwner {
    emit OwnershipRenounced(_owner);
    _owner = address(0);
  }

  /**
   * @dev Allows the current owner to transfer control of the contract to a newOwner.
   * @param newOwner The address to transfer ownership to.
   */
  function transferOwnership(address newOwner) public onlyOwner {
    _transferOwnership(newOwner);
  }

  /**
   * @dev Transfers control of the contract to a newOwner.
   * @param newOwner The address to transfer ownership to.
   */
  function _transferOwnership(address newOwner) internal {
    require(newOwner != address(0));
    emit OwnershipTransferred(_owner, newOwner);
    _owner = newOwner;
  }
}


contract SimpleOracle is IOracle, Ownable {
 
    uint256 price;

    function setData(uint256 _price) external onlyOwner {
        price = _price;
    }
    
    function getData() external view returns (uint256) {
        return (price);
    }

    function update() external {
        // Not implemented
    }
}

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"}],"name":"OwnershipRenounced","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"constant":true,"inputs":[],"name":"getData","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setData","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"update","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]

6080604052600080546001600160a01b03191633179055610288806100256000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c80638da5cb5b1161005b5780638da5cb5b146100c35780638f32d59b146100e7578063a2e6204514610103578063f2fde38b1461010b5761007d565b80633bc5de30146100825780635b4b73a91461009c578063715018a6146100bb575b600080fd5b61008a610131565b60408051918252519081900360200190f35b6100b9600480360360208110156100b257600080fd5b5035610137565b005b6100b961014d565b6100cb6101a6565b604080516001600160a01b039092168252519081900360200190f35b6100ef6101b5565b604080519115158252519081900360200190f35b6100b96101c6565b6100b96004803603602081101561012157600080fd5b50356001600160a01b03166101c8565b60015490565b61013f6101b5565b61014857600080fd5b600155565b6101556101b5565b61015e57600080fd5b600080546040516001600160a01b03909116917ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482091a2600080546001600160a01b0319169055565b6000546001600160a01b031690565b6000546001600160a01b0316331490565b565b6101d06101b5565b6101d957600080fd5b6101e2816101e5565b50565b6001600160a01b0381166101f857600080fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b039290921691909117905556fea265627a7a7231582004f55b38ebd8166c8fbf8c55cf16f349f6deff611e276ca0c1815929ab83c33b64736f6c63430005110032

Deployed ByteCode Sourcemap

3292:329:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3292:329:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3463:84;;;:::i;:::-;;;;;;;;;;;;;;;;3366:85;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;3366:85:0;;:::i;:::-;;2584:116;;;:::i;1925:72::-;;;:::i;:::-;;;;-1:-1:-1;;;;;1925:72:0;;;;;;;;;;;;;;2227:85;;;:::i;:::-;;;;;;;;;;;;;;;;;;3555:63;;;:::i;2867:103::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2867:103:0;-1:-1:-1;;;;;2867:103:0;;:::i;3463:84::-;3533:5;;3463:84;:::o;3366:85::-;2118:9;:7;:9::i;:::-;2110:18;;;;;;3429:5;:14;3366:85::o;2584:116::-;2118:9;:7;:9::i;:::-;2110:18;;;;;;2661:6;;;2642:26;;-1:-1:-1;;;;;2661:6:0;;;;2642:26;;;2692:1;2675:19;;-1:-1:-1;;;;;;2675:19:0;;;2584:116::o;1925:72::-;1962:7;1985:6;-1:-1:-1;;;;;1985:6:0;1925:72;:::o;2227:85::-;2266:4;2300:6;-1:-1:-1;;;;;2300:6:0;2286:10;:20;;2227:85::o;3555:63::-;:::o;2867:103::-;2118:9;:7;:9::i;:::-;2110:18;;;;;;2936:28;2955:8;2936:18;:28::i;:::-;2867:103;:::o;3110:173::-;-1:-1:-1;;;;;3180:22:0;;3172:31;;;;;;3236:6;;;3215:38;;-1:-1:-1;;;;;3215:38:0;;;;3236:6;;;3215:38;;;3260:6;:17;;-1:-1:-1;;;;;;3260:17:0;-1:-1:-1;;;;;3260:17:0;;;;;;;;;;3110:173::o

Swarm Source

bzzr://04f55b38ebd8166c8fbf8c55cf16f349f6deff611e276ca0c1815929ab83c33b
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.