1. Configure the vault
2. Approve the vault to spend USDC
encodeFunctionData
to encode the approval, and Privy’s useSendTransaction
to send it:3. Deposit USDC into the Vault
useSendTransaction
to fund the vault:balanceOf
function to determine how much the user can withdraw.
deposit()
and redeem()
: These cover most use cases effectively.