Indeed , while both of those companies have lately recorded huge losses on credit default swaps -- insurance contracts that allow investors to bet for or against a corporation 's bonds -- Fairfax has reported immense gains in this arena .