Rerouting Directly to a Venue
To compare every historical fill against what a venue would've filled if it had won the swap, use the sim run command with the reroutes set to venue and provide a template file. The template defines how the simulator should integrate with the venue and which token pair to include.
sim run \
--start-slot 400000000 \
--end-slot 400010000 \
--reroute-order-flow venue \
--venue-templates <FILE>This shows whether the venue would've won on price but not whether a router would've actually routed the swap to it.
It's typically used when the DEX isn't yet integrated with any aggregators yet, but it's also useful for comparing the competitiveness of a venue's prices independent of aggregator routing decisions. In other words, it can be thought of as "true reality" instead of "router's view of reality".
Last updated