Skip to content

Commit

Permalink
clarify distribute when balance is zero
Browse files Browse the repository at this point in the history
  • Loading branch information
alecps committed Feb 6, 2024
1 parent 723ad22 commit 0cde67a
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion packages/protocol/test-sol/common/FeeHandler.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ contract FeeHandlerTest_Distribute is FeeHandlerTest {
feeHandler.distribute(address(stableToken));
}

function test_DoesntDistributeWhenBalanceIsZero()
function test_DoesntDistributeWhenToDistributeIsZero()
public
setBurnFraction
setMaxSlippage
Expand All @@ -351,6 +351,19 @@ contract FeeHandlerTest_Distribute is FeeHandlerTest {
assertEq(entries.length, 0);
}

function test_DoesntDistributeWhenBalanceIsZero()
public
setBurnFraction
setMaxSlippage
setUpBeneficiary
activateToken
{
vm.recordLogs();
feeHandler.distribute(address(stableToken));
Vm.Log[] memory entries = vm.getRecordedLogs();
assertEq(entries.length, 0);
}

function test_Distribute()
public
setBurnFraction
Expand Down

0 comments on commit 0cde67a

Please sign in to comment.