taking about 400k gas to both swap the tokens for BNB and add the liquidity back to the pool. This is making my transaction costs too high for my desired use. Is 400k gas for these operations correct?
It’s always expensive to add liquidity May want to look at actual transaction of tokens that actually do that
I am having some issues with my code and would like some guidance on providing liquidity from the contract
I was thinking to allow the tokens to accumulate before swapping, but then some random user would be hit with a high gas cost. Would metamask even estimate the correct gas in this case.
I thought abt that , I would just collect the tokens and add liq manually and u pay the gas
You could just fork the network, use hardhat console.log and gasleft to check wich parts of your/their code is spending so much gas
Обсуждают сегодня