New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reflection / Burn Logic #1
Comments
How it works10% Tax Line 1114 in 0f0aef2
Everybody else pays the tax Line 1134 in 0f0aef2
5% gets added to the LP Line 964 in 0f0aef2
the contract adress gets the LP Fee _rOwned[address(this)] = _rOwned[address(this)].add(rLiquidity);
5% Token gets Burned Line 921 in 0f0aef2
the burned amount just gets added to an variable and are taken away from the total supply variable as per this code there is no Burned Wallet you just get returned an int of the total burned amount. Whats the 0 Adress? With no surprice the owner of the contract himself. Line 481 in 0f0aef2
and here is how the owner will rugpull outset Tax to 100%, 0% 50% Line 899 in 0f0aef2
Think about if Satoshi could just 100% the fees all by himself BTC would be worthless This Code was copypasted and a couple of lines are changed. So there is some dead code in ther that dosent run or is runned by another contract but i dont know ether. |
Unfortunately, he can. This is often used as a defense mechanism against hackers, but it can be updated with a better one. Many lines should be included |
https://www.certik.org/projects/safemoon |
For example people buy and then they change tax to 100% and now only owner can sell tax free right? but if owner have no tokens to sell and liquidity is all burned into dead wallet. This happened with me but i am not sure how owner can rug? when he have no tokens and liquidity is burned how he can be benifit by stoping us from selling?? kindly reply |
You are right. example: to add:
to finish: |
wen v2 |
Hi, I implemented burnable safemoon token in this repository https://github.com/mamadeusia/BurnableReflectionToken |
Hey team,
Great work so far.
I have seen people ask these questions, and I have also wondered myself, but if you can help us understand this, that would be great.
Is the burn + reflection logic manual? If not where in the contract does this logic reside?
Or, is the burn and reflection logic residing in another contract at another address?
It is understood, that the 10% tax exists in the contract, as the two fee variables declared in the token contract:
but where do we find the logic to:
_rOwned
and_tOwned
Is it these two functions:
includeInReward
is the only function I see that is making use of iterating over accounts, aside from_getCurrentSupply
Does the includeInReward function set who in included in the reflection?
burn
function, and event declared but don't see where they are invoked. I also don't see theburn
event is ever emitted in this contract.These are pretty straightforward answers, and I think this will help quite a bit of supporters, including myself. Any help on this would be greatly appreciated
Love the approach overall 🚀
The text was updated successfully, but these errors were encountered: