Verified contractPartial
Shapeshift
Address0x0f08c0ef99c6d04b784e65a80ce99dd3a74ab1de
- 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
- No
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 432,454
- Creation transaction
- 0x2ebedf77fa…a452ab0a9d
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 < 22; i++) {
iaddr *= 256;
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.