That example points to an important general  Total expenditure is determined by the value of the prize, whether we're talking about presidential campaigns or state lotteries.
The total expenditure was based on the prize, whether the issue after the fact is about campaigns or lotteries.