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

dex: add DexParameters, remove RoutingParams::default() #4066

Merged
merged 1 commit into from
Mar 21, 2024
Merged

Conversation

hdevalence
Copy link
Member

This commit adds a DexParameters section to the app parameters and removes the previous RoutingParams::default().

The DEX's path search considers two kinds of candidates during routing: dynamically-chosen candidate assets indexed by liquidity, and fixed candidates that provide the "spine" of the liquidity graph. Previously, these fixed candidates were literally hardcoded into the test code, which wouldn't work on mainnet. Now, they're configurable parameters.

This commit adds a `DexParameters` section to the app parameters and removes
the previous `RoutingParams::default()`.

The DEX's path search considers two kinds of candidates during routing:
dynamically-chosen candidate assets indexed by liquidity, and fixed candidates
that provide the "spine" of the liquidity graph.  Previously, these fixed
candidates were literally hardcoded into the test code, which wouldn't work on
mainnet. Now, they're configurable parameters.
@cratelyn cratelyn added this to the Sprint 2 milestone Mar 21, 2024
@cratelyn cratelyn added the A-dex Area: Relates to the dex label Mar 21, 2024
@aubrika aubrika self-requested a review March 21, 2024 16:51
Copy link
Contributor

@aubrika aubrika left a comment

Choose a reason for hiding this comment

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

LGTM

@aubrika aubrika merged commit ba7f0da into main Mar 21, 2024
6 checks passed
@aubrika aubrika deleted the dex-parameters branch March 21, 2024 16:52
@erwanor erwanor added the protobuf-changes Makes changes to the protobuf definitions. label Mar 21, 2024
@erwanor erwanor mentioned this pull request Mar 21, 2024
65 tasks
@conorsch conorsch added the consensus-breaking breaking change to execution of on-chain data label Mar 25, 2024
@conorsch
Copy link
Contributor

Added consensus-breaking label, for bookkeeping purposes. Please remove if I'm wrong about that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-dex Area: Relates to the dex consensus-breaking breaking change to execution of on-chain data protobuf-changes Makes changes to the protobuf definitions.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants