From 89c374f382c2dd9c69f6cc951348c9317a8ba2b9 Mon Sep 17 00:00:00 2001 From: sashaodessa <140454972+sashaodessa@users.noreply.github.com> Date: Thu, 9 Oct 2025 16:18:17 +0200 Subject: [PATCH 1/3] Update ERC20FlashMint.sol --- contracts/token/ERC20/extensions/ERC20FlashMint.sol | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/contracts/token/ERC20/extensions/ERC20FlashMint.sol b/contracts/token/ERC20/extensions/ERC20FlashMint.sol index 4d3a31f6df2..a2bd1a3bf4e 100644 --- a/contracts/token/ERC20/extensions/ERC20FlashMint.sol +++ b/contracts/token/ERC20/extensions/ERC20FlashMint.sol @@ -72,10 +72,7 @@ abstract contract ERC20FlashMint is ERC20, IERC3156FlashLender { * @param value The amount of tokens to be loaned. * @return The fees applied to the corresponding flash loan. */ - function _flashFee(address token, uint256 value) internal view virtual returns (uint256) { - // silence warning about unused variable without the addition of bytecode. - token; - value; + function _flashFee(address, uint256) internal view virtual returns (uint256) { return 0; } From 717b774cffb1de3b62467194c23353e0ecb65882 Mon Sep 17 00:00:00 2001 From: sashaodessa <140454972+sashaodessa@users.noreply.github.com> Date: Thu, 9 Oct 2025 17:42:19 +0200 Subject: [PATCH 2/3] Update contracts/token/ERC20/extensions/ERC20FlashMint.sol Co-authored-by: Hadrien Croubois --- 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 a2bd1a3bf4e..4e771a45895 100644 --- a/contracts/token/ERC20/extensions/ERC20FlashMint.sol +++ b/contracts/token/ERC20/extensions/ERC20FlashMint.sol @@ -72,7 +72,7 @@ abstract contract ERC20FlashMint is ERC20, IERC3156FlashLender { * @param value The amount of tokens to be loaned. * @return The fees applied to the corresponding flash loan. */ - function _flashFee(address, uint256) internal view virtual returns (uint256) { + function _flashFee(address /*token*/, uint256 /*value*/) internal view virtual returns (uint256) { return 0; } From f8fa15b437cc4115c39e0ebf9ba5ddd9723c389b Mon Sep 17 00:00:00 2001 From: ernestognw Date: Fri, 17 Oct 2025 10:53:57 -0600 Subject: [PATCH 3/3] Remove params for _flashFee --- contracts/token/ERC20/extensions/ERC20FlashMint.sol | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/contracts/token/ERC20/extensions/ERC20FlashMint.sol b/contracts/token/ERC20/extensions/ERC20FlashMint.sol index 4e771a45895..142d8494d56 100644 --- a/contracts/token/ERC20/extensions/ERC20FlashMint.sol +++ b/contracts/token/ERC20/extensions/ERC20FlashMint.sol @@ -68,8 +68,7 @@ abstract contract ERC20FlashMint is ERC20, IERC3156FlashLender { * @dev Returns the fee applied when doing flash loans. By default this * implementation has 0 fees. This function can be overloaded to make * the flash loan mechanism deflationary. - * @param token The token to be flash loaned. - * @param value The amount of tokens to be loaned. + * * @return The fees applied to the corresponding flash loan. */ function _flashFee(address /*token*/, uint256 /*value*/) internal view virtual returns (uint256) {