Use of Boolean constants (true/false) in code is indicative of flawed logic.
Boolean constants in code have only a few legitimate uses. Other uses (in complex expressions, as conditionals) indicate either an error or, most likely, the persistence of faulty code.
Proof of Concept
File: Drips.sol
716: while (true) {
882: while (true) {
Lines of code
https://github.com/code-423n4/2023-01-drips/blob/main/src/Drips.sol#L716 https://github.com/code-423n4/2023-01-drips/blob/main/src/Drips.sol#L882
Vulnerability details
Impact
Use of Boolean constants (true/false) in code is indicative of flawed logic.
Boolean constants in code have only a few legitimate uses. Other uses (in complex expressions, as conditionals) indicate either an error or, most likely, the persistence of faulty code.
Proof of Concept
Tools Used
VS Code
Recommended Mitigation Steps
Verify and simplify the condition.