Skip to content

Commit

Permalink
Revert L-03 bytes/slot change
Browse files Browse the repository at this point in the history
  • Loading branch information
pizzaman1337 committed Jun 21, 2024
1 parent 69b3546 commit 914a0ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pumps/MultiFlowPump.sol
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ contract MultiFlowPump is IPump, IMultiFlowPumpErrors, IInstantaneousPump, ICumu
* @dev Get the slot number that contains the `n`th element of an array.
*/
function _getSlotsOffset(uint256 numberOfReserves) internal pure returns (uint256 _slotsOffset) {
_slotsOffset = ((numberOfReserves - 1) / 2 + 1);
_slotsOffset = ((numberOfReserves - 1) / 2 + 1) << 5;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion test/pumps/Pump.Helpers.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {console, TestHelper} from "test/TestHelper.sol";

contract PumpHelpersTest is TestHelper, MultiFlowPump {
uint256[5] testCasesInput = [1, 2, 3, 4, 5];
uint256[5] testCasesOutput = [1, 1, 2, 2, 3];
uint256[5] testCasesOutput = [32, 32, 64, 64, 96];

constructor() MultiFlowPump() {}

Expand Down

0 comments on commit 914a0ac

Please sign in to comment.