function cancelCollateralTransfer(uint dealID) public {
    REPODeal storage deal = deals[dealID];
    require(deal.state == 1);
    require(msg.sender == deal.lender);
    require(this.transferFrom(msg.sender, owner, deal_cancel_rate));

    sendGoods(deal.pledge, deal.borrower, deal.pledgeAmount + deal.borrowerFee);

    deal.state = -20;
    CollateralTransferCanceled(dealID);
  }