Skip to content

Should prb-proxy be used with a Pancakeswap v2 router target to avoid Pancakeswap frontrunning? #175

Closed Answered by PaulRBerg
ariel-simnegar asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @ariel-simnegar, thanks for your question and interesting use case!

The frank answer is "I don't know". I have never used PRBProxy to prevent front-running. But by the looks of it, you should be able to use the PancakeSwap V2 router directly without any bespoke target contract. This is because anything that can be done with an EOA can be done with PRBProxy, too (the reverse is not true, however).

All I can say is that a miner will still be able to decode your tx and front-run you - but, as you say, this will require more advanced operations than just replacing from. They will have to deploy their own PRBProxy, etc.

Regarding vulnerabilities, that is something that you should consult wi…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by PaulRBerg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants