Execution Venues
How to integrate Tycho in different execution venues.
Last updated
How to integrate Tycho in different execution venues.
Last updated
To solve orders on , 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 use a transferFrom
to transfer the token in.
When solving for CoW Protocol, you need to return a that contains a list of interactions to be executed in sequence.
To solve with the Tycho Router you only need one custom interaction where:
callData
is the data returned from encoder.encode_router_calldata(...)
allowances
is a list with one entry where the allowance for the token in and amount in is set for spender to be the Tycho Router. This is necessary for the transferFrom
to work.
For other venues, like UniswapX or 1inch Fusion, please contact us.