ERC-20 mintMinerReward()

Hello, I am working on an ERC-20 token inheriting from OpenZeppelin contracts. I am looking into ways of introducing new supply and came across the _mintMinerReward() in the 'Automating the Supply' section in the OZ docs here:

My question is - will this method still work after the Ethereum merge and switch to proof of stake? Will blocks still be added by nodes that 'block.coinbase' currently points to and thus be valid recipients of the reward? Or does the merge render this approach obsolete?

Thanks for any insights.

The merge to PoS will not cause any changes in the execution layer. The only change would be 12s block times instead of 13s. So if the code works before the merge it will still work after.

2 Likes

Got it - thanks for clarifying.