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

arbitrageur and refactor #11

Merged
merged 9 commits into from Aug 22, 2023
Merged

arbitrageur and refactor #11

merged 9 commits into from Aug 22, 2023

Conversation

Autoparallel
Copy link
Collaborator

@Autoparallel Autoparallel commented Aug 21, 2023

  • Added an Arbitrageur into strategies.rs complete with:
    • Functioning arbitrage math and single swap.
    • Loop to verify we get a valid portfolio swap.
  • Reorganized the code to be a bit more clear.
    • Added config.rs
    • Used shared dependencies where I could to make each main.rs, strategies.rs, and startup.rs cleaner.
    • Added a SimulationContracts struct once I knew the final list of contracts we would need.
  • Created a run() function to split off the loop for the simulation.

@Autoparallel Autoparallel changed the title Arbitrageur feat: arbitrageur and refactor Aug 22, 2023
@Autoparallel Autoparallel changed the title feat: arbitrageur and refactor arbitrageur and refactor Aug 22, 2023
@Autoparallel Autoparallel marked this pull request as ready for review August 22, 2023 18:13
Copy link
Contributor

@0xJepsen 0xJepsen left a comment

Choose a reason for hiding this comment

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

Looks clean!

@@ -0,0 +1,83 @@
pub use std::sync::Arc;
Copy link
Contributor

Choose a reason for hiding this comment

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

This is clean, nice to see this happening in action

@0xJepsen 0xJepsen merged commit 03d38f9 into main Aug 22, 2023
@Autoparallel Autoparallel linked an issue Aug 22, 2023 that may be closed by this pull request
3 tasks
@Autoparallel Autoparallel mentioned this pull request Aug 22, 2023
3 tasks
@Autoparallel Autoparallel deleted the arbitrageur branch August 25, 2023 19:04
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.

create Arbitrageur strategy
2 participants