Unexpected Function Invocation

Mechanism

An unexpected function invocation occurs when a smart contract executes a call to a target function not explicitly intended by the current transaction state or user input. This phenomenon typically emerges within complex decentralized finance protocols when automated keepers or external oracles trigger internal logic without sufficient conditional gating. Sophisticated attackers exploit this gap to force state transitions, effectively bypassing security invariants inherent in standard protocol operations.