Dynamic Vault
rust-client
provides a convenient way to interact with the Dynamic Vault program.
Before you begin, here are some important resources:
mercurial-vault
to dependencies:
Find the vault pubkey based on the token_mint (USDC, USDT, or SOL)
Get the vault_state using the vault pubkey
Retrieve the vault, token_vault, lp_mint, user_token and user_lp values
Execute the instruction to deposit liquidity into the pool
Retrieve the vault, token_vault, lp_mint, user_token and user_lp values
Execute the instruction to withdraw liquidity from pool
Retrieve the list of pubkeys of the lending platform pools integrated with the vault
Call the function to withdraw funds from the selected strategy pool