Algorithm that determines daily offer needs improvement

I understand the daily offer is supposed to help upgrade a kingdom. I have encountered two scenarios where the offer does not make sense.

  1. In one case, I am missing a weapon to upgrade the kingdom, the daily offer kept offer me ingots and says it will help me upgrade this kingdom. I have a few thousands of the this ingots.
  2. In another case, I need to medal my troops to upgrade the kingdom. The daily offer kept offer me common troops.