How a position's risk premium is built up (v4)
get_risk_premiumv4 only. The per-collateral breakdown of one position's risk premium: how much of the position each token is, and the weight the protocol charges for it. 'currentRiskPremiumWeightPct' is the weight in force now and 'latestRiskPremiumWeightPct' the one the protocol has moved to, so the two differing is the point - the position has been repriced and has not caught up, and the borrow rate will follow. Use it to answer why a v4 borrow costs what it does when the reserve's headline rate says otherwise. 'spokeId' comes from get_user_positions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user | Yes | Wallet address, 0x-prefixed (40 hex chars). | |
| spokeId | Yes | spokeId from get_user_positions (not the spoke address). | |
| version | No | Optional, and only 'v4': this tool exists on v4 only. |