From ad7a45a40e78872aaff56220a1f658817d7eef7b Mon Sep 17 00:00:00 2001 From: openhands Date: Tue, 17 Mar 2026 11:37:12 +0000 Subject: [PATCH] fix: onchain/AGENTS.md:71 missing conditional guard on feeDestination/stakingPool exclusion (#891) --- onchain/AGENTS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onchain/AGENTS.md b/onchain/AGENTS.md index 06572fc..f10bb09 100644 --- a/onchain/AGENTS.md +++ b/onchain/AGENTS.md @@ -68,4 +68,4 @@ The staking system traces a triangle in (staking%, avgTax) space: - Respect access controls (`onlyLiquidityManager`, owner). - `token0isWeth` flips amount semantics — confirm ordering before interpreting liquidity. - Floor uses `vwapX96` directly (not sqrt) in fixed-point math. -- Outstanding supply excludes LM position balances and KRK held by `feeDestination`/`stakingPool`. +- Outstanding supply excludes LM position balances and KRK held by `feeDestination` (only when `feeDestination != address(0) && feeDestination != address(this)`) and `stakingPool` (only when `stakingPoolAddr != address(0)`).