code: def _clearPrices(self):
          
          for offbid in self.offers + self.bids:
              if self.auctionType == DISCRIMINATIVE:
                  offbid.clearedPrice = offbid.price
              elif self.auctionType == FIRST_PRICE:
                  offbid.clearedPrice = offbid.lmbda
              else:
                  raise ValueError
docs: Clears prices according to auction type.