Skip to content

Commit

Permalink
fix: add vaults data for simulation
Browse files Browse the repository at this point in the history
  • Loading branch information
tamtamchik committed Jan 7, 2025
1 parent 5a23f7c commit a3490c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/modules/accounting/accounting.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ def simulate_rebase_after_report(
To calculate how much withdrawal request protocol can finalize - needs finalization share rate after this report
"""
validators_count, cl_balance = self._get_consensus_lido_state(blockstamp)
vaults_values, vaults_net_cash_flows = self._calculate_vaults_report(blockstamp)

chain_conf = self.get_chain_config(blockstamp)

Expand All @@ -289,9 +290,8 @@ def simulate_rebase_after_report(
el_rewards, # el_rewards_vault_balance
self.get_shares_to_burn(blockstamp), # shares_requested_to_burn
[], # withdrawal_finalization_batches
# TODO: add real values for vaults accounting
[], # vault_values
[], # net_cash_flows
vaults_values,
vaults_net_cash_flows,
)

withdrawal_share_rate = 0 # For initial calculation we assume 0 share rate
Expand Down

0 comments on commit a3490c5

Please sign in to comment.