From e121881224350de857054b0f2f1c748f1d8c7636 Mon Sep 17 00:00:00 2001 From: AceAoki <102178051+AceAoki@users.noreply.github.com> Date: Wed, 30 Mar 2022 18:11:27 -0700 Subject: [PATCH 1/2] Update how-to-become-a-relayer.md update the formula for choosing a relayer --- general/how-to-become-a-relayer.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/general/how-to-become-a-relayer.md b/general/how-to-become-a-relayer.md index cf81437..65a4468 100644 --- a/general/how-to-become-a-relayer.md +++ b/general/how-to-become-a-relayer.md @@ -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 list of all registered relayers is retrieved from the Relayer Registry smart contract. -* The relayers are then sorted by cheapest fee. -* A pool of the cheapest 30% of relayers is selected. -* From this pool the relayer is randomly picked, weighted by the TORN stake in Registry. +* For each relayer, calculate a score based on its stacked 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]`. +* Then randomly pick a relayer, weighted by its calculated score. ### 2. Set up Relayer From ce7a5666e3f67ec918e667e05547f581f8af9695 Mon Sep 17 00:00:00 2001 From: AceAoki <102178051+AceAoki@users.noreply.github.com> Date: Wed, 30 Mar 2022 18:14:21 -0700 Subject: [PATCH 2/2] nit: typo --- general/how-to-become-a-relayer.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/general/how-to-become-a-relayer.md b/general/how-to-become-a-relayer.md index 65a4468..5b6503e 100644 --- a/general/how-to-become-a-relayer.md +++ b/general/how-to-become-a-relayer.md @@ -29,7 +29,7 @@ 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 list of all registered relayers is retrieved from the Relayer Registry smart contract. -* For each relayer, calculate a score based on its stacked 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]`. +* 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]`. * Then randomly pick a relayer, weighted by its calculated score. ### 2. Set up Relayer