TokenEntry defines one accepted deposit token within an ExponentStrategyVault. Each token entry specifies how the token is priced, where its escrow accounts live, and which yield protocol it is deployed into.
TokenEntry
The deserialized TypeScript
TokenEntry type includes additional fields (tokenEscrow, currentLiquidity, mintFlag, interfaceType) that are derived at fetch time but are not stored directly in the Rust struct.InterfaceType
Theinterface_type determines which yield protocol the token entry’s capital is deployed through.
InterfaceType is not stored on-chain in the TokenEntry struct. It is derived by the SDK’s fetcher during deserialization based on the token entry’s configuration.PriceId
ThePriceId determines how the vault computes the base-unit value of this token for AUM calculations:
ExponentPrices account (["exponent_prices"]).
Token Account Layout
Each token entry uses two token accounts:
The escrow PDA is derived as:
TypeScript Interface
When constructing a vault via the SDK, token entries are specified asTokenEntryInput: