Getting Started
Setting up your environment
First, you will need to install foundry to be able to compile the contracts.
curl -L https://foundry.paradigm.xyz | bashThen clone the repository and install the dependencies.
git clone https://github.com/mangrovedao/vif-core.git
cd vif-core
forge installRunning the tests
The project contains a set of tests (unit, fuzz, and invariant tests) that you can run with the following command:
forge test -vvvDeploying the contracts
Contracts can be used with an upgradeable proxy, but here we'll only see how to deploy the contracts immutably.
There is a script called DeployImmutable. We just need to define the arguments and run the script.
WETH=<WETH_ADDRESS>
OWNER=<OWNER_ADDRESS>
PROVISION=<provision in gwei>
forge script DeployImmutableReview the script options in the Foundry documentation for more configuration options.