InsightsBLOCKCHAIN

What a smart contract audit checks, and what it cannot

Blockchain team
6 min read
BLOCKCHAIN
Share this post
Why audits matter more on chain

Ordinary software can be patched quietly after a bug is found. A deployed smart contract usually cannot, and it often holds funds that anyone in the world can try to take. That changes the cost of a mistake, and it is why an independent review before launch has become standard practice.

It also means founders sometimes treat the audit report as a certificate. It is not. Understanding what an audit covers helps you get far more from it.

What auditors look for
  • Access control: who can call each function, upgrade the contract or move funds
  • Reentrancy and the order of state changes around external calls
  • Arithmetic edge cases, rounding and precision loss
  • Price and oracle manipulation, including flash loan scenarios
  • Denial of service through gas limits or unbounded loops
  • Upgrade and initialisation mistakes in proxy patterns
  • Whether the code actually does what the specification says

A good audit combines manual review with automated tools such as static analysis and fuzzing. The manual part is where most serious findings come from, because the worst bugs are usually logic errors that tools cannot recognise as wrong.

What an audit cannot cover

Auditors review a specific commit within a fixed scope and time. Code changed after that commit is not audited. Contracts outside the scope are not audited. Off-chain parts of the system, such as the backend that signs transactions or the keys that control an admin role, are often not audited at all, and they are a frequent point of failure.

An audit also cannot judge your economic design. If a token or lending model can be drained by perfectly correct code used in an unexpected way, that is a design question that needs its own review.

How to prepare

Audits are paid for in time, so anything that saves the auditor time buys more depth. We prepare every codebase in the same way:

  • A written specification of what each contract must and must not allow
  • A test suite with high branch coverage, including failure cases
  • Fuzz and invariant tests for the core accounting
  • Our own internal review, with known issues already fixed
  • A frozen commit and a clear list of in-scope files
After the report

Fix every finding, including the low severity ones that are cheap to fix, and ask the auditors to review the fixes. Keep admin keys in a multisig with a timelock on upgrades. Set up monitoring for unusual transactions from day one, and consider a bug bounty once the contracts are live. Security on chain is a process that starts before the audit and continues long after it.

Next article
Measuring latency honestly: why p99 matters more than the average

An average latency figure hides the moments that cost money. How we measure, report and budget latency in trading systems.

Start a project

Let’s discuss your objectives.

A new product, a complex integration, or a trading platform. Share your goals, and we will define a clear path to delivery.