code-423n4 / 2021-04-basedloans-findings

0 stars 1 forks source link

Allow borrowCap to be filled fully #28

Open code423n4 opened 3 years ago

code423n4 commented 3 years ago

Handle

paulius.eth

Vulnerability details

Impact

Here the condition should be '<=', not '<' to allow filling the cap fully: require(nextTotalBorrows < borrowCap, "market borrow cap reached");

Recommended Mitigation Steps

require(nextTotalBorrows <= borrowCap, "market borrow cap reached");

ghoul-sol commented 3 years ago

Added to backlog.