Skip to content

Commit

Permalink
fix: order struct params by size
Browse files Browse the repository at this point in the history
  • Loading branch information
0xClandestine committed Oct 1, 2024
1 parent e7da526 commit 9cdc3a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/contracts/core/AllocationManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,8 @@ contract AllocationManager is
// pending free magnitude can be added to freeMagnitude
freeMagnitudeToAdd += uint64(uint128(-opsetMagnitudeInfo.pendingMagnitudeDiff));
_operatorMagnitudeInfo[operator][strategy][opsetKey] = MagnitudeInfo({
currentMagnitude: opsetMagnitudeInfo.currentMagnitude - uint64(uint128(-opsetMagnitudeInfo.pendingMagnitudeDiff)),
pendingMagnitudeDiff: 0,
currentMagnitude: opsetMagnitudeInfo.currentMagnitude - uint64(uint128(-opsetMagnitudeInfo.pendingMagnitudeDiff)),
effectTimestamp: 0
});

Expand Down
2 changes: 1 addition & 1 deletion src/contracts/interfaces/IAllocationManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ interface IAllocationManager is ISignatureUtils {
* @param effectTimestamp the timestamp at which the pending magnitude will take effect
*/
struct MagnitudeInfo {
uint64 currentMagnitude;
int128 pendingMagnitudeDiff;
uint64 currentMagnitude;
uint32 effectTimestamp;
}

Expand Down

0 comments on commit 9cdc3a0

Please sign in to comment.