Skip to main content

energy_viable

Function energy_viable 

Source
pub fn energy_viable(
    value_returned: u64,
    energy_invested: u64,
    min_ratio: f32,
) -> bool
Expand description

The solar-excess viability gate: a paid job should only be dispatched to an energy-supplier node if the value returned justifies the energy spent — E-ROI at or above min_ratio. Below the floor the job is net-extractive and must be refused. Reuses eroi_viable (the thermodynamic cost cap).