Detroit has stumped up $77m to UBS and Bank of America's Merrill Lynch unit to end a raft of crippling interest rate swaps contracts that were partly to blame for it becoming the largest city in the US to file for bankruptcy.