Skip to content

Commit 9817833

Browse files
authored
Withdrawals: Improve logging (#139)
* Withdrawals: Improve logging Signed-off-by: cyc60 <[email protected]> * Version bump Signed-off-by: cyc60 <[email protected]> --------- Signed-off-by: cyc60 <[email protected]>
1 parent 2144606 commit 9817833

File tree

3 files changed

+33
-30
lines changed

3 files changed

+33
-30
lines changed

oracle/oracle/rewards/controller.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ async def process(
116116
total_rewards += balance_rewards
117117
activated_validators = len(validator_indexes)
118118

119+
withdrawals_rewards = Wei(0)
119120
if (
120121
self.withdrawals_genesis_epoch
121122
and update_epoch >= self.withdrawals_genesis_epoch
@@ -131,6 +132,8 @@ async def process(
131132
logger.info(
132133
f"Retrieved pool validator rewards:"
133134
f" total={pretty_total_rewards},"
135+
f" balance_rewards={self.format_ether(balance_rewards)},"
136+
f" withdrawals_rewards={self.format_ether(withdrawals_rewards)},"
134137
f" fees={self.format_ether(voting_params['total_fees'])}"
135138
)
136139
if not total_rewards:

poetry.lock

Lines changed: 29 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "oracle"
3-
version = "2.9.0"
3+
version = "2.9.1"
44
description = "StakeWise Oracles are responsible for submitting off-chain data."
55
authors = ["Dmitri Tsumak <[email protected]>"]
66
license = "AGPL-3.0-only"

0 commit comments

Comments
 (0)