sla/srai mplementation, as well as swapFromAddress implementation