ETH Price: $1,850.37 (-1.77%)

Transaction Decoder

Block:
6667150 at Nov-08-2018 04:00:44 PM +UTC
Transaction Fee:
0.00028492 ETH $0.53
Gas Used:
28,492 Gas / 10 Gwei

Emitted Events:

52 KICKPriceOracle.PriceChanged( newPrice=12147600000000000000000 )

Account State Difference:

  Address   Before After State Difference Code
0x13CB49BF...eF8dcEC47
(Nanopool)
8,214.151638124637256522 Eth8,214.151923044637256522 Eth0.00028492
0xB0EdD05A...B7134b7EE
0.737994706783960656 Eth
Nonce: 13031
0.737709786783960656 Eth
Nonce: 13032
0.00028492

Execution Trace

KICKPriceOracle.updatePrice( _newPrice=12147600000000000000000 )
pragma solidity ^0.4.24;

contract KICKPriceOracle {

    mapping (address => bool) admins;

    // How much KICK you get for 1 ETH, multiplied by 10^18
    uint256 public ETHPrice = 8954340000000000000000;

    event PriceChanged(uint256 newPrice);

    constructor() public {
        admins[msg.sender] = true;
    }

    function updatePrice(uint256 _newPrice) public {
        require(_newPrice > 0);
        require(admins[msg.sender] == true);
        ETHPrice = _newPrice;
        emit PriceChanged(_newPrice);
    }

    function setAdmin(address _newAdmin, bool _value) public {
        require(admins[msg.sender] == true);
        admins[_newAdmin] = _value;
    }
}