Technical due diligence
How to Evaluate Technical Risk in a DeFi Protocol
Technical due diligence should explain how a protocol can lose funds or fail to operate, what evidence supports the current design, and which uncertainties remain. A single audit badge or total-value-locked figure does not answer those questions.
Establish the evaluation target
Identify the networks, contract addresses, versions, assets, governance modules, and operational services being evaluated. A repository may contain several deployments or code that does not match production. The evaluation should connect conclusions to the actual system under review.
Define the decision the review must support. An investor comparing protocols, a team planning an integration, and a user assessing custody risk may need different depth and different questions.
Map value flows and privileged authority
Trace how assets enter, move within, and leave the protocol. Identify where accounting is updated, where external value is imported, and which actions can mint, burn, pause, upgrade, reprice, or withdraw. Include the effective controllers of multisigs, timelocks, governance, and operational keys.
The existence of a timelock or multisig is not enough. Review its threshold, signers, delay, cancellation rights, emergency path, and ability to bypass the expected process. Concentrated authority may be acceptable for a stated stage, but its impact should be visible.
Review external and economic dependencies
List oracle markets, bridges, liquidity venues, collateral assets, keepers, indexers, RPC providers, and integrated protocols. For each dependency, ask what happens if it is manipulated, unavailable, delayed, or upgraded. Include second-order exposure, such as a collateral asset that itself depends on a bridge.
Economic review should examine liquidation incentives, oracle behavior, liquidity depth, bad-debt handling, governance incentives, and extreme market conditions. Code that correctly implements an incentive model can still produce unsafe outcomes when the model’s assumptions fail.
Assess implementation and assurance evidence
Review code structure, test coverage of critical behavior, invariant and fuzz testing, audit scope, unresolved findings, remediation, and deployment verification. Coverage percentages alone do not show whether the most important failure modes were tested.
An audit should be interpreted with its commit, scope, exclusions, date, and findings. A report covering a different version or excluding the protocol’s most privileged module provides limited evidence for the deployed system.
- Verify source and deployment correspondence where possible.
- Track unresolved and accepted findings, not only the number of fixed issues.
- Look for tests of invariants and adverse conditions rather than only successful user flows.
- Review monitoring, incident response, key management, and upgrade rehearsal.
Produce a decision-oriented risk record
For each material risk, record the scenario, affected assets, preconditions, evidence, controls, detection, residual uncertainty, and possible next action. Qualitative rankings are often more honest than precise scores unsupported by data. Irreversible and systemic risks deserve separate visibility.
The conclusion can support acceptance, conditional acceptance, further investigation, or rejection without claiming certainty. A useful review gives decision-makers a clear set of assumptions to monitor after the initial evaluation is complete.
To distinguish design evidence from implementation assurance, see Architecture Review vs Smart Contract Audit.
Primary documentation and further reading
These sources describe the underlying protocols and tools. They are provided for technical verification and further study.