If it's a local currency this can be considered a local Consumer Price Index. If you peg the local currency to it, the local currency is always available to buy the food, based on the local CPI of necessary goods, regardless of shortages etc. (if the pegging is daily).
I had a similar scheme for local based UBI here: https://qbix.com/blog/index.php/2017/09/the-future-of-money/