Skip to content

Conversation

@honxsinatra
Copy link

Since this function is automatically called before the token transfer, it means that before every transfer, tokens are minted equal to the blockReward to reward the miner. In this scenario, after a certain number of transactions, the totalSupply will reach its maximum cap, resulting in no more rewards or minting of the token. For example, let's consider the following parameters: blockReward = 100 and Initial totalSupply = 70,000,000. After the first transfer, the totalSupply will increase to 70,000,100. After another 299,999 transfers, the totalSupply will reach 100,000,000. Therefore, there are only 300,000 successful transfers allowed. The 300,001st transfer will be reverted with an error message stating 'Maximum capped amount is reached.' To avoid this situation, it is essential to set the following condition as added to the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant