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

Refactor triangle-mode #651

Open
wants to merge 137 commits into
base: develop
Choose a base branch
from
Open

Refactor triangle-mode #651

wants to merge 137 commits into from

Conversation

barakman
Copy link
Collaborator

@barakman barakman commented May 13, 2024

Handle issue #650

fastlane_bot/modes/base_triangle.py Outdated Show resolved Hide resolved
fastlane_bot/modes/base_triangle.py Outdated Show resolved Hide resolved
fastlane_bot/modes/base_triangle.py Outdated Show resolved Hide resolved
fastlane_bot/modes/base_triangle.py Outdated Show resolved Hide resolved
fastlane_bot/modes/triangle_multi.py Outdated Show resolved Hide resolved
fastlane_bot/modes/triangle_multi.py Outdated Show resolved Hide resolved
fastlane_bot/modes/triangle_multi.py Outdated Show resolved Hide resolved
fastlane_bot/modes/triangle_multi.py Outdated Show resolved Hide resolved
@platonfloria platonfloria force-pushed the triangle-mode-refactor branch 3 times, most recently from f827557 to 140b3f8 Compare May 17, 2024 11:07
@platonfloria platonfloria force-pushed the triangle-mode-refactor branch 2 times, most recently from 1ef62bb to 80664b2 Compare May 18, 2024 11:23
@barakman barakman changed the base branch from sei-release-candidate to develop May 21, 2024 14:45
@barakman barakman changed the base branch from develop to sei-release-candidate May 21, 2024 14:45
@barakman barakman changed the base branch from sei-release-candidate to triangle-rebased May 21, 2024 15:00
@barakman barakman changed the base branch from triangle-rebased to sei-release-candidate-telos May 21, 2024 15:01
@barakman barakman changed the base branch from sei-release-candidate-telos to sei-release-candidate May 21, 2024 15:01
@barakman barakman changed the base branch from sei-release-candidate to sei-release-candidate-telos May 21, 2024 15:01
@platonfloria platonfloria changed the base branch from sei-release-candidate-telos to sei-release-candidate May 21, 2024 15:21
Base automatically changed from sei-release-candidate to develop May 21, 2024 15:47
platonfloria and others added 4 commits May 23, 2024 19:41
Minor

Change `assert_supported` exception type from `ValueError` to `AssertionError`

Remove unused return-value

Remove unused code

Refactor single-trianglre mode as well

Remove unneeded assertion

Cosmetic

Fix single-triangle mode

Fix single-triangle mode

Refactor the b3-two-hop-triangle mode as well

Remove the importing of `T`

Remove unused code

Remove single-triangle mode, and fix a bunch of problems

Cleanup `calculate_profit` related code

Fix test 042

Fix  test 042

Remove unused code

Some more general cleanup

Cleanup

Remove unused code

Fix test 063

Cleanup

Cleanup

Fix tests

Cleanup

Cleanup

Fix test 042

Remove single_paiwise and multi_paiwise arb modes (major change)

Fix test 045

Fix test 045

Refactor the pairwise arb-mode classes

Ongoing refactor

Refactor triangle arb-mode classes

Cleanup

Remove file `scan_log_errors.py` from the repository

Cleanup

Remove unused code

Code reuse

Fix functions `create_sort_order` and `sort_key`
fastlane_bot/bot.py Show resolved Hide resolved
fastlane_bot/bot.py Show resolved Hide resolved
fastlane_bot/bot.py Show resolved Hide resolved
"[bot._run] Data validation failed. Updating pools and restarting."
)
return
arb_opp = rand_item(list_of_items=arb_opps, num_of_items=randomizer)
Copy link
Collaborator

Choose a reason for hiding this comment

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

this is consistent with what we are doing now, but arguably randomisation should happen at the node level because they have the complete picture; we should just return everything we find

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants