pub fn compute_settlement_shares(
escrow_shares: u128,
expected_amount: u128,
collected_amount: u128,
) -> Result<EscrowSettlement, RecoveryError>Expand description
Compute the shares to burn and refund based on collected vs expected amounts.