Your tokenization from US$5,000
← Blog
Smart Contract Audit: Cost, Timeline and How to Prepare
November 11, 2026·By Key Lab·Editorial team

Smart Contract Audit: Cost, Timeline and How to Prepare

In short: There is no standard rate. According to QuillAudits, a simple token costs $1,000–$15,000 to audit and a typical DeFi protocol $20,000–$100,000. Zealynx puts standard DeFi at $50,000–$100,000 and 3 to 6 weeks. You need an external audit if the contract holds third-party funds, is upgradeable, issues a regulated token or contains novel logic. And an audit alone isn't enough: the largest theft of 2025 targeted the signing interface, not the contract.

What a smart contract audit is, and what it doesn't guarantee

A smart contract audit is an independent review of your contract code before you deploy it to a network such as Ethereum, Polygon or Base. Auditors read the code, run tests and automated tools, and compare what the contract actually does with what your business says it should do. The output is a report with findings ranked by severity, recommendations and, usually, a second pass that confirms the fixes were applied correctly.

What an audit does not do is certify that your project is secure. It reviews one specific version of the code (a commit, meaning a fixed snapshot recorded in the repository) within a defined scope. It doesn't cover anything you change afterwards, who controls the admin keys, or the web interface used to sign transactions.

That limit matters more than it seems. According to Chainalysis data published by The Block, more than $3.41 billion in crypto was stolen between January and early December 2025. Hacks of personal wallets and private key leaks at centralized services grew, while hacks of DeFi protocols stayed relatively low. The biggest case of the year, Bybit, at $1.4–1.5 billion depending on the source, was not a contract bug: attackers injected malicious JavaScript into the Safe{Wallet} interface used by the signers of its multisig (a wallet that requires several signatures). For reference, the OWASP Smart Contract Top 10 for 2026 was built from 122 contract-level incidents in 2025, totaling about $905.4 million in losses. These are different datasets, but the practical takeaway is clear: an audit covers one part of the risk, and operations cover the rest.

Does my project need an external audit, or is an internal review enough?

Not every contract justifies an audit costing tens of thousands of dollars. The decision depends on how much money could be lost, whose money it is and how novel the code is:

FactorInternal review may be enoughExternal audit recommended
Funds at stakeTestnet pilot or test amountsThe contract receives, holds or moves real money
Whose moneyYour company's, in limited amountsInvestors', customers' or users'
Code originStandard, already-audited libraries, unmodifiedNew logic or modified standards
UpgradeabilitySimple, immutable contractUpgradeable proxy with admin roles
RegulationInternal utility token, no promise of returnsSecurity token, ERC-3643, KYC/AML, yield distribution
IntegrationsNo calls to other contractsPrice oracles, bridges, other DeFi protocols

If any row of your project lands in the right-hand column, budget for an external audit before going to mainnet (the main network, with real money). An escrow that holds customer payments, a real estate tokenization platform or a staking contract almost always falls there. A membership token for a loyalty program, built on a standard library and with no financial value, can usually be handled with good tests, static analysis and a rigorous internal review.

As a general rule, an internal review, however rigorous, does not replace an independent external auditor when third-party funds are involved. What it does do is shorten the audit and make it more useful, because the auditor receives frozen, tested and documented code.

What a smart contract audit reviews

The most common vulnerabilities according to OWASP 2026

OWASP publishes a ranking of smart contract risks based on real incidents. The 2026 edition looks like this:

#RiskWhat it means for your business
1Access controlSomeone without permission runs admin, minting or upgrade functions
2Business logicThe code does what it says, but the rules allow value to be extracted
3Price oracle manipulationA tampered external price triggers improper payouts or liquidations
4Flash loan attacksInstant loans that amplify any logic or pricing flaw
5Lack of input validationUnbounded parameters that break calculations or permissions
6Unchecked external callsThe contract assumes another call succeeded when it didn't
7Arithmetic errorsRounding and division that, repeated, leak money
8ReentrancyAn external contract calls back before the balance is updated
9Integer overflow/underflowNumbers that wrap around and produce absurd balances
10Proxy and upgradeabilityUpgrade mechanisms that are misconfigured or poorly governed

The changes from the 2025 list in the OWASP archive tell you where to focus. Access control stays first; business logic rises to second (it was third); reentrancy, the classic textbook example, drops from fifth to eighth; and proxy and upgradeability enters as a new category. OWASP describes access control failures as capable of leading to "full protocol compromise" when admin, governance or upgrade paths are exposed, and logic flaws as design errors that allow value extraction even when low-level checks look correct. In plain terms: the audit should start with permissions, rules and upgrades, not with the textbook bug list.

Permissions and admin keys

Every privileged function (minting tokens, pausing, changing an oracle, withdrawing funds) is a point of failure. A good auditor builds a map of who can call each function and the worst thing they could do with it. Ask for the scope to include the deployment configuration: which wallet holds each role on launch day. A flawless contract whose admin role lives in a developer's personal wallet is still a business risk.

Upgradeability: who can change the contract

Upgradeable contracts use a proxy, an intermediary contract that lets you swap out the logic without changing the address. That helps fix bugs after launch, but it also means someone can change the rules after investors are already in. The audit should review proxy initialization, storage compatibility between versions and, above all, upgrade governance: whether it requires multiple signatures and whether there is a waiting period before execution. Every new version is unaudited code.

Business logic and compliance rules in ERC-3643 tokens

ERC-3643 is the standard for regulated tokens that can only be held by verified investors. In the official specification, the owner role appoints and removes agents, and both the token contract and the identity registry must support that agent role. In other words, there are accounts with operational powers over the tokens and over who is listed as a verified investor.

That changes the audit question. It isn't enough for the code to work; you need to verify that the contract's rules match the legal structure. If the offering documents say there's a cap on investors or a 12-month lockup, does the contract enforce it? Who holds the agent role, and with how many signatures? An ERC-3643 audit checklist published by QuillAudits is a useful reference: only an agent can register or remove identities, tokens are minted only to verified identities, and only the intended roles can mint, burn or pause.

If your use case is real estate, see our guide to real estate tokenization in Colombia and its legal framework. Regulatory points are general information: always confirm them with a lawyer who specializes in your jurisdiction.

How much does a smart contract audit cost and how long does it take in 2026?

There is no standard rate, and almost all public figures come from firms that sell audits. Putting them side by side shows the spread:

SourceSimple projectMedium complexityComplex systemsStated timeline
QuillAuditsBasic token: $1,000–$15,000Typical DeFi: $20,000–$100,000Bridges and multichain: $50,000+Not specified
ZealynxSimple token: $5,000–$15,000Standard DeFi: $50,000–$100,000Bridges, L1s and ZK rollups: $150,000–$500,000+Standard DeFi: 3–6 weeks
Procur3Custom ERC-20 (200–500 lines): $1,000–$10,000NFT (500–1,500 lines): $3,000–$30,000; staking or vaults (1,000–3,000 lines): $5,000–$60,000Not specified1–2 weeks (ERC-20), 2–3 (NFT), 3–4 (staking)
Bitgo LabsFocused review: $2,000–$5,000Standard review with fuzzing and fix verification: $5,000–$12,000Deep review with formal verification: $12,000+1–2, 2–4 and 4+ weeks

Two notes for reading the table correctly. Procur3 also lists prize pools of $10,000 to more than $200,000 for audit contests (public competitive audits); we left them out of the columns because they're an audit format, not a complexity tier. And Bitgo Labs organizes its tiers by review depth, not by project type: its $12,000+ deep review is not the same as auditing a bridge or a complex protocol, which other sources place much higher. For example, Datawallet estimates that bridges, zero-knowledge circuits and novel architectures often reach $80,000–$250,000 or more.

Why the numbers don't match

  • Auditor-weeks, not lines of code. Zealynx publishes a rate of $6,000 per auditor per week. Two auditors for three weeks is already $36,000, even if the contract is short.
  • Logic density. Five hundred lines of a standard ERC-20 look nothing like five hundred lines of compliance rules or yield calculations.
  • Fix review. Some quotes include it and others don't. QuillAudits budgets $60,000–$120,000 for a medium-complexity DeFi launch including one round of fix verification.
  • Code maturity. Code without tests or documentation forces the auditor to spend days figuring out what it should do.
  • Chain and depth. Zealynx says auditing on Solana costs 20–30% more than the Ethereum equivalent; fuzzing and formal verification push the price up.

On timelines, sources range from 1 to 6 weeks of review: Procur3 cites 1–2 weeks for an ERC-20 and 3–4 for staking; Bitgo Labs, 1–2 to more than 4 weeks depending on depth; Zealynx, 3–6 weeks for standard DeFi. Add the time to fix issues and the follow-up verification, and book your slot early so it doesn't squeeze your launch date.

If your budget is tight, Zealynx lists alternatives: free static analysis tools, AI-assisted review, public audit contests, bug bounties and time-boxed senior review sessions starting around $500–$2,500. The same source warns that free tools and AI review carry no professional liability. Use them as a complement, not a substitute, when third-party funds are at stake.

How to prepare your code before an audit: a practical checklist

Every day the auditor spends understanding what your contract should do is a day you pay for without finding vulnerabilities. This preparation shortens the audit and makes it more useful:

  1. Freeze the code. Deliver a fixed commit. Auditing code that keeps changing is a common and expensive mistake: the report ends up describing a version that never reaches production.
  2. Write the business rules in plain language. Who can do what, how money flows and what must never happen (for example, "total supply never exceeds the registered value of the asset").
  3. Build a roles and permissions matrix. Every privileged function, which role runs it and which wallet or multisig will hold that role in production.
  4. Document the upgrade strategy. Is the contract upgradeable? Who approves a change, and with how many signatures? Is there a waiting period?
  5. Cover the code with automated tests. Include negative cases: unauthorized calls, zero amounts, maximum limits, transfers to unverified addresses.
  6. Run static analysis and fix the trivial issues. Don't pay a senior auditor to find warnings a free tool would catch.
  7. Use standard libraries unmodified whenever possible, and flag any changes you made to them.
  8. List external dependencies. Oracles, other contracts, bridges and your assumptions about how they behave.
  9. Prepare reproducible deployment scripts and a working version on testnet.
  10. Assign a technical lead available throughout the audit to answer questions the same day.
  11. Set aside budget and calendar time for fixes and for the follow-up verification.

Audit types and tools: what each one adds

TypeWhat it doesWhen it fitsLimit
Manual reviewAuditors read the code and business logicWhenever third-party funds are involvedDepends on the reviewers' experience
Static analysisTools detect known error patternsFrom day one of developmentDoesn't understand your business rules
Fuzzing (random-input testing)Generates thousands of inputs to break invariantsContracts with complex calculations and stateOnly finds what your invariants describe
Formal verificationMathematically proves contract propertiesCritical logic with a lot of value at stakeExpensive and slow; needs precise specifications
AI-assisted reviewModels flag possible flawsCheap, fast first filterNo professional liability; false positives
Audit contestMany researchers compete for prizesProtocols with budget and mature codeHigh prize pools; variable results
Bug bountyPays whoever reports vulnerabilities after launchContracts already in productionDoesn't replace pre-launch review

Public contests move serious money: according to Datawallet, Cantina contests have paid out $46.7 million across more than 200 protocols. For a small or mid-sized company, the practical order is usually: automated tools during development, external manual review before mainnet, and a bug bounty afterwards.

How to choose an auditor and read the report

What to ask before you hire

The smart contract audit firms mentioned in this article (QuillAudits, Zealynx, Bitgo Labs and others) appear as examples drawn from the sources, not as recommendations. To compare any proposal, ask:

  • Who are the assigned auditors, and how many auditor-weeks does the quote include?
  • Have they audited contracts like yours (EVM, ERC-3643, escrows, staking)? Ask for previous public reports.
  • Does the scope specify the commit, the files and the deployment configuration?
  • Is fix review included? How many rounds?
  • What happens if they find something critical that requires a redesign?

Be wary of anyone who quotes without seeing the code, promises a "100% secure" contract or hands you a seal in two days. Many of the criteria in our guide on how to choose a custom software development company apply here too: written scope, verifiable deliverables and named owners.

How to read an audit report

  • Severity: findings are usually ranked critical, high, medium, low and informational. Critical and high are non-negotiable.
  • Status of each finding: fixed, acknowledged or unresolved. "Acknowledged" means the team chose not to change it; ask for the justification.
  • Audited commit vs. deployed contract: check that the code on-chain matches the reviewed version. A report on a different version is worth little.
  • Scope exclusions: what wasn't reviewed matters as much as what was.

Operational security: what to do after deployment

The Bybit case, on February 21, 2025, shows why a multisig isn't enough if every signer trusts the same interface. According to The Hacker News, the attack originated in the Safe{Wallet} supply chain, and the FBI attributed it to North Korea. Chainalysis, cited by CoinDesk, estimates that hackers linked to that country stole at least $2 billion in 2025, 51% more than the previous year.

The minimum for a project in production:

  • A multisig with independent signers and devices. Verify what you're signing on the hardware wallet itself, not just on the web screen.
  • Separation of roles. Whoever can pause shouldn't be able to upgrade, and whoever mints shouldn't be able to withdraw funds.
  • A waiting period for upgrades and sensitive parameter changes, so there's time to react.
  • On-chain monitoring of privileged functions, large transfers and oracle changes, with alerts routed to specific people.
  • An incident response plan: who decides to pause, how investors are informed and which legal steps follow.
  • Secrets managed outside the code. Keys exposed in repositories are a frequent risk in rushed projects, as we explain in our article on the security risks of vibe coding.
  • A re-audit after every upgrade that touches logic or permissions.

How we do it at Key Lab

Our starting point is the same on every project: we adapt the technology to your company, not your company to the technology. With smart contracts, that means understanding the business rules and the legal structure first, and only then writing Solidity. A rule mistranslated into code is exactly the kind of business logic flaw OWASP ranks second.

We work in four phases: Diagnosis and Architecture; Prototyping and MVP; Security, QA and Optimization; and Deployment and Growth. Security isn't a stamp at the end: in phase 03 we put the code through stress testing and smart contract security audits before it reaches production.

For tokenization we follow five steps:

  1. Structuring and analysis of the asset, its economic model and its legal and regulatory framework.
  2. Token and contract design, custom-built (ERC-20, ERC-721, ERC-1155, and ERC-3643 when there are compliance rules).
  3. Audit and security: we test and audit every contract to strengthen the security of funds and investors.
  4. Platform and issuance, with KYC/AML onboarding where applicable and an asset management dashboard.
  5. Distribution and support in the primary market and, where applicable, the secondary market.

We build mainly on EVM networks (Ethereum, Polygon, Base and Arbitrum), with blockchain architects on the team, and we structure every tokenization project together with its legal component. An MVP is usually ready in about 4 weeks; tokenization projects with a legal structure can take longer, and after the diagnosis we deliver a clear timeline. If you want the full picture first, read our asset tokenization guide.

Frequently asked questions

Does an audit guarantee my smart contract is secure?

No. An audit reviews a specific version of the code within a defined scope and reduces risk, but it doesn't eliminate it. It doesn't cover later changes, admin keys or signing interfaces, which is where the largest theft of 2025 happened. Combine it with operational security and monitoring.

Do I need to re-audit after upgrading the contract?

Yes, if the upgrade touches logic, permissions or storage. Every new version is code the previous report didn't cover. For small changes, a scoped review of the diff (the differences between versions) may be enough, as long as the auditor confirms it doesn't affect the rest of the system.

Is a public audit contest worth it for a small company?

It depends on your budget and code maturity. According to Procur3, public contest prize pools range from $10,000 to more than $200,000, and results vary with how many researchers take part. For many smaller companies, a well-scoped private audit followed by a post-launch bug bounty delivers more.

When in the project should I book the audit?

Book your slot with the auditor once the architecture is defined, but start the review only with frozen, tested code. Plan the schedule with room for fixes and a second verification before deploying to mainnet. Booking at the last minute often forces a launch with open findings.

Can I audit my contract with AI tools alone?

AI-assisted review is a good, cheap first filter, but it carries no professional liability and produces false positives. It also doesn't know your business rules or your legal structure. Use it during development, not as a replacement for human review when third-party money is at stake.


Are you launching a token, an escrow or a tokenization platform and not sure what level of audit you need? Book a meeting with our team: we'll understand your goals, assess technical feasibility and define the scope; then you'll receive a proposal with architecture, timeline and budget. If you prefer, email us at contacto@keylab.tech.