Submitted by bird-flu, also found by SovaSlava, devival, 0xAadi, smiling_heretic, Kaysoft, Audinarey, Viktor_Cortess, Eigenvectors, DeFiHackLabs, rotcivegaf, cartlex_, 00decree, The_Kakers, Krace, jacopod, xAriextz, Hama, funkornaut, degensec, Fitro, AS, peanuts, evmboi32, xiao, REKCAH, and openwide
At the end of an auction in AuctionDemo, the highest bidder claims the token, which transfers the token from the token owner to the auction winner. In the same transaction, the token owner should receive the auction payout.
However, the function AuctionDemo::claimAuction() sends the payout to the AuctionDemo contract owner.
This behavior deviates from the listed invariant:
Any auction executed through AuctionDemo will have proceeds sent to the AuctionDemo contract owner, not the token owner. The token owner is left without auction proceeds.
Send the auction proceeds to ownerOfToken instead of owner.
AuctionDemo L113-L114
ETH-Transfer
a2rocket (NextGen) confirmed and commented via duplicate issue #245:
0xsomeone (judge) commented:
MrPotatoMagic (warden) commented:
0xsomeone (judge) commented:
