Skip to guide

Documentation LiteForge testnet

Repay a LiteForge loan and withdraw collateral

Repay the borrowed asset in the same Lithium reserve, verify the remaining debt, and check how much collateral you can withdraw.

Open the dashboard

Find the reserve with your debt

Connect the wallet that took out the loan on LitVM LiteForge. Open your account in the app and select the market that shows the outstanding debt.

Use the asset borrowed from that reserve. The Lithium USDC reserve uses lithUSDC. The VIA reserve uses USDC.arb and tracks its balances separately. Repay a zkLTC loan with native zkLTC. Keep enough zkLTC for network fees even if you repay with a token.

Repay part or all of the debt

Open the reserve and choose Repay. Enter an amount or use Max. The app starts from the lower of the displayed debt and your wallet balance. For native zkLTC repayments, it also accounts for estimated fees.

If the token requires approval, review and confirm that request, then submit the repayment separately. Increasing an existing USDT allowance can require resetting it first. Native zkLTC is sent with the transaction and requires no ERC-20 approval.

Check the remaining debt

Once the transaction confirms, open Activity in your account and check the refreshed position in the same reserve. A confirmed token approval gives the contract permission to transfer the token. Check for a separate repayment receipt before submitting another payment.

Interest can accrue between reading the balance and confirming the transaction, so Max can leave a small balance. If the payment exceeds the debt at execution, the excess becomes supplied funds in that market. Use the refreshed debt balance to confirm whether the loan is closed.

Withdraw available collateral

Open the collateral withdrawal action in the same reserve. Review the amount and network fee and confirm the withdrawal separately. With debt outstanding, the collateral left behind must cover the loan under the borrowing limit at current prices. A position can be below the liquidation threshold and still be unable to withdraw all its collateral.

If the amount is blocked, reduce it or repay more debt and check the available amount again. With debt outstanding, collateral withdrawals require valid oracle prices. The market can also pause withdrawals.

Read about borrowing limits and liquidation

Troubleshoot a repayment

  • Check the network, wallet, and reserve token contract. Tokens with the same symbol in a wallet can have different contract addresses.
  • Keep zkLTC available for fees and confirm that the allowance covers the token and amount you intend to repay.
  • If a transaction is pending or failed, check the explorer status and refresh the position before submitting another repayment.