https://github.com/code-423n4/2024-05-predy/blob/a9246db5f874a91fb71c296aac6a66902289306a/src/types/GlobalData.sol#L26-L32
These functions are used to validate the vaultIds or pairIds. The issue, however, is that these functions use a non-strict check when doing this validation, which then leads to the validations to fail when the pair/vault Id is the freshest of the bunch, i.e., we expect the last pair to be globalData.pairsCount and the last vaultId to be equal to globalData.vaultCount, but currently passing in these values would cause an invalidation of them.
Intended functionality seems to be broken as Ids that are valid are perceived as invalid for both the vaults and the pairs.
Consider making the checks strict:
