3fb17c71da192463b0c6b15dea9a2bae47832ef5
- Store the executor address when deploying instead. - We would like to keep all instances of tload and tstore within the callback mechanism of our main TychoRouter contract for security reasons and to prevent any unexpected behaviour - This way it's easy to reason that UniswapV4Executor will only ever execute a delegatecall to itself. Before it could in theory execute a delegatecall to any address. One had to look at all occurences of tstore(0, x) to ensure the address was constrained.
Tycho Execution
Tycho Execution makes it easy to trade on different DEXs by handling the complex encoding for you. Instead of creating custom code for each DEX, you get a simple, ready-to-use tool that generates the necessary data to execute trades. It's designed to be safe, straightforward, and quick to set up, so anyone can start trading without extra effort.
For complete documentation, see Tycho docs here.
Examples
To get started on encoding, have a look at our Encoding example. For a complete example please refer to the Tycho Quickstart guide.
Description
Languages
Rust
90.1%
JavaScript
5.9%
Python
3.6%
Solidity
0.4%
