From 7f75e01a2eb59812530291999476814b063b9dd6 Mon Sep 17 00:00:00 2001 From: Red Swan Date: Thu, 30 Apr 2026 12:10:50 -0600 Subject: [PATCH] Update balanceOf function documentation Clarify behavior of balanceOf function regarding token existence and execution. --- src/utils/SafeTransferLib.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/SafeTransferLib.sol b/src/utils/SafeTransferLib.sol index 1e08d0ec4..799af04c7 100644 --- a/src/utils/SafeTransferLib.sol +++ b/src/utils/SafeTransferLib.sol @@ -438,7 +438,7 @@ library SafeTransferLib { } /// @dev Returns the amount of ERC20 `token` owned by `account`. - /// Returns zero if the `token` does not exist. + /// Returns zero if the `token` reverts during execution, does not exist, or returns less than 32 bytes. function balanceOf(address token, address account) internal view returns (uint256 amount) { /// @solidity memory-safe-assembly assembly {