This repository contains tests that call the function emergencyWithdraw() on Yearn V3 strategies. The tests are organized by the protocol that the strategy is using. If the protocol is forked, it will be in the same file as the original protocol, e.g. Spark is forked from Aave, so the tests for both are in AaveEmergencyWithdrawTest.t.sol. The tests also verify that the strategy has the correct roles set: emergencyAdmin and management are multisig with minimum 2/3 threshold.
First, check if the .env file is set up correctly. See the .env.example file for an example.
To run all tests use:
forge test- Aave V3 on mainnet, arbitrum and polygon
- Compound V3 on mainnet, arbitrum and polygon
- Euler on mainnet
- Gearbox on mainnet
- Maker & Sky on mainnet
- Moonwell on base
- Morpho on mainnet base, polygon and katana
- Pendle on mainnet and arbitrum
- Silicon Valley on katana
- Silo on arbitrum
- Spark on mainnet
- Sturdy on mainnet
- yBold on mainnet