Skip to content

Conversation

@Jossec101
Copy link
Contributor

Autoswaps via 40swap + UI + Migrations based on Weights, the idea of weights is to be able to select the percent of swaps triggered by each provider.

Add LoopSwapWeight and FortySwapWeight properties to Node model to enable weighted provider selection. LoopSwapWeight defaults to 100, FortySwapWeight defaults to 0, allowing configurable probability distribution between Loop and 40swap providers.
Add IFortySwapService dependency injection and implement weighted random selection between Loop and FortySwap providers based on node configuration. The SelectSwapProvider method uses configurable weights to determine which swap service to use for automatic liquidity management.
@Jossec101 Jossec101 requested review from RodriFS and imclvr November 27, 2025 16:38
@Jossec101 Jossec101 requested a review from RodriFS November 28, 2025 12:02
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.

3 participants