Add slippage protection for eth_bots#740
Merged
sentilesdal merged 14 commits intomainfrom Jul 26, 2023
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
88f0c97 to
22aeada
Compare
|
Remaining rate limit: 4943 🚀 |
22aeada to
cb5d6cb
Compare
|
Remaining rate limit: 4943 🚀 |
wakamex
reviewed
Jul 25, 2023
dpaiton
reviewed
Jul 25, 2023
dpaiton
reviewed
Jul 25, 2023
dpaiton
reviewed
Jul 25, 2023
dpaiton
reviewed
Jul 25, 2023
dpaiton
reviewed
Jul 25, 2023
dpaiton
reviewed
Jul 25, 2023
dpaiton
reviewed
Jul 25, 2023
dpaiton
reviewed
Jul 25, 2023
dpaiton
reviewed
Jul 25, 2023
dpaiton
reviewed
Jul 25, 2023
dpaiton
reviewed
Jul 25, 2023
dpaiton
reviewed
Jul 25, 2023
dpaiton
reviewed
Jul 25, 2023
dpaiton
reviewed
Jul 25, 2023
dpaiton
approved these changes
Jul 25, 2023
6fcc854 to
2b80315
Compare
|
Remaining rate limit: 4994 🚀 |
|
Remaining rate limit: 4987 🚀 |
|
Remaining rate limit: 4934 🚀 |
|
Remaining rate limit: 4900 🚀 |
improve typing and expose base_token_contract as well to make debugging easier. nice to be able to go up the stack trace and use the base_token_contract to view balances
|
Remaining rate limit: 4931 🚀 |
This was referenced Jul 27, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR add slippage protection to the agent trades in eth_bots. This is accomplished by adding a new function
smart_contract_preview_transactionthat will do a dry run of a transaction and return the results. The result is then multiplied by theslippage_toleranceto get either themin_outputor themax_depositfor the actual transaction. Along the way several other improvements were made: