I am trying to deploy a contract similar to Safemoon with reflection and Auto-LP. I am using 0x107961c9db688f1bc1fb095c5e7ea6ae876373e8 as reference since it is on V2. Deployment works well and the token is tradable, however, it is not generating liquidity. I understand that these contracts accumulate tokens in the contract itself and when it hits a threshold, it sells half and uses the other half to provide liquidity. This is not happening in my test contract and is resulting in an overaccumulation of tokens in it. I wonder if there is something I am missing after deploying the contract, perhaps approving some address or increasing their allowance. Can anyone help?
May 7, 2021, 9:35 PM
numTokensSellToAddToLiquidity
thats the amount it has to reach before it sells and add liquidity
May 7, 2021, 9:38 PM
So that number was reached but it is still not selling
May 7, 2021, 9:39 PM
You added initial liquidity?
May 7, 2021, 9:41 PM
yes
I am willing to pay anyone that could help me with the contract and deploy the token properly
May 7, 2021, 9:42 PM
you have it deployed some where ?
May 7, 2021, 9:43 PM
bsc mainnet
May 7, 2021, 9:45 PM
did you change anything ?
like _maxTxAmount, or the supply
May 7, 2021, 9:46 PM
no i did not change anything. I literally copy and pasted the code and changed the name
May 7, 2021, 9:47 PM
you changed the router when on test, right ?
May 7, 2021, 9:48 PM
i was never on test. I directly launched on mainnet
May 7, 2021, 9:49 PM
Ooh nvm😅
May 7, 2021, 9:56 PM
.
I can't find when this is used
May 7, 2021, 10:28 PM
Could this help? The address of version two from pancake is this
0x10ED43C718714eb63d5aA57B78B54704E256024E
Not this
0x107961c9db688f1bc1fb095c5e7ea6ae876373e8
0x10ED43C718714eb63d5aA57B78B54704E256024E
Not this
0x107961c9db688f1bc1fb095c5e7ea6ae876373e8
May 7, 2021, 10:46 PM
Nvm guys i sorted it out
The problem is that the transactions for buying the LP are delayed
May 7, 2021, 11:36 PM
what do you mean?
like
bytes32 hash = "0x1291.."
bytes32 hash = "0x1291.."
May 8, 2021, 7:55 AM
Keep it below 16
May 8, 2021, 8:34 AM
guys when I am using bytes32 for a hash I must use "" rights?
May 8, 2021, 8:46 AM
Yes either single or double
May 8, 2021, 8:49 AM
and someone Knows where Elongate contract has the charity function?
merci
My friend wants to copy safemoon😭 and add a fee that will go to a charity addres
the ones for erc20 can be used for bep20 too
May 8, 2021, 10:29 AM
Like api keys, usernames
May 8, 2021, 11:58 AM
do you know where elongate take fee for charity? in the code
May 8, 2021, 12:03 PM
You have their contract link?
May 8, 2021, 12:05 PM
yes one second
https://bscscan.com/address/0x2A9718defF471f3Bb91FA0ECEAB14154F150a385
May 8, 2021, 12:07 PM
They don't have it
Straight fork of safemoon. 5% liquidity, 5% redistributed
May 8, 2021, 12:21 PM
so how they give to charity lol
May 8, 2021, 12:26 PM
Manual maybe
Not from this contract, that's for sure
May 8, 2021, 12:35 PM
this is what I think
thanks
thanks
@mrrobot3_3 so now I have to understand how to add this chsrity feauture
May 8, 2021, 1:36 PM
Will your charity fee be automatically converted to BNB/ETH or send part of your token amount being transacted should be transferred to an charity wallet?
May 8, 2021, 2:45 PM
let' s say that instead of going in pancake as liquidity goeas to an address
May 8, 2021, 2:47 PM
But you can chose if you want that address recive bnb, eth or your token. Some contracts use an automatic system that check the current conversion rate price and apply the trade to avoid dumping the price at once when doing a donation. It means that your charity address will recive only bnb, for exemple
If it's what you need, serch for $MUNCH
They use this system
In ethereum blockchain
May 8, 2021, 2:56 PM
thanks now I look to it
i found it thank you
do you know which is their tokenomics?
do you know which is their tokenomics?
May 8, 2021, 3:01 PM
Do You mean their fees?
May 8, 2021, 3:03 PM
https://munchtoken.com/
this right?
May 8, 2021, 3:04 PM
Right
May 8, 2021, 3:05 PM
so they don't have liquidity fee right?
May 8, 2021, 3:05 PM
No, they have two fees. Tax fee distributed to the holders and the charity fee that goes through this process
May 8, 2021, 3:07 PM
perfect it is the best for me
thank you
May 8, 2021, 3:08 PM
Both setable by the owner anytime through the functions
Guys, i need help to verify my smart contract on bscscan. Could anybody help me?
May 8, 2021, 3:11 PM
which is your problem
May 8, 2021, 3:18 PM
I created and deployed my contract with remix but i used some contracts imported from openzepellin. To verify the contract i need to flat my contract, but i don't know how to do that
May 8, 2021, 3:36 PM
you imported using github?
or @?
May 8, 2021, 3:37 PM
Github url
May 8, 2021, 3:37 PM
and it gives you error?
you can try to copy-paste all the contracts in one but maybe will be too much
May 8, 2021, 3:39 PM
It doesnt accept the import
Im gonna try this
May 8, 2021, 3:44 PM