Dex Router Pallet Extrinsics

Update Route

update_route

Create, update or remove route. On successful emits one of RouteAdded, RouteUpdated or RouteDeleted.

Exchange

exchange

Exchange amount of quote asset for asset_pair via route found in router. On successful underlying DEX pallets will emit appropriate event

Sell

sell

Sell amount of quote asset for asset_pair via route found in router. On successful underlying DEX pallets will emit appropriate event.

Buy

buy

Buy amount of quote asset for asset_pair via route found in router. On successful underlying DEX pallets will emit appropriate event.

Add Liquidity

add_liquidity

Add liquidity to the underlying pablo pool. Works only for single pool route.

Remove Liquidity

remove_liquidity

Remove liquidity from the underlying pablo pool. Works only for single pool route.