# Review Solidity DeFi Accounting and Solvency

DeFi accounting guarantees can be hard to verify across balances, state changes, and external dependencies. This skill maps those relationships and documents source-backed gaps, assumptions, and proposed controls.

## Install

```bash
npx skillstore add flint-research/defi-audit
```

## Metadata

- Status: approved
- Slug: flint-research-defi-audit
- Skillstore revision: r1
- Version status: missing
- Tree hash: 5688cbf563820d4d15eb545b5bc3508ecf3ad977b55ccd640950b0351622c4a4
- Author: flint-research
- GitHub username: flint-research
- Repository: https://github.com/flint-research/skills/tree/b739665d19cd1d924d41c680722e1372867a1bff/auditing/evm-audit/skills/defi-audit
- Ref: d715043e3196bdd213a9eb9e5f78632e50554733
- Supported tools: Claude, Codex, Claude Code
- Audit status: complete
- Agent install advisory: allowed
- Manual install advisory: allowed
- Artifact signature: available
- Audit attestation: unavailable
- Human verification: not\_verified
- Risk factors: network, filesystem
- Quality score: 73
- Public page: https://skillstore.pages.dev/skills/flint-research-defi-audit
- Manifest: https://skillstore.pages.dev/api/skills/flint-research-defi-audit/manifest

## Capabilities

- Map accounting quantities, asset units, rounding directions, update points, and backing assets.
- Distinguish recorded liabilities from observable token balances.
- Review unit conversions, fee treatment, withdrawal coverage, and changes in protocol state.
- Trace oracle dependencies and document assumptions about freshness, supported assets, and configuration.
- Document source-backed exceptions, affected guarantees, and proposed controls separately from scanner leads.

## Use Cases

- Document vault accounting before release: Map asset and share units, rounding rules, and balance updates against the intended design.
- Review withdrawal coverage: Compare recorded liabilities with available backing assets and document which source paths support the withdrawal guarantee.
- Review oracle and liquidation assumptions: Trace dependencies in the supplied design and record configuration assumptions that still need evidence.

## Prompt Templates

### Identify accounting quantities

```
Using only the supplied source and design, list the main accounting quantities, their units, and the assets that back them. Mark unknowns.
```

### Trace fees and rounding

```
Trace fee treatment and rounding through deposits and withdrawals in the supplied source. Cite each relevant calculation and note any mismatch with the stated rules.
```

### Check oracle assumptions

```
Map the oracle dependencies, units, and freshness checks in the supplied Solidity. Cite the protective controls and mark which assumptions still need configuration evidence.
```

### Assess a solvency guarantee

```
Trace the stated withdrawal coverage guarantee across the supplied contracts. Compare recorded liabilities with observable backing assets and identify the state changes that affect them. Cite source-backed exceptions separately from unverified leads, and propose controls.
```

## Limitations

- The review is limited to authorized local Solidity source and supplied designs or evidence.
- The scanned skill does not include the Python CLI or bridge specialist guidance it references.
- The skill does not cover token-market due diligence or transfer tracing.
- Source review does not prove solvency or verify live deployment state.

## Best Practices

- Provide authorized Solidity source, intended economic rules, asset decimals, and relevant configuration.
- Cite the source behind each conclusion and state the units and assumptions it depends on.
- Review each referenced tool before execution and keep unverified leads separate from findings.

## Anti Patterns

- Treating an observed token balance as proof that all recorded liabilities are covered.
- Reporting a scanner lead as confirmed without checking the source.
- Assuming oracle settings or withdrawal behavior that the supplied evidence does not establish.

## Security Audit

- Audited at: 2026-11-29T12:02:22.568\+00:00
- Summary: The skill directs the agent to execute a Python CLI outside the scanned package, so its behavior and access cannot be verified. The fixed bridge documentation reference and the attribution link do not show arbitrary file access or outbound data transfer. No evidence of prompt injection was found.

## Stats

- Views: 0
- Downloads: 0
- Favorites: 0
- Popularity score: 0
