Back to Home

exchange

Exchange / DEX
0xb3455568222f...3e59ad5f06b4
FrontierContract #986Exact Bytecode MatchEdit this contract
Deployed September 8, 2015 (10 years ago)Block 204,780

The exchange example from the ethereum dapp-bin standardized contract APIs, whose deleteOrder lets anyone cancel anyone else's order.

Frontier EraVerified Source

Context

Deployed 8 September 2015, during the Frontier era.

Key Facts
Deployer
collectibletrust.eth (0x8394a0...a0b8a8)
Deployment Block
204,780
Deployment Date
Sep 8, 2015, 09:09 PM
Code Size
1.5 KB
Gas at Deploy
443,263

Description

The exchange contract from the standardized contract APIs directory of the ethereum dapp-bin repository, an order book that escrows one token and settles it against another. placeOrder pulls the offered amount from the caller with sendCoinFrom, records an Order holding the creator, both token addresses and both amounts, and returns the new order id, or zero when the pull fails. claimOrder pulls the wanted amount from the caller to the order creator, sends the escrowed amount to the caller, emits Traded under a currency pair key packed from the top sixteen bytes of each token address, and clears the record. deleteOrder returns the escrowed amount to the order creator and clears the record, and it checks nothing at all: any address can close any open order at any time, and the funds go to the creator rather than to the caller, so the hole is a way to cancel other people's orders rather than to steal from them.

Source Verified

Exact bytecode match(1,563 bytes)
Compiler: v0.1.1+
Heuristic Analysis

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

Detected Type: Exchange / DEX

Bytecode Overview

Opcodes1,563
Unique Opcodes100
Jump Instructions31
Storage Operations41

External Links

Related contracts