From 2998bb3fb15709cac0f844ae662d4e20db9371fc Mon Sep 17 00:00:00 2001 From: TAMARA LIPOWSKI Date: Fri, 17 Jan 2025 16:39:21 -0500 Subject: [PATCH] feat: Add Slither to README.md and include contract file to test --- README.md | 17 ++++++++++++++++- foundry/src/TychoRouter.sol | 3 +++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 foundry/src/TychoRouter.sol diff --git a/README.md b/README.md index 61ac890..db429f9 100644 --- a/README.md +++ b/README.md @@ -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. It’s -designed to be safe, straightforward, and quick to set up, so anyone can start trading without extra effort. \ No newline at end of file +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 . +``` \ No newline at end of file diff --git a/foundry/src/TychoRouter.sol b/foundry/src/TychoRouter.sol new file mode 100644 index 0000000..b3423ad --- /dev/null +++ b/foundry/src/TychoRouter.sol @@ -0,0 +1,3 @@ +contract FrontendSwapRouter { + constructor() {} +}