Back to Home

SwapContract

Part of The Anthony Eufemio Collection
0x9624498ae822...19ec9caaad30
HomesteadSource VerifiedEdit this contract
Deployed May 14, 2016 (10 years ago)Block 1,518,591

A fixed price counter for selling DGX gold tokens for ether

Homestead EraVerified Source

Historical Significance

An over the counter sale desk for a gold backed token written as sixty lines of Solidity, from the period before any exchange contract existed to route the trade.

Context

Deployed in the Homestead era, four months after DGX began issuing, when selling a token still meant running your own counter.

Key Facts
Deployment Block
1,518,591
Deployment Date
May 14, 2016, 11:49 PM
Code Size
1011.0 B
Transactions by Year
20164

Description

SwapContract holds a seller address, the address of the DGX token at 0x55b9a11c2e8351b4ffc7b11561148bfac9977855, and a price in wei per token. A buyer sends ether and the contract moves the corresponding DGX from the seller using an allowance the seller granted in advance, forwarding the ether on. The seller can change the price or withdraw at any time, and the contract never custodies the tokens. It was created by another contract rather than by a transaction, so there is no creation bytecode to compare; the on chain storage confirms the seller, the token address and the price the source implies. Deployed on 14 May 2016.

Bytecode Overview

Opcodes1,011
Unique Opcodes94
Jump Instructions56
Storage Operations18

External Links

Related contracts