Electrostimulated diffusion of ions in HTSC and the current states in d-type superconductors