(i)in a case falling under clause (a), pays or has paid the agreed consideration for the whole of the contract reduced by the consideration for the part which must be left unperformed and a case falling under clause (b), pays or had paid the consideration for the whole of the contract without any abatement; and