Execution Venues
How to integrate Tycho in different execution venues.
Cow Protocol
To solve orders on CoW Protocol, you'll need to prepare your solution following specific formatting requirements.
First, initialize the encoder with the tycho_router
shortcut:
This means that the TychoRouter
will assume that the token in was already transferred in.
When solving for CoW Protocol, you need to return a Solution object that contains a list of interactions to be executed in sequence.
The solution structure requires:
A token transfer to the
TychoRouter
as the first interactionThe calldata returned from
encoder.encode_router_calldata(...)
as the next interaction
Make sure to encode the initial token transfer operation yourself, as this isn't handled by the Tycho encoder.
Alternatively, you can create a new StrategyEncoder
specific for CoWSwap that encodes the extra token transfer. See here how to contribute to Tycho.
Other competition venues
For other venues, like UniswapX or 1inch Fusion, please contact us.
Last updated