PreMarkets.listOffer()
uses an incorrect collateral rate during a collateral calculation.
In listOffer()
, the caller deposits collateral when offer settle type is Protected
and it calculates collateral amount using offerInfo.collateralRate
.
listOffer()
has a _collateralRate
param which will be used to update the offer info with and the collateral amount should be calculated with this collateral rate.
listOffer()
wouldn't work properly for Protected
type as it calculates collateral amount wrongly.
Manual Review
listOffer()
should use _collateralRate
instead of offerInfo.collateralRate
for Protected
type.
Valid high severity, because the collateral rate utilized when creating an offer is stale and retrieved from a previously set collateral rate, it allows possible manipilation of refund amounts using an inflated collateral rate to drain funds from the CapitalPool contract
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.