Gearbox Markets
One immutable meta-adapter that reports an account's passive-liquidity supply in any Gearbox V3 ERC-4626 farming pool.
One immutable meta-adapter that reports an account's passive-liquidity supply in any Gearbox V3 ERC-4626 farming pool. Which pools it queries is a governed instance set on the NAV Calculator; the adapter holds no per-pool state. The borrow side is covered by the sibling Gearbox Credit Accounts adapter.
Type: Meta-adapter
protocolSubId:
keccak256("gearbox-v3-markets")Instance key: the market (pool) address, widened to
bytes32Source:
GearboxV3MarketsMetaBalanceAdapter.sol
Positions returned
One position per pool the account has shares in.
Pool supply
Supplied
false
Pool shares converted to the underlying
A pool returns an empty result when its asset is unregistered, excluded by assetFilter, or the converted balance is zero. Merkl rewards are not included.
Balance calculation


convertToAssets uses the pool's current share price (reflecting interest accrued from Gearbox credit accounts borrowing the pool's liquidity). The result is denominated in market.asset().
Identity
positionId:
abi.encode(address market), the pool addresspositionKind:
Supplied
There is no labels field on the position. The adapter implements positionLabels(positionId), which returns ["Market", "<market ERC20 name()>"] from the market's onchain name; surfaced only by the verbose reads (getAccountPositionsVerbose / getAccountNavVerbose); the full breadcrumb is [protocolName, ...labels].
Constructor
navCalculator_
NAV Calculator contract (asset registry + instance set)
Registration
Meta-adapter. Register once and seed its pools with addMetaBalanceAdapter(adapter, instances), then adjust with addMetaInstances(adapter, instances) / removeMetaInstances(adapter, instances) (MANAGER-gated). Each instance coordinate is a pool address widened to bytes32 (decoded via _toAddress). Adding a new pool is a config call, no new deploy.
Last updated