ethereum / solidity-examples

Loose collection of Solidity example code
MIT License
532 stars 161 forks source link

How to add a max limit on the burn function with solidity? #56

Closed descartes2100 closed 3 years ago

descartes2100 commented 3 years ago

How to add a max limit on the burn function with solidity? Actually accumulating the max amount of tokens and triggering the burn function as soon as the max amount reaches? That is, the fee is paid by the end user who reaches the limit. We don't want this situation to happen, what can we do alternatively? Can you help me? Thank you.