> For the complete documentation index, see [llms.txt](https://docs.termina.technology/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.termina.technology/documentation/flows/rerouting-historical-flow.md).

# Rerouting Historical Flow

For onchain market makers, it's hard to predict how a change to quoting logic will affect taker flow. Rerouting historical swaps against the updated logic makes it easier to see how often it would've won and at what prices compared to competing pools.

There are two modes: via an aggregator or directly to a venue.

<table data-view="cards"><thead><tr><th></th><th data-hidden data-card-target data-type="content-ref"></th><th data-hidden data-card-cover data-type="image">Cover image</th></tr></thead><tbody><tr><td>Reroutes via an Aggregator</td><td><a href="/documentation/flows/rerouting-historical-flow/rerouting-via-an-aggregator.md">Rerouting via an Aggregator</a></td><td><a href="https://1058464389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVkei3hPl3HKf8KIppIiE%2Fuploads%2Fb7r0KCgyTRs4kwh2QkME%2F5.png?alt=media&amp;token=202558da-decc-4f97-ae44-cd5960cef834">5.png</a></td></tr><tr><td>Reroutes Directly to a Venue</td><td><a href="/documentation/flows/rerouting-historical-flow/rerouting-directly-to-a-venue.md">Rerouting Directly to a Venue</a></td><td><a href="https://1058464389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVkei3hPl3HKf8KIppIiE%2Fuploads%2FdPaAOvF5srxQ9QFca98H%2F4.png?alt=media&amp;token=022722e1-3763-47cc-8edf-527ee76b386f">4.png</a></td></tr></tbody></table>
