140-byte referral proxy that forwards ETH into a sale contract's proxyPurchase().
Historical Significance
A concrete artifact of referral-driven token sale mechanics in early 2016: rather than passing a referrer as calldata, the operator deployed one immutable proxy per referrer, so the referral credit was baked into bytecode and could not be spoofed by the buyer. The hardcoded gas stipend dates it precisely - a fixed 106,000 gas allowance was a pre-EIP-150 habit, written before the Tangerine Whistle repricing made hardcoded stipends dangerous.
Key Facts
Description
A 140-byte forwarding proxy with no dispatch table - every call, with or without calldata, runs the same body. It forwards the full msg.value to a sale contract stored in slot 1, invoking proxyPurchase(address) (selector 0x4a5dddd2) and passing a referral address held in slot 0. The call is made with a hardcoded 106,000 gas stipend (0x019e10) and both the call result and the returned boolean are checked, throwing on either failure. Neither storage slot has a public getter, so the target and referral address are fixed at construction and never readable on-chain. Runtime bytecode reproduced byte-for-byte with solc 0.3.0, optimizer enabled. Verified on Sourcify and Etherscan.
Source Verified
Homestead Era
The first planned hard fork. Removed the canary contract, adjusted gas costs.
Bytecode Overview
Verified Source Available
Source verified through compiler archaeology and exact bytecode matching.
View Verification ProofShow source code (Solidity)
// Submitted by EthereumHistory (ethereumhistory.com)
contract Target {
function proxyPurchase(address _ref) returns (bool);
}
contract Proxy {
address ref;
address target;
function() {
if (!Target(target).proxyPurchase.gas(106000).value(msg.value)(ref)) throw;
}
}External Links
Related contracts
TokenSales
Same deployerThe DigixDAO crowdsale contract — the first major DAO token sale on Ethereum, raising $5.5M in under 24 hours in March 2016.
0xf01604...d52843March 29, 2016DigixDAO
Same deployerThe DigixDAO governance token (DGD), representing the first Ethereum crowdsale to reach its funding cap — raising $5.5 million in under 24 hours in March 2016.
0xe0b792...5f0e2aApril 26, 2016