What should a Sonic smart contract audit check?

A Sonic smart contract audit should cover your Solidity and what Sonic adds around it: Fee Monetization, which pays apps for the gas their contracts use, a base fee that sits at a floor, and tokens that arrive through the Sonic Gateway with their own trust assumptions. QuillShield audits the Solidity code of a Foundry project that targets Sonic.

Last updated . 5 minute read. By the QuillAudits Team.

What is different about auditing on Sonic?

The Sonic docs and the OpenZeppelin audit of the Gateway describe the parts of Sonic that change a review.

  • Fee Monetization pays apps for gas. Sonic sends 90% of network fees to its Fee Monetization (FeeM) contract, 5% to validators, and burns 5%. The VM traces every internal call and splits the reward by the gas each registered contract used, off-chain oracles confirm the usage, and a project claims its share on the FeeM contract (Fee Monetization docs). For upgradeable code you register the proxy, because gas used through delegatecall is credited to the proxy address.
  • A base fee that sits at a floor. The minimum base fee is 50 gwei, the block base fee usually stays there, and it rises only when more than 50% of the network gas budget is spent. The gas pricing docs add that a high gasUsedRatio does not signal congestion on Sonic. Code that reads block.basefee to detect congestion, or to size keeper rewards, behaves differently from Ethereum.
  • Gateway transfers arrive in batches. The Sonic Gateway bundles deposits at a heartbeat every 10 minutes from Ethereum to Sonic and hourly in reverse, unless someone pays a Fast Lane fee for an immediate one, and a deposit takes about 15 minutes to finalize on Ethereum. If the Gateway or Sonic is down for 14 consecutive days, users can reclaim bridged assets on Ethereum, and that period cannot be changed after deployment.
  • Gateway tokens come with trust assumptions. The Gateway mints a token on Sonic when a user proves a deposit locked on Ethereum against a state root that relay validators post. In its audit of the Gateway (September to October 2024), OpenZeppelin noted that the relays must stay honest, that admin roles sit with multisigs, and that a compromised DEFAULT_ADMIN_ROLE on ExitAdministrator could grant itself the role needed to drain TokenDeposit.

What happened to Beets on Sonic in the Balancer V2 exploit?

Beets, a Balancer V2 fork on Sonic, was one of the forks hit when the Balancer V2 bug was exploited on 3 November 2025.

Protocol Beets (Balancer V2 fork)
Date 3 November 2025
Chain Sonic
Loss about $3.8M at Beets, per CertiK
What happened Beets ran the same Balancer V2 composable stable pool code, whose swap math rounds the requested output down, and CertiK lists the Beets loss at $3.8M. Sonic Labs froze attacker-linked wallets at the chain level. CertiK reports that the attacker got around the freeze and laundered funds to ETH, while Our Crypto Talk describes the assets on Sonic as contained with limited leakage through permit-based tokens. In January 2026 Sonic Labs paid 5,829,196 recovered S to affected Beets users, and Our Crypto Talk reports that it gave up unilateral freeze powers.
Sources CertiK, Coinspeaker, Our Crypto Talk

A protocol on Sonic should not count on a chain-level freeze and needs its own pause and recovery paths. A fork also inherits the bugs of the code it copies (rounding and precision errors).

Which protocol types need the most care on Sonic?

  • Every app registered for Fee Monetization, where the registered proxy and the rewards recipient belong in the review like any treasury address.
  • Lending markets and vaults that accept Gateway tokens as collateral, which take on the Gateway relays and admin roles as trust assumptions.
  • Bridges and cross-chain apps built on the Gateway, which have to handle heartbeat delays and the 14-day fail-safe.
  • Keepers, auctions and fee logic that read block.basefee or gas usage.

Which vulnerabilities matter most on Sonic?

  • Cross-chain message validation. Gateway deposits and withdrawals rest on Merkle proofs against state roots that relays post, so code built on them must check the proof path and the token pair.
  • Front running. OpenZeppelin found that user-provided deposit and withdrawal IDs in the Gateway could collide, which could let an attacker front-run a user into a denial of service.
  • Denial of service. The same audit found a selfdestruct attack that could block payFastLane until the next update.
  • Access control. FeeM rewards and Gateway admin roles are money paths, and one compromised admin role can open the others (access control).
  • Rounding and precision errors. The Balancer V2 rounding flaw reached Sonic through Beets, so forked pool math needs the same review as the original (rounding and precision).

What should a reviewer check on Sonic?

  • Which proxy is registered for Fee Monetization, who controls the registration, and where the rewards go.
  • That each upgrade keeps the same proxy address, so FeeM attribution follows it.
  • Every read of block.basefee or gas usage, against a base fee that sits at 50 gwei.
  • Every Gateway token the protocol accepts, and what the protocol does during a heartbeat delay or the 14-day fail-safe.
  • Any code that builds on Gateway proofs or deposit IDs.
  • Forked code, such as a Balancer V2 pool, checked against the security notices of its upstream project.
  • Pause and recovery paths that work without a chain-level freeze.

How do you run QuillShield on a Sonic project?

QuillShield audits Solidity in Foundry projects, which covers the contracts a team deploys to Sonic.

  1. Put the proxies you register for Fee Monetization and their implementations in scope, since rewards follow the proxy address.
  2. In the audit context, name the FeeM rewards recipient, the Gateway tokens the code accepts and any logic that reads the base fee, so findings are judged against Sonic rather than Ethereum.
  3. Read each finding with its lines, impact and fix. A separate reviewer agent tries to disprove each one first, and full audits add a proof of concept result.
  4. Open every upgrade of an implementation behind a registered proxy as a pull request, so a QuillShield check reviews it against the audit before it ships.

Prices run from $49 to $5,429 for 40,000 lines as of November 2026, and anything larger is quoted by hand (pricing). New accounts get $50 in credit, good for up to half of an order.

QuillShield does not replace a manual audit. Request a manual audit from QuillAudits for code built on the Gateway or Fee Monetization, talk to an auditor, or start free.

FAQ

Does Sonic Fee Monetization need code changes?

The Sonic docs ask only for registration. Register the proxy rather than the implementation, because gas used through delegatecall is credited to the proxy, and treat the rewards recipient as a treasury address.

How long do Sonic Gateway transfers take?

Deposits move at a heartbeat every 10 minutes from Ethereum to Sonic and hourly the other way, and a Fast Lane fee triggers one at once. A deposit takes about 15 minutes to finalize on Ethereum.

What happens if the Sonic Gateway stops?

If the Gateway or Sonic is down for 14 consecutive days, users can reclaim bridged assets on Ethereum, and the Sonic docs say that period can't be changed after deployment.

Why does block.basefee barely move on Sonic?

The base fee has a 50 gwei floor and rises only when more than half of the network gas budget is spent, so under normal load it stays at the floor.

Sources

QuillShield is building the security layer between AI and money, so you can keep shipping between audits.

Sign-up is free, and new accounts get $50 in credit, good for up to half of an order.

  1. 1Sign up and import a repo
  2. 2See the exact price before anything is charged
  3. 3Approve it, and the audit starts