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

Mp 2637/astroport pool routing support #66

Merged
merged 8 commits into from
Jun 2, 2023

Conversation

markonmars
Copy link
Contributor

Added support for loading Astroport pools and parsing them into the PoolAsset objects we require.

To support this I have abstracted the pool loading out of the executor and am now injecting a PoolProvider, which can source the pools for us based on its own implementation.

For the astroport pool provider implementation:

  • uses graphql
  • fetches pairs
  • fetches pool data based on each pairs contracts.

@markonmars markonmars requested a review from elfedy June 1, 2023 16:20
liquidator/src/BaseExecutor.ts Outdated Show resolved Hide resolved
liquidator/src/amm/AstroportPoolProvider.ts Outdated Show resolved Hide resolved
markonmars and others added 3 commits June 2, 2023 10:03
Co-authored-by: Federico Rodríguez <federodriguez.88@gmail.com>
@markonmars markonmars merged commit 975ea17 into dev Jun 2, 2023
@markonmars markonmars deleted the MP-2637/Astroport-pool-routing-support branch June 2, 2023 03:32
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.

None yet

2 participants