Proposal goal : Compensating for relayers being incorrectly burned torn in oracle attacks
context
Nov-15-2023, The TORN/ETH trading pair in Uniswap V3 suffered an oracle attack due to liquidity issues , https://etherscan.io/tx/0xa5e193d5d1f518df84a04218cb4727305d68a19cb615460edbe12658bd4b2e57
,The attacker caused an incorrect price for the TORN/ETH trading pair through malicious swap, causing relayers to be burned with an incorrect amount of torn, and all relayers went offline in a short period of time.。
After the attack, the community discussed two options. One was to change the oracle to 1inch, and the other was to increase Uniswap V3 liquidity. After coding testing, it was found that 1inch does not support on-chain oracles very well. Currently, a solution to increase Uniswap V3 liquidity has been adopted.After community contributors added liquidity, the current price has returned to normal.
The proposal is to compensate for relayers being incorrectly burned torn in oracle attacks after the price recovers. Relayers are an integral part of the project and also bear the risk of sanctions. They should be treated fairly.
proposal
code:windknow/proposal-38 - proposal-38 - Tornado Cash Git
Script to calculate the TORN that were incorrectly burned in this attack:proposal-38/calculateLosses.ts at main - proposal-38 - Tornado Cash Git
The script to calculate the amount is to read the burning events in the affected withdrawals, where the affected blocks in the eth withdrawal are 18577000-18583515, and the affected blocks in the dai withdrawal are 18577000-18591849
Calculated result:https://git.tornado.ws/windknow/proposal-38/src/branch/main/data/relayerLosses.txt
cheap-relayer.eth--0x076D4E32C6A5D888fC4658281539c94E778C796d = 2380374405606021763001 // 2380.374405606021763001 TORN
lowcost.eth--0x28907F21F43B419F34226d6f10aCbCf1832b1D4d = 4468422129821830327039 // 4468.422129821830327039
TORNtorrelayer.eth--0x2Ee39Ff05643bC7cc9ed31B71e142429044A425C = 3040216359787595395455 // 3040.216359787595395455 TORN
nice-relayer.eth--0xb0Cdc0AB2D454F2360d4629d519819E13DBE816A = 103765685766980694091 // 103.765685766980694091
TORNabracadabra-money-gone.eth--0xb578603D3fB9216158c29488c1A902Dd0300c115 = 816848044379099935494 // 816.848044379099935494
TORN
first-relayer.eth--0xD8f1Eb586Ecb93745392EE254a028f1F67E1437E = 6688475991532709870006 // 6688.475991532709870006 TORN
local test code:https://git.tornado.ws/windknow/proposal-38/src/branch/main/test
For the security, all compensation codes reuse the code in Proposal 33 and passed the unit test. The proposal adds 50torn gas compensation (including contract deployment, proposal, execution)
PS: In order to avoid the recurrence of oracle attacks, we call on everyone to actively add liquidity to the TORN/ETH pair in Uniswap V3.