Detect Uniswap V4 hooks that fail to settle currency deltas with the PoolManager. Every credit/debit a hook creates (BeforeSwapDelta, afterSwap hookDelta, take/mint, donate, settle/sync) is tracked in the manager's transient nonzeroDeltaCount; if the books aren't flat when unlock returns, the whole transaction reverts (CurrencyNotSettled), and mismatched take/settle/donate either strands hook funds in the manager or lets a swap leave with unpaid debt. Activate on hooks returning deltas, calling take/settle/mint/burn/donate, or custom unlockCallback accounting.
$npx -y skills add omermaksutii/rugproof --skill v4-hook-delta-accountingInstalls into the current project.
Run `npx skills use "https://github.com/omermaksutii/rugproof" --skill "omermaksutii/rugproof/v4-hook-delta-accounting"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/omermaksutii/rugproof" that are relevant to the current task. Run `npx skills add "https://github.com/omermaksutii/rugproof"` and select the relevant skills, then follow their instructions.