Safe harbor applied to contract deemed to be repurchase agreement