I created a swap that uses the interface of the onchain pancakeswap router
I was able to test it using a fork of the bsc mainnet
I could swap and add/ remove liquidity from already existing pairs on the mainnet fork
Now I want to add liquidity to a new token... Hence creating a busd/Newtoken pair
But I get an error saying transaction reverted: trying to deploy a contract whose code is too large
Feb 28, 2023, 8:57 PM
Had this yesterday but was able to deploy on remix. Never figured out why HH didn’t let me
Feb 28, 2023, 9:38 PM
you deployed to what network please?
Feb 28, 2023, 9:38 PM
Eth
Look at any auto liq token and take out the part where it uses the router and instead use swapExactTokensForEth
Feb 28, 2023, 10:49 PM