The company managed to recover losses of £500m it made during the height of the energy crisis.