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 .
author[Q & A of Denglian community],Please bring the original link to reprint, thank you.
The sidebar is recommended
- Android Ethereum wallet creates account, key and keystore locally. How to trade with the account on the private chain node
- How to realize cross-border remittance
- Remix suddenly lost connection
- Are TX fee and gas fee the same thing
- The BNB token transfer method is executed in the contract and reports an error
- The replica uses truffle to construct the notebook on the chain. Calling the function on the web side always returns invalid address
- No problem in JS VM environment. This error will be reported in the test transfer after deployment to the local private chain
- Deal initiated by defi
- Can't the memory type use push
- How to instantiate Web3 in the latest version of metamask
guess what you like
On the visibility of code and data of smart contract
[Beijing / remote] recruitment of rust / solidity engineers for the new layer 2 project of blockchain
Hardhat solidity has different versions and cannot be compiled normally
After the pet store runs the NPM run dev command, the web page cannot be fully displayed
Job opportunities - looking for talents with doctor's degree + overseas experience. Position: blockchain pre-sales Solution Expert (blockchain national team + Tencent Department investment)
How to comprehensively use multiple smart contract formal verification tools to maximize their effect
Echo framework problem
Eth smart contract
How to pull up metamask and authorize a contract to use my wallet
How to view the contents in input data and how to fill in parameters when translating to JS
- Is the difficulty of each block of Ethereum a set in the future? Can I change it?
- About the contractual relationship of succession
- Is there a guidance group for the study course
- About contract acceptance erc721
- Geth upgrade
- How to get the tokenid and index of NFT?
- Web3. JS how to set transaction value in Remix
- Error: Can not send value to non-payable contract method or constructor
- About Ethereum strategy selection and testing
- Truffle deploys multiple contracts
- Contract return array type
- Arbitrum environment construction
- Practice storing names and ages in DAPP on the blockchain and find problems
- Uncaught (in promise) TypeError: Cannot read property 'length' of null
- Of erc721_ What kind of resources does the setbaseuri function set?
- How to build uinswap info page, can you give me some advice?
- In the Ethereum blockchain, can ordinary participating nodes (non consensus accounting nodes) call smart contracts to complete logical operations?
- How to get apy from pairs in uniswap
- Tiny said that there is no apy concept in the uniswap flow pool, so how to calculate and obtain many LP benefits.
- Problems in building arbitrum environment
- Web3 environmental issues
- Websocket connection of geth
- Paid demand is a simple trading tool
- Use Web3 Py failed to call the contract function, but there is no problem using Remix call. What's going on?
- Chainlink Oracle problem
- Why is the price data type returned by the price feed of chainlink int?
- How to use erc20 snapshot plug-in contract to realize trustless dividend? Is there a case for reference
- Is there an interface in web3js to obtain the public key directly from the private key? It's Web3 shh. Getpublickey? I call direct error reporting. There is no such method
- Ethers connects the contract, calls name() and reports sending a transaction requires a signer
- Did you participate in the 2021 Huawei blockchain university competition together? The VIP channel of school recruitment & internship, 150000 bonus pool, the reward looks very good
- If there is a problem with the geth console deployment contract, copy it to the geth console and enter the prompt cannot read property 'deploy' of undefined
- ethers. JS tutorial consultation, ethers JS contains ethereumjs wallet?
- On the issue of using router contract to remove liquidity in BSC
- Wallet development case consultation
- Why is there no @ openzeppelin library?
- There was an error in the demo of practicing storing the name and age on the blockchain
- After the chainlink node is built on the mathchain network, the client smart contract cannot be deployed
- Ask the teacher a related question
- Why can't the pool of liquidity be removed
- Tron always fail - transaction reverse