factor_flashloan
Executes a flash loan strategy through a Factor vault by borrowing tokens, running strategy steps, and repaying within one transaction using Balancer.
Instructions
Execute a flash loan strategy through a Factor vault. Borrows tokens within a single transaction, executes strategy steps, then repays. Uses Balancer flash loan provider (deployed on Arbitrum, Base, and Ethereum). The strategy steps define what to do with the borrowed funds (e.g., swap, supply collateral, etc.).
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>",
"provider": "<provider>",
"loans": "<loans>",
"strategySteps": "<strategySteps>"
},
"name": "factor_flashloan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| loans | Yes | Array of tokens and amounts to flash borrow | |
| password | No | Wallet password if encrypted | |
| provider | Yes | Flash loan provider: balancer | |
| vaultAddress | Yes | The vault contract address | |
| strategySteps | Yes | Strategy steps to execute with the borrowed funds. These run inside the flash loan callback. |