Compensate relayer losses happened due to attack: https://forum.tornado.ws/t/relayer-attack-analysis-and-mitigation/199
Go to file
Theo 6bdbe24041 Update readme 2023-10-27 00:46:20 -07:00
data Add proposal and tests solidity code 2023-10-27 00:41:47 -07:00
lib Add proposal and tests solidity code 2023-10-27 00:41:47 -07:00
scripts Add proposal and tests solidity code 2023-10-27 00:41:47 -07:00
src Add proposal and tests solidity code 2023-10-27 00:41:47 -07:00
test Add proposal and tests solidity code 2023-10-27 00:41:47 -07:00
.env.bat.example Initial commit 2023-10-23 19:02:23 +02:00
.env.example Initial commit 2023-10-23 19:02:23 +02:00
.gitignore Initial commit 2023-10-23 19:02:23 +02:00
.gitmodules Initial commit 2023-10-23 19:02:23 +02:00
README.md Update readme 2023-10-27 00:46:20 -07:00
foundry.toml Initial commit 2023-10-23 19:02:23 +02:00
package.json Add proposal and tests solidity code 2023-10-27 00:41:47 -07:00
remappings.txt Initial commit 2023-10-23 19:02:23 +02:00
tsconfig.json Add script to calculate relayer losses during the hack 2023-10-25 06:03:29 -07:00

Proposal to compensate relayer attack losses

Changes

  • Transfer about 987 TORN from Governance to affected relayers

Requirements

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.