write.account.repay
Repay debt to an Arcadia lending pool using wallet tokens. Requires ERC20 allowance; approve the pool first if needed.
Instructions
Repay debt to an Arcadia lending pool using tokens from the wallet (requires ERC20 allowance). To repay using account collateral instead (no wallet tokens needed), use write.account.deleverage. Check allowance first (read.wallet.allowances), then approve the pool if needed (write.wallet.approve). Check outstanding debt with read.account.info.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pool_address | Yes | Lending pool address. Base: LP_WETH=0x803ea69c7e87D1d6C86adeB40CB636cC0E6B98E2, LP_USDC=0x3ec4a293Fb906DD2Cd440c20dECB250DeF141dF1, LP_CBBTC=0xa37E9b4369dc20940009030BfbC2088F09645e3B | |
| account_address | Yes | Arcadia account address with debt | |
| amount | Yes | Amount in raw units, or 'max_uint256' to repay all debt in full | |
| chain_id | No | Chain ID: 8453 (Base), 130 (Unichain), or 10 (Optimism) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| description | Yes | ||
| transaction | Yes | ||
| predicted_account_address | No |