UMAprotocol / protocol

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

fix: correctly store block numbers in serverless hub #4700

Closed Reinis-FRP closed 7 months ago

Reinis-FRP commented 8 months ago

Motivation

Serverless hub does not correctly handle block ranges when dealing with multi-network bots.

Summary

Fixes 2 bugs in Serverless hub to correctly store network block ranges for multi-network bot instances.

Details

We have not encountered this in prod as block ranges get also saved from single-network bot instances, but this could become an issue when adding new bots that have multiple networks not covered by other bots in the same spoke call.

Testing

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

Issue(s)

Fixes https://linear.app/uma/issue/UMA-2373/fix-serverless-hub-block-numbers-for-multiple-network-bots

linear[bot] commented 8 months ago

UMA-2373 Fix Serverless hub block numbers for multiple network bots