Back to Home

StopLoss

Unclassified
0xaa2035b83c92...23833b9f400d
FrontierContract #2,593Exact Bytecode MatchEdit this contract
Deployed October 24, 2015 (11 years ago)Block 432,859

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
432,859
Deployment Date
Oct 24, 2015, 02:30 PM
Code Size
2.2 KB
Gas at Deploy
520,141
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,226 bytes)
Compiler: v0.1.6+

Exact runtime match, soljson v0.1.6+commit.d41f8b7c, optimizer on, fresh compiler process. Source StopLoss_0xaa2035b8.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,226
Unique Opcodes135
Jump Instructions77
Storage Operations20

External Links

Related contracts