Files
pezkuwi-subxt/substrate/frame/asset-conversion
Squirrel 4c077b209b pallet asset-conversion additional quote tests (#1371)
* added identity quote test (only possible if fees are not included in quote)
* add tests that compare quoted price to actual execution
2023-09-06 15:00:53 +01:00
..
2023-08-29 13:39:41 +02:00
2023-05-25 18:51:13 +00:00

asset-conversion

A swap pallet

This pallet allows assets to be converted from one type to another by means of a constant product formula. The pallet based is based on Uniswap V2 logic.

Overview

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.

Please see the rust module documentation for full details:

cargo doc -p pallet-asset-conversion --open

License

License: Apache-2.0