v3.20.4
Financial Instruments
12 Months Ended
Dec. 31, 2019
Fair Value Disclosures [Abstract]  
Financial Instruments Financial Instruments
As at December 31, 2020, the carrying amount and fair value of the Company’s financial instruments were as follows:
Level 1
$
Level 2
$
Level 3
$
Carrying AmountFair ValueCarrying AmountFair ValueCarrying AmountFair Value
Assets:
Cash equivalents:
U.S. federal bonds174,397174,399
Corporate bonds and commercial paper134,056134,396
Repurchase agreements290,000290,001
Marketable securities:
U.S. term deposits885,000887,102
U.S. federal bonds1,224,0521,226,657
Canadian federal bonds24,98824,987
Corporate bonds and commercial paper1,550,3301,552,907
Derivative assets:
Foreign exchange forward contracts16,34016,340
The fair values above include accrued interest of $7,563, which is excluded from the carrying amounts. The accrued interest is included in Trade and other receivables in the consolidated balance sheets.

As at December 31, 2019, the carrying amount and fair value of the Company’s financial instruments were as follows: 
Level 1   
Level 2
$
Level 3
$
Carrying AmountFair ValueCarrying AmountFair ValueCarrying AmountFair Value
Assets:
Cash equivalents:
Repurchase agreements200,000200,009
Marketable securities:
U.S. term deposits300,000301,354
U.S. federal bonds222,713223,403
Canadian federal bonds69,92269,919
Corporate bonds and commercial paper1,212,6431,216,822
Derivative assets:
Foreign exchange forward contracts5,8305,830
The fair values above include accrued interest of $5,754, which is excluded from the carrying amounts. The accrued interest is included in Trade and other receivables in the consolidated balance sheets.

All cash equivalents and marketable securities mature within one year of the consolidated balance sheet date. There were no transfers between Levels 1, 2 and 3 during the years ended December 31, 2020 and 2019.

As at December 31, 2020, the Company held foreign exchange forward contracts to convert USD into CAD, with a total notional value of $340,843 (December 31, 2019 - $285,700), to fund a portion of its operations. The foreign exchange forward contracts have maturities of twelve months or less. The fair value of foreign exchange forward contracts and corporate bonds was based upon Level 2 inputs, which included period-end mid-market quotations for each underlying contract as calculated by the financial institution with which the Company has transacted. The quotations are based on bid/ask quotations and represent the discounted future settlement amounts based on current market rates.

Derivative Instruments and Hedging

The Company has a hedging program to mitigate the impact of foreign currency fluctuations on future cash flows and earnings. Under this program the Company has entered into foreign exchange forward contracts with certain financial institutions and designated those hedges as cash flow hedges. As of December 31, 2020, $16,340 of unrealized gains related to changes in the fair value of foreign exchange forward contracts designated as cash flow hedges were included in accumulated other comprehensive income and current assets on the consolidated balance sheet. These amounts are expected to be reclassified into earnings over the next twelve months. In the year ended December 31, 2020, $2,985 of realized losses (December 31, 2019 - $5,181 of realized losses) related to the maturity of foreign exchange forward contracts designated as cash flow hedges were included in cost of revenues and operating expenses. Under the current hedging program, the Company is hedging cash flows associated with payroll and facility costs.

Convertible Senior Notes

As at December 31, 2020, the estimated fair value of the Company's 0.125% convertible senior notes, as further described in note 16 below, was approximately $1,098,342. The estimated fair value was determined based on the last executed trade for the Notes of the reporting period in an over-the-counter market, which is considered as Level 2 in the fair value hierarchy.