20,000 USDC
View results
Submission Details
Severity: gas
Valid

Code Duplication

Summary

There is a duplicated code for the pool id calculation in the contract.

Vulnerability Details

The keccak256(abi.encode(... )) is called directly in the refinance and seizeLoan functions, however, there is a getPoolId function that executes this logic.

Impact

These duplications decrease the code readability.

Tools Used

Manual Review

Recommendations

Call the getPoolId instead of direct pool id calculation.

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.