galleon-vault-exit
Vault exit assessment
Answer how much of the requested exit fits the observed limit, what remains, and which read would resolve an uncertainty. Produce an exit feasibility record with amounts and units. A snapshot is historical evidence; refresh it before calling any amount available now.
Resolve the exit interface and identities
Resolve chain, vault entry point, implementation, underlying asset, share token, owner, controller, receiver and caller. Keep token addresses and decimals separate. For ordinary ERC4626 the vault is the share token; for ERC7575 and ERC7540 read share() and query the returned token for balance and decimals. A zero balance at the vault address is not proof that external shares are missing.
Identify the redemption interface from verified implementation documentation and interface reads. An instant deposit can still have an asynchronous redemption. ERC7540 redemption support uses supportsInterface(0x620ee8e4); inspect ERC165 and ERC7575 support too. A false or reverted interface call does not prove synchronous ERC4626 behavior. If unresolved, return the missing implementation/interface evidence before choosing a method.
Read protocol recipes for the selected interface. Use one block number and hash for all observations, including previews and request state. Collect previews with the intended vault caller; caller-dependent fees can change their result, and a router may be that caller. Identify whose account each limit describes: the owner for synchronous exits, the controller for asynchronous claims.
Synchronous redemption
Collect asset(), share and asset decimals, balanceOf(owner), maxWithdraw(owner) and maxRedeem(owner). Read total assets/supply, pause state, fees and strategy liquidity when needed to explain the limit. Total assets or a token balance alone cannot replace the owner-specific limit.
- For exact assets, compare the request with
maxWithdraw, then callpreviewWithdrawfor the candidate amount and compare required shares with ownership. - For exact shares, compare the request with
maxRedeemand ownership, then callpreviewRedeemfor the candidate amount. - If a partial amount is the only supported portion, obtain a preview for that exact partial amount. Never scale a full-exit preview: fees and rounding can be nonlinear.