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 and has been determined to be the primary beneficiary of the VIE. (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 the 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, the valuation allowance for deferred tax assets and income tax, subsequent adjustment due to significant observable price change for the equity investments without readily determinable fair values and not accounted for by the equity method, impairment assessment of investments in equity securities without readily determinable fair value, fair value determination for available-for- sale debt significant 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 (loss) income in the statement of comprehensive 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 =RMB6.8972 on December 30, 2022 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) Restricted cash Cash that is restricted as to withdrawal or for use or pledged as security is reported separately on the face of the consolidated balance sheets, and is included in the total cash, cash equivalents, and restricted cash in the consolidated statements of cash flows. The Group’s restricted cash is substantially cash balance on deposit required by its commercial banks, the court, and government department. (h) Short-term deposits and long-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 during the years presented. Long-term deposits of the Group represent time deposits placed with banks with original maturities of (i) 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 income. (j) Receivables Before January 1, 2020, the Group determined the allowance for doubtful accounts based on an assessment of historical collection activity, the current business environment and forecasts that may affect the customers’ ability to pay. From January 1, 2020, the Group adopted ASU No. 2016-13, The Group’s accounts receivable , , amounts To estimate expected credit losses, the Group has identified the relevant risk characteristics of its customers and the related receivables and other receivables which include size, type of the services or the products the Group provides, or a combination of these characteristics. Receivables with similar risk characteristics have been grouped into pools. For each pool, the Group considers the historical experience of loss severity and recoveries, current economic conditions, future economic conditions There have been no (k) Investments 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. The Group evaluates its equity method investment for impairment under ASC 323-10. Equity Investments without Readily Determinable Fair Values The Group elected to record equity investments without readily determinable fair values, which are not accounted for using the equity method and do not qualify for the existing practical expedient in ASC 820 to estimate fair value using the net asset value per share (or its equivalent) of the investments and, at cost, less impairment, adjusted for subsequent observable price changes, and will report changes in the carrying values of the equity investments in earnings. Changes in the carrying values of the equity investment are made whenever there are impairment or observable price changes in orderly transactions for the identical or similar investment of the same issuer that are known or that can reasonably be known to the Group based on reasonable effort. For equity investments without readily determinable fair value for which the Group has elected to apply the measurement alternative, the Group makes a qualitative assessment of whether the investment is impaired at each reporting date, applying judgment in considering various factors and events including a) adverse performance of investees; b) adverse industry developments affecting investees; and c) adverse regulatory social, economic or other developments affecting investees. If a qualitative assessment indicates that the investment is impaired, the Group estimates the investment’s fair value in accordance with the principles of ASC 820. If the fair value is less than the investment’s carrying value, the Group recognizes an impairment loss of investments equal to the difference between the carrying value and fair value. The Group recognized impairment losses of RMB55,201 for the year ended December 31, 2022. There were no impairment losses recognized for the years ended December 31, 2020 and 2021. Available-for-sale The Group has classified its investment in debt securities, other than those the held to maturity debt securities, as available-for-sale available-for-sale an available-for-sale an available-for-sale (l) 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 improvements and others. Estimated useful lives Residual rate Servers, computers and equipment 3-4 0 % Leasehold improvements Shorter of lease term or the estimated useful lives of the assets 0 % Office furnitures and others 3-5 0%-5 % The Company also has certain construction in progress which represents a building under construction, which is stated at actual construction cost less any impairment loss. Construction in progress is transferred to the respective category of property and equipment when completed and ready for its intended use. 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. (m) Intangible assets Intangible assets mainly consist of copyrights of video content, license, software, domain names and trademark. Identifiable intangible assets are carried at acquisition cost less accumulated amortization and impairment loss, if any. As of December 31, 2021 and 2022, there are no indefinite lived intangibles. Estimated useful lives Copyrights of video content 1 – 4 years License 15 years Software 1 – 10 years Domain names 15 years Trademarks 5 years (n) 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 grouping 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 asset grouping. Any No impairment of long-lived assets was recognized for the years ended December 31, 2020, 2021 and 2022. (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, 2020, 2021 and 2022: For the year ended December 31, 2020 2021 2022 RMB RMB RMB Live streaming 10,311,624 10,186,204 8,195,907 Other revenues (i) 602,750 1,165,242 1,024,555 Total 10,914,374 11,351,446 9,220,462 (i) Other revenues mainly include advertising, sub-licensing 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 primarily from sales of virtual items in the platforms. The Group has a recharge system for users to purchase the Group’s virtual currency, which can then be utilised to purchase virtual items for use on the live streaming platforms. Users can recharge via various online 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 in the revenue generating arrangement and 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/payable 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 item is recognized any d 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 Group allocates the arrangement consideration to the separate accounting of each distinct performance obligation based on their relative standalone selling prices. For instances where standalone selling price is not directly observable as the Group does not sell the virtual item separately, such as the noble member status and the virtual currency coupons, the Group determines the standalone selling price based on pricing strategies, market factors and strategic objectives. In respect of the right of subsequent renewal at a discounted price, the Group estimates individual user’s times of renewal based on historical data of users’ spending pattern and average times of renewal. The Group recognizes revenue for each of the distinct performance obligations identified in accordance with the applicable revenue recognition method relevant for that obligation. For revenue allocated to noble member status, it’s generally recognized ratably over the contract period as users simultaneously consume and receive a series of services, virtual items and virtual rights. For revenue related to virtual currency coupons provided on a consumption basis, virtual currency coupons used to purchase virtual items are recognized as revenue according to the prescribed revenue recognition policies of virtual items addressed above unless otherwise stated. Although the virtual currency coupons have expiry dates, the Group considers the impact of the breakage amount for virtual currency coupons is insignificant as historical data shows that virtual currency coupons are consumed shortly after they are released to users and the forfeiture rate remains relatively low for the periods reported, therefore, the Group does not expect to be entitled to a breakage amount for the virtual currency coupons. For the right of subsequent renewal at a discounted price, upon each time a subsequent renewal is purchased, the cash received is recorded as deferred revenue and allocated proportionally to the noble member status and virtual currency coupons based on their relative standalone selling price and revenue is then recognized following the revenue recognition method of noble member status and virtual currency coupons as described above. (ii) Sub-licensing The Group generates licensing revenue primarily from sub-licensing e-sports e-sports e-sports e-sports sub-licensing e-sports sub-licensing e-sports sub-licensed Revenues from barter transactions were recognized during the year ended December 31, 2021 and 2022, in which the e-sports contents are sub-licensed (iii) Advertising The Group 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. The Group provides sales incentives to certain customers in the forms of discounts and rebates 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. The Group believes that there will not be significant changes to its estimates of variable consideration. (iv) 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 users to purchase game tokens for use. Game users can recharge via various online payment platforms, including WeChat Pay, AliPay and other payment platforms. Game tokens is non-refundable 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, distribution platforms and livestreaming platforms. Prior to January 1, 2020, The Group record ed non-recoverable The Group determined the allowance based on known troubled accounts, historical experience, and other currently available evidence. Starting from January using a modified retrospective approach with a cumulative-effect increase of approximately RMB . The expected credit loss provision for accounts reflects the Group’s best estimate of its expected credit loss in the accounts receivable balance. The Company has established a provision matrix that is based on its historical credit loss experience, adjusted for forward-looking factors specific to the debtors and the economic environment. The activity in the loss allowance for the year ended December presented is disclosed and detailed in Note 7, Note 8 and Note Contract liabilities primarily consist 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. During the years ended December 31, 2020, 2021 and 2022, the Group recognized revenue amounting to RMB845,966, RMB485,878 and RMB459,509 , respectively, that had been included in the corresponding contract liability balance at the beginning of the years. As of December 31, 2022, the aggregate amount of the transaction price allocated to the remaining performance obligation was RMB518,974 , 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. 2023 2024 and after Total RMB RMB RMB Revenue expected to be recognized 445,620 73,354 518,974 (p) Cost of revenues Amounts recorded as cost of revenues 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 to broadcasters and content costs, including payments to e-sports (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 had not capitalized any costs related to internal use software during the years ended December 31, 2020, 2021 and 2022. (r) Sales and marketing expenses Sales and marketing expenses primarily consist of (i) advertising and market promotion expenses, (ii) salaries and welfare for sales and marketing personnel, and (iii) share-based compensation for sales and marketing personnel. The advertising and market promotion expenses amounted to RMB449,042, RMB655,957 and RMB412,529 for the years ended December 31, 2020, 2021 and 2022, respectively. (s) General and administrative expenses General and administrative expenses primarily consist of (i) salaries and welfare for management and administrative personnel, and (ii) share-based compensation 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 amounted to RMB116,292, RMB187,200 and RMB181,628 for the years ended December 31, 2020, 2021 and 2022, respectively. During the year ended December 31, 2022, a headcount reduction initiative related to the Group’s business optimization plans resulted in a one time employee severance program with a corresponding recorded provision of RMB 53,595 . The charge is primarily reported within research and development expenses in the accompanying statement of comprehensive income. (u) Share-based compensation Share-based compensation expense arises from share-based awards, including 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’s share options Prior to the IPO date (Note 1(b)), in determining the fair value of share options granted, the binomial option-pricing model was applied. The determination of the fair value was 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 began to be determined based on the stock price of the Company’s ordinary shares listed on the 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 Share-based awards with service conditions only are measured at the grant date fair value of the awards and recognized as expenses using the graded-vesting method, net of estimated forfeitures, over the requisite service period. Fair value of restricted share units (“RSUs”) is determined with reference to the fair value of the underlying shares. Forfeiture rate is estimated based on historical forfeiture patterns and adjusted to reflect future change in circumstances and facts, if any. If actual forfeitures differ from those estimates, the Company may need to revise those estimates used in subsequent periods. (v) Leases In February 2016, the Financial Accounting Standards Board (FASB) issued Accounting Standards Update No. 2016-02 The Company has adopted the new standard, effective January 1, 2019, which requires to Leases will continue to be classified as either finance or operating. The Company categorize leases with contractual terms longer than twelve months as either operating or finance. Finance leases are generally those leases that allow lessee to substantially utilize or pay for the entire asset over its estimated life. Assets acquired un |