Verified contractPartial
KrakenTicker
Address0xa7a84a60f0b98ae161bf356946d8e4ddc3b9c5bc
- Balance
0 ETH
- Transactions
105
- Compiler
solc 0.1.6
- Same code
Only this contract
Details
- Compiler
- solc 0.1.6+commit.d41f8b7c
- Language
- solidity
- Optimization
- No
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 441,246
- Creation transaction
- 0xb39fbe34a5…ca29e52006
KrakenTicker.sol
// Recovered by EthereumHistory (ethereumhistory.com) -sw
contract OraclizeI {
function query(uint timestamp, string datasource, string arg) returns (bytes32 id);
function cb_address() returns (address);
function getPrice(string datasource) returns (uint);
}
contract OraclizeAddrResolverI {
function getAddress() returns (address addr);
}
contract KrakenTicker {
address owner;
function KrakenTicker() {
owner = msg.sender;
}
string public ETHXBT;
function __callback(bytes32 myid, string result) {
OraclizeI oraclize = OraclizeI(OAR.getAddress());
if (msg.sender != oraclize.cb_address()) throw;
ETHXBT = result;
update();
}
function() {
update();
}
function update() {
OraclizeI oraclize = OraclizeI(OAR.getAddress());
oraclize.send(oraclize.getPrice("URL"));
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);
}
OraclizeAddrResolverI OAR = OraclizeAddrResolverI(0x1d11e5eae3112dbd44f99266872ff1d07c77dce8);
}
Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": false
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.