Yankees had a deal in place for Ken Giles at trade deadline