76c9461eb0b4d628e09d8715653fbf5b7a9e655a
[copied from tycho-simulation commit msg] Main issue: - This was causing a big issue in the SDK testing, since accounts were being leaked between test cases. Adding this functionality provides an easy way to clear storage on the rust side, by calling .clear() between subsequent tests. How this manifested: - Incorrect pool balances were being loaded in the BalancerV2SwapAdapter if tests were run altogether. - Pool balances were correct if tests were run in isolation. - We checked that tycho-indexer returned correct pool balances, and we checked pool balances for that block on-chain to be double-sure - In the python test suite, which was passing, there was code which dropped the whole database between subsequent tests, which was not being duplicated in the rust suite.
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%