Code to determine lightning swap losers.