Skip to main content
日本語

Smart Contract Audits

Tomohiro Iida · Published April 7, 2026

A smart contract bug cannot be fixed once deployed. This article covers why an audit is necessary, the three main audit methods, how to choose an audit firm, and typical cost and timeline ranges.

Key takeaways

  • A smart contract audit is a third-party security check, before deployment, of an automatically-executing program on a blockchain (typically written in Solidity or Vyper) — because a bug generally cannot be fixed after the contract goes live.
  • The three main methods are static analysis, dynamic testing, and formal verification, typically used in combination.
  • Typical cost ranges from roughly JPY 500,000 for a small, single contract to JPY 8,000,000 or more for a large DeFi protocol, over a timeline of one to two weeks up to two to three months. Ranges vary by audit firm and scope.

Why an audit matters

Once deployed to a blockchain, a smart contract generally cannot be changed. If a bug or vulnerability is discovered afterward, the options are pausing the contract or migrating to a new version — both costly, and both damaging to trust. Past hacks illustrate the scale: the 2022 attack on Ronin Network resulted in losses of roughly JPY 62 billion, and the 2016 DAO hack resulted in losses of roughly JPY 6 billion at the time. Across the DeFi sector as a whole, cumulative hacking losses from 2020 through 2024 have exceeded USD 3 billion.

Three audit methods

A standard audit combines static analysis, dynamic testing, and manual code review. For DeFi protocols and financial STOs requiring the highest security, adding formal verification is also worth considering. Having a test suite with 80%+ coverage in place beforehand can reduce both audit cost and duration.

Three criteria for choosing an audit firm

Domestically in Japan, using an English-speaking overseas audit firm (such as Certik or OpenZeppelin) is the common route, but a domestic vendor can also be a valid option where Japanese-language support or familiarity with domestic regulation matters. Scope, contract terms, and confidentiality clauses should all be made explicit up front.

Cost and timeline

Audit cost varies considerably by code volume, complexity, chain, and audit firm. The following are rough market ranges for commissioning an external audit firm.

TierCost rangeTimelineScope
SmallJPY 500,000 – 2,000,0001–2 weeksA single contract, 1,000 lines of code or fewer, potentially including standard implementations like ERC-20/ERC-721 (example: a simple NFT contract, a DAO voting contract)
StandardJPY 2,000,000 – 8,000,0003–6 weeksA mid-size project with multiple interdependent contracts, or the core functions of a DeFi protocol (example: a DEX pair contract, a staking protocol)
EnterpriseJPY 8,000,000+2–3 monthsA large-scale DeFi protocol, cross-chain support, or a high-security project that includes formal verification (example: a lending protocol, a bridge contract, an STO platform)

Building toward audit readiness from early in development, with test coverage in mind from the start, is the most effective way to lower audit cost. Incorporating a security review at the design stage can reduce the number of issues an audit later finds.

Summary

Because a smart contract cannot be changed once deployed, an audit before going live is essential. Many of the largest past hacks trace back to insufficient auditing. The three audit methods — static analysis, dynamic testing, and formal verification — are combined according to your use case and required security level, and an audit firm is chosen against three criteria: disclosed track record, technical fit, and remediation support. Cost runs roughly from JPY 500,000 for Small, JPY 2,000,000 for Standard, and JPY 8,000,000 for Enterprise; building toward test readiness from early in development helps keep audit cost down.