Managing Collateral
This guide covers collateral management including checking balances, withdrawing collateral, and understanding health factors.Understanding Collateral
When you take a loan, your Bitcoin is locked as collateral:- Total Collateral - All BTC locked for the loan
- Available Collateral - Collateral not at risk of liquidation
- Max Withdrawable - Maximum you can withdraw safely
Checking Collateral Info
LoanCollateralInfo Interface
Withdrawing Collateral
Prerequisites
Before withdrawing:- Check
maxWithdrawableamount - Ensure withdrawal won’t trigger liquidation
- Have a valid BTC address ready
Basic Withdrawal
You do not need to callsetup() before withdrawing collateral. withdrawCollateral() prepares the platform wallet address/signature automatically if needed.