Security
What has been checked, what has not, and the limits in place until it has.
is the most that can be waiting in the vault to be spent, in total, until an outside audit is done. The contract refuses any deposit past it. Interest is not counted.
What was run
Seven rounds. The first four each fixed what the last one found and ran everything again. The fifth was four separate read-throughs before the source was published. The sixth fixed four of the contract findings and narrowed two it could not close. A re-review showed one of those was looser than we had said, and it was narrowed again. The seventh was seven separate audits, each following a different published method, then six reviews of the fixes. It found nothing rated medium or above, and its four contract fixes are in. The findings and the fixes are written up in the repository.
What is still open
Two findings rated medium are narrowed, not closed. Both are reasons the vault holds $5,000 at most for now.
- A pushed pool. A buy is refused when the pool's price is more than about 1% from any of its last five one-minute averages. Someone with enough money who holds the pool off its price for minutes, or for a few seconds in each of five minutes, can still pass that check. That pays only when Chainlink's price is above the market's, which is why the vault does not buy on weekends. A smaller push that stays inside that 1% is not refused at all: on one stock, SNDKc, it can pay whoever makes it a few dollars at the $5,000 limit and cost a plan about 0.5% of that buy. That risk is accepted, and the limit will not go up without measuring every stock again.
- One admin key for two jobs. The same key controls the vault and the price oracle. After 48 hours in public it could point a stock at a wrong price feed, and buys after that could fill at a bad price, up to one buy per plan in each period.
What each one can cost you is on Risks.
Who can do what
The full list of what the admin can change, and how long each change waits, is on Limits.
Contracts
Every address the vault talks to is on Contracts.
Found something?
Write to security@dcavault.xyz before telling anyone else. There is no paid bounty yet.