factor_hl_sync_position
Reconcile a vault's stored active perp index with the live HyperLiquid position after settlement. Syncs HyperEVM adapter registry state to on-chain truth without moving funds.
Instructions
Reconcile a vault's on-chain activePerpIndices for a single perp against the live HyperLiquid position (read via precompile). Permissionless: the signer does NOT need to be the vault manager. Cannot move funds — only mutates the adapter's internal registry. Use after settlement to converge stored state with HL truth. 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>",
"perp": "<perp>"
},
"name": "factor_hl_sync_position"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| perp | Yes | Perp symbol like "BTC", "ETH" — or the numeric HL perp index. | |
| vault | Yes | Vault contract address (HyperEVM). | |
| password | No | Wallet password if encrypted. |