Inconsistencies when checking if the auction is active #352
Labels
1 (Low Risk)
Assets are not at risk. State handling, function incorrect as to spec, issues with comments
bug
Something isn't working
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
pauliax
Vulnerability details
Impact
When auction.endingTime == now, function purchaseArbitrageTokens thinks that auction is still active, while isAuctionFinished and earlyExitReturn think that it has ended:
purchaseArbitrageTokens:
isAuctionFinished:
earlyExitReturn:
Recommended Mitigation Steps
Consider unifying it across the functions.
The text was updated successfully, but these errors were encountered: