Skip to content

Commit d32abff

Browse files
committed
fix: #43
1 parent d60f747 commit d32abff

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/ReservoirPair.sol

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,10 @@ abstract contract ReservoirPair is IAssetManagedPair, ReservoirERC20, RGT {
106106
uint32 aBlockTimestampLast,
107107
uint16 aIndex
108108
) internal {
109-
require(aBalance0 <= type(uint104).max && aBalance1 <= type(uint104).max, Overflow());
110-
require(aReserve0 <= type(uint104).max && aReserve1 <= type(uint104).max, Overflow());
109+
require(aBalance0 <= type(uint104).max, Overflow());
110+
require(aBalance1 <= type(uint104).max, Overflow());
111+
require(aReserve0 <= type(uint104).max, Overflow());
112+
require(aReserve1 <= type(uint104).max, Overflow());
111113

112114
uint32 lBlockTimestamp = uint32(block.timestamp); // invalid after year 2106
113115
uint32 lTimeElapsed;

0 commit comments

Comments
 (0)