Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
dglowinski committed Mar 28, 2024
1 parent a07b417 commit 78b5d2c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/unit/evault/modules/BalanceForwarder/hooks.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -258,14 +258,14 @@ contract BalanceForwarderTest_Hooks is EVaultTestBase {
address govFeeReceiver = makeAddr("govFeeReceiver");
eTST.setFeeReceiver(govFeeReceiver);

vm.prank(feeReceiver);
vm.prank(protocolFeeReceiver);
eTST.enableBalanceForwarder();
vm.prank(govFeeReceiver);
eTST.enableBalanceForwarder();

uint256 fees = eTST.accumulatedFees();

assertEq(MBT.calls(feeReceiver, 0, false), 1);
assertEq(MBT.calls(protocolFeeReceiver, 0, false), 1);
assertEq(MBT.calls(govFeeReceiver, 0, false), 1);

vm.prank(alice);
Expand All @@ -274,7 +274,7 @@ contract BalanceForwarderTest_Hooks is EVaultTestBase {
uint256 governorFees = fees * 9e17 / 1e18;
uint256 protocolFees = fees - governorFees;

assertEq(MBT.calls(feeReceiver, protocolFees, false), 1);
assertEq(MBT.calls(protocolFeeReceiver, protocolFees, false), 1);
assertEq(MBT.calls(govFeeReceiver, governorFees, false), 1);
}

Expand Down

0 comments on commit 78b5d2c

Please sign in to comment.