Skip to content
Verified contractPartial

KrakenTicker

Address0xe5a07c796f6eaeb810e2857b6f253b1cf59f2dc4
Balance

0 ETH

 

Transactions

23

 

Compiler

solc 0.1.6

 

Same code

2 more contracts

 

Details

Compiler
solc 0.1.6+commit.d41f8b7c
Language
solidity
Optimization
No
License
Not stated
Match
Partialcreation code: no, runtime code: yes
Verified on Sourcify
Created in block
437,575
Creation transaction
0xc7cac21662…eea029021e

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() {
        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.