From f55dc9fced155ee364e9c6a9e306d71ee2cd17ba Mon Sep 17 00:00:00 2001 From: Jean-Grimal Date: Tue, 5 Sep 2023 11:45:38 +0200 Subject: [PATCH] feat: review --- contracts/SupplyVault.sol | 4 ---- 1 file changed, 4 deletions(-) diff --git a/contracts/SupplyVault.sol b/contracts/SupplyVault.sol index f34568fd..cc9130e9 100644 --- a/contracts/SupplyVault.sol +++ b/contracts/SupplyVault.sol @@ -108,8 +108,6 @@ contract SupplyVault is ERC4626, Ownable2Step, ISupplyVault { fee = uint96(newFee); emit EventsLib.SetFee(newFee); - - if (newFee != 0) lastTotalAssets = totalAssets(); } function setFeeRecipient(address newFeeRecipient) external onlyOwner { @@ -121,8 +119,6 @@ contract SupplyVault is ERC4626, Ownable2Step, ISupplyVault { feeRecipient = newFeeRecipient; emit EventsLib.SetFeeRecipient(newFeeRecipient); - - if (newFeeRecipient != address(0)) lastTotalAssets = totalAssets(); } /* ONLY RISK MANAGER FUNCTIONS */