The createOffer()
function in the PreMarkets
contract requires that collateralRate
be more than 100%
as specified in this comment.
However, the current implementation does not enforce this requirement correctly.
Issue:
The check only reverts if params.collateralRate
is less than 10000
. This allows params.collateralRate
to be exactly 10000
, which is 100%
.
Financial Risk:
Allowing collateralRate
to be 100%
can lead to insufficient collateralization, increasing the risk of default and financial loss.
Manual Review
Update the check to ensure params.collateralRate
is strictly more than 10000
.
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
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.