Skip to content

Commit

Permalink
remove constant in computing service fee
Browse files Browse the repository at this point in the history
  • Loading branch information
fhenneke committed Nov 12, 2024
1 parent 3645d92 commit 0dd7995
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/fetch/payouts.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,7 @@ def reward_scaling(self) -> Fraction:

def total_service_fee(self) -> Fraction:
"""Total service fee charged from rewards"""
return (
SERVICE_FEE_FACTOR
* self.service_fee
* (self.primary_reward_cow + self.quote_reward_cow)
)
return self.service_fee * (self.primary_reward_cow + self.quote_reward_cow)

def is_overdraft(self) -> bool:
"""
Expand Down

0 comments on commit 0dd7995

Please sign in to comment.