Get max redemption

Get max redemption on Avantis

Base
Base

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.

Plug lets you combine onchain actions like this one into a single transaction, without writing a smart contract. Use in App opens a new plug with this action already in it.

More on Avantis ยท 37