Back to Home

ManagedAccount

Utility
0x02a279618fb9...1ccaf2d79791
HomesteadSource VerifiedEdit this contract
Deployed July 11, 2016 (10 years ago)Block 1,865,454

The DAO's ManagedAccount: it counts every wei it receives, and only its owner may pay out, optionally to nobody but the owner.

Homestead EraVerified Source

Historical Significance

The DAO separated the money it was holding for different purposes into accounts of this kind rather than tracking them in one balance, so that the arithmetic of what belonged to whom was enforced by which contract held it. The running accumulatedInput total, which only ever goes up, is what let the accounting be audited from outside.

Context

The DAO raised its funds in the spring of 2016 and was drained that June, after which its code was copied and redeployed repeatedly by people building smaller organisations on the same design. This account belongs to one of those deployments rather than to the original.

Key Facts
Deployment Block
1,865,454
Deployment Date
Jul 11, 2016, 12:45 PM
Code Size
356.0 B

Description

A holding account from The DAO's contract set. Its constructor fixes an owner and a flag, payOwnerOnly, and neither can be changed afterwards. The fallback function accepts ether and adds it to accumulatedInput, a public running total of everything ever sent in, which is never decreased when money leaves.

payOut(recipient, amount) may only be called by the owner, refuses to accept ether of its own, and when payOwnerOnly is set will pay nobody but the owner. The transfer is made with a raw call, and a failed call returns false rather than reverting.

It was created inside the deployment transaction of a DAO contract, which builds two of these in its constructor: one for the rewards it receives and one for the extra balance held back from token creation.

Heuristic Analysis

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

Detected Type: Utility

Bytecode Overview

Opcodes356
Unique Opcodes91
Jump Instructions22
Storage Operations10

External Links

Related contracts