A three-factor pricing model for cryptocurrencies