
Aave V4 · Reads onchain state
Reads what an address owes and holds on one Aave V4 reserve, in the asset's units. Debt in V4 has two parts and the read returns both and their sum: drawnDebt is the principal accrued at the hub's rate, premiumDebt is the risk premium the account's collateral mix has added on top, debt is everything owed together, and a repayment clears the premium first. supplied is the account's supplied shares at the hub's current share price, whether or not the deposit is enabled as collateral. Reach for it to size a repay to the exact debt at this block, to keep a stop-loss honest about the premium a position is carrying, or to size a withdraw against what is actually supplied.