Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.

Commit

Permalink
test: get correct protocol fee
Browse files Browse the repository at this point in the history
  • Loading branch information
Schlagonia committed Nov 28, 2023
1 parent 3ef2e76 commit 137dc2c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_operation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 137dc2c

Please sign in to comment.