Lack of check for address(0) can lead to wrong emission of events.
setPool emits an event based on whether a new pool was created or an existing one was updated. The way the function distinguishes these two scenarios is by checking if the lender of the existing pool is address(0). However, a check that ensures that lender != address(0) does not exist. A pool with lender = address(0) will always emit PoolCreated event.
Emission of wrong events. Can be problematic if other entries listen to the contract.
Manual review
Make sure the lender is not address(0) by adding the following check in the validation:
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.