galacticcouncil / galacticcouncil/hydration-node

Improve ice-sovler to take trade weight into account.

Open
#1,521 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
208
Forks
109
Avg merge
6d 3h
Merged PRs (30d)
3

Description

Currently, solver can produce solutions where it only has constant limits for a solution - max 100 intents, and max 30 trades.

in the worst possible scenario - scenario with 30 9-hop trades would be rejected as overweight ( but currently not really possible to make solver produces such solution ).

But it would be nice to have solver to consider and take into account also weight of each trade and given max solution weight - it produces solution that would fit comfortably every time.

Contributor guide

Open the contributing guide

Research direction

Start by locating the ice-solver implementation and how it enforces the current 100-intent and 30-trade limits. Trace how each trade's weight and the maximum solution weight are represented, then verify that generated solutions stay within the requested weight while preserving the existing limits.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
blockchain
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.