@@ -119,9 +119,9 @@ contract FeeForkTest is Test {
119119 );
120120
121121 // check that asset balance will be higher if we withdraw
122- uint256 expectedTotalWithdrawl = morphoVault.convertToAssets (d.vaultShares);
123- console.log ("expectedTotalWithdrawl " , expectedTotalWithdrawl );
124- assertEq (expectedTotalWithdrawl > depositAmount, true );
122+ uint256 expectedTotalWithdrawal = morphoVault.convertToAssets (d.vaultShares);
123+ console.log ("expectedTotalWithdrawal " , expectedTotalWithdrawal );
124+ assertEq (expectedTotalWithdrawal > depositAmount, true );
125125
126126 vm.startPrank (APP_USER_ALICE);
127127 morphoPerfFeeFacet.withdrawFromMorpho (address (morphoVault));
@@ -138,7 +138,7 @@ contract FeeForkTest is Test {
138138 uint256 userBalance = underlyingERC20.balanceOf (APP_USER_ALICE);
139139 uint256 feeContractBalance = underlyingERC20.balanceOf (address (morphoPerfFeeFacet));
140140
141- uint256 expectedTotalProfit = expectedTotalWithdrawl - depositAmount;
141+ uint256 expectedTotalProfit = expectedTotalWithdrawal - depositAmount;
142142 uint256 expectedUserProfit = expectedTotalProfit - (expectedTotalProfit * performanceFeePercentage / 10000 );
143143 uint256 expectedFeeContractProfit = expectedTotalProfit * performanceFeePercentage / 10000 ;
144144 console.log ("expectedTotalProfit " , expectedTotalProfit);
@@ -193,9 +193,9 @@ contract FeeForkTest is Test {
193193 assertEq (feeContractVaultShares, d.vaultShares);
194194
195195 // check that asset balance will be slightly lower if we withdraw now, due to fees / rounding
196- uint256 expectedTotalWithdrawl = morphoVault.convertToAssets (d.vaultShares);
197- console.log ("expectedTotalWithdrawl " , expectedTotalWithdrawl );
198- assertEq (expectedTotalWithdrawl < depositAmount, true );
196+ uint256 expectedTotalWithdrawal = morphoVault.convertToAssets (d.vaultShares);
197+ console.log ("expectedTotalWithdrawal " , expectedTotalWithdrawal );
198+ assertEq (expectedTotalWithdrawal < depositAmount, true );
199199
200200 vm.startPrank (APP_USER_ALICE);
201201 morphoPerfFeeFacet.withdrawFromMorpho (address (morphoVault));
@@ -296,9 +296,9 @@ contract FeeForkTest is Test {
296296 );
297297
298298 // check that asset balance will be higher if we withdraw
299- uint256 expectedTotalWithdrawl = morphoVault.convertToAssets (d.vaultShares);
300- console.log ("expectedTotalWithdrawl " , expectedTotalWithdrawl );
301- assertEq (expectedTotalWithdrawl > depositAmount, true );
299+ uint256 expectedTotalWithdrawal = morphoVault.convertToAssets (d.vaultShares);
300+ console.log ("expectedTotalWithdrawal " , expectedTotalWithdrawal );
301+ assertEq (expectedTotalWithdrawal > depositAmount, true );
302302
303303 vm.startPrank (APP_USER_ALICE);
304304 morphoPerfFeeFacet.withdrawFromMorpho (address (morphoVault));
@@ -315,7 +315,7 @@ contract FeeForkTest is Test {
315315 uint256 userBalance = underlyingERC20.balanceOf (APP_USER_ALICE);
316316 uint256 feeContractBalance = underlyingERC20.balanceOf (address (morphoPerfFeeFacet));
317317
318- uint256 expectedTotalProfit = expectedTotalWithdrawl - depositAmount;
318+ uint256 expectedTotalProfit = expectedTotalWithdrawal - depositAmount;
319319 uint256 expectedUserProfit = expectedTotalProfit - (expectedTotalProfit * performanceFeePercentage / 10000 );
320320 uint256 expectedFeeContractProfit = expectedTotalProfit * performanceFeePercentage / 10000 ;
321321 console.log ("expectedTotalProfit " , expectedTotalProfit);
0 commit comments