In StabilityBranch::refundSwap
a swap request with deadline equal to block.timestamp
(not expired) can be refunded.
In StabilityBranch::refundSwap
a swap request with deadline equal to block.timestamp
(not expired) can be refunded. This is due to the given check:
If deadlineCache
is equal to block.timestamp
the call will not revert. This is an issue because at a deadline equal to block.timestamp
a request can be fulfilled as it is not expired. This breaks the invariant of the refundSwap
function.
This breaks the invariant of the refundSwap
function and leads to a confusing workflow for swap requests.
Manual Review
Change the given check in the following way:
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.