    amount,
    type: TimerActionTypes.AddTick,
  };
};

export const tickerStart = (rate: number = 1000) => {
  return (dispatch: any) => {
    dispatch(tickerLoop(rate));
    return dispatch({
      rate,
      type: TimerActionTypes.TickerStart,
    });
  };