# Observer misses internal transactions

Deposit watchers that read only top-level tx.to and ignore internal calls from contract wallets

_Area: Smart contract access control and control flow. Seen in 3 disclosed reports; latest 2025-10-21. Updated 2026-11-17._

## How it works
A watcher decides "did value reach our address?" by reading one field of each transaction, usually the top-level `to`. That holds only for plain externally-owned-account sends. When a smart-contract wallet or router forwards value with an internal call, the top-level `to` is the contract, not the deposit address. The transfer is real on-chain but invisible to the watcher, so the deposit is never credited and the funds sit wherever they landed [E1](https://bugbountylibrary.com/r/c4%3A2023-11-zetachain%3AH-02.md).

## Where it shows up
- Deposit/credit logic keyed on `tx.To`, `tx.From`, or a single log, with no trace or internal-call scan [E1](https://bugbountylibrary.com/r/c4%3A2023-11-zetachain%3AH-02.md)
- Cross-chain observer nodes that reconcile deposits only from top-level transfers [E1](https://bugbountylibrary.com/r/c4%3A2023-11-zetachain%3AH-02.md)
- Any "did value arrive?" check that inspects one summary field instead of every path that moves value

## How to review
For each watcher, name the exact set of on-chain events that constitute a deposit, then confirm the code observes all of them, not a proxy field. The invariant: every path that moves value to the watched address must be detected, including internal calls from contracts. If the code only compares `tx.To` to the watched address, it is unsafe for contract-wallet senders.

## How finders spotted it
- Read `observeInTX` and noticed the check `if *tx.To() == tssAddress` only inspects top-level recipients; reasoned contract wallets route value via internal calls, then built a PoC wallet and tested on the Mumbai testnet [E1](https://bugbountylibrary.com/r/c4%3A2023-11-zetachain%3AH-02.md)

## Impact and severity
Funds locked in the TSS address for contract-wallet users [E1](https://bugbountylibrary.com/r/c4%3A2023-11-zetachain%3AH-02.md). Severity rises with how much value depends on the missed path and whether the gap is repeatable across every deposit from such wallets.

## Evidence
- E1: https://bugbountylibrary.com/r/c4%3A2023-11-zetachain%3AH-02.md
- E2: https://bugbountylibrary.com/r/cantina%3Acitrea_jul2025%3A3.1.1.md
- E3: https://bugbountylibrary.com/r/sherlock%3A2024-12-seda-protocol%3AH-10.md
