Verified contractPartial
KrakenPriceTicker
Address0xed0fd1be60c75d8d59a7bbb352dc626678c724c7
- Balance
0 ETH
- Transactions
2
- Compiler
solc 0.1.6
- Same code
Only this contract
Details
- Compiler
- solc 0.1.6+commit.d41f8b7c
- Language
- solidity
- Optimization
- Yes, 200 runs
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 498,235
- Creation transaction
- 0xb1cd715b75…3df130d6e8
KrakenPriceTicker.sol
// Recovered by EthereumHistory (ethereumhistory.com) -sw
contract OraclizeI {
address public cbAddress;
function query(uint _timestamp, string _datasource, string _arg) returns (bytes32 _id);
function getPrice(string _datasource) returns (uint _dsprice);
}
contract OraclizeAddrResolverI {
function getAddress() returns (address _addr);
}
contract usingOraclize {
OraclizeI oraclize;
modifier oraclizeAPI {
OraclizeAddrResolverI OAR = OraclizeAddrResolverI(0x1d11e5eae3112dbd44f99266872ff1d07c77dce8);
oraclize = OraclizeI(OAR.getAddress());
_
}
function oraclize_query(uint timestamp, string datasource, string arg) oraclizeAPI internal returns (bytes32 id) {
return oraclize.query.value(oraclize.getPrice(datasource))(timestamp, datasource, arg);
}
function oraclize_cbAddress() oraclizeAPI internal returns (address) {
return oraclize.cbAddress();
}
}
contract KrakenPriceTicker is usingOraclize {
address owner;
string public ETHXBT;
function KrakenPriceTicker() {
owner = msg.sender;
update();
}
function __callback(bytes32 myid, string result) {
if (msg.sender != oraclize_cbAddress()) throw;
ETHXBT = result;
}
function update() {
oraclize_query(60, "URL", "json(https://api.kraken.com/0/public/Ticker?pair=ETHXBT).result.XETHXXBT.c.0");
}
function kill() {
if (msg.sender == owner) suicide(msg.sender);
}
}
Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": true
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.