swap.coffee UI widget
supports a full list of decentralized protocols and automatically evaluates them at runtime.
Default Behavior
If you do not provide any liquidity-related configuration, the widget enablesall available sources
:
Restricting Liquidity Sources
You can override this behavior by passing theliquiditySourcesList
parameter.
- When this list is provided, only the specified sources are used, and the user cannot change or toggle them via the UI.
Example: Restrict to a Single Source
STONFI_V2
.
All other sources like TONCO
or Tonstakers
are excluded from routing and hidden in the UI.
🚫 WhenliquiditySourcesList
is set, the widget hides off settings for sources. Users will no longer be able to changeliquidity source
preferences inside the widget.