Verified contractPartial
KICKPriceOracle
Address0x13cb49bfbb653795c69846b0c139ad3ef8dcec47
- Balance
0 ETH
- Transactions
17,829
- Compiler
solc 0.4.25
- Same code
Only this contract
Details
- Compiler
- solc 0.4.25+commit.59dbf8f1
- Language
- solidity
- Optimization
- Yes, 200 runs
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 6,354,164
- Creation transaction
- 0x1914a1c6de…3c39da22ef
KICKPriceOracle.sol
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;
}
}Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": true
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.