Revenue | Revenue The Company's revenue is currently generated through collaborative licensing agreements, patent assignments, and sales of intellectual property. The Company generates its revenue through one segment and the revenue recognized under each of the Company's arrangements during the current and prior periods is described below. The terms of these agreements may contain multiple promised goods or services or optional goods and services, including licenses, or options to obtain licenses, to product candidates, referred to as exclusive licenses, as well as research and development activities to be performed by the Company on behalf of the collaboration partner related to the licensed product candidates. Revenue recognition Revenue is recognized when control of the promised goods or services are transferred to customers, in an amount that reflects the consideration the Company expects to be entitled to in exchange for transferring those goods or providing services. The Company accounts for a contract when it has approval and commitment from both parties, the rights of the parties are identified, payment terms are identified, the contract has commercial substance and collectability of consideration is probable. When determining whether the customer has obtained control of the goods or services, the Company considers the point at which the customer may benefit from the goods or services. For licenses to product candidates, revenue is recognized upon grant or transfer of the exclusive license, as the Company's licenses are considered functional in nature. For research, development, and manufacturing activities, revenue is recognized as the work is performed using either the output or input method. Performance obligations A performance obligation is a promise in a contract to transfer a distinct good or service to the customer, and is the unit of account in ASC 606. A contract’s transaction price is allocated to each distinct performance obligation and recognized as revenue when, or as, the performance obligation is satisfied. The Company's contracts may contain multiple performance obligations if a promise to transfer goods or services is separately identifiable from other promises in a contract and, therefore, is considered distinct. For contracts with multiple performance obligations, the Company determines the standalone selling price of each performance obligation and allocates the total transaction price using the relative selling price basis. The Company recognizes performance obligations based on their nature. Options to exclusive licenses The collaborative arrangement with Celgene provides the customer the option to purchase additional licenses in addition to preclinical and clinical development services at a discount. These options are considered performance obligations as they provide the customer with material rights that the customer would not receive without entering into the contract. The portion of the transaction price attributed to a material right is recognized when the underlying option is exercised or when the option expires. To date, Celgene has not exercised any of its options that were determined to represent material rights. Significant Payment Terms The Company’s revenue arrangements include payments to the Company of one or more of the following: a nonrefundable, upfront payment; milestone payments; payment of license exercise or option fees with respect to product candidates; fees for research and development services rendered; and royalties on commercial sales of licensed product candidates, if any. To date, the Company has received upfront payments, several milestone payments and certain research and development service payments but has not received any license exercise or option fees or earned royalty revenue as a result of product sales. Under ASC 606, the Company estimates the amount of consideration to which it will be entitled in exchange for satisfying performance obligations. Based on the Company’s current contracts, variable consideration primarily exists in the following forms: development and regulatory milestones, royalties and sales-based milestones, and consideration held in escrow for indemnification purposes. The Company utilizes the "most likely amount" variable consideration method for estimating development and regulatory milestone consideration to include in the transaction price and the “expected value” variable consideration method for the consideration held in escrow for indemnification purposes. The Company only includes an amount of variable consideration in the transaction price to the extent it is probable that a significant reversal in the cumulative revenue recognized will not occur when the uncertainty associated with the variable consideration is subsequently resolved. The Company refers to this as the variable consideration constraint. Due to the uncertainty associated with the occurrence of the underlying events which would trigger development and regulatory milestone consideration under its revenue arrangements, with the exception of those development and regulatory milestones received to date, the Company has concluded the variable consideration associated with all development and regulatory milestones to be fully constrained as of the ASC 606 transition date and as of December 31, 2018 and therefore has not included such consideration in the transaction price for any of its revenue arrangements. The Company will re-assess this conclusion at each subsequent reporting period and will only include amounts associated with regulatory or development milestones in the transaction price when, or if, the variable consideration is determined to be released from the constraint. To date, the Company has not recognized any royalties or sales-based milestones under its licensing and collaboration arrangements. Royalties and sales-based milestones qualify for the sales-and-usage exemption under ASC 606 as (i) royalties are based strictly on the sales-and-usage by the licensee and (ii) a license of IP is the sole or predominant item to which such royalties relate. Based on this exemption, these royalties are earned under the terms of a license agreement in the period the products are sold by the Company's collaborator and the Company has a present right to payment. In accordance with ASC 606, the Company is required to adjust the transaction price for the effects of the time value of money if the timing of payments agreed to by the parties to the contract, explicitly or implicitly, provides the Company or its customer with a significant benefit of financing the transfer of goods or services. The Company concluded that its licensing and collaboration arrangements do not contain a significant financing component because the payment structure of its agreements arise from reasons other than providing a significant benefit of financing. Application of Practical Expedients The collaborative arrangements with Glaxo Group Limited, or GSK, and Jazz Pharmaceuticals contained contract modifications. The Company elected to apply the transition practical expedient under ASC 606-10-65-1(f)(4) that allows an entity to reflect the aggregate effect of all contract modifications on contracts that were modified before the beginning of the earliest period presented under the new standard (that is, January 1, 2018) when (i) identifying the satisfied and unsatisfied performance obligations, (ii) determining the transaction price, and (iii) allocating the transaction price to the satisfied and unsatisfied performance obligations. The application of the practical expedient did not have a material effect on the Company’s revenue recognition. Contract Assets As of January 1, 2018, the Company identified a contract asset of $16.0 million associated to the Vertex indemnification payment held in escrow. As the receipt of the Vertex indemnification consideration involves more than the passage of time, the consideration was concluded to be conditional and therefore classified as a contract asset. As of December 31, 2018, there have been no changes to the balance of the Company's contract asset from the date of adoption of ASC 606. In February 2019, the escrow was released to the Company. Contract Liabilities As of January 1, 2018, the Company identified contract liabilities of $10.5 million related to unsatisfied performance obligations as well as variable consideration paid in advance but currently constrained from recognition. Contract liabilities are presented as deferred revenue and classified as current or noncurrent based on the timing of when the Company expects to recognize revenue. During the twelve months ended December 31, 2018, $16 thousand of deferred revenue was recognized into revenue. As of December 31, 2018, the Company recorded $10.5 million of contract liabilities in the condensed consolidated statement of financial position. Collaboration Arrangements Celgene In April 2013, the Company entered into a master development and license agreement with Celgene Corporation and Celgene International Sàrl, referred to together as Celgene, which agreement is primarily focused on the research, development and commercialization of specified deuterated compounds targeting inflammation or cancer. The initial program in the collaboration is CTP-730, a deuterium-modified analog of apremilast. Celgene has an exclusive worldwide license to develop, manufacture and commercialize deuterated analogs of apremilast and certain close chemical derivatives thereof. The Company further granted Celgene licenses with respect to two additional programs and an option with respect to a third additional program. With respect to the two additional license programs, the Company granted Celgene an upfront exclusive worldwide license to develop, manufacture and commercialize deuterated products that contain deuterated analogs of the agreed non-deuterated compounds. Celgene is restricted from utilizing their research, development and commercialization rights under each of these upfront licenses, unless, within seven years after the effective date of the agreement, Celgene pays the Company a license exercise fee. If Celgene does not elect to pay the license exercise fee during the seven year period, the license will expire. With respect to the option program, once a compound is selected, Celgene may exercise its option by paying the Company an option exercise fee within seven years of the effective date of the agreement, and upon Celgene’s exercise of the option the Company will grant to Celgene an exclusive worldwide license to develop, manufacture and commercialize deuterated products that contain deuterated analogs of the selected non-deuterated compound. As a result of the restrictions placed on the two additional license programs that preclude Celgene from exercising its rights under the respective licenses without the payment of a significant license exercise fee, for accounting purposes the Company concluded that it had effectively provided Celgene an option to obtain licenses to those programs. The Company was responsible for conducting and funding research and early development activities for the CTP-730 program at its own expense pursuant to mutually agreed upon development plans. This included the completion of single and multiple ascending dose Phase 1 clinical trials in 2015. The Company does not have any obligation to conduct any research or development activities for any of the additional programs unless and until Celgene exercises its rights with respect to such program and pays the applicable exercise fee. If Celgene exercises its rights with respect to any additional program and pays the Company the applicable exercise fee, the Company is responsible, at its own expense, for conducting research and development activities for such program pursuant to agreed-upon development plans until the completion of Phase 1 clinical trial, which will be defined in each development plan on a program-by-program basis. In addition, if Celgene exercises its rights with respect to the option program and pays the Company the applicable option exercise fee, the Company is responsible for seeking to generate a deuterated compound for clinical development in the selected option program. Oversight of the development program for each program under the Celgene Agreement is guided by separate JSCs. Celgene is solely responsible for all research, development and commercialization costs with respect to the initial program beyond the Phase 1 clinical trials that the Company conducts. If Celgene exercises its rights with respect to any additional program, Celgene will be solely responsible for all research, development and commercialization costs for such program following the completion of the first Phase 1 clinical trial for such program. Under the terms of the agreement, the Company received a non-refundable upfront payment of $35.0 million . In October 2015, the Company received an $8.0 million development milestone payment based on the completion of Phase 1 clinical evaluation of CTP-730. In addition, the Company is eligible to earn an additional $15.0 million development milestone payment, up to $247.5 million in regulatory milestone payments and up to $50.0 million in sales-based milestone payments related to products within the CTP-730 program. The next milestone payment the Company may be entitled to achieve under the CTP-730 program is $15.0 million related to the first actual dosing in a Phase 3 clinical trial or, if earlier, acceptance for filing of a new drug application, or NDA. If Celgene exercises its rights with respect to either of the two additional license programs, the Company will receive a license exercise fee for the applicable program of $30.0 million and will also be eligible to earn up to $23.0 million in development milestone payments and up to $247.5 million in regulatory milestone payments for that program. Additionally, with respect to one of the additional license programs, the Company is eligible to receive up to $100.0 million in milestone payments based on net sales of products, and with respect to the other additional license program, the Company is eligible to receive up to $50.0 million in milestone payments based on net sales of products. If Celgene exercises its option with respect to the option program, in respect of a compound to be identified at a later time, the Company will receive an option exercise fee of $10.0 million and will be eligible to earn up to $23.0 million in development milestone payments and up to $247.5 million in regulatory milestone payments. In addition, with respect to each program, Celgene is required to pay the Company royalties on worldwide net sales of each licensed product at defined percentages ranging from the mid-single digits to low double digits below 20% . The royalty rate is reduced on a country-by-country basis during any period within the royalty term when there is no patent claim or regulatory exclusivity covering the licensed product in the particular country. Under ASC 606, the Company's collaborative arrangement with Celgene contains the following performance obligations: (i) an exclusive worldwide license to develop, manufacture and commercialize deuterated analogs of apremilast related to the CTP-730 program, or the License Performance Obligation, (ii) obligations to perform research and development services associated with the CTP-730 program, or the R&D Services Performance Obligation, (iii) obligation to supply nonclinical and clinical trial material related to the CTP-730 program, or the Supply Performance Obligation, (iv) material right related to the first additional license program for which the non-deuterated compound has been selected, or the First Discount Performance Obligation and (v) material right related to the second additional license program for which the non-deuterated compound has been selected, or the Second Discount Performance Obligation. The transaction price, exclusive of amounts subject to the variable consideration constraint, as of the transition date consisted of the $35.0 million non-refundable upfront payment and the $8.0 million milestone payment received upon successful completion of the Phase 1 clinical program totaling to $43.0 million . The Company allocated the upfront arrangement consideration of $35.0 million among the performance obligations using the relative selling price method based on the standalone selling prices of each performance obligation, which is generally the price at which it would sell such deliverable if it were to be sold regularly on a standalone basis. The standalone selling price of License Performance Obligation was based on historical valuations for other licensing arrangements entered into by the Company. The standalone selling prices of the R&D Services Performance Obligation and the Supply Performance Obligation were based on the expected cost plus margin approach. The standalone selling prices of the First and Second Discount Performance Obligations were based the expected value of the options. The Company allocated the $8.0 million milestone payment to only the License Performance Obligation, R&D Services Performance Obligation and the Supply Performance Obligation using the relative selling price method based on the standalone selling prices of each of these three performance obligations. The Company concluded that the achievement of the performance-based milestone for the CTP-730 program should only be allocated to the performance obligations associated to the CTP-730 program as the achievement of the milestone related specifically to the Company’s efforts with respect to the satisfaction of the performance obligations related to that program. The transaction price was allocated as follows: (i) $21.7 million to the License Performance Obligation, (ii) $11.0 million to the R&D Services Performance Obligation, (iii) $4.0 million to the Supply Performance Obligation, (iv) $3.2 million to the First Discount Performance Obligation and (v) $3.2 million to the Second Discount Performance Obligation. Revenue is recognized when the performance obligation is considered satisfied. The License Performance Obligation was considered satisfied at contract inception as the exclusive license transferred control to the customer at this point in time. The R&D Services Performance Obligation and the Supply Performance Obligation are satisfied over time using the input method based on costs incurred determined by estimates of associated effort and cost of services adjusted for a reasonable profit margin such that they represent estimated market rates for similar services on a standalone basis. The First Discount Performance Obligation and the Second Discount Performance Obligation shall be considered satisfied upon the option's exercise or expiration. Unsatisfied performance obligations represent contract liabilities that are presented as deferred revenue within the accompanying consolidated balance sheet. The collaborative arrangement with Celgene contains consideration that is variable based on the customer's achievement of certain development, regulatory, and sales-based milestones in addition to royalties upon the customer's commercial success with licensed programs. The next milestone payment of $15.0 million upon first actual dosing in a Phase 3 clinical trial, or if earlier, acceptance for filing of a new drug application, or NDA, for the CTP-730 program is considered variable consideration that is fully constrained due to the uncertainty associated to the achievement of the milestone. As a result, the variable consideration that is considered fully constrained related to this and the remaining development and regulatory milestones will not be recognized until the time at which the constraint is released. The consideration related to royalty and sales-based milestones are recognized pursuant to the sales- and usage-based exemption under ASC 606. The variable consideration related to sales-based milestones and royalties will be recognized in the period the products are sold by Celgene and the Company has a present right to payment. During the year ended December 31, 2018, the Company recognized no revenue for the R&D Services and Supply Performance Obligation as no services were performed. During the years ended December 31, 2017 and 2016 the Company recognized revenue of $20 thousand , and $62 thousand for the R&D Services and Supply Performance Obligations, respectively. The revenue in the prior year period was recognized in accordance with legacy authoritative guidance. The revenue was classified as license and research and development revenue in the accompanying consolidated statements of operations and comprehensive income (loss). As of December 31, 2018, there was $7.8 million of deferred revenue related to the Company’s collaboration with Celgene, consisting of $1.3 million related to the R&D Services Performance Obligation, $0.1 million related to the Supply Performance Obligation and $6.4 million related to the First and Second Discount Performance Obligations. The Company classified the $1.4 million related to the R&D Services Performance Obligation and the Supply Performance Obligation as a current liability and the $6.4 million related to the First and Second Discount Performance Obligations as a noncurrent liability in the accompanying consolidated balance sheet. Avanir In February 2012, the Company entered into a development and license agreement with Avanir Pharmaceuticals, Inc., or Avanir, under which the Company granted Avanir an exclusive worldwide license to develop, manufacture and commercialize deudextromethorphan-containing products. Avanir is currently focused on developing AVP-786, which is a combination of deudextromethorphan and an ultra-low dose of quinidine. Subsequent to the Company’s agreement, Avanir was acquired by Otsuka Pharmaceutical Co., Ltd. and it is now a wholly owned subsidiary of Otsuka America, Inc. Since June 2012, Avanir has elected to conduct all research and development activities, including manufacturing activities; however, the Company has received intellectual property cost reimbursements. Under the agreement, the Company received a non-refundable upfront payment of $2.0 million and has received milestone payments of $6.0 million . The Company is also eligible to earn, with respect to licensed products comprising a combination of deudextromethorphan and quinidine, up to $37.0 million in regulatory and commercial launch milestone payments, of which $21.5 million in development and regulatory milestone payments are associated with the first indication, and up to $125.0 million in sales-based milestone payments. The next milestone payments that the Company may be entitled to receive are $5.0 million upon acceptance for filing of a NDA, $3.0 million upon acceptance for filing of a Marketing Authorization Application, or MAA, and $1.5 million upon acceptance for filing of a NDA by the Ministry of Health, Labour and Welfare, or MHLW, related to AVP-786. In addition, the Company is eligible for higher development milestones, up to an additional $43.0 million , for licensed products that do not require quinidine. Avanir is currently developing deudextromethorphan only in combination with quinidine. Avanir also is required to pay the Company royalties at defined percentages ranging from the mid-single digits to low double digits below 20% on net sales of licensed products on a country-by-country basis. The royalty rate is reduced, on a country-by-country basis, during any period within the royalty term when there is no patent claim covering the licensed product in the particular country. The Company determined that all promised goods and services related to the arrangement with Avanir were considered satisfied as of the ASC 606 adoption date of January 1, 2018. The transaction price, exclusive of amounts subject to the variable consideration constraint, consists of the $2.0 million non-refundable upfront payment and $6.0 million in development milestone payments received totaling to $8.0 million . As all promised goods and services were considered satisfied as of the ASC 606 adoption date, the arrangement consideration need not be allocated among the performance obligations because the arrangement consideration was fully recognized as of January 1, 2018. The arrangement with Avanir contains consideration that is variable based on the customer's achievement of certain development, regulatory, and sales-based milestones in addition to royalties upon the customer's commercial success with the licensed product. The $6.0 million resulting from the achievement of development milestones to date represents variable consideration that has been earned and therefore is not subject to constraint. The next milestones that the Company may be entitled to are regulatory milestones that represent variable consideration that is fully constrained due to the uncertainty associated to the achievement of milestones of this nature. As a result, the variable consideration that is considered fully constrained will not be recognized until the time at which the constraint is released. The consideration related to royalty and sales-based milestones are recognized pursuant to the sales- and usage-based exemption under ASC 606. The variable consideration related to sales-based milestones and royalties will be recognized in the period the products are sold by Avanir and the Company has a present right to payment. Jazz Pharmaceuticals In February 2013, the Company entered into a development and license agreement with Jazz Pharmaceuticals, Inc., or Jazz Pharmaceuticals, to research, develop and commercialize products containing a deuterated sodium oxybate analog, or D-SXB. Under the agreement, Jazz Pharmaceuticals initially focused on one analog, designated as JZP-386, a once-nightly oxybate product. Under the terms of the agreement, the Company granted Jazz Pharmaceuticals an exclusive, worldwide, royalty-bearing license under intellectual property controlled by the Company to develop, manufacture and commercialize D-SXB products including, but not limited to, JZP-386. Under the agreement, the Company received a non-refundable upfront payment of $4.0 million and is eligible to earn an aggregate of up to $8.0 million in development milestone payments, up to $35.0 million in regulatory milestone payments and up to $70.0 million in sales-based milestone payments based on net product sales of licensed products. The next milestone payment that the Company may be entitled to receive is $4.0 million related to initiation of the first Phase 2 clinical trial of a D-SXB compound. In addition, Jazz Pharmaceuticals is required to pay the Company royalties at defined percentages ranging from the mid-single digits to low double digits below 20% on worldwide net sales of licensed products. The royalty rate is lowered, on a country-by-country basis, under certain circumstances as specified in the agreement. The Company determined that all promised goods and services related to the collaborative arrangement with Jazz Pharmaceuticals were considered satisfied as of the ASC 606 adoption date of January 1, 2018. The transaction price, exclusive of amounts subject to the variable consideration constraint, consists of the $4.0 million non-refundable upfront payment. As all promised goods and services were considered satisfied as of the ASC 606 adoption date, the arrangement consideration need not be allocated among the performance obligations. Furthermore, as all promised goods and services are considered satisfied, the consideration was fully recognized as of January 1, 2018. The collaborative arrangement with Jazz Pharmaceuticals contains consideration that is variable based on the customer's achievement of certain development, regulatory, and sales-based milestones in addition to royalties upon the customer's commercial success with the licensed product. The next milestone payment the Company may be entitled to receive of $4.0 million related to initiation of the first Phase 2 clinical trial of JZP-386 or D-SXB is considered variable consideration that is fully constrained due to the uncertainty associated to the achievement of the development milestone. As a result, the variable consideration that is considered fully constrained will not be recognized until the time at which the constraint is released. The consideration related to royalty and sales-based milestones are recognized pursuant to the sales- and usage-based exemption under ASC 606. The variable consideration related to royalties will be recognized in the period the products are sold by Jazz and the Company has a present right to payment. Other Revenue Arrangements Vertex On March 3, 2017, the Company and Vertex entered into an Asset Purchase Agreement pursuant to which, subject to the satisfaction or waiver of the conditions therein, the Company sold and assigned to Vertex, CTP-656, a deuterated analog of ivacaftor now known as VX-561, and other cystic fibrosis assets of the Company. On July 25, 2017, the Closing Date, the transaction contemplated by the Asset Purchase Agreement closed and Vertex paid the Company $160 million in cash consideration, with $16 million initially held in escrow for a period of eighteen months . In February 2019, the $16.0 million held in escrow was released to the Company. Additionally, upon the achievement of certain milestone events, Vertex has agreed to pay the Company an aggregate of up to $90 million . Of this amount, $50 million will become payable to the Company upon receipt of FDA marketing approval for a combination treatment regimen containing VX-561, for patients with cystic fibrosis, and $40 million will become payable to the Company upon completion of a pricing and reimbursement agreement in the first of the United Kingdom, Germany or France with respect to a combination treatment regimen containing VX-561 for patients with cystic fibrosis. The Asset Purchase Agreement with Vertex contains a single performance obligation: all rights to develop, manufacture, and commercialize deuterated analogs of ivacaftor related to the CTP-656 program, including all intellectual property, permits and registrations, and records, documentation, and regulatory filings, in addition to an obligation to perform research and testing consulting services to facilitate the transfer of materials, documents, and knowledge up to the close of the Asset Purchase Agreement, referred to as the Transfer of IP Performance Obligation. The Asset Purchase Agreement with Vertex contains consideration that is variable based on Vertex's achievement of certain regulatory milestones in addition to the $16.0 million held in escrow to indemnify Vertex, which was released to us February 2019. The regulatory milestone payments are fully constrained due to the uncertainty associated to the achievement of the respective milestones. The Company concluded that an indemnification claim was remote and as a result was not subject to the variable consideration constraint at the ASC 606 transition date. Accordingly, the variable consideration of $16.0 million was included in the transaction price. The transaction price was $160.0 million , as the variable consideration associated with the escrow amount was not subject to the constraint. As the arrangement contained a single performance obligation, the Company attributed the full transaction price (exclusive of amounts subject to the variable consideration constraint) of $160.0 million to the Transfer of IP Performance Obligation. The Transfer of IP Performance Obligation was satisfied as of the Closing Date as the control of CTP-656 transferred to Vertex, the customer. As a result, the full transaction price was recognized as revenue as of the ASC 606 adoption date. As of December 31, 2018, the Vertex indemnification variable consideration represented a contract asset to be released from escrow 18 months following the Closing Date and was classified as a current asset in the accompanying consolidated balance sheet. In February 2019, the $16.0 million initially held in escrow was released to the Company. GSK In May 2009, the Company entered into a research and development collaboration and license agreement with GSK to research, develop and commercialize multiple products containing deuterated compounds, including CTP-499. The agreement with GSK, as subsequently amended, expired in May 2012 after GSK opted out of further development under the agreement and made a $2.8 million payment to the Company. The Company has an obligat |