diff --git a/requirements_developers.txt b/requirements_developers.txt index d0d68a0a..cd0fe6ad 100644 --- a/requirements_developers.txt +++ b/requirements_developers.txt @@ -5,7 +5,7 @@ parameterized>=0.9.0 Pygments>=2.16.1 graphviz>=0.20.1 click==8.1.7 -black==23.3.0 +black==24.3.0 flake8>=5.0.4 recommonmark==0.7.1 sphinx_rtd_theme==1.3.0 diff --git a/src/blockwatch/tzpro_reward_provider_helper.py b/src/blockwatch/tzpro_reward_provider_helper.py index 8f3c0e9c..9e1725e9 100644 --- a/src/blockwatch/tzpro_reward_provider_helper.py +++ b/src/blockwatch/tzpro_reward_provider_helper.py @@ -220,9 +220,9 @@ def get_rewards_for_cycle(self, cycle): for list_address in split_addresses: list_curr_balances = self.fetch_current_balance(list_address) for d in list_address: - root["delegators_balances"][d][ - "current_balance" - ] = list_curr_balances[d] + root["delegators_balances"][d]["current_balance"] = ( + list_curr_balances[d] + ) curr_bal_delegators.append(d) # All done fetching balances. diff --git a/src/util/csv_calculation_file_parser.py b/src/util/csv_calculation_file_parser.py index 97f32845..309fdacf 100644 --- a/src/util/csv_calculation_file_parser.py +++ b/src/util/csv_calculation_file_parser.py @@ -243,17 +243,23 @@ def write( pymnt_log.amount, pymnt_log.service_fee_amount, pymnt_log.service_fee_rate, - "pending" - if early_payout - else "{:d}".format(int(pymnt_log.overestimate)), + ( + "pending" + if early_payout + else "{:d}".format(int(pymnt_log.overestimate)) + ), pymnt_log.adjustment, pymnt_log.adjusted_amount, - "pending" - if not fees_simulated - else "{:d}".format(int(pymnt_log.delegate_transaction_fee)), - "pending" - if not fees_simulated - else "{:d}".format(int(pymnt_log.delegator_transaction_fee)), + ( + "pending" + if not fees_simulated + else "{:d}".format(int(pymnt_log.delegate_transaction_fee)) + ), + ( + "pending" + if not fees_simulated + else "{:d}".format(int(pymnt_log.delegator_transaction_fee)) + ), int(1) if pymnt_log.payable else int(0), int(1) if pymnt_log.skipped else int(0), pymnt_log.skippedatphase,