lidofinance/lido-oracle

ZeroDivisionError in new testnet

Opened this issue · 0 comments

F4ever commented

There are cases when Lido Oracle fails to do report

  1. If there are no lido validators or zero balance on CL side
    Then normal_report_cl_rebase will be 0 in bunker service.
    diff_current_with_normal = 1 - current_report_cl_rebase / normal_report_cl_rebase - ZeroDivisionError here
  2. If there are no validators at all.
    Then total_predictable_validators_count will be zero in Ejector module.
    stake_volume = operator_state.predictable_validators_count / total_predictable_validators_count