pub fn liable_party(chain: &[u64], depth: usize) -> Option<u64>Expand description
Trace liability through a sub-contract chain: chain[i] is the party at depth i (the prime
contractor chain[0] sub-contracts to chain[1], etc.). Liability for a breach at depth
rests on chain[depth], capped at the performing sub-contractor at the chain’s end. None for
an empty chain.