Takers who listed offers make huge profits when the offer is aborted in turbo mode.
When an offer is aborted by calling Premarktes::abortAskOfffer
in turbo mode, the offer owner collateral is refunded, the takers under the offer can then call Premarktes::abortBidTaker
to get back their tokens. If a taker has listed their stock and has takers under it, the Premarktes::abortBidTaker
function still refunds them their initial deposit.
The taker who listed his stock receives a full refund of his tokens plus the tokens paid to him by the takers matched to his offer.
Note: The POC does not show results due to an error in the abortBidTaker function.
Manual Analysis
Add a check for stockInfo.offer
in the Premarktes::abortBidTaker
function so as to know if a stock is listed and calculate the refunded amount accordingly.
Valid high severity, given orginal offer makers are not a trusted entity to enforce a settlement. The trade tax set by the maker should be returned back to the takers to avoid abuse of abortion of ask offers to steal trade tax from takers. Note for appeals period: See issue #528 for additional details
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.