added to pay method such conditions: ``` if fraction > 0 && restriction.amountPaid > amointPaidTotal * fraction / 10000 then revert ```