cowprotocol / cow-sdk

CoW protocol SDK
https://docs.cow.fi/cow-protocol/reference/sdks/cow-sdk
Other
31 stars 9 forks source link

chore: PollParams to accept orderbook instance #181

Open mfw78 opened 11 months ago

mfw78 commented 11 months ago

Background

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

Context

          i see what you mean. Yes, makes sense to pass an instance of the Orderbook API SDK

_Originally posted by @anxolin in https://github.com/cowprotocol/watch-tower/pull/112#discussion_r1365800499_