SA receives $1bn emergency loan