noble-xyk

Crates.ionoble-xyk
lib.rsnoble-xyk
version0.0.0
sourcesrc
created_at2021-05-26 04:28:26.317377
updated_at2021-05-26 04:28:26.317377
descriptionAMM noble provides functionality for managing liquidity pool and executing trades.
homepagehttps://github.com/tetched/tetched-node
repositoryhttps://github.com/tetched/tetched-node.git
max_upload_size
id402146
size2,225
Marlon Hanks (marlonhanks)

documentation

https://docs.rs/noble-xyk

README

AMM XYK Noble

Overview

AMM noble provides functionality for managing liquidity pool and executing trades. This pallet implements AMM Api trait therefore it is possible to plug this pool implementation into the exchange pallet.

Terminology

  • Currency - implementation of fungible multi-currency system - AssetPairAccount / AssetPairAccountId - support for creating share accounts for asset pairs. - NativeAssetId
  • asset id native currency - ShareToken - asset id from asset registry for an asset pair - TotalLiquidity - total liquidity in a pool identified by asset pair account id - PoolAssets - asset pair in a pool identified by asset pair account id

Interface

Dispatchable functions

  • create_pool - add_liquidity - remove_liquidity - sell - buy
Commit count: 607

cargo fmt