AcrossHandler
The AcrossHandler contract is responsible for handling messages from the Across SpokePool. It implements the handleV3AcrossMessage
function, which can only be called by the Across SpokePool contract. Before the function call, the SpokePool sends tokens, and then AcrossHandler calls the swap
function in the OdosRouter contract using the provided tokens and message data.
Invariants
The caller must be the Across SpokePool contract.
The token address cannot be the zero address.
The token amount must be greater than zero.