factor_add_vault_token
Register an asset or debt token in a Factor Pro vault before lending or borrowing. The accounting address must match a whitelisted factory pair; it can auto-detect if omitted.
Instructions
Add an asset or debt token to a Factor Pro vault using the AssetDebtAdapter via executeByManager. Use this to register aTokens (as assets) or debt tokens (as debts) before lending/borrowing. The accounting address must match a whitelisted pair in the factory (use factor_get_factory_addresses to find the correct one).
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": {
"vaultAddress": "<vaultAddress>",
"tokenAddress": "<tokenAddress>",
"type": "<type>"
},
"name": "factor_add_vault_token"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Whether to add as an asset or debt | |
| password | No | Wallet password if encrypted | |
| tokenAddress | Yes | The token address to add (e.g., aToken address for assets, variableDebtToken for debts) | |
| vaultAddress | Yes | The vault contract address | |
| accountingAddress | No | Optional. The accounting adapter address. If omitted, auto-detects using the Chainlink accounting adapter for this chain. |