sandwicher icon indicating copy to clipboard operation
sandwicher copied to clipboard

Issue with SandWicher.sol

Open psilmana opened this issue 3 years ago • 7 comments

When i use this contract to buy any token my transaction is being sandwiched by some other bot and i loss good amount.. Please check these transaction at this address

https://bscscan.com/address/0xfab57ceb826c4df8a2087b0494c00999dbfcdf79

psilmana avatar Feb 01 '23 15:02 psilmana

I will look into this tomorrow, in the meantime I would advise not to use the contract as is, it is not optimised enough, and you are lucky you didn't get into a rug. There is a lot of missing rug checks and slippage that I've not incorporated in this version

dennohpeter avatar Feb 01 '23 20:02 dennohpeter

Hi thanks for responding and updating on issues this contract has. Eagerly waiting for your advice

psilmana avatar Feb 02 '23 02:02 psilmana

Any update?

psilmana avatar Feb 05 '23 09:02 psilmana

Hi you seems to be busy so if you want we can work on this on paid basis

psilmana avatar Mar 10 '23 05:03 psilmana

Hey @psilmana sorry had been busy for a while, one thing you can do to avoid being sandwiched is getting reserves offchain and checking if the are have changed onchain in the s.c if the have that means someone bought b4 you so just return or revert

dennohpeter avatar Mar 14 '23 12:03 dennohpeter

Hi I did that it resolved the issue of being sandwiched but now the transactions are failing

psilmana avatar Apr 02 '23 13:04 psilmana

dm on telegram at @dennohpeter we debug

dennohpeter avatar Apr 03 '23 09:04 dennohpeter