Open code423n4 opened 3 years ago
paulius.eth
Here the condition should be '<=', not '<' to allow filling the cap fully: require(nextTotalBorrows < borrowCap, "market borrow cap reached");
require(nextTotalBorrows <= borrowCap, "market borrow cap reached");
Added to backlog.
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");