safemoonprotocol / Safemoon.sol

safemoon contract
662 stars 900 forks source link

disterbution fees to holders wallats #46

Open amit221 opened 3 years ago

amit221 commented 3 years ago

Hi. I was trying to find out how they distribute the fee to all their holder but didn't find any loop that does it. does anyone know how they do it or what function does it? @safemoonprotocol

Jovonni commented 3 years ago

I wonder if it's done manually, or on another contract? I don't see that logic either. Let me look again

Jovonni commented 3 years ago

I only really see where they include and exclude accounts in the rewards:

function includeInReward(address account) external onlyOwner() {
        require(_isExcluded[account], "Account is already excluded");
        for (uint256 i = 0; i < _excluded.length; i++) {
            if (_excluded[i] == account) {
                _excluded[i] = _excluded[_excluded.length - 1];
                _tOwned[account] = 0;
                _isExcluded[account] = false;
                _excluded.pop();
                break;
            }
        }
    }

Not seeing where the reward is dispersed. @safemoonprotocol where is this logic?

amit221 commented 3 years ago

this is super weird because there are a lot of forks out there that say they give their holders tokens. like safemoon. It also means that if other contract is responsible for the giveaways then he can give it also to the owners and we can't see it

stokely627 commented 3 years ago

I believe I figured it out. After you verify the contract on BSCscan you have to add the dev wallet address to the excludeFromReward section under the Write Contract tab

MrPaperPlanes commented 3 years ago

On trust wallet refresh the page and you can watch it grown I think bot mart sends it out every 7th of the the month