
Solidity code edit mint function
- or -
Post a project like this1430
$220
- Posted:
- Proposals: 2
- Remote
- #3267371
- Awarded
Description
Experience Level: Entry
I need to edit a solidity code and add a mint function to it. I have the whole code ready even with the mint function, but if I try to mint some tokens it doesn't add it only to the owner but it spreads throughout every holder.
It spreads throughout the holders based on how much they have. If the owner account has 0 of the tokens then even if he is the owner he doesn't get anything from the minting, only the holders get it.
It is propably something in the fee function where it is spreading the fee throughout every holder. The same mint function works in another more simple contract, but in the more complex where there is also liquidity fee etc. it does this bug.
It spreads throughout the holders based on how much they have. If the owner account has 0 of the tokens then even if he is the owner he doesn't get anything from the minting, only the holders get it.
It is propably something in the fee function where it is spreading the fee throughout every holder. The same mint function works in another more simple contract, but in the more complex where there is also liquidity fee etc. it does this bug.

John F.
100% (1)Projects Completed
1
Freelancers worked with
1
Projects awarded
50%
Last project
25 May 2021
Czech Republic
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies