write.account.repay
Repay debt to an Arcadia lending pool using tokens from your wallet. Requires ERC20 allowance setup and works with specified lending pools on supported chains.
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
TableJSON 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) or 130 (Unichain) |