In the present study, we used metformin as a tool to partially explore the molecular mechanism underlying the changes in atrial SK2 and SK3 channels in diabetes. Here, KCNN2 is linked to diabetes mellitus.