1
0
mirror of https://github.com/tornadocash/docs synced 2024-02-02 15:04:08 +01:00

add relayer formula

This commit is contained in:
Alexey Pertsev 2022-03-09 20:39:40 +01:00
parent 4430925500
commit 6f49bcfb1b

View File

@ -20,10 +20,18 @@ Anyone can become a relayer for the protocol in **6 simple steps** through a Rel
You will find below everything your need to join our relayers' club & be listed on Tornado Cash decentralized relayer registry.
### 1. Requirements: Be Aware & Accept Potential Risks
### 1. Warning: Be Aware & Accept Potential Risks
Before you commit to sharing part of your journey with Tornado Cash users as a relayer, you need to be aware & accept all potential risks of being a relayer for the protocol.
#### How a Relayer is chosen by user interface
The formula that is used to preset a relayer is following:
* get all registered relayers from the Relayer Registy smart contract
* sort all Relayers by cheapest fee
* select 30% from cheapest Relayers
* randomly choose a relayer weighted by the TORN stake in Registry
### 2. Set up Relayer
The first concrete step is to run Tornado Cash Relayer software for Ethereum Mainnet on your computer. All steps are explained in the protocol's github. To complete this task successfully, you will have to carefully follow [these instructions](https://github.com/tornadocash/tornado-relayer#deploy-with-docker-compose).