Is there any way to disallow another tx to be on your block?
Sep 5, 2021, 3:41 AM
I think I’m on to something here, everyone
Sep 5, 2021, 3:59 AM
You can't read another tx from solidity :o
Sep 5, 2021, 4:00 AM
So I was doing some bscscan digging and the frontrun bot is controlled by a wallet address. The wallet address interacts with the bot contract and then the bot contract is actually the one that buys/ sells the tokens
Can you allow that address to buy in, but when that wallet addy tries to interact with the contract (bot) to sell, block it?
Allowing only 1 tx origin and not a second one
Blacklisting an address in bscscan triggers and event that a bot will frontrun
Looking for a solidity dev to help me with an obscure line of code I want to implement into my contract. If you’re looking for side work hit me up and I’ll tell you what I’m thinking!
Sep 5, 2021, 5:12 AM
Sure, it’d be relatively easy. Make a mapping of front running bots, check against it for every transaction, if it’s a bot, only allow tokens IN. Require() tokens going out pass the check.
To have extra fun, set a variable that increases every time you ban a bot, so you can keep track of how many you’ve bopped.
Sep 5, 2021, 5:23 AM
If you’re available for some side work and want to hear exactly what I’m aiming at, dm me
Looking for a high level solidity dev to help me with an obscure line of code I want to implement in my contract. Hit me up!
Sep 5, 2021, 5:41 AM