From quantum difference equations to Maulik-Okounkov quantum affine algebra