feat: Add Slither to README.md and include contract file to test

This commit is contained in:
TAMARA LIPOWSKI
2025-01-17 16:39:21 -05:00
parent f0620bd180
commit 2998bb3fb1
2 changed files with 19 additions and 1 deletions

View File

@@ -4,4 +4,19 @@ TODO: add banner
Tycho Execution makes it easy to trade on different DEXs by handling the complex encoding for you. Instead of creating
custom code for each DEX, you get a simple, ready-to-use tool that generates the necessary data to execute trades. Its
designed to be safe, straightforward, and quick to set up, so anyone can start trading without extra effort.
designed to be safe, straightforward, and quick to set up, so anyone can start trading without extra effort.
# Contract Analysis
We use [Slither](https://github.com/crytic/slither) to detect any potential vulnerabilities in our contracts.
To run locally, simply install Slither in your conda env and run it inside the foundry directory.
```
conda create --name tycho-execution python=3.10
conda activate tycho-execution
python3 -m pip install slither-analyzer`
cd foundry
slither .
```

View File

@@ -0,0 +1,3 @@
contract FrontendSwapRouter {
constructor() {}
}