20,000 USDC
View results
Submission Details
Severity: low

push elements to the array without `pop` function

New items are pushed into the array. Currently, the array can grow indefinitely. E.g. there's no maximum limit and there's no functionality to remove array values. If the array grows too large, calling functions that use the array might run out of gas and revert.

Recommendations

add a function to remove the stale loans from the loans[] array

Support

FAQs

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