Back to Home

Nav

Utility
0x93fc50922d4a...9196c2a15da1
FrontierContract #10KExact Bytecode MatchEdit this contract
Deployed February 23, 2016 (10 years ago)Block 1,046,601

February 2016 fund NAV tracker that logs a fund's net asset value and its trades, linked to per-order Trade contracts.

Frontier EraVerified Source

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
Deployment Block
1,046,601
Deployment Date
Feb 23, 2016, 06:07 AM
Code Size
2.3 KB
Gas at Deploy
623,259

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

SolidityExact bytecode match(2,337 bytes)
Compiler: soljson

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.

Detected Type: Utility
Contains SELFDESTRUCT opcode

Bytecode Overview

Opcodes2,337
Unique Opcodes155
Jump Instructions72
Storage Operations67

External Links

Related contracts