Would you not get paid?
No, of course you get paid. The client bears all execution risk. That's why, when you make them 10 million, they get the vast majority of that 10 million. If clients expect you to shoulder downside risk then they should expect you to capture much of the upside. (Here's words I like: "Well, if you expect me to bear the risk for this project, I want to share equitably in the rewards, too. My sense of equitable is that if I'm responsible for doubling the company's sales I should end up owning half the company. Or, you know, you could just pay my rates.")