Back to Home

TokenTrader

Utility
0x476298ad29ee...39eea7dc817a
DAO ForkSource VerifiedEdit this contract
Deployed October 6, 2016 (9 years ago)Block 2,389,877

A TokenTrader quoting Augur's REP against ether at a fixed spread, in lots of 100,000 token units.

DAO Fork EraVerified Source

Historical Significance

An order book kept by a contract rather than an exchange, at a time when trading a token meant finding a counterparty or trusting a custodian. Each trader holds one asset at fixed prices with an explicit spread, which is a market maker without a matching engine: the liquidity is whatever the owner deposited and the price does not move with it.

Context

Deployed in late 2016 and early 2017, after ERC-20 had settled the transfer interface but before automated market makers with a pricing curve existed. Trading a token then meant a centralised exchange listing it or a contract like this one quoting a fixed price.

Key Facts
Deployment Block
2,389,877
Deployment Date
Oct 6, 2016, 09:38 AM
Code Size
1.8 KB
Transactions by Year
20169

Description

A trading contract from the TokenTrader set: an automated market maker in a single ERC-20 asset, funded by its owner and priced in wei per lot rather than per token. The asset address, the lot size and the prices are fixed in the constructor and no function changes them.

A buyer sends ether and receives whole lots of the token, with any remainder refunded. The contract never sells more lots than it holds. The owner may deposit ether, withdraw ether, withdraw the traded asset, and withdraw any other token that arrives by mistake.

The switches that turn buying and selling on and off are exposed through activate(), which carries no owner check, so any account can stop or restart the contract's trading.

This one trades Reputation, the Augur token at 0x48c80f1f4d53d5951e5d5438b54cba84f29f32a5. Its lot is 100,000 token units; it buys a lot for 65,000 wei and sells one for 65,325 wei, a spread of half a percent, and it was created with both sides switched on.

Heuristic Analysis

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

Detected Type: Utility

Bytecode Overview

Opcodes1,824
Unique Opcodes168
Jump Instructions125
Storage Operations35

External Links

Related contracts