Principal Accounting Policies | 2. Principal accounting policies (a) Basis of presentation The consolidated financial statements of the Group have been prepared in accordance with the U.S. GAAP to reflect the financial position, results of operations and cash flows of the Group. Significant accounting policies followed by the Group in the preparation of the consolidated financial statements are summarized below. (b) Consolidation The Group’s consolidated financial statements include the financial statements of the Company, its subsidiaries and VIEs for which the Company or its subsidiary is the primary beneficiary. All transactions and balances among the Company, its subsidiaries and VIEs have been eliminated upon consolidation. A subsidiary is an entity in which the Company, directly or indirectly, controls more than one half of the voting powers; or has the power to appoint or remove the majority of the members of the board of directors; or to cast a majority of votes at the meeting of directors; or has the power to govern the financial and operating policies of the investee under a statute or agreement among the shareholders or equity holders. A VIE is an entity in which the Company, or its subsidiary, through contractual agreements, bears the risks of, and enjoys the rewards normally associated with ownership of the entity, and therefore the Company or its subsidiary is the primary beneficiary of the entity. In determining whether the Company or its subsidiaries are the primary beneficiary, the Company considered whether it has the power to direct activities that are significant to the VIE’s economic performance, and also the Company’s obligation to absorb losses of the VIE that could potentially be significant to the VIE or the right to receive benefits from the VIE that could potentially be significant to the VIE. Huya Technology and ultimately the Company hold all the variable interests of the VIE s s (c) Use of estimates The preparation of the Company’s consolidated financial statements in conformity with U.S. GAAP requires management to make estimates and assumptions that affect the reported amounts of assets, liabilities, related disclosure of contingent assets and liabilities at the balance sheet date, and the reported amounts of revenues and expenses during the reporting period in the consolidated financial statements and accompanying notes. Actual results could differ materially from such estimates. The Company believes that assessment of whether the Group acts as a principal or an agent in different revenue streams, the determination of estimated selling prices of multiple element revenue contracts, income taxes, tax considerations for earnings retained in Group’s VIEs and Management bases the estimates on historical experience and on various other assumptions that are believed to be reasonable, the results of which form the basis for making judgments about the carrying values of assets and liabilities. Actual results could differ from these estimates. (d) Foreign currency translation The Group uses Renminbi (“RMB”) as its reporting currency. The functional currency of the Company and its subsidiaries incorporated in Hong Kong, Cayman Islands and Singapore is United States dollar (“US$”), while the functional currency of the Group’s entities in PRC is RMB, which is their respective local currency. In the consolidated financial statements, the financial information of the Company and its subsidiaries, which use US$ as their functional currency, have been translated into RMB. Assets and liabilities are translated at the exchange rates on the balance sheet date, equity amounts are translated at historical exchange rates, and revenues, expenses, gains, and losses are translated using the average exchange rate for the period. Translation adjustments arising from these are reported as foreign currency translation adjustments and are shown as a component of other comprehensive income ( ) income. Foreign currency transactions denominated in currencies other than functional currency are translated into the functional currency using the exchange rates prevailing at the dates of the transactions. Monetary assets and liabilities denominated in foreign currencies at the balance sheet date are remeasured at the applicable rates of exchange in effect at that date. Foreign exchange gains and losses resulting from the settlement of such transactions and from remeasurement at year-end ( ) . (e) Convenience translation Translations of amounts from RMB into US$ for the convenience of the reader were calculated at the noon buying rate of US$1.00 = RMB 6.9618 on December 31, 2019 as set forth in the H.10 statistical release of the U.S. Federal Reserve Board. No representation is made that the RMB amounts could have been, or could be, converted into US$ at such rate. (f) Cash and cash equivalents Cash includes currency on hand and deposits held by financial institutions that can be added to or withdrawn without limitation. Cash equivalents represent short-term and highly liquid investments placed with banks, which have both of the following characteristics: i) Readily convertible to known amounts of cash throughout the maturity period; ii) So near their maturity that they present insignificant risk of changes in value because of changes in interest rates. The Group considers all highly liquid investments with original maturities of three months or less as cash equivalents. (g) Short-term deposits Short-term deposits represent time deposits placed with banks with original maturities of more than three months but less than one year. Interest earned is recorded as interest income in the consolidated statement of comprehensive ( ) income (h) Short-term investments For investments in financial instruments with a variable interest rate indexed to the performance of underlying assets, the Company elected the fair value method at the date of initial recognition and carried these investments subsequently at fair value. Changes in fair values are reflected in the consolidated statements of comprehensive ( ) inc ome. (i) Accounts receivable Accounts receivable are stated at the historical carrying amount net of allowance for doubtful accounts. The Group uses specific identification in providing for bad debts when facts and circumstances indicate that collection is doubtful and a loss is probable and estimable. If the financial conditions of its customers were to deteriorate, resulting in an impairment of their ability to make payments, additional allowance may be required. The Company maintains an allowance for doubtful accounts which reflects its best estimate of amounts that potentially will not be collected. The Company determines the allowance for doubtful accounts on an individual basis taking into consideration various factors including but not limited to historical collection experience and credit-worthiness of the debtors as well as the age of the individual receivables balance. Additionally, the Company makes specific bad debt provisions based on any specific knowledge the Company has acquired that might indicate that an account is uncollectible. The facts and circumstances of each account may require the Company to use substantial judgment in assessing its collectability. (j) Investment Equity Investments without Readily Determinable Fair Values The Company elected to record equity investments without readily determinable fair values and not accounted for by the equity method at cost, less impairment, adjusted for subsequent observable price changes, and will report changes in the carrying value of the equity investments in current earnings. Changes in the carrying value of the equity investment will be required to be made whenever there are observable price changes in orderly transactions for the identical or similar investment of the same issuer. The implementation guidance notes that an entity should make a “reasonable effort” to identify price changes . Equity Investments Accounted for Using the Equity Method The Group accounts for its equity investment over which it has significant influence but does not own a majority equity interest or otherwise control using the equity method. The Group adjusts the carrying amount of the investment and recognizes investment income or loss for share of the earnings or loss of the investee after the date of investment. The Group assesses its equity investment for other-than-temporary impairment by considering factors including, but not limited to, current economic and market conditions, operating performance of the entities, including current earnings trends and undiscounted cash flows, and other entity-specific information. The fair value determination, particularly for investment in privately held entities, requires judgment to determine appropriate estimates and assumptions. Changes in these estimates and assumptions could affect the calculation of the fair value of the investment and determination of whether any identified impairment is other-than-temporary. (k) Property and equipment Property and equipment are stated at historical cost less accumulated depreciation and impairment loss, if any. Depreciation is calculated using the straight-line method over their estimated useful lives. Residual rate is determined based on the economic value of the property and equipment at the end of the estimated useful lives as a percentage of the original cost. Property and equipment mainly consist of servers, computers and equipment , leasehold improvement s . Estimated useful lives Residual rate Servers, computers and equipment 3-5 0 %-5 % Leasehold improvement 4-5 years 0 % Others 3-5 years 0%-5 % Expenditures for maintenance and repairs are expensed as incurred. The gain or loss on the disposal of property and equipment is the difference between the net sales proceeds and the carrying amount of the relevant assets and is recognized in the consolidated statement of comprehensive ( ) income (l) Intangible assets Intangible assets mainly consist of license, copyrights of video content, domain names, software and Estimated useful lives License 15 years Copyrights of video content 1 – 4 years Domain names 15 years Software 1 – 5 years Trademark 5 years (m) Impairment of long-lived assets For long-lived assets other than investments whose impairment policy is discussed elsewhere in the financial statements, the Group evaluates for impairment whenever events or changes (triggering events) indicate that the carrying amount of an asset may no longer be recoverable. The Group assesses the recoverability of the long-lived assets by comparing the carrying value of the long-lived assets to the estimated undiscounted future cash flows expected to receive from use of the assets and their eventual disposition. Such assets are considered to be impaired if the sum of the expected undiscounted cash flows is less than the carrying amount of the assets. The impairment to be recognized is measured by the amount by which the carrying amount of the assets exceeds the fair value of the assets. The Group tests impairment of long-lived assets at the reporting unit level when impairment indicator appeared and recognizes impairment in the event that the carrying value exceeds the fair value of each reporting unit. For the years reported, the Group has only one reporting unit. No impairment of long-lived assets was recognized for the years ended December 31, 2017, 2018 and 2019. (n) Mezzanine equity Mezzanine equity represents the Series A-1 A-2 B-2 (collectively, the “Pre-IPO Preferred Shares”) issued by the Company prior to IPO. The Pre-IPO Preferred Shares are redeemable at the holders’ option any time after a certain date and were contingently redeemable upon the occurrence of certain liquidation events outside of the Company’s control. Therefore, the Group classifies the Pre-IPO Preferred Shares as mezzanine equity 20 ) In accordance with ASC 480-10, Pre-IPO Pre-IPO Moreover, according to ASC-480-10-S99 paid-in (o) Revenue On January 1, 2018, the Group adopted ASC 606, “Revenue from Contracts with Customers” using the modified retrospective method applied to those contracts which were not completed as of January 1, 2018. Results for reporting periods beginning after January 1, 2018 are presented under Topic 606, while prior period amounts are not adjusted and continue to be reported in accordance with the Company’s historic accounting under Topic 605. Based on the Company’s assessment, the adoption of ASC 606 did not have any material impact to the Group’s consolidated financial statements and there were no material differences between the Company’s adoption of ASC 606 and its historic accounting under ASC 605. Revenues are recognized when control of the promised virtual items or services is transferred to the Group’s customers, in an amount that reflects the consideration the Group expects to be entitled to in exchange for those virtual items or services. The following table disaggregates the Group’s revenue by major type for the years ended December 31, 2017, 2018 and 2019: For the year ended December 31, 2017 2018 2019 RMB RMB RMB Live streaming 2,069,536 4,442,845 7,976,214 Other revenues (i) 115,280 220,595 398,287 Total 2,184,816 4,663,440 8,374,501 ( i Other revenues mainly include advertising and online games revenues. Revenue recognition and significant judgments (i) Live streaming The Group is principally engaged in operating its own live streaming platforms, which enable broadcasters and viewers to interact with each other during live streaming. It generates revenue from sales of virtual items in the platforms. The Group has a recharge system for users to purchase the Group’s virtual currency then purchase virtual items for use. Users can recharge via various online third-party payment platforms, including WeChat Pay, AliPay and other payment platforms. Virtual currency is non-refundable The Group evaluates and determines that it is the principal and views users to be its customers. The Group reports live streaming revenues on a gross basis. Accordingly, the amounts billed to users are recorded as revenues and revenue sharing fee paid to broadcasters and talent agencies are recorded as cost of revenues. Where the Group is the principal, it controls the virtual items before they are transferred to users. Its control is evidenced by the Group’s sole ability to monetize the virtual items before they are transferred to users, and is further supported by the Group being primarily responsible to users and having a level of discretion in establishing pricing. The Group designs, creates and offers various virtual items for sales to users with pre-determined The Group may also enter into contracts that can include various combinations of virtual items, which are generally capable of being distinct and accounted for as separate performance obligations, such as Huya Noble Member Program. Determining whether those virtual items are considered distinct performance obligations that should be accounted for separately versus together may require significant judgment. The contract of Huya Noble Member Program, which is normally purchased on a monthly basis, includes three major virtual items, a) the noble member status, b) the virtual currency coupons, and c) the right of subsequent renewal at a discounted price, which are considered distinct and accounted for separately under ASC 606. A noble member status itself cannot be purchased on a standalone basis, and it is used for one month but the users can simultaneously purchase multiple months of the package (with effective period of noble member status limited to a maximum of 24 months from date of purchase) at any point in time. The virtual currency coupons, which have the same purchase power as the Group’s virtual currency but with expiry dates, is valid to purchase virtual items for a fixed period. Judgment is required to determine standalone selling price for each distinct performance obligation . The As the Group’s live streaming virtual items are generally sold without right of return and the Group does not provide any other credit and incentive to its users, therefore accounting of variable consideration when estimating the amount of revenue to recognize is not applicable to the Group’s live streaming business. (ii) Advertising The Group primarily generates advertising revenues primarily from sales of various forms of advertising and promotion campaigns, including (i) display advertisements in various areas of our platform, (ii) native advertisements in cooperation with broadcasters, and (iii) game events advertising and campaigns. Advertisements on the Group’s platforms are generally charged on the basis of duration. Advertising contracts are signed to establish the fixed price and the advertising services to be provided. Where the service is transferred to customers, revenues from advertising contracts are recognized ratably over the contract period of display. The Group enters into advertising contracts directly with advertisers or third-party advertising agencies that represent advertisers. Payment terms and conditions vary by contract type, although terms generally include a requirement of payment within 3 months. Both third-party advertising agencies and direct advertisers are generally billed at the end of the display period and payments are due usually within 3 months. In instances where the timing of revenue recognition differs from the timing of billing, the Group has determined the advertising contracts generally do not include a significant financing component. The primary purpose of the credits terms is to provide customers with simplified and predictable ways of purchasing the Group’s advertising services, not to receive financing from its customers or to provide customers with financing. Certain customers may receive sales incentives in the forms of discounts and rebates to advertisers or advertising agencies based on purchase volume, which are accounted for as variable consideration. The Group estimates these amounts based on the expected amount to be provided to customers considering the contracted rebate rates and estimated sales volume based on historical experience, and reduce revenues recognized. For the years ended December 31, 2017, 2018 and 2019, the amounts of discounts and rebates to advertising customers were RMB8,714, RMB21,796 and RMB63,622, respectively. The Group believes that there will not be significant changes to its estimates of variable consideration. (iii) Online games revenues The Group generates revenues from offering virtual items in online games developed by the Group itself or third parties to game users. The Group has a recharge system for game user to purchase game tokens for use. Game user can recharge via various online third-party payment platforms, including WeChat Pay, AliPay and other payment platforms. Game tokens is non-refundable The majority of online games revenues were derived from the Group’s self-developed games for the years presented. With respect to the game operation contracts entered into between the Group and distribution platforms for co-publishing on-going Users play games free of charge and are charged for purchases of virtual items mainly including consumable and perpetual items, which can be utilized to enhance users’ game-playing experience. Consumable items represent virtual items that can be consumed by a specific user within a specified period of time. Perpetual items represent virtual items that are accessible to the users’ account over the life of the online games. The Group maintains information on consumption details of in-game in-game The estimated user relationship period is based on data collected from those game users who have purchased game tokens. The Group maintains a system that captures the following information for each game user: (a) the frequency that game users log into each game, and (b) the amount and the timing of when the game users charge his or her game token. The Group estimates the user relationship period for a particular game to be the date a user purchases a game token through the date the Group estimates the game user plays the game for the last time. This computation is completed on a user by user basis. Then, the results for all analyzed users are averaged to determine an estimated end user relationship period for each game. Revenues from in-game The determination of user relationship period is based on the Group’s best estimate that takes into account all known and relevant information at the time of assessment. The Group assesses the estimated user relationships on a monthly basis. Any adjustments arising from changes in the user relationship as a result of new information will be accounted as a change in accounting estimate in accordance with ASC 250 Accounting Changes and Error Corrections. Contract balances The Group collects accounts receivable from various online payment platforms, advertising customers and distribution platforms. The allowance for doubtful accounts reflects the Group’s best estimate of probable losses inherent in the accounts receivable balance. The Group determines the allowance based on known troubled accounts, historical experience, and other currently available evidence. The activity in the allowance for doubtful accounts for the years presented is disclosed and detailed in Note 8. The opening balance of accounts receivable from third-party and related party payment platforms were RMB14,459 and RMB101,536, respectively, as of January 1, 2018. As of December 31, 2018 and 2019, accounts receivable from third-party payment platforms were RMB30,507 and RMB43,339, respectively, and accounts receivable from related parties as payment platforms were RMB239,290 and RMB31,261, respectively. No impairment was recognized for the years presented. The opening balance of accounts receivable from third-party advertising customers was as January 1 , . s of ber 31 , and 2019 , a related party The opening balance of accounts receivable from third-party distribution platforms as of January 1, 2018 was RMB2,215. As of December 31, 2018 and 2019, accounts receivable from third-party distribution platforms were RMB2,941 and RMB3,978, respectively. No accounts receivable were from related party distribution platforms as of January 1, 2018 and December 31, 2018, and the balance of accounts receivable from a related party as distribution platform was RMB687 as of December 31, 2019. No impairment was recognized for the years presented. Contract liabilities primarily consists of deferred revenue for unconsumed virtual items and unamortized revenue from virtual items in the Group’s platforms, where there is still an obligation to be provided by the Group, which will be recognized as revenue when all of the revenue recognition criteria are met. The opening balance of deferred revenue related to live streaming business as of January 1, 2018 was RMB285,826. As of December 31, 2018 and 2019, deferred revenue related to live streaming business were RMB543,245 and RMB951,166, respectively. During the year ended December 31, 2017, 2018 and 2019, the Group recognized revenue of live streaming business amounted to RMB56,526, RMB240,802 and RMB462,511, respectively, that was included in the corresponding contract liability balance at the beginning of the years. The opening balance of deferred revenue related to online games business and others and others and others During the year ended December 31, 2017, 2018 and 2019, the Group does not have any arrangement where the performance obligations have already been satisfied in the past year, but the corresponding revenue is only recognized in a later year. As of December 31, 2019, the aggregate amount of the transaction price allocated to the remaining performance obligation is RMB959,918, the Company expects to recognize the remaining performance obligation as revenue as follows. However, the amount and timing of revenue recognition is largely driven by customer usage, which can extend beyond the original contractual term. 2020 2021 and after Total RMB RMB RMB Revenue expected to be recognized 795,005 164,913 959,918 (p) Cost of revenues Amounts recorded as cost of revenue relate to direct expenses incurred in order to generate revenue. Such costs are recorded as incurred. Cost of revenues consists primarily of (i) revenue sharing fees and content costs, including payments to various broadcasters and content providers, (ii) bandwidth costs, (iii) salaries and welfare, (iv) payment handling costs, (v) depreciation and amortization expense for servers and other equipment, and intangibles directly related to operating the platform, (vi) share-based compensation, (vii) other taxes and surcharges, and (viii) other costs. (q) Research and development expenses Research and development expenses primarily consist of (i) salaries and welfare for research and development personnel, and (ii) share-based compensation for research and development personnel. Costs incurred during the research stage are expensed as incurred. Costs incurred in the development stage, prior to the establishment of technological feasibility, which is when a working model is available, are expensed when incurred. The Company recognizes software development costs in accordance with guidance on intangible assets and internal use software. This requires capitalization of qualifying costs incurred during the software’s application development stage and to expense costs as they are incurred during the preliminary project and post implementation/operation stages. The Company has not capitalized any costs related to internal use software during the years ended December 31, 2017, 2018 and 2019. (r) Sales and marketing expenses Sales and marketing expenses primarily consist of (i) advertising and market promotion expenses , , or sales and marketing personnel (s) General and administrative expenses General and administrative expenses primarily consist of (i) share-based compensation for management and administrative personnel, and (ii) salaries and welfare for management and administrative personnel. (t) Employee social security and welfare benefits Employees of the Group in the PRC are entitled to staff welfare benefits including pension, work-related injury benefits, maternity insurance, medical insurance, unemployment benefit and housing fund plans through a PRC government-mandated multi-employer defined contribution plan. The Group is required to accrue for these benefits based on certain percentages of the employees’ salaries, up to a maximum amount specified by the local government. The Group is required to make contributions to the plans out of the amounts accrued. The PRC government is responsible for the medical benefits and the pension liability to be paid to these employees and the Group’s obligations are limited to the amounts contributed and no legal obligation beyond the contributions made. Employee social security and welfare benefits included as expenses in the accompanying statement of comprehensive ( ) income (u) Share-based compensation Share-based compensation expense arises from share-based awards, including restricted share units granted by JOYY with its own underlying shares to certain management and other key employees who to some extent provide services to the Group (“JOYY’s Share-based Awards”), share options for the purchase of Huya’s ordinary shares and Huya’s restricted share units, granted by the Group to its management, key employees and non-employees (“Huya Share-based Awards”) and ordinary shares granted to the Company’s CEO by JOYY(“CEO’s Awards”). JOYY’s Share-based Awards In determining the fair value of restricted share units granted, the fair value of the underlying shares of JOYY on the grant dates is applied. The grant date fair value of restricted share units is based on stock price of JOYY in the NASDAQ Global Market. Share-based compensation expense for restricted share units granted under JOYY share-based incentive plans is recognized using the graded vesting method, net of estimated forfeiture rates, over the requisite service period, which is generally the vesting period. Forfeitures are estimated at the time of grant based on historical forfeiture rates and will be revised in the subsequent periods if actual forfeitures differ from those estimates. Huya’s share options Prior to the IPO date (Note 1(b)), in determining the fair value of share options granted, a binomial option-pricing model is applied. The determination of the fair value is affected by the fair value of the ordinary shares as well as assumptions regarding a number of complex and subjective variables, including risk-free interest rates, exercise multiples, expected forfeiture rates, the expected share price volatility rates, and expected dividends. Following the listing of the Company, the grant date fair value of share options is based on stock price of the Company’s ordinary share in NYSE minus the respective exercise price. Share-based compensation expense for share options granted to employees is measured based on their grant-date fair values and recognized over the requisite service period, which is generally the vesting period. The number of share-based awards for which the service is not expected to be rendered over the requisite period is estimated, and the related compensation expense is not recorded for the number of awards so estimated. Huya’s restricted share units Fair value of restricted share units (“RSUs”) is determined with reference to the fair value of the underlying shares. Prior to the IPO, in determining the fair value of the ordinary shares granted, a combination of discounted cash flow method (“DCF”) under income approach and guideline companies method (“GCM”) under market approach is applied, with a discount for lack of marketability, given that the shares underlying the awards were not publicly traded at the time of grant. DCF method of the income approach involves applying appropriate weighted average cost of capital, or WACC, to discount the future cash flows forecast, based on the Company best estimates as of the valuation date, to present value. The WACC was determined based on a consideration of the factors including risk-free rate, comparative industry risk, equity risk premium, company size and non-systematic After CEO’s Awards The CEO’s Awards were granted prior to the IPO. In determining the fair value of the ordinary shares granted, the method was the same as the determination of the fair value of the underlying shares of RSU. Awards granted to non-employees The Company adopted ASU 2018-07, Compensation-Stock Compensation (Topic 718), Improvements to Nonemployee Share-Based Payment Accounting (“ASU 2018-07”) on January 1, 2019. The guidance aligns the accounting for non-employee equity based awards with the accounting for employee equity-based awards, and requires equity-classified share-based payment awards issued to non-employees to be measured based on the grant date price, rather than remeasure the awards through the performance completion date. The Company remeasured equity-classified awards for which a measurement date has not been established through a cumulative-effect adjustment to retained earnings as of January 1, 2019. Since the awards were measured at fair value as of December 31, 2018 prior to the adoption, the cumulative-effect adjustment arising from the adoption was immaterial. The share-based compensation expense is recognized (i) immediately at the grant date if no vesting conditions are required, or (ii) using the graded-vesting attribution method, net of estimated forfeitures, over the requisite service period. (v) Leases In February 2016, the Financial Accounting Standards Board (FASB) issued Accounting Standards Update No. 2016-02 (Topic 842) “Leases”. Topic 842 supersedes the lease requirements in Accounting Standards Codification (ASC) Topic 840, “Leases”. Under Topic 842, lessees are required to recognize assets and liabilities on the balance sheet for most leases and provide enhanced disclosures. Leases will continue to be classified as either finance or operating. The Company adopted the new standard using the optional transition method beginning January 1, 2019. As permitted under the transition guidance, the Company carried forward the assessment of whether the existing contracts contain or are leases, classification of the leases and remaining lease terms. RMB92,075 of lease assets and RMB91,654 of liabilities were recognized on the balance sheet upon adoption as of January 1, 2019. The Company categorize leases with contractual terms longer |