Deploying a Vault
Pick the right deployer
Asset
Deployer
Read the current minimum initial deposit
const deployerAbi = [
{type: 'function', stateMutability: 'view', name: 'minInitialDeposit',
inputs: [], outputs: [{type: 'uint256'}]},
] as const
const minDeposit = await client.readContract({
address: deployer, abi: deployerAbi, functionName: 'minInitialDeposit',
})Approve the initial deposit
Call deployVault
deployVaultExtract the vault address
Using permit (one transaction)
Last updated
Was this helpful?
