Get max redemption
Get max redemption

Avantis · Reads onchain state

Reads the most Avantis vault shares a wallet can redeem by the vault's own bound. The vault's maxRedeem is the wallet's whole share balance unless the headroom before the withdraw threshold is smaller, in which case it is that headroom in shares. The headroom is measured against the vault's open interest multiplied balance, so the utilization check at execution is the binding gate. Reach for it to clamp a redemption to what the vault declares, or to tell whether a whole position can leave at once.