The user can lose their refundAmount in the transaction field
Add check
(bool refundSent, ) = msg.sender.call{ value: refundAmount }('');
require(refundSent, "Transfer failed.");
The text was updated successfully, but these errors were encountered:
š 1 Shungy reacted with thumbs down emoji
All reactions