From d32abff047c7a9317ec40eece0cd7456a6bb484c Mon Sep 17 00:00:00 2001 From: "A.L." Date: Thu, 2 Jan 2025 03:01:58 +0800 Subject: [PATCH] fix: #43 --- src/ReservoirPair.sol | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ReservoirPair.sol b/src/ReservoirPair.sol index 1c122c2c..6262dd16 100644 --- a/src/ReservoirPair.sol +++ b/src/ReservoirPair.sol @@ -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;