Closed acenolaza closed 1 month ago
Can you wait me before merge? I'm planning to review tomorrow.
Rather than extending
UpdatableDataFeed
withshouldUpdateBeaconSet
, we may defineisAsyncBeaconUpdate
.
I don't have a strong opinion about which one is better. @Siegrift thoughts?
I don't have a strong opinion about which one is better. @Siegrift thoughts?
I don't particularly like the shouldUpdateBeaconSet
but I would need to see how the code would look like with isAsyncBeaconUpdate
. The problem I have with that field is that you also need to populate it for single beacon feeds, for which the field makes no sense (and you have to have an additional check in the if statement before changing the pending tx info).
Thank you both for the valuable feedback 🙏🏻 I'm going to merge this now to be able to have this functionality ready. We can continue the discussion to refactor the shouldUpdateBeaconSet
flag on a different issue
Closes https://github.com/api3dao/airseeker-v2/issues/329
What does this change
This PR tries to enable updating individual beacons of a beacon set data feed that does not require an update.
getUpdatableFeeds()
. This feature can be enabled by setting a value in config file. This value represents the deviation of individual beacons. A new boolean is returned in eachUpdatableDataFeed
object indicating ifApi3ServerV1.updateBeaconSetWithBeacons()
calldata needs to be added to multicall.createUpdateFeedCalldatas()
to skip updating the beacon set