Lending market audits: what they cover and what they miss
Lending protocols advertise audits the way restaurants advertise health
inspections: prominently, and with the implication that the grade proves
safety. Audits do prove something real - code was reviewed by specialists -
and they miss something equally real: everything outside the code. Knowing the
boundary is the difference between reading an audit as evidence and reading it
as comfort.
What audits actually cover
A security audit is a review of code against known vulnerability classes:
- Smart contract bugs: reentrancy patterns, access control gaps, arithmetic
errors, state inconsistency - the defects static analysis and expert review
catch
- Logic correctness: does the implementation match the specification -
interest accrual, liquidation math, parameter handling
- Known attack patterns: the catalog of exploits that have hurt protocols
before, checked against this protocol's code
- Some design feedback: auditors occasionally flag design weaknesses - oracle
dependence, governance powers - beyond pure code
The output is a report: findings by severity, remediation requests, and a
statement of scope - which contracts, which commit, which version.
What audits systematically miss
- Economics and game theory: audits review code, not incentives. A protocol
can be bug-free and still fail through mispriced risk, exploited
governance, or parameters that behave badly under stress. The 2020s'
biggest lending incidents were often economically rational exploits of
correct code.
- Oracle dependence: the audit covers the contracts that consume prices, not
the feeds that produce them. A perfect contract fed a manipulated price
liquidates positions correctly - at the wrong price.
- Governance and operational risk: parameter changes, emergency powers,
upgrade paths, and team behavior live outside the audited code. The
contracts are safe; the decisions around them are not.
- Time: audits freeze a version. Contracts change after the audit - upgrades,
parameter tweaks, new integrations - and the audit's coverage expires with
each change. An audit of last year's code says nothing about this year's
deployment.
- Composition: a protocol integrated into wallets, bridges, and other
protocols inherits risks from the integration surface. The audited contracts
are one piece of a stack.
The reading protocol for audit claims
- Check the scope: which contracts were audited, which version, and which were
excluded - integrations and peripheral contracts are often out of scope
- Check the timing: was the audit before or after the current deployment, and
what changed since
- Check the remediation: were findings fixed, and is the fix public?
- Check the auditor: reputation matters, but so does independence - repeated
audits by the same firm on the same code have diminishing value
- Read past the badge: the audit is one input to due diligence, alongside
track record, parameter design, governance behavior, and incident history
The takeaway
Audits cover code: bugs, logic, known attack patterns - real value, real
limits. They miss economics, oracles, governance, time, and composition - the
failure classes that have actually killed lending protocols. Treat audits as
evidence of review, not proof of safety: check scope, timing, and remediation,
and weigh the badge alongside the parameters, the feeds, and the history. The
audit grades the code; you still grade the system.