# Smart contract audits by protocol type

URL: https://shield.quillaudits.com/use-cases/

What to check in ERC-4626 vaults, Uniswap v4 hooks, lending markets, perpetual DEXs and Solidity written by AI agents, with a real exploit for each, and how a QuillShield full audit and pull request checks fit the team that builds it.

## [ERC-4626 vault audit: share math, rounding and donation attacks](https://shield.quillaudits.com/use-cases/erc-4626-vaults/)

24 November 2026 · 6 minute read

Share math, rounding direction and donations to an empty vault, the contracts that price your shares, and how Resupply's $10M loss started at a vault.

## [Uniswap v4 hook audit: permissions, callbacks and deltas](https://shield.quillaudits.com/use-cases/uniswap-v4-hooks/)

24 November 2026 · 6 minute read

Callback access, permission flags in the hook's address, delta accounting and shared pool state, and how Bunni lost $8.4M to rounding beside a v4 hook.

## [DeFi lending audit: liquidations, oracles and interest math](https://shield.quillaudits.com/use-cases/defi-lending/)

24 November 2026 · 5 minute read

Oracle prices, health checks on every path, interest accrual and empty markets, and how one function without a health check cost Euler about $197M.

## [Perpetual DEX audit: funding, margin and oracle latency](https://shield.quillaudits.com/use-cases/perpetuals-dex/)

24 November 2026 · 5 minute read

Funding and fee math, margin checks, oracle latency, keeper paths and the LP token price, and how a reentrant payout cost GMX V1 nearly $42M.

## [AI-generated Solidity: how to review code written by agents](https://shield.quillaudits.com/use-cases/ai-generated-solidity/)

24 November 2026 · 6 minute read

What to check in Solidity that coding agents write, how pull request checks against a full audit fit that workflow, and Moonwell's $1.78M oracle loss.
