cowprotocol / services

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

chore: Share `CodeFetcher` in orderbook #2429

Closed MartinquaXD closed 1 month ago

MartinquaXD commented 7 months ago

Background

Currently we create one instance of CodeFetcher in the price estimator factory and another one for the OrderValidator in the orderbook. There is no reason these need to be separate instances so by sharing 1 instance in both contexts we could reduce the number of RPC calls we issue for fetching code at a given address.

github-actions[bot] commented 5 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.