Hello everyone, I have a simple question that is making me a bit surprised currently. All this meme coins contracts have a feature of adding liquidity to uniswap once the contract's own token balance reaches a given treshold. The addLiquidity function is conditionally called inside the contract's own _transfer function.

My question is, if a regular user is making a transfer transaction and the contract reaches the treshold and calls the addLiquidity function, is the user the one to pay for the fees of a much more complex and costly transaction?

May 26, 2021, 11:24 PM
The user pays the fee percentage that you set in the function and it directs it towards the liquidity pool during each transfer
May 26, 2021, 11:26 PM
Apologies for not stating the question clearly, I meant the GAS cost
Is the user paying the extra gas of adding liquidity to the swap?
Because it costs almost 100 times more gas if, by misfortune, that user happens to make the transaction that reaches the trehsold
May 26, 2021, 11:28 PM
Ethereum network?
Yes, it costs gas fees to enter or remove liquidity from a Trading Pair
May 26, 2021, 11:40 PM
Ok. I see, it's just a bit awkward because a user is not expecting a regular transfer to cost so much. And indeed only a few transfers originate that addLiquidity operation, which is done by the smart contract
Don't you simply send the LP tokens to a burn address? like 0x0
May 27, 2021, 1:23 AM

© 2024 Draquery.com All rights reserved.