the If code checks if the rate is the rate that the protocol has expected. But as we can see, the rate does not check if the colleteralrate is 100%.
the 100% colleteral rate is not the contract intended, and it can also lead to the loss of money value of the colleteral due to the price change of the colleteral.
VScode, foundry
short term: set the phrase to
in the if checker.
long term: adjust the colleteral rate in order to prevent loss of value.
I believe this is borderline informational/low. Despite this off-by-one error of the intended check, the difference between 100% and 101% is minimal, so I believe whether or not 100% is allowed has minimal impact. Ultimately, it still comes down to the risk level that users are willing to take
Similar to issue #1323, Despite this off-by-one error of the intended check, the difference between 99% and 100% is minimal, so I believe whether or not 100% is allowed has minimal impact. Ultimately, takers should not be realistically creating offer with such tradeTax
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.