current position:Home>In erc20 token contract, how to realize that 10% of the amount of each transfer will be used as the handling fee, and the handling fee will be distributed to all holders in proportion for each transfer

In erc20 token contract, how to realize that 10% of the amount of each transfer will be used as the handling fee, and the handling fee will be distributed to all holders in proportion for each transfer

2022-02-04 00:29:02 Q & A of Denglian community

ERC20 How to realize the amount of each transfer in the token contract 10% As a commission , Each transfer will be prorated to all holders




Take the answer 1:

Use rebase programme :

Balance per person y = k * x, use 10% The handling fee should be adjusted k value , Then the balance will change .




copyright notice
author[Q & A of Denglian community],Please bring the original link to reprint, thank you.
https://en.netfreeman.com/2022/02/202202040029007498.html

Random recommended