to give away the farm 血本无归、损失惨重
  
to enter a business deal as a seller in which too much is given to the buyer
  

EXAMPLE:
“The desperate salesman dropped the price of his products to make many deals, but his boss worried that he was giving away the farm.”