referrerpolicy=no-referrer-when-downgrade

Crate pallet_asset_conversion_precompiles

Crate pallet_asset_conversion_precompiles 

Source
Expand description

Precompile exposing pallet-asset-conversion (Asset Hub DEX) to Solidity contracts.

Allows smart contracts to swap tokens through Asset Hub’s on-chain DEX and query swap prices. The primary use case is contracts that accept payment in one asset (e.g. USDC) and convert it to DOT or PUSD before using it.

Assets are identified by their SCALE-encoded AssetKind passed as bytes.

Modules§

IAssetConversion
Precompile interface for asset-conversion (DEX) operations.

Structs§

AssetConversion
Asset conversion precompile exposing DEX swap and quote operations.