cowprotocol / services

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

feat: Update crate::database::trade::trades() function #2993

Closed sunce86 closed 1 month ago

sunce86 commented 1 month ago

Problem

Related to https://github.com/cowprotocol/services/issues/2830#issuecomment-2346083664

This function needs to be updated so that it fetches trades that are relevant for the specific settlement in cases when multiple settlements can exist in a single block in a single environment.

sunce86 commented 1 month ago

After double checking the code, I realized the code doesn't need to be adjusted. It already supports multiple trade/settlement events per block.