(1) If one party to a contract contractually has reserved rescission or if it has a statutory right of revocation, then, in the case of rescission, performance received and emoluments taken are to be returned.
(2) In lieu of restitution or surrender, the obligor is to provide compensation for value, to the extent that
1. restitution or surrender is excluded by the nature of what has been obtained,
2. the obligor has used up, alienated, encumbered, processed or redesigned the object received,
3. the object received has deteriorated or has been destroyed; but deterioration that is caused by the object being used in accordance with its intended use is not taken into account.
If consideration is specified in the contract, then this is to be used as a basis when the compensation for value is calculated; if compensation for value for the benefit of use of a loan is to be paid, it may be proved that the value of the benefit of use was lower.
(3) The duty to compensate for value does not apply
1. if the defect justifying revocation only became apparent during processing or transformation of the object,
2. to the extent that the obligee is responsible for the deterioration or destruction or that the damage likewise would have occurred even if the object had remained with the obligee,
3. if in case of a statutory right of revocation the deterioration or destruction occurred with the person entitled, although the latter exercised the care they customarily exercise in their own affairs.
Any remaining enrichment is to be returned.
(4) The obligee may demand damages, in accordance with sections 280 to 283, for breach of a duty under subsection (1).