Contracts and agreements entered into between associations and the members thereof may, where damages that may be sustained for the breach thereof are difficult of ascertainment, provide for such penalties as may be agreed upon, which penalties, if the parties thereto so agree, shall be construed as liquidated damages and be enforceable in the full amount thereof both at law and in equity.
Iowa Code § 500.2