Skip to content

Commit

Permalink
black fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fhenneke committed Jan 19, 2024
1 parent 34462be commit 579b55c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/fetch/payouts.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,12 @@ def from_series(cls, frame: Series) -> RewardAndPenaltyDatum:

def total_outgoing_eth(self) -> int:
"""Total outgoing amount (including slippage) for the payout."""
return self.payment_eth + self.secondary_reward_eth + self.slippage_eth - self.protocol_fee_eth
return (
self.payment_eth
+ self.secondary_reward_eth
+ self.slippage_eth
- self.protocol_fee_eth
)

def total_cow_reward(self) -> int:
"""Total outgoing COW token reward"""
Expand Down Expand Up @@ -167,7 +172,9 @@ def as_payouts(self) -> list[Transfer]:
total_eth_reward = int(self.total_eth_reward())
total_cow_reward = int(self.total_cow_reward())

reimbursement_eth = int(self.exec_cost + self.slippage_eth - self.protocol_fee_eth)
reimbursement_eth = int(
self.exec_cost + self.slippage_eth - self.protocol_fee_eth
)
# We do not have access to token conversion here, but we do have other converted values
# x_eth:x_cow = y_eth:y_cow --> y_cow = y_eth * x_cow / x_eth
reimbursement_cow = (
Expand Down

0 comments on commit 579b55c

Please sign in to comment.