Detachable warrants and bonds question

On July 28, Vent Corp. sold $500,000 of 4%, eight-year subordinated debentures for $450,000. The purchasers were issued 2,000 detachable warrants, each of which was for one share of $5 par common stock at $12 per share. Shortly after issuance, the warrants sold at a market price of $10 each. What amount of discount on the debentures should Vent record at issuance? Why do they use the $10 to value the warrants? I would think $12 makes more sense. What did they do, record the entry but said "oh wait, a short period later, the market price is $10 so lets change the entry?" AHHH I hate these bond questions!!!