Summary of Significant Accounting Policies | SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES Basis of Presentation The accompanying financial statements have been prepared in accordance with accounting principles generally accepted in the United States of America (“U.S. GAAP”). Use of Estimates The preparation of financial statements in conformity with U.S. GAAP requires management to make estimates and judgments that affect the amounts reported in the financial statements and accompanying notes thereto. On an ongoing basis, management evaluates its estimates, including those related to recognition of revenue, clinical trial accruals, contract manufacturing accruals, fair value of assets and liabilities, income taxes and stock-based compensation. Management bases its estimates on historical experience and on various other market-specific and relevant assumptions that management believes to be reasonable under the circumstances. Actual results could materially differ from those estimates. Liquidity As of December 31, 2022, we had cash and short-term investments of approximately $123.9 million. We have incurred operating losses since inception in 2007 and our accumulated deficit as of December 31, 2022 is $780.1 million. Our current level of cash and short-term investments alone is not sufficient to meet our plans for the next twelve months following the issuance of these financial statements on March 2, 2023. These factors raise substantial doubt regarding our ability to continue as a going concern for a period of one year from the issuance of these financial statements. We plan to address our operating cash flow requirements with our current cash and short-term investments, cash generated from product sales of IBSRELA, and if approved, cash generated from sales of XPHOZAH, our potential receipt of anticipated milestones payments from our collaboration partners, our potential receipt of anticipated payments from our Japanese collaboration partner under the second amendment to our License Agreement, with additional financing sources and through the implementation of cash preservation activities to reduce or defer discretionary spending. There are no assurances that our efforts to meet our operating cash flow requirements will be successful. If our current cash and short-term investments as well as our plans to meet our operating cash flow requirements are not sufficient to fund necessary expenditures and meet our obligations for at least the next twelve months following the issuance of these financial statements, our liquidity, financial condition and business prospects will be materially affected. These financial statements have been prepared on a going concern basis and do not include any adjustments to the amounts and classification of assets and liabilities that may be necessary in the event that we can no longer continue as a going concern. Cash and Cash Equivalents We consider all highly liquid investments purchased with an original maturity date of 90 days or less on the date of purchase to be cash equivalents. Short-Term Investments Short-term investments consist of debt securities classified as available-for-sale and have maturities greater than 90 days, but less than one year, from the date of acquisition. Short-term investments are carried at fair value based upon quoted market prices. Unrealized gains and losses on available-for-sale securities are included in accumulated other comprehensive loss on our balance sheets. The cost of available-for-sale securities sold is based on the specific-identification method. Concentration of Credit Risk Financial instruments that potentially subject us to significant concentrations of credit risk consist primarily of cash, cash equivalents, short-term investments and accounts receivable. We are exposed to credit risks in the event of default by the counterparties to the extent of the amount recorded in its balance sheet. Cash, cash equivalents and short-term investments are invested through banks and other financial institutions in the U.S. Foreign Currency We manage our foreign currency exposures with the use of foreign currency purchases. We primarily conduct business in U.S. dollars; however, a portion of our expense and capital activities are transacted in foreign currencies which are subject to exchange rate fluctuations that can affect cash or earnings. We have been in a loss position and therefore our primary objective is to conserve and manage cash. There are generally two methods by which we may manage the cash flow risk of foreign exchange fluctuations when a contract is signed (i) we can purchase the foreign funds, in full or in part, upon the execution of the contract, or (ii) we can obtain the right to purchase such funds, in full or in part, at the execution of the contract, i.e., obtain a forward contract from an appropriate bank, that can be exercised to obtain the currency of interest at a particular point in time. The derivative instruments that we may use to hedge the exposure shall generally not be designated as cash flow hedges, and as a result, changes in their fair value would be recorded in other income (expense), net, in our statements of operations and comprehensive loss. The fair values of forward foreign currency exchange contracts would be estimated using current exchange rates and interest rates and the current creditworthiness of the counterparties is taken into consideration. Property and Equipment Property and equipment are stated at cost, less accumulated depreciation and amortization. Depreciation is computed using the straight-line method over the estimated useful lives of the respective assets, with ranges generally from three Impairment of Long-Lived Assets The carrying value of long-lived assets, including property and equipment, are reviewed for impairment whenever events or changes in circumstances indicate that the asset may not be recoverable. An impairment loss is recognized when the total of estimated future undiscounted cash flows, expected to result from the use of the asset and its eventual disposition, are less than the asset’s carrying amount. Impairment, if any, would be assessed using discounted cash flows or other appropriate measures of fair value. For the years ending December 31, 2022, 2021 and 2020 we have recognized no impairment losses. Income Taxes We use the asset and liability method of accounting for income taxes. Under this method, deferred tax assets and liabilities are determined based on the differences between the financial reporting and the tax bases of assets and liabilities and are measured using the enacted tax rates and laws that will be in effect when the differences are expected to reverse. A valuation allowance is provided when it is more likely than not that some portion or all of a deferred tax asset will not be realized. Accounts Receivable Accounts receivable is reported net of allowances for returns, chargebacks and contractual off-invoice and prompt-pay discounts offered to our customers. Our estimate of the allowance for doubtful accounts is based on an evaluation of the aging of our receivables. Trade receivable balances are written off against the allowance when it is probable that the receivable will not be collected. To date, we have determined that an allowance for doubtful accounts is not required. As of December 31, 2022 our accounts receivable balance was comprised of $0.7 million from our collaboration agreements and $7.0 million from commercial customers. As of December 31, 2021 our accounts receivable balance was comprised of $0.5 million from our collaborators. Inventory We capitalize inventory costs associated with the production of our products after regulatory approval or when, based on management’s judgment, future commercialization is considered probable and the future economic benefit is expected to be realized. Otherwise, such costs are expensed as research and development. Prior to the regulatory approval of drug product candidates, we incurred expenses for the manufacture of drug product that could potentially be available to support the commercial launch of our products or could be sold to our international partners under product supply agreements. We began to capitalize inventory costs associated with IBSRELA during the fourth quarter of 2021, when our intent to commercialize IBSRELA was established and we commenced preparation for the commercial launch of IBSRELA, which was when it was determined that the inventory had a probable future economic benefit. Inventory is stated at the lower of cost or estimated net realizable value with cost determined under the first-in first-out method. Inventory costs include the cost of materials, third-party contract manufacturing, third-party packaging services, freight, labor costs for personnel involved in the manufacturing process, and indirect overhead costs. We primarily use actual costs to determine the cost basis for inventory. The determination of whether inventory costs will be realizable requires management review of the expiration dates of IBSRELA compared to our forecasted sales. If actual market conditions are less favorable than projected by management, write-downs of inventory may be required, which would be recorded as cost of revenue in the statement of operations and comprehensive loss. As of December 31, 2022, we have not recorded any write-offs for excess and obsolete inventory. A portion of inventory that represents product that is not expected to be sold or used within the next 12 months is classified as non-current on our balance sheets. Product Sales, Net We account for our commercial product sales, net in accordance with Topic 606 - Revenue from Contracts with Customers . We received approval from the U.S. Food and Drug Administration (“FDA”) in September 2019 to market IBSRELA in the U.S.. We began selling IBSRELA in the U.S. in March 2022. We distribute IBSRELA principally through major wholesalers, specialty pharmacies and group purchasing organizations ("GPOs") (collectively, our "Customers"). Our Customers subsequently sell IBSRELA to pharmacies and patients. Separately, we enter into arrangements with third parties that provide for government-mandated rebates, chargebacks and discounts. Revenue from product sales is recognized when our performance obligations are satisfied, which is when Customers obtain control of our product and occurs upon delivery. Reserves for Variable Consideration Revenues from product sales are recorded at the net sales price (transaction price), which includes estimates of variable consideration which may be settled in the form of off-invoice discounts, chargebacks, or rebates. Variable consideration includes discounts to customers and government programs, wholesaler fees, group purchasing organization administrative fees, patient copay assistance programs, and estimated product returns. These estimates are based on the amounts earned or to be claimed for related sales and are classified as reductions of gross accounts receivable if settlement is expected to occur through a reduction in the amounts paid by our customers or a current liability if settlement is expected to occur through a payment from us. Where appropriate, these estimates are based on factors such as industry data and forecasted customer buying and payment patterns, our experience, current contractual and statutory requirements, specific known market events and trends. These reductions to gross sales reflect our best estimates of the amount of consideration to which we are entitled based on the terms of the contract. Variable consideration is included in the transaction price only to the extent that it is probable that a significant reversal in the amount of cumulative revenue recognized will not occur when the uncertainty associated with the variable consideration is subsequently resolved. Actual amounts of consideration ultimately received may differ from our estimates. If actual results in the future vary from our estimates, we adjust these estimates, which would affect product revenue and earnings in the period such variances become known. As we gain more experience, estimates will be more heavily based on the expected utilization from historical data we have accumulated since the IBSRELA product launch. Rebates: Rebates include wholesaler fees, GPO fees, as well as mandated discounts under the Medicaid Drug Rebate Program ("Medicaid") and the Medicare Coverage Gap Program ("Medicare"). Estimates for rebates are recorded in the same period the related gross revenue is recognized, resulting in a reduction of product revenue and the establishment of a current liability which is included in accrued expenses on the balance sheets. We estimate our Medicaid and Medicare rebates based upon the estimated payor mix, and statutory discount rates. Our estimates for payor mix are guided by payor information received from specialty pharmacies, expected utilization for wholesaler sales to pharmacies, and available industry payor information. Chargebacks: Chargebacks are discounts that occur when certain contracted purchasers purchase directly from our wholesalers at a discounted price. The wholesaler, in turn, charges back the difference between the price initially paid to us by the wholesaler and the discounted price paid to the wholesaler by the contracted purchaser. Amounts for estimated chargebacks are established in the same period that the related gross revenue is recognized, resulting in a reduction of product revenue and accounts receivable. The accrual for wholesaler chargebacks is estimated based on known chargeback rates, known sales to wholesalers, and estimated utilization by types of contracted purchasers. Discounts and Fees: Our payment terms are generally 30 to 60 days. Wholesalers, GPOs and specialty pharmacies are offered various forms of consideration, including off-invoice discounts which may be paid to GPOs and specialty pharmacies. Wholesalers and GPOs may also receive prompt pay discounts for payment within a specified period. We expect discounts to be earned when offered and therefore, we deduct the full amount of these discounts from product sales when revenue is recognized, resulting in a reduction of product revenue and accounts receivable. Other Reserves: Patients who have commercial insurance may receive copay assistance when product is dispensed by pharmacies to patients. We estimate the amount of copay assistance provided to eligible patients based on the terms of the program and redemption information provided by third-party claims processing organizations and are recorded in accounts payable and accrued expenses and other current liabilities on the balance sheets. Other reserves include estimated product returns which are recorded in the same period the related gross revenue is recognized, resulting in a reduction of product revenue as well as accounts receivable. We estimate our product returns reserve based upon our experience, and specific known market events and trends. Collaboration Revenue Recognition We generate collaboration revenue primarily from research and collaboration and license agreements with customers. Goods and services in the agreements may include the grant of licenses for the use of our technology, the provision of services associated with the research and development of product candidates, manufacturing services, and participation in joint steering committees. The terms of these arrangements typically include payment to us of one or more of the following: non-refundable, up-front license fees; research, development, regulatory and commercial milestone payments; reimbursement of research and development services; option payments; reimbursement of certain costs; payments for manufacturing supply services; and future royalties on net sales of licensed products. When two or more contracts are entered into with the same customer at or near the same time, we evaluate the contracts to determine whether the contracts should be accounted for as a single arrangement. Contracts are combined and accounted for as a single arrangement if one or more of the following criteria are met: (i) the contracts are negotiated as a package with a single commercial objective; (ii) the amount of consideration to be paid in one contract depends on the price or performance of the other contract; or (iii) the goods or services promised in the contracts (or some goods or services promised in each of the contracts) are a single performance obligation. In determining the appropriate amount of revenue to be recognized as we fulfill our obligations under each of our agreements, management performs the following steps: (i) identification of the promised goods or services in the contract; (ii) determination of whether the promised goods or services are performance obligations including whether they are distinct in the context of the contract; (iii) measurement of the transaction price, including any constraints on variable consideration; (iv) allocation of the transaction price to the performance obligations; and (v) recognition of revenue when (or as) we satisfy each performance obligation. As part of the accounting for contracts with customers, we develop assumptions that require judgment to determine whether promised goods and services represent distinct performance obligations and the standalone selling price for each performance obligation identified in the contract. This evaluation is subjective and requires us to make judgments about the promised goods and services and whether those goods and services are separable from other aspects of the contract. Further, determining the standalone selling price for performance obligations requires significant judgment, and when an observable price of a promised good or service is not readily available, we consider relevant assumptions to estimate the standalone selling price, including, as applicable, market conditions, development timelines, probabilities of technical and regulatory success, reimbursement rates for personnel costs, forecasted revenues, potential limitations to the selling price of the product and discount rates. We apply judgment in determining whether a combined performance obligation is satisfied at a point in time or over time, and, if over time, concluding upon the appropriate method of measuring progress to be applied for purposes of recognizing revenue. We evaluate the measure of progress each reporting period and, as estimates related to the measure of progress change, related revenue recognition is adjusted accordingly. Changes in our estimated measure of progress are accounted for prospectively as a change in accounting estimate. We recognize collaboration revenue by measuring the progress toward complete satisfaction of the performance obligation using an input measure. In order to recognize revenue over the research and development period, we measure actual costs incurred to date compared to the overall total expected costs to satisfy the performance obligation. Revenues are recognized as the program costs are incurred. We will re-evaluate the estimate of expected costs to satisfy the performance obligation each reporting period and make adjustments for any significant changes. Amounts received prior to satisfying the revenue recognition criteria are recorded as contract liabilities in our Balance Sheets. If the related performance obligation is expected to be satisfied within the next twelve months it will be classified in current liabilities. Amounts recognized as revenue prior to receipt are recorded as contract assets in our Balance Sheets. If we expect to have an unconditional right to receive the consideration in the next twelve months, it will be classified in current assets. A net contract asset or liability is presented for each contract with a customer. Milestone Payments: At the inception of each arrangement that includes development milestone payments, we evaluate whether the milestones are considered probable of being reached and estimate the amount to be included in the transaction price using the most likely amount method. Amounts of variable consideration are included in the transaction price to the extent that it is probable that a significant reversal in the amount of cumulative revenue recognized will not occur and when the uncertainty associated with the variable consideration is subsequently resolved. Milestone payments that are not within our control or the control of the licensee, such as regulatory approvals, are not considered probable of being achieved until those approvals are received. The transaction price is then allocated to each performance obligation on a relative standalone selling price basis, for which we recognize revenue as or when the performance obligations under the contract are satisfied. At the end of each subsequent reporting period, we re-evaluate the probability of achievement of such development milestones and any related constraints, and if necessary, adjust our estimate of the overall transaction price. Any such adjustments are recorded on a cumulative catch-up basis, which would affect earnings in the period of adjustment. Manufacturing supply services: Arrangements that include a promise for future supply of drug substance or drug product for either clinical development or commercial supply at the customer’s discretion are generally considered as options. We assess if these options provide a material right to the licensee and if so, they are accounted for as separate performance obligations. If we are entitled to additional payments when the customer exercises these options, any payments are recorded in product supply revenue when the customer obtains control of the goods, which is upon delivery. Royalties: For arrangements that include sales-based royalties, including milestone payments based on the level of sales, and where the license is deemed to be the predominant item to which the royalties relate, we recognize revenue at the later of (i) when the related sales occur, or (ii) when the performance obligation to which some or all of the royalty has been allocated has been satisfied (or partially satisfied). To date, royalty revenue resulting from licensing arrangements has not been material. Licenses of intellectual property: If a license granted to a customer to use our intellectual property is determined to be distinct from the other performance obligations identified in the arrangement, we recognize revenue from consideration allocated to the license when the license is transferred to the licensee and the licensee is able to use and benefit from the license. For licenses that are bundled with other promises, we apply judgment to assess the nature of the combined performance obligation to determine whether the combined performance obligation is satisfied over time or at a point in time and, if over time, to conclude upon the appropriate method of measuring progress for purposes of recognizing revenue related to consideration allocated to the performance obligation. Options: Customer options, such as options granted to allow a licensee to choose to research, develop and commercialize licensed compounds are evaluated at contract inception in order to determine whether those options provide a material right (i.e., an optional good or service offered for free or at a discount) to the customer. If the customer options represent a material right, the material right is treated as a separate performance obligation at the outset of the arrangement. We allocate the transaction price to material rights based on the standalone selling price, and revenue is recognized when or as the future goods or services are transferred or when the option expires. Customer options that are not material rights do not give rise to a separate performance obligation, and as such, the additional consideration that would result from a customer exercising an option in the future is not included in the transaction price for the current contract. Instead, the option is deemed a marketing offer, and additional option fee payments are recognized or being recognized as revenue when the licensee exercises the option. The exercise of an option that does not represent a material right is treated as a separate contract for accounting purposes. Contract modifications: Contract modifications, defined as changes in the scope or price (or both) of a contract that are approved by the parties to the contract, such as a contract amendment, exist when the parties to a contract approve a modification that either creates new or changes existing enforceable rights and obligations of the parties to the contract. Depending on facts and circumstances, we account for a contract modification as one of the following: (i) a separate contract; (ii) a termination of the existing contract and a creation of a new contract; or (iii) a combination of the preceding treatments. A contract modification is accounted for as a separate contract if the scope of the contract increases because of the addition of promised goods or services that are distinct and the price of the contract increases by an amount of consideration that reflects our standalone selling prices of the additional promised goods or services. When a contract modification is not considered a separate contract and the remaining goods or services are distinct from the goods or services transferred on or before the date of the contract modification, we account for the contract modification as a termination of the existing contract and a creation of a new contract. When a contract modification is not considered a separate contract and the remaining goods or services are not distinct, we account for the contract modification as an add-on to the existing contract and as an adjustment to revenue on a cumulative catch-up basis. We receive payments from our licensees as established in each contract. Upfront payments and fees are recorded as deferred revenue upon receipt or when due and may require deferral of revenue recognition to a future period until we perform our obligations under these arrangements. Where applicable, amounts are recorded as accounts receivable or unbilled revenue when our right to consideration is unconditional. We do not assess whether a contract with a customer has a significant financing component if the expectation at contract inception is such that the period between payment by the licensees and the transfer of the promised goods or services to the licensees will be one year or less. Cost of Revenue Cost of revenue consists of the cost of commercial goods sold to our Customers and international partners under product supply agreements as well as royalty expense based on sales of tenapanor. We capitalize inventory costs associated with the production of our products after regulatory approval or when, based on management’s judgment, future commercialization is considered probable and the future economic benefit is expected to be realized. Otherwise, such costs are expensed as research and development. A portion of the costs of IBSRELA units recognized as revenue during the twelve months ended December 31, 2022 were expensed prior to the fourth quarter of 2021, at which time our intent to commercialize IBSRELA was established and we commenced preparation for the commercial launch of IBSRELA. Cost of revenue includes payments due to AstraZeneca, which under the terms of a termination agreement entered into in 2015 ("AZ Termination Agreement") is entitled to (i) future royalties at a rate of 10% of net sales of tenapanor or other NHE3 products by us or our licensees, and (ii) 20% of non-royalty revenue received from our collaboration partners as a result of the development and commercialization of tenapanor or certain other NHE3 inhibitors. We have agreed to pay AstraZeneca up to a maximum of $75.0 million in the aggregate for (i) and (ii). We recognize these expenses as cost of revenue when we recognize the corresponding revenue that gives rise to payments due to AstraZeneca. To date, we have recognized an aggregate of $15.3 million as cost of revenue under the AZ Termination Agreement. Research and Development Costs Research and development costs are charged to expense as incurred and consisted of costs incurred to further our research and development activities and include salaries and related employee benefits, costs associated with clinical trials, costs related to pre-commercialization manufacturing activities such as manufacturing process validation activities and the manufacturing of clinical drug supply, nonclinical research and development activities, regulatory activities, research-related overhead expenses and fees paid to external service providers and contract research and manufacturing organizations that conduct certain research and development activities on our behalf. Accrued Research and Development Expenses We are required to estimate our accrued expenses at the end of each reporting period. This process involves reviewing open contracts and purchase orders, communicating with our personnel to identify services that have been performed on our behalf and estimating the level of service performed and the associated cost incurred for the service when we have not yet been invoiced or otherwise notified of the actual costs. The majority of our service providers submit invoices in arrears for services performed or when contractual milestones are met. We make estimates of our accrued expenses as of each balance sheet date in our financial statements based on facts and circumstances known to us at that time. We periodically confirm the accuracy of our estimates with our service providers and make adjustments if necessary. Examples of estimated accrued research and development expenses include fees paid to: • contract research organizations ("CROs") in connection with clinical studies; • investigative sites in connection with clinical studies; • vendors related to product manufacturing, development and distribution of clinical supplies; and • vendors in connection with preclinical development activities. We record expenses related to clinical studies and manufacturing development activities based on our estimates of the services received and efforts expended pursuant to contracts with multiple CROs and manufacturing vendors that conduct and manage these activities on our behalf. The financial terms of these agreements are subject to negotiation, vary from contract to contract, and may result in uneven payment flows. There may be instances in which payments made to our vendors will exceed the level of services provided and result in a prepayment of the expense. Payments under some of these contracts depend on factors such as the successful enrollment of subjects and the completion of clinical trial milestones. In accruing service fees, we estimate the time period over which services will be performed, enrollment of subjects, number of sites activated and the level of effort to be expended in each period. If the actual timing of the performance of services or the level of effort varies from our estimate, we will adjust the accrued or prepaid expense balance accordingly. Stock-Based Compensation We recognize compensation expense for all stock-based payment awards made to employees, non-employees and directors based on estimated fair values. For employee and non-employee stock options, we determine the grant date fair value of the awards using the Black-Scholes option-pricing model and generally recognize the fair value as stock-based compensation expense on a straight-line basis over the vesting period of the respective awards. For restricted stock and performance-based restricted stock, to the extent they are probable, the compensation cost for these awards is based on the closing price of our common stock on the date of grant and recognized as compensation expense on a straight-line basis over the requisite service period. Stock-based compensation expense is based on the value of the portion of stock-based payment awards that is ultimately expected to vest. As such, our stock-based compensation is reduced for the estimated forfeitures at the date of grant and revised, if necessary, in subsequent periods if actual forfeitures differ from those estimates. Derivatives and Hedging Activities We account for our derivative instruments as either assets or liabilities on the balance sheet and measure them at fair value. Derivatives are adjusted to fair value through other income (expense), net in the statements of operations and comprehensive loss. Non-cash Interest Expense on Deferred Royalty Obligation The net proceeds |