Skip to content

Commit 01c759d

Browse files
committed
assertions for protocol fee
1 parent f8bedf8 commit 01c759d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/HookFees.t.sol

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,9 @@ contract HookFeesTest is EulerSwapTestBase {
169169
assertEq(r1New, r1 + amountInWithoutFee);
170170
}
171171

172-
assertGt(getHolderNAV(), origNav + int256(amountIn - amountInWithoutFee));
172+
uint256 protocolFeeCollected = assetTST.balanceOf(protocolFeeRecipient);
173+
assertGt(protocolFeeCollected, 0);
174+
175+
assertGt(getHolderNAV(), origNav + int256(amountIn - amountInWithoutFee) - int256(protocolFeeCollected));
173176
}
174177
}

0 commit comments

Comments
 (0)