Fix on Miner: Reduce maximum of taken resources to the rest amount that
can be stored in the create-supply