XML 110 R100.htm IDEA: XBRL DOCUMENT v3.20.2
Commitments and contingencies - Additional Information (Details) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
Sep. 30, 2020
Sep. 30, 2019
Sep. 30, 2020
Sep. 30, 2019
Jun. 30, 2020
Dec. 31, 2019
Loss Contingencies [Line Items]            
Stockholders' equity $ 1,244,998   $ 1,244,998     $ 762,329
Total principal amount of loans repurchased or indemnified $ 1,329 $ 1,165 $ 5,696 $ 4,675    
Unfunded Commitments            
Loss Contingencies [Line Items]            
Initial recognition of allowance for credit losses         $ 0 $ 2,947