Get position data

Get position data on Fluid

Ethereum
Ethereum
Base
Base

Reads onchain state

Ready to run on Base

Reads a Fluid vault position: collateral, debt, liquidation status, health factor, and LTV. The vault resolver's position data is decoded into collateral and debt in their assets' units, isLiquidated, the liquidation threshold in basis points, and, using the vault's oracle price, a health factor and LTV at 18 decimals. Reach for it to require the health factor stays above a floor after a borrow or withdrawal, to read the live debt before a repay, or to trigger a deleverage when LTV drifts past a target.

Plug lets you combine onchain actions like this one into a single transaction, without writing a smart contract. Use in App opens a new plug with this action already in it.

More plugs on Base

Borrow on Base · 7 plugs

More on Fluid · 12

On other protocols · 6