Oil prices ease as investors assess risks of Israel-Hamas war