In the LendingPool contract, the collateralization check in the borrow function is reversed, allowing users to borrow amounts that should be restricted by their collateral value.
The borrow function uses the following check to validate if a user has enough collateral:
Example scenario with current liquidation threshold of liquidationThreshold = 80 * 1e2 (80% in basis points):
The current check allows the user to borrow 600 when they should only be able to borrow 400 based on their 500 collateral value.
High: Users can borrow more than their collateral safely supports. Positions start above liquidation threshold.
Reverse the check to validate debt against collateral value:
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.