Platform: Code4rena
Start Date: 23/09/2021
Pot Size: $50,000 USDC
Total HM: 5
Participants: 14
Period: 7 days
Judge: ghoulsol
Total Solo HM: 3
Id: 32
League: ETH
Rank: 9/14
Findings: 1
Award: $356.84
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: 0xRajeev
Also found by: GalloDaSballo
GalloDaSballo
Constructor doesn't have any checks on input parameters https://github.com/code-423n4/2021-09-wildcredit/blob/c48235289a25b2134bb16530185483e8c85507f8/contracts/InterestRateModel.sol#L36
This is in contradiction with the setters, https://github.com/code-423n4/2021-09-wildcredit/blob/c48235289a25b2134bb16530185483e8c85507f8/contracts/InterestRateModel.sol#L43
which are all checking for the relation between the values
Add the checks in the constructor as well
require(_value < lowRate, "InterestRateModel: _value < lowRate");
require(_value < highRate, "InterestRateModel: _value < lowRate");
#0 - talegift
2021-10-02T04:54:01Z
Duplicate #63