hey guys
When doing a safemoon like contract
is there a way to only tax when token is being sold

currently my token tax is being applied to both buys and sells on pancakeswap

Jun 12, 2021, 12:33 PM
yea you can do
add this inside transfer function
if(to == uniswapV2Pair)
blablabla
Jun 12, 2021, 12:34 PM
OK.
if to = pancake pair
will test that
Jun 12, 2021, 12:35 PM
yes exactly
I wrote uniswapV2Pair because is what safemoon uses to indicate the pair
Jun 12, 2021, 12:36 PM
I am forking from safemoon with minor changes.
I have same variable
I felt like taxing people to buy from pancake is not very fair.

taxing only people who dump

that's why researching
Jun 12, 2021, 12:40 PM
Clu tax buyers lol
Sam on our fork 5%
+ 5%
Jun 12, 2021, 12:41 PM
I see.
I am trying to figure out a way to avoid tax on buys from pancakeswap.
Jun 12, 2021, 12:42 PM
It encourage them to hold
Jun 12, 2021, 12:43 PM
yea
encourage buys
encourage hodl
discourage sells
Jun 12, 2021, 12:57 PM
Hero of
Jun 12, 2021, 1:32 PM
I told you
this is to check when someone is selling
Jun 12, 2021, 1:39 PM
Yes You did.
Thanks
Will check it.
Jun 13, 2021, 10:01 AM

© 2024 Draquery.com All rights reserved.