proposal-33-compensate-rela.../README.md

51 lines
1.3 KiB
Markdown
Raw Normal View History

2023-10-27 10:41:47 +03:00
# Proposal to compensate relayer attack losses
2023-10-23 20:02:23 +03:00
2023-10-27 10:46:20 +03:00
### Changes
2023-10-23 20:02:23 +03:00
2023-10-27 10:46:20 +03:00
- Transfer about 987 TORN from Governance to affected relayers
2023-10-23 20:02:23 +03:00
### Requirements
- Rust ([Need only for Windows](https://doc.rust-lang.org/cargo/getting-started/installation.html))
- Foundryup ([Windows](https://github.com/altugbakan/foundryup-windows), [Linux](https://book.getfoundry.sh/getting-started/installation))
2023-10-27 10:41:47 +03:00
- Node 18 or higher ([Windows](https://github.com/coreybutler/nvm-windows), [Linux](https://github.com/nvm-sh/nvm))
2023-10-23 20:02:23 +03:00
### Installation
```text
2023-10-27 10:41:47 +03:00
git clone --recurse-submodules https://git.tornado.ws/Theo/proposal-33-compensate-relayer-losses
cd proposal-33-compensate-relayer-losses
2023-10-23 20:02:23 +03:00
npm install
```
### Testing
```text
npm run test:windows
```
or
```text
npm run test:linux
```
##### Test with gas
```text
npm run test:gas:windows
```
or
```text
npm run test:gas:linux
```
2023-10-27 10:46:20 +03:00
### Verification
Etherscan contract link: [0x6B3257A4642C214fFAD2925B96a20f3D76005cF4](https://etherscan.io/address/0x6b3257a4642c214ffad2925b96a20f3d76005cf4)
All relayer losses calculations can be found in file [calculateLosses.ts](scripts/calculateLosses.ts), anyone can rerun it via `yarn calculate`.
Result data with TORN compensation amount for each relayer is written to file [relayerLosses.txt](data/relayerLosses.txt).