Deploying Vaults
Overview
The core behind parameter is an asset vault. Every vault has a base asset that is used for deposits, withdrawals, and relative performance metrics. Besides the logic for interacting with LPs (deposit, withdrawal requests, repossession, etc.), the core of the vault operates similar to a diamond proxy contract. The vault delegate calls specific permissions contracts that enable functionality. An example of this would be a contract that extends the functionality of the vault so that it can interact with uniswap, seaport, and friend.tech contracts.

Deployment
Start by cloning the vaults repo: https://github.com/parameterlabs/vaults
At the base of the repo, you will need to add a .env file with the following structure:
Inside of the repo is a folder called scripts. The first script we will use is the CreateVault script.
Be sure to replace the owner address in the script to be the same as your public key. Then run the following:
Last updated
Was this helpful?