pub fn to_range_payouts(
        &self,
        total_collateral: u64,
        rounding_intervals: &RoundingIntervals,
    ) -> Result<Vec<RangePayout>, Error> {
        let mut range_payouts = Vec::new();
        for piece in &self.payout_function_pieces {
            piece.to_range_payouts(total_collateral, rounding_intervals, &mut range_payouts)?;
        }
        Ok(range_payouts)
    }
/// Generate the range payouts from the function.
Generate the range payouts from the function.
Generate the range payouts from the function .
pub fn to_range_payouts(
        &self,
        total_collateral: u64,
        rounding_intervals: &RoundingIntervals,
    ) -> Result<Vec<RangePayout>, Error> {
        let mut range_payouts = Vec::new();
        for piece in &self.payout_function_pieces {
            piece.to_range_payouts(total_collateral, rounding_intervals, &mut range_payouts)?;
        }
        Ok(range_payouts)
    }
pub fn to_range_payouts ( & self , total_collateral : u64 , rounding_intervals : & RoundingIntervals , ) -> Result < Vec < RangePayout > , Error > { let mut range_payouts = Vec :: new ( ) ; for piece in & self . payout_function_pieces { piece . to_range_payouts ( total_collateral , rounding_intervals , & mut range_payouts ) ? ; } Ok ( range_payouts ) }
Generate the range payouts from the function.
Generate the range payouts from the function .
&self
total_collateral
u64
rounding_intervals
&RoundingIntervals