Tadle

Tadle
DeFi
30,000 USDC
View results
Submission Details
Severity: high
Invalid

Bid offers can not be closed on calling `closeBidOffer` function

Summary

The closeBidOffer function includes a check to ensure that only offers with a status of "Virgin" can be closed. If an offer's status is anything other than Virgin, the function will revert with an InvalidOfferStatus error. This restriction prevents the closure of ongoing offers.

Vulnerability Details

In the closeBidOffer function, there is a check to determine whether the offer status is Virgin upon closing, meaning only Virgin offers can be closed when this function is called, as shown below.

if (offerInfo.offerStatus != OfferStatus.Virgin) {
revert InvalidOfferStatus();
}

This will make it impossible to close ongoing offers.

Impact

Bid offers can not be closed

Tools Used

Manual Review

Recommendations

- if (offerInfo.offerStatus != OfferStatus.Virgin) {
+ if (offerInfo.offerStatus == OfferStatus.Virgin) {
revert InvalidOfferStatus();
}
Updates

Lead Judging Commences

0xnevi Lead Judge
11 months ago
0xnevi Lead Judge 11 months ago
Submission Judgement Published
Invalidated
Reason: Too generic

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.