a) If this is intended functionality, all fine, otherwise:
When lender fees
is zero, this means interest will never be reduced by fees
. But if lender fee not allowed to be zero, then there's currently a check missing.
b) Similar for borrowerFee on L93.
n/a
When lender fees
is zero, this means interest will never be reduced by fees
.
VSC, manual.
add the following into function as shown:
if (_fee == 0) revert FeeZero();
function setLenderFee(uint256 _fee) external onlyOwner {
if (_fee == 0) revert FeeZero();
if (_fee > 5000) revert FeeTooHigh();
lenderFee = _fee;
}
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.