What happens when the last block is produced? Masternode and PoS mining will continue to exist and make a profit?
I think mining will continue. But it will not be funded by creating new blocks, but by distributing the remuneration of commissions in the network.
Mining will still live a couple of years for sure, it seems to me that we have just experienced a recession and now a new trend will begin. This is a very profitable sphere in crypto in my opinion, and I still do not see any prerequisites for its termination.