Compensate relayer losses happened due to attack: https://forum.tornado.ws/t/relayer-attack-analysis-and-mitigation/199
| data | ||
| lib | ||
| scripts | ||
| src | ||
| test | ||
| .env.bat.example | ||
| .env.example | ||
| .gitignore | ||
| .gitmodules | ||
| foundry.toml | ||
| package.json | ||
| README.md | ||
| remappings.txt | ||
| tsconfig.json | ||
Proposal to compensate relayer attack losses
Changes
- Transfer about 987 TORN from Governance to affected relayers
Requirements
- Rust (Need only for Windows)
- Foundryup (Windows, Linux)
- Node 18 or higher (Windows, Linux)
Installation
git clone --recurse-submodules https://git.tornado.ws/Theo/proposal-33-compensate-relayer-losses
cd proposal-33-compensate-relayer-losses
npm install
Testing
npm run test:windows
or
npm run test:linux
Test with gas
npm run test:gas:windows
or
npm run test:gas:linux
Verification
Etherscan contract link: 0x6B3257A4642C214fFAD2925B96a20f3D76005cF4
All relayer losses calculations can be found in file calculateLosses.ts, anyone can rerun it via yarn calculate.
Result data with TORN compensation amount for each relayer is written to file relayerLosses.txt.