February 2016 fund NAV tracker that logs a fund's net asset value and its trades, linked to per-order Trade contracts.
Historical Significance
An early attempt to run fund administration on Ethereum: NAV prices and fund subscriptions recorded on chain, with each trade linked to its own order contract. It is also an unusual verification case: its bytecode only reproduces from a warm compiler session. The correct source matches on the 6th compile in one soljson session, never on a single fresh compile, which is why one-shot verifiers cannot match it.
Context
Deployed in February 2016, in the last weeks of the Frontier era, when Solidity was at v0.2.x and most developers compiled in browser-solidity, which recompiled the contract on every keystroke. The same developer deployed the version 1.0.2 Trade order contracts that its trade history points to.
Key Facts
Description
A fund NAV (net asset value) tracker, version "1.0.1", deployed on February 23, 2016 (block 1,046,601) by 0x8b9346aa412b52954b5138dbb72adab97273766e. It keeps two on-chain logs for a fund: a NAV price history, appended by setNav(uint32) with a millisecond timestamp, and a trade history, appended by addHistory(address,bool,uint8,uint32,uint64,uint32), where the address is the order contract that carried the trade. get() returns the latest NAV and its timestamp, the version string, the owner, the fund id and the fund's daily trading window (opening and cut-off, in seconds after midnight). kill() self-destructs the contract and has no access control.
This instance was deployed with an initial NAV of 2555, fund id 0 and a trading window of 28800 to 68400 (08:00 to 19:00), and was never used afterwards. A byte-identical instance at 0x41ea839c0e1e562d60bf9675bf74a9caa6a7b80c was used in May and June 2016: on May 24, May 30 and June 7 it recorded a new NAV followed by a BUY trade, each trade pointing at a version "1.0.2" order contract (the Trade contracts this developer's platform used for the subscription lifecycle).
Source Verified
Exact runtime and creation match on the 6th compile of Nav.sol within one soljson v0.2.2 session; a fresh single compile is 117 bytes off (SLOAD scheduling only). verify.js in the proof reproduces the session.
Heuristic Analysis
The following characteristics were detected through bytecode analysis and may not be accurate.
Frontier Era
The initial release of Ethereum. A bare-bones implementation for technical users.
Bytecode Overview
Verified Source Available
Source verified through compiler archaeology and exact bytecode matching.
View Verification ProofShow source code (Solidity)
contract Nav {
struct Entry { address transaction; bool buy; uint8 currency; uint32 volume; uint64 date; uint32 amount; }
struct NavEntry { uint32 nav; uint64 date; }
address owner;
uint64 cut_off;
uint64 opening;
uint64 id_fund;
Entry[] history;
NavEntry[] navHistory;
function Nav(uint32 nav, uint32 _id_fund, uint64 _opening, uint64 _cut_off) {
owner = msg.sender;
navHistory.push(NavEntry(nav, uint64(now * 1000)));
id_fund = _id_fund;
cut_off = _cut_off;
opening = _opening;
}
function kill() { suicide(owner); }
function get() returns (uint64 n, uint64 t, string v, address o, uint64 f, uint u, uint64 op, uint64 c) {
n = navHistory[navHistory.length - 1].nav;
t = navHistory[navHistory.length - 1].date;
v = "1.0.1";
o = owner;
f = id_fund;
op = opening;
c = cut_off;
}
function getNavHistory(uint index) returns (uint64 date, uint32 nav) {
date = navHistory[index].date;
nav = navHistory[index].nav;
}
function getNavLength() returns (uint length) { length = navHistory.length; }
function getLength() returns (uint length) { length = history.length; }
function getHistory(uint index) returns (address transaction, bool buy, uint currency, uint32 volume, uint64 date, uint32 amount) {
transaction = history[index].transaction;
buy = history[index].buy;
currency = history[index].currency;
volume = history[index].volume;
date = history[index].date;
amount = history[index].amount;
}
function setNav(uint32 nav) {
navHistory.push(NavEntry(nav, uint64(now * 1000)));
}
function addHistory(address transaction, bool buy, uint8 currency, uint32 volume, uint64 date, uint32 amount) {
history.push(Entry(transaction, buy, currency, volume, date, amount));
}
}External Links
Related contracts
Store
Same deployerA simple key-value store contract with set, get, and kill functions, deployed during the Frontier era.
0x621492...3512fcDecember 14, 2015AdminCheck
Same deployerA test contract that checks if the caller matches a hardcoded admin address, with kill and get functions.
0x49efab...82c595December 22, 2015AdminCheckV2
Same deployerA test contract that writes a bool flag based on whether the caller matches a hardcoded admin address, with kill, get, and getBool functions.
0x592621...f26259December 22, 2015Greeter
Same eraA HelloWorld greeter deployed at block 51,909 on 8 August 2015, one of a run of contracts from the same account that week.
0x412fda...7267edAugust 8, 2015Greeter
Same eraA Greeter with the message 'Ethereum will change the world smarter' - deployed Aug 8, 2015 by a developer connected to the Tokyo Smart Contract meetup.
0xda0c1c...7a68ebAugust 8, 2015MessageStore
Same eraA 6-line contract storing a single public string, deployed Day 9 of Ethereum by a prolific early experimenter who shipped 18 contracts in one week.
0xd2eccd...ff3d6bAugust 8, 2015