Exact results for a fluid model with state-dependent flow rates