From f5cfaf07b5d927174e0d514ee8f6fb6871a99d09 Mon Sep 17 00:00:00 2001 From: Micke <155267459+reallesee@users.noreply.github.com> Date: Tue, 11 Nov 2025 20:27:39 +0100 Subject: [PATCH] fix: clarify ERC20FlashMint maxFlashLoan note --- contracts/token/ERC20/extensions/ERC20FlashMint.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/token/ERC20/extensions/ERC20FlashMint.sol b/contracts/token/ERC20/extensions/ERC20FlashMint.sol index 4d3a31f6df2..3c9c1ff082a 100644 --- a/contracts/token/ERC20/extensions/ERC20FlashMint.sol +++ b/contracts/token/ERC20/extensions/ERC20FlashMint.sol @@ -43,7 +43,7 @@ abstract contract ERC20FlashMint is ERC20, IERC3156FlashLender { * * NOTE: This function does not consider any form of supply cap, so in case * it's used in a token with a cap like {ERC20Capped}, make sure to override this - * function to integrate the cap instead of `type(uint256).max`. + * function to integrate the cap instead of the default `type(uint256).max - totalSupply()`. */ function maxFlashLoan(address token) public view virtual returns (uint256) { return token == address(this) ? type(uint256).max - totalSupply() : 0;