1c0e57d984
This commit systematically rebrands various references from Parity Technologies' Polkadot/Substrate ecosystem to PezkuwiChain within the kurdistan-sdk. Key changes include: - Updated external repository URLs (zombienet-sdk, parity-db, parity-scale-codec, wasm-instrument) to point to pezkuwichain forks. - Modified internal documentation and code comments to reflect PezkuwiChain naming and structure. - Replaced direct references to with or specific paths within the for XCM, Pezkuwi, and other modules. - Cleaned up deprecated issue and PR references in various and files, particularly in and modules. - Adjusted image and logo URLs in documentation to point to PezkuwiChain assets. - Removed or rephrased comments related to external Polkadot/Substrate PRs and issues. This is a significant step towards fully customizing the SDK for the PezkuwiChain ecosystem.
26 lines
703 B
Markdown
26 lines
703 B
Markdown
# 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](https://github.com/Uniswap/v2-core) 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 pezpallet-asset-conversion --open`
|
|
|
|
### License
|
|
|
|
License: Apache-2.0
|