Tadle

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

In emergency scenario, owner can not settle ask maker

Vulnerability Details

if (status == MarketPlaceStatus.AskSettling) {
if (_msgSender() != offerInfo.authority) {
revert Errors.Unauthorized();
}
} else {
if (_msgSender() != owner()) {
revert Errors.Unauthorized();
}
if (_settledPoints > 0) { // <-
revert InvalidPoints();
}
}

In settleAskMaker function, when marketplace status is not asksettling, owner still can call settleAskMaker function. But due to checking condition, owner can not call with settledPoint > 0, which does not make any sense when _settledPoint = 0

Impact

Part of function become non-functional due to checking condition

Tools Used

Manual review

Recommendations

Update function to:

- if (_settledPoints > 0) {
+ if (_settledPoints == 0) {
revert InvalidPoints();
}
Updates

Lead Judging Commences

0xnevi Lead Judge
10 months ago
0xnevi Lead Judge 10 months ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

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