# Share conversion exceeds tracked total

Share-to-asset math that can exceed tracked totals, supply, or per-user queued amounts

_Area: DeFi accounting and math bugs. Seen in 4 disclosed reports; latest 2026-08-09. Updated 2026-11-09._

## How it works
A contract converts shares to assets (or assets to shares) and the result is trusted as if it were bounded by what the contract actually tracks. The assumption that breaks: that `convertToAssets(shares) <= totalTracked` and that a per-call price is the same whether you redeem once or in slices. Rounding direction, per-call state mutation, and user-supplied share amounts each let the computed value drift above the real total, and the code then subtracts, pays out, or books the difference as if it were real [E1](https://bugbountylibrary.com/r/dhl%3A20260809-usm.md)[E2](https://bugbountylibrary.com/r/c4%3A2024-07-karak%3AH-03.md)[E3](https://bugbountylibrary.com/r/sherlock%3A2024-06-leveraged-vaults%3AH-12.md)[E4](https://bugbountylibrary.com/r/cantina%3Ajigsaw_june2025%3A3.1.8.md).

## Where it shows up
- Redemption/withdrawal curves that price off an *estimated post-trade* price and mutate per-call state (shrink factors, accumulators) [E1](https://bugbountylibrary.com/r/dhl%3A20260809-usm.md)
- Unchecked subtraction of `convertToAssets(balanceOf(x))` from a stored per-user asset figure [E2](https://bugbountylibrary.com/r/c4%3A2024-07-karak%3AH-03.md)
- ERC4626 vaults where `totalAssets` can be nudged by dust donations (even via `payable` functions) [E2](https://bugbountylibrary.com/r/c4%3A2024-07-karak%3AH-03.md)
- Withdraw-request valuation overrides that read total request amounts instead of `w.vaultShares` [E3](https://bugbountylibrary.com/r/sherlock%3A2024-06-leveraged-vaults%3AH-12.md)
- Two-step cooldown/claim flows where the claim recomputes a ratio from a fresh user-supplied `_shares` [E4](https://bugbountylibrary.com/r/cantina%3Ajigsaw_june2025%3A3.1.8.md)

## How to review
State the invariant and test it directly: for any path, `valueOf(shares) <= trackedTotal` and `sum of N small calls == one large call` for the same total. Check every subtraction of a converted value for underflow guards. Check that valuation and claim logic bind to the *queued* amount, not a caller parameter. Check rounding direction against who it favors and whether the loser can be pushed to zero or negative.

## How finders spotted it
- Noticed `defund()` averaged current and estimated-final price and mutated `adjShrinkFactor` per call, then reasoned about split-invariance; confirmed oracle reads were identical before/during, isolating rounding from price manipulation [E1](https://bugbountylibrary.com/r/dhl%3A20260809-usm.md)
- Read the unchecked subtraction in `_transferToSlashStore`, knew ERC4626 rounds in protocol's favor, and found a `payable` function letting anyone inflate `totalAssets` by dust [E2](https://bugbountylibrary.com/r/c4%3A2024-07-karak%3AH-03.md)
- Compared `_calculateValueOfWithdrawRequest` against its overrides and saw several ignored `w.vaultShares`, using total amounts instead [E3](https://bugbountylibrary.com/r/sherlock%3A2024-06-leveraged-vaults%3AH-12.md)
- Traced the withdraw path, saw `shareRatio` came from `params.shares` while `unstake` returned the full cooled-down balance, and confirmed with a fork PoC [E4](https://bugbountylibrary.com/r/cantina%3Ajigsaw_june2025%3A3.1.8.md)

## Variants seen
- Non-split-invariant redemption curve draining ETH via many small calls [E1](https://bugbountylibrary.com/r/dhl%3A20260809-usm.md)
- Rounding drift plus dust donation causing underflow DoS on snapshots/withdrawals [E2](https://bugbountylibrary.com/r/c4%3A2024-07-karak%3AH-03.md)
- Overvaluation of collateral from using total request instead of user share, blocking liquidations [E3](https://bugbountylibrary.com/r/sherlock%3A2024-06-leveraged-vaults%3AH-12.md)
- Ratio from user-supplied shares letting 1 wei claim full cooldown as yield [E4](https://bugbountylibrary.com/r/cantina%3Ajigsaw_june2025%3A3.1.8.md)

## Impact and severity
Direct fund loss (~70.8 ETH drained) [E1](https://bugbountylibrary.com/r/dhl%3A20260809-usm.md); permanent DoS locking withdrawals [E2](https://bugbountylibrary.com/r/c4%3A2024-07-karak%3AH-03.md); blocked liquidations and overvalued collateral propagating across all vaults using the override [E3](https://bugbountylibrary.com/r/sherlock%3A2024-06-leveraged-vaults%3AH-12.md); inflated collateral used to borrow beyond deposits, amplifying extraction [E4](https://bugbountylibrary.com/r/cantina%3Ajigsaw_june2025%3A3.1.8.md). Severity rises with reach (shared overrides, all node owners) and with composability into lending/liquidation logic [E3](https://bugbountylibrary.com/r/sherlock%3A2024-06-leveraged-vaults%3AH-12.md)[E4](https://bugbountylibrary.com/r/cantina%3Ajigsaw_june2025%3A3.1.8.md).

## Evidence
- E1: https://bugbountylibrary.com/r/dhl%3A20260809-usm.md
- E2: https://bugbountylibrary.com/r/c4%3A2024-07-karak%3AH-03.md
- E3: https://bugbountylibrary.com/r/sherlock%3A2024-06-leveraged-vaults%3AH-12.md
- E4: https://bugbountylibrary.com/r/cantina%3Ajigsaw_june2025%3A3.1.8.md
