cowprotocol / services

Off-chain services for CoW Protocol
https://cow.fi/
Other
163 stars 66 forks source link

chore: Use `TokenPair` as a key in the 0x liquidity cache #2654

Closed squadgazzz closed 5 days ago

squadgazzz commented 4 months ago

Background

0x liquidity cache is represented by a map with (H160, 160) key type which allows to identify direction(sell or buy). There is a proposal to replace it with TokenPair, which is sorted inside. A bit more context can be found in this thread.

Details

We should make sure that changing the logic won't harm any other part of the protocol.

github-actions[bot] commented 2 months ago

This issue has been marked as stale because it has been inactive a while. Please update this issue or it will be automatically closed.

github-actions[bot] commented 1 week ago

This issue has been marked as stale because it has been inactive a while. Please update this issue or it will be automatically closed.