Borrowing
Repay Loan
Repay debt on a loan (interest first, then principal)
POST
Repays part or all of a loan’s debt. Interest is paid first, then principal. Anyone can repay any loan. If the full debt is repaid, the loan closes automatically and collateral is returned.
Path Parameters
string
required
Market ID.
Body Parameters
integer
required
On-chain loan ID.
string
required
USDC to repay (capped at total debt).
