Function: sumUnitaryFundingsUpload(MarketTypes.UploadSumUnitaryFundings data)
The function updates perpMarketCfg.sumUnitaryFundings and perpMarketCfg.lastMarkPriceUpdated configurations in marketManager contract. The function can be called only by trusted Operator.
Inputs
dataControl: Controlled by operator.
Constraints: Verify that
perpPricesis signed bycefiMarketUploadAddress.Impact: The
perpMarketCfgconfiguration is not used in any way — without impact.
Branches and code coverage
Intended branches
perpMarketCfgis updated properly.
Negative behavior
Caller is not trusted operator.
data.perpPricesis not signed bycefiMarketUploadAddress.
Function call analysis
_innerPing()External/Internal? Internal.
Argument control? N/A.
Impact: Update the
lastOperatorInteractionby current timestamp.
_perpMarketInfo(data) -> marketManager.updateMarketUpload(data)External/Internal? External.
Argument control? The
datais controlled by operator.Impact: Updates
perpMarketCfgconfiguration in marketManager.