The abortBidTaker
function in the PreMarkets
contract does not verify that the stock type is "Bid" before allowing the abortion process. This gap could lead to unintended operations on non-bid stocks, causing potential issues in the handling of stocks and refunds.
The abortBidTaker
function handles the abortion of bid takers and the refund of associated deposits but lacks a crucial check to ensure that the stock is of type "Bid":
The absence of a check to ensure the stock is of type "Bid" could result in the function being invoked for stocks that are not bids. This misalignment can lead to incorrect handling of stock statuses and refunds, potentially impacting the integrity of the stock and offer management system.
Manual Code Review
Incorporate a check to confirm that the stock type is "Bid" before proceeding with the abortion.
Low severity, the check is indeed missing for `abortBidTaker`, however, this would be contingent on user error and the funds are not locked, given admin can rescue them via `Rescuable.sol`
Leaving high severity for now but will leave open for appeals. Technically, users can choose not to transact this type offers if they are aware of such undercollaterized relisted offers, in which case it will have no impact. However, if subsequent takers transact this relisted offers, this can allow profits without having to settle any points.
Low severity, the check is indeed missing for `abortBidTaker`, however, this would be contingent on user error and the funds are not locked, given admin can rescue them via `Rescuable.sol`
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.