Get oracle price
Get oracle price

Fluid · Reads onchain state

Reads a Fluid vault's oracle price of the collateral quoted in the debt asset. The raw 1e27-scaled oracle word is returned as oraclePrice, and the action normalizes it using both tokens' decimals into price at 18 decimals. This is the number the vault uses on the operate path when it checks LTV. Reach for it to convert a collateral amount into debt capacity, to size a repay against collateral value, or to detect a price move between runs by comparing against a stored value.

On other protocols · 8