now returns unpaid reward as earnings.txt