We study the use of pension funds in the Finnish earnings-related pension system with the aim of smoothing contributions over time under demographic and economic risks. Smoothing is affected by the revisions in long-term forecasts and is thus imperfect. As a partially funded defined-benefit system, demographic risks and asset yield risks directly affect the contributions. In a general equilibrium setup, these risks also affect wages and thus pension benefits and replacement rates. We also consider alternative benefit rules where risks are transferred more to the pensioners.