5f8dccb729249f378b8dec2e8f052a50969814d6
This was the most elegant solution we could come up with at the moment for having the proper adapter in the builder. Notes: - The default adapter bytecode in tycho-simulation is still loaded at compile time. - If the adapter bytecode is passed to the decoder, it will be loaded dynamically at runtime and used instead the bytecodes in tycho-simulation. - The adapter bytecode is used in the builder to get capabilities and thus spot prices before returning the state, so just overwriting the adapter in the state is way too cumbersome. We went with this solution since it was the lesser evil, even though we know it leaks VM-specific info to non-vm protocols (which was already being done anyway with the balances).
Tycho Protocol SDK
Tycho Protocol SDK is a library to integrate DEXs and other onchain liquidity protocols into Tycho.
Please refer to the documentation for more information.
Languages
Rust
99.7%