Derivatives and Hedging Activities
12 Months Ended
Dec. 31, 2021
Derivative Instruments and Hedging Activities Disclosure [Abstract]  
Derivatives and Hedging Activities Derivatives and Hedging Activities
The tables below present a summary of the Company's derivative financial instruments, notional amounts and fair values for the periods presented:    
As of December 31, 2021
(Dollars in thousands)Asset Notional Amount
Asset Derivatives(1)(2)
Liability Notional Amount
Liability Derivatives(1)(2)
Derivatives not subject to hedge accounting
Interest-rate contracts - pay floating, receive fixed$36,263 $528 $— $— 
Interest-rate contracts - pay fixed, receive floating— — 36,263 528 
Total back-to-back interest-rate swaps$36,263 $528 $36,263 $528 

As of December 31, 2020
(Dollars in thousands)Asset Notional Amount
Asset Derivatives(1)(2)
Liability Notional Amount
Liability Derivatives(1)(2)
Derivatives designated as hedging instruments
Interest-rate contracts - pay fixed, receive floating$— $— $75,000 $2,814 
Total cash flow hedge interest-rate swaps $— $— $75,000 $2,814 
Derivatives not subject to hedge accounting
Interest-rate contracts - pay floating, receive fixed$38,027 $2,286 $— $— 
Interest-rate contracts - pay fixed, receive floating— — 38,027 2,286 
Total back-to-back interest-rate swaps$38,027 $2,286 $38,027 $2,286 
__________________________________________
(1)    Accrued interest balances related to the Company’s interest rate swaps are not included in the fair values above and are immaterial.
(2)    The assets and liabilities related to the pay fixed, receive floating interest-rate contracts are subject to a master netting agreement and are presented net in the Consolidated Balance Sheet.
The Company had no derivative fair value hedges at either December 31, 2021 or December 31, 2020.

Cash flow hedges

Interest-rate swap agreements may be entered into as hedges against adverse interest-rate fluctuations on specifically identified assets or liabilities. The Company’s cash flow hedges are used to manage differences in the amount, timing, and duration of the Company’s known or expected cash receipts and its known or expected cash payments principally related to the Company’s wholesale funding.

During the first quarter of 2020, the Company entered into three pay fixed, receive float interest rate swaps to hedge the variable cash flows associated with short-term wholesale funding. Each swap had a notional value of $25.0 million with respective maturities of three years, four years and five years. In August 2021, all three interest rate swaps with notional values totaling $75.0 million were terminated resulting in a $1.8 million loss on termination of swaps, which is reported as a component of non-interest income. The Company terminated these interest-rate swaps and accelerated the reclassification of the loss from other comprehensive income to earnings as a result of hedged forecasted transactions becoming probable not to occur.

Back-to-Back swaps

The Company has a "Back-to-Back Swap" program whereby the Bank enters into an interest-rate swap with qualified commercial banking customers and simultaneously enters into equal and opposite interest-rate swap with a swap counterparty.
The customer interest-rate swap agreement allows commercial banking customers to convert a floating-rate loan payment to a fixed-rate payment.

Interest-rate swaps with the counterparty are subject to master netting agreements, while interest-rate swaps with customers are not. Each Back-to-Back swap consists of two interest-rate swaps (a customer swap and offsetting counterparty swap) and amounted to a total number of 10 interest-rate swaps outstanding at both December 31, 2021 and December 31, 2020. As a result of this offsetting relationship, there were no net gains or losses recognized in income on Back-to-Back swaps during the years ended December 31, 2021, December 31, 2020, or December 31, 2019.

At December 31, 2021 and December 31, 2020, all of the Back-to-Back swaps with the counterparty were in the same liability position, therefore there was no netting reflected in the Company’s Consolidated Balance Sheet.
Credit Risk

By using derivative financial instruments, the Company exposes itself to counterparty credit risk. Credit risk is the risk of failure by the counterparty to perform under the terms of the derivative contract. When the fair value of a derivative contract is positive, the counterparty owes the Company, which creates credit risk for the Company. When the fair value of a derivative is negative, the Company owes the counterparty and, therefore, it does not possess credit risk. The credit risk in derivative instruments is mitigated by entering into transactions with highly-rated counterparties that management believes to be creditworthy. Additionally, counterparty interest-rate swaps contain provisions for collateral to be posted if the derivative exposure exceeds a threshold amount.

The Company had one counterparty and it was rated A and A2 by Standard & Poor's and Moody's, respectively, at December 31, 2021. The Company had no credit risk exposure at either December 31, 2021 or December 31, 2020 relating to interest-rate swaps with counterparties. When the Company has credit risk exposure, collateral is received from the counterparty and held by the Company. Collateral held by the Company is restricted and not considered an asset of the Company. Therefore, it is not carried on the Company's Consolidated Balance Sheet. If the Company posts collateral, the cash is restricted, it is considered an asset of the Company and is carried on the Company's Consolidated Balance Sheet. The Company posted cash collateral of $840 thousand and $5.3 million at December 31, 2021 and December 31, 2020, respectively.

Credit-risk-related Contingent Features

The Company's interest-rate swaps with counterparties contain credit-risk-related contingent provisions. These provisions provide the counterparty with the right to terminate its derivative positions and require the Company to settle its obligations under the agreements if the Company defaults on certain of its indebtedness.

As of December 31, 2021, the fair value of derivatives was in a net liability position, which excludes any adjustment for nonperformance risk related to these agreements was $528 thousand. The Company has minimum collateral posting thresholds with certain of its derivative counterparties and has posted collateral at December 31, 2021 as noted above.

Other Derivative Related Activity

The Company also participates in loans originated by third party banks, where the originating bank utilizes a back-to-back interest-rate swap structure; however, the Company is not a party to the swap agreements. Under the terms of the loan participations, the Company has accepted contingent liabilities that would only be realized if the swaps were terminated early and there were outstanding losses not covered by the underlying borrowers and the borrowers' pledged collateral. If applicable, the Company's swap-loss exposure would be equal to a percentage of the originating bank's swap loss based on the ratio of the Company's loan participation to the underlying loan. At both December 31, 2021 and December 31, 2020, the Company had one participation loan where the originating bank utilizes a back-to-back interest-rate swap structure. At December 31, 2021, management considers the risk of material swap loss exposure related to this participation loan to be unlikely based the borrower's financial and collateral strength. Management continues to closely monitor for credit changes resulting from the pandemic.
At December 31, 2021 and December 31, 2020, the estimated fair value of the Company's interest-rate lock commitments and commitments to sell these mortgage loans were deemed immaterial.