|6 Months Ended|
Jun. 30, 2022
Note 6: Marketable Securities
The Company classifies and accounts for its marketable debt securities as available-for-sale and the securities are stated at fair value.
The investments in marketable securities had an adjusted cost basis of $103.2 million and a market value of $97.4 million as of June 30, 2022. The balances consisted of the following securities (in thousands):
The Company reported the net unrealized losses in accumulated other comprehensive (loss) income, a component of stockholders' equity. The decline in fair value is largely due to changes in interest rates and other market conditions and is expected to recover as the securities approach maturity. The Company has evaluated these securities and determined that no allowance is necessary based on the credit quality and the low risk of loss due to the security type. The Company holds sixty-three available-for-sale securities, all of which are in an unrealized loss position as of June 30, 2022. The unrealized losses and fair values of available-for-sale securities that have been in an unrealized loss position for a period greater than 12 months as of June 30, 2022 are as follows:
A net realized loss of $44,241 and $123,291 related to the prepayment of principals for certain mortgage-backed securities was recorded in earnings during the three and six months ended June 30, 2022, respectively.
The contractual maturities of the Company’s marketable investments as of June 30, 2022 were as follows (in thousands):
The Company may sell certain of its marketable debt securities prior to their stated maturities for reasons including, but not limited to, managing liquidity, credit risk, duration and asset allocation.
The Company did not sell any securities during the three or six months ended June 30, 2022 that resulted in material gains or losses.