This is the main Fortress Finance public smart contract repository.
# Clone the repository
git clone https://github.com/FortressFinance/fortress-contracts.git
# Change directory into the cloned repo
cd fortress-contracts
# Create a .env file
touch .env
# Add your mainnet RPC URL to the .env file
echo "MAINNET_RPC_URL=<YOUR_MAINNET_RPC_URL_LINK>" >> .env
# Add your mainnet RPC URL to the .env file
echo "ARBITRUM_RPC_URL=<YOUR_ARBITRUM_RPC_URL_LINK>" >> .env
# build the docker image
docker build -t fortress .
# run the image with a volume to the current working directory and enter the container
docker run -it -v "/${PWD}:/fortress-contracts" fortress bash
# build the project
forge build
To run tests, run the following commands
# run tests
forge test
# run slither
slither .
Contributions are always welcome!
Come say hey in our Discord server.