Get risk premium
Get risk premium

Aave V4 · Reads onchain state

Reads the risk premium an address currently pays on top of the hub's rate on an Aave V4 spoke. Every borrower's rate is the hub's drawn rate plus a premium set by the collateral backing the debt: the spoke ranks the account's collateral from least to most risky, takes the cheapest set that covers the debt, and value-weights their collateral risk into a figure in basis points. That figure is stored on the position and only moves when the spoke recomputes it, on a borrow, a withdraw, a collateral change, a liquidation, or an explicit refresh, so the number here is what the account is paying now, not what its current collateral mix would earn it. Reach for it to compare it with the account data's live figure and trigger a refresh when the stored premium is stale and higher, or to gate a borrow on the premium staying under a ceiling.