subtract_refunds_from_epoch_credits_collection

Function subtract_refunds_from_epoch_credits_collection 

Source
pub fn subtract_refunds_from_epoch_credits_collection(
    credits_per_epochs: &mut SignedCreditsPerEpoch,
    storage_fee: Credits,
    start_epoch_index: EpochIndex,
    current_epoch_index: EpochIndex,
    epochs_per_era: u16,
) -> Result<(), ProtocolError>
Expand description

Distributes refunds to epochs into SignedCreditsPerEpoch and returns leftovers It skips epochs up to specified skip_until_epoch_index