Sandwich Bot Protection
As was initially created by $INEDIBLE and implemented into inedibleX, Goat has implemented advanced yet elegant sandwich bot protection.
Previously the protection was simply that no more than 2 transactions could happen in a single pool. This worked perfectly to avoid sandwich bots since they were no longer able to sandwich free from risk, but if many transactions were occurring at once, such as one a token first launches, there were many failing purchases.
The advancements we've made with Goat are that the sandwich protection focuses on preventing a "switch" of trading directions rather than denying based on a simple number of trades. For example, if 50 transactions that are all buys occur in a single block, they will all be let through since no sandwich can be occurring. If there's 1 sell then 49 buys after, that will also be allowed since there's only 1 switch of trading direction. However, if there's 1 sell then 1 buy then another sell, that's 2 switches of trading direction and the last transaction will be reverted.
This advancement ensures that failures because of sandwich protection will be much rarer, and many buys occurring during a launch or sells during a period of fear will not result in reverting transactions.
Last updated