From 137dc2cf045b8ae8719f0f8795466ecd11599bca Mon Sep 17 00:00:00 2001 From: Schlagonia Date: Tue, 28 Nov 2023 15:01:22 -0700 Subject: [PATCH] test: get correct protocol fee --- tests/test_operation.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_operation.py b/tests/test_operation.py index b38df24..7670d60 100644 --- a/tests/test_operation.py +++ b/tests/test_operation.py @@ -137,7 +137,9 @@ def test__profitable_report__with_fee( assert profit > 0 - (protocol_fee, protocol_fee_recipient) = factory.protocol_fee_config() + (protocol_fee, protocol_fee_recipient) = factory.protocol_fee_config( + sender=strategy.address + ) expected_performance_fee = ( (profit * performance_fee // MAX_BPS) * (10_000 - protocol_fee) // MAX_BPS