DappTools project to simulate Fuse parameter changes.
- First, install Nix:
# User must be in sudoers
curl -L https://nixos.org/nix/install | sh
# Run this or login again to use Nix
. "$HOME/.nix-profile/etc/profile.d/nix.sh"- Then, install DappTools:
curl https://dapp.tools/install | sh- First, clone the repo locally:
git clone https://github.com/rari-capital/fuse-simulations
cd fuse-simulations- Then, install the project's dependencies:
make- Finally, rename
.env.exampleto.envand setETH_RPC_URLto a valid Ethereum RPC URL:
# Inside .env
ETH_RPC_URL=https://eth-mainnet.alchemyapi.io/v2/YOUR_ALCHEMY_KEY_HERE-
First, update
Simulations.t.solto perform the actions you want to simulate on a mainnet fork. -
Then, simply run
dapp testto view the results of your simulation.