CONTROLLING CORROSION WITHIN WELLBORES
A method for controlling corrosion is described. The method includes determining a concentration of a first gas in a first formation, determining a concentration of a second gas different than the first gas in a second formation, determining a ratio between the first gas and the second gas, comparing the determined ratio to a threshold ratio of the first gas to the second gas for the wellbore which reduces a corrosion rate within the wellbore, and based on a result of comparing the determined ratio to the threshold ratio, modifying a quantity of the first formation fluid or the second formation fluid flowed into the wellbore. The first gas and the second gas mix within the wellbore.