Description
Limits for the fee rate should be set to avoid mistakes when setting the fee. A fee rate that is over 100% could result in the exercise function not being able to execute since the computation on line 289 would result in an underflow and revert.
A constant variable for the max fee rate could be used. The setFee function should check the supplied feeRate against this max fee value.
From dipp in https://github.com/code-423n4/2022-05-cally-findings/issues/286
No min/max fee rate Line Refrences Cally.sol#L119-121
Description Limits for the fee rate should be set to avoid mistakes when setting the fee. A fee rate that is over 100% could result in the exercise function not being able to execute since the computation on line 289 would result in an underflow and revert.
A constant variable for the max fee rate could be used. The setFee function should check the supplied feeRate against this max fee value.