Oil prices set for weekly gain with Iran war resolution at deadlock