# Token hook reserve desync

Transfer hooks that move pair balances or reserves without a guarded sync

_Area: DeFi oracles, liquidations and flash loans. Seen in 3 disclosed reports; latest 2026-11-04. Updated 2026-11-14._

## How it works
An AMM pair trusts two numbers: its cached reserves and its actual token balances. A token transfer hook (tax, burn, controller call) can change one without the other. The hook runs inside the swap, so its effect on the pair depends on the pair's balance at that moment. The broken assumption is that a token transfer only moves the transferred amount; here it also dumps, burns or redistributes reserves, and nothing re-checks price or reserves afterwards [E1](https://bugbountylibrary.com/r/dhl%3A20261104-tendril.md)[E3](https://bugbountylibrary.com/r/dhl%3A20260620-olpc.md).

## Where it shows up
- `_transfer` branches that call out to a controller, treasury or whitelist address [E1](https://bugbountylibrary.com/r/dhl%3A20261104-tendril.md)
- Hook math derived from an owner-settable value such as `decimalsValue` [E3](https://bugbountylibrary.com/r/dhl%3A20260620-olpc.md)
- Fee-on-transfer or burn-on-transfer tokens in a V2-style pair with public `skim()`/`sync()` [E2](https://bugbountylibrary.com/r/dhl%3A20260803-aic.md)
- Tax exemptions or proxy paths that skip fees on one leg [E3](https://bugbountylibrary.com/r/dhl%3A20260620-olpc.md)

## How to review
For every transfer path, ask: after this hook runs, do cached reserves still equal actual balances, and is any payout bounded by a value the caller cannot inflate in one transaction? The invariant: no hook may change pair balances or reserves except by the transferred amount, and any reserve-derived payout must be capped and price-guarded. Check that `skim`/`sync` cannot be chained to collapse one reserve while the other stays large [E2](https://bugbountylibrary.com/r/dhl%3A20260803-aic.md)[E3](https://bugbountylibrary.com/r/dhl%3A20260620-olpc.md). Check owner-settable constants feeding burn math [E3](https://bugbountylibrary.com/r/dhl%3A20260620-olpc.md).

## How finders spotted it
- Read verified source and saw the tax branch calling `sellToken()` as a side effect of any non-privileged sell, with no price or reserve guard; noted the auto-liquidation's effect on the pair could be amplified by skewing the pair first [E1](https://bugbountylibrary.com/r/dhl%3A20261104-tendril.md)
- Likely identified fee-on-transfer tokens and public skim/sync as reserve-manipulation primitives, reconstructed from the on-chain trace [E2](https://bugbountylibrary.com/r/dhl%3A20260803-aic.md)
- Noticed an owner-set `decimalsValue` made burn math produce outsized reserve decay from dust transfers, then chained sync/skim with a zero-amountIn swap [E3](https://bugbountylibrary.com/r/dhl%3A20260620-olpc.md)

## Variants seen
- Tax hook triggers controller dump and controlburn of pair reserve [E1](https://bugbountylibrary.com/r/dhl%3A20261104-tendril.md)
- Fee-on-transfer mismatch exploited via `skim()`/`sync()` [E2](https://bugbountylibrary.com/r/dhl%3A20260803-aic.md)
- Misconfigured decimals constant makes dust transfers decay reserves [E3](https://bugbountylibrary.com/r/dhl%3A20260620-olpc.md)
- Tax-exempt proxy leg avoids transfer fees on one side [E3](https://bugbountylibrary.com/r/dhl%3A20260620-olpc.md)

## Impact and severity
Losses ranged from ~32.36 BNB profit [E2](https://bugbountylibrary.com/r/dhl%3A20260803-aic.md) to ~$555K USDT [E1](https://bugbountylibrary.com/r/dhl%3A20261104-tendril.md) and 1.1M USDT [E3](https://bugbountylibrary.com/r/dhl%3A20260620-olpc.md). Impact rose when the hook payout was unbounded and inflatable in one transaction [E1](https://bugbountylibrary.com/r/dhl%3A20261104-tendril.md), and when repeated sync/skim cycles amplified decay [E3](https://bugbountylibrary.com/r/dhl%3A20260620-olpc.md). Flash loans supplied the capital to skew the pair first [E1](https://bugbountylibrary.com/r/dhl%3A20261104-tendril.md).

## Evidence
- E1: https://bugbountylibrary.com/r/dhl%3A20261104-tendril.md
- E2: https://bugbountylibrary.com/r/dhl%3A20260803-aic.md
- E3: https://bugbountylibrary.com/r/dhl%3A20260620-olpc.md
