In this case, the loans that formed the basis of the contract turned out not to be what both sides thought they were
There is no "thought" in a contract.
On the contrary, that's *all* a contract is. A written agreement may be evidence of what the agreement was. But the agreement itself is purely thought. A "contract" is a meeting of the minds.