Merge pull request #21 from AceAoki/patch-1

Update how-to-become-a-relayer.md
This commit is contained in:
xdt1 2022-04-03 08:48:04 +00:00 committed by GitHub
commit 78da93d08d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,9 +29,8 @@ Before you commit to sharing part of your journey with Tornado Cash users as a r
The formula for designating a relayer is as follows: The formula for designating a relayer is as follows:
* The list of all registered relayers is retrieved from the Relayer Registry smart contract. * The list of all registered relayers is retrieved from the Relayer Registry smart contract.
* The relayers are then sorted by cheapest fee. * For each relayer, calculate a score based on its staked TORN and its fee. The higher the stake, the higher the score is; the higher the fee, the lower the score is. For Ethereum mainnet, the formula used to calculate the score is `stake * [1 - 25*(fee-0.33)^2]`; for sidechains, the formula is `stake * [1 - 11.89*(fee-0.01)^2]`.
* A pool of the cheapest 30% of relayers is selected. * Then randomly pick a relayer, weighted by its calculated score.
* From this pool the relayer is randomly picked, weighted by the TORN stake in Registry.
### 2. Set up Relayer ### 2. Set up Relayer