Fixed Abstracted currToGain algo