Immutable variables that are not validated in the constructor generate possible DoS because are immutables (projectToken, pool, jbxTerminal, weth and _projectTokenIsZero) in the uniswapV3SwapCallback(), _swap(), didPay() and _mint() functions of the contract.
Lines of code
https://github.com/code-423n4/2023-05-juicebox/blob/9d0458282511ff269b3b35b5b082b56d5cc08663/juice-buyback/contracts/JBXBuybackDelegate.sol#L118
Vulnerability details
Impact
Immutable variables that are not validated in the constructor generate possible DoS because are immutables (projectToken, pool, jbxTerminal, weth and _projectTokenIsZero) in the uniswapV3SwapCallback(), _swap(), didPay() and _mint() functions of the contract.
Recommended Mitigation Steps
add address(0) validation in the constructor
Assessed type
DoS