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

[sqs] rank pools by spread factor #349

Open
p0mvn opened this issue Jun 26, 2024 — with Linear · 0 comments
Open

[sqs] rank pools by spread factor #349

p0mvn opened this issue Jun 26, 2024 — with Linear · 0 comments
Assignees

Comments

Copy link
Member

p0mvn commented Jun 26, 2024

Create rank multiplier for each spread factor. The lower the spread factor, the higher the ranking for routing.

This will let pools with smaller spread factors get greater points in rankings. However, the multiplier should be an order of magnitude smaller than liquidity rank bonuses.

Liquidity is a more important metric for routing that is also inversely correlated with spread factors

Relevant function:

func sortPools(pools []sqsdomain.PoolI, transmuterCodeIDs map[uint64]struct{}, totalTVL osmomath.Int, preferredPoolIDsMap map[uint64]struct{}, logger log.Logger) []sqsdomain.PoolI {

DoD

  • Spread Factors Added To Router Pool Ranking
  • Unit tested
@p0mvn p0mvn self-assigned this Jun 26, 2024
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

No branches or pull requests

1 participant