Skip to main content

Repay

GET 

/v1/actions/lending/repay

Build calldata for repaying a loan. Identify the market via marketUid (format: lender:chainId:address). Approval transactions are automatically filtered: if the user already has sufficient allowances, permissions (envelope) and permissionTxns (per-entry) will be empty. Pass simulate=true to include projected post-trade metrics. When on-chain debt data is available and amount covers the full debt, the API uses protocol-level max-repay mechanisms automatically. If isAll=true but amount is less than the debt, the API falls back to a partial repay to avoid reverts.

Lista DAO fixed-term (brokered) markets: pass loanId to target a specific loan (use the per-loan loanId from the user-positions response, or the type(uint128).max sentinel for the flexible/dynamic position). The broker repays interest-first plus an early-repayment penalty on not-yet-matured fixed loans and refunds any excess, so to fully close a loan fund outstanding + accruedInterest + earlyRepayPenalty from the per-loan term.

Request

Responses

Transaction calldata and approvals for repay