Function compute_payout_success_outcome

Source
pub fn compute_payout_success_outcome(
    escrow_shares: u128,
    expected_amount: u128,
    collected_amount: u128,
) -> PayoutOutcome
Expand description

Compute a success payout outcome from escrow and collected amounts.

This maps recovery math into kernel PayoutOutcome::Success.