FIREPAN YEARN Case Study
Case Study · Yearn

Yearn has its own security team. It runs Firepan alongside it.

Yearn reviews its code in-house and commissions independent audits. Since August 2026 it has also sent Firepan new codebases as they near or reach mainnet. Three reviews came back within four days each, with ten rated findings and proposed fixes tested three ways.

Yearn has built yield vaults since 2020. Its security practices include in-house reviews, published audit reports and a bug bounty.

Yearn asked Firepan for an independent, AI-native pass over new code, verified by researchers and returned in days. The team can run a new review as the code changes.

Engagement at a Glance

3
Codebases reviewed since Aug 2026
10
Rated findings · 1 High · 5 Medium · 4 Low
≤ 4 days
Request to reviewed report, each time
0
Mainnet transactions sent in testing
7 of 10 findings carry an executable proof or fork result. The other 3 are labelled as source analysis. Yearn moved from a one-month trial to an annual plan in September 2026
Firepan quote card featuring Daniele Trovato, founder of Yearn
Read the quote from Daniele Trovato

“We don't need anyone to explain our contracts to us. We need findings we can check. Firepan's reports come pinned to a commit, with proofs we can rerun, a plain label on anything that isn't proven, and credit where we'd already fixed something. That's what makes them worth our engineers' time.”

Daniele Trovato, founder of Yearn

Why a Team With Its Own Auditors Adds Another Layer

The stYFI system alone had four public review reports before Firepan opened it, and Yearn had already shipped fixes in response to them.

Yearn's reason is about timing. Every new frontier model is a new reviewer that anyone can point at public code, including people who would rather exploit a bug than report it. Yearn chose to run those models first, on its own code, on its own schedule.

“Seems it would be good to be the first running new models on our code rather than let others do it and pay bug bounties.”

Yearn contributor

Yearn's engineers know their contracts better than any outside reviewer will. The output has to survive their scrutiny. A finding needs a mechanism they can check, evidence they can rerun and a severity that reflects the system under review. A long list of maybes would cost them more time than it saves.

Firepan treats Yearn's earlier reviews as part of the record. Each report compares its findings against the public audits and says when an item is new, when it was already known and when it is a leftover edge of something Yearn had already fixed.

How Yearn Uses It

When a codebase is ready, Yearn's security team requests a Deep Audit from the Firepan dashboard. Firepan pins the exact commit, runs its AI review passes and has researchers verify the results against the source and, where applicable, against deployed bytecode and a mainnet fork. The reviewed report lands in a shared channel and in the dashboard, and Yearn's engineers ask questions there directly.

WhenTargetState at reviewResult
Aug 25–26 stYFI
37 Vyper contracts · ~11.7k lines
Deployed · 25 addresses matched to source 1 High · 1 Medium · 1 Low · 3 informational
Nov 9–11 yTranche
Core contracts plus three pinned submodules
Deployed 3 Medium · 3 Low · two proposed fixes verified in testing
Nov 17–20 yv3 Tranche Strategy
Strategy, factory and deploy script
Predeployment 1 Medium · 3 informational · two proposed fixes verified in testing

The two November reviews show why the cadence matters. Firepan tested proposed fixes for a system that was already deployed and for a strategy still in development.

What the Reviews Found

The reviews found gaps in how the systems enforced vesting terms and accounted for gains and losses among holders. Across the three reviewed codebases, Firepan identified no path for an outside attacker to drain depositor funds.

1 High · 1 Medium · 1 Low stYFI · Aug 2026

Vesting protections did not always hold.

Firepan recommended keeping a grant's original restrictions in force throughout the grant's lifetime.

3 Medium · 3 Low yTranche · Nov 2026

Gains and losses could be allocated unevenly among holders.

yTranche splits a vault's risk into senior and junior tranches. The accounting could leave some holders carrying a larger share of a vault loss. The review verified two proposed code fixes in testing.

1 Medium · 3 Informational yv3 Tranche Strategy · Nov 2026

Tranche pricing could misstate a loss.

Firepan reviewed the strategy before deployment and checked the finding on three mainnet fork snapshots. Researchers tested two proposed fixes to keep pricing consistent with losses. Both passed the proofs and the repository's existing tests.

The reviews also record what held up. A 3,000-run differential fuzz test of yTranche's withdrawal-limit library against Yearn's VaultV3 found no mismatch, and the repository's invariants passed on unmodified code. The yv3 strategy's own tests already documented its known edge behaviours. The two November reports list 14 items that Firepan reviewed and ruled out.

The Discipline

Evidence before severity. Every proof of concept ran with a control that removed the suspected cause. Each proposed code fix ran through the same test on the unpatched, patched and reverted code. The test failed, passed and failed again. The yTranche matrix has 44 checks.

Exposure counted once, and separately from severity. Firepan recorded a shared exposure once where findings affected the same assets. The reports separated observed exposure from the impact used to rate a finding.

Say what the review proved. The reports label the three findings supported by source analysis alone. They also record gaps in the retained evidence, including unavailable transcripts.

Credit the prior work. The stYFI report cites Yearn's earlier public audits and credits fixes Yearn had already shipped in response to them.

Hold a weak result. Firepan set aside the first automated stYFI run, told Yearn and ran a stronger pass with two independent human checks. It delivered within the day.

Why It Matters

Audits are scheduled events. Code changes on its own calendar, and so do the models that read it. A review that returns in days can run on material changes. Yearn used Firepan as each codebase was ready, starting with stYFI in August and continuing with two tranche systems in November.

For teams with their own security staff, the result is an independent pass they can check. Engineers can rerun the evidence, see where prior work is credited and identify conclusions that rest on source analysis. Teams without dedicated security staff get the same pinned commits and evidence labels to guide their follow-up.

Read the technical report for the scope, findings by severity, and verification limits.

AI-Native Smart Contract Security

Run the new models on your code before someone else does.

Connect a repository and request a Deep Audit, or talk to us about a researcher-verified review like Yearn's.

Book a Review → Compare plans