Files
pezkuwi-sdk/bizinikiwi/pezframe/asset-conversion
pezkuwichain bfc2cc5284 chore: update documentation URLs to use workspace setting
Replace all docs.rs documentation URLs with documentation.workspace = true
to inherit from the workspace's docs.pezkuwichain.io URL.
2025-12-27 17:56:39 +03:00
..

asset-conversion

A swap pezpallet

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

Overview

This pezpallet 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 pezpallet-asset-conversion --open

License

License: Apache-2.0