Verified contractPartial
Shapeshift
Address0x8a871f2212035a74eff856ccf2c9c2438cd4ade1
- Balance
0 ETH
- Transactions
3
- 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
- 432,475
- Creation transaction
- 0x36d3186418…f90c5ae5f5
Shapeshift.sol
// Recovered by EthereumHistory (ethereumhistory.com) -sw
contract OraclizeI {
function query(uint timestamp, string datasource, string arg, string arg2) returns (bytes32 id);
function cb_address() returns (address);
}
contract Shapeshift {
address public shapeshift;
OraclizeI oraclize = OraclizeI(0xcbf44b4df14b264062afa9f2486142335a983857);
function Shapeshift() {
update();
}
function __callback(bytes32 myid, string result) {
if (msg.sender != oraclize.cb_address()) throw;
bytes memory tmp = bytes(result);
uint160 iaddr = 0;
uint160 b1;
for (uint i = 2; i < 3; i++) {
iaddr *= 16;
b1 = uint160(tmp[i]);
if ((b1 >= 97) || (b1 <= 102)) b1 -= 87;
else if ((b1 >= 48) || (b1 <= 57)) b1 -= 48;
iaddr += b1;
}
shapeshift = address(iaddr);
}
function update() {
oraclize.query(0, "URL", "json(https://shapeshift.io/sendamount).success.deposit", "{\"pair\": \"eth_btc\", \"amount\": \"0.2\", \"withdrawal\": \"1AAcCo21EUc1jbocjssSQDzLna9Vem2UN5\"}");
}
function kill() {
suicide(msg.sender);
}
}
Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": false
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.