Here’s the basic plan.
Pretty soon the latest Kusama upgrade will execute and a following proposal will upgrade AssetHub system chain to include Asset Conversion Pallet
which is essentially Uniswap V2.
From the docs.
This pallet allows you to:
create a liquidity pool for 2 assets
provide the liquidity and receive back an LP token
exchange the LP token back to assets
swap 2 assets if there is a pool created
query for an exchange price via a new runtime call endpoint
query the size of a liquidity pool.
With this in place, we can then bootstrap KAB:KSM pairs - note we’ll need to open a channel between Kabocha and AssetHub to make this possible @JelliedOwl.
More soon.