Diana Carvalho 4e8c6ddc8c feat: Separate encoding swaps from encoding txs
This way the user is responsible for encoding the Tycho Router method inputs that are used as guardrails in execution.

Interface changes:
- Create EncodedSolution
- StrategyEncoder
  - don't need to know have permit2 or token_in_already_in_router as attributes anymore
  - encode_strategy returns EncodedSolution now (no method encoding done here now)
- TychoEncoder
  - add encode_solution() method. This is the recommended method for users
  - needs to have permit2, token_in_already_in_router and router_address as attributes
  - permit creation is made in the router now

Also:
- create encoding_utils.rs
- update all tests

Took 2 hours 42 minutes


Took 3 minutes

Took 13 minutes
2025-05-22 14:43:12 +01:00
2025-05-15 15:44:41 +01:00
2025-01-27 22:54:56 +05:30
2025-03-08 20:24:04 -06:00
2025-01-28 23:21:22 +05:30
2025-03-20 09:58:40 +01:00
2025-05-22 13:21:45 +00:00
2025-05-22 13:21:45 +00:00
2025-05-22 13:21:45 +00:00
2025-05-02 12:55:04 +01:00

Tycho Execution

img.png

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.

Security

All audits of the Tycho Router and Executor contracts can be found here. The vulnerabilities discovered during the audits have been acknowledged and addressed or accepted.

Report a Vulnerability

Contact security@propellerheads.xyz

Description
No description provided
Readme 6 MiB
Languages
Rust 90.1%
JavaScript 5.9%
Python 3.6%
Solidity 0.4%