§ 2-718. Liquidation or Limitation of Damages; Deposits.

(1) Damages for breach by either party may be liquidated in the agreementbut only at an amount which is reasonable in the light of the anticipated or actual harm caused by the breach, the difficulties of proof of loss, and the inconvenience or nonfeasibility of otherwise obtaining an adequate remedy. A term fixing unreasonably large liquidated damages is void as a penalty.

(2) Where the seller justifiably withholds delivery of goods because of the buyer'sbreach, the buyer is entitled to restitution of any amount by which the sum of his payments exceeds

(3) The buyer's right to restitution under subsection (2) is subject to offset to the extent that the sellerestablishes

(4) Where a seller has received payment in goods their reasonable value or the proceeds of their resale shall be treated as payments for the purposes of subsection (2); but if the seller has notice of the buyer's breach before reselling goods received in part performance, his resale is subject to the conditions laid down in this Article on resale by an aggrieved seller (Section 2-706).