feat: Add Slither to README.md and include contract file to test
This commit is contained in:
15
README.md
15
README.md
@@ -5,3 +5,18 @@ TODO: add banner
|
|||||||
Tycho Execution makes it easy to trade on different DEXs by handling the complex encoding for you. Instead of creating
|
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. It’s
|
custom code for each DEX, you get a simple, ready-to-use tool that generates the necessary data to execute trades. It’s
|
||||||
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 .
|
||||||
|
```
|
||||||
3
foundry/src/TychoRouter.sol
Normal file
3
foundry/src/TychoRouter.sol
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
contract FrontendSwapRouter {
|
||||||
|
constructor() {}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user