Obligation account represents a user’s lending position, tracking all deposited collateral and borrowed assets. Each user can have multiple obligations per lending market.
Obligation
Unique identifier tag for the obligation
Last update tracking slot and staleness
Parent lending market this obligation belongs to
Authority that owns this obligation and can manage it
Array of deposited collateral positions (max 8 different assets)
Lowest liquidation LTV among all deposited reserves
Total deposited value in quote currency (scaled fraction)
Array of borrowed positions (max 5 different assets)
Total debt value adjusted by borrow factors (scaled fraction)
Total borrowed assets market value without borrow factor adjustment (scaled fraction)
Maximum allowed borrow value based on deposits and LTV (scaled fraction)
Borrow value threshold at which position becomes liquidatable (scaled fraction)
Elevation group ID this obligation belongs to (0 = no elevation group)
Count of deposits in obsolete reserves
Boolean flag indicating if obligation has any outstanding debt
Referrer account eligible for referral fees
Boolean flag disabling borrowing for this specific obligation
Target LTV percentage for autodeleverage operations
Lowest max LTV percentage among all deposited reserves
Count of borrows from obsolete reserves
Highest borrow factor percentage among all borrows
Unix timestamp when autodeleverage margin call started (0 = not marked)
Array of limit orders for automated position management
Active borrow order for this obligation
Key Health Metrics
Loan-to-Value (LTV)
Calculated as:borrow_factor_adjusted_debt_value / deposited_value
Health Status
- Healthy: LTV < allowed LTV (can borrow more)
- Unhealthy: LTV >= liquidation threshold (liquidatable)
- Margin Call: Marked for autodeleverage
Remaining Borrow Capacity
Calculated as:allowed_borrow_value - borrow_factor_adjusted_debt_value
Constraints
- Maximum 8 different collateral deposits
- Maximum 5 different asset borrows
- Maximum 2 obligation orders (limit orders)
- Maximum 1 active borrow order
Account Size
TheObligation account has a fixed size of 1784 bytes (OBLIGATION_SIZE).
Common Operations
Deposit Collateral
Adds collateral to the deposits array, increasingdeposited_value_sf and allowed_borrow_value_sf.
Borrow
Adds or increases a borrow in the borrows array, increasingborrowed_amount_sf and borrow_factor_adjusted_debt_value_sf.