Lucene search

K
code423n4Code4renaCODE423N4:2022-08-NOUNSDAO-FINDINGS-ISSUES-276
HistoryAug 27, 2022 - 12:00 a.m.

check if the refundGas() is successful or not

2022-08-2700:00:00
Code4rena
github.com
5
refundgas
transaction
user
lose
refundamount
mitigation
steps
check
value
refundsent
transfer failed

Lines of code

Vulnerability details

The user can lose their refundAmount in the transaction field

Recommended Mitigation Steps

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

  • šŸ‘Ž 1 reaction