I-1: Missing event emission in `BatchRequestManager.setEpochIds`
Description:
BatchRequestManager.setEpochIds implements functionality for a BatchRequestManager ward to override values in epochId mapping during a migration from V3's ShareClassManager to V3.1's BatchRequestManager.
The method could benefit from an event emission in order for off-chain components to be able to track calls to the highlighted method.
Impact:
Informational.
Recommendation:
Define an EpochIdModified(PoolId pool) event and log it within the highlighted method:
@@ -94,9 +94,12 @@ contract BatchRequestManager is Auth, BatchedMulticall, IBatchRequestManager {
_;
}
+ event EpochIdModified(PoolId poolId, ShareClassId scId, AssetId assetId, EpochId epochIdData);
+
/// @dev used only for migrations
function setEpochIds(PoolId poolId, ShareClassId scId, AssetId assetId, EpochId memory epochIdData) external auth {
epochId[poolId][scId][assetId] = epochIdData;
+ emit EpochIdModified(poolId, scId, assetId, epochIdData);
}
Developer Response:
Fixed by 0eb5d40