Amid its dwindling foreign reserves, Sri Lanka has signed a deal for an oil barter with Iran, to settle $251 million in oil import dues.