What should a Berachain smart contract audit check?
A Berachain smart contract audit pairs the Solidity review you would run on Ethereum, since Berachain runs an EVM-identical execution layer, with a review of every place your code touches Proof of Liquidity, from reward vaults and their incentive tokens to BGT redemption and the HONEY stablecoin. QuillShield audits the Solidity code of a Foundry project that targets Berachain.
What is different about auditing on Berachain?
Execution on Berachain works like Ethereum, so the differences sit in the economics that Proof of Liquidity adds on top. Quantstamp audited the Berachain contracts that run it from November 2024 to January 2025, and its report is the main source below.
- EVM-identical execution. Immunefi describes Berachain as an EVM-identical L1 built on BeaconKit, a modular consensus client framework, and the bug bounty scope added bera-reth, a Rust execution client built with the Reth SDK, on 6 April 2026. Solidity behaves as it does on Ethereum, so Ethereum bug classes and their fixes apply unchanged.
- Reward vaults pay for liquidity. Validators direct BGT emissions to reward vaults, which pay the liquidity providers or users who stake there, and users can stake BGT to boost a validator. Vaults also hold incentive tokens that a project adds, each paid at a rate per BGT. In its audit report, Quantstamp noted that the cap allows up to 1e18 incentive tokens per BGT emitted, which can drain an incentive balance quickly. The Berachain team said the limit is intentional.
- BGT is soulbound, and redemption depends on a balance. Halborn describes the Proof of Liquidity governance token as soulbound. BGT redeems for BERA at 1:1, but Quantstamp found that redemption depends on the BERA balance of the BGT contract and on the consensus layer, so the contracts alone cannot guarantee it.
- HONEY has a basket mode. HONEY, the native stablecoin, is minted and redeemed against collateral vaults in
HoneyFactory. When a collateral asset depegs or is blacklisted, the factory switches to basket mode, and mint and redeem use a proportional basket of collateral instead of a single asset (Quantstamp). - One party can hold several roles. Quantstamp also flagged that the same entity can act as validator, liquidity provider and booster, cycling BGT to concentrate governance and reward power. The team mitigated it with a concave reward curve, a stake cap per validator and the option to blacklist reward vaults through governance.
What happened to BEX in the Balancer V2 exploit?
BEX, the Berachain DEX, is a Balancer V2 fork, so the Balancer V2 bug exploited on 3 November 2025 reached it too.
| Protocol | BEX (Balancer V2 fork) |
|---|---|
| Date | 3 November 2025 |
| Chain | Berachain |
| Loss | about $12.4M drained, $12.8M recovered |
| What happened | The attacker used a precision flaw in Balancer V2 composable stable pools, where the requested output of a swap is scaled and rounded down, and repeated tiny swaps until the pool priced wrong. On Berachain the attack hit BEX pools, mainly the Ethena/Honey tripool, and CertiK lists the BEX loss at $12.4M. Berachain validators halted the network so the core team could run an emergency hard fork, and on 5 November 2025 the Berachain Foundation confirmed it had recovered $12.8M. |
| Sources | CertiK, The Block, crypto.news |
A fork inherits the bugs of the code it copies, so a review of forked contracts has to track the security notices of the upstream project as well as the changes the fork made (rounding and precision errors).
Which protocol types need the most care on Berachain?
Apps that plug into Proof of Liquidity share a few patterns, and each one fails in its own way.
- Pools and vaults that stake LP or receipt tokens in a reward vault, where the risk is reward accounting and an incentive balance that runs dry.
- Protocols that pool BGT or issue a liquid version of it, where the risk is a redemption the BGT contract cannot pay.
- Anything that mints, redeems or prices HONEY, where basket mode changes what a redemption returns.
- Aggregators and routers such as Ooga Booga, which Zellic described in February 2025 as the native aggregator on Berachain, where one route can touch every pool above.
Which vulnerabilities matter most on Berachain?
- Reward accounting errors. Reward vault payouts and incentive balances are accounting code, and an incentive rate set near the cap empties a balance fast.
- Governance attack. BGT is the governance token and boosts steer future emissions, which is why Quantstamp flagged one party holding the validator, liquidity provider and booster roles at once.
- Rounding and precision errors. A rounding flaw inherited from Balancer V2 drained BEX, and incentive rates per BGT or reward rates in WAD turn one wrong unit into a large payout (rounding and precision).
- Access control. Whoever can set incentive rates, add incentive tokens or change vault parameters decides how fast those balances drain (access control).
- Oracle price manipulation. A HONEY or LP price read from one pool can be moved, and basket mode changes what HONEY redeems for (oracle price manipulation).
What should a reviewer check on Berachain?
- Who can set the incentive tokens and rates of your reward vault, and what happens when the incentive balance reaches zero.
- Reward accounting for stakers in the vault, including a deposit or withdrawal in the same block as a reward update.
- Any promise to redeem BGT for BERA, and the path when the BGT contract cannot pay.
- Every HONEY mint and redeem, and how the code handles getting a basket of collateral back.
- Units: incentive rates per BGT, reward rates in WAD, and the decimals of each incentive token.
- Forked code, such as a Balancer V2 pool, checked against the security notices of its upstream project.
How do you run QuillShield on a Berachain project?
Berachain runs Solidity as Ethereum does, so a Foundry project goes into QuillShield unchanged, and the work is in telling the audit what Proof of Liquidity expects.
- Put every contract that touches Proof of Liquidity in scope: the vault or pool, the code that stakes into reward vaults, and any HONEY or BGT integration.
- In the audit context, list the privileged roles that set incentive tokens and rates, the trust assumptions about BGT redemption, and what your code expects HONEY to redeem for.
- Check findings on reward math and incentive balances against the live vault parameters before launch. Each finding that holds up comes with its exact lines, impact and fix, and on a full audit a proof of concept result.
- Keep pull request checks on, so changes to reward or incentive code are reviewed against the audit.
Sign-up is free, and as of November 2026 a full audit of 10,000 lines costs $1,899 (pricing). New accounts get $50 in credit, good for up to half of an order.
QuillShield does not replace a manual audit. For a Proof of Liquidity integration going to mainnet, request a manual audit from QuillAudits or talk to an auditor. To start on your own code, run a full audit.
FAQ
What does Proof of Liquidity change in a smart contract audit?
It adds code paths Ethereum doesn't have: staking into reward vaults, incentive tokens paid per BGT, BGT boosts and redemptions, and HONEY minting. Each needs accounting and access control checks on top of the usual Ethereum review.
Can BGT always be redeemed for BERA?
It redeems at 1:1, but Quantstamp found the redemption depends on the BERA balance of the BGT contract and on the consensus layer. A protocol that promises BGT exits should handle a redemption that fails.
What is HONEY basket mode?
When a collateral asset of HONEY depegs or is blacklisted, HoneyFactory mints and redeems against a proportional basket of collateral instead of one asset, according to Quantstamp. An integration has to accept several tokens back.
Is Berachain EVM identical?
Immunefi and Halborn both describe its execution layer as identical to the EVM, so Solidity and Foundry work as on Ethereum. QuillShield audits Solidity in Foundry projects, so a Berachain repo goes in as it is.
Sources
- Berachain bug bounty: information, Immunefi checked 3 December 2026
- Berachain bug bounty: scope, Immunefi checked 3 December 2026
- Berachain smart contracts audit report, final version of 14 January 2025, Quantstamp, hosted by CertiK Skynet checked 3 December 2026
- What is Berachain? A guide to the EVM-compatible L1 blockchain, Halborn checked 3 December 2026
- Zellic security roundup: February 2025, Zellic checked 3 December 2026
- Balancer incident analysis, CertiK checked 3 December 2026
- Berachain halts network to conduct emergency hard fork amid $128 million Balancer exploit, The Block checked 3 December 2026
- Berachain recovers $12.8M lost in Balancer exploit, crypto.news checked 3 December 2026