Skip to content

Commit 29bd17c

Browse files
authored
Update refund docs on IERC7984Receiver (#257)
* Update refund docs on `IERC7984Receiver` * Update contracts/interfaces/IERC7984Receiver.sol
1 parent 8199f33 commit 29bd17c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

contracts/interfaces/IERC7984Receiver.sol

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ import {ebool, euint64} from "@fhevm/solidity/lib/FHE.sol";
88
interface IERC7984Receiver {
99
/**
1010
* @dev Called upon receiving a confidential token transfer. Returns an encrypted boolean indicating success
11-
* of the callback. If false is returned, the transfer must be reversed.
11+
* of the callback. If false is returned, the token contract will attempt to refund the transfer.
12+
*
13+
* WARNING: Do not manually refund the transfer AND return false, as this can lead to double refunds.
1214
*/
1315
function onConfidentialTransferReceived(
1416
address operator,

0 commit comments

Comments
 (0)