For the complete documentation index, see llms.txt. This page is also available as Markdown.

Fluid fTokens

One immutable meta-adapter that reports an account's supply position in any Fluid fToken (an ERC-4626 lending vault).

One immutable meta-adapter that reports an account's supply position in any Fluid fToken (an ERC-4626 lending vault). Each configured fToken contributes a single Supplied leg denominated in the fToken's underlying asset.

  • Type: Meta-adapter

  • protocolSubId: keccak256("fluid-ftokens")

  • Instance key: the fToken (ERC-4626 vault) address, widened to bytes32.

  • Source: FluidFTokensMetaBalanceAdapter.sol


Positions returned

One leg per configured fToken:

Leg
PositionKind
isDebt
Description

Supply

Supplied

false

The fToken share balance converted to the underlying asset

A leg is dropped when the underlying asset is not registered in NAVCalculator, when the computed amount is zero, or when filtered out by assetFilter.


Balance calculation

Flowchart of the Fluid fTokens balance adapter: read calls derive position legs into PositionBalance entries.
Fluid fTokens adapter — how the underlying balances reported to the NAV Calculator are derived.

For the fToken at the instance coordinate:

The amount is reported in the underlying asset (asset).


Identity

  • positionId: abi.encode(address fToken)

  • positionKind: Supplied

There is no labels field on the position. The adapter implements positionLabels(positionId), which returns ["Lending", "<fToken symbol()>"] from the fToken's on-chain symbol — surfaced only by the verbose reads (getAccountPositionsVerbose / getAccountNavVerbose); the full breadcrumb is [protocolName, ...labels].


Constructor

Parameter
Description

navCalculator_

NAVCalculator address, used for the registered-asset registry. Must be a contract


Registration

Register the adapter with addMetaBalanceAdapter(adapter, instances), then add or remove fTokens with addMetaInstances(adapter, instances) / removeMetaInstances(adapter, instances). The instance coordinate is the fToken (ERC-4626 vault) address widened to bytes32.

Last updated