Order structure
Both quoting and execution use the router’s order shape:
The output asset is derived from the connected path. Each next pool must contain the preceding output asset.
The router accepts one to eight hops, a positive amount below the positive int128 limit, and a nonzero recipient. Asset amounts remain in raw units.
Simulate the complete path
Detailed leg fees
Each returned LegFee describes one path position:
An unhooked currency leg does not acquire FX token-market hook fees merely because it appears in the route. Its native pool costs still affect the returned input and output.
The normal hook amount is not a second description of the native LP fee. Preserve these categories when displaying costs. See fee accounting.