UMAprotocol / protocol

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

fix!: time based lookback in oov3-bot #4686

Closed Reinis-FRP closed 5 months ago

Reinis-FRP commented 5 months ago

Motivation

OOv3 bot looks for assertions that can be settled using block range based lookback. Sometimes this is not sufficient and we cannot guarantee that even standard 2h challenge window assertions get detected. This is particularly an issue for chains that don't have fixed block times (e.g. Arbitrum).

Summary

Use BlockFinder for time based lookback and set the default to use 72h that should cover most use cases.

Testing

Check a box to describe how you tested these changes and list the steps for reviewers to test.

Since BlockFinder does not work in local test network, this was tested in production:

Issue(s)

Fixes https://linear.app/uma/issue/UMA-2236/fix-oov3-settlement-bot-lookback

linear[bot] commented 5 months ago

UMA-2236 Fix OOv3 settlement bot lookback