Nifty 50 closed at 22,968, up 255 points or 1.12%; Sensex settled at 74,107, a gain of 787 points or 1.07%