Smart Contracts for ether.fi ethereum staking protocol.
From 2024/02/15, we have migrated from our private repo to this public one. We start with the shallow copy of the latest commit of the private one.
curl -L https://foundry.paradigm.xyz | bash
foundryup
git submodule update --init --recursive
Run yarn
to install package.json
which includes our formatter and linter. We will switch over to Foundry's sol formatter and linter once released.
Check .env.example
to see some of the environment variables you should have set in .env
in order to run some of the commands.
forge build
forge test
forge test --fork-url <your_rpc_url>>
certoraRun certora/conf/<contract-name>.conf
In case you run into an issue of forge
not being able to find a compatible version of solidity compiler for one of your contracts/scripts, you may want to install the solidity version manager svm
. To be able to do so, you will need to have Rust installed on your system and with it the accompanying package manager cargo
. Once that is done, to install svm
run the following command:
cargo install svm-rs
To list the available versions of solidity compiler run:
svm list
Make sure the version you need is in this list, or choose the closest one and install it:
svm install "0.7.6"