-
Notifications
You must be signed in to change notification settings - Fork 607
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Arbitrage tx mempool filter #741
Conversation
Codecov Report
@@ Coverage Diff @@
## main #741 +/- ##
==========================================
- Coverage 18.73% 18.72% -0.01%
==========================================
Files 172 174 +2
Lines 23908 23932 +24
==========================================
+ Hits 4478 4481 +3
- Misses 18655 18675 +20
- Partials 775 776 +1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested in production (as is known to be best practice)
* Add Arb checktx filter, to raise gas * Add config params for min fee for arbitrage tx * Small improvements, add changelog * Fix bug in swap_msg logic
Closes: #723
Description
This PR adds a mempool filter for arbitrage txs. When its hit, it charges a separate gas price, as specified in the full nodes application config. This defaults to
0 uosmo
if not set in the app.toml, but the app.toml defaults to.005uosmo/gas
.The detection algorithm for arbitrage txs does have some false positives, and likely many false negatives. The false positives are described in the code comments, and I think are pretty miniscule. (Only thing I can see hitting it is a service that batches many users swap / LP positions together. Such a batching service seems like it can maintain connections to folks with lower fees though)
For contributor use:
docs/
) or specification (x/<module>/spec/
)Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorer