Walkersville will pay Frederick County more than half a million dollars so the town can increase its wastewater discharge.