v3.20.4
Convertible Notes - Debt issuance costs and interest expense (Details) - USD ($)
$ in Thousands
1 Months Ended 12 Months Ended
Oct. 31, 2018
Dec. 31, 2020
Dec. 31, 2019
Dec. 31, 2018
Convertible Notes        
Debt issuance costs incurred     $ 1,815 $ 695
Convertible Notes        
Convertible Notes        
Debt issuance costs incurred $ 6,169      
Additional paid-in capital 1,442      
Amortization of remaining financing costs $ 4,727      
Interest expense related to the Convertible Notes        
Contractual interest expense   $ 2,012 2,012 481
Amortization of debt issuance costs   901 849 205
Amortization of debt discount   8,864 8,245 1,992
Total   $ 11,777 $ 11,106 $ 2,678
Effective interest rate of the liability component   7.10% 7.10% 7.10%
Amortization and interest expense capitalized   $ 4,062 $ 3,042 $ 508