factor_hl_initialize_builder_dex
Diagnoses and initializes a Factor vault’s HyperLiquid user account on a HIP-3 builder dex, checks collateral, flags HIP-3 awareness, and reports credit or adapter funding limits.
Instructions
Diagnose + initialise a Factor vault's HyperLiquid user-account on a HIP-3 builder dex. Reads the dex's collateral-token (USDC=0, USDH=360, USDE=235, USDT0=268, ...), calls agentEnableDexAbstraction to flag the master as HIP-3-aware, and polls clearinghouseState for credit. Returns a structured report — if the dex uses non-USDC collateral, surfaces the requirement that the adapter's on-chain transferUsdcBetweenLedgers (hardcoded to USDC) cannot fund it without an adapter upgrade. HyperEVM (chain 999) only.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"vault": "<vault>",
"dexName": "<dexName>"
},
"name": "factor_hl_initialize_builder_dex"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vault | Yes | Vault contract address (HyperEVM). | |
| dexName | Yes | HIP-3 builder dex name (e.g. "vntl", "xyz", "flx", "hyna", "km", "cash", "abcd", "para"). Discoverable via factor_hl_list_dexes (planned) or by inspecting HL's perpDexs Info endpoint. | |
| password | No | Wallet password if encrypted. |