From 01b3f6cad0fbc91bce876bc2fc91fbd38265da6c Mon Sep 17 00:00:00 2001 From: Tomass <155266802+zeroprooff@users.noreply.github.com> Date: Fri, 7 Nov 2025 17:20:15 +0100 Subject: [PATCH] fix: sync ERC20FlashMint with implementation --- 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;