Skip to content

Commit

Permalink
fix: #43
Browse files Browse the repository at this point in the history
  • Loading branch information
xenide committed Jan 1, 2025
1 parent d60f747 commit d32abff
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ReservoirPair.sol
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,10 @@ abstract contract ReservoirPair is IAssetManagedPair, ReservoirERC20, RGT {
uint32 aBlockTimestampLast,
uint16 aIndex
) internal {
require(aBalance0 <= type(uint104).max && aBalance1 <= type(uint104).max, Overflow());
require(aReserve0 <= type(uint104).max && aReserve1 <= type(uint104).max, Overflow());
require(aBalance0 <= type(uint104).max, Overflow());
require(aBalance1 <= type(uint104).max, Overflow());
require(aReserve0 <= type(uint104).max, Overflow());
require(aReserve1 <= type(uint104).max, Overflow());

uint32 lBlockTimestamp = uint32(block.timestamp); // invalid after year 2106
uint32 lTimeElapsed;
Expand Down

0 comments on commit d32abff

Please sign in to comment.