Steps
- Deposit recognized collateral first (or use deposit-and-borrow).
- Choose the borrow asset and amount.
- Review health after borrow. The app refuses a preview that would land at or below 1.1.
- Confirm.
user_open_debt_positionruns once per (margin, reserve); later borrows reuse it.
What limits a borrow
- Post-borrow health must stay > 1.1
- Asset
borrow_enabledand reserve status - Reserve cash and borrow cap
max_assets_per_margin(24)- Operating mode (borrow pause / halt)

