Compensation is usually fixed at a certain percentage of the revenues of the transaction. In some cases, the percentage would be applied not on "top-line" (gross) revenues but that is unusual.