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§
- IAsset
Conversion - Precompile interface for asset-conversion (DEX) operations.
Structs§
- Asset
Conversion - Asset conversion precompile exposing DEX swap and quote operations.