When using PollParams in downstream (watch-tower), it's frustrating to have to pass the orderbook config when the watch-tower already has an instantiated orderbook instance.
Details
Adjust the PollParams so that it accepts an instance of the orderbook api sdk.
Acceptance criteria
[ ] Downstream consumers don't pass orderbook config to anything except the orderbook's new constructor.
[ ] Orderbook instances are passed into the SDK's polling methods.
Context
i see what you mean. Yes, makes sense to pass an instance of the Orderbook API SDK
Background
When using
PollParams
in downstream (watch-tower
), it's frustrating to have to pass the orderbook config when thewatch-tower
already has an instantiated orderbook instance.Details
Adjust the
PollParams
so that it accepts an instance of the orderbook api sdk.Acceptance criteria
Context
_Originally posted by @anxolin in https://github.com/cowprotocol/watch-tower/pull/112#discussion_r1365800499_