The setPool() function in the contract does not validate that the p.collateralToken and the p.loanToken addresses provided are not the same token.
The correct functioning of the contract is affected if these tokens are of the same address
Current tests in the repo show failing tests if the provided token addresses are in fact equivalent
Manual Review
Validate the Contract Addresses are not the same
Whilst this can be guarded on the frontend inputs, validation should be at the smart contract level to ensure immutable 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.