I am building a contract from scratch and I was wondering if is possible to do one of the following situations:
Use part of the taxes to reward the lp holders, for instance lets say I have 3% tax and I want to distribute it to all lp holders, just to motivate them to provide liquidity
Automatically create an lp pool for each transaction, this means:
- I buy 1 eth that is equivalent to 1000 of my tokens
- I have 10% taxes to make the liquidity stronger
- I want to use 5% of the eth to exchange it for my token and 5% of eth to create an LP and hold it under the owners account, so it can't be sell
I am struggling to find more details on how these operations work, I understand that AddLiquidityETH works when you want to automate the process of creating the first LP, but I am not sure if I can automate one of the two steps I am proposing in this thread. The second one is highly desirable for me, but I would be happy with the first one
I would appreciate any advice Best regards