For quickly bootstrapping a new Drosera project.
This template shows an example of monitoring a Uniswap V3 liquidity pool. The UniswapV3PoolTrap smart contract checks to see if the balance of the pool has changed by more than 20% from the previous block.
- example trap contract
- example trap test
mkdir my-drosera-trap
cd my-drosera-trap
forge init trap-foundry-template
forge test