Back to Home

StopLoss

Unclassified
0xdb292b3df18d...dd24847db73c
FrontierContract #2,615Exact Bytecode MatchEdit this contract
Deployed October 24, 2015 (11 years ago)Block 433,387

Oraclize demo that asks ShapeShift for an ETH-to-BTC deposit address and parses it onchain: the building block of a stop-loss.

Frontier EraVerified Source
Key Facts
Deployment Block
433,387
Deployment Date
Oct 24, 2015, 04:50 PM
Code Size
2.4 KB
Gas at Deploy
560,134
Transactions by Year
20151

Description

One of three StopLoss contracts Oraclize deployed in 2015 to show a contract driving an exchange. update() asks Oraclize to POST to ShapeShift's sendamount API for a 0.2 ETH to BTC conversion paying out to a fixed Bitcoin address. When Oraclize calls back with the deposit address ShapeShift issued, the contract converts the hex string into an Ethereum address and stores it. Funds sent to that address would then be converted to BTC, which is the mechanism behind an automated stop-loss. The source was reconstructed and reproduces the deployed runtime byte for byte with soljson v0.1.6, optimizer off.

Source Verified

SolidityExact bytecode match(2,409 bytes)
Compiler: v0.1.6+

Exact runtime match, soljson v0.1.6+commit.d41f8b7c, optimizer on, fresh compiler process. Source StopLoss_0xdb292b3d.sol in the proof folder.

Heuristic Analysis

The following characteristics were detected through bytecode analysis and may not be accurate.

Detected Type: Unclassified
Contains SELFDESTRUCT opcode

Bytecode Overview

Opcodes2,409
Unique Opcodes135
Jump Instructions78
Storage Operations21

External Links

Related contracts