Skip to content

Commit

Permalink
remove unused conversion function
Browse files Browse the repository at this point in the history
  • Loading branch information
fhenneke committed Nov 7, 2024
1 parent 1654386 commit 13c6a3e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
5 changes: 0 additions & 5 deletions src/fetch/payouts.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,6 @@ class TokenConversion:
"""

eth_to_token: Callable
token_to_eth: Callable


def extend_payment_df(pdf: DataFrame, converter: TokenConversion) -> DataFrame:
Expand Down Expand Up @@ -510,10 +509,6 @@ def construct_payouts(
native_token, reward_token, price_day
)
* t,
token_to_eth=lambda t: exchange_rate_atoms(
native_token, reward_token, price_day
)
* t,
)

complete_payout_df = construct_payout_dataframe(
Expand Down
4 changes: 1 addition & 3 deletions tests/unit/test_payouts.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,7 @@ def setUp(self) -> None:
0.0,
]
# Mocking TokenConversion!
self.mock_converter = TokenConversion(
eth_to_token=lambda t: int(t * 1000), token_to_eth=lambda t: t // 1000
)
self.mock_converter = TokenConversion(eth_to_token=lambda t: int(t * 1000))

def test_extend_payment_df(self):
base_data_dict = {
Expand Down

0 comments on commit 13c6a3e

Please sign in to comment.