You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our process for setting the settlement price for Series which have just expired has several moving parts, and if we could reduce the number of moving parts to as few as possible, then our protocol as a whole would be more reliable. Specifically, right now when a Series expires the settlement price bot gets called immediately after Friday 8am and sets the settlement price for a specific token pair. This requires multiple onchain transaction calls, all of which must succeed in order for the protocol to run correctly.
Wouldn't it be more reliable if all of the lambda function had to do was call a single function, and all of the necessary settlement prices were to be set? We could do this if we use OZ's EnumerableSet to store all of the token pairs, and then we have a setAllSettlementPrices function which iterates through the token pairs and sets their prices.
We would still want an individual setSettlementPrice function in case setAllSettlementPrices takes too much gas and we need to call them individually.
The text was updated successfully, but these errors were encountered:
Our process for setting the settlement price for Series which have just expired has several moving parts, and if we could reduce the number of moving parts to as few as possible, then our protocol as a whole would be more reliable. Specifically, right now when a Series expires the settlement price bot gets called immediately after Friday 8am and sets the settlement price for a specific token pair. This requires multiple onchain transaction calls, all of which must succeed in order for the protocol to run correctly.
Wouldn't it be more reliable if all of the lambda function had to do was call a single function, and all of the necessary settlement prices were to be set? We could do this if we use OZ's EnumerableSet to store all of the token pairs, and then we have a
setAllSettlementPrices
function which iterates through the token pairs and sets their prices.We would still want an individual
setSettlementPrice
function in case setAllSettlementPrices takes too much gas and we need to call them individually.The text was updated successfully, but these errors were encountered: