Router

The on-chain Router contract does the following

  1. Coordinate the single and multi-hop swaps

  2. Make sure that the slippage for the entire transaction is within the specified amount

  3. Wrap/unwrap handling for L1 tokens if necessary

Refer to NativeRouter in Contracts section for more details.

Last updated