Repay a loan
This guide explains how to repay debt owed to an inventory pool
Prerequisites
A whitelisted borrower with current debt on an inventory pool
Process Overview
Approve the inventory pool contract to spend your tokens
Call the
repay()
function directly on the inventory pool contract
Step 1: Approve Token Spending
First, get the token address from the inventory pool and approve it to spend your tokens:
Step 2: Repay the Loan
After approval, call the repay()
function on the inventory pool contract. Note that the borrower parameter can be any address that has an active loan - it doesn't have to be the caller of the function:
Important Notes
If repayment amount exceeds debt, the inventory pool will take the exact amount owed
Last updated