galleon-euler-earn
EulerEarn vault allocation and exit
Resolve Earn identity
Identify chain, vault, owner, underlying asset, amount/unit and desired entry, comparison or exit. Use official Euler metadata and the version-matched @eulerxyz/euler-v2-sdk read services. vaultMetaService.fetchVault(chainId, vault) can distinguish supported vault types; confirm this is EulerEarn rather than a direct EVK lending vault. Query failures or unknown types are unresolved, not a reason to guess an ABI.
Read allocation and liquidity
Use Euler's Data API V3 or metadata to discover allocations, curator labels and historical observations. Cross-check current state with version-matched lenses/direct contract calls. Capture asset(), share/asset decimals, owner balanceOf, totalAssets, totalSupply, standard conversions, maxWithdraw(owner)/maxRedeem(owner) and exact action previews where supported.
Read the vault's actual withdrawal queue, strategy allocations, caps, fees, role holders and pending configuration/timelock changes through its current interface. Avoid copying a queue method from another ERC-4626 protocol. A listing badge or curator name does not establish liquidity, audited configuration or deposit safety.
Reach the requested decision
- Convert the owner's shares to accounting assets at a recorded block. Do not add shares, their underlying value and strategy allocations as three independent assets.
- Compare requested exit against owner-specific limits and each strategy's reachable liquidity through the actual queue. Record total allocation separately from available cash.
- Attribute yield and losses to selected allocations, fees and observation window. Incentives and performance fees need distinct lines; displayed APY is not a fixed forward return.
- Inspect whether a deposit changes concentration or enters a pending curator/configuration transition. Report those risks without changing allocation or management roles.
- Prepare through the official supported SDK or exact ERC-4626 interface, simulate full approval/action sequence and disclose state overrides. Do not introduce custom strategy-management calls for a retail entry or exit.