UMAprotocol / protocol

UMA Protocol Running on Ethereum
https://uma.xyz
GNU Affero General Public License v3.0
359 stars 174 forks source link

fix: Revert "improve(oo): reuse lookback config when initing ooclient" #4761

Closed Reinis-FRP closed 1 month ago

Reinis-FRP commented 1 month ago

Reverts UMAprotocol/protocol#4760

Motivation

Fix in #4760 would end up passing lookbacks to OO client that could result in bot not settling proposals when challenge window is longer than lookback or if the proposal was disputed.

Summary

We should have fixed 1 week lookback to track full lifecycle of OO proposals. If provider is causing issues this should be solved by passing MAX_BLOCKS_PER_EVENT_SEARCH to paginate event queries.