3139ffa25e
- snowbridge-pezpallet-* → pezsnowbridge-pezpallet-* (201 refs) - pallet/ directories → pezpallet/ (4 locations) - Fixed pezpallet.rs self-include recursion bug - Fixed sc-chain-spec hardcoded crate name in derive macro - Reverted .pezpallet_by_name() to .pallet_by_name() (subxt API) - Added BizinikiwiConfig type alias for zombienet tests - Deleted obsolete session state files Verified: pezsnowbridge-pezpallet-*, pezpallet-staking, pezpallet-staking-async, pezframe-benchmarking-cli all pass cargo check
26 lines
715 B
Markdown
26 lines
715 B
Markdown
# 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](https://github.com/Uniswap/v2-core) 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
|