I was setting prevRate to CurRate, not curRate