Skip to content
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

331 trading on aerodrome v2 is not properly supported #333

Merged

Conversation

Lesigh-3100
Copy link
Collaborator

This PR addresses the issue:
#331

The bug occurred in async_event_update_utils.py specifically for Solidly-fork exchanges.

The issue was that Solidly forks require the Factory contract to get the pool's fee, and when get_fee was called in the function get_token_and_fee, the exchange object had not been properly initialized with its factory contract. I changed the function to use the exchange object that was already initialized on startup, stored in Manager base.py.

@Lesigh-3100 Lesigh-3100 added the bug Something isn't working label Jan 25, 2024
@Lesigh-3100 Lesigh-3100 self-assigned this Jan 25, 2024
@Lesigh-3100 Lesigh-3100 linked an issue Jan 25, 2024 that may be closed by this pull request
fastlane_bot/events/async_utils.py Outdated Show resolved Hide resolved
fastlane_bot/events/pools/solidly_v2.py Show resolved Hide resolved
main.py Outdated Show resolved Hide resolved
@barakman barakman self-requested a review January 25, 2024 20:00
Copy link
Collaborator

@barakman barakman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A lot of the changes in this PR seem cosmetic (spaces, newlines, etc), and some of them actually seem wrong, for example, in function pair_name).

If they're indeed wrong, then better not include them, so they don't distract us from the "real" changes.

fastlane_bot/events/async_event_update_utils.py Outdated Show resolved Hide resolved
main.py Outdated Show resolved Hide resolved
fastlane_bot/events/exceptions.py Show resolved Hide resolved
@mikewcasale mikewcasale merged commit 1b05191 into main Jan 29, 2024
3 checks passed
@mikewcasale mikewcasale deleted the 331-trading-on-aerodrome_v2-is-not-properly-supported branch January 29, 2024 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Trading on aerodrome_v2 is not properly supported
3 participants