fix rate expiry, raise error when trying to save invalid rates from server