Search sites, categories, sections, or styles.
| Prop | Type | Description |
|---|---|---|
className | string | Root classes. |
assets | CryptoSwapAsset[] | Assets to display. |
defaultSellTicker | string | Initial payment asset ticker. |
defaultBuyTicker | string | Initial Swap receive ticker. |
defaultAmount | string | Initial Swap and Stake amount. |
onConfirm | (request: CryptoSwapRequest) => void | Promise<void> | Handles trade confirmation. |
| Prop | Type | Description |
|---|---|---|
ledgerId | string | Ledger currency ID. |
ticker | string | Unique asset symbol. |
name | string | Asset display name. |
usdPrice | number | USD price per unit. |
balance | number | Available asset balance. |
stakingApr | number | Optional annual percentage rate. |
| Prop | Type | Description |
|---|---|---|
mode | "swap" | "buy" | "stake" | Selected transaction mode. |
payAsset | CryptoSwapAsset | null | Payment asset. Null for USD. |
receiveAsset | CryptoSwapAsset | Asset to receive. |
amount | number | Entered payment amount. |
receiveAmount | number | Output amount or annual reward. |
slippage | number | Max slippage in percent. |
fee | "standard" | "fast" | "instant" | Selected fee speed. |